PO

Ajuda Terminar Esse Script

Por polacoxd, 22 de jun. de 2011 em Archived

script
3
1.1k
polacoxdP
22 de junho de 2011 às 20:42

ESSE SCRIPT DO XAPINHAL TO COM MTAS DUVIDAS

 

function onSay(cid, words, param)

if getPlayerVocation(cid) == IDVOC then

if getPlayerItemCount(cid,IDITEM) >= QNTITEM then

if getPlayerSkill(cid, IDSKILL) <= LIMITESKILL then

doPlayerRemoveItem(cid,IDITEM,QNTITEM)

doPlayerSetSkill(cid, SKILL_NOMESKILL, getPlayerSkillLevel(cid, SKILL_NOMESKILL)+QNTSKILL)

else

doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Você tem o skill full.")

return true

end

else

doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Você não tem gold ignot suficiente.")

return true

end

else

doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Você não é knight.")

return true

end

 

end

 

 

QUERIA ELE PRA KNIGHT , PRA COMPRAR SWORD FIGHTING,ALGUEM AJUDA PLX?

Henrique MouraH
22 de junho de 2011 às 21:27

Mas ele já está pronto. Você só precisa editar os campos das var. de acordo com seu uso:

 

function onSay(cid, words, param)

if getPlayerVocation(cid) == IDVOC then

if getPlayerItemCount(cid,IDITEM) >= QNTITEM then

if getPlayerSkill(cid, IDSKILL) <= LIMITESKILL then

doPlayerRemoveItem(cid,IDITEM,QNTITEM)

doPlayerSetSkill(cid, SKILL_NOMESKILL, getPlayerSkillLevel(cid, SKILL_NOMESKILL)+QNTSKILL)

else

doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Você tem o skill full.")

return true

end

else

doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Você não tem gold ignot suficiente.")

return true

end

else

doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Você não é knight.")

return true

end

 

end

vctolivo95V
22 de junho de 2011 às 22:02

Mas ele já está pronto. Você só precisa editar os campos das var. de acordo com seu uso:

 

function onSay(cid, words, param)

if getPlayerVocation(cid) == IDVOC then

if getPlayerItemCount(cid,IDITEM) >= QNTITEM then

if getPlayerSkill(cid, IDSKILL) <= LIMITESKILL then

doPlayerRemoveItem(cid,IDITEM,QNTITEM)

doPlayerSetSkill(cid, SKILL_NOMESKILL, getPlayerSkillLevel(cid, SKILL_NOMESKILL)+QNTSKILL)

else

doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Você tem o skill full.")

return true

end

else

doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Você não tem gold ignot suficiente.")

return true

end

else

doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Você não é knight.")

return true

end

 

end

Onde coloca isso ???