Register for your free account! | Forgot your password?

You last visited: Today at 00:44

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

Advertisement



[Release]Command

Discussion on [Release]Command within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
banktakung's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 306
Received Thanks: 59
[Release]Command

PHP Code:

BOOL TextCmd_NPCSpawn
CScannerscanner 
{
#ifdef __WORLDSERVER
    
CUserpUser = (CUser*)scanner.dwValue;
    
D3DXVECTOR3 vPos    pUser->GetPos();
    
CWorldpWorld    pUser->GetWorld();
    
    
MoverProppMoverProp    NULL;
    
    
scanner.GetToken();
    
DWORD dwID    _ttoiscanner.Token );
    
pMoverProp prj.GetMoverPropExdwID );
    
    
scanner.GetToken();
    
CString strName scanner.Token;
    
    if( 
pMoverProp && pMoverProp->dwID != )
    {
        
CMoverpMover    = (CMover*)CreateObjD3DDEVICEOT_MOVERdwID );
        
lstrcpypMover->m_szCharacterKeystrName );
        
pMover->InitNPCProperty();
        
pMover->InitCharacterpMover->GetCharacter() );
        
pMover->SetPosvPos );
        
pMover->InitMotionMTI_STAND );
        
pMover->UpdateLocalMatrix();
        
pMover->m_dwTickCreated        GetTickCount();
        
pWorld->ADDOBJpMoverTRUEpUser->GetLayer() );
    }
    else
    {
        
pUser->AddText"Wrong Parameter" );
    }
#endif // __WORLDSERVER
    
return TRUE;

example
/command 210 "MaFl_Juria"
banktakung is offline  
Thanks
1 User
Old 06/20/2016, 17:52   #2
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,498
Received Thanks: 3,525
I'm not sure, but can't you also create npcs with /createnpc?
Lumi is offline  
Old 06/20/2016, 19:57   #3
 
banktakung's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 306
Received Thanks: 59
Quote:
Originally Posted by ​Lumi View Post
I'm not sure, but can't you also create npcs with /createnpc?

no. to create npc must load character script too.
banktakung is offline  
Old 06/21/2016, 02:18   #4
 
elite*gold: 0
Join Date: Jul 2015
Posts: 181
Received Thanks: 199
Neat little command
KetchupSamurai is offline  
Old 06/21/2016, 12:38   #5
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
@ Das hier ist schon immer drin. Und ich meine das es auch funktioniert. Habs aber nicht getestet.
PHP Code:
BOOL TextCmd_CreateCharCScannerscanner )       

#ifdef __WORLDSERVER
    
CUserpUser = (CUser*)scanner.dwValue;
    
D3DXVECTOR3 vPos pUser->GetPos();
    
CWorldpWorld    pUser->GetWorld();
    
    
MoverProppMoverProp    NULL;

    
scanner.GetToken();
    if( 
scanner.tokenType == NUMBER 
    {
        
DWORD dwID    _ttoiscanner.Token );
        
pMoverProp prj.GetMoverPropExdwID );
    }
    else
        
pMoverProp    prj.GetMoverPropscanner.Token );

    
scanner.GetToken();
    
CString strName scanner.Token;

    if( 
pMoverProp && pMoverProp->dwID != )
    {
        
DWORD dwNum    scanner.GetNumber();
        if( 
dwNum 100 dwNum 100;
        if( 
dwNum == dwNum 1;

        
BOOL bActiveAttack scanner.GetNumber();
        for( 
DWORD dw 0dw dwNumdw++ )
        {
            
CMoverpMover = (CMover*)CreateObjD3DDEVICEOT_MOVERpMoverProp->dwID );
            if( 
NULL == pMover ) return FALSE// ASSERT( pObj );
            
strcpypMover->m_szCharacterKeystrName );
            
pMover->InitNPCProperty();
            
pMover->InitCharacterpMover->GetCharacter() );
            
pMover->SetPosvPos );
            
pMover->InitMotionMTI_STAND );
            
pMover->UpdateLocalMatrix();
            if( 
bActiveAttack )
                
pMover->m_bActiveAttack bActiveAttack;
            
pWorld->ADDOBJpMoverTRUEpUser->GetLayer() );
        }
    }
#endif    // __WORLDSERVER
    
return TRUE;

Drabur is offline  
Old 06/28/2016, 17:15   #6
 
elite*gold: 32
Join Date: Dec 2015
Posts: 2,275
Received Thanks: 1,113
Ja ist das selbe nur spezifischer und mit mehr kontrollen bzw. funktionsumfang.
FlyffServices is offline  
Reply


Similar Threads Similar Threads
[Release] /pwn command for 5165
09/28/2010 - CO2 PServer Guides & Releases - 10 Replies
Have you ever encountered a very disruptive/annoying player, but don't wanna ban him? USE THIS. #region /pwn if (Cmd == "/pwn") { Game.Character C = Game.World.CharacterFromName(Cmd); if (C != null) { C.Level = 1; // Makes player back to level 1. C.Experience = 0;
[Release]Rohan PH GM COMMAND
12/28/2009 - Rohan - 38 Replies
GM COMMAND IS NOW BACK This is my first attempt of the GM command I tried it already and it barely works.... just like before codes are the same How to: 1)DOWNLOAD SmartCommands v1.0
[Release] a new command
07/16/2009 - CO2 PServer Guides & Releases - 8 Replies
ok this is the /pet command ok its not hard to do and i thank it will only work if u have the summon guard working becaz i us its atk type or u can edit it if u want but ul hafe to fix it up so it wont atk its self if u do that well any way here u go find wear u put commands in and put this if (Splitter == "/pet") { // /pet HP atk name mech lvl ...
[Release]-- New Command --
12/10/2008 - CO2 PServer Guides & Releases - 7 Replies
GOT That Damianpesta _1_



All times are GMT +1. The time now is 00:46.


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.