Hi Liebe Leute,
habe bei der folgenden Quest folgendes Problem:
Wenn man die Quest annimmt wird immer der gleiche Text (der Letter) angezeigt, wenn man ihn anklickt. Der Counter wird erst angezeigt, wenn man ein Mob killt statt im Vorfeld schon..
Könnte das jemand vllt. mal korrigieren... bin beim Questen nicht der beste
Code
- quest level25 begin
- state start begin
- when login or levelup with pc.get_level() >= 25 begin-- and pc.getqf("level_twentyfife_01") != 1 begin
- set_state(level25)
- end
- end
- state level25 begin
- when letter begin
- send_letter(gameforge[get_language()].level_twentf._say_01)
- end
- when button or info begin
- say_title(gameforge[get_language()].level_twentf._say_01)
- say("")
- say_reward(gameforge[get_language()].level_twentf._say_02)
- say("")
- pc.setqf("level_twentyfife_01", 1)
- end
- when 20355.chat."Sole from Kriksus" with pc.getqf("level_twentyfife_02") != 1 begin--and pc.getqf("level_twentyfife_01") == 1 begin
- say_title(gameforge[get_language()].level_twentf._say_01)
- say(gameforge[get_language()].level_twentf._say_03)
- say(gameforge[get_language()].level_twentf._say_04)
- say(gameforge[get_language()].level_twentf._say_05)
- say(gameforge[get_language()].level_twentf._say_06)
- say(gameforge[get_language()].level_twentf._say_07)
- say(gameforge[get_language()].level_twentf._say_08)
- say(gameforge[get_language()].level_twentf._say_09)
- say(gameforge[get_language()].level_twentf._say_10)
- say(gameforge[get_language()].level_twentf._say_11)
- say(gameforge[get_language()].level_twentf._say_12)
- say(gameforge[get_language()].level_twentf._say_13)
- say(gameforge[get_language()].level_twentf._say_14)
- say(gameforge[get_language()].level_twentf._say_15)
- say(gameforge[get_language()].level_twentf._say_16)
- pc.setqf("level_twentyfife_02", 1)
- end
- when 30122.chat."Who are you?" with pc.getqf("level_twentyfife_03") != 1 and pc.getqf("level_twentyfife_02") == 1 begin
- say_title("Kriksus:")
- say(gameforge[get_language()].level_twentf._say_17)
- say(gameforge[get_language()].level_twentf._say_18)
- say(gameforge[get_language()].level_twentf._say_19)
- say(gameforge[get_language()].level_twentf._say_20)
- say(gameforge[get_language()].level_twentf._say_21)
- say(gameforge[get_language()].level_twentf._say_22)
- local s = select("Yes", "No")
- if s == 1 then
- say(gameforge[get_language()].level_twentf._say_23)
- say(gameforge[get_language()].level_twentf._say_24)
- say(gameforge[get_language()].level_twentf._say_25)
- say(gameforge[get_language()].level_twentf._say_26)
- say(gameforge[get_language()].level_twentf._say_27)
- say("")
- pc.setqf("state25", 3)
- q.set_counter("Oberork", 3)
- pc.setqf("level_twentyfife_03", 1)
- else
- say(gameforge[get_language()].level_twentf._say_28)
- say(gameforge[get_language()].level_twentf._say_29)
- say(gameforge[get_language()].level_twentf._say_30)
- say(gameforge[get_language()].level_twentf._say_31)
- say(gameforge[get_language()].level_twentf._say_32)
- say(gameforge[get_language()].level_twentf._say_33)
- say(gameforge[get_language()].level_twentf._say_34)
- say(gameforge[get_language()].level_twentf._say_35)
- say(gameforge[get_language()].level_twentf._say_36)
- say(gameforge[get_language()].level_twentf._say_37)
- pc.setqf("state25", 3)
- q.set_counter("Oberork", 3)
- pc.setqf("level_twentyfife_03", 1)
- end
- end
- when 691.kill begin--with pc.getqf("level_twentyfife_04") != 1 and pc.getqf("level_twentyfife_03") == 1 begin
- local count = pc.getqf("state25") - 1
- if count >= 1 then
- pc.setqf("state25", count)
- q.set_counter("Oberork", count)
- end
- if count == 0 then
- say_reward(gameforge[get_language()].level_twentf._say_38)
- say("")
- pc.setqf("level_twentyfife_04", 1)
- end
- end
- when 30122.chat."I am done!" with pc.getqf("level_twentyfife_05") != 1 and pc.getqf("level_twentyfife_04") == 1 begin
- say(gameforge[get_language()].level_twentf._say_39)
- say(gameforge[get_language()].level_twentf._say_40)
- say(gameforge[get_language()].level_twentf._say_41)
- say(gameforge[get_language()].level_twentf._say_42)
- say(gameforge[get_language()].level_twentf._say_43)
- say(gameforge[get_language()].level_twentf._say_44)
- say(gameforge[get_language()].level_twentf._say_45)
- say(gameforge[get_language()].level_twentf._say_46)
- say("")
- pc.give_item2(179, 1)
- pc.setqf("level_twentyfife_05", 1)
- end
- end
- state __COMPLETE__ begin
- end
- end
Ich danke schon jetzt für die Hilfe
.Dark