In game this quest don't work because where i open this quest there's nothing in it ,only button OK ,nothing more..
quest lvzehn begin
state start begin
when login or levelup with pc.get_level() >= 10 begin
set_state(information)
end
end
state information begin
when letter begin
send_letter("Vernichte Wölfe")
end
when button or info begin
pc.setqf("Wolf", 10)
pc.setqf("Alpha-Wolf", 10)
pc.setqf("Blauwolf", 10)
pc.setqf("Alpha-Blauwolf", 10)
pc.setqf("Alpha-Grauwolf", 10)
say("Töte die Folgenden Wölfe :")
say("Wolf : "..pc.getqf("Wolf").." ,")
say("Alpha-Wolf : "..pc.getqf("Alpha-Wolf").." ,")
say("Blauwolf : "..pc.getqf("Blauwolf").." ,")
say("Alpha-Blauwolf : "..pc.getqf("Alpha-Blauwolf").." ,")
say("Alpha-Grauwolf : "..pc.getqf("Alpha-Grauwolf").." ,")
say_reward("Dafür erhälst du 15% Exp,")
say_reward("20.000.000 Yang und 50 Switcher")
if pc.getqf("Wolf") == 0 and pc.getqf("Alpha-Wolf") == 0 and pc.getqf("Blauwolf") == 0 and pc.getqf("Alpha-Blauwolf") == 0 and pc.getqf("Alpha-Grauwolf") == 0 then
say("Du hast es geschafft")
say("Sehr gut du hast die Aufgabe erfüllt")
syschat("Du erhielst 10% Exp")
pc.give_exp_perc(15)
pc.changemoney(20000000)
pc.give_item2(101,1)
set_state(__COMPLETE__)
else
say("Du bist noch nicht Fertig.")
end
end
when kill with npc.get_race() == 102 with pc.getqf("Wolf") > 0 begin
pc.setqf("Wolf", pc.getqf("Wolf") - 1)
end
when kill with npc.get_race() == 103 with pc.getqf("Alpha-Wolf") > 0 begin
pc.setqf("Alpha-Wolf", pc.getqf("Alpha-Wolf" - 1)
end
when kill with npc.get_race() == 104 with pc.getqf("Blauwolf") > 0 begin
pc.setqf("Blauwolf", pc.getqf("Blauwolf" - 1)
end
when kill with npc.get_race() == 105 with pc.getqf("Alpha-Blauwolf") > 0 begin
pc.setqf("Alpha-Blauwolf", pc.getqf("Alpha-Blauwolf") - 1)
end
when kill with npc.get_race() == 107 with pc.getqf("Alpha-Grauwolf") > 0 begin
pc.setqf("Alpha-Grauwolf", pc.getqf("Alpha-Grauwolf") - 1)
end
end
state __COMPLETE__ begin
end
end
when kill with npc.get_race() == 102 and pc.getqf("Wolf") > 0 begin
quest lvzehn begin
state start begin
when login or levelup with pc.get_level() >= 10 begin
set_state(information)
end
end
state information begin
when letter begin
send_letter("Vernichte Wölfe")
end
when button or info begin
pc.setqf("Wolf", 10)
pc.setqf("Alpha-Wolf", 10)
pc.setqf("Blauwolf", 10)
pc.setqf("Alpha-Blauwolf", 10)
pc.setqf("Alpha-Grauwolf", 10)
say("Töte die Folgenden Wölfe :")
say("Wolf : "..pc.getqf("Wolf").." ,")
say("Alpha-Wolf : "..pc.getqf("Alpha-Wolf").." ,")
say("Blauwolf : "..pc.getqf("Blauwolf").." ,")
say("Alpha-Blauwolf : "..pc.getqf("Alpha-Blauwolf").." ,")
say("Alpha-Grauwolf : "..pc.getqf("Alpha-Grauwolf").." ,")
say_reward("Dafür erhälst du 15% Exp,")
say_reward("20.000.000 Yang und 50 Switcher")
if pc.getqf("Wolf") == 0 and pc.getqf("Alpha-Wolf") == 0 and pc.getqf("Blauwolf") == 0 and pc.getqf("Alpha-Blauwolf") == 0 and pc.getqf("Alpha-Grauwolf") == 0 then
say("Du hast es geschafft")
say("Sehr gut du hast die Aufgabe erfüllt")
syschat("Du erhielst 10% Exp")
pc.give_exp_perc(15)
pc.changemoney(20000000)
pc.give_item2(101,1)
set_state(__COMPLETE__)
else
say("Du bist noch nicht Fertig.")
end
end
when kill with npc.get_race() == 102 and pc.getqf("Wolf") > 0 begin
pc.setqf("Wolf", pc.getqf("Wolf") - 1)
end
when kill with npc.get_race() == 103 and pc.getqf("Alpha-Wolf") > 0 begin
pc.setqf("Alpha-Wolf", pc.getqf("Alpha-Wolf") - 1)
end
when kill with npc.get_race() == 104 and pc.getqf("Blauwolf") > 0 begin
pc.setqf("Blauwolf", pc.getqf("Blauwolf") - 1)
end
when kill with npc.get_race() == 105 and pc.getqf("Alpha-Blauwolf") > 0 begin
pc.setqf("Alpha-Blauwolf", pc.getqf("Alpha-Blauwolf") - 1)
end
when kill with npc.get_race() == 107 and pc.getqf("Alpha-Grauwolf") > 0 begin
pc.setqf("Alpha-Grauwolf", pc.getqf("Alpha-Grauwolf") - 1)
end
end
state __COMPLETE__ begin
end
end
quest lvzehn begin
state start begin
when login or levelup with pc.get_level() >= 10 begin
set_state(information)
end
end
state information begin
when letter begin
send_letter("Vernichte Wölfe")
end
when button or info begin
pc.setqf("Wolf", 10)
pc.setqf("Alpha-Wolf", 10)
pc.setqf("Blauwolf", 10)
pc.setqf("Alpha-Blauwolf", 10)
pc.setqf("Alpha-Grauwolf", 10)
say("Töte die Folgenden Wölfe :")
say("Wolf : "..pc.getqf("Wolf").." ,")
say("Alpha-Wolf : "..pc.getqf("Alpha-Wolf").." ,")
say("Blauwolf : "..pc.getqf("Blauwolf").." ,")
say("Alpha-Blauwolf : "..pc.getqf("Alpha-Blauwolf").." ,")
say("Alpha-Grauwolf : "..pc.getqf("Alpha-Grauwolf").." ,")
say_reward("Dafür erhälst du 15% Exp,")
say_reward("20.000.000 Yang und 50 Switcher")
set_state(killen)
end
end
state killen begin
when letter begin
send_letter("Vernichte Wölfe")
end
when button or info begin
say("Töte die Folgenden Wölfe :")
say("Wolf : "..pc.getqf("Wolf").." ,")
say("Alpha-Wolf : "..pc.getqf("Alpha-Wolf").." ,")
say("Blauwolf : "..pc.getqf("Blauwolf").." ,")
say("Alpha-Blauwolf : "..pc.getqf("Alpha-Blauwolf").." ,")
say("Alpha-Grauwolf : "..pc.getqf("Alpha-Grauwolf").." ,")
say_reward("Dafür erhälst du 15% Exp,")
say_reward("20.000.000 Yang und 50 Switcher")
if pc.getqf("Wolf") == 0 and pc.getqf("Alpha-Wolf") == 0 and pc.getqf("Blauwolf") == 0 and pc.getqf("Alpha-Blauwolf") == 0 and pc.getqf("Alpha-Grauwolf") == 0 then
say("Du hast es geschafft")
say("Sehr gut du hast die Aufgabe erfüllt")
syschat("Du erhielst 10% Exp")
pc.give_exp_perc(15)
pc.changemoney(20000000)
pc.give_item2(101,1)
set_state(__COMPLETE__)
else
say("Du bist noch nicht Fertig.")
end
end
when kill with npc.get_race() == 102 and pc.getqf("Wolf") > 0 begin
pc.setqf("Wolf", pc.getqf("Wolf") - 1)
end
when kill with npc.get_race() == 103 and pc.getqf("Alpha-Wolf") > 0 begin
pc.setqf("Alpha-Wolf", pc.getqf("Alpha-Wolf") - 1)
end
when kill with npc.get_race() == 104 and pc.getqf("Blauwolf") > 0 begin
pc.setqf("Blauwolf", pc.getqf("Blauwolf") - 1)
end
when kill with npc.get_race() == 105 and pc.getqf("Alpha-Blauwolf") > 0 begin
pc.setqf("Alpha-Blauwolf", pc.getqf("Alpha-Blauwolf") - 1)
end
when kill with npc.get_race() == 107 and pc.getqf("Alpha-Grauwolf") > 0 begin
pc.setqf("Alpha-Grauwolf", pc.getqf("Alpha-Grauwolf") - 1)
end
end
state __COMPLETE__ begin
end
end
Am Anfang 1 end zu wenig und am Ende 2 end's zu viel.Quote:
halllo ich finde meine fehler nicht :/
kann mir bitte jemand weiterhelfen die quest soll ans letter angezeigt wenn man draufklickt soll sie dann 500kk yang abziehen aber einen goldklumpen ausspucken
Hier das script
quest goldklumpen begin
state start begin
when login or levelup begin
set_state(letter)
end
end
state letter begin
when letter begin
if pc.get_gold() >= 500000000 then
pc.change_gold(-500000000)
pc.give_item2(80008, 1)
end
end
end
end
quest goldklumpen begin
state start begin
when letter begin
send_letter("Goldklumpen")
end
when button or info begin
if pc.get_gold() >= 500000000 then
pc.change_gold(-500000000)
pc.give_item2(80008, 1)
end
send_letter("Goldklumpen")
end
end
end