Ir para conteúdo
  • Cadastre-se

Problema com Zombie Events


Posts Recomendados

Boa noite...

 

creio eu q achei um zombie event q funciono no meu server.... porem quando eu digito !zombie (pra começar) ele aparece escrito:

The Zombie 

 

(usando comando no player) 

Event has not started yet.

e

 

(usando com o god)

No Gms can join.

aki esta minha talk:

 

dofile('data/zombie_system.lua')


function onSay(cid, words, param)
local player = Player(cid)
if player:getGroup():getAccess() then
player:sendTextMessage(MESSAGE_INFO_DESCR, "No Gms can join.")
return false
end
if ze_started == started then
player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event has already started.")
return false
end
if ze_started == true then
if ze_joined_count < ze_max_players then
if not player:isPzLocked() then
player:teleportTo(ze_waiting_room_pos, false)
ze_joined_count = ze_joined_count + 1
broadcastMessage(""..player:getName().." has joined the Zombie Event! ["..ze_joined_count.."/"..ze_max_players.."].", MESSAGE_STATUS_WARNING)
player:setStorageValue(ze_join_storage, 1)
else
player:sendCancelMessage("You can't join the zombie while you are in a fight!")
end
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event is already full! ["..ze_joined_count.."/"..ze_max_players.."]")
end
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event has not started yet.")
end
return false
end

 

 

Posso postar link de outro forum aki... ??? pois la tem todos os scripts... caso queiram ver...

 

rep pra quem ajudar...

 

Link para o post
Compartilhar em outros sites

Boa noite...

 

creio eu q achei um zombie event q funciono no meu server.... porem quando eu digito !zombie (pra começar) ele aparece escrito:

The Zombie 

 

(usando comando no player) 

Event has not started yet.

e

 

(usando com o god)

No Gms can join.

aki esta minha talk:

 

dofile('data/zombie_system.lua')

function onSay(cid, words, param)

local player = Player(cid)

if player:getGroup():getAccess() then

player:sendTextMessage(MESSAGE_INFO_DESCR, "No Gms can join.")

return false

end

if ze_started == started then

player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event has already started.")

return false

end

if ze_started == true then

if ze_joined_count < ze_max_players then

if not player:isPzLocked() then

player:teleportTo(ze_waiting_room_pos, false)

ze_joined_count = ze_joined_count + 1

broadcastMessage(""..player:getName().." has joined the Zombie Event! ["..ze_joined_count.."/"..ze_max_players.."].", MESSAGE_STATUS_WARNING)

player:setStorageValue(ze_join_storage, 1)

else

player:sendCancelMessage("You can't join the zombie while you are in a fight!")

end

else

player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event is already full! ["..ze_joined_count.."/"..ze_max_players.."]")

end

else

player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event has not started yet.")

end

return false

end

 

 

Posso postar link de outro forum aki... ??? pois la tem todos os scripts... caso queiram ver...

 

rep pra quem ajudar...

Ja tentou usar /zombie on ou /zombie started ?

Senhoras e senhores, se alguma resposta lhe ajudou, marque-a como a melhor resposta e de ponto positivo, assim você incentiva quem lhe ajudou a continuar ajudando!!.

Link para o post
Compartilhar em outros sites

n pq da onde eu peguei isso.. so tinha 1 fala (talkactions)  q era !zombie no caso eu acho q ja é td programado ou seila... olha esse zombie system:

 

--players variables


ze_join_storage = 1000 --player join storage
ze_min_players = 1 --min players needed when time runout
ze_max_players = 25 --max players to join
ze_trophy = 7369 --trophy id
ze_trophy_desc = "has won the Zombie Event." --winner description on the trophy

--other variables
ze_wait_minutes = 1 --when event has opened, how long until it starts?
ze_started = false --dont touch
ze_waiting_room_pos = {x = 380, y = 1138, z = 7} --middle of waiting room
ze_zombie_arena = {x = 345, y = 1138, z = 7} --when even start where should player be teleported in the zombie arena?
ze_Arena_fromPosition = {x = 299, y = 1116, z = 7} --pos of top left corner
ze_Arena_toPosition = {x = 335, y = 1173, z = 7} --pos of bottom right corner
ze_middle_zombie_arena = {x = 329, y = 1141, z = 7} --Middle pos of the arena
ze_joined_count = 0 --dont touch
ze_waiting_room_radius_x = 6 --depends how big the waiting room is 20sqm to x
ze_waiting_room_radius_y = 10 --depends how big the waiting room is 20sqm to y
ze_zombie_arena_radius_x = 51 --Depends how big the zombie arena is 50sqm to x
ze_zombie_arena_radius_y = 73 --Depends how big the zombie arena is 50sqm to y

function startZombie()
local specs = Game.getSpectators(ze_waiting_room_pos, false, true, 0, ze_waiting_room_radius_x, 0, ze_waiting_room_radius_y)
if ze_joined_count >= ze_min_players then
for i = 1, #specs do
specs:teleportTo(ze_zombie_arena, true)
end
broadcastMessage("Zombie Event has started, good luck to all participant.", MESSAGE_STATUS_WARNING)
ze_started = started
doStartZombieEvasion()
else
for i = 1, #specs do
specs:teleportTo(specs:getTown():getTemplePosition(), false)
specs:setStorageValue(ze_join_storage, 0)
end
resetVariables()
broadcastMessage("Zombie Event failed to start, because of to little players joined the event!", MESSAGE_STATUS_WARNING)
end
end

function doSummonZombie()
if ze_zombie_count < ze_max_zombies then
local zomb = Game.createMonster(ze_Zombie_Name, {x = math.random(ze_Arena_fromPosition.x, ze_Arena_toPosition.x), y = math.random(ze_Arena_fromPosition.y, ze_Arena_toPosition.y), z = math.random(ze_Arena_fromPosition.z, ze_Arena_toPosition.z)})
if zomb == false then
Game.createMonster(ze_Zombie_Name, {x = math.random(ze_Arena_fromPosition.x, ze_Arena_toPosition.x), y = math.random(ze_Arena_fromPosition.y, ze_Arena_toPosition.y), z = math.random(ze_Arena_fromPosition.z, ze_Arena_toPosition.z)})
end
ze_zombie_count = ze_zombie_count + 1
end
end

function doStartZombieEvasion()
if ze_started == started then
doSummonZombie()
addEvent(doStartZombieEvasion, 5 * 1000)
end
end

function resetVariables()
ze_started = false
ze_joined_count = 0
ze_zombie_count = 0
end

function doClearZombieArena()
local specs = Game.getSpectators(ze_middle_zombie_arena, false, false, 0, ze_zombie_arena_radius_x, 0, ze_zombie_arena_radius_y)
for i = 1, #specs do
if specs:getName() == ze_Zombie_Name then
specs:remove()
end
end
end

 

e a talk

 

dofile('data/zombie_system.lua')


function onSay(cid, words, param)
local player = Player(cid)
if player:getGroup():getAccess() then
player:sendTextMessage(MESSAGE_INFO_DESCR, "No Gms can join.")
return false
end
if ze_started == started then
player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event has already started.")
return false
end
if ze_started == true then
if ze_joined_count < ze_max_players then
if not player:isPzLocked() then
player:teleportTo(ze_waiting_room_pos, false)
ze_joined_count = ze_joined_count + 1
broadcastMessage(""..player:getName().." has joined the Zombie Event! ["..ze_joined_count.."/"..ze_max_players.."].", MESSAGE_STATUS_WARNING)
player:setStorageValue(ze_join_storage, 1)
else
player:sendCancelMessage("You can't join the zombie while you are in a fight!")
end
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event is already full! ["..ze_joined_count.."/"..ze_max_players.."]")
end
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event has not started yet.")
end
return false
end

Editado por maper007 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

n pq da onde eu peguei isso.. so tinha 1 fala (talkactions)  q era !zombie no caso eu acho q ja é td programado ou seila... olha esse zombie system:

 

--players variables

ze_join_storage = 1000 --player join storage

ze_min_players = 1 --min players needed when time runout

ze_max_players = 25 --max players to join

ze_trophy = 7369 --trophy id

ze_trophy_desc = "has won the Zombie Event." --winner description on the trophy

--other variables

ze_wait_minutes = 1 --when event has opened, how long until it starts?

ze_started = false --dont touch

ze_waiting_room_pos = {x = 380, y = 1138, z = 7} --middle of waiting room

ze_zombie_arena = {x = 345, y = 1138, z = 7} --when even start where should player be teleported in the zombie arena?

ze_Arena_fromPosition = {x = 299, y = 1116, z = 7} --pos of top left corner

ze_Arena_toPosition = {x = 335, y = 1173, z = 7} --pos of bottom right corner

ze_middle_zombie_arena = {x = 329, y = 1141, z = 7} --Middle pos of the arena

ze_joined_count = 0 --dont touch

ze_waiting_room_radius_x = 6 --depends how big the waiting room is 20sqm to x

ze_waiting_room_radius_y = 10 --depends how big the waiting room is 20sqm to y

ze_zombie_arena_radius_x = 51 --Depends how big the zombie arena is 50sqm to x

ze_zombie_arena_radius_y = 73 --Depends how big the zombie arena is 50sqm to y

function startZombie()

local specs = Game.getSpectators(ze_waiting_room_pos, false, true, 0, ze_waiting_room_radius_x, 0, ze_waiting_room_radius_y)

if ze_joined_count >= ze_min_players then

for i = 1, #specs do

specs:teleportTo(ze_zombie_arena, true)

end

broadcastMessage("Zombie Event has started, good luck to all participant.", MESSAGE_STATUS_WARNING)

ze_started = started

doStartZombieEvasion()

else

for i = 1, #specs do

specs:teleportTo(specs:getTown():getTemplePosition(), false)

specs:setStorageValue(ze_join_storage, 0)

end

resetVariables()

broadcastMessage("Zombie Event failed to start, because of to little players joined the event!", MESSAGE_STATUS_WARNING)

end

end

function doSummonZombie()

if ze_zombie_count < ze_max_zombies then

local zomb = Game.createMonster(ze_Zombie_Name, {x = math.random(ze_Arena_fromPosition.x, ze_Arena_toPosition.x), y = math.random(ze_Arena_fromPosition.y, ze_Arena_toPosition.y), z = math.random(ze_Arena_fromPosition.z, ze_Arena_toPosition.z)})

if zomb == false then

Game.createMonster(ze_Zombie_Name, {x = math.random(ze_Arena_fromPosition.x, ze_Arena_toPosition.x), y = math.random(ze_Arena_fromPosition.y, ze_Arena_toPosition.y), z = math.random(ze_Arena_fromPosition.z, ze_Arena_toPosition.z)})

end

ze_zombie_count = ze_zombie_count + 1

end

end

function doStartZombieEvasion()

if ze_started == started then

doSummonZombie()

addEvent(doStartZombieEvasion, 5 * 1000)

end

end

function resetVariables()

ze_started = false

ze_joined_count = 0

ze_zombie_count = 0

end

function doClearZombieArena()

local specs = Game.getSpectators(ze_middle_zombie_arena, false, false, 0, ze_zombie_arena_radius_x, 0, ze_zombie_arena_radius_y)

for i = 1, #specs do

if specs:getName() == ze_Zombie_Name then

specs:remove()

end

end

end

 

e a talk

 

dofile('data/zombie_system.lua')

function onSay(cid, words, param)

local player = Player(cid)

if player:getGroup():getAccess() then

player:sendTextMessage(MESSAGE_INFO_DESCR, "No Gms can join.")

return false

end

if ze_started == started then

player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event has already started.")

return false

end

if ze_started == true then

if ze_joined_count < ze_max_players then

if not player:isPzLocked() then

player:teleportTo(ze_waiting_room_pos, false)

ze_joined_count = ze_joined_count + 1

broadcastMessage(""..player:getName().." has joined the Zombie Event! ["..ze_joined_count.."/"..ze_max_players.."].", MESSAGE_STATUS_WARNING)

player:setStorageValue(ze_join_storage, 1)

else

player:sendCancelMessage("You can't join the zombie while you are in a fight!")

end

else

player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event is already full! ["..ze_joined_count.."/"..ze_max_players.."]")

end

else

player:sendTextMessage(MESSAGE_INFO_DESCR, "The Zombie Event has not started yet.")

end

return false

end

Tenta com /zombie started ou /zombie on.

Senhoras e senhores, se alguma resposta lhe ajudou, marque-a como a melhor resposta e de ponto positivo, assim você incentiva quem lhe ajudou a continuar ajudando!!.

Link para o post
Compartilhar em outros sites

rep pra vc por ter tentado me ajudar,, vlw. Ja resolvi o problema... ele é por tempo... e n por comando... porem tava testando aki e so na hora de sumonar o zumbi é q da erro alguem pode me ajudar ???

 

_upload_3.jpg

 

zombie system

--players variables


ze_join_storage = 1000 --player join storage
ze_min_players = 1 --min players needed when time runout
ze_max_players = 25 --max players to join
ze_trophy = 7369 --trophy id
ze_trophy_desc = "has won the Zombie Event." --winner description on the trophy

--other variables
ze_wait_minutes = 1 --when event has opened, how long until it starts?
ze_started = false --dont touch
ze_waiting_room_pos = {x = 380, y = 1138, z = 7} --middle of waiting room
ze_zombie_arena = {x = 345, y = 1138, z = 7} --when even start where should player be teleported in the zombie arena?
ze_Arena_fromPosition = {x = 299, y = 1116, z = 7} --pos of top left corner
ze_Arena_toPosition = {x = 335, y = 1173, z = 7} --pos of bottom right corner
ze_middle_zombie_arena = {x = 329, y = 1141, z = 7} --Middle pos of the arena
ze_joined_count = 0 --dont touch
ze_waiting_room_radius_x = 6 --depends how big the waiting room is 20sqm to x
ze_waiting_room_radius_y = 10 --depends how big the waiting room is 20sqm to y
ze_zombie_arena_radius_x = 51 --Depends how big the zombie arena is 50sqm to x
ze_zombie_arena_radius_y = 73 --Depends how big the zombie arena is 50sqm to y

function startZombie()
local specs = Game.getSpectators(ze_waiting_room_pos, false, true, 0, ze_waiting_room_radius_x, 0, ze_waiting_room_radius_y)
if ze_joined_count >= ze_min_players then
for i = 1, #specs do
specs:teleportTo(ze_zombie_arena, true)
end
broadcastMessage("Zombie Event has started, good luck to all participant.", MESSAGE_STATUS_WARNING)
ze_started = started
doStartZombieEvasion()
else
for i = 1, #specs do
specs:teleportTo(specs:getTown():getTemplePosition(), false)
specs:setStorageValue(ze_join_storage, 0)
end
resetVariables()
broadcastMessage("Zombie Event failed to start, because of to little players joined the event!", MESSAGE_STATUS_WARNING)
end
end

function doSummonZombie()
if ze_zombie_count < ze_max_zombies then
local zomb = Game.createMonster(ze_Zombie_Name, {x = math.random(ze_Arena_fromPosition.x, ze_Arena_toPosition.x), y = math.random(ze_Arena_fromPosition.y, ze_Arena_toPosition.y), z = math.random(ze_Arena_fromPosition.z, ze_Arena_toPosition.z)})
if zomb == false then
Game.createMonster(ze_Zombie_Name, {x = math.random(ze_Arena_fromPosition.x, ze_Arena_toPosition.x), y = math.random(ze_Arena_fromPosition.y, ze_Arena_toPosition.y), z = math.random(ze_Arena_fromPosition.z, ze_Arena_toPosition.z)})
end
ze_zombie_count = ze_zombie_count + 1
end
end

function doStartZombieEvasion()
if ze_started == started then
doSummonZombie()
addEvent(doStartZombieEvasion, 5 * 1000)
end
end

function resetVariables()
ze_started = false
ze_joined_count = 0
ze_zombie_count = 0
end

function doClearZombieArena()
local specs = Game.getSpectators(ze_middle_zombie_arena, false, false, 0, ze_zombie_arena_radius_x, 0, ze_zombie_arena_radius_y)
for i = 1, #specs do
if specs:getName() == ze_Zombie_Name then
specs:remove()
end
end
end

 

rep pra quem ajudar


@ UPPPPPPPP

Editado por maper007 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

rep pra vc por ter tentado me ajudar,, vlw. Ja resolvi o problema... ele é por tempo... e n por comando... porem tava testando aki e so na hora de sumonar o zumbi é q da erro alguem pode me ajudar ???

 

_upload_3.jpg

 

zombie system

--players variables

ze_join_storage = 1000 --player join storage

ze_min_players = 1 --min players needed when time runout

ze_max_players = 25 --max players to join

ze_trophy = 7369 --trophy id

ze_trophy_desc = "has won the Zombie Event." --winner description on the trophy

--other variables

ze_wait_minutes = 1 --when event has opened, how long until it starts?

ze_started = false --dont touch

ze_waiting_room_pos = {x = 380, y = 1138, z = 7} --middle of waiting room

ze_zombie_arena = {x = 345, y = 1138, z = 7} --when even start where should player be teleported in the zombie arena?

ze_Arena_fromPosition = {x = 299, y = 1116, z = 7} --pos of top left corner

ze_Arena_toPosition = {x = 335, y = 1173, z = 7} --pos of bottom right corner

ze_middle_zombie_arena = {x = 329, y = 1141, z = 7} --Middle pos of the arena

ze_joined_count = 0 --dont touch

ze_waiting_room_radius_x = 6 --depends how big the waiting room is 20sqm to x

ze_waiting_room_radius_y = 10 --depends how big the waiting room is 20sqm to y

ze_zombie_arena_radius_x = 51 --Depends how big the zombie arena is 50sqm to x

ze_zombie_arena_radius_y = 73 --Depends how big the zombie arena is 50sqm to y

function startZombie()

local specs = Game.getSpectators(ze_waiting_room_pos, false, true, 0, ze_waiting_room_radius_x, 0, ze_waiting_room_radius_y)

if ze_joined_count >= ze_min_players then

for i = 1, #specs do

specs:teleportTo(ze_zombie_arena, true)

end

broadcastMessage("Zombie Event has started, good luck to all participant.", MESSAGE_STATUS_WARNING)

ze_started = started

doStartZombieEvasion()

else

for i = 1, #specs do

specs:teleportTo(specs:getTown():getTemplePosition(), false)

specs:setStorageValue(ze_join_storage, 0)

end

resetVariables()

broadcastMessage("Zombie Event failed to start, because of to little players joined the event!", MESSAGE_STATUS_WARNING)

end

end

function doSummonZombie()

if ze_zombie_count < ze_max_zombies then

local zomb = Game.createMonster(ze_Zombie_Name, {x = math.random(ze_Arena_fromPosition.x, ze_Arena_toPosition.x), y = math.random(ze_Arena_fromPosition.y, ze_Arena_toPosition.y), z = math.random(ze_Arena_fromPosition.z, ze_Arena_toPosition.z)})

if zomb == false then

Game.createMonster(ze_Zombie_Name, {x = math.random(ze_Arena_fromPosition.x, ze_Arena_toPosition.x), y = math.random(ze_Arena_fromPosition.y, ze_Arena_toPosition.y), z = math.random(ze_Arena_fromPosition.z, ze_Arena_toPosition.z)})

end

ze_zombie_count = ze_zombie_count + 1

end

end

function doStartZombieEvasion()

if ze_started == started then

doSummonZombie()

addEvent(doStartZombieEvasion, 5 * 1000)

end

end

function resetVariables()

ze_started = false

ze_joined_count = 0

ze_zombie_count = 0

end

function doClearZombieArena()

local specs = Game.getSpectators(ze_middle_zombie_arena, false, false, 0, ze_zombie_arena_radius_x, 0, ze_zombie_arena_radius_y)

for i = 1, #specs do

if specs:getName() == ze_Zombie_Name then

specs:remove()

end

end

end

 

rep pra quem ajudar

@ UPPPPPPPP

Olha eu não sei nada de script, mais eu acho que ele esta tendo problemas com 2 Valores Nulo. Vou pedir ajuda para um amigo meu ver se ele resolve esse erro pra você !

Valeu pelo o +rep

Senhoras e senhores, se alguma resposta lhe ajudou, marque-a como a melhor resposta e de ponto positivo, assim você incentiva quem lhe ajudou a continuar ajudando!!.

Link para o post
Compartilhar em outros sites

ok..!! fico no aguardo..

!@!@ UPPPPPPPPPP

Foi mal, meu amigo não teve tempo de olhar, vou avisa-lo novamente e ver se ele olha ainda hoje.

Senhoras e senhores, se alguma resposta lhe ajudou, marque-a como a melhor resposta e de ponto positivo, assim você incentiva quem lhe ajudou a continuar ajudando!!.

Link para o post
Compartilhar em outros sites

blz.....

estou no aguardo..

 

repp ++ pra quem ajuda...


upp.. alguem.. porfavor...

 

obs: ta dando esse erro por n tem em -other variables essesa valores.. ??

 

ze_max_zombies

ze_Zombie_Name

ze_zombie_count

 

????

 

se for.. como eu add..??

Editado por maper007 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

uso tfs 1.0

 

esse script eu achei em outro forum.. proprio para tfs 1.0 (beta)

 

ele funciona certinho... so n sumona o zombie....

Editado por maper007 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo