LORD EVENT!

09/23/2016 16:59 jericho2nd#1
HOW TO CHANGE THE COST OF LORD EVENT PENYA TO PERIN?

THANKS IN ADVANCE :)))
09/23/2016 21:15 Drabur#2
lordevent.inc
09/24/2016 16:12 jericho2nd#3
Quote:
Originally Posted by Drabur View Post
lordevent.inc
what i am going to add or change? to make it perin!
09/24/2016 16:47 Kiseku#4
[Only registered and activated users can see links. Click Here To Register...]
--------------------------------------------------
[Only registered and activated users can see links. Click Here To Register...]

...

[Only registered and activated users can see links. Click Here To Register...]
09/24/2016 17:04 jericho2nd#5
Quote:
Originally Posted by Arcitc™ View Post
[Only registered and activated users can see links. Click Here To Register...]
--------------------------------------------------
[Only registered and activated users can see links. Click Here To Register...]

...

[Only registered and activated users can see links. Click Here To Register...]
thank youu very much.
how to make player can do lord events?
09/24/2016 17:09 -Venom'#6
Quote:
Originally Posted by jericho2nd View Post
thank youu very much.
how to make player can do lord events?
Please use Google or the Search function:
[Only registered and activated users can see links. Click Here To Register...]
09/24/2016 17:18 Kiseku#7
slord.cpp

PHP Code:
namespace    lordevent
{
    
int    CreateRequirementsCUserpUserint iEEventint iIEvent )
    {
        
ILordEventpEvent        CSLord::Instance()->GetEvent();

/* Remove This: */

        
if( !CSLord::Instance()->IsLordpUser->m_idPlayer ) )    // is he lord?
             
return TID_GAME_L_EVENT_CREATE_E001;



        if( 
pEvent->GetComponentpUser->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->GetCostiEEventiIEvent );
        if( 
iCost == )
            return 
TID_GAME_L_EVENT_CREATE_E004;
        if( 
iCost pUser->GetTotalGold() )
            return 
TID_GAME_L_EVENT_CREATE_E003;

        
pUser->SetQueryingTRUE );
        return 
0;
    }
}; 
09/24/2016 18:45 jericho2nd#8
Quote:
Originally Posted by Arcitc™ View Post
slord.cpp

PHP Code:
namespace    lordevent
{
    
int    CreateRequirementsCUserpUserint iEEventint iIEvent )
    {
        
ILordEventpEvent        CSLord::Instance()->GetEvent();

/* Remove This: */

        
if( !CSLord::Instance()->IsLordpUser->m_idPlayer ) )    // is he lord?
             
return TID_GAME_L_EVENT_CREATE_E001;



        if( 
pEvent->GetComponentpUser->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->GetCostiEEventiIEvent );
        if( 
iCost == )
            return 
TID_GAME_L_EVENT_CREATE_E004;
        if( 
iCost pUser->GetTotalGold() )
            return 
TID_GAME_L_EVENT_CREATE_E003;

        
pUser->SetQueryingTRUE );
        return 
0;
    }
}; 

This is im going to remove?
Code:
  if( !CSLord::Instance()->IsLord( pUser->m_idPlayer ) )    // is he lord? 
             return TID_GAME_L_EVENT_CREATE_E001;
09/24/2016 19:01 Kiseku#9
yes ^^
09/24/2016 19:08 jericho2nd#10
Quote:
Originally Posted by Arcitc™ View Post
yes ^^
thanks.

this is correct?

Code:
		int nPerin	= pUser->RemoveTotalGold( pEvent->GetCost( iEEvent, iIEvent ) );
		if( nPerin == 0 )
			return TID_GAME_L_EVENT_CREATE_E004;
		if( nPerin > pUser->GetTotalGold() )
			return TID_GAME_L_EVENT_CREATE_E003;
penya to perin cost? in lordevent
09/24/2016 19:46 Drabur#11
you can pay lord events with perin in your inventory?
ps: this works on every server
09/25/2016 09:37 jericho2nd#12
Quote:
Originally Posted by Drabur View Post
you can pay lord events with perin in your inventory?
ps: this works on every server
it still penya. not perin!