Galera tenho ot global full em linux usando mysql e nele tem zombie event, mas to tendo um problema, os players usam magic wall dentro do zombie event e a mw nao some lembrando que lá dentro é area n-pvp, e ela fica eterna lá, e notei tbm que qdo vc usa magic wall em lugar normal fica assim:
18:59 You see a magic wall.
ItemID: [1497].
DecayTo: [0].
Position: [X: 1861] [Y: 1939] [Z: 3].
ja quando da look em magic wall dentro da zombie event ele fica assim:
18:57 You see an item of type 11098, please report it to gamemaster.
ItemID: [11098].
Position: [X: 32332] [Y: 31925] [Z: 7].
me ajudem ai pra não usar magic wall no zombie event ou ela sumir apos os 20 segundos, espero ajuda.
ai meu zombieevet.lua
local config = {
semana_mes = "semana",
days = {1,4,6},
goblet = 5805, -- id of the gold goblet you'll get when finishing the event.
rewards = {2195, 2152, 2160}, -- You will get this + a gold goblet with your name on.
moneyReward = {2160, 10, 1}, -- second collumn(count) 0 if you don't want money to be used. or a stackable item you want more than 1 of.
playerCount = 2001, -- Global storage for counting the players left/entered in the event
zombieCount = 2002, -- Global storage for counting the zombies in the event
teleportActionId = 2008, -- Action id of the teleport needed for the movement script
teleportPosition = {x = 32364, y = 32239, z = 7, stackpos = 1}, -- Where the teleport will be created
teleportToPosition = {x = 32334, y = 31935, z = 7}, -- Where the teleport will take you
teleportId = 1387, -- Id of the teleport
timeToStartEvent = 10, -- Minutes, after these minutes the teleport will be removed and the event will be declared started
timeBetweenSpawns = 20, -- Seconds between each spawn of zombie
zombieName = "event zombie", -- Name of the zombie that should be summoned
playersNeededToStartEvent = 3, -- Players needed before the zombies can spawn.
-- Should be the same as in the creaturescript!
-- The zombies will spawn randomly inside this area
fromPosition = {x = 32321, y = 31924, z = 7}, -- top left cornor of the playground
toPosition = {x = 32347, y = 31946, z = 7} -- bottom right cornor of the playground
}
function onTime()
local time = os.date("*t")
if (config.semana_mes == "semana" and isInArray(config.days,time.wday)) or (config.semana_mes == "mes" and isInArray(config.days,time.day)) or config.semana_mes == "" then
local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition)
doBroadcastMessage("Zombie event starting in " .. config.timeToStartEvent .. " minutes! The teleport will be closed when the event start!", MESSAGE_STATUS_WARNING)
doBroadcastMessage("Good luck in the zombie event people! The teleport has closed!", MESSAGE_STATUS_WARNING)
for x = fromp.x, top.x do
for y = fromp.y, top.y do
for z = fromp.z, top.z do
areapos = {x = x, y = y, z = z, stackpos = 253}
getPlayers = getThingfromPos(areapos)
if isPlayer(getPlayers.uid) then
doPlayerSendTextMessage(getPlayers.uid, MESSAGE_EVENT_ADVANCE, "The first zombie will spawn in " .. config.timeBetweenSpawns .. " seconds! Good luck!")
pvgaylord()
end
end
end
end
else
doBroadcastMessage("The Zombie event could not start because of to few players participating.\n At least " .. config.playersNeededToStartEvent .. " players is needed!", MESSAGE_STATUS_WARNING)
doBroadcastMessage("A zombie has spawned! There is currently " .. getGlobalStorageValue(config.zombieCount) .. " zombies in the zombie event!", MESSAGE_STATUS_CONSOLE_RED)
info
Grupo: Campones
Registrado: 04/12/11
Posts: 5
Reputação: 0
Galera tenho ot global full em linux usando mysql e nele tem zombie event, mas to tendo um problema, os players usam magic wall dentro do zombie event e a mw nao some lembrando que lá dentro é area n-pvp, e ela fica eterna lá, e notei tbm que qdo vc usa magic wall em lugar normal fica assim:
18:59 You see a magic wall.
ItemID: [1497].
DecayTo: [0].
Position: [X: 1861] [Y: 1939] [Z: 3].
ja quando da look em magic wall dentro da zombie event ele fica assim:
18:57 You see an item of type 11098, please report it to gamemaster.
ItemID: [11098].
Position: [X: 32332] [Y: 31925] [Z: 7].
me ajudem ai pra não usar magic wall no zombie event ou ela sumir apos os 20 segundos, espero ajuda.
ai meu zombieevet.lua
Editado Janeiro 13 por majorinsanity