MA

Promotion Especial Via Talkactions

Por madnf, 05 de jul. de 2010 em Archived

script
1
639
madnfM
05 de julho de 2010 às 19:52

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!