Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 12:12

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

Advertisement



[C++/Source] Ingame Level Anzeige bei Pets

Discussion on [C++/Source] Ingame Level Anzeige bei Pets within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,901
Received Thanks: 3,341
[C++/Source] Ingame Level Anzeige bei Pets

Hey.
bin durch Zufall beim schreiben eines PetSystems drauf gestoßen, dass Pets ja RangPunkte haben können.
Dachte mir ich bastel es mal so dass man das Level des Pets direkt im Client sieht wie bei Spielern.

Da es ne 2 Minuten Arbeit war und mir neuerdings die PetGuis aufn Piss gehen gibts das Release.





Funktioniert alles Serverside.

Öffnet die char.cpp

Dort sucht nach:
Code:
if (IsPC() == true && (LC_IsEurope() == true || LC_IsCanada() == true || LC_IsSingapore() == true))
die if dort so ersetzen dass es so aussieht:

Code:
if (IsPC() == true && (LC_IsEurope() == true || LC_IsCanada() == true || LC_IsSingapore() == true))
		{
			addPacket.dwLevel = GetLevel();
		}
		else
		{
                    if(IsPet()){
                        addPacket.dwLevel = GetLevel();
                    }else{
			addPacket.dwLevel = 0;
                    }
		}

jetzt fügen wir das ganze noch ins PetSystem ein.
---> öffnet die PetSystem.cpp und sucht dort nach:
Code:
m_pkChar->SetPet();
darunter fügt ihr an:
Code:
        m_pkChar->SetLevel(100);
Und ja ich weiß hier im Beispiel sind es feste Werte aber soll auch nur ein denkanreiz sein für alle die sich darüber gedanken machen.

Funktioniert übrigens mit Rangpunkten etc auch wunderbar ^^
xCPx is offline  
Thanks
22 Users
Old 03/20/2015, 03:11   #2
 
.Kyroja's Avatar
 
elite*gold: 86
Join Date: Dec 2013
Posts: 904
Received Thanks: 599
Danke diggi<3

Wie immer Geile Sachen von dir <3
.Kyroja is offline  
Thanks
1 User
Old 03/20/2015, 09:34   #3
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,937
Nicht schlecht^^ Danke, kann man einiges draus machen
DasSchwarzeT is offline  
Old 03/20/2015, 11:48   #4
 
QuickFlameZ's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 646
Received Thanks: 696
Defnitiv, worth. Hast du gut gemacht
kind regards
QuickFlameZ is offline  
Old 03/20/2015, 11:57   #5

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
definitiv nicht schlecht.
rollback is offline  
Old 03/20/2015, 12:04   #6
 
MrLibya's Avatar
 
elite*gold: 30
Join Date: Mar 2012
Posts: 517
Received Thanks: 339
Beeter To Make Him Load Level From the Mob_proto

Update 1 : HOW TO Pet Level From Mob Proto !
I Didn't test It But i Think You Should Not Add this :

PHP Code:
m_pkChar->SetLevel(100); 
and it will load from the mob _proto

MrLibya is offline  
Thanks
1 User
Old 03/20/2015, 12:36   #7
 
killchill™'s Avatar
 
elite*gold: 0
Join Date: Dec 2013
Posts: 1,256
Received Thanks: 554
Echt geil danke
killchill™ is offline  
Old 03/20/2015, 12:37   #8
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,901
Received Thanks: 3,341
Quote:
Originally Posted by MrLibya View Post
Beeter To Make Him Load Level From the Mob_proto

Update 1 : HOW TO Pet Level From Mob Proto !
I Didn't test It But i Think You Should Not Add this :

PHP Code:
m_pkChar->SetLevel(100); 
and it will load from the mob _proto


You don´t understand what i wanted to do with it ^^

It´s for a "Level System" for Pets.
With increasing stats etc
xCPx is offline  
Thanks
1 User
Old 03/20/2015, 12:42   #9
 
MrLibya's Avatar
 
elite*gold: 30
Join Date: Mar 2012
Posts: 517
Received Thanks: 339
Quote:
Originally Posted by xCPx View Post
You don´t understand what i wanted to do with it ^^

It´s for a "Level System" for Pets.
With increasing stats etc
yeah i understand u , but u put a Default level and it's 100 so it's not a full pet level system ! , so this is useless
MrLibya is offline  
Thanks
1 User
Old 03/20/2015, 12:51   #10
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,901
Received Thanks: 3,341
Quote:
Originally Posted by MrLibya View Post
yeah i understand u , but u put a Default level and it's 100 so it's not a full pet level system ! , so this is useless
I know that i put a default level^^
it´s just to show them how they could do it.
I don´t wanna give them everything so that they can stop thinking ^^
xCPx is offline  
Thanks
2 Users
Old 03/20/2015, 12:58   #11
 
Noa_'s Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 605
Received Thanks: 580
just perfect
Noa_ is offline  
Old 03/20/2015, 14:36   #12
 
.Sanii's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 353
Received Thanks: 621
Man ey jetzt feier ich mein Petsystem garnichtmehr so -.- xD
.Sanii is offline  
Thanks
1 User
Old 03/20/2015, 14:39   #13

 
.Raicon's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 1,034
Received Thanks: 1,167
Jetzt weiß ich auch warum du mich immer diese komischen Sachen gefragt hattest :P

LG .Raicon
.Raicon is offline  
Thanks
3 Users
Old 03/20/2015, 14:53   #14
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,901
Received Thanks: 3,341
Quote:
Originally Posted by .Raicon View Post
Jetzt weiß ich auch warum du mich immer diese komischen Sachen gefragt hattest :P

LG .Raicon
Ja ^^

War bisher ja immernoch zu faul mir das PetSystem ordentlich anzusehen
xCPx is offline  
Thanks
1 User
Old 03/20/2015, 16:43   #15
 
elite*gold: 0
Join Date: Dec 2011
Posts: 114
Received Thanks: 22
Quote:
Originally Posted by xCPx View Post
I know that i put a default level^^
it´s just to show them how they could do it.
I don´t wanna give them everything so that they can stop thinking ^^
was ist das?
bakam123 is offline  
Reply


Similar Threads Similar Threads
OVC anzeige Tool / ingame
04/16/2014 - WarRock - 12 Replies
Hallo zusammen, gibt es ein Tool, das anzeigt, wie hoch die ovc rate ist (%)? Bzw. wie konnten sonst die Werte hier angegeben werden? WA-STA.net - Your War Rock Stats Grüße
Ping Anzeige Ingame ?
03/30/2014 - Metin2 Private Server - 6 Replies
Könnte man eine Ping Anzeige (wie bei LoL) machen ? (ohne eine Sicherheitslücke auf zu machen)
Ingame TS3 Anzeige
05/25/2011 - World of Warcraft - 9 Replies
Huhu , ich weiß eig wär es eine Add-On frage aber da ich mir unsicher bin ob es überhaupt ein solches addon gibt , frage ich hier ! Ich suche ein Addon was anzeigt wer Gerade im TS redet usw... darf gern auch ein TS plugin sein
Ingame Dmg/Tp anzeige ect
05/24/2011 - Metin2 Private Server - 5 Replies
Hi, habe ein problem unzwar wenn man mops killt sieh man die tp wieviel schaden man anrichtet und ect ingame an welcher quest liegt das möchte diese gerne löschen
Ingame ZP Anzeige immer Waiting
05/15/2010 - CrossFire - 11 Replies
Bei meiner ZP Anzeige ingame steht immer Waiting und kann mir so nichts kaufen, weiß wer tipps?



All times are GMT +1. The time now is 12:13.


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