[Mini TuT] Normale Namensfarbe Ändern [Source]

07/09/2011 22:51 マリブ#1
Tach Epvpers,

Da ich noch nichts zu diesem Thema gefunden hab, nur zu Admin / GM Farbe zeig ich euch wie man das auch für Normale User machen kann ;3

Als erstes Öffnet ihr Mover.h und Sucht nach: #define COLOR_PLAYER
Wenn ihr das gefunden habt seh ihr das:

#define COLOR_PLAYER 0xffFFD700 // Hier wird die Normale Player Farbe definiert.
#define COLOR_GAMEMASTER 0xff2D7CAE
#define COLOR_ADMINISTRATOR 0xFFEE0000
#define COLOR_NPC 0xff8DEEEE
#define COLOR_MONSTER 0xff00CD00
#define COLOR_PARTY 0xff7D26CD
#define COLOR_GUILDCOMBAT 0xff00ff00[/code]

Bei euch werden andere Zahlen stehen, weil ich es bei mir schon geändert hab. FF = Transparens (FF = 100% Empfehlenswert zu lassen)
So nun wählt ihr auf der [Only registered and activated users can see links. Click Here To Register...] einen Hex Farbcode aus.
Ich nehme in diesem Beispiel mal 00FFFF das wäre dann die Farbe cyan.
Code:
[COLOR="Red"]#define	COLOR_PLAYER[/COLOR]			0xff[COLOR="Red"]FFD700[/COLOR]
#define COLOR_GAMEMASTER        0xff2D7CAE
#define COLOR_ADMINISTRATOR     0xFFEE0000
#define	COLOR_NPC				0xff8DEEEE
#define	COLOR_MONSTER			0xff00CD00
#define	COLOR_PARTY				0xff7D26CD
#define COLOR_GUILDCOMBAT		0xff00ff00
Nun ändert ihr das rot Makierte in euren Hex Code um.

Als nächstes Öffnet ihr MoverRender.cpp und sucht nach #if __VER >= 13 // __HONORABLE_TITLE
Dann dürfte da Folgendes kommen:
Code:
#if __VER >= 13 // __HONORABLE_TITLE
		if( IsChaotic() )
			dwColor = prj.m_PKSetting.dwChaoColor;
		else if( IsPKPink() )
			dwColor = prj.m_PKSetting.dwReadyColor;
		else if( m_dwAuthorization >= AUTH_ADMINISTRATOR ) 
			dwColor = COLOR_ADMINISTRATOR;
		else if( m_dwAuthorization >= AUTH_GAMEMASTER )
			dwColor = COLOR_GAMEMASTER;
		else
			dwColor = prj.m_PKSetting.dwGeneralColor;
So und nun fügen wir unter dwColor = COLOR_GAMEMASTER; folgendes ein:
Code:
else if( m_dwAuthorization >= AUTH_GENERAL )
			dwColor = COLOR_PLAYER;
Dann sollte das ganze so aussehen:
Code:
#if __VER >= 13 // __HONORABLE_TITLE
		if( IsChaotic() )
			dwColor = prj.m_PKSetting.dwChaoColor;
		else if( IsPKPink() )
			dwColor = prj.m_PKSetting.dwReadyColor;
		else if( m_dwAuthorization >= AUTH_ADMINISTRATOR ) // GM / Admin colors
			dwColor = COLOR_ADMINISTRATOR;
		else if( m_dwAuthorization >= AUTH_GAMEMASTER )
			dwColor = COLOR_GAMEMASTER;
		[B]else if( m_dwAuthorization >= AUTH_GENERAL )
			dwColor = COLOR_PLAYER;[/B]
		else
			dwColor = prj.m_PKSetting.dwGeneralColor;
So nur noch Compilieren und Fertig.

In der Mover.h könnt ihr auch die Farbe von NPC's und Monster Ändern.

Credits: 100% by me :3
07/09/2011 23:26 Flash!#2
.. oder in der PkSetting.inc einstellen, trotzdem Thanks für den Aufwand.
07/09/2011 23:26 damir123#3
egal wie :D langsam kann man daraus ein Farbenfrohes Game machen xDDDD
07/09/2011 23:28 Achileus#4
nicht zu gebrauchen gibs schon nen tut von so bald ich weiß


nur das gleiche in grün^^
07/09/2011 23:29 マリブ#5
Hab keins Gefunden, auch nicht in RZ.

Hatte sowieso zuviel Zeit ;D
01/12/2014 09:18 jenny2011#6
ich versuche eben das in der Tabelle zu finden. Worunter genau findet man dieses mit der farbe der cahrs?
PS_GameData?:confused:
01/12/2014 19:51 Reavern#7
#moved
01/18/2014 05:24 Sammyz#8
I see this thread is old, not trying to hijack it...

But i do see you taking full credits for this, yet:
forum.rage zone.com/f457/clean-source-705158/

Was released 1 year before you "called" your own.

I am also pretty sure you are not spikensbror, no wonder why the flyff community is crap.
01/14/2015 12:18 freeman234#9
Wo findet man Mover.h ?? Brauche mal hilfe bin eine Niete in sowas :/
01/14/2015 12:20 マリブ#10
Quote:
Originally Posted by freeman234 View Post
Wo findet man Mover.h ?? Brauche mal hilfe bin eine Niete in sowas :/
Im Source -> _Common Ordner.