Postado Março 8, 2017 8 anos Autor Em 05/03/2017 ás 09:36, Vodkart disse: function doCreateFerumbras(amount) local vetor = 0 local Area = {{x=7649,y=16379,z=5},{x=7735,y=16443,z=7}} repeat local pos = {x=math.random(Area[1].x, Area[2].x), y=math.random(Area[1].y,Area[2].y), z=math.random(Area[1].z,Area[2].z)} if isWalkable(pos, false, false, false) then doSummonCreature("Ferumbras", pos) vetor = vetor + 1 end until vetor == amount end function onSay(cid, words, param, channel) local avisoproibido = "Desculpe isso não é possível." local horario = "Apenas uma vez por dia os deuses podem ser liberados." if getTileHouseInfo(getThingPos(cid)) then return doPlayerSendCancel(cid,avisoproibido) end if getTilePzInfo(getThingPos(cid)) then return doPlayerSendCancel(cid,avisoproibido) end if getTileHouseInfo(getThingPos(cid)) then return doPlayerSendCancel(cid,horario) end local M = { Pos = {x=32369,y=32228,z=7}, id= 1355, time = 86400} local x = M function criar() local parede = getTileItemById(x.Pos, x.id) doCreateItem(x.id, 1, x.Pos) end local tempo = 1*24*60*60 local storage = 94368 if x then local parede = getTileItemById(x.Pos, x.id) if getTileInfo(getCreaturePosition(cid)).itemid == 3217 or 3216 then if (getPlayerStorageValue(cid, storage) <= os.time()) then if parede then setPlayerStorageValue(cid, storage, os.time()+tempo) doRemoveItem(parede.uid, 1) --doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))-- doPlayerSendTextMessage(cid, 25, "A furia dos Deuses foi liberada tenha cuidado") doCreateFerumbras(30) addEvent(criar, x.time*1000) end else doPlayerSendCancel(cid, "A furia dos deuses só pode ser liberada a cada 24 horas.") end end end return true end obs: só adicionei a parte que cria ferumbras no mapa, você pediu. ???????????????????????????????????????? help?
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.