Tipologie server(PvM / PvP): PVM
*Resursă folosită: *Link exclusiv J4M*
*ServerFiles utilizat: Hope v3
*Syserr: -
Poză: nu pot inca !
*Detalii suplimentare:
quest drop_event begin
state start begin
when login begin
if game.get_event_flag("drop_event") == 1 then
notice("[METIN2 "..settings.server_name.."]: Evenimentul Cufarul Lunii este activ.")
end
end
when kill with not npc.is_pc() and game.get_event_flag("drop_event") == 1 begin
local chance = number(1, 100)
local chance_max = game.get_event_flag("drop_event_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
end
when 20094.chat."GM: Eveniment cufere luna " with pc.is_gm() begin
if pc.is_gm() then
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Ce doresti sa faci?")
say_gm("")
if game.get_event_flag("drop_event") == 0 then
say_gm("Evenimentul cufarul lunii este oprit.")
say_gm("")
else
say_gm("Evenimentul cufarul lunii este pornit.")
say_gm("")
end
local s=select("Porneste evenimentul","Opreste evenimentul","Sansa de drop al cuferelor","Iesire")
if s==1 then
notice_all("[METIN2 "..settings.server_name.."]: Evenimentul Cufarul Lumina Lunii a început.")
game.set_event_flag("drop_event", 1)
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Evenimentul a fost pornit.")
say_gm("")
elseif s==2 then
notice_all("[METIN2 "..settings.server_name.."]: Evenimentul Cufarul Lunii a luat sfârsit.")
game.set_event_flag("drop_event", 0)
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Evenimentul a luat sfârsit.")
say_gm("")
elseif s==3 then
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Cât de mare doresti sa fie sansa de aruncare?")
say_gm("")
say_gm("Între 1-100:")
say_gm("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_gm_title("Eveniment cufere luna:")
say_gm("")
say_gm("Valorile introduse nu sunt bune.")
else
game.set_event_flag("drop_event_chance", new_chance)
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Sansa a fost modificata; sansa " ..new_chance.. "%.")
say_gm("")
end
elseif s==4 then
return
end
end
end
end
end
state start begin
when login begin
if game.get_event_flag("drop_event") == 1 then
notice("[METIN2 "..settings.server_name.."]: Evenimentul Cufarul Lunii este activ.")
end
end
when kill with not npc.is_pc() and game.get_event_flag("drop_event") == 1 begin
local chance = number(1, 100)
local chance_max = game.get_event_flag("drop_event_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
end
when 20094.chat."GM: Eveniment cufere luna " with pc.is_gm() begin
if pc.is_gm() then
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Ce doresti sa faci?")
say_gm("")
if game.get_event_flag("drop_event") == 0 then
say_gm("Evenimentul cufarul lunii este oprit.")
say_gm("")
else
say_gm("Evenimentul cufarul lunii este pornit.")
say_gm("")
end
local s=select("Porneste evenimentul","Opreste evenimentul","Sansa de drop al cuferelor","Iesire")
if s==1 then
notice_all("[METIN2 "..settings.server_name.."]: Evenimentul Cufarul Lumina Lunii a început.")
game.set_event_flag("drop_event", 1)
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Evenimentul a fost pornit.")
say_gm("")
elseif s==2 then
notice_all("[METIN2 "..settings.server_name.."]: Evenimentul Cufarul Lunii a luat sfârsit.")
game.set_event_flag("drop_event", 0)
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Evenimentul a luat sfârsit.")
say_gm("")
elseif s==3 then
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Cât de mare doresti sa fie sansa de aruncare?")
say_gm("")
say_gm("Între 1-100:")
say_gm("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_gm_title("Eveniment cufere luna:")
say_gm("")
say_gm("Valorile introduse nu sunt bune.")
else
game.set_event_flag("drop_event_chance", new_chance)
say_gm_title("Hong-Hae:")
say_gm("")
say_gm("Sansa a fost modificata; sansa " ..new_chance.. "%.")
say_gm("")
end
elseif s==4 then
return
end
end
end
end
end
acesta este


