Postado Julho 6, 2015 9 anos Você quer que não summona? local paradinha_id = 22641 local itemX, quantidadeX = 22607, 1 local tb_players = { [1] = {pos = {x=33607,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, [2] = {pos = {x=33608,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, [3] = {pos = {x=33609,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, [4] = {pos = {x=33610,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, [5] = {pos = {x=33611,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, } function onUse(cid, item, fromPosition, itemEx, toPosition) local plataforma = 0 if itemEx.itemid == paradinha_id then for k,valor in pairs(tb_players) do all = getThingfromPos(valor.pos) if all.itemid > 0 and isPlayer(all.uid) then plataforma = plataforma+ all.itemid end end if plataforma == #tb_players then for k,valor in pairs(tb_players) do all = getThingfromPos(valor.pos) doTeleportThing(all.uid,valor.topos) doPlayerRemoveItem(cid, itemX, quantidadeX) end else doPlayerSendCancel(cid,"You need "..#tb_players.." players.") end end return true end Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestões?
Postado Julho 6, 2015 9 anos Autor Em 06/07/2015 em 12:27, rogaforyn2 disse: Você quer que não summona? local paradinha_id = 22641 local itemX, quantidadeX = 22607, 1 local tb_players = { [1] = {pos = {x=33607,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, [2] = {pos = {x=33608,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, [3] = {pos = {x=33609,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, [4] = {pos = {x=33610,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, [5] = {pos = {x=33611,y=32362,z=11, stackpos=253},topos = {x=33534,y=32333,z=12}}, } function onUse(cid, item, fromPosition, itemEx, toPosition) local plataforma = 0 if itemEx.itemid == paradinha_id then for k,valor in pairs(tb_players) do all = getThingfromPos(valor.pos) if all.itemid > 0 and isPlayer(all.uid) then plataforma = plataforma+ all.itemid end end if plataforma == #tb_players then for k,valor in pairs(tb_players) do all = getThingfromPos(valor.pos) doTeleportThing(all.uid,valor.topos) doPlayerRemoveItem(cid, itemX, quantidadeX) end else doPlayerSendCancel(cid,"You need "..#tb_players.." players.") end end return true end entao , quero q ele summone mas somente 1 , nao 5
Postado Julho 6, 2015 9 anos No ultimo script ali que tu citou antes do meu Muda addEvent(doSummonCreature, 45*1, "Prince Drazzak", {x = 33523, y = 32334, z = 12}) Pra doSummonCreature("Prince Drazzak", {x = 33523, y = 32334, z = 12}) Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestões?
Postado Julho 6, 2015 9 anos Solução Ah, tem que por depois do end, muda doSummonCreature("Prince Drazzak", {x = 33523, y = 32334, z = 12}) end Pra: end doSummonCreature("Prince Drazzak", {x = 33523, y = 32334, z = 12}) Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestõ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.