Postado Abril 27, 2016 9 anos Aconteceu algo? Bug na distro..? Editado Abril 27, 2016 9 anos por Talesigorvr (veja o histórico de edições)
Postado Abril 27, 2016 9 anos Execute e me informe o que apareceu no seu chat padrão. function onDeath(cid, corpse, deathList, mostDamageKiller) local config = { createpos = { x = 571, y = 1009, z = 7}, fromPos = {x = 471, y = 1361, z = 7}, --canto superior esquerdo toPos = {x = 483, y = 1373, z = 7}, --canto inferior direito pos = {x = 578, y = 1014, z = 7}, --templo } local function getPlayersInArea(fromPos, toPos) local t = {} for _, cid in ipairs(getPlayersOnline()) do if isInRange(getThingPos(cid), fromPos, toPos) then table.insert(t, cid) end end return t end if getCreatureName(cid) == "Tower Event" then doRemoveItem(getTileItemById(config.createpos, 1387).uid) doSendAnimatedText(createpos, "BOSS",130) addEvent(doSendAnimatedText,800, config.createpos, "MORTO",130) doSendMagicEffect(config.createpos, CONST_ME_POFF) doPlayerSendTextMessage(cid, 19, "a") if isPlayer (cid) then if table.getn(getPlayersInArea (config.fromPos, config.toPos)) >= 1 then doTeleportThing(cid, config.pos) doPlayerSendTextMessage(cid, 19, "b") end end end return true end
Postado Abril 27, 2016 9 anos Autor no defaut apareceu isso 22:41 /tower-on 22:41 ~> [TOWER] foi aberto no Templo.
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.