kill quest plz help

01/23/2013 09:08 MrLibya#1
hey:D

i have problem in kill quest

Quote:

quest kill_dragons begin
state start begin
when login or levelup with pc.get_level() >= 80 begin
set_state( killmonster )
end
end
state killmonster begin
when letter begin
send_letter(" نداء الأبطال ")
pc.setqf("state", 0)
q.set_counter(" وحوش متبقية " ,10)
end
when info or button begin
say_title(" نداء الأبطال ")
say( " مرحبا بك أيها البطل . إمباطوريتك تريد منك المساعدة ")
say(" يجب عليك قتل ".." "..10 - pc.getqf("state").." قابض ارواح . ")
end
when 1091.kill begin
local count = pc.getqf("state") + 1

if count <= 10 then
pc.setqf("state", count)
q.set_counter(" وحوش متبقية ", 10 - count)

if count == 10 then
say_title(" أحسنت !! ")
say(" سوف تنال مكافئة جزاء مساعدتك ")
say(" مكافئتك هي : ")
say_reward(" 1x سيف تريتيون +9 ")
pc.give_item2(279,1)
clear_letter()
set_state( __COMPLETE__ )
end
end
end
end
state __COMPLETE__ begin
end
end



u see it's about kill this id 1091
10 times but when i kill him it's
not less to 9 it's be 10

so can u tell me where is the wrong
01/23/2013 09:19 .Remix#2
PHP Code:
when kill begin
    pc
.setqf("count"0)
    if 
npc.get_race() == 1091 then
        pc
.setqf("count"pc.getqf("count")+1)
    if 
pc.getqf("count") == 10 then 
01/23/2013 09:26 MrLibya#3
thx

Not work

can u edit the quest ?
01/23/2013 16:32 .Remix#4
PHP Code:
quest kill_dragons begin
state start begin
when login 
or levelup with pc.get_level() >= 80 begin
set_state
killmonster )
end
end
state killmonster begin
when letter begin
send_letter
(" ???? ??????? ")
pc.setqf("state"0)
q.set_counter(" ???? ?????? " ,10)
end
when info 
or button begin
say_title
(" ???? ??????? ")
say" ????? ?? ???? ????? . ?????????? ???? ??? ???????? ")
say(" ??? ???? ??? ".." "..10 pc.getqf("state").." ???? ????? . ")
pc.setqf("count")
end
when kill begin
if npc.get_race() == 1091 then
pc
.setqf("count"pc.getqf("count")+1)

if 
pc.getqf("count") == 10 then
say_title
(" ????? !! ")
say(" ??? ???? ?????? ???? ??????? ")
say(" ??????? ?? : ")
say_reward(" 1x ??? ??????? +9 ")
pc.give_item2(279,1)
clear_letter()
set_state__COMPLETE__ )
end
end
end
end
state __COMPLETE__ begin
end
end 
01/23/2013 22:37 MrLibya#5
thx

not work
the same problem
when i kill 1091
10 times the quest not end


up