Ir para conteúdo
Entre para seguir isso  
Curse Knight

Skill Rune (funcionando)

Recommended Posts

Curse Knight    0
Curse Knight

Vi o script aprovado do usuário blademix e não funcionou, pois percebi vários erros no script dele, portanto consertei e agora fiz funcionar.

Embora a runa não seja muito útil ela pode servir pra alguém por um propósito ou otro.

Não tive tempo de terminar por isso não adicionei descrição e ela está com cargas infinitas...

 

A runa basicamente adiciona +1 á todos os skills (fist, club, axe, sword, shield, dist, fish) por carga.

 

Primeiramente copie um bloco de notas na pasta actions/scripts e apague o que tem dentro. Cole o seguinte:

 

function onUse(cid, item, frompos, item2, topos)

if getPlayerAccess(cid) > 0 then

player1pos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253}

player1 = getThingfromPos(player1pos)

if player1.itemid > 0 then

playerlvl = getPlayerLevel(player1.uid)

playerskill0 = getPlayerSkill(player1.uid,0)

playerskill1 = getPlayerSkill(player1.uid,1)

playerskill2 = getPlayerSkill(player1.uid,2)

playerskill3 = getPlayerSkill(player1.uid,3)

playerskill4 = getPlayerSkill(player1.uid,4)

playerskill5 = getPlayerSkill(player1.uid,5)

playerskill6 = getPlayerSkill(player1.uid,6)

random0 = math.random(1,(500+playerskill0)*playerlvl)

random1 = math.random(1,(500+playerskill1)*playerlvl)

random2 = math.random(1,(500+playerskill2)*playerlvl)

random3 = math.random(1,(500+playerskill3)*playerlvl)

random4 = math.random(1,(500+playerskill4)*playerlvl)

random5 = math.random(1,(500+playerskill5)*playerlvl)

random6 = math.random(1,(500+playerskill6)*playerlvl)

hpandmprandom = math.random(1,(200*playerlvl))

doPlayerAddSkillTry(player1.uid,0,random0)

doPlayerAddSkillTry(player1.uid,1,random1)

doPlayerAddSkillTry(player1.uid,2,random2)

doPlayerAddSkillTry(player1.uid,3,random3)

doPlayerAddSkillTry(player1.uid,4,random4)

doPlayerAddSkillTry(player1.uid,5,random5)

doPlayerAddSkillTry(player1.uid,6,random6)

doPlayerAddHealth(player1.uid,hpandmprandom)

doPlayerAddMana(player1.uid,hpandmprandom)

doSendMagicEffect(topos,12)

doPlayerSendTextMessage(player1.uid,22,"You received better skills.")

return 0

else

doPlayerSendCancel(player1.uid,22,"You cannot use this rune.")

end

end

return 1

end

 

Agora, vá na pasta Actions e procure pelo action.xml, apenas cole a seguinte tag:

 

<action itemid="2314" script="skills.lua" allowfaruse="1" blockwalls="0" />

No caso 2314 foi o id da runa que usei, você pode escolher outra disponível e trocar o ID...

Por fim vá na pasta data/spells e abra o spells.xml, colando a seguinte tag:

 

<rune name="Skill Rune" id="2314" charges="1" maglv="0" exhaustion="0" enabled="1" allowfaruse="1" blockwalls="0" script="skills.lua"/>

Compartilhar este post


Link para o post
Dark    3
Dark

Aprovado

Isto seria um download e não um tutorial

 

Movido

(Scripting DownloadsActions e Talkactions)

Compartilhar este post


Link para o post
Pandoraaa    0
Pandoraaa

opa achei 1 pequeno erro mais e facinho so queria informaçr que no começo vc nao coloca o nome que tem que renomea-lo se pode-se colokar eu agrdaceria

Primeiramente copie um bloco de notas na pasta actions/scripts e apague o que tem dentro. Cole o seguinte:

 

 

Muito bom o Sripiting vo usa ele =)

adorei

Compartilhar este post


Link para o post
the kina    0
the kina

bom mas em ot que eh runa infinita sei n]ao...

 

 

abraços

 

 

 

 

\maurexX

\the kina.

Compartilhar este post


Link para o post
Atthon    0
Atthon

Muito bom cara :P !

Valeu!

Compartilhar este post


Link para o post
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×