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

03/20/2015 03:09 xCPx#1
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.


[Only registered and activated users can see links. Click Here To Register...]


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 ^^
03/20/2015 03:11 .Kyroja#2
Danke diggi<3

Wie immer Geile Sachen von dir :D<3
03/20/2015 09:34 DasSchwarzeT#3
Nicht schlecht^^ Danke, kann man einiges draus machen
03/20/2015 11:48 QuickFlameZ#4
Defnitiv, worth. Hast du gut gemacht :D
kind regards
03/20/2015 11:57 rollback#5
definitiv nicht schlecht.
03/20/2015 12:04 MrLibya#6
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 :)

03/20/2015 12:36 killchill™#7
Echt geil danke :)
03/20/2015 12:37 xCPx#8
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
03/20/2015 12:42 MrLibya#9
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 :)
03/20/2015 12:51 xCPx#10
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 ^^
03/20/2015 12:58 Noa_#11
just perfect
03/20/2015 14:36 .Sanii#12
Man ey jetzt feier ich mein Petsystem garnichtmehr so -.- xD
03/20/2015 14:39 .Raicon#13
Jetzt weiß ich auch warum du mich immer diese komischen Sachen gefragt hattest :P

LG .Raicon
03/20/2015 14:53 xCPx#14
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 :D
03/20/2015 16:43 bakam123#15
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? :(