Deci , am facut niste cufere ( erau bagate dar am pus ce sa pice din ele) si vreau sa le fac sa pica ca cele clar de luna ,adica atunci cand bati mobi sa vina singure in inventar , un fel de event care sa fie permanent . Codul cuferelor : 38053 .
Si nu se pun unele peste altele ,adica stau doar cate unul , cum fac sa le pot pune cate 200 unul peste altul ?
Cum creez un event cu cufere?
- lauredemon
-

- Mesaje: 197
- Membru din: 16 Iun 2014, 11:22
- Server: www.terrormetin2.ro
- Regat: Shinsoo
- Aprecieri: 0
- Mulţumiri: 22
- Contact:
Uite aici un quest:
quest cufere begin
state start begin
when login begin
if game.get_event_flag("cufere_event") == 1 then
notice("[Eveniment] Cufere : Activ")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
end
end
end
when 9003.chat."<GM> Eveniment Cufere" with pc.is_gm() begin
if game.get_event_flag("cufere_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufere : Activ")
say("")
say_reward("Opriti evenimentul?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("cufere_event", 0)
char_log(0, "cufere_event_end from" ..pc.get_name())
notice_all("[Eveniment] Cufere : Terminat")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufere : Inchis")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufere : A inceput")
game.set_event_flag("cufere_event", 1)
char_log(0, "cufere_event_start from" ..pc.get_name())
notice_all("[Eveniment] Cufere : A inceput")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 9003.chat."<GM> Dropul Cuferelor" with pc.is_gm() begin
if pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sĂŁ fie dropul acestora ?")
say("")
say_reward("Intre 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectĂŁ ~")
else
char_log(0, "cufere_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("lunar_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curand !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Nu ai dreptul pentru a executa evenimentul .")
end
end
end
end
Este perfect functional , o sa iti puna cuferele specificate la drop pe totii mobii , si eventul il vei activa de la negustoarea de diverse.
quest cufere begin
state start begin
when login begin
if game.get_event_flag("cufere_event") == 1 then
notice("[Eveniment] Cufere : Activ")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
end
end
end
when 9003.chat."<GM> Eveniment Cufere" with pc.is_gm() begin
if game.get_event_flag("cufere_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufere : Activ")
say("")
say_reward("Opriti evenimentul?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("cufere_event", 0)
char_log(0, "cufere_event_end from" ..pc.get_name())
notice_all("[Eveniment] Cufere : Terminat")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufere : Inchis")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufere : A inceput")
game.set_event_flag("cufere_event", 1)
char_log(0, "cufere_event_start from" ..pc.get_name())
notice_all("[Eveniment] Cufere : A inceput")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 9003.chat."<GM> Dropul Cuferelor" with pc.is_gm() begin
if pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sĂŁ fie dropul acestora ?")
say("")
say_reward("Intre 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectĂŁ ~")
else
char_log(0, "cufere_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("lunar_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curand !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Nu ai dreptul pentru a executa evenimentul .")
end
end
end
end
Este perfect functional , o sa iti puna cuferele specificate la drop pe totii mobii , si eventul il vei activa de la negustoarea de diverse.
Mersi , merge , ai si un quest pentru cuferele clar de luna? Sa pice cam 1 la 2 mobi ?lauredemon scrie:Uite aici un quest:
quest cufere begin
state start begin
when login begin
if game.get_event_flag("cufere_event") == 1 then
notice("[Eveniment] Cufere : Activ")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 100 then
if game.get_event_flag("cufere_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(38053)
else
end
else
end
end
end
end
when 9003.chat."<GM> Eveniment Cufere" with pc.is_gm() begin
if game.get_event_flag("cufere_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufere : Activ")
say("")
say_reward("Opriti evenimentul?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("cufere_event", 0)
char_log(0, "cufere_event_end from" ..pc.get_name())
notice_all("[Eveniment] Cufere : Terminat")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufere : Inchis")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufere : A inceput")
game.set_event_flag("cufere_event", 1)
char_log(0, "cufere_event_start from" ..pc.get_name())
notice_all("[Eveniment] Cufere : A inceput")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 9003.chat."<GM> Dropul Cuferelor" with pc.is_gm() begin
if pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sĂŁ fie dropul acestora ?")
say("")
say_reward("Intre 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectĂŁ ~")
else
char_log(0, "cufere_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("lunar_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curand !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Nu ai dreptul pentru a executa evenimentul .")
end
end
end
end
Este perfect functional , o sa iti puna cuferele specificate la drop pe totii mobii , si eventul il vei activa de la negustoarea de diverse.
- lauredemon
-

- Mesaje: 197
- Membru din: 16 Iun 2014, 11:22
- Server: www.terrormetin2.ro
- Regat: Shinsoo
- Aprecieri: 0
- Mulţumiri: 22
- Contact:
Poate imi dai si mie o apreciere
)
quest cufere_clar_luna begin
state start begin
when login begin
if game.get_event_flag("clardeluna_event") == 1 then
notice("[Eveniment] Cufare clar de luna : Activ")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
end
end
end
when 9004.chat."<GM> Eveniment Cufere" with pc.is_gm() begin
if game.get_event_flag("clardeluna_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufare clar de luna : Activ")
say("")
say_reward("Opriti evenimentul?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("clardeluna_event", 0)
char_log(0, "clardeluna_event_end from" ..pc.get_name())
notice_all("[Eveniment] Cufare clar de luna : Terminat")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufare clar de luna : Inchis")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufare clar de luna : A inceput")
game.set_event_flag("clardeluna_event", 1)
char_log(0, "clardeluna_event_start from" ..pc.get_name())
notice_all("[Eveniment] Cufare clar de luna : A inceput")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 9004.chat."<GM> Dropul Cuferelor" with pc.is_gm() begin
if pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sĂŁ fie dropul acestora ?")
say("")
say_reward("Intre 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectĂŁ ~")
else
char_log(0, "clardeluna_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("lunar_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curand !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Nu ai dreptul pentru a executa evenimentul .")
end
end
end
end
quest cufere_clar_luna begin
state start begin
when login begin
if game.get_event_flag("clardeluna_event") == 1 then
notice("[Eveniment] Cufare clar de luna : Activ")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
end
end
end
when 9004.chat."<GM> Eveniment Cufere" with pc.is_gm() begin
if game.get_event_flag("clardeluna_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufare clar de luna : Activ")
say("")
say_reward("Opriti evenimentul?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("clardeluna_event", 0)
char_log(0, "clardeluna_event_end from" ..pc.get_name())
notice_all("[Eveniment] Cufare clar de luna : Terminat")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufare clar de luna : Inchis")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufare clar de luna : A inceput")
game.set_event_flag("clardeluna_event", 1)
char_log(0, "clardeluna_event_start from" ..pc.get_name())
notice_all("[Eveniment] Cufare clar de luna : A inceput")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 9004.chat."<GM> Dropul Cuferelor" with pc.is_gm() begin
if pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sĂŁ fie dropul acestora ?")
say("")
say_reward("Intre 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectĂŁ ~")
else
char_log(0, "clardeluna_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("lunar_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curand !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Nu ai dreptul pentru a executa evenimentul .")
end
end
end
end
Daca vrei sa se uneasca copiaza flag-ul (4) din navicat de la cuferele clar de luna si pune-l la cufarul tau apoi intra in joc si scrie comanda /reload p
[ Mesaj scris via Android ]
[ Mesaj scris via Android ]

Ti-am datlauredemon scrie:Poate imi dai si mie o apreciere)
quest cufere_clar_luna begin
state start begin
when login begin
if game.get_event_flag("clardeluna_event") == 1 then
notice("[Eveniment] Cufare clar de luna : Activ")
end
end
when kill begin
local m_ind = pc.get_map_index()
if npc.is_pc() then
else
if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 100 then
if game.get_event_flag("clardeluna_event") == 1 then
local chance = number(1, 1000)
local chance_max = game.get_event_flag("lunar_drop_chance")
if chance <= chance_max then
pc.give_item2(50011)
else
end
else
end
end
end
end
when 9004.chat."<GM> Eveniment Cufere" with pc.is_gm() begin
if game.get_event_flag("clardeluna_event") == 1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufare clar de luna : Activ")
say("")
say_reward("Opriti evenimentul?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("Evenimentul a luat sfârsit .")
say("~ Pe data viitoare !")
game.set_event_flag("clardeluna_event", 0)
char_log(0, "clardeluna_event_end from" ..pc.get_name())
notice_all("[Eveniment] Cufare clar de luna : Terminat")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
else
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufare clar de luna : Inchis")
say("")
say_reward("Start Eveniment?")
local s=select("Da", "Nu")
if s==1 then
say_title("Administrare Eveniment:")
say("")
say("[Eveniment] Cufare clar de luna : A inceput")
game.set_event_flag("clardeluna_event", 1)
char_log(0, "clardeluna_event_start from" ..pc.get_name())
notice_all("[Eveniment] Cufare clar de luna : A inceput")
elseif s==2 then
say_title("Administrare Eveniment:")
say("")
say("~ Pe curând !")
end
end
end
when 9004.chat."<GM> Dropul Cuferelor" with pc.is_gm() begin
if pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" or pc.get_name() == "[SA]Lorenzo" then
say_title("Administrare Eveniment:")
say("")
say("Cat de mult sĂŁ fie dropul acestora ?")
say("")
say_reward("Intre 1-100")
say("")
local new_chance = tonumber(input())
if new_chance < 0 or new_chance > 100 then
say_title("Administrare Eveniment:")
say("")
say("Introducere incorectĂŁ ~")
else
char_log(0, "clardeluna_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
game.set_event_flag("lunar_drop_chance", new_chance)
say_title("Administrare Eveniment:")
say("")
say("Dropul actual " ..new_chance.. " setat.")
say("~ Pe curand !")
end
else
say_title("Administrare Eveniment:")
say("")
say("Nu ai dreptul pentru a executa evenimentul .")
end
end
end
end
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Baidu [Spider] și 16 vizitatori





