quest se7rsam begin
[code] state start begin
when 20092.take with item.vnum >= 180 and item.vnum <= 189 begin
say (" ")
say (" مرحبا بك ")
say ("هنا يمكنك سحر سيف السام ")
say (" جاري وضع معدل السيف 55% ")
wait ()
local i = 0
local kk = 0
local o = 0
local o1 = 0
local o2 = 0
local o3 = 0
local o4 = 0
local o5 = 0
local o6 = 0
local o7 = 0
local o8 = 0
local o9 = 0
local o10 = 0
local o11 = 0
local o12 = 0
local b1 = 0
local b2 = 0
local b3 = 0
local b4 = 0
local b5 = 0
local b6 = 0
local b7 = 0
local b8 = 0
local b9 = 0
local b10 = 0
local b11 = 0
local b12 = 0
local b13 = 0
pc.setqf("olditem",item.get_id())
local j = 0
local y2 = 0
local y3 = 0
pc.setqf("z",0)
pc.setqf("a",0)
pc.setqf("b",0)
pc.setqf("d",0)
pc.setqf("h",0)
pc.setqf("g",0)
pc.setqf("e",0)
pc.setqf("f",0)
pc.setqf("c",0)
pc.setqf("y",0)
pc.setqf("y1",0)
pc.setqf("u",0)
pc.setqf("y2",0)
pc.setqf("type",0)
pc.setqf("value",0)
pc.setqf("type1",0)
pc.setqf("value1",0)
pc.setqf("type2",0)
pc.setqf("value2",0)
pc.setqf("type3",0)
pc.setqf("value3",0)
pc.setqf("type4",0)
pc.setqf("value4",0)
pc.setqf("type5",0)
pc.setqf("value5",0)
pc.setqf("type6",0)
pc.setqf("value6",0)
pc.setqf("type7",0)
pc.setqf("value7",0)
pc.setqf("type9",0)
pc.setqf("value9",0)
pc.setqf("type8",0)
pc.setqf("value8",0)
pc.setqf("type10",0)
pc.setqf("value10",0)
pc.setqf("type11",0)
pc.setqf("value11",0)
pc.setqf("type12",0)
pc.setqf("value12",0)
pc.setqf("y3",0)
if item.vnum >= 180 and item.vnum <= 189 then
pc.setqf("type",72)
pc.setqf("value",55)
while i < 4 do
local bonusy = select( " قوى ضد زومبي "," قوى ضد شيطان "," ذكاء "," قوة "," مناوره "," حيويه "," قوى ضد الحيوانات "," قوى ضد الغيلان "," فرص الاغماء "," تسمم "," خارقه "," حاسمه ")
if bonusy == 1 and pc.getqf("u") == 0 and item.vnum >= 180 and item.vnum <= 189 and pc.getqf("olditem") == item.get_id() then
pc.setqf("type1",21)
pc.setqf("value1",20)
item.set_value(1, 0, 1)
item.set_value(2, 0, 1)
item.set_value(3, 0, 1)
item.set_value(4, 0, 1)
item.set_value(5, 0, 1)
o=o+1
i=i+1
pc.setqf("u",1)
elseif bonusy == 2 and pc.getqf("a") == 0 and item.vnum >= 180 and item.vnum <= 189 and pc.getqf("olditem") == item.get_id() then
pc.setqf("type2",22)
pc.setqf("value2",20)
item.set_value(1, 0, 1)
item.set_value(2, 0, 1)
item.set_value(3, 0, 1)
item.set_value(4, 0, 1)
item.set_value(5, 0, 1)
o1=o1+1
i=i+1
pc.setqf("a",1)
elseif bonusy == 3 and pc.getqf("b") == 0 and item.vnum >= 180 and item.vnum <= 189 and pc.getqf("olditem") == item.get_id() then
pc.setqf("type3",4)
item.set_value(1, 0, 1)
item.set_value(2, 0, 1)
item.set_value(3, 0, 1)
item.set_value(4, 0, 1)
item.set_value(5, 0, 1)
pc.setqf("value3",12)
i=i+1
o2=o2+1
pc.setqf("b",1)
elseif bonusy == 4 and pc.getqf("c") == 0 and item.vnum >= 180 and item.vnum <= 189 and pc.getqf("olditem") == item.get_id() then
item.set_value(1, 0, 1)
item.set_