quest xDean begin
state start begin
when 20020.chat." مسابقة تاناكا " with pc.is_gm and pc.get_map_index() == 41 begin -- ال ( 99 ) هوا اندكس الماب
say_title(" مسبقة ")
say("")
say(" هل تريد تفعيل المسابقة ؟ ")
local a = select( " نعم " , " لا ")
if a == 2 then
return
end
if a == 1 then
game.set_event_flag("tanaka", 1)
notice_all(" بدأت مسابقة تاناكا القرصان ")
regen_in_map(41,"data/solo.txt") -- ورقة استدعاء الوحوش
end
end
when 101.kill with game.get_event_flag("tanaka") == 1 begin
game.set_event_flag("count", game.get_event_flag("count") + 1)
if game.get_event_flag("count") == 10 then
game.drop_item_with_ownership(45160, 1) -- الجائزة
game.drop_item_with_ownership(41711, 1) -- الجائزة
notice_all(" مبارك للاعب "..pc.get_name().." لقد قام بتحصيل جائزة تاناكا ")
game.set_event_flag("count", 0)
if game.get_event_flag("item_time") < get_time() then
notice_all(" لقد انتهت مسابقة السقوط ")
notice_all(" انتظرنا في موعد قادم ")
return
end
end
end
end