Register for your free account! | Forgot your password?

You last visited: Today at 23:07

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

Advertisement



Guild Buff

Discussion on Guild Buff within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
xToffer's Avatar
 
elite*gold: 0
Join Date: Apr 2018
Posts: 139
Received Thanks: 18
Guild Buff

what im going to change instead of price is penya change to perin?

thanks

Code:
    CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );
    CMover* pMover = pUser;
    int nCurSel;
    int nGold;
    nGold = 0;
    int valid = 0;
    ar >> nCurSel;
    CCtrl* pCtrl = (CCtrl*)pMover;
    CGuild *pGuild = pUser->GetGuild();
    if( IsValidObj( pUser ) )
    {
        if ( pGuild )
        {
            switch( nCurSel )
            {
                case 0:
                {
                    if ( pGuild->m_nLevel > 19 )
                    {
                        if(    pUser->HasBuff(BUFF_SKILL, SI_BUFF_GUILD01) )
                            valid = 1;
                       
                        if ( valid != 1 )
                        {
                            nGold = 2100000000;
                            if ( pUser->GetGold() > nGold )
                            {   
                                pUser->AddGold( -nGold );
                                pCtrl->DoAddBuff( SI_BUFF_GUILD01, 1, pCtrl );
                            }
                            else
                                pUser->AddDefinedText( TID_GUILD_ERROR_NO_PENYA );
                        }
                        else
                            pUser->AddDefinedText( TID_GUILD_DEJA_BUFF );
                    }
                    else
                    {
                        pUser->AddDefinedText( TID_GUILD_LOW_LVL );
                    }
                }
                break;
xToffer is offline  
Old 04/07/2018, 09:08   #2
 
elite*gold: 0
Join Date: Mar 2018
Posts: 71
Received Thanks: 5
PHP Code:
     CUserpUser g_UserMng.GetUserdpidCachedpidUser );
    
CMoverpMover pUser;
    
int nCurSel;
    
int nPerin;
    
nPerin 0;
    
int valid 0;
    
ar >> nCurSel;
    
CCtrlpCtrl = (CCtrl*)pMover;
    
CGuild *pGuild pUser->GetGuild();
    if( 
IsValidObjpUser ) )
    {
        if ( 
pGuild )
        {
            switch( 
nCurSel )
            {
                case 
0:
                {
                    if ( 
pGuild->m_nLevel 19 )
                    {
                        if(    
pUser->HasBuff(BUFF_SKILLSI_BUFF_GUILD01) )
                            
valid 1;
                       
                        if ( 
valid != )
                        {
                            
nPenya 100000000;
                }
                else
                            
nPerin 1;
                            if ( 
pUser->GetPerin() > nPerin )
                            {   
                                
pUser->AddPerin( -nPerin );
                                
pCtrl->DoAddBuffSI_BUFF_GUILD011pCtrl );
                            }
                            else
                                
pUser->AddDefinedTextTID_GUILD_ERROR_NO_PERIN );
                        }
                        else
                            
pUser->AddDefinedTextTID_GUILD_DEJA_BUFF );
                    }
                    else
                    {
                        
pUser->AddDefinedTextTID_GUILD_LOW_LVL );
                    }
                }
                break; 
DefineText.h
PHP Code:
TID_GUILD_ERROR_NO_PERIN 
Trying hard
Rhea03 is offline  
Thanks
1 User
Old 04/07/2018, 15:55   #3
 
xToffer's Avatar
 
elite*gold: 0
Join Date: Apr 2018
Posts: 139
Received Thanks: 18
Quote:
Originally Posted by Rhea03 View Post
PHP Code:
     CUserpUser g_UserMng.GetUserdpidCachedpidUser );
    
CMoverpMover pUser;
    
int nCurSel;
    
int nPerin;
    
nPerin 0;
    
int valid 0;
    
ar >> nCurSel;
    
CCtrlpCtrl = (CCtrl*)pMover;
    
CGuild *pGuild pUser->GetGuild();
    if( 
IsValidObjpUser ) )
    {
        if ( 
pGuild )
        {
            switch( 
nCurSel )
            {
                case 
0:
                {
                    if ( 
pGuild->m_nLevel 19 )
                    {
                        if(    
pUser->HasBuff(BUFF_SKILLSI_BUFF_GUILD01) )
                            
valid 1;
                       
                        if ( 
valid != )
                        {
                            
nPenya 100000000;
                }
                else
                            
nPerin 1;
                            if ( 
pUser->GetPerin() > nPerin )
                            {   
                                
pUser->AddPerin( -nPerin );
                                
pCtrl->DoAddBuffSI_BUFF_GUILD011pCtrl );
                            }
                            else
                                
pUser->AddDefinedTextTID_GUILD_ERROR_NO_PERIN );
                        }
                        else
                            
pUser->AddDefinedTextTID_GUILD_DEJA_BUFF );
                    }
                    else
                    {
                        
pUser->AddDefinedTextTID_GUILD_LOW_LVL );
                    }
                }
                break; 
DefineText.h
PHP Code:
TID_GUILD_ERROR_NO_PERIN 
Trying hard
not working
xToffer is offline  
Old 04/07/2018, 16:28   #4
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
sir use GetTotalGold and RemoveTotalGold. that way it work with penya + perin sir.
Avalion is offline  
Old 04/07/2018, 16:41   #5
 
xToffer's Avatar
 
elite*gold: 0
Join Date: Apr 2018
Posts: 139
Received Thanks: 18
Quote:
Originally Posted by Avalion View Post
sir use GetTotalGold and RemoveTotalGold. that way it work with penya + perin sir.

Code:
                     if ( valid != 1 )
                        {
                            nGold = 21;
                            if ( pUser->GetTotalGold() > nGold )
                            {   
                                pUser->RemoveTotalGold( -nGold );
like this sir?
xToffer is offline  
Reply


Similar Threads Similar Threads
[B]Lv 34 Buff auf S9 Legroia [S]Buff auf Metin2.SG
04/04/2011 - Metin2 Trading - 2 Replies
Hey, wie der Titel bereits sagt biete ich meine Drachenschami Lv 34. Skills: HDD M1, Rest auf Segen. Sie hat Goldohrringe+6 und full Int. Bei Interesse hier in den Thread schreiben.
Kaufe Buff Shamane Metin2.us Free Kingdom [WTB] Buff Shaman Metin2.us Free Kingdom
02/23/2011 - Metin2 Trading - 0 Replies
Hello ;) I buy any buff shaman in metin2.us free kindom but it should be having g - p buffs ( enchant and shield) thanks ;) Ich kauf ne buffi auf metin2.us free kingdom, sie sollte p - g haben ( also hdd und segen) danke ;) Paying with paysafecard! Zahle mit Paysafecard!



All times are GMT +1. The time now is 23:08.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.