Eu tava lendo uns tutoriais daqui mesmo, de scripting...
resolvi fazer aquelas epic clases que vem com o ot Styller 0.7.2 (versão 8.57)
tipo: uma talkaction que muda de classe de elite knight pra epic elite knight por exemplo:
então começei a fazer...
eu consegui fazer isso:
function onSay(cid, words, param)
if getPlayerVocation(cid) >= 9 then
doPlayerSendCancel(cid, "Sorry, you are already promoted")
return end
if getPlayerVocation(cid) >= 4 then
if doPlayerRemoveMoney(cid,200000) == TRUE then
doPlayerSetVocation(cid,getPlayerVocation(cid)+4)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted!")
doSendMagicEffect(getPlayerPosition(cid), 30)
else
doPlayerSendCancel(cid, "Sorry, you don't have enought money")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
--else
--doPlayerSendCancel(cid, "Sorry, you are already promoted")
end
end
soq ae quando se re-loga, se volta pra classe que vc era, ajudaaa!
info
Grupo: Campones
Registrado: 24/04/10
Posts: 14
Reputação: +8
Char no Tibia: bluub
Eu tava lendo uns tutoriais daqui mesmo, de scripting...
resolvi fazer aquelas epic clases que vem com o ot Styller 0.7.2 (versão 8.57)
tipo: uma talkaction que muda de classe de elite knight pra epic elite knight por exemplo:
então começei a fazer...
eu consegui fazer isso:
soq ae quando se re-loga, se volta pra classe que vc era, ajudaaa!