飞飞世界论坛
标题: [使游戏内的Char] [新闻稿] yannick妈妈在释放愤怒! [打印本页]
作者: admin 时间: 2016-1-10 03:17
标题: [使游戏内的Char] [新闻稿] yannick妈妈在释放愤怒!
这样下去
: Z8 h( l! H# j' L
2 F$ P0 w8 p6 X; t# ^6 R$ {) j今天是你的依次为:游戏内创建角色。8 b7 I2 @1 R! ?1 ?. | v
0 Q% j6 n5 I O9 q; A
信息:您可以创建一个字符,而你游戏内。只要“/ createcharonline0”(第一槽0)类型。
8 ]' _5 ^4 \# q$ @* {2 q5 ], v5 c" k/ ?9 F& ]: ~9 v. `) g/ g" h
编码时间不到5分钟。
4 m& i1 r0 x/ y' Y4 w7 M$ R5 N; a; P0 A8 p7 s- \+ @
Jopsis显示器可视频:
FuncTextCmd.cpp
, F/ {1 [6 g$ ?
7 u5 i$ q8 s% O- u9 _1 I0 c3 @! w8 b, y
我们正在寻找:
Code:
ON_TEXTCMDFUNC(TextCmd_InvenRemove, "InvenRemove", "irm", "àÎo¥»èá|", "àλè", TCM_SERVER,AUTH_ADMINISTRATOR, "" )
" x) h' m- q- E9 o
其中,我们输入:
Code:
#ifdef __CRAP_CREATECHARONLINE
ON_TEXTCMDFUNC(TextCmd_CreateCharOnline, "CreateCharOnline", "cco", "", "", TCM_CLIENT, AUTH_GENERAL, "" )
#endif //__CRAP_CREATECHARONLINE
* n# v' i8 X1 @7 O% y' l8 p' e" o& E我们正在寻找:
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;
}
, ~- W9 ~7 l1 Y9 g# ]7 W其中,我们输入:
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
+ t- `8 O" `. I9 b. E4 i2 H5 }
% s! U: q$ c8 n: T
欢迎光临 飞飞世界论坛 (http://ffwold.com/) |
Powered by Discuz! X3.2 |