Register for your free account! | Forgot your password?

You last visited: Today at 13:01

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

Advertisement



LORD EVENT!

Discussion on LORD EVENT! within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
jericho2nd's Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 10
LORD EVENT!

HOW TO CHANGE THE COST OF LORD EVENT PENYA TO PERIN?

THANKS IN ADVANCE ))
jericho2nd is offline  
Old 09/23/2016, 21:15   #2
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
lordevent.inc
Drabur is offline  
Thanks
1 User
Old 09/24/2016, 16:12   #3
 
jericho2nd's Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 10
Quote:
Originally Posted by Drabur View Post
lordevent.inc
what i am going to add or change? to make it perin!
jericho2nd is offline  
Old 09/24/2016, 16:47   #4

 
elite*gold: 353
Join Date: Jan 2013
Posts: 924
Received Thanks: 617

--------------------------------------------------


...

Kiseku is offline  
Thanks
2 Users
Old 09/24/2016, 17:04   #5
 
jericho2nd's Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 10
Quote:
Originally Posted by Arcitc™ View Post

--------------------------------------------------


...

thank youu very much.
how to make player can do lord events?
jericho2nd is offline  
Old 09/24/2016, 17:09   #6
 
-Venom''s Avatar
 
elite*gold: 10
Join Date: Jan 2015
Posts: 937
Received Thanks: 449
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:
-Venom' is offline  
Old 09/24/2016, 17:18   #7

 
elite*gold: 353
Join Date: Jan 2013
Posts: 924
Received Thanks: 617
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;
    }
}; 
Kiseku is offline  
Thanks
1 User
Old 09/24/2016, 18:45   #8
 
jericho2nd's Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 10
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;
jericho2nd is offline  
Old 09/24/2016, 19:01   #9

 
elite*gold: 353
Join Date: Jan 2013
Posts: 924
Received Thanks: 617
yes ^^
Kiseku is offline  
Thanks
1 User
Old 09/24/2016, 19:08   #10
 
jericho2nd's Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 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
jericho2nd is offline  
Old 09/24/2016, 19:46   #11
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
you can pay lord events with perin in your inventory?
ps: this works on every server
Drabur is offline  
Old 09/25/2016, 09:37   #12
 
jericho2nd's Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 170
Received Thanks: 10
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!
jericho2nd is offline  
Reply


Similar Threads Similar Threads
[Release]Players can do Lord Event
09/10/2020 - Flyff PServer Guides & Releases - 12 Replies
Heya, i know this is not important but maybe there's someone who need this Tut: •Open: Interface / Wndlord.cpp •Search For: BOOL CWndLordEvent :: Initialize
F.A.Q Lord Event
04/21/2016 - Seafight - 0 Replies
Ahoi Piraten, ab morgen, den 22. April 2016 bis zum 26. April 2016 treiben wieder die Lords ihr unwesen auf den Seafight-Meeren Pirate Lord's Event Übersicht: Start: 22.04.2016 12:00 Uhr (lokale Serverzeit) Ende: 26.04.2016 12:00 Uhr (lokale Serverzeit) Tag des Events Schiff besonders verwundbar durch Gewinn
[EVENT]LORD(Rubber) DUCK
03/30/2016 - Seafight - 2 Replies
Tomorrow 12:00(CET) till April 4. 12:00(CET) Lord Duck event with new Jester design. Design contains: Boarding bonus 15% Critical DMG 13% Armor 14% Damage avoidance 11%
Lord Duck event
03/02/2016 - Seafight - 3 Replies
Lord Duck event with new NPC, and new item :D http://i.imgur.com/h1gaLJC.jpg
[Source-Edit] Lord-Event als GM
11/06/2011 - Flyff Private Server - 9 Replies
So hab mir mal die Zeit genommen was zu umzuschreiben, (nein ich habs aus kein andern Forum kopiert). Damit sollte es möglich sein als GM ganz normal die Lord-Events zu starten. WndLord.cpp (Neuz) BOOL CWndLordEvent::Initialize( CWndBase* pWndParent, DWORD nType) suchen und Komplette Funktion hiermit ersetzen: BOOL CWndLordEvent::Initialize( CWndBase* pWndParent, DWORD nType) {



All times are GMT +1. The time now is 13:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.