Register for your free account! | Forgot your password?

You last visited: Today at 17:00

  • 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.

Reply
 
Old   #1
 
.Apfel's Avatar
 
elite*gold: 2
Join Date: Jun 2009
Posts: 645
Received Thanks: 151
Exclamation [Quest] Problem

Hallo,

Code:
quest levelhorse begin
	state start begin
		when 50911.use begin
			if horse.get_level() <= 20 then
				horse.advance()
				chat("Dein Pferd wurde um eine Stufe gesteigert.")
				item.remove()
			else
				chat("Dein Pferd hat schon das maximale Level erreicht.")
			end
			if horse.get_level() == 1 then
				say_title("Hufeisen")
				say("Herzlichen Glückwunsch!")
				say("Dein Pferd ist nun Stufe 1.")
				say("Du erhälst ein Pferdebild:")
				say_item_vnum(50051)
				pc.give_item2(50051, 1)
				item.remove()
			elseif horse.get_level() == 11 then
				say_title("Hufeisen")
				say("Herzlichen Glückwunsch!")
				say("Dein Pferd ist nun Stufe 11.")
				say("Du erhälst ein Waffen-Pferdebuch:")
				say_item_vnum(50052)
				pc.give_item2(50052, 1)
				item.remove()
			elseif horse.get_level() == 21 then
				say_title("Hufeisen")
				say("Herzlichen Glückwunsch!")
				say("Dein Pferd ist nun Stufe 21.")
				say("Du erhälst ein Militärpferdebuch:")
				say_item_vnum(50053)
				pc.give_item2(50053, 1)
				item.remove()
			end
		end
	end
end
Mein Problem ist halt, dass wenn mein Gaul bereits auf 21 ist, er mir jedesmal ein Milligaulbuch gibt, anstatt die Chatnachricht. (Die Chatnachricht, die sagt, dass das Pferd bereits Maximallevel erreicht hat)
.Apfel is offline  
Old 11/27/2011, 00:38   #2
 
Mijago's Avatar
 
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,594
PHP Code:
quest levelhorse begin
    state start begin
        when 50911.
use begin
            
if horse.get_level() <= 20 then
                horse
.advance()
                
chat("Dein Pferd wurde um eine Stufe gesteigert.")
                
item.remove()
            else
                
chat("Dein Pferd hat schon das maximale Level erreicht.")
                return
            
end
            
if horse.get_level() == 1 then
                say_title
("Hufeisen")
                
say("Herzlichen Glückwunsch!")
                
say("Dein Pferd ist nun Stufe 1.")
                
say("Du erhälst ein Pferdebild:")
                
say_item_vnum(50051)
                
pc.give_item2(500511)
                
item.remove()
            elseif 
horse.get_level() == 11 then
                say_title
("Hufeisen")
                
say("Herzlichen Glückwunsch!")
                
say("Dein Pferd ist nun Stufe 11.")
                
say("Du erhälst ein Waffen-Pferdebuch:")
                
say_item_vnum(50052)
                
pc.give_item2(500521)
                
item.remove()
            elseif 
horse.get_level() == 21 then
                say_title
("Hufeisen")
                
say("Herzlichen Glückwunsch!")
                
say("Dein Pferd ist nun Stufe 21.")
                
say("Du erhälst ein Militärpferdebuch:")
                
say_item_vnum(50053)
                
pc.give_item2(500531)
                
item.remove()
            
end
        end
    end
end 
Mijago is offline  
Thanks
1 User
Old 11/27/2011, 01:03   #3
 
.Apfel's Avatar
 
elite*gold: 2
Join Date: Jun 2009
Posts: 645
Received Thanks: 151
Dankeschön =)
Na, war eher was für's Auge, denn wenn ich den anderen Befehl für's removen des Items nehme, und ich z.B. 5 solcher Items im Inventar hab, nimmt es das Item das halt als erstes kommt. Ich wollte aber, dass es das Item entfernt, welches ich grade angeklickt habe. Und das tut er nunmal nur mit item.remove(). Ist aber auch egal, klappt alles prima =)
.Apfel is offline  
Reply


Similar Threads Similar Threads
Quest problem
08/07/2011 - Metin2 Private Server - 8 Replies
Hallo, undzwar sollte es eine wirklich leichte Quest sein aber irgendwie will sie nicht. Funktion: Normalerweise sollte man das Bündel anklicken und dort wird dein mapIndex überprüft. Bist du auf einer map 1 (Blaues,Rotes,Gelbes) wirst du teleportiert. Ist es nicht der Fall kannst du deinen Shop eröffnen. Hier die Quest.quest shop begin state start begin when 71049.use
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
Lil quest Problem
10/06/2008 - Silkroad Online - 4 Replies
I have problem like that when I made my character there wasn´t chinese tutorial quest in my quest window and now because i havent done that quest every time I log in it shows me Help window and for example every time I level up it shows me again that Help thing -.- and it is really annoying



All times are GMT +2. The time now is 17:00.


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.