Register for your free account! | Forgot your password?

You last visited: Today at 10:09

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


[Scroll of Glowchange] Problem...

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 230
[Scroll of Glowchange] Problem...

Hallo,
Ich habe bei mir mal versucht, die Scroll of Glowchange einzubauen.
Als erstes habe ich der Klasse CMover das Attribut m_dwGlow(DWORD) hinzugefügt. Dann habe ich einen Befehl geschrieben, der dieses Attribut folgendermaßen setzt:
Code:
BOOL TextCmd_ChangeGlow( CScanner & s )
{
#ifdef __WORLDSERVER
	s.GetToken();

	CUser* pUser	= (CUser*)s.dwValue;
	CMover *pMover = pUser;

	if( s.Token == GLOW_RED )
		pMover->SetGlow( GLOW_RED );
	else 
		pMover->SetGlow( GLOW_NORMAL );

	return TRUE;
#else	// __WORLDSERVER
	return TRUE;
#endif	// __WORLDSERVER
}
Mover.h:
Code:
	void			SetGlow( DWORD dwGlow ){ m_dwGlow = dwGlow; }
Und in der Mover.cpp habe ich nun folgendes versucht:
Code:
	switch( nAbilityOption )
	{
	case 3: dwSfx = XI_GEN_ITEM_SETITEM03; break;
	case 4: dwSfx = XI_GEN_ITEM_SETITEM04; break;
	case 5: dwSfx = XI_GEN_ITEM_SETITEM05; break;
	case 6: dwSfx = XI_GEN_ITEM_SETITEM06; break;
	case 7: dwSfx = XI_GEN_ITEM_SETITEM07; break;
	case 8: dwSfx = XI_GEN_ITEM_SETITEM08; break;
	case 9: dwSfx = XI_GEN_ITEM_SETITEM09; break;
	case 10: 
		{
			switch( m_dwGlow )
			{
			case GLOW_RED: dwSfx = XI_GEN_ITEM_SETITEM10_RED; break;

			case GLOW_NORMAL: dwSfx = XI_GEN_ITEM_SETITEM10; break;
			default: dwSfx = XI_GEN_ITEM_SETITEM10; break;
			}
		}break;
	}
Funktioniert aber nicht, es wird immer noch der normale Glow angezeigt, ich denke, dass das daran liegt, dass die Variable m_dwGlow noch so deklariert wird: m_dwGlow = GLOW_NORMAL;.
Wie kann ich das jetzt so machen, dass er eben nicht auf das GLOW_NORMAL zugreift, sondern auf dass, was über den Befehl gesetzt wurde?

MFG Unleashed!



Unleashed! is offline  
Reply



« OnJoin() Fehler | Help! Need Awake bot on Flyff Divinity. »

Similar Threads
(ALB) WTS Effect Scroll - Megadolon Drop Scroll
Im looking for plats just serious offers please
1 Replies - Trading
[ZSZC] Problem with reverse scroll.
Hi guys. I have a trouble. When i put on reverse scroll, any point (last die, or last return) i got...
4 Replies - SRO PServer Ask the Experts
Problem Regarding Reverse Scroll on DB Bot
im wondering now, does Reverse Scroll Work when your Using DB Bot? cuz im currently using v1.0 right now, and just bought Reverse scrolls since my...
1 Replies - SRO PServer Ask the Experts
Problem Scroll
Hi, I have a problem with my scroll bird island, he walks by /item BirdIslandGates 0 0 0 0 0 0 but when you buy in its CpsShop do not put in my bag I...
10 Replies - CO2 PServer - Discussions / Questions
agbot return scroll problem
when my acc goes to his hunting area he kills 1 mob and starts return scroll... wtf guys..? can som1 help me?
4 Replies - SRO Ask the Experts



All times are GMT +2. The time now is 10:09.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.