Ajuda Terminar Esse Script

polacoxd
em Lixeira Pública

polacoxd

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 15/04/08Posts: 1Char no Tibia: knight

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 Moura

Ex-administrador
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 17/02/08Posts: 2541

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

KaKilo ~
 


Lom14fD.png

vctolivo95

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 23/06/11Posts: 56

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 ???

Aldebaran-OT Server Baiak custom inaugurado 18/08/12.