Postado Março 6, 2017 8 anos Autor 11 horas atrás, linhares894 disse: Sim está tudo certo, unico problema é esse todos morrem mas evento não acaba e o ultimo não tem premio, será que é storageid algo assim? Resolvi era nome do zombie que estava diferente, quando eu inicio com !zombiestart não da nenhum problema agora quando inicia automático, ele fica floodando que está começando e eu fui modificar o globalevents para "6000" e não achei essa linha, qual arquivo fica? pois eu baixei daquele winrar que se postou. fica na tag globalevents.xml nesta linha: <globalevent name="ZombieEvent" interval="60" event="script" value="zombie_global.lua"/> deixe <globalevent name="ZombieEvent" interval="60000" event="script" value="zombie_global.lua"/> [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Março 10, 2017 8 anos @Vodkart, o meu deu este erro aqui: [9/3/2017 23:20:34] [Error - MoveEvents Interface] [9/3/2017 23:20:34] In a timer event called from: [9/3/2017 23:20:34] domodlib('zombie_config') [9/3/2017 23:20:34] function onStepIn(cid, item, position, fromPosition) [9/3/2017 23:20:34] if not isPlayer(cid) then return true end [9/3/2017 23:20:34] if getPlayerAccess(cid) > 3 then return doTeleportThing(cid, zombie_config.teleport[2]) end [9/3/2017 23:20:34] if getPlayerLevel(cid) < zombie_config.min_Level then [9/3/2017 23:20:34] doTeleportThing(cid, fromPosition, true) [9/3/2017 23:20:34] doPlayerSendCancel(cid, "You need to be at least level " .. zombie_config.min_Level .. ".") [9/3/2017 23:20:34] doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) [9/3/2017 23:20:34] return true [9/3/2017 23:20:34] end [9/3/2017 23:20:34] if getGlobalStorageValue(zombie_config.storages[1]) <= zombie_config.players.max then [9/3/2017 23:20:34] doTeleportThing(cid, zombie_config.teleport[2]) [9/3/2017 23:20:34] setGlobalStorageValue(zombie_config.storages[1], getGlobalStorageValue(zombie_config.storages[1])+1) [9/3/2017 23:20:34] doBroadcastMessage(getPlayerName(cid) .. " entered the Zombie event! Currently " .. getGlobalStorageValue(zombie_config.storages[1]) .. " players have joined!", MESSAGE_STATUS_CONSOLE_RED) [9/3/2017 23:20:34] if getGlobalStorageValue(zombie_config.storages[1]) == zombie_config.players.max then [9/3/2017 23:20:34] setGlobalStorageValue(zombie_config.storages[1], getGlobalStorageValue(zombie_config.storages[1])+1) [9/3/2017 23:20:34] removeZombieTp() [9/3/2017 23:20:34] doBroadcastMessage("The Zombie event is now full [" .. getGlobalStorageValue(zombie_config.storages[1])-1 .. " players]! The event will soon start.") [9/3/2017 23:20:34] for _, var in pairs(getPlayersInZombieEvent()) do [9/3/2017 23:20:34] doPlayerSendTextMessage(var, MESSAGE_EVENT_ADVANCE, "The first zombie will spawn in " .. zombie_config.timeToStartEvent .. " seconds! Good luck!") [9/3/2017 23:20:34] end [9/3/2017 23:20:34] addEvent(spawnZombie, zombie_config.timeToStartEvent*1000) [9/3/2017 23:20:34] end [9/3/2017 23:20:34] end [9/3/2017 23:20:34] return true [9/3/2017 23:20:34] end:onStepIn [9/3/2017 23:20:34] Description: [9/3/2017 23:20:34] stack overflow [9/3/2017 23:20:34] stack traceback: [9/3/2017 23:20:34] [C]: in function 'hasProperty' [9/3/2017 23:20:34] [string "zombie_config = {..."]:62: in function 'isWalkable' [9/3/2017 23:20:34] [string "zombie_config = {..."]:81: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] ... [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:35] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:35] [string "zombie_config = {..."]:82: in function <[string "zombie_config = {..."]:78> Versão 8.60 Otx 2.8 (tfs 0.3.7)
Postado Março 10, 2017 8 anos Autor 12 horas atrás, Weslley Kiyo disse: @Vodkart, o meu deu este erro aqui: [9/3/2017 23:20:34] [Error - MoveEvents Interface] [9/3/2017 23:20:34] In a timer event called from: [9/3/2017 23:20:34] domodlib('zombie_config') [9/3/2017 23:20:34] function onStepIn(cid, item, position, fromPosition) [9/3/2017 23:20:34] if not isPlayer(cid) then return true end [9/3/2017 23:20:34] if getPlayerAccess(cid) > 3 then return doTeleportThing(cid, zombie_config.teleport[2]) end [9/3/2017 23:20:34] if getPlayerLevel(cid) < zombie_config.min_Level then [9/3/2017 23:20:34] doTeleportThing(cid, fromPosition, true) [9/3/2017 23:20:34] doPlayerSendCancel(cid, "You need to be at least level " .. zombie_config.min_Level .. ".") [9/3/2017 23:20:34] doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) [9/3/2017 23:20:34] return true [9/3/2017 23:20:34] end [9/3/2017 23:20:34] if getGlobalStorageValue(zombie_config.storages[1]) <= zombie_config.players.max then [9/3/2017 23:20:34] doTeleportThing(cid, zombie_config.teleport[2]) [9/3/2017 23:20:34] setGlobalStorageValue(zombie_config.storages[1], getGlobalStorageValue(zombie_config.storages[1])+1) [9/3/2017 23:20:34] doBroadcastMessage(getPlayerName(cid) .. " entered the Zombie event! Currently " .. getGlobalStorageValue(zombie_config.storages[1]) .. " players have joined!", MESSAGE_STATUS_CONSOLE_RED) [9/3/2017 23:20:34] if getGlobalStorageValue(zombie_config.storages[1]) == zombie_config.players.max then [9/3/2017 23:20:34] setGlobalStorageValue(zombie_config.storages[1], getGlobalStorageValue(zombie_config.storages[1])+1) [9/3/2017 23:20:34] removeZombieTp() [9/3/2017 23:20:34] doBroadcastMessage("The Zombie event is now full [" .. getGlobalStorageValue(zombie_config.storages[1])-1 .. " players]! The event will soon start.") [9/3/2017 23:20:34] for _, var in pairs(getPlayersInZombieEvent()) do [9/3/2017 23:20:34] doPlayerSendTextMessage(var, MESSAGE_EVENT_ADVANCE, "The first zombie will spawn in " .. zombie_config.timeToStartEvent .. " seconds! Good luck!") [9/3/2017 23:20:34] end [9/3/2017 23:20:34] addEvent(spawnZombie, zombie_config.timeToStartEvent*1000) [9/3/2017 23:20:34] end [9/3/2017 23:20:34] end [9/3/2017 23:20:34] return true [9/3/2017 23:20:34] end:onStepIn [9/3/2017 23:20:34] Description: [9/3/2017 23:20:34] stack overflow [9/3/2017 23:20:34] stack traceback: [9/3/2017 23:20:34] [C]: in function 'hasProperty' [9/3/2017 23:20:34] [string "zombie_config = {..."]:62: in function 'isWalkable' [9/3/2017 23:20:34] [string "zombie_config = {..."]:81: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] ... [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:34] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:35] [string "zombie_config = {..."]:82: in function 'spawnZombie' [9/3/2017 23:20:35] [string "zombie_config = {..."]:82: in function <[string "zombie_config = {..."]:78> Versão 8.60 Otx 2.8 (tfs 0.3.7) está dando erro na função 'isWalkable' como se no seu serve não existisse a função 'hasProperty' [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Março 10, 2017 8 anos 3 horas atrás, Vodkart disse: está dando erro na função 'isWalkable' como se no seu serve não existisse a função 'hasProperty' Mio então. Não funfa pra OTX ehuehu Testei aqui, funciona tudo perfeito. Só não a parte de sumonar os zombies Adicionei os zombies com o god (para test) e ocorreu tudo bem. Editado Março 10, 2017 8 anos por Weslley Kiyo (veja o histórico de edições)
Postado Março 10, 2017 8 anos Autor 8 minutos atrás, Weslley Kiyo disse: Mio então. Não funfa pra OTX ehuehu rlx que chegando em casa eu mando uma versão pra otx [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
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.