About Lord Skills

06/11/2013 02:39 raventh1984#1
Hi elitepvpers,

I am working atm on the lord skills not the events but the skills that you see when you press L.

What i want to accomplish is that when the user is an GM of rank 2
Lets say AUTH_GAMEMASTER2
The tick wont update.

I have done this

inside tLord.cpp
BOOL CLController::UpdateLordSkillTick( CLordSkillComponent* pSkill, int nTick )
{ // ±ºÁÖ ½ºÅ³ Àç»ç¿ë ´ë±â ½Ã°£ ÀúÀå
if(m_pLord->m_dwAuthorization != AUTH_GAMEMASTER2)
{
return GetQueryObject()->Execute( "uspLordSkillTick %d, %d, %d", g_appInfo.dwSys, pSkill->GetId(), nTick );
}
}

As i read it but i could be wrong if your not an GameMaster2 the Tick will be updated.

However the tick is still beeing updated and i am still not aible to launch an new Skill. I still must wait for 60 mins.

I also have tryd to do it with pUser and g_pPlayer buth both of them gives an Class error.

Any one could explain on what to do?

With kind regards,
Loky.
06/11/2013 06:49 xI3ubbLex3#2
Hay.

inside the "slord.cpp"

u search this:
namespace lordevent

than u change it to:
Quote:
////////////////////////////////////////////////////////////////////////////////
namespace lordevent
{
int CreateRequirements( CUser* pUser, int iEEvent, int iIEvent )
{
ILordEvent* pEvent = CSLord::Instance()->GetEvent();
if(!pUser->IsAuthHigher(AUTH_GAMEMASTER2))
{
if( !CSLord::Instance()->IsLord( pUser->m_idPlayer ) )
{
return TID_GAME_L_EVENT_CREATE_E001;
}
}
if( pEvent->GetComponent( pUser->m_idPlayer ) ) // is there no event?
return TID_GAME_L_EVENT_CREATE_E002;
if( pUser->IsQuerying() )
return TID_GAME_LORD_IS_QUERYING;
__int64 iCost = pEvent->GetCost( iEEvent, iIEvent );
if( iCost == 0 )
return TID_GAME_L_EVENT_CREATE_E004;
if( iCost > pUser->GetTotalGold() )
return TID_GAME_L_EVENT_CREATE_E003;

pUser->SetQuerying( TRUE );
return 0;
}
};

////////////////////////////////////////////////////////////////////////////////
#endif // __LORD
mfg. Kevin
06/11/2013 07:30 raventh1984#3
That i already have and its for the Events like the Exp and Drop rate.
I dont need that. I am talking abou the Skills.