Register for your free account! | Forgot your password?

You last visited: Today at 15:49

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

Advertisement



/Awa ???

Discussion on /Awa ??? within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
**._NeuBie_.**'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 254
Received Thanks: 22
Wink /Awa ???

Huhu Leute,
Will nur kurz fragen ob wer nen TuT kennt wie man dieses
/awa oder /awake oder /awakening
hinbekommt ... habe schon die SuFu benutzt aber immer aufs falsche Thema gekommen >:<
wäre nett wenn mir wer den Link oder so geben könnte
**._NeuBie_.** is offline  
Old 05/17/2012, 16:34   #2
 
Ryunat's Avatar
 
elite*gold: 320
Join Date: Jan 2012
Posts: 1,032
Received Thanks: 573
Du gehst im Source in die Datei: FuncTextCmd.cpp
und suchst hier nach:

BOOL TextCmd_GenRandomOption( CScanner & s )

Dann ersetzt du die Funktion hierdurch:

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 ) 
            {
                char chMessage[100];
                sprintf( chMessage, "Hol dein Pet oder CS Pet rein! Sonst kannst du es nicht erwecken!" );
                pUser->AddText( chMessage );
            }
            else
            {
                g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
                g_xRandomOptionProperty->GenRandomOption( pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts );
                pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
            }
        }
    }


#endif    // __WORLDSERVER
    return TRUE;
}

Dan suchst du hier nach:
Code:
ON_TEXTCMDFUNC( TextCmd_whisper,               "whisper",           "w",              "±Ó¼Ó¸»",         "±Ó",      TCM_SERVER, AUTH_GENERAL      , "±Ó¼Ó¸» [/¸í·É ¾ÆÀ̵𠳻¿ë]" )
und fügst darüber das hier ein:
Code:
ON_TEXTCMDFUNC( TextCmd_GenRandomOption,		"Awakening",	"awa",	"°¢¼ºÃູ", "°¢Ãà",	TCM_BOTH,	AUTH_GENERAL, "" )
Jetzt einfach Compilen und fertig


#Edit:
Wenn du das ganze mit Penya abzug haben willst ersetzt du die oben genannte Funktion durch das hier:

Code:
BOOL TextCmd_GenRandomOption( CScanner & s )
{
#ifdef __WORLDSERVER 
    CUser* pUser = (CUser*)s.dwValue;
    CItemElem* pItemElem    = pUser->m_Inventory.GetAt( 0 );

#ifdef __AWA_WITH_PENYACOST
    if( pItemElem )
    {
		int nCost = 500000;  
        int nRandomOptionKind    = g_xRandomOptionProperty->GetRandomOptionKind( pItemElem );

	 if( 0 < nCost )
	 {
        if( nRandomOptionKind >= 0 )
            {
            if( pUser->GetGold() > nCost )    
            {    
				if(pUser->HasActivatedSystemPet() && pItemElem->GetProp()->dwItemKind3 == IK3_EGG || pUser->HasActivatedEatPet() && pItemElem->GetProp()->dwItemKind3 == IK3_PET ) 
				{
					char chMessage[100];
					sprintf( chMessage, "Hol dein Pet oder CS Pet rein! Sonst kannst du es nicht erwecken!" );
					pUser->AddText( chMessage );
				}
				else
				{
                        pUser->AddGold( -( nCost ) );
                        g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
                        g_xRandomOptionProperty->GenRandomOption( pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts );
                        pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
				}
			}
            else    
                {
                pUser->AddText( "Du hast nicht genug Geld." );
                }
			}
        }
    }
    else
    {
		pUser->AddText( "Das zu erweckende Item muss im ersten Slot deines Inventars liegen!" );
    }
#else
	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 ) 
            {
                char chMessage[100];
                sprintf( chMessage, "Hol dein Pet oder CS Pet rein! Sonst kannst du es nicht erwecken!" );
                pUser->AddText( chMessage );
            }
            else
            {
                g_xRandomOptionProperty->InitializeRandomOption( pItemElem->GetRandomOptItemIdPtr() );
                g_xRandomOptionProperty->GenRandomOption( pItemElem->GetRandomOptItemIdPtr(), nRandomOptionKind, pItemElem->GetProp()->dwParts );
                pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMID, pItemElem->GetRandomOptItemId() );
            }
        }
    }
#endif //__AWA_WITH_PENYACOST

#endif    // __WORLDSERVER
    return TRUE;
}
Dann nur noch __AWA_WITH_PENYACOST in der VersionCommon.h von Neuz und WorldServer definieren und fertig =)
Ryunat is offline  
Thanks
2 Users
Old 05/17/2012, 16:35   #3
 
elite*gold: 0
Join Date: Apr 2012
Posts: 106
Received Thanks: 10
Andre haste vllt die Chaos Fly exen ?
Kagawa16 is offline  
Old 05/17/2012, 16:36   #4
 
Ryunat's Avatar
 
elite*gold: 320
Join Date: Jan 2012
Posts: 1,032
Received Thanks: 573
Quote:
Originally Posted by Kagawa16 View Post
Andre haste vllt die Chaos Fly exen ?
xD Nein ich habe nur meinen eigenen Source
Ryunat is offline  
Old 05/17/2012, 16:41   #5
 
elite*gold: 0
Join Date: Apr 2012
Posts: 106
Received Thanks: 10
kannst du sie mir vllt erstellen von der Chaos Fly Source bitööö ?
Kagawa16 is offline  
Old 05/17/2012, 19:25   #6
 
**._NeuBie_.**'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 254
Received Thanks: 22
Ok danke
Ich teste es sofort ma ^^

Also errors werden net angezeigt also müsste Funzen aber das compilen meines Servers wird angezeigt aber es geschieht nix.
Das ist genauso wie bei meinen Rates und Max lvl (300)
Ich werde zurückgestuft und Rates leben wie normal ...
kann mir wer nen kurzen How-to schreiben wie man richtig compilt ???
das verste ich auch in nem anderen TuT net xD ich weiß das das arm ist
**._NeuBie_.** is offline  
Old 05/18/2012, 15:27   #7
 
KingKillah's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 176
Received Thanks: 12
Leute ich hab da ein kleines prob bei compilieren :/ Könntet ihr mir helfen?





Ich hoffe ihr könnt mir helfen alles hilfreiche bekommt ein thx
KingKillah is offline  
Old 05/18/2012, 15:43   #8
 
Ryunat's Avatar
 
elite*gold: 320
Join Date: Jan 2012
Posts: 1,032
Received Thanks: 573
Quote:
Originally Posted by KingKillah View Post
Leute ich hab da ein kleines prob bei compilieren :/ Könntet ihr mir helfen?





Ich hoffe ihr könnt mir helfen alles hilfreiche bekommt ein thx
Also ich würde sagen du hast die Funktion nicht ersetzt sondern i. was anderes damit gemacht^^
Ryunat is offline  
Old 05/18/2012, 15:47   #9
 
KingKillah's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 176
Received Thanks: 12
Doch ich hab sie ersetzt, aber ich machs nochma nochmal kann ich dich in skype adden?
KingKillah is offline  
Old 05/18/2012, 15:53   #10
 
Ryunat's Avatar
 
elite*gold: 320
Join Date: Jan 2012
Posts: 1,032
Received Thanks: 573
Quote:
Originally Posted by KingKillah View Post
Doch ich hab sie ersetzt, aber ich machs nochma nochmal kann ich dich in skype adden?
Sicher
Skype Daten stehen ja im Profil^^
Zur not bau ich es dir kurz ein :*
Ryunat is offline  
Old 05/18/2012, 15:59   #11
 
KingKillah's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 176
Received Thanks: 12
so hab dich geäddet ^^ kriegst n thx für die source

Edit1: So nochma neu eingebaut ^^ thx haste bekommen ^^ aso ja, klappt alles ^^
KingKillah is offline  
Old 05/20/2012, 10:34   #12
 
**._NeuBie_.**'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 254
Received Thanks: 22
Andre kannst du mir bitte auch beim compilen helfen ?
Ich versteh das noch net ganz wie ich das machen muss^^
alles andere ist in bester Ordnung
**._NeuBie_.** is offline  
Reply




All times are GMT +1. The time now is 15:54.


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.