Register for your free account! | Forgot your password?

You last visited: Today at 20:32

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

Advertisement



[Release] Angefangenes Haustiersystem

Discussion on [Release] Angefangenes Haustiersystem within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 09/22/2012, 20:57   #16
 
Red Firestar's Avatar
 
elite*gold: 0
The Black Market: 185/0/0
Join Date: Jul 2012
Posts: 5,520
Received Thanks: 1,350
Einfach nur geil *-* ist ja wie Pokemon xD
Red Firestar is offline  
Old 09/22/2012, 21:06   #17
 
elite*gold: 1
Join Date: Apr 2012
Posts: 928
Received Thanks: 2,485
Quote:
Originally Posted by Yoshix3 View Post
Ich hoffe, dass bald ein Server von dir online kommt
Und deine Quest ist sowas von Fail...
Müll den Mysql Server halt noch mehr zu
Wird dir nichts bringen sein Client ist soo imba gecrypted das er ihn nichtmal hochladen kann.
.Awesoome' is offline  
Thanks
8 Users
Old 09/22/2012, 21:44   #18
 
Stamm1994's Avatar
 
elite*gold: 24
Join Date: Jun 2011
Posts: 667
Received Thanks: 782
Quote:
Originally Posted by .Awesoome' View Post
Wird dir nichts bringen sein Client ist soo imba gecrypted das er ihn nichtmal hochladen kann.
hmm ich konnte ihn wirklich nicht hochladen damals haha
bei 80% hing sich der download auf was fürn zufall

neja ug files + client sind public ist doch das wichtigste oder?
Stamm1994 is offline  
Thanks
1 User
Old 09/22/2012, 23:00   #19
 
elite*gold: 1
Join Date: Apr 2012
Posts: 928
Received Thanks: 2,485
Quote:
Originally Posted by Stamm1994 View Post
hmm ich konnte ihn wirklich nicht hochladen damals haha
bei 80% hing sich der download auf was fürn zufall

neja ug files + client sind public ist doch das wichtigste oder?
Halbwegs, so leute wie Tim und Sphinx haben das zum Beispiel nicht verdient, Desko schon
.Awesoome' is offline  
Thanks
1 User
Old 09/23/2012, 00:14   #20

 
elite*gold: 0
Join Date: Feb 2008
Posts: 2,754
Received Thanks: 1,748
Hab deine Testquest mal ein bisschen überarbeitet.. Ist natürlich aber noch lange nicht gut, denke aber einfacher zu erweitern.
Keine Garantie dass sie funktioniert..

Code:
quest testq begin
    state start begin
		when login begin
			timer("haustier", 2)
		end
		function get_exp_table() 
			exp_table = {  -- Level,	exp_to_levelup,		exp_pro_mob
							{ 0,		0,					0 }, -- dummy entry
							{ 1,		50,					1 },
							{ 2,		100,				1 },
							{ 3,		250,				1 },
							{ 4,		450,				1 },
							{ 5,		850,				1 },
							{ 6,		1200,				1 },
							{ 7,		1550,				1 },
							{ 8,		1900,				1 },
							{ 9,		2400,				1 },
							{ 10,		3000,				1 },
			}
			return exp_table
		end
		
		
		when haustier.timer begin
			local pet_level = pc.getqf("p_level")
			if(pet_level = nil or pet_level = "") then
				return
			end
			
			local pet_exp = pc.getqf("p_exp")
			
			local exp_table = get_exp_table()
			local pet_exp_percentage = math.floor(exp_table[pet_level][1] / exp_table[pet_level][2])
			
			cmdchat("Pet_Level "..pc.getqf("pet_level"))
			cmdchat("Pet_Exp "..pc.getqf("p_exp"))
			cmdchat("Pet_ExpInP "..pet_exp_percentage)
						
			timer("haustier", 30)
		end
	
		when kill begin
			local exp_table = get_exp_table()
		
			local random = number(1, 100)
			local chance = 20 -- %
			
			local pet_level = pc.getqf("p_level")
			if(pet_level == nil or pet_level = "") then
				pc.setqf("p_level", 1)
				pet_level = 1
			end
			
			if random <= chance then
				local exp_to_levelup = exp_table[pet_level][1]
				local exp_pro_mob = exp_table[pet_level][2]
				local aktuelle_exp = pc.getqf("p_exp")
				
				pc.setqf("p_exp", aktuelle_exp + exp_pro_mob)
				
				if(exp_pro_mob >= exp_to_levelup) then
					syschat("Herzlichen Glückwunsch dein Haustier hat Level "..pet_level + 1.." erreicht!")
					pc.setqf("p_level", pet_level + 1)
					pc.setqf("p_exp", 0)
				end
			end
		end
	end
end
Computerfreek is offline  
Thanks
2 Users
Reply




All times are GMT +1. The time now is 20:32.


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.