quest happy_christmas2 begin
state start begin
--* Funcþie Activã
function is_on()
if game.get_event_flag("is_christmas") >= 1 then
return true
else
return false
end
end
when login with happy_christmas2.is_on() == true begin
notice("|cFF90CAF9|h[Info-Event]:|h|r |cFF03F030|hEvenimentul de Crãciun este deschis!|h|r")
end
when kill with not npc.is_pc() and happy_christmas2.is_on() == true begin
local change = number(1, 100)
if change == 1 then
game.drop_item_with_ownership(50010, 1)
end
end
--* Christmas Pachet
when 20384.chat."Pachetul de Crãciun" with happy_christmas2.is_on() == true begin
say_title("Brad de Crãciun[ENTER]")
say("Fiindcã bunul Moº Crãciun este vestit în toatã lumea")
say("pentru bunãtatea sa, vã oferã un pachet de crãciun gratuit![ENTER]")
say_reward("Spune-mi doar pentru ce sex sã fie acest pachet.[ENTER]")
local sex = select("Masculin","Feminin","Închide")
if sex == 3 then
return
end
if sex == 1 then
say_title("Brad de Crãciun[ENTER]")
say("Alegeþi culoarea acestui pachet.[ENTER]")
local colors_m = select("Rosu","Verde","Negru","Închide")
if colors_m == 4 then
return
end
if colors_m == 1 and pc.get_empty_inventory_count() >= 2 then
say_title("Brad de Crãciun[ENTER]")
say("Moº Crãciun împreunã cu conducerea vã ureazã ")
say("sãrbãtori fericite alãturi de cei dragi![ENTER]")
pc.give_item2(41137)
pc.give_item2(45075)
end
if colors_m == 1 and pc.get_empty_inventory_count() < 2 then
syschat("Goleºte-þi inventarul!")
end
if colors_m == 2 and pc.get_empty_inventory_count() >= 2 then
say_title("Brad de Crãciun[ENTER]")
say("Moº Crãciun împreunã cu conducerea vã ureazã ")
say("sãrbãtori fericite alãturi de cei dragi![ENTER]")
pc.give_item2(41139)
pc.give_item2(45076)
end
if colors_m == 2 and pc.get_empty_inventory_count() < 2 then
syschat("Goleºte-þi inventarul!")
end
if colors_m == 3 and pc.get_empty_inventory_count() >= 2 then
say_title("Brad de Crãciun[ENTER]")
say("Moº Crãciun împreunã cu conducerea vã ureazã ")
say("sãrbãtori fericite alãturi de cei dragi![ENTER]")
pc.give_item2(41141)
pc.give_item2(45077)
end
if colors_m == 3 and pc.get_empty_inventory_count() < 2 then
syschat("Goleºte-þi inventarul!")
end
end
if sex == 2 then
say_title("Brad de Crãciun[ENTER]")
say("Alegeþi culoarea acestui pachet.[ENTER]")
local colors_w = select("Rosu","Verde","Negru","Închide")
if colors_w == 4 then
end
if colors_w == 1 and pc.get_empty_inventory_count() >= 2 then
say_title("Brad de Crãciun[ENTER]")
say("Moº Crãciun împreunã cu conducerea vã ureazã ")
say("sãrbãtori fericite alãturi de cei dragi![ENTER]")
pc.give_item2(41138)
pc.give_item2(45078)
end
if colors_w == 1 and pc.get_empty_inventory_count() < 2 then
syschat("Goleºte-þi inventarul!")
end
if colors_w == 2 and pc.get_empty_inventory_count() >= 2 then
say_title("Brad de Crãciun[ENTER]")
say("Moº Crãciun împreunã cu conducerea vã ureazã ")
say("sãrbãtori fericite alãturi de cei dragi![ENTER]")
pc.give_item2(41140)
pc.give_item2(45078)
end
if colors_w == 2 and pc.get_empty_inventory_count() < 2 then
syschat("Goleºte-þi inventarul!")
end
if colors_w == 3 and pc.get_empty_inventory_count() >= 2 then
say_title("Brad de Crãciun[ENTER]")
say("Moº Crãciun împreunã cu conducerea vã ureazã ")
say("sãrbãtori fericite alãturi de cei dragi![ENTER]")
pc.give_item2(41142)
pc.give_item2(45078)
end
if colors_w == 3 and pc.get_empty_inventory_count() < 2 then
syschat("Goleºte-þi inventarul!")
end
end
end
end
end