Thats :
PHP Code:
quest halloween begin
state start begin
when enter_halloween_npc_code.chat."Halloween <3" with pc.is_gm() begin
say("Do you want to start halloween event ???")
say_reward("Halloween event : When you kill devils catacomb bigboss,")
say_reward("You get special item and when you bring it to me")
say_reward("I give you halloween hair style.")
say("")
--- i love u turkey , usa , england and germany <3
--- local s1 = { [1] = "Yes", [2] = "No"}
local s = select(locale.yes, locale.cancel)
if s == 2 then
end
if s == 1 then
game.set_event_flag("halloween",1)
end
when enter_halloween_npc_code.chat."Halloween <3" with game.get_event_flag("halloween") == 1 begin
say_reward("Halloween event : When you kill devils catacomb bigboss,")
say_reward("You get special item and when you bring it to me")
say_reward("I give you halloween hair style.")
end
when enter_bigboss2_code.kill with game.get_event_flag("halloween") == 1 begin
game.drop_item(50011)
end
when enter_halloween_npc_code.chat."Give me special item[HALLOWEEN]" begin
if pc.countitem(50011) == 0 then
say("You dont have it.")
end
if pc.countitem(50011) == 1 then
say("Done!")
item.remove(50011)
game.set_event_flag("halloween", 0)
pc.give_item2(enter_halloween_hairstyle_code)
end
end
end
end