飞飞世界论坛

标题: [使游戏内的Char] [新闻稿] yannick妈妈在释放愤怒! [打印本页]

作者: admin    时间: 2016-1-10 03:17
标题: [使游戏内的Char] [新闻稿] yannick妈妈在释放愤怒!
这样下去, n0 V' ^* a0 Y; z

8 r/ ?& O% B3 |4 Q今天是你的依次为:游戏内创建角色。
3 [; ?" u# k. a/ e& d
0 q9 c4 t/ R0 W8 m/ y3 M% L' t信息:您可以创建一个字符,而你游戏内。只要“/ createcharonline0”(第一槽0)类型。$ |( S) Q' B* s  h2 i+ f6 A

" w3 `& H' s- u% D% ^编码时间不到5分钟。
9 U( q- a& @  S' U, F5 H
7 L# e4 b2 B* |+ XJopsis显示器可视频:
FuncTextCmd.cpp* C8 Q9 y% d7 {( a5 R5 x1 V
6 s+ ?4 D6 X& |' z
6 _1 j/ Z% i2 _/ |( |
我们正在寻找:
Code:
        ON_TEXTCMDFUNC(TextCmd_InvenRemove,           "InvenRemove",        "irm",      "àÎo¥»èá|",      "àλè",    TCM_SERVER,AUTH_ADMINISTRATOR, "" )
5 C3 J1 F, y8 \) k! k5 s
其中,我们输入:
Code:
#ifdef __CRAP_CREATECHARONLINE
        ON_TEXTCMDFUNC(TextCmd_CreateCharOnline,             "CreateCharOnline",            "cco",         "",                                   "",            TCM_CLIENT,        AUTH_GENERAL, "" )
#endif //__CRAP_CREATECHARONLINE
. r! A1 p, t0 |3 c3 A
我们正在寻找:
Code:
BOOL TextCmd_InvenRemove( CScanner& scanner )      
{
#ifdef __WORLDSERVER
        CUser* pUser =(CUser*)scanner.dwValue;
        if( IsValidObj( pUser ) )
        {
               int nSize =pUser->m_Inventory.GetMax();
               for( int i = 0 ; i< nSize; ++i )
               {
                       CItemElem*pItemElem = pUser->m_Inventory.GetAtId( i );
                       if(IsUsableItem( pItemElem ) && !pUser->m_Inventory.IsEquip(pItemElem->m_dwObjId ) && !pItemElem->IsPet() &&!pItemElem->IsEatPet() )
                               pUser->UpdateItem(i, UI_NUM, 0 );
               }
        }
#endif  // __WORLDSERVER
        return TRUE;
}

) F) n3 l2 I# V0 Z1 @0 C9 h
其中,我们输入:
Code:
#ifdef __CRAP_CREATECHARONLINE
BOOL TextCmd_CreateCharOnline( CScanner& scanner )
{
#ifdef __CLIENT
        if( g_WndMng.GetWndBase(APP_CREATE_CHAR ) == NULL )
        {
               CWndCreateChar*pWndCreateChar = new CWndCreateChar;
               pWndCreateChar->Initialize();
        }
        else
               return FALSE;
        if( scanner.tokenType ==NUMBER )
               nSlotNumber    = scanner.Token
        else
               return FALSE;
        if( nSlotNumber < 0 ||nSlotNumber > 2 )
               return FALSE;
        
        if( pWndCreateChar ) {
               pWndCreateChar->m_Player.m_uSlot      = nSlotNumber;
#endif //__CLIENT
}
#endif //__CRAP_CREATECHARONLINE

8 g6 e" z2 X5 c9 b

* z" G+ q5 c( Y3 f/ W6 T




欢迎光临 飞飞世界论坛 (http://ffwold.com/) Powered by Discuz! X3.2