Ich hab eine Quest geschrieben, dass man ein Item braucht um auf eine Farmmap zu kommen, leider klappt es nur wenn man dieses Item 1x im Inventar hat ,wenn man es 2x im Inventar hat geht es garnicht mehr.. weißt jemand warum?
Dankesehr
PHP Code:
quest farmmap begin
state start begin
when 9028.chat."Farmmap von Lv. 1 - Lv. 95" with pc.get_map_index() == 1 or pc.get_map_index() == 41 begin
local anzahl = 1
local itemvnum = 31061
say_title("Aschera: ")
say("")
say_green("Um diese Farmmap betreten zu können")
say_green("benötigst du:")
say_item_vnum(31061)
local s = select("Ich habe einen Ast!", "Nein, hab leider keinen. ")
if s == 1 then
if pc.count_item(itemvnum) >= anzahl and pc.level <= 95 and pc.can_warp() then
pc.remove_item(31061, 1)
pc.warp(777784000, 777848100)
else
chat("|cFF00ff33[Information]|h|cFFFFFFFF|h Du besitzt keinen Ast, bist zu hoch für diese Map oder musst 10 Sekunden warten.")
end
end
end
end
end
quest farmmap begin state start begin when 9010.chat."Farmmap Lv. 1 - Lv. 95" with pc.get_map_index() == 1 or pc.get_map_index() == 41 begin say_title("Aschera: ") say("") say("Um diese Farmmap betreten zu können") say("benötigst du einen:") say_item_vnum(31061) local s = select("Ich habe einen "..item_name(31061).."", "Abbrechen") if s == 1 then if pc.count_item(31061) < 1 then return chat("|cFF00ff33[Information]|h|cFFFFFFFF|h Du hast nicht genug "..item_name(31061).."!") end if pc.level >= 96 then return chat("|cFF00ff33[Information]|h|cFFFFFFFF|h Dein Level ist zu hoch!") end pc.remove_item(31061, 1) chat("|cFF00ff33[Information]|h|cFFFFFFFF|h Du wirst nun teleportiert") pc.warp(4553400, 4577300) return end end end end
Hab sie mal etwas bearbeitet, aber die funktion hat wunderbar geklappt gehabt bzgl. mehrere von diesen Items im Inventar trz. alledem hat er mich geportet.
Die Quest geht bei mir nicht, außerdem möchte ich auch noch die pc.can warp Funktion damit das Item nicht weg geht, wenn man 10 Sekunden warten muss weil man einen Shop offen hatte.
Welcher Fehler tritt den beim compilen der Quest auf? Bei mir geht sie nämlich ohne Probleme.
Hiernochmal die Quest inkl. pc.can_warp Funktion. Du solltest den NPC + die Warp Koordinaten noch anpassen, da ich diese geändert hab.
Mfg.
PHP Code:
quest farmmap begin state start begin when 9010.chat."Farmmap Lv. 1 - Lv. 95" with pc.get_map_index() == 1 or pc.get_map_index() == 41 begin say_title("Aschera: ") say("") say("Um diese Farmmap betreten zu können") say("benötigst du einen:") say_item_vnum(31061) local s = select("Ich habe einen "..item_name(31061).."", "Abbrechen") if s == 1 then if pc.count_item(31061) < 1 then return chat("|cFF00ff33[Information]|h|cFFFFFFFF|h Du hast nicht genug "..item_name(31061).."!") end if pc.level >= 96 then return chat("|cFF00ff33[Information]|h|cFFFFFFFF|h Dein Level ist zu hoch!") end if pc.can_warp() then pc.remove_item(31061, 1) pc.warp(4553400, 4577300) else chat("|cFF00ff33[Information]|h|cFFFFFFFF|h Du musst 10 Sekunden warten, bis du dich teleportieren kannst.") return end end end end end
[Quest-PROBLEM]"Weiter"-Button, Quest schließt sich 02/01/2014 - Metin2 Private Server - 8 Replies Servus Leute,
ich habe folgendes Problem, meine "give_starter_set.quest" sieht wie folgt aus:
quest give_starter_set begin
state start begin
when login begin
say_title("Willkommen")
say("Willkommen auf TEST")
Compile all quest without quest's files list // Kompilieren Sie alle Quest ohne Quest 07/17/2011 - Metin2 PServer Guides & Strategies - 3 Replies ENGLISH
Hello dear community, this is a very simple guide but at the same time useful.
How to compile ALL quest in the folder "quest" without the files list in the file "locale_list"?
Easy!
Open the file "make" and replace the content of the file with this:
for f in *.quest; do ./qc $f; done
Oki. Now set the 0777 permission to the file.
Finally open a SSH client and sign in. Write the command:
cd /game_file_folder
[Problem] Problem with server starting - cannot find quest index for PaxHeader 12/22/2009 - Metin2 Private Server - 1 Replies Hello!
I have this same problem as here when i'm starting my server:
http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html
But I didn't know the answer.. how to repair this?
Greetings