Register for your free account! | Forgot your password?

You last visited: Today at 21:00

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

Advertisement



/awaking erro !

Discussion on /awaking erro ! within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2013
Posts: 47
Received Thanks: 0
/awaking erro !

How do I block awake in fashions?

ramom155 is offline  
Old 12/07/2016, 22:30   #2
 
NoWay | Phoenix's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 252
Received Thanks: 58
Source -> Randomoption.cpp -> In Function
int CRandomOptionProperty::GetRandomOptionKind( CItemElem* pItemElem )

Replace the Function with this!
Code:
int CRandomOptionProperty::GetRandomOptionKind( CItemElem* pItemElem )
{
	ItemProp* pProp		= pItemElem->GetProp();
	switch( pProp->dwParts )
	{
		case PARTS_UPPER_BODY:
		case PARTS_RWEAPON:
		case PARTS_SHIELD:
/*
#if __VER >= 12 // __J12_0
		case PARTS_HAND:
		case PARTS_FOOT:
		case PARTS_CAP:
#endif	// __J12_0
			return static_cast<int>( eAwakening );
		case PARTS_CLOTH:
		case PARTS_CLOAK:
#if __VER >= 12 // __J12_0
		case PARTS_HAT:
		case PARTS_GLOVE:
		case PARTS_BOOTS:
#endif	// __J12_0
			return static_cast<int>( eBlessing );
*/
#if __VER >= 12 // __PET_0519
		default:
			{
				if( pProp->dwItemKind3 == IK3_EGG && pItemElem->m_pPet && pItemElem->m_pPet->GetLevel() >= PL_C )
					return static_cast<int>( eSystemPet );
				else if( pProp->dwItemKind3 == IK3_PET )
					return static_cast<int>( eEatPet );
				break;
			}
#endif	// __PET_0519
	}
	return -1;
}

BOOL	CRandomOptionProperty::GetParam( __int64 nRandomOptItemId, int i, int* pnDst, int* pnAdj )
{
	if( i >= MAX_RANDOM_OPTION )
		return FALSE;

	int nRandomOption	= static_cast<int>( nRandomOptItemId >> ( 8 + i * 18 ) );
	*pnAdj	= nRandomOption & 0x000001FF;
	if( nRandomOption & 0x00000200 )
		*pnAdj	= -*pnAdj;
	nRandomOption	= nRandomOption >> 10;

        *pnDst	= nRandomOption & 0x0000007F;

	return ( *pnDst > 0 );
}
I hope that I could help you
Best Regards~
NoWay | Phoenix is offline  
Old 12/07/2016, 23:51   #3
 
elite*gold: 0
Join Date: Jul 2015
Posts: 181
Received Thanks: 199
Quote:
Originally Posted by NoWay | Phoenix View Post
Source -> Randomoption.cpp -> In Function
int CRandomOptionProperty::GetRandomOptionKind( CItemElem* pItemElem )

Replace the Function with this!
Code:
-Snip-
I hope that I could help you
Best Regards~
H
He say's it's an error with the command and not the function, the original poster should also read the command to seeing its right in front of both you. Its quite simple of a fix but here we go anyways lol..... I wonder what happens if we remove the nerf :/

Code:
BOOL TextCmd_GenRandomOption( CScanner & s )
{
#ifdef __WORLDSERVER 
    CUser* pUser = (CUser*)s.dwValue;
    CItemElem* pItemElem = pUser->m_Inventory.GetAt( 0 );
    if( pItemElem ){
        int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind( pItemElem );
        if( nRandomOptionKind >= 0 ){
            if( pUser->HasActivatedSystemPet() && pItemElem->GetProp()->dwItemKind3 == IK3_EGG || pUser->HasActivatedEatPet() && pItemElem->GetProp()->dwItemKind3 == IK3_PET ){
                pUser->AddText( "Please deactivate your Pet/s." );
            }else{ 
                if( pItemElem->GetProp()->dwItemKind2 == IK2_CLOTH || pItemElem->GetProp()->dwItemKind2 == IK2_CLOTHETC || pItemElem->GetProp()->dwItemKind2 == IK2_CLOTHWIG ){
                pUser->AddText( "No Cs is awakeable with /awake!");
                }else{
                 if( pItemElem->GetProp()->dwID == II_SYS_SYS_SCR_BLESSEDNESS ){
                 return TRUE;
                 }else{
                if( pUser->GetGold() >= 1000000 ){
                    g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
                    g_xRandomOptionProperty->GenRandomOption( pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts );
                    pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
                    pUser->AddGold( -1000000 );
                    pUser->AddText( "Awakening: -1.000.000" );
                }else{
                    pUser->AddText( "You must have 1.000.000 Penya to awake something." );
                }
            }


        }else{
            pUser->AddText ( "You have to put the item in first slot to awake it." );
        }
    }
#endif // __WORLDSERVER
    return TRUE;
}
KetchupSamurai is offline  
Old 12/15/2016, 14:42   #4
 
elite*gold: 0
Join Date: Oct 2013
Posts: 47
Received Thanks: 0
Quote:
Originally Posted by KetchupSamurai View Post
He say's it's an error with the command and not the function, the original poster should also read the command to seeing its right in front of both you. Its quite simple of a fix but here we go anyways lol..... I wonder what happens if we remove the nerf :/

Code:
BOOL TextCmd_GenRandomOption( CScanner & s )
{
#ifdef __WORLDSERVER 
    CUser* pUser = (CUser*)s.dwValue;
    CItemElem* pItemElem = pUser->m_Inventory.GetAt( 0 );
    if( pItemElem ){
        int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind( pItemElem );
        if( nRandomOptionKind >= 0 ){
            if( pUser->HasActivatedSystemPet() && pItemElem->GetProp()->dwItemKind3 == IK3_EGG || pUser->HasActivatedEatPet() && pItemElem->GetProp()->dwItemKind3 == IK3_PET ){
                pUser->AddText( "Please deactivate your Pet/s." );
            }else{ 
                if( pItemElem->GetProp()->dwItemKind2 == IK2_CLOTH || pItemElem->GetProp()->dwItemKind2 == IK2_CLOTHETC || pItemElem->GetProp()->dwItemKind2 == IK2_CLOTHWIG ){
                pUser->AddText( "No Cs is awakeable with /awake!");
                }else{
                 if( pItemElem->GetProp()->dwID == II_SYS_SYS_SCR_BLESSEDNESS ){
                 return TRUE;
                 }else{
                if( pUser->GetGold() >= 1000000 ){
                    g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
                    g_xRandomOptionProperty->GenRandomOption( pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts );
                    pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
                    pUser->AddGold( -1000000 );
                    pUser->AddText( "Awakening: -1.000.000" );
                }else{
                    pUser->AddText( "You must have 1.000.000 Penya to awake something." );
                }
            }


        }else{
            pUser->AddText ( "You have to put the item in first slot to awake it." );
        }
    }
#endif // __WORLDSERVER
    return TRUE;
}
Error in remove the nerf :\

ramom155 is offline  
Old 12/15/2016, 15:19   #5
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,498
Received Thanks: 3,525
As the error showed:

You are using else without if-clauses.
Lumi is offline  
Reply


Similar Threads Similar Threads
[Help]How to change awaking time
04/17/2015 - Flyff Private Server - 4 Replies
How to change awaking time ? please :handsdown::handsdown:
[Selling] 3xChange Awaking Scroll füt 10 PSC I PayPal
06/26/2014 - Flyff Trading - 14 Replies
Kurs 3 Change Awaking Scroll für 10 € Paysafe Card I Paypal Server: Devos so laüft der Handel ab: Schritt 1 Ich werde Online gehen und Ihnen die Change Awakening Scroll zeigen Schritt 2
[Release]FlyFF Awaking Bot
09/11/2011 - Flyff Hacks, Bots, Cheats, Exploits & Macros - 35 Replies
So hier Release ich mal ein FlyFF Bot zum Awaken. Dieser Awakt von selber und hört auf bei den Eingestellten Erweckung auf. Der Bot ist eigentlich selbst erklärent. Für mich praktisch da ich gerade keine Zeit habe es genauer zu erklären :P Mini TuT zum Bot. Sry wenn ich das mit VT falsch gemacht habe ist mein erstes VT Credits gehen an den Ersteller nicht an mich :P MFG
Flyff awaking tool?..
07/15/2011 - Flyff Private Server - 4 Replies
hallo comm. damals gab es so ein erweckungs too,, da müsste man eingeben was für erweckungen man wollte, und er hat dann so ein code gemacht. hat den noch einer? Der ging für Calli files. ^^ wäre echt dankbar, falls ihn mir einer geben würde danke im vorraus! :D
[ERRO] Erro in CoEmu .
06/07/2009 - CO2 Private Server - 3 Replies
http://i39.tinypic.com/2dv90zs.jpg Hellp me .. with this erro ...:handsdown:



All times are GMT +1. The time now is 21:01.


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.