Premium Icon

05/24/2013 16:32 Deadline.#1
Hi, wollte mal adden das man als Premium User ein Icon bekommt.
Habe mal versucht es in WndField.cpp zu adden, und zwar:
Code:
#ifdef __PREMIUM_ICON
	if( pMover->IsAuthHigher( AUTH_PREMIUM ) == TRUE )
	{
		strPath = MakePath( DIR_ICON, "Icon_Premium.dds");
		pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
		if(pTexture != NULL)
			pTexture->Render( p2DRender, point );
	}
#endif //__PREMIUM_ICON
Errors:
'pMover' : undeclared identifier
error C2227: left of '->IsAuthHigher' must point to class/struct/union
type is ''unknown-type''

Weiß Jemand wie man das anstellen kann?
(kenne mich mit Flyff Source nichtmehr so aus)
05/24/2013 16:40 Velmore#2
Du musst pMover deklarieren.
05/24/2013 16:45 Deadline.#3
Quote:
Originally Posted by Velmore View Post
Du musst pMover deklarieren.
Und wie & wo?
pMover ist doch keine normale Variable?
05/24/2013 17:02 ThoughtfulDev#4
du willst das icon neben dem namen?

falls ja , dann musst du das in der moverrender.cpp machen(da kannst du auch pMover verwenden ist aber nicht nötig , da du dich ja inder mover class befindest)
05/24/2013 17:22 Deadline.#5
Quote:
Originally Posted by Shonenx33 View Post
du willst das icon neben dem namen?

falls ja , dann musst du das in der moverrender.cpp machen(da kannst du auch pMover verwenden ist aber nicht nötig , da du dich ja inder mover class befindest)
Habe immernoch dieselben Errors:
_Common\MoverRender.cpp(1717): error C2065: 'pMover' : undeclared identifier
_Common\MoverRender.cpp(1717): error C2227: left of '->IsAuthHigher' must point to class/struct/union
type is ''unknown-type''
_Common\MoverRender.cpp(1722): error C2065: 'p2DRender' : undeclared identifier
05/24/2013 17:25 Velmore#6
Lass einfach mal das pMover weg ich glaube die Mover ist über this schon drin.
05/24/2013 18:41 Deadline.#7
So, funtzt nun.
Kann man es Irgendwie so machen, dass das Icon neben dem Hero Icon ist?
05/24/2013 19:14 ThoughtfulDev#8
Quote:
Originally Posted by Chiller1o1 View Post
So, funtzt nun.
Kann man es Irgendwie so machen, dass das Icon neben dem Hero Icon ist?
ja einfach die x koordinate ändern
Code:
point.x += 10 // dementsprechend abändern
05/24/2013 19:20 Deadline.#9
Quote:
Originally Posted by Shonenx33 View Post
ja einfach die x koordinate ändern
Code:
point.x += 10 // dementsprechend abändern
Mein Client mobbt micht.
[Only registered and activated users can see links. Click Here To Register...]
Also muss ich eine Abfrage machen ob Master/hero etc. oder Non-Master und dann verschieden verschieben oder?
05/24/2013 19:47 ©ross#10
Jap.
Musst die einzelnen Fälle einfach abfragen.
Giebt dazu auch fuktionen ala
PHP Code:
IsMaster();
IsHero(); 
05/24/2013 19:51 Deadline.#11
Quote:
Originally Posted by ©ross View Post
Jap.
Musst die einzelnen Fälle einfach abfragen.
Giebt dazu auch fuktionen ala
PHP Code:
IsMaster();
IsHero(); 
Jop, bin grade dabei es so zu machen.

Gibt es für 3rd Job auch etwas oder ist das IsHero()?
05/25/2013 08:32 ThoughtfulDev#12
also in der moverrender steht ja shcon soweit
Code:
BYTE checkhero = GetLegendChar();
die abfrage wäre dann
Code:
#ifdef __3RD_LEGEND16
		else if(checkhero == LEGEND_CLASS_LEGENDHERO) //¿µ¿õÀÏ °æ¿ì.
		{
		
#ifdef __REBIRTH


if (m_iRebirth == 0)
{
	strPath = MakePath( DIR_ICON, "Legend_Mark.png");
	pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
	if(pTexture != NULL)
	{
	point.y -= pTexture->m_size.cy + 5;
	pTexture->Render( &g_Neuz.m_2DRender, point );
	}
}
else if (m_iRebirth == 1)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin1.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}
else if (m_iRebirth == 2)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin2.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}
else if (m_iRebirth == 3)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin3.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}
else if (m_iRebirth == 4)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin4.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}
else if (m_iRebirth == 5)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin5.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}
else if (m_iRebirth == 6)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin6.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}
else if (m_iRebirth == 7)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin7.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}
else if (m_iRebirth == 8)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin8.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}
else if (m_iRebirth == 9)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin9.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}
else if (m_iRebirth == 10)   
{
   strPath = MakePath( DIR_ICON, "Icon_Platin10.png");
   pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
   if(pTexture != NULL)
   {
    point.y -= pTexture->m_size.cy + 5;
    pTexture->Render( &g_Neuz.m_2DRender, point );
   }
}

		}
#endif //__REBIRTH
	}
#endif // __3RD_LEGEND16
habe jz mal mein rebirth teil drinne gelassen.