Como fazer Alavanca De Compra Potions/Runas?
Alguem Podia me ajudar....
Como fazer Alavanca De Compra Potions/Runas?
Alguem Podia me ajudar....
<action actionid="action da alavanca" script="nome do arquivo.lua"/>
smp_id = 7589 -- Id do item
custosmp_id = 5000 -- Preçocargassmp_id = 100 -- Quantidadelocal name = getItemNameById(smp_id)function onUse(cid, item, fromPosition, itemEx, toPosition)if doPlayerRemoveMoney(cid, custosmp_id) == TRUE thendoSendAnimatedText(fromPosition, "", TEXTCOLOR_YELLOW)doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have purchased a 100 ".. name .."s for ".. custosmp_id .." gold.")for i=1,1 dodoPlayerAddItem(cid,smp_id, cargassmp_id)endelsedoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need ".. custosmp_id .." gold coins for a 100 ".. name .."s.")endreturn FALSEend