Postado Junho 20, 2014 11 anos function onUse(cid, item, position) if item.actionid == 20001 then if getPlayerItemCount(cid, 12285) >= 1 and getPlayerItemCount(cid, 12286) >= 1 and getPlayerItemCount(cid, 12287) >= 1 then if doPlayerRemoveItem(cid, 12285, 1) and doPlayerRemoveItem(cid, 12286, 1) and doPlayerRemoveItem(cid, 12287, 1) then doPlayerAddItem(cid, 12288, 1) doPlayerSendTextMessage(cid, 25, "Voce criou uma mega master staff") doSendMagicEffect(getPlayerPosition(cid), 49) end else doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerSendTextMessage(cid, 25, "Voce nao tem todos os items necessarios para fazer a mega master staff.") end end return true end <action actionid="20001" event="script" value="teste.lua"/> STYLLER OT 2022
Postado Junho 21, 2014 11 anos Autor Deixou espaço no 25 da linha 12 obrigado por responder. jájá vou testar... Editado Junho 21, 2014 11 anos por Krhiegen (veja o histórico de edições) Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado). Tópicos: [FAQ] BBCODE [LIB] Constant [RME] Administrando bordas. [TALK] Broadcast Editável. [TALK] Sugest. [TALK] Checkpoint. [MOVE] Pântano pegajoso. [ACTION] Piggy Bank. (Cassino). [GLOBAL] Uptime Ad. [C0DE] Consertando 'Invalid Password' [PROGRAM] Quest Maker
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.