Mr.MonteNegrO
Utente Jade
----------------------------------------------------------------------------------------------
-- da settare nomi staff in base al proprio dedicato --
-- da settare value npc (xxxx) --
-- POSSIBILE BUG => Non Setta il flag a 0 killando il processo di metin da taskManager --
----------------------------------------------------------------------------------------------
quest gmonline begin
state start begin
when xxxx.chat."Attiva GM Online" with pc.is_gm() begin
game.set_event_flag("ListaGM", 1)
say(" Lista GM On")
end
when xxxx.chat."Disattiva GM Online" with pc.is_gm() begin
game.set_event_flag("ListaGM", 0)
say(" Lista GM Off")
end
when login with pg.is_gm() begin
local name = pc.get_name()
game.set_event_flag(name, 1) -
setskin(NOWINDOW)
end
when logout with pg.is_gm() begin
local name = pc.get_name()
game.set_event_flag(name, 0)
setskin(NOWINDOW)
end
when xxxx.chat."Lista Staff on" with game.get_event_flag("ListaGM") == 1 begin
say("Name Status")
say("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
if game.get_event_flag("[GA]6")== 1 then
say_reward("GA 6 online")
else
say("GA 6 offline")
end
if game.get_event_flag("[SGM]5")== 1 then
say_reward("SGM 5 online")
else
say("SGM 5 offline")
end
if game.get_event_flag("[GM]4")== 1 then
say_reward("GM 4 online")
else
say("GM 4 offline")
end
if game.get_event_flag("[GM]3")== 1 then
say_reward("GM 3 online")
else
say("GM 3 offline")
end
end
end
end
-- da settare nomi staff in base al proprio dedicato --
-- da settare value npc (xxxx) --
-- POSSIBILE BUG => Non Setta il flag a 0 killando il processo di metin da taskManager --
----------------------------------------------------------------------------------------------
quest gmonline begin
state start begin
when xxxx.chat."Attiva GM Online" with pc.is_gm() begin
game.set_event_flag("ListaGM", 1)
say(" Lista GM On")
end
when xxxx.chat."Disattiva GM Online" with pc.is_gm() begin
game.set_event_flag("ListaGM", 0)
say(" Lista GM Off")
end
when login with pg.is_gm() begin
local name = pc.get_name()
game.set_event_flag(name, 1) -
setskin(NOWINDOW)
end
when logout with pg.is_gm() begin
local name = pc.get_name()
game.set_event_flag(name, 0)
setskin(NOWINDOW)
end
when xxxx.chat."Lista Staff on" with game.get_event_flag("ListaGM") == 1 begin
say("Name Status")
say("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
if game.get_event_flag("[GA]6")== 1 then
say_reward("GA 6 online")
else
say("GA 6 offline")
end
if game.get_event_flag("[SGM]5")== 1 then
say_reward("SGM 5 online")
else
say("SGM 5 offline")
end
if game.get_event_flag("[GM]4")== 1 then
say_reward("GM 4 online")
else
say("GM 4 offline")
end
if game.get_event_flag("[GM]3")== 1 then
say_reward("GM 3 online")
else
say("GM 3 offline")
end
end
end
end



