Olá galera , eu vi q muitas pessoas estao atrás de um script de transformar q ganha hp e mana entao decidi criar um e postar aqui.
Tag da spell, bote no spells.xml
<instant name="Transform" words="transformar" aggressive="0" selftarget="1" exhaustion="5000" needlearn="0" event="script" value="transform.lua"></instant>
Crie um arquivo.lua na pasta script em spells, e bote nome dele de transform.
Copie e cole isso \/ e bote no transform.lua
function onCastSpell(cid, var)
if getPlayerVocation(cid) == 1 then
if getPlayerLevel(cid) >= 2 then
doPlayerSay(cid, '3', TALKTYPE_ORANGE_1)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+4)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+5)
doPlayerSetVocation(cid,6)
doSetCreatureOutfit(cid, {lookType=7}, -1)
doSendMagicEffect(getPlayerPosition(cid), 8)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "9.")
doSendMagicEffect(getPlayerPosition(cid), 10)
end
Siga As Informações
1 -- Vocação q deseja se transformar.
2 -- o lvl q pode se transformar.
3 -- oque a o player vai fala para todo mundo ver.
4 -- quantidade q tu vai ganha de hp.
5 -- quantidade q tu vai ganhar de mana.
6 -- vocação q vai mudar ao transformar.
7 -- o outfit q o player vai ganhar.
8 -- o efeito q irar aparece ao transformar.
9 -- a mensagem q irar aparece se você não tiver nenhum dos requisitos citados.
10 -- o efeito q irar aparece se você não tiver nenhum dos requisitos citados.
Créditos : Euuuu