nach dem der timer abgelaufen ist kriegen alle nen kick und kommen nicht mehr rein, woran könnte es liegen? (map ist in ch99 113, und in keinen amderen core)
PHP Code:
quest automaticoxevent begin
state start begin
-- Dialogue with Uriel
when 20011.chat."GM: OX - Starten" with pc.is_gm() and pc.get_name() == "[SA]FT" begin
say_title(mob_name(npc.get_race())..":")
say("")
say("OX Starten?")
say("Gewinne werden automatisch vergeben!")
local s = select(locale.yes,locale.no)
if(s == 2) then return end
say_title(mob_name(npc.get_race())..":")
say("")
say("Event Geöffnet")
say("Bitte warte")
server_timer("countdown",10)
game.set_event_flag("oxevent_status",1)
end
--- Start Countdown !.
when countdown.server_timer begin
if(game.get_event_flag("oxevent_status") == 0) then
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
else
notice_all("Uriel: OX-Wettbewerb - Geöffnet")
notice_all("Uriel: 5 Minuten bis die Tore Geschlossen werden!")
server_timer("countdownone",60)
end
end
--- CountDown 2
when countdownone.server_timer begin
if(game.get_event_flag("oxevent_status") == 0) then
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
else
notice_all("Uriel: Tore werden Geschlossen in: 4 Minute/n")
server_timer("countdowntwo",60)
end
end
--- CountDown 3
when countdowntwo.server_timer begin
if(game.get_event_flag("oxevent_status") == 0) then
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
else
notice_all("Uriel: Tore werden Geschlossen in: 3 Minute/n")
server_timer("countdownthre",60)
end
end
--- CountDown 4
when countdownthre.server_timer begin
if(game.get_event_flag("oxevent_status") == 0) then
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
else
notice_all("Uriel: Tore werden Geschlossen in: 2 Minute/n")
server_timer("countdownfour",60)
end
end
--- CountDown 5
when countdownfour.server_timer begin
if(game.get_event_flag("oxevent_status") == 0) then
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
else
notice_all("Uriel: Tore werden Geschlossen in: 1 Minute/n")
server_timer("countdownfive",60)
end
end
--- Countdown 6
when countdownfive.server_timer begin
if(game.get_event_flag("oxevent_status") == 0) then
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
else
notice_all("Uriel: Die Tore Wurden Geschlossen!")
notice_all("Uriel: du Kannst aber noch Zuschauen!")
server_timer("playercheck",5)
game.set_event_flag("oxevent_status",2)
end
end
--- Player Check
when playercheck.server_timer begin
if(oxevent.get_attender() == 0) then
notice_all("Uriel: Das Event wurde Abgebrochen!")
game.set_event_flag("oxevent_status",0)
else
server_timer("startox",5)
end
end
--- Start Ox Event
when startox.server_timer begin
setskin(NOWINDOW)
quiz = oxevent.quiz(1,30)
if(quiz == 0) then
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
game.set_event_flag("oxevent_status",0)
warp_all_to_village()
elseif(quiz == 1) then
if(oxevent.get_attender() == 1) then
game.set_event_flag("oxevent_status",0)
notice_all("Uriel: Das Event ist nun Vorbei!")
warp_all_to_village()
else
server_timer("startoxone",40)
end
else
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
game.set_event_flag("oxevent_status",0)
warp_all_to_village()
end
end
--- Start Ox 1
when startoxone.server_timer begin
setskin(NOWINDOW)
quiz = oxevent.quiz(1,30)
if(quiz == 0) then
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
game.set_event_flag("oxevent_status",0)
warp_all_to_village()
elseif(quiz == 1) then
if(oxevent.get_attender() == 1) then
game.set_event_flag("oxevent_status",0)
notice_all("Uriel: Das Event ist nun Vorbei!")
oxevent.give_item(71129, 1)
oxevent.give_item(71123, 2)
oxevent.give_item(38055, 2)
oxevent.give_item(39001, 10)
warp_all_to_village()
else
server_timer("startox",40)
end
else
notice_all("Es ist ein Fehler aufgetaucht.")
notice_all("Das Event wurde Beendet.")
game.set_event_flag("oxevent_status",0)
warp_all_to_village()
end
end
when 20011.chat."Der OX-Wettbewerb" begin
say_title(mob_name(npc.get_race())..":")
say("")
---
if(game.get_event_flag("oxevent_status") == 2) then
say("Der OX-Wettbwerb läuft bereits, du kannst")
say("nur noch als Zuschauer beitreten!")
say_reward("Möchtest du Zuschauen?")
local s = select(locale.yes,locale.no)
if(s == 2) then return end
pc.warp(896300, 28900)
elseif(game.get_event_flag("oxevent_status") == 1) then
say("Der OX-Wettbewerb ist noch Offen.")
say("Möchtest du beitreten?")
local s = select(locale.yes,locale.no,"Nur Zuschauen")
if(s == 1) then
pc.warp(896500, 24600)
elseif(s == 3) then
pc.warp(896300, 28900)
end
end
end
end
end