Register for your free account! | Forgot your password?

You last visited: Today at 18:11

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

Advertisement



Problem mit Quest.

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2011
Posts: 246
Received Thanks: 51
Problem mit Quest.

Guten Abend Leute,

wie schon gesagt hab ich ein Problem mit einer Quest. Ich habe die Quest selbst geschrieben. (Bin glaub ich nicht gut darin). Die Quest sollte einfach Bonis geben .

Hier ist sie:

PHP Code:
quest lol begin
    state start begin
        when pc
.get_level() = 10 with pc.getqf("Job"0begin
        
            say_title
("Irgend ein Typ:")
            
say("Na wie gehts du Tapferes Der Gerät :D")
            
say("OMG")
            
say("DU HAST WIRKLICH LEVEL 10 GESCHAFFT??")
            
say("Das muss aber belohnt werden")
            
say("Ich mach dir ein Angebot:)
            say("
Warte kurz muss den doofen Zettel suchen")
            say("
bin so blöd und hab ihn liegen lassen")
            wait()
            wait()
            say("
ah hier ist er")
            sub_set = select("
Weiter")
            if sub_set == 1 then
            
            say_title("
Irgend ein Typ:")
            say("
Okay also nun hier die Jobs:")
            say("")
            say("
1.Job Oldie")
            say("
Oldie brint dir 20gegen Monster.")
            say("")
            say("
2.Job S(Oldat)")
            say("
(S)Oldat bringt dir 10 Halbmenschen.")
            say("")
            say("
3.Job Oldit")
            say("
Oldit brint dir 7Deff gegen alle Rassen")
            sub_set = select("
Weiter")
            if sub_set == 1 then
            
            say_tilte("
Irgend ein Typ:")
            say("
Wähle deinen Beruf:)
            
sub_set select("Oldie""S(Oldat)""Oldit")
            if 
sub_set == 1 then
            
                affect
.add_collect(apply.ATT_BONUS_TO_MONSTER20,60*60*24*365*60)
                
end
            
else
                if 
sub_set == 2 then
            
                affect
.add_collect(apply.ATTBONUS_HUMAN10,60*60*24*365*60)
                
end
            
else
                if 
sub_set == 3 then
                
                affect
.add_collect(apply.RESIST_ASSASSIN7,60*60*24*365*60)
                
affect.add_collect(apply.RESIST_WARRIOR7,60*60*24*365*60)
                
affect.add_collect(apply.RESIST_SURA7,60*60*24*365*60)
                
affect.add_collect(apply.RESIST_SHAMAN10,60*60*24*365*60)
                
end
            pc
.setqf("Job"1)
            
end
        end
    end
end 
JediMax is offline  
Old 07/01/2012, 00:52   #2
 
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 96
was sagt vpc wegen fehler?
lautlosertot is offline  
Old 07/01/2012, 00:59   #3
 
elite*gold: 0
Join Date: Jul 2011
Posts: 246
Received Thanks: 51
when doesnt have begin-end clause (()
JediMax is offline  
Old 07/02/2012, 15:47   #4
 
.Tobias's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,398
Received Thanks: 663
say("Ich mach dir ein Angebot = say("Ich mach dir ein Angebot:")
.Tobias is offline  
Old 07/02/2012, 16:09   #5

 
elite*gold: 216
Join Date: Aug 2009
Posts: 1,768
Received Thanks: 1,962
Hey JediMax,

du hast abundzu vergessen, die Klammer ")" zu setzten.
Versuch es mal zu überarbeiten, und dann meldest du dich wieder :>

Mfg. Avo'
Lord Avo​ is offline  
Thanks
1 User
Old 07/02/2012, 16:16   #6
 
.Tobias's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,398
Received Thanks: 663
Eigl. nur einmal
.Tobias is offline  
Old 07/02/2012, 16:27   #7

 
elite*gold: 216
Join Date: Aug 2009
Posts: 1,768
Received Thanks: 1,962
2x :>
Lord Avo​ is offline  
Thanks
1 User
Old 07/03/2012, 17:20   #8
 
elite*gold: 0
Join Date: Jul 2011
Posts: 246
Received Thanks: 51
Ich hab das jetzt mal überarbeitet. Aber immer noch das gleiche Problem.
JediMax is offline  
Old 07/05/2012, 17:11   #9
 
elite*gold: 0
Join Date: Jul 2011
Posts: 246
Received Thanks: 51
Kann mir da wirklich niemand helfen?
JediMax is offline  
Old 07/05/2012, 18:04   #10
 
ɑɀe''s Avatar
 
elite*gold: 394
Join Date: Jul 2011
Posts: 503
Received Thanks: 558
Sollte funktionieren.

PHP Code:
quest lol begin 
    state start begin 
        when pc
.get_level() = 10 with pc.getqf("Job"0begin 
            say_title
("Irgend ein Typ:"
            
say("Na wie gehts du Tapferes Der Gerät :D"
            
say("OMG"
            
say("DU HAST WIRKLICH LEVEL 10 GESCHAFFT??"
            
say("Das muss aber belohnt werden"
            
say("Ich mach dir ein Angebot:"
            
say("Warte kurz muss den doofen Zettel suchen"
            
say("bin so blöd und hab ihn liegen lassen"
            
wait() 
            
say("ah hier ist er"
            
wait()
            
say_title("Irgend ein Typ:"
            
say("Okay also nun hier die Jobs:"
            
say(""
            
say("1.Job = Oldie"
            
say("Oldie brint dir 20% gegen Monster."
            
say(""
            
say("2.Job = S(Oldat)"
            
say("(S)Oldat bringt dir 10 Halbmenschen."
            
say(""
            
say("3.Job = Oldit"
            
say("Oldit brint dir 7% Deff gegen alle Rassen"
            
wait()
            
say_tilte("Irgend ein Typ:"
            
say("Wähle deinen Beruf:"
            
sub_set select("Oldie""S(Oldat)""Oldit""Abbrechen"
            if 
sub_set == 1 then 
                affect
.add_collect(apply.ATT_BONUS_TO_MONSTER20,60*60*24*365*60
                
pc.setqf("Job"1
            elseif 
sub_set == 2 then 
                affect
.add_collect(apply.ATTBONUS_HUMAN10,60*60*24*365*60
                
pc.setqf("Job"1
            elseif 
sub_set == 3 then 
                affect
.add_collect(apply.RESIST_ASSASSIN7,60*60*24*365*60
                
affect.add_collect(apply.RESIST_WARRIOR7,60*60*24*365*60
                
affect.add_collect(apply.RESIST_SURA7,60*60*24*365*60
                
affect.add_collect(apply.RESIST_SHAMAN10,60*60*24*365*60
                
pc.setqf("Job"1
            elseif 
sub_set == 4 then
                
return
            
end 
        end 
    end 
end 
ɑɀe' is offline  
Thanks
1 User
Old 07/05/2012, 18:09   #11

 
MetinLegende's Avatar
 
elite*gold: 10
Join Date: Feb 2012
Posts: 1,097
Received Thanks: 574
Code:
quest lol begin 
    state start begin 
        when levelup with pc.get_level() == 10 and pc.getqf("Job") == 0 begin 
            say_title("Irgend ein Typ:") 
            say("Na wie gehts du Tapferes Der Gerät :D") 
            say("OMG") 
            say("DU HAST WIRKLICH LEVEL 10 GESCHAFFT??") 
            say("Das muss aber belohnt werden") 
            say("Ich mach dir ein Angebot:") 
            say("Warte kurz muss den doofen Zettel suchen") 
            say("bin so blöd und hab ihn liegen lassen") 
            wait() 
            say("ah hier ist er") 
            wait()
            say_title("Irgend ein Typ:") 
            say("Okay also nun hier die Jobs:") 
            say("") 
            say("1.Job = Oldie") 
            say("Oldie brint dir 20% gegen Monster.") 
            say("") 
            say("2.Job = S(Oldat)") 
            say("(S)Oldat bringt dir 10 Halbmenschen.") 
            say("") 
            say("3.Job = Oldit") 
            say("Oldit brint dir 7% Deff gegen alle Rassen") 
            wait()
            say_tilte("Irgend ein Typ:") 
            say("Wähle deinen Beruf:") 
            sub_set = select("Oldie", "S(Oldat)", "Oldit", "Abbrechen") 
            if sub_set == 1 then 
                affect.add_collect(apply.ATT_BONUS_TO_MONSTER, 20,60*60*24*365*60) 
                pc.setqf("Job", 1) 
            elseif sub_set == 2 then 
                affect.add_collect(apply.ATTBONUS_HUMAN, 10,60*60*24*365*60) 
                pc.setqf("Job", 1) 
            elseif sub_set == 3 then 
                affect.add_collect(apply.RESIST_ASSASSIN, 7,60*60*24*365*60) 
                affect.add_collect(apply.RESIST_WARRIOR, 7,60*60*24*365*60) 
                affect.add_collect(apply.RESIST_SURA, 7,60*60*24*365*60) 
                affect.add_collect(apply.RESIST_SHAMAN, 10,60*60*24*365*60) 
                pc.setqf("Job", 1) 
            elseif sub_set == 4 then
                return
            end 
        end 
    end 
end
So sollte es gehen
MetinLegende is offline  
Old 07/05/2012, 18:16   #12
 
ɑɀe''s Avatar
 
elite*gold: 394
Join Date: Jul 2011
Posts: 503
Received Thanks: 558
Quote:
Originally Posted by xBlix View Post
Code:
quest lol begin 
    state start begin 
        when levelup with pc.get_level() == 10 and pc.getqf("Job") == 0 begin 
            say_title("Irgend ein Typ:") 
            say("Na wie gehts du Tapferes Der Gerät :D") 
            say("OMG") 
            say("DU HAST WIRKLICH LEVEL 10 GESCHAFFT??") 
            say("Das muss aber belohnt werden") 
            say("Ich mach dir ein Angebot:") 
            say("Warte kurz muss den doofen Zettel suchen") 
            say("bin so blöd und hab ihn liegen lassen") 
            wait() 
            say("ah hier ist er") 
            wait()
            say_title("Irgend ein Typ:") 
            say("Okay also nun hier die Jobs:") 
            say("") 
            say("1.Job = Oldie") 
            say("Oldie brint dir 20% gegen Monster.") 
            say("") 
            say("2.Job = S(Oldat)") 
            say("(S)Oldat bringt dir 10 Halbmenschen.") 
            say("") 
            say("3.Job = Oldit") 
            say("Oldit brint dir 7% Deff gegen alle Rassen") 
            wait()
            say_tilte("Irgend ein Typ:") 
            say("Wähle deinen Beruf:") 
            sub_set = select("Oldie", "S(Oldat)", "Oldit", "Abbrechen") 
            if sub_set == 1 then 
                affect.add_collect(apply.ATT_BONUS_TO_MONSTER, 20,60*60*24*365*60) 
                pc.setqf("Job", 1) 
            elseif sub_set == 2 then 
                affect.add_collect(apply.ATTBONUS_HUMAN, 10,60*60*24*365*60) 
                pc.setqf("Job", 1) 
            elseif sub_set == 3 then 
                affect.add_collect(apply.RESIST_ASSASSIN, 7,60*60*24*365*60) 
                affect.add_collect(apply.RESIST_WARRIOR, 7,60*60*24*365*60) 
                affect.add_collect(apply.RESIST_SURA, 7,60*60*24*365*60) 
                affect.add_collect(apply.RESIST_SHAMAN, 10,60*60*24*365*60) 
                pc.setqf("Job", 1) 
            elseif sub_set == 4 then
                return
            end 
        end 
    end 
end
So sollte es gehen
Wieso kopierst du meine Quest & postest sie nochmal?
THX geil?
ɑɀe' is offline  
Old 07/05/2012, 18:22   #13

 
MetinLegende's Avatar
 
elite*gold: 10
Join Date: Feb 2012
Posts: 1,097
Received Thanks: 574
Schau mal bei dir die erste Zeile an when PC.get_Level() = 10 with PC.getqf("Job",0) begin
Wird nicht funktionieren also Laber nicht sondern schaus dir erstmal genau an

PHP Code:
 when pc.get_level() = 10 begin # gibts so nicht und muss == nicht = sein
 
with pc.getqf("Job"0# gibts so auch nicht muss with pc.getqf("Job") == 0 sein 
Also bitte erst denken dann reden
Danke
MetinLegende is offline  
Old 07/05/2012, 18:24   #14
 
elite*gold: 0
Join Date: Jul 2011
Posts: 246
Received Thanks: 51
jetzt sagt er "calls undeclared function!"

"say title"
JediMax is offline  
Old 07/05/2012, 18:32   #15

 
MetinLegende's Avatar
 
elite*gold: 10
Join Date: Feb 2012
Posts: 1,097
Received Thanks: 574
Dann trag say_title in die questfunctions ein
MetinLegende is offline  
Reply


Similar Threads Similar Threads
quest problem...
03/31/2012 - Metin2 Private Server - 2 Replies
hey weiß jemand was man bei pc.refine_equip übergeben muss? weil iwie laut IDA müsste es ein int sein, übergibt man aber ienen int, kommt ein error-.-
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
[Quest Problem]
04/11/2011 - Metin2 Private Server - 1 Replies
Ahoi Elitepvpers. Ich habe ein kleines Problem mit meiner Quest. Sie Funktioniert nicht und ich finde den Fehler nicht. Hier mal die Quest: quest grotte2 begin state start begin when login or levelup with pc.level >0 begin set_state(zone_enter) end
[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 +2. The time now is 18:11.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.