Register for your free account! | Forgot your password?

You last visited: Today at 12:43

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


[Request]/awa Command

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2013
Posts: 17
Received Thanks: 1
[Request]/awa Command

Request Close
(Y)



AppleLike is offline  
Old 04/26/2013, 11:13   #2
 
elite*gold: 59
Join Date: Aug 2009
Posts: 1,570
Received Thanks: 487
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


.Tear is offline  
Thanks
1 User
Old 04/26/2013, 12:38   #3
 
elite*gold: 10
Join Date: Feb 2011
Posts: 1,768
Received Thanks: 497
if you only change the auth of the command you are able to stack with this command.
Velmore is offline  
Thanks
1 User
Old 04/26/2013, 12:47   #4


 
elite*gold: 190
Join Date: Sep 2012
Posts: 4,235
Received Thanks: 3,017
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 wre in dem Fall nur ein simples Copy & Paste.

MfG Armageddon


- Mr.Black is offline  
Thanks
1 User
Old 04/26/2013, 12:54   #5
 
elite*gold: 10
Join Date: Feb 2011
Posts: 1,768
Received Thanks: 497
Quote:
Originally Posted by Armageddon View Post
Man kann diesen Befehl aber auch erweitern bzw es fixen und das wre 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.
Velmore is offline  
Thanks
1 User
Old 04/26/2013, 13:19   #6
 
elite*gold: 0
Join Date: Apr 2013
Posts: 17
Received Thanks: 1
@Armageddon , @Velmore
Please give me a tut how can i ..
i dont know how to make that
please please please
AppleLike is offline  
Old 04/26/2013, 20:39   #7
 
elite*gold: 0
Join Date: Jan 2011
Posts: 1,080
Received Thanks: 503
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
Chriѕ is offline  
Thanks
2 Users
Old 02/15/2018, 11:34   #8
 
elite*gold: 0
Join Date: Jan 2018
Posts: 16
Received Thanks: 2
bei mir ist TextCmd_InitalizeRandomOption nichtdeklarierter Bezeichner.. was muss ich ndern ?


flyffhack123 is offline  
Reply



« FuncTextCmd.cpp | Newbie Freebies »

Similar Threads
[Request]/maxplayer command
Anyone can help me to make a new command for 5165 ? I see that command in tq binary with can make a players login limit !
2 Replies - CO2 PServer - Discussions / Questions
[REQUEST]/ban command for 5165
Could someone please give me a /ban command that works for a 5165 server? I can't get rid of these damn bug abusers. And does it just ban the char or IP ban? I'd prefer IP. Please help, Thanks.
16 Replies - CO2 PServer - Discussions / Questions
[Request] Mob Spawn command
#Request close! found it hehe sorry
0 Replies - CO2 PServer - Discussions / Questions
[Request] NPC Or Command please
I would like please if possible NpC that allot attribute points that you get after reborn or a command please .. I tried to use the one in kinshis source but the command doesn't work . Thank you very much
2 Replies - CO2 PServer - Discussions / Questions



All times are GMT +2. The time now is 12:43.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.