help with a quest needed

10/30/2012 07:42 OldFart#1
hello all

i have been trying to get this quest to work so that when you have the quest (kill 100 giants) that you will be given a armour that is suited to the class of player (assassin,warrior etc)

any help would be appreciated

OldFart

Quote:
quest storage_quest1 begin
state start begin
when login with pc.level >= 89 begin
set_state(information)
end

end

state information begin
when letter begin
send_letter("Level 101 Armour Quest")
end
when info or button begin
say("Level 101 Armour Quest")
say("In Land of Giants live creatures of Strength...")
say("The ruler of the country is a powerful Giant...")
say("Youmust kill the Giant Workers...")
say("To weaken there domination of the giants...")

say_reward("Go and kill 100 Giant Workers")
say("")
pc.setqf("state", 100)
q.set_counter("Giant Workers", 100)

end

when 1601.kill begin
local count = pc.getqf("state") - 1
if count <= 100 then
pc.setqf("state", count)
q.set_counter("Giant Workers", count)
end
if count == 0 then
say_title("Level 101 Armour Quest")
say("You have completed the quest!")
say("The Land of Fire is again freed from the power of the dragon!")

if pc.job==0 then
pc.give_item2(11203)
say_reward("Monk Plate Armour+3")
end
if pc.job==1 then
pc.give_item2(11403)
say_reward("Azure Suit+3")
end
if pc.job==2 then
pc.give_item2(11603)
say_reward("Requiem Plate Armour+3")
end
if pc.job==3 then
pc.give_item2(11803)
say_reward("Azure Dress+3")
end
state __GIVEUP__ begin
end

state __COMPLETE__ begin
end
end
10/30/2012 08:27 henpii#2
pls tell me what is wrong, where did you get stuck?

King regards
H3npi
10/30/2012 09:31 OldFart#3
hello

when i do the make.sh it tells me there is a error as the problem seem to be in the last part where the armours are given out ( the last part of the script)
thats where i think the problem is

oldfart