Guten Abend,
Das Problem ist das nach Relog die verbleibenden Kills der Jagdquests resetet werden.
Beispiel:
Töte 50 Wildhunde. Ich töte 3 Stück und es verbleiben 47 welche noch getötet werden müssen. Ich führe einen Relog, Channel wechsel oder sonstiges in der Art durch, und die verbleibenden 47 Kills werden resetet. Sprich es sind wieder 50.
Code
- quest kampagneteil1 begin
- state start begin
- when login or levelup with pc.level >= 0 begin
- notice("New mission available - The Wild Dog Plague.")
- set_state(kampagne1)
- end
- end
- state kampagne1 begin
- when letter begin
- send_letter("The Wild Dog Plague")
- end
- when button or info begin
- say_title("The Wild Dog Plague")
- say("Wild dogs roam the gates of the village.")
- say("Kill 50 of these plagues and you will")
- say("be richly rewarded!")
- say("")
- say_reward("Task: Kill 50x Wild Dog.")
- say_reward("Reward:")
- say_reward("- Weapon+6.")
- say_reward("- 10.000 Yang.")
- set_state(kampagne2)
- end
- end
- state kampagne2 begin
- when letter begin
- pc.setqf("state", 0)
- q.set_counter("Remaining",50)
- end
- when button or info begin
- say_title("The Wild Dog Plague")
- say("I see you are busy earning your reward.")
- say("")
- say_reward( "You still have to defeat ".." "..50 - pc.getqf("state").." wild dogs ".. pc.get_name() ..".")
- say("")
- say("Continued success!")
- end
- when 101.kill begin
- local count = pc.getqf("state") + 1
- if count <= 50 then
- pc.setqf("state", count)
- q.set_counter("Remaining", 50 - count)
- if count == 50 then
- say_title("The Wild Dog Plague")
- say("")
- say("You have killed all the wild dogs.")
- say("A special reward is waiting for you!")
- say("Get ready for your next job!")
- say("")
- say_reward("- Weapon+6.")
- say_reward("- 10.000 Yang.")
- pc.changegold(10000)
- syschat("You have received 10.000 Yang.")
- if pc.get_job() == 0 then
- pc.give_item2(16, 1)
- elseif pc.get_job() == 1 then
- pc.give_item2(1006, 1)
- elseif pc.get_job() == 2 then
- pc.give_item2(16, 1)
- elseif pc.get_job() == 3 then
- pc.give_item2(7006, 1)
- end
- clear_letter()
- set_quest_state("blah2", "run")
- set_state( __COMPLETE__ )
- end
- end
- end
- end
- state __COMPLETE__ begin
- end
- end