Register for your free account! | Forgot your password?

You last visited: Today at 16:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Quest Problem

Discussion on Quest Problem within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1

 
»DeneX«'s Avatar
 
elite*gold: 100
Join Date: Jul 2015
Posts: 1,414
Received Thanks: 573
Quest Problem

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() == 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 
== 1 then
                
if pc.count_item(itemvnum) >= anzahl and pc.level <= 95 and pc.can_warp() then
                    pc
.remove_item(310611)
                    
pc.warp(777784000777848100)
                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 
»DeneX« is offline  
Thanks
1 User
Old 11/26/2016, 13:18   #2



 
Castiel''s Avatar
 
elite*gold: 0
The Black Market: 329/0/0
Join Date: Aug 2014
Posts: 8,233
Received Thanks: 2,496
Hey,

Für sowas gibt's diesen Sammelthread


Grüße
Castiel' is offline  
Old 11/26/2016, 16:39   #3


 
elite*gold: 0
Join Date: Jan 2014
Posts: 1,583
Received Thanks: 2,398
PHP Code:
quest farmmap begin 
    state start begin 
        when 9010.chat
."Farmmap Lv. 1 - Lv. 95" with pc.get_map_index() == 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 
== 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(310611)
                    
chat("|cFF00ff33[Information]|h|cFFFFFFFF|h Du wirst nun teleportiert")
                    
pc.warp(45534004577300
                    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.

Mfg.
Kyuso /.. is offline  
Thanks
1 User
Old 11/26/2016, 17:18   #4

 
»DeneX«'s Avatar
 
elite*gold: 100
Join Date: Jul 2015
Posts: 1,414
Received Thanks: 573
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.
»DeneX« is offline  
Old 11/26/2016, 18:13   #5


 
elite*gold: 0
Join Date: Jan 2014
Posts: 1,583
Received Thanks: 2,398
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() == 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 
== 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(310611)
                    
pc.warp(45534004577300
                    else
                    
chat("|cFF00ff33[Information]|h|cFFFFFFFF|h Du musst 10 Sekunden warten, bis du dich teleportieren kannst.")
                    return
                
end
            end
        end
    end
end 

Kyuso /.. is offline  
Thanks
1 User
Old 11/26/2016, 23:49   #6


 
Nectix's Avatar
 
elite*gold: 26
The Black Market: 135/0/0
Join Date: Apr 2012
Posts: 23,017
Received Thanks: 3,061
Bitte den Sammelthread nutzen.

#closed
Nectix is offline  
Closed Thread


Similar Threads Similar Threads
[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



All times are GMT +1. The time now is 16:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.