Postado Maio 10, 2015 10 anos Olá pessoal! Possuo esse script de criação(spell) no meu ot: function onCastSpell(cid) local number = 0.5 local can = false if getPlayerItemCount(cid, 10548) < 1 then doPlayerSendCancel(cid, "Sorry, not possible.") return false end doSendAnimatedText(getThingPos(cid), "MOLOTOV Produzido!", TEXTCOLOR_ORANGE) doSendMagicEffect(getThingPosition(cid), 12) doPlayerAddItem(cid, 2305, 1) doPlayerRemoveItem(cid, 10548, 1) return false end ele apenas pede o item 10548(garrafa) para produzir um 2305(Coquetel MOLOTOV).. queria alterar para pedir: 1 pedaço de pano 1 garrafa vazia 1 gasolina ou 1 pedaço de pano 1 garrafa de bebida quanto aos IDs, pode deixar PEDAÇODEPANO - GARRAFABEBIDA e tal, que eu configuro depois.. agradeço desde já!
Postado Maio 10, 2015 10 anos Solução Olá pessoal! Possuo esse script de criação(spell) no meu ot: function onCastSpell(cid) local number = 0.5 local can = false if getPlayerItemCount(cid, 10548) < 1 then doPlayerSendCancel(cid, "Sorry, not possible.") return false end doSendAnimatedText(getThingPos(cid), "MOLOTOV Produzido!", TEXTCOLOR_ORANGE) doSendMagicEffect(getThingPosition(cid), 12) doPlayerAddItem(cid, 2305, 1) doPlayerRemoveItem(cid, 10548, 1) return false end ele apenas pede o item 10548(garrafa) para produzir um 2305(Coquetel MOLOTOV).. queria alterar para pedir: 1 pedaço de pano 1 garrafa vazia 1 gasolina ou 1 pedaço de pano 1 garrafa de bebida quanto aos IDs, pode deixar PEDAÇODEPANO - GARRAFABEBIDA e tal, que eu configuro depois.. agradeço desde já! Estou aprendendo a criar spells agora, mas vou tentar te ajudar... Tenta assim, se não for me avisa que eu mudo: function onCastSpell(cid) local number = 0.5 local can = false if getPlayerItemCount(cid, ID GARRAFA) < 1 then doPlayerSendCancel(cid, "Sorry, not possible.") return false end if getPlayerItemCount(cid, ID PANO) < 1 then doPlayerSendCancel(cid, "Sorry, not possible.") return false end if getPlayerItemCount(cid, ID GASOSA) < 1 then doPlayerSendCancel(cid, "Sorry, not possible.") return false end doSendAnimatedText(getThingPos(cid), "MOLOTOV Produzido!", TEXTCOLOR_ORANGE) doSendMagicEffect(getThingPosition(cid), 12) doPlayerAddItem(cid, 2305, 1) doPlayerRemoveItem(cid, ID GARRAFA, 1) doPlayerRemoveItem(cid, ID PANO, 1) doPlayerRemoveItem(cid, ID GASOSA, 1) return false end Editado Maio 10, 2015 10 anos por kaiosaj (veja o histórico de edições)
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.