Was kann hier falsch sein ?
Das Event scheint dauer aktiv zu sein, der Timer läuft nicht ab und anklicken kann ich den Npc auch nicht.
Und ja ich habe es in der Mob_proto geändert< bei one_click.
was stimmt da nicht ?
Nr. 1 der Quest
Nr.2 der Quest
Das Event scheint dauer aktiv zu sein, der Timer läuft nicht ab und anklicken kann ich den Npc auch nicht.
Und ja ich habe es in der Mob_proto geändert< bei one_click.
was stimmt da nicht ?
Nr. 1 der Quest
quest metinjoin begin
state start begin
when login begin
set_state(information)
end
end
state information begin
when letter begin
send_letter("Metin Event")
end
when button or info begin
local gm = pc.get_gm_level()
if gm > 0 then
say("Zum Event Teleportieren lassen?")
local teleport = select("Ja","Nein")
if teleport == 1 then
pc.warp(36872, 57933)
else
setskin(NOWINDOW)
end
else
local metinEventJoin = game.get_event_flag("metinEventJoin")
if metinEventJoin == 0 then
say_title("Metin Event")
say("Das Event ist nicht an!")
say("Warte ab bis ein GM das Event startet")
return
elseif metinEventJoin == 1 then
say_title("Metin Event")
say("Das Event ist längst gestartet!")
say("Hoffen wir mal das du nächstes mal mehr Glück hast.")
return
else
say_title("Metin Event")
say("Die Einladung wird dich in die Map hinporten")
say("zu dem Metin Event.")
say("")
say_reward("Willst du geported werden?")
local a = select("Ja","Nein")
if a == 2 then
say_title("Metin Event")
say("Kein Problem kannst auch hier bleiben")
return
else
set_state(eventMap)
local empire = pc.get_empire()
if empire == 1 then
pc.warp(46885, 45850)
elseif empire == 2 then
pc.warp(45300, 83500)
else
pc.warp(20761, 55779)
end
end
end
end
end
end
state eventMap begin
when letter begin
send_letter("Metin Event")
timer("checkStartFirst", 2)
end
when button or info begin
say_title("Metin Event")
say("Du willst wieder in dein Heimatsreich?")
local home = select("Ja","Nein")
if home == 2 then
setskin(NOWINDOW)
return
else
set_state(information)
local empire = pc.get_empire()
if empire == 1 then
pc.warp(409600, 896000 )
elseif empire == 2 then
pc.warp(0, 102400 )
else
pc.warp(921600, 204800 )
end
end
end
when checkStartFirst.timer begin
if game.get_event_flag("metinEvent") == 1 then
timer("checkNationFirst", 2)
else
timer("checkStartSecond", 2)
end
end
when checkStartSecond.timer begin
if game.get_event_flag("metinEvent") == 1 then
timer("checkNationFirst", 2)
else
timer("checkStartFirst", 2)
end
end
when checkNationFirst.timer with game.get_event_flag("metinEvent") == 1 begin
local empire = pc.get_empire()
local blueStone = game.get_event_flag("blueStone")
local redStone = game.get_event_flag("redStone")
local yellowStone = game.get_event_flag("yellowStone")
if empire == 3 and blueStone == 0 then
pc.warp(921600, 204800 )
set_state(information)
end
if empire == 2 and yellowStone == 0 then
pc.warp(0, 102400 )
set_state(information)
end
if empire == 1 and redStone == 0 then
pc.warp(409600, 896000 )
set_state(information)
else
timer("checkNationSecond", 2)
end
end
when checkNationSecond.timer with game.get_event_flag("metinEvent") == 1 begin
local empire = pc.get_empire()
local blueStone = game.get_event_flag("blueStone")
local redStone = game.get_event_flag("redStone")
local yellowStone = game.get_event_flag("yellowStone")
if empire == 3 and blueStone == 0 then
pc.warp(921600, 204800 )
set_state(information)
end
if empire == 2 and yellowStone == 0 then
pc.warp(0, 102400 )
set_state(information)
end
if empire == 1 and redStone == 0 then
pc.warp(409600, 896000 )
set_state(information)
else
timer("checkNationFirst", 2)
end
end
end
end
state start begin
when login begin
set_state(information)
end
end
state information begin
when letter begin
send_letter("Metin Event")
end
when button or info begin
local gm = pc.get_gm_level()
if gm > 0 then
say("Zum Event Teleportieren lassen?")
local teleport = select("Ja","Nein")
if teleport == 1 then
pc.warp(36872, 57933)
else
setskin(NOWINDOW)
end
else
local metinEventJoin = game.get_event_flag("metinEventJoin")
if metinEventJoin == 0 then
say_title("Metin Event")
say("Das Event ist nicht an!")
say("Warte ab bis ein GM das Event startet")
return
elseif metinEventJoin == 1 then
say_title("Metin Event")
say("Das Event ist längst gestartet!")
say("Hoffen wir mal das du nächstes mal mehr Glück hast.")
return
else
say_title("Metin Event")
say("Die Einladung wird dich in die Map hinporten")
say("zu dem Metin Event.")
say("")
say_reward("Willst du geported werden?")
local a = select("Ja","Nein")
if a == 2 then
say_title("Metin Event")
say("Kein Problem kannst auch hier bleiben")
return
else
set_state(eventMap)
local empire = pc.get_empire()
if empire == 1 then
pc.warp(46885, 45850)
elseif empire == 2 then
pc.warp(45300, 83500)
else
pc.warp(20761, 55779)
end
end
end
end
end
end
state eventMap begin
when letter begin
send_letter("Metin Event")
timer("checkStartFirst", 2)
end
when button or info begin
say_title("Metin Event")
say("Du willst wieder in dein Heimatsreich?")
local home = select("Ja","Nein")
if home == 2 then
setskin(NOWINDOW)
return
else
set_state(information)
local empire = pc.get_empire()
if empire == 1 then
pc.warp(409600, 896000 )
elseif empire == 2 then
pc.warp(0, 102400 )
else
pc.warp(921600, 204800 )
end
end
end
when checkStartFirst.timer begin
if game.get_event_flag("metinEvent") == 1 then
timer("checkNationFirst", 2)
else
timer("checkStartSecond", 2)
end
end
when checkStartSecond.timer begin
if game.get_event_flag("metinEvent") == 1 then
timer("checkNationFirst", 2)
else
timer("checkStartFirst", 2)
end
end
when checkNationFirst.timer with game.get_event_flag("metinEvent") == 1 begin
local empire = pc.get_empire()
local blueStone = game.get_event_flag("blueStone")
local redStone = game.get_event_flag("redStone")
local yellowStone = game.get_event_flag("yellowStone")
if empire == 3 and blueStone == 0 then
pc.warp(921600, 204800 )
set_state(information)
end
if empire == 2 and yellowStone == 0 then
pc.warp(0, 102400 )
set_state(information)
end
if empire == 1 and redStone == 0 then
pc.warp(409600, 896000 )
set_state(information)
else
timer("checkNationSecond", 2)
end
end
when checkNationSecond.timer with game.get_event_flag("metinEvent") == 1 begin
local empire = pc.get_empire()
local blueStone = game.get_event_flag("blueStone")
local redStone = game.get_event_flag("redStone")
local yellowStone = game.get_event_flag("yellowStone")
if empire == 3 and blueStone == 0 then
pc.warp(921600, 204800 )
set_state(information)
end
if empire == 2 and yellowStone == 0 then
pc.warp(0, 102400 )
set_state(information)
end
if empire == 1 and redStone == 0 then
pc.warp(409600, 896000 )
set_state(information)
else
timer("checkNationFirst", 2)
end
end
end
end
Nr.2 der Quest
quest metinevent begin
state start begin
when 20090.chat."GM: Start Metin Event" with pc.is_gm() and game.get_event_flag("metinEventJoin") == 0 begin
say("Event ist gestartet! Bitte begeben sie sich zur Map ")
timer("phase1", 600)
notice_all("Du hast 10minuten Zeit bis das Event Startet!")
game.set_event_flag("metinEventJoin", 2)
end
when phase1.timer begin
game.set_event_flag("metinEventJoin", 1)
game.set_event_flag("metinEvent", 1)
notice_all("Metin Event ist nun gestartet")
notice_all("Ihr könnt nun nicht mehr euch zum Event Porten!")
notice_in_map(103,"Objective: Zerstöre die anderen Metins")
notice_in_map(103,"Objective: Und beschütze deinen Metin")
mob.spawn(8020,466,226,1)
mob.spawn(8021,235,303,1)
mob.spawn(8022,429,563,1)
game.set_event_flag("redStone",1)
game.set_event_flag("yellowStone",1)
game.set_event_flag("blueStone",1)
end
when 8020.kill begin
local yellowStone = game.get_event_flag("yellowStone")
local blueStone = game.get_event_flag("blueStone")
game.set_event_flag("redStone",0)
if blueStone == 0 then
notice_in_map(103,"Chunjo(Gelb) Reich gewann das Event!")
timer("reward", 5)
elseif yellowStone == 0 then
notice_in_map(103,"Jinno(Blaue) Reich gewann das Event!")
timer("reward", 5)
else
notice_in_map(103,"Shinsoo(Rot) Verlor das Event!")
end
end
when 8021.kill begin
local redStone = game.get_event_flag("redStone")
local yellowStone = game.get_event_flag("yellowStone")
game.set_event_flag("blueStone",0)
if yellowStone == 0 then
notice_in_map(103,"Shinsoo(Rot)Reich gewann das Event!")
timer("reward", 5)
elseif redStone == 0 then
notice_in_map(103,"Chunjo(Gelb) Reich gewann das Event!")
timer("reward", 5)
else
notice_in_map(103,"Jinno(Blaue) Verlor das Event!")
end
end
when 8022.kill begin
local redStone = game.get_event_flag("redStone")
local blueStone = game.get_event_flag("blueStone")
game.set_event_flag("yellowStone",0)
if blueStone == 0 then
notice_in_map(103,"Shinsoo(Rot)Reich gewann das Event!")
timer("reward", 5)
elseif redStone == 0 then
notice_in_map(103,"Jinno(Blaue) Reich gewann das Event!")
timer("reward", 5)
else
notice_in_map(103,"Chunjo(Gelb) Reich gewann das Event!")
end
end
when reward.timer begin
notice_in_map(103,"Gratulation zum Sieg!")
notice_in_map(103,"Hole dein Preis in mitten der Map ab!")
notice_in_map(103,"In 10minuten wirst du wieder zurück geported!")
mob.spawn(8027,406,375,1)
mob.spawn(8026,406,394,1)
mob.spawn(8027,392,407,1)
mob.spawn(8026,375,408,1)
mob.spawn(8027,361,394,1)
mob.spawn(8026,360,374,1)
mob.spawn(8027,374,360,1)
mob.spawn(8026,394,361,1)
mob.spawn(20074,384,384,1)
mob.spawn(20075,387,387,1)
mob.spawn(20076,381,381,1)
timer('finish', 600)
end
when finish.timer begin
game.set_event_flag("metinEventJoin",0)
game.set_event_flag("metinEvent", 0)
game.set_event_flag("redStone",0)
game.set_event_flag("yellowStone",0)
game.set_event_flag("blueStone",0)
kill_all_in_map(103)
end
end
end
state start begin
when 20090.chat."GM: Start Metin Event" with pc.is_gm() and game.get_event_flag("metinEventJoin") == 0 begin
say("Event ist gestartet! Bitte begeben sie sich zur Map ")
timer("phase1", 600)
notice_all("Du hast 10minuten Zeit bis das Event Startet!")
game.set_event_flag("metinEventJoin", 2)
end
when phase1.timer begin
game.set_event_flag("metinEventJoin", 1)
game.set_event_flag("metinEvent", 1)
notice_all("Metin Event ist nun gestartet")
notice_all("Ihr könnt nun nicht mehr euch zum Event Porten!")
notice_in_map(103,"Objective: Zerstöre die anderen Metins")
notice_in_map(103,"Objective: Und beschütze deinen Metin")
mob.spawn(8020,466,226,1)
mob.spawn(8021,235,303,1)
mob.spawn(8022,429,563,1)
game.set_event_flag("redStone",1)
game.set_event_flag("yellowStone",1)
game.set_event_flag("blueStone",1)
end
when 8020.kill begin
local yellowStone = game.get_event_flag("yellowStone")
local blueStone = game.get_event_flag("blueStone")
game.set_event_flag("redStone",0)
if blueStone == 0 then
notice_in_map(103,"Chunjo(Gelb) Reich gewann das Event!")
timer("reward", 5)
elseif yellowStone == 0 then
notice_in_map(103,"Jinno(Blaue) Reich gewann das Event!")
timer("reward", 5)
else
notice_in_map(103,"Shinsoo(Rot) Verlor das Event!")
end
end
when 8021.kill begin
local redStone = game.get_event_flag("redStone")
local yellowStone = game.get_event_flag("yellowStone")
game.set_event_flag("blueStone",0)
if yellowStone == 0 then
notice_in_map(103,"Shinsoo(Rot)Reich gewann das Event!")
timer("reward", 5)
elseif redStone == 0 then
notice_in_map(103,"Chunjo(Gelb) Reich gewann das Event!")
timer("reward", 5)
else
notice_in_map(103,"Jinno(Blaue) Verlor das Event!")
end
end
when 8022.kill begin
local redStone = game.get_event_flag("redStone")
local blueStone = game.get_event_flag("blueStone")
game.set_event_flag("yellowStone",0)
if blueStone == 0 then
notice_in_map(103,"Shinsoo(Rot)Reich gewann das Event!")
timer("reward", 5)
elseif redStone == 0 then
notice_in_map(103,"Jinno(Blaue) Reich gewann das Event!")
timer("reward", 5)
else
notice_in_map(103,"Chunjo(Gelb) Reich gewann das Event!")
end
end
when reward.timer begin
notice_in_map(103,"Gratulation zum Sieg!")
notice_in_map(103,"Hole dein Preis in mitten der Map ab!")
notice_in_map(103,"In 10minuten wirst du wieder zurück geported!")
mob.spawn(8027,406,375,1)
mob.spawn(8026,406,394,1)
mob.spawn(8027,392,407,1)
mob.spawn(8026,375,408,1)
mob.spawn(8027,361,394,1)
mob.spawn(8026,360,374,1)
mob.spawn(8027,374,360,1)
mob.spawn(8026,394,361,1)
mob.spawn(20074,384,384,1)
mob.spawn(20075,387,387,1)
mob.spawn(20076,381,381,1)
timer('finish', 600)
end
when finish.timer begin
game.set_event_flag("metinEventJoin",0)
game.set_event_flag("metinEvent", 0)
game.set_event_flag("redStone",0)
game.set_event_flag("yellowStone",0)
game.set_event_flag("blueStone",0)
kill_all_in_map(103)
end
end
end