Cod: Selectaţi tot
quest craciun begin
state start begin
when 20031.chat."Event de Craciun: Panoul de control" with pc.is_gm() begin
say_title("Eventul de craciun:")
if game.get_event_flag("xmas")==0 then
say("Eventul de craciun este oprit.")
say("Vrei sa il pornesti?")
local s1 = select("Da", "Nu")
if s1 == 1 then
say("Eventul a fost pornit!")
game.set_event_flag("xmas", 1)
notice_all("Eventul de craciun tocmai ce a inceput")
notice_all("Incepand de acum puteti dropa")
notice_all("Sosete si cadouri de la toti monstrii")
notice_all("Sarbatori fericite tuturor")
command("e xmas_snow 1")
command("e xmas_song 1")
else
return
end
else
say("Eventul de craciun este pornit")
say("Vrei sa il opresti?")
local s2 = select("Da", "Nu")
if s2 == 1 then
say("Eventul a fost oprit!")
game.set_event_flag("xmas", 0)
notice_all("Eventul de craciun a luat sfarsit")
notice_all("Speram ca ati castigat premii folositoare")
command("e xmas_snow 0")
command("e xmas_song 0")
end
end
end
when kill with game.get_event_flag("xmas")==1 and not npc.is_pc() begin
local drop = number(1, 75)
if drop == 1 then
game.drop_item_with_ownership(50010, 1)
end
end
when 20031.chat."Sosete" begin
say_title("Mos Craciun")
if pc.count_item(50010) then
say_rosu("Salut ".. pc.get_name())
say_rosu("Am o mica problema ... nu stiu cum sa iti spun")
say_rosu("dar din greseala mi-am pierdut toate sosetele!")
say_rosu("De fapt vroiam sa le umplu cu cadouri si sa")
say_rosu("le dau copiilor ... dar acum ...")
wait()
say_rosu("Daca gasesti sosetele te rog sa mi le aduci.")
say_rosu("Vei primi si o recompensa pentru ele!")
say("")
say_reward("Iti voi da o recompensa in schimbul a 5 sosete!")
else
say_rosu("Ach mi-ai gasit sosetele?")
say_rosu("Ce frumos!Mi le poti da?")
say_rosu("Vei primi o recompensa")
say_rosu("in schimb!")
local s3 = select("Poftim sosetele", "Nu iti dau nimic")
if s3 == 1 then
say_title("Mos craciun:")
say_rosu("Iti multumesc mult!")
say_rosu("Stai sa caut in sac")
say_rosu("sa vad ce am pentru")
say("tine ...")
wait()
pc.give_item2(71144, 1)
pc.remove_item(50010, 5)
end
end
end
end
end
end



