[Request]/awa Command

04/26/2013 09:11 AppleLike#1
Request Close
(Y)
04/26/2013 11:13 .Tear#2
Do it by ur own? oO
u only have to change the /gro command and have to fix if an pet is active it cant be awaken. o.o

It isnt hard to do it.. o_O
04/26/2013 12:38 Velmore#3
if you only change the auth of the command you are able to stack with this command.
04/26/2013 12:47 - DK#4
Quote:
Originally Posted by Velmore View Post
if you only change the auth of the command you are able to stack with this command.
Man kann diesen Befehl aber auch erweitern bzw es fixen und das wäre in dem Fall nur ein simples Copy & Paste.

MfG Armageddon
04/26/2013 12:54 Velmore#5
Quote:
Originally Posted by Armageddon ™ View Post
Man kann diesen Befehl aber auch erweitern bzw es fixen und das wäre in dem Fall nur ein simples Copy & Paste.

MfG Armageddon
Klar nur wenn oben steht einfach den Befehl Kopieren und die auth ändern ist das nicht gegeben.
04/26/2013 13:19 AppleLike#6
@Armageddon , @Velmore
Please give me a tut how can i ..
i dont know how to make that
please please please
04/26/2013 20:39 Chriѕ#7
FuncTextCmd.cpp

Search for GenRandomOption -> Replace

PHP Code:
ON_TEXTCMDFUNCTextCmd_GenRandomOption,        "Awakening",    "awa",    "°¢¼ºÃູ""°¢Ãà",    TCM_BOTH,    AUTH_GENERAL"" 

und

Search for BOOL TextCmd_GenRandomOption -> Replace

PHP Code:
BOOL TextCmd_GenRandomOptionCScanner )
{
#ifdef __WORLDSERVER 
    
CUserpUser = (CUser*)s.dwValue;
    
CItemElempItemElem    pUser->m_Inventory.GetAt);

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

     if( 
nCost )
     {
        if( 
nRandomOptionKind >= )
            {
            if( 
pUser->GetGold() > nCost )    
            {    
                if(
pUser->HasActivatedSystemPet() && pItemElem->GetProp()->dwItemKind3 == IK3_EGG || pUser->HasActivatedEatPet() && pItemElem->GetProp()->dwItemKind3 == IK3_PET 
                {
                    
char chMessage[100];
                    
sprintfchMessage"Hol dein Pet oder CS Pet rein! Sonst kannst du es nicht erwecken!" );
                    
pUser->AddTextchMessage );
                }
                else
                {
                        
pUser->AddGold( -( nCost ) );
                        
g_xRandomOptionProperty->InitializeRandomOptionpItemElem->GetRandomOptItemIdPtr() );
                        
g_xRandomOptionProperty->GenRandomOptionpItemElem->GetRandomOptItemIdPtr(), nRandomOptionKindpItemElem->GetProp()->dwParts );
                        
pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMIDpItemElem->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->GetRandomOptionKindpItemElem );
        if( 
nRandomOptionKind >= )    // ¾ÆÀÌÅÛ °¢¼º, ¿©½ÅÀÇ ÃູÀÌ °¡´ÉÇÑ ´ë»ó
        
{
            if(
pUser->HasActivatedSystemPet() && pItemElem->GetProp()->dwItemKind3 == IK3_EGG || pUser->HasActivatedEatPet() && pItemElem->GetProp()->dwItemKind3 == IK3_PET 
            {
                
char chMessage[100];
                
sprintfchMessage"Hol dein Pet oder CS Pet rein! Sonst kannst du es nicht erwecken!" );
                
pUser->AddTextchMessage );
            }
            else
            {
                
g_xRandomOptionProperty->InitializeRandomOptionpItemElem->GetRandomOptItemIdPtr() );
                
g_xRandomOptionProperty->GenRandomOptionpItemElem->GetRandomOptItemIdPtr(), nRandomOptionKindpItemElem->GetProp()->dwParts );
                
pUser->UpdateItemEx( (BYTE)( pItemElem->m_dwObjId ), UI_RANDOMOPTITEMIDpItemElem->GetRandomOptItemId() );
            }
        }
    }
#endif // 

VersionCommon.h


#define __AWA_WITH_PENYACOST



Hf
02/15/2018 11:34 flyffhack123#8
bei mir ist TextCmd_InitalizeRandomOption nichtdeklarierter Bezeichner.. was muss ich ändern ?