PHP Code:
quest alfa_fish begin
state start begin
when 20013.chat." حدث الصيد " with pc.is_gm() begin
say_title(" مسابقة الصيد ")
say("")
say(" حدث الصيد ")
say("")
local chois = select(" إلغاء ", " تعطيل ", " تفعيل ")
if chois == 1 then
game.set_event_flag("fish",1)
say_title(" حدث الصيد ")
say(" حدث الصيد ")
notice_all(" لقد بدأ حدث الصيد , أذهب للصيأاد وأقتني صناارتكـ بأسرع وقت .. ")
elseif chois == 2 then
game.set_event_flag("fish",0)
say_title(" حدث الصيد ")
say(" حدث الصيد ")
notice_all(" لقد أنتهىء حـدث ألصـيد , أترك ألصنارة وأذهب للقتأل .. ")
else
return
end
when 20013.take with item.get_vnum() == 27804 begin
if game.get_event_flag("fish") == 1 then
say_title(" حدث الصيد ")
say(" لقد أحضرت معك السمك ")
say(" يا لك من صياد بارع ")
say(" سوف يتم إستبدال هذه السمكة بـ 5 أحجار مائية ")
say(" واذا جمعت العدد الكافي ")
say(" سيتم مكافئتك بعد إنتهاء الحدث ")
pc.remove_item(27804)
pc.give_item2(27991,5)
else
return
end
end
when 20013.take with item.get_vnum() == 27803 begin
if game.get_event_flag("fish") == 1 then
say_title(" حدث الصيد ")
say(" لقد أحضرت معك السمك ")
say(" يا لك من صياد بارع ")
say(" سوف يتم إستبدال هذه السمكة بـ 2 أحجار مائية ")
say(" واذا جمعت العدد الكافي ")
say(" سيتم مكافئتك بعد إنتهاء الحدث ")
pc.remove_item(27803)
pc.give_item2(27991,2)
else
return
end
end
when 20013.chat begin
if game.get_event_flag("fish") == 0 then
say_title(" حدث الصيد ")
say(" حسنا لقد إنتهى حدث الصيد ")
say(" إذا كنت تملك فيمكنك إستبدالها بجائزة قيمة ")
wait()
say(" كم تمتلك من الحجر المائي؟ ")
local choisa = select(" إلغاء ", " 20 ", " 10 ")
if choisa == 1 then
local it = pc.count_item(27991)
if it < 10 then
say(" إنك لا تمتلك العدد الكافي من الأحجار المائية ")
return
else
say(" حسنا إنك تمتلك العدد الكافي من ")
say(" سيتم إستبدالها بصندوق المسابقات ")
pc.remove_item(27991)
pc.give_item2(71159)
elseif choisa == 2 then
local it = pc.count_item(27991)
if it < 5 then
say(" إنك لا تمتلك العدد الكافي من الأحجار المائية ")
return
else
say(" حسنا إنك تمتلك العدد الكافي من الأحجار المائية ")
say(" سيتم إستبدالها بـ 2 صندوق مسابقات")
pc.remove_item(27991)
pc.give_item2(71159,2)
else
return
end
end
else
return
end
end
end
end
Is there any one who can help me ?






