Code
- quest jagen1 begin
- state start begin
- when login with pc.level >= 1 begin
- set_state(information)
- end
- end
- state information begin
- when letter begin
- send_letter("Rette die Koenigslande")
- end
- when info or button begin
- say_title("Rette die Koenigslande 1")
- say("Helfe dabei das Reich frei von Wildhunden zu halten")
- say("Warhaftig! Du wirst reichlich belohnt")
- say_reward("Anfangswaffe+6")
- say("Jage 10 Wildhunde")
- pc.setqf("state", 10)
- q.set_counter("Wildhund", 10)
- end
- when 101.kill begin
- local count = pc.getqf("state") - 1
- if count <= 10 then
- pc.setqf("state", count)
- q.set_counter("Wildhund", count)
- end
- if count == 0 then
- say_title("Rette die Koenigslande 1 ABGESCHLOSSEN")
- say("Welch glorreiche Tat edler Soldat")
- say("Moegen die alten und die neuen.")
- say("Goetter dich belohnen")
- say_reward("Anfangswaffe+6")
- wait()
- if pc.job == 0 then
- pc.give_item2(16, 1)
- clear_letter()
- set_state(__COMPLETE__)
- end
- if pc.job == 1 then
- pc.give_item2(16, 1)
- clear_letter()
- set_state(__COMPLETE__)
- end
- if pc.job == 2 then
- pc.give_item2(16, 1)
- clear_letter()
- set_state(__COMPLETE__)
- end
- if pc.job == 3 then
- pc.give_item2(7006, 1)
- clear_letter()
- set_state(__COMPLETE__)
- end
- end
- end
- end
- state __COMPLETE__ begin
- when letter begin
- return
- end
- end
- end
done