diff --git a/battle/battle.c b/battle/battle.c index c1c414c..06c0892 100644 --- a/battle/battle.c +++ b/battle/battle.c @@ -39,7 +39,7 @@ extern MY_Lua MYLua; #include "npc_autopk.h" #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 #include "profession_skill.h" #include "skill.h" #endif @@ -78,7 +78,7 @@ char szBadStatusString[1024]; int gWeponType; float gDamageDiv; int gItemCrushRate = 400000; - +//浠ヤ笅鍦ㄨ佺増鏈湭瀹氫箟 char afmwar[20480]; char bfmwar[20480]; char cfmwar[20480]; @@ -92,6 +92,7 @@ int dfmwarnum = 0; int efmwarnum = 0; int ffmwarnum = 0; extern int autopkcnt; +//浠ヤ笂鍦ㄨ佺増鏈湭瀹氫箟 int BoomerangVsTbl[4][5] = { { 4+5*0,2+5*0,0+5*0,1+5*0,3+5*0 }, { 4+5*1,2+5*1,0+5*1,1+5*1,3+5*1 }, @@ -99,8 +100,8 @@ int BoomerangVsTbl[4][5] = { { 4+5*3,2+5*3,0+5*3,1+5*3,3+5*3 }, }; -#ifdef _OFFLINE_SYSTEM -static int offlineAttack(int battleindex,int charaindex,int side) +#ifdef _OFFLINE_SYSTEM //绂荤嚎绯荤粺 +static int offlineAttack(int battleindex,int charaindex,int side) //绂荤嚎鏀诲嚮 { @@ -122,12 +123,12 @@ static int offlineAttack(int battleindex,int charaindex,int side) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_BOOMERANG ); #ifdef _PETSKILL_BECOMEFOX if( CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)==101749 - || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //若是变成小狐狸不可以使用回力标 + || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //鑻ユ槸鍙樻垚灏忕嫄鐙镐笉鍙互浣跨敤鍥炲姏鏍 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); } #endif #ifdef _PETSKILL_BECOMEPIG - if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > -1 ){//变成乌力了 + if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > -1 ){//鍙樻垚涔屽姏浜 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_ATTACK ); } #endif @@ -139,7 +140,7 @@ static int offlineAttack(int battleindex,int charaindex,int side) return 1; } -static int offlineRecovery(int battleindex,int charaindex,int HP) +static int offlineRecovery(int battleindex,int charaindex,int HP) //绂荤嚎鎭㈠ { @@ -154,7 +155,7 @@ static int offlineRecovery(int battleindex,int charaindex,int HP) } -void OffLineCommand(int battleindex,int charaindex,int side) +void OffLineCommand(int battleindex,int charaindex,int side) //绂荤嚎鎸囦护 { side = 1 - side; //test if(CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER){ @@ -180,6 +181,8 @@ void OffLineCommand(int battleindex,int charaindex,int side) } #endif +//浠ヤ笂绂荤嚎鍔熻兘鑰佺増鏈湭鍔犲叆 + void BATTLE_BadStatusAllClr( int charaindex ) { int i ; @@ -220,18 +223,18 @@ void BATTLE_BadStatusAllClr( int charaindex ) ch = CHAR_getCharPointer( charaindex); if( ch == NULL ) return; strcpysafe( ch->charfunctable[CHAR_BATTLEPROPERTY].string, - sizeof( ch->charfunctable[CHAR_BATTLEPROPERTY]), "");//战斗 + sizeof( ch->charfunctable[CHAR_BATTLEPROPERTY]), "");//鎴樻枟 CHAR_constructFunctable( charaindex); } #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 CHAR_setWorkInt( charaindex, CHAR_MYSKILLHIT, 0 ); CHAR_setWorkInt( charaindex, CHAR_WORK_P_DUCK, 0 ); CHAR_setWorkInt( charaindex, CHAR_WORKMOD_P_DUCK, 0 ); - CHAR_setWorkInt( charaindex, CHAR_WORK_WEAPON, 0 ); // 武器专精 + CHAR_setWorkInt( charaindex, CHAR_WORK_WEAPON, 0 ); // 姝﹀櫒涓撶簿 - // 火冰电抗性 + // 鐏啺鐢垫姉鎬 for( i=0; i<3; i++) CHAR_setWorkInt( charaindex, CHAR_WORK_F_RESIST+i, 0/*CHAR_getInt( charaindex, PROFESSION_FIRE_R+i )*/ ); @@ -251,7 +254,7 @@ void BATTLE_BadStatusAllClr( int charaindex ) } -int BATTLE_getTopBattle( int battleindex ) +int BATTLE_getTopBattle( int battleindex ) //鑰佺増鏈畾涔夊嚱鏁 { BATTLE *pBattleTop; @@ -271,7 +274,7 @@ int BATTLE_getTopBattle( int battleindex ) } } -static int BATTLE_getBattleFieldNo( int floor, int x, int y ) +static int BATTLE_getBattleFieldNo( int floor, int x, int y ) //鑰佺増鏈畾涔夊嚱鏁 { int tile[2], map[3], iRet; if( !MAP_getTileAndObjData( floor, x, y, &tile[0], &tile[1] ) ) @@ -283,7 +286,7 @@ static int BATTLE_getBattleFieldNo( int floor, int x, int y ) return iRet; } -void BATTLE_BadStatusString( int defNo, int status ) +void BATTLE_BadStatusString( int defNo, int status ) //鑰佺増鏈畾涔夊嚱鏁 { char szWork[256]; if( status < 1 || status >= BATTLE_ST_END ){ @@ -308,7 +311,7 @@ static int CharTableIdx[20][2] = typedef int ( *FUNCSORTLOC )( const void* , const void* ); -static int SortLoc( const int *pEle1 , const int *pEle2 ) +static int SortLoc( const int *pEle1 , const int *pEle2 ) //鑰佺増鏈畾涔夊嚱鏁,鍔熻兘鏈槑 { int ele1basex , ele1basey; int ele2basex , ele2basey; @@ -322,7 +325,7 @@ static int SortLoc( const int *pEle1 , const int *pEle2 ) if( ele1basey != ele2basey ) return ( ele1basey - ele2basey ); return ( ele1basex - ele2basex ); - }else{ // 右下方 + }else{ // 鍙充笅鏂 if( ele1basey != ele2basey ) return ( ele2basey - ele1basey ); return ( ele2basex - ele1basey ); @@ -335,39 +338,39 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) { int j , i , cnt=0,nLife = 0,nLifeArea[10]; #ifdef _ATTACK_MAGIC - // 单人攻击 + // 鍗曚汉鏀诲嚮 if(0 <= toNo && toNo <= 19){ memset(nLifeArea,-1,sizeof(nLifeArea)); - // 如果被攻击者是右下方的人 + // 濡傛灉琚敾鍑昏呮槸鍙充笅鏂圭殑浜 if(toNo >= 0 && toNo <= 9){ for(i=0;i<10;i++){ - // 确定活着的人数,并记录活着的人的号码 + // 纭畾娲荤潃鐨勪汉鏁,骞惰褰曟椿鐫鐨勪汉鐨勫彿鐮 if(BATTLE_TargetCheck(battleindex,i) == TRUE) nLifeArea[nLife++] = i; } } - // 如果被攻击者是左上方的人 + // 濡傛灉琚敾鍑昏呮槸宸︿笂鏂圭殑浜 if(toNo >= 10 && toNo <= 19){ for(i=10;i<20;i++){ - // 确定活着的人数,并记录活着的人的号码 + // 纭畾娲荤潃鐨勪汉鏁,骞惰褰曟椿鐫鐨勪汉鐨勫彿鐮 if(BATTLE_TargetCheck(battleindex,i) == TRUE) nLifeArea[nLife++] = i; } } - // 全死(虽然不太可能,但..) + // 鍏ㄦ(铏界劧涓嶅お鍙兘,浣..) if(nLife == 0){ //print("\nAll die!!"); return -1; }else{ - // 被攻击的对象已经死亡或不在战场上 + // 琚敾鍑荤殑瀵硅薄宸茬粡姝讳骸鎴栦笉鍦ㄦ垬鍦轰笂 if(BATTLE_TargetCheck(battleindex,toNo) == FALSE) - // 随机找一只来打 + // 闅忔満鎵句竴鍙潵鎵 while((toNo = nLifeArea[rand()%10]) == -1); } ToList[0] = toNo; ToList[1] = -1; cnt = 1; } - // 右下後一列攻击 + // 鍙充笅寰屼竴鍒楁敾鍑 else if( TARGET_SIDE_0_B_ROW == toNo ){ for( j = 0 , i = 0 ; i < SIDE_OFFSET / 2 ; i++ ){ if( TRUE == BATTLE_TargetCheck( battleindex , i ) ){ @@ -377,9 +380,9 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) } ToList[j] = -1; cnt = j; - // 如果这一排都没有人可以打 + // 濡傛灉杩欎竴鎺掗兘娌℃湁浜哄彲浠ユ墦 if(j == 0){ - // 换前一排 + // 鎹㈠墠涓鎺 for( j = 0 , i = SIDE_OFFSET / 2 ; i < SIDE_OFFSET ; i++ ){ if( TRUE == BATTLE_TargetCheck( battleindex , i ) ){ ToList[j] = i; @@ -388,12 +391,12 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) } ToList[j] = -1; cnt = j; - // 如果全死 + // 濡傛灉鍏ㄦ if(j == 0) return -1; toNo = TARGET_SIDE_0_F_ROW; } } - // 右下前一列攻击 + // 鍙充笅鍓嶄竴鍒楁敾鍑 else if( TARGET_SIDE_0_F_ROW == toNo ) { for( j = 0 , i = SIDE_OFFSET / 2 ; i < SIDE_OFFSET ; i++ ) @@ -406,10 +409,10 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) } ToList[j] = -1; cnt = j; - // 如果这一排都没有人可以打 + // 濡傛灉杩欎竴鎺掗兘娌℃湁浜哄彲浠ユ墦 if(j == 0) { - // 换後一排 + // 鎹㈠緦涓鎺 for( j = 0 , i = 0 ; i < SIDE_OFFSET / 2 ; i++ ) { if( TRUE == BATTLE_TargetCheck( battleindex , i ) ) @@ -420,12 +423,12 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) } ToList[j] = -1; cnt = j; - // 如果全死 + // 濡傛灉鍏ㄦ if(j == 0) return -1; toNo = TARGET_SIDE_0_B_ROW; } } - // 左下後一列攻击 + // 宸︿笅寰屼竴鍒楁敾鍑 else if( TARGET_SIDE_1_B_ROW == toNo ) { for( j = 0 , i = SIDE_OFFSET ; i < SIDE_OFFSET + SIDE_OFFSET / 2 ; i++ ) @@ -438,10 +441,10 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) } ToList[j] = -1; cnt = j; - // 如果这一排都没有人可以打 + // 濡傛灉杩欎竴鎺掗兘娌℃湁浜哄彲浠ユ墦 if(j == 0) { - // 换前一排 + // 鎹㈠墠涓鎺 for( j = 0 , i = SIDE_OFFSET + SIDE_OFFSET / 2 ; i < SIDE_OFFSET * 2 ; i++ ) { if( TRUE == BATTLE_TargetCheck( battleindex , i ) ) @@ -452,12 +455,12 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) } ToList[j] = -1; cnt = j; - // 如果全死 + // 濡傛灉鍏ㄦ if(j == 0) return -1; toNo = TARGET_SIDE_1_F_ROW; } } - // 左上前一列攻击 + // 宸︿笂鍓嶄竴鍒楁敾鍑 else if( TARGET_SIDE_1_F_ROW == toNo ) { for( j = 0 , i = SIDE_OFFSET + SIDE_OFFSET / 2 ; i < SIDE_OFFSET * 2 ; i++ ) @@ -470,10 +473,10 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) } ToList[j] = -1; cnt = j; - // 如果这一排都没有人可以打 + // 濡傛灉杩欎竴鎺掗兘娌℃湁浜哄彲浠ユ墦 if(j == 0) { - // 换後一排 + // 鎹㈠緦涓鎺 for( j = 0 , i = SIDE_OFFSET ; i < SIDE_OFFSET + SIDE_OFFSET / 2 ; i++ ) { if( TRUE == BATTLE_TargetCheck( battleindex , i ) ) @@ -484,12 +487,12 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) } ToList[j] = -1; cnt = j; - // 如果全死 + // 濡傛灉鍏ㄦ if(j == 0) return -1; toNo = TARGET_SIDE_1_B_ROW; } } - // 右下方所有攻击 + // 鍙充笅鏂规墍鏈夋敾鍑 else if( TARGET_SIDE_0 == toNo ) { //print("BATTLE_MultiList(20)toNo->%d\n",toNo); @@ -505,7 +508,7 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) ToList[j] = -1; cnt = j; } - // 左上方所有攻击 + // 宸︿笂鏂规墍鏈夋敾鍑 else if( toNo == TARGET_SIDE_1 ) { for( j = 0 , i = SIDE_OFFSET ; i < SIDE_OFFSET * 2 ; i++ ) @@ -520,7 +523,7 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) ToList[j] = -1; cnt = j; } - // 所有人攻击 + // 鎵鏈変汉鏀诲嚮 else if( toNo == TARGET_ALL ){ #ifdef _FIX_ARRAYBUG for( j = 0 , i = 0 ; i < SIDE_OFFSET * 2 ; i++ ){ @@ -534,7 +537,7 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) } ToList[i] = -1; cnt = j; - // won add 前後排攻击 + // won add 鍓嶅緦鎺掓敾鍑 }else if( toNo == TARGER_THROUGH ){ int toNo2=-1, count=0; @@ -626,7 +629,7 @@ int BATTLE_MultiList( int battleindex, int toNo, int ToList[] ) #endif } -void BATTLE_MultiListDead( int battleindex, int toNo, int ToList[] ) +void BATTLE_MultiListDead( int battleindex, int toNo, int ToList[] ) //鑰佺増鏈畾涔夊嚱鏁 { int j, i; if( 0 <= toNo && toNo <= 19 ){ @@ -667,7 +670,7 @@ void BATTLE_MultiListDead( int battleindex, int toNo, int ToList[] ) j ++ ; } } -#ifdef _FIX_ITEMRELIFE // WON ADD 修正替身娃娃问题 +#ifdef _FIX_ITEMRELIFE // WON ADD 淇鏇胯韩濞冨▋闂 ToList[j] = -1; #else ToList[i] = -1; @@ -679,7 +682,7 @@ void BATTLE_MultiListDead( int battleindex, int toNo, int ToList[] ) } } -BOOL BATTLE_IsThrowWepon( int itemindex){ +BOOL BATTLE_IsThrowWepon( int itemindex){ //鑰佺増鏈畾涔夊嚱鏁 int itemtype; if( ITEM_CHECKINDEX( itemindex ) == FALSE ){ return FALSE; @@ -695,7 +698,7 @@ BOOL BATTLE_IsThrowWepon( int itemindex){ } } -int BATTLE_ClearGetExp( int charaindex ) +int BATTLE_ClearGetExp( int charaindex ) //鑰佺増鏈畾涔夊嚱鏁 { int i, pindex; @@ -713,7 +716,7 @@ int BATTLE_ClearGetExp( int charaindex ) return 0; } -INLINE void _BATTLE_ExitAll( char *file, int line, int battleindex) +INLINE void _BATTLE_ExitAll( char *file, int line, int battleindex) //鑰佺増鏈畾涔夊嚱鏁 { int j,i, charaindex; for( j = 0; j < 2; j ++ ){ @@ -727,7 +730,7 @@ INLINE void _BATTLE_ExitAll( char *file, int line, int battleindex) } } -void BATTLE_AllCharaFinishSet( int battleindex ) +void BATTLE_AllCharaFinishSet( int battleindex ) //鑰佺増鏈畾涔夊嚱鏁 { int j,i, charaindex; for( j = 0; j < 2; j ++ ){ @@ -740,7 +743,7 @@ void BATTLE_AllCharaFinishSet( int battleindex ) } } -BOOL BATTLE_IsCharge( int charaindex ) +BOOL BATTLE_IsCharge( int charaindex ) //鑰佺増鏈畾涔夊嚱鏁 { int com; com = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ); @@ -756,7 +759,7 @@ BOOL BATTLE_IsCharge( int charaindex ) return FALSE; } -void BATTLE_AllCharaCWaitSet( int battleindex ) +void BATTLE_AllCharaCWaitSet( int battleindex ) //鑰佺増鏈畾涔夊嚱鏁 { int j,i, charaindex; for( j = 0; j < 2; j ++ ){ @@ -775,7 +778,7 @@ void BATTLE_AllCharaCWaitSet( int battleindex ) } } -void BATTLE_AllCharaWatchWaitSet( int battleindex ) +void BATTLE_AllCharaWatchWaitSet( int battleindex ) //鑰佺増鏈畾涔夊嚱鏁 { int i, charaindex; for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ @@ -791,7 +794,7 @@ void BATTLE_AllCharaWatchWaitSet( int battleindex ) } } -void BATTLE_SurpriseSet( +void BATTLE_SurpriseSet( //鑰佺増鏈畾涔夊嚱鏁 int battleindex, int side ) @@ -813,7 +816,7 @@ void BATTLE_SurpriseSet( } -BOOL BATTLE_initBattleArray( +BOOL BATTLE_initBattleArray( //鑰佺増鏈畾涔夊嚱鏁 int battlenum ) { @@ -826,7 +829,7 @@ BOOL BATTLE_initBattleArray( for( i = 0 ; i < BATTLE_battlenum ; i ++ ){ memset( &BattleArray[i], 0 , sizeof( BATTLE )); } - print("分配 %4.2f MB 空间...", ((float)sizeof( Char )*BATTLE_battlenum)/1024.0/1024.0); + print("鍒嗛厤 %4.2f MB 绌洪棿...", ((float)sizeof( Char )*BATTLE_battlenum)/1024.0/1024.0); strcpy(afmwar,"-1,"); strcpy(bfmwar,"-1,"); strcpy(cfmwar,"-1,"); @@ -835,7 +838,7 @@ BOOL BATTLE_initBattleArray( } -static void EntryInit( BATTLE_ENTRY *pEntry ){ +static void EntryInit( BATTLE_ENTRY *pEntry ){ //鑰佺増鏈畾涔夊嚱鏁 int i; pEntry->charaindex = -1; pEntry->bid = -1; @@ -845,7 +848,7 @@ static void EntryInit( BATTLE_ENTRY *pEntry ){ } } -int BATTLE_CreateBattle( int charaindex ) +int BATTLE_CreateBattle( int charaindex ) //鑰佺増鏈畾涔夊嚱鏁板弬鏁版槸void { int battleindex, i, j; BATTLE *pBattle; @@ -881,7 +884,7 @@ int BATTLE_CreateBattle( int charaindex ) pBattle->PartTime = 0; #endif #ifdef _PROFESSION_ADDSKILL - //冰爆术存放 + //鍐扮垎鏈瓨鏀 /* pBattle->ice_count = 0; for( i = 0; i < 20; i ++ ){ pBattle->ice_bout[i]=0; @@ -900,7 +903,7 @@ int BATTLE_CreateBattle( int charaindex ) return battleindex; } -static int BATTLE_SearchTask( void ) +static int BATTLE_SearchTask( void ) //鑰佺増鏈畾涔夊嚱鏁 { int i, j; i = BATTLE_searchCnt; @@ -916,7 +919,7 @@ static int BATTLE_SearchTask( void ) return -1; } -void BATTLE_DeleteItem( int battleindex ) +void BATTLE_DeleteItem( int battleindex ) //鑰佺増鏈畾涔夊嚱鏁 { int i, j, k; BATTLE_ENTRY *pEntry; @@ -926,7 +929,7 @@ void BATTLE_DeleteItem( int battleindex ) pEntry = &BattleArray[battleindex].Side[j].Entry[i]; for( k = 0; k < GETITEM_MAX; k ++ ){ if( pEntry->getitem[k] >= 0 ){ -// print( "// 找寻(消去)道具(%d),(%s)\n", pEntry->getitem[k], ITEM_getAppropriateName(pEntry->getitem[k]) ); +// print( "// 鎵惧(娑堝幓)閬撳叿(%d),(%s)\n", pEntry->getitem[k], ITEM_getAppropriateName(pEntry->getitem[k]) ); ITEM_endExistItemsOne( pEntry->getitem[k] ); } } @@ -935,7 +938,7 @@ void BATTLE_DeleteItem( int battleindex ) } -int BATTLE_DeleteBattle( +int BATTLE_DeleteBattle( //鑰佺増鏈畾涔夊嚱鏁 int battleindex ) { @@ -946,7 +949,7 @@ int BATTLE_DeleteBattle( return BATTLE_ERR_BATTLEINDEX; } if( BATTLE_WatchUnLink( battleindex ) == FALSE ){ - //fprint( "err:battle link 不脱离\n" ); + //fprint( "err:battle link 涓嶈劚绂籠n" ); } pBattle = &BattleArray[battleindex]; @@ -1011,7 +1014,7 @@ int BATTLE_DeleteBattle( } -int BATTLE_No2Index( +int BATTLE_No2Index( //鑰佺増鏈畾涔夊嚱鏁 int battleindex, int bid ) @@ -1033,7 +1036,7 @@ int BATTLE_No2Index( } #ifdef _Item_ReLifeAct -int BATTLE_getBattleDieIndex( int battleindex, int bid ) +int BATTLE_getBattleDieIndex( int battleindex, int bid ) //鑰佺増鏈畾涔夊嚱鏁 { BATTLE_ENTRY *pEntry; @@ -1055,7 +1058,8 @@ int BATTLE_getBattleDieIndex( int battleindex, int bid ) #endif #ifdef _PROFESSION_ADDSKILL -BOOL BATTLE_BattleUltimate( int battleindex, int bid ) //检查此位罝上是否被打飞 +//鑰佺増鏈畾涔夊嚱鏁 +BOOL BATTLE_BattleUltimate( int battleindex, int bid ) //妫鏌ユ浣嶇綕涓婃槸鍚﹁鎵撻 { BATTLE_ENTRY *pEntry; if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return FALSE; @@ -1071,7 +1075,7 @@ BOOL BATTLE_BattleUltimate( int battleindex, int bid ) // } #endif -int BATTLE_Index2No( +int BATTLE_Index2No( //鑰佺増鏈畾涔夊嚱鏁 int battleindex, int charaindex ) @@ -1096,7 +1100,7 @@ int BATTLE_Index2No( } -char *BATTLE_CharTitle( int charaindex ) +char *BATTLE_CharTitle( int charaindex ) //鑰佺増鏈畾涔夊嚱鏁 { char *pName; static char Len0Buff[2] = ""; @@ -1113,7 +1117,7 @@ char *BATTLE_CharTitle( int charaindex ) } -int BATTLE_CharaBackUp( int battleindex ) +int BATTLE_CharaBackUp( int battleindex ) //鑰佺増鏈畾涔夊嚱鏁 { int i, j, k, charaindex; BATTLE *pBattle; @@ -1148,7 +1152,7 @@ int BATTLE_CharaBackUp( int battleindex ) -int BATTLE_NewEntry( +int BATTLE_NewEntry( //鑰佺増鏈畾涔夊嚱鏁 int charaindex, int battleindex, int side @@ -1228,7 +1232,7 @@ int BATTLE_NewEntry( break; #endif default: - //print( "不明(%s)(%d)\n", + //print( "涓嶆槑(%s)(%d)\n", //CHAR_getUseName( charaindex ), //CHAR_getInt( charaindex, CHAR_WHICHTYPE ) ); return BATTLE_ERR_TYPE; @@ -1293,29 +1297,29 @@ int BATTLE_NewEntry( CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEWATCH, 0 ); -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - CHAR_setWorkInt( charaindex, CHAR_WORKTRAP, 0 ); //陷阱 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + CHAR_setWorkInt( charaindex, CHAR_WORKTRAP, 0 ); //闄烽槺 BATTLE_ProfessionStatus_init( battleindex, charaindex ); #endif #ifdef _PETSKILL_ACUPUNCTURE - CHAR_setWorkInt( charaindex, CHAR_WORKACUPUNCTURE, 0 );//针刺外皮 + CHAR_setWorkInt( charaindex, CHAR_WORKACUPUNCTURE, 0 );//閽堝埡澶栫毊 #endif #ifdef _PETSKILL_RETRACE - CHAR_setWorkInt( charaindex, CHAR_WORKRETRACE, 0 );//追迹攻击 + CHAR_setWorkInt( charaindex, CHAR_WORKRETRACE, 0 );//杩借抗鏀诲嚮 #endif -#ifdef _PETSKILL_BECOMEFOX //将媚惑术中招时间清除为-1 +#ifdef _PETSKILL_BECOMEFOX //灏嗗獨鎯戞湳涓嫑鏃堕棿娓呴櫎涓-1 CHAR_setWorkInt( charaindex, CHAR_WORKFOXROUND, -1 ); #endif #ifdef _PROFESSION_ADDSKILL - //结界清除 + //缁撶晫娓呴櫎 CHAR_setWorkInt( charaindex, CHAR_WORKFIXEARTHAT_BOUNDARY, 0 ); CHAR_setWorkInt( charaindex, CHAR_WORKFIXWATERAT_BOUNDARY, 0 ); CHAR_setWorkInt( charaindex, CHAR_WORKFIXFIREAT_BOUNDARY, 0 ); CHAR_setWorkInt( charaindex, CHAR_WORKFIXWINDAT_BOUNDARY, 0 ); - CHAR_setWorkInt( charaindex, CHAR_DOOMTIME, 0 );//世界末日集气 + CHAR_setWorkInt( charaindex, CHAR_DOOMTIME, 0 );//涓栫晫鏈棩闆嗘皵 CHAR_setWorkInt( charaindex, CHAR_WORK_com1, 0 ); CHAR_setWorkInt( charaindex, CHAR_WORK_toNo, 0 ); CHAR_setWorkInt( charaindex, CHAR_WORK_mode, 0 ); @@ -1352,7 +1356,7 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) time_t timep; struct tm *p; time(&timep); - p=localtime(&timep); /*取得当地时间*/ + p=localtime(&timep); /*鍙栧緱褰撳湴鏃堕棿*/ timep=mktime(p); CHAR_setWorkInt(charaindex,CHAR_WORKBALLTELENDTIME,timep); } @@ -1377,16 +1381,16 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) // CHAR_setWorkInt(charaindex,CHAR_WORKLISTPAGE,0); //#endif #ifdef _PROFESSION_ADDSKILL - CHAR_setWorkInt( charaindex, CHAR_DOOMTIME, 0 );//世界末日集气 + CHAR_setWorkInt( charaindex, CHAR_DOOMTIME, 0 );//涓栫晫鏈棩闆嗘皵 #endif -#ifdef _PETSKILL_BECOMEFOX // 离开战斗时将媚惑术造成的变身效果清除 - //print("\n检查图号:%s,%d", CHAR_getChar( charaindex, CHAR_NAME), CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)); +#ifdef _PETSKILL_BECOMEFOX // 绂诲紑鎴樻枟鏃跺皢濯氭儜鏈犳垚鐨勫彉韬晥鏋滄竻闄 + //print("\n妫鏌ュ浘鍙:%s,%d", CHAR_getChar( charaindex, CHAR_NAME), CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)); if( CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)==101749 - || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //变成小狐狸 + || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //鍙樻垚灏忕嫄鐙 CHAR_setInt( charaindex, CHAR_BASEIMAGENUMBER, CHAR_getInt( charaindex, CHAR_BASEBASEIMAGENUMBER) ); CHAR_setWorkInt( charaindex, CHAR_WORKFOXROUND, -1); - //print("\n变回去:%d",CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)); + //print("\n鍙樺洖鍘:%d",CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)); } #endif @@ -1411,7 +1415,7 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) if(mymap == getMapHeal(n) && CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER) { NPC_HealerAllHeal(charaindex); - CHAR_talkToCli( charaindex, -1, "自动恢复体力!", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鑷姩鎭㈠浣撳姏锛", CHAR_COLORYELLOW); } } @@ -1419,10 +1423,10 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) #endif -#ifdef _MAGIC_NOCAST // 精灵:沉默 +#ifdef _MAGIC_NOCAST // 绮剧伒:娌夐粯 // WON ADD if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER ) - lssproto_NC_send( getfdFromCharaIndex( charaindex ), 0);//复原 + lssproto_NC_send( getfdFromCharaIndex( charaindex ), 0);//澶嶅師 #endif pBattle = &BattleArray[battleindex]; if( pBattle->use == FALSE ) @@ -1478,7 +1482,7 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) || CHAR_getInt( charaindex, CHAR_HP ) == TRUE ) { -#ifdef _FIX_SPEED_UPLEVEL // WON ADD 修正加速 +#ifdef _FIX_SPEED_UPLEVEL // WON ADD 淇鍔犻 // Robin cancel //if( CHAR_getFlg( charaindex, CHAR_ISDIE ) == TRUE ){ //}else @@ -1495,7 +1499,7 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) //if( CHAR_getWorkInt( charaindex, CHAR_WORKFLG) & WORKFLG_DEBUGMODE ){ //}else { - CheckDefBTime( charaindex, fd, Dtimes, battletime, 10);//lowTime延迟时间 + CheckDefBTime( charaindex, fd, Dtimes, battletime, 10);//lowTime寤惰繜鏃堕棿 } } } @@ -1522,7 +1526,7 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) //if( CHAR_getWorkInt( charaindex, CHAR_WORKFLG) & WORKFLG_DEBUGMODE ) { //}else { - CheckDefBTime( charaindex, fd, Dtimes, battletime, 0);//lowTime延迟时间 + CheckDefBTime( charaindex, fd, Dtimes, battletime, 0);//lowTime寤惰繜鏃堕棿 } } #endif @@ -1576,13 +1580,13 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) CHAR_sendStatusString( charaindex , szPet); } #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - // 遗忘 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + // 閬楀繕 if( CHAR_getWorkInt( petindex, CHAR_WORKOBLIVION ) > 0 ) // Robin fix { int pet_no = CHAR_getInt( charaindex, CHAR_DEFAULTPET ); CHAR_setWorkInt( petindex, CHAR_WORKOBLIVION, 0 ); - // 宠物编号 + // 瀹犵墿缂栧彿 sprintf( szPet, "W%d", pet_no); CHAR_sendStatusString( charaindex , szPet); } @@ -1638,10 +1642,10 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) char msg[1024]; if( tickettime > 0 && tickettime < nowtime ) { //int floor, x, y; - CHAR_talkToCli( charaindex, -1, "谢谢光顾。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "璋㈣阿鍏夐【銆", CHAR_COLORYELLOW); if( CHAR_getWorkInt( charaindex, CHAR_WORKTICKETTIMESTART) > 0 ) { totaltime = nowtime - CHAR_getWorkInt( charaindex, CHAR_WORKTICKETTIMESTART); - sprintf( msg, "总入场时间%d分%d秒。", totaltime/60, totaltime%60); + sprintf( msg, "鎬诲叆鍦烘椂闂%d鍒%d绉掋", totaltime/60, totaltime%60); CHAR_talkToCli( charaindex, -1, msg, CHAR_COLORYELLOW); } CHAR_setWorkInt( charaindex, CHAR_WORKTICKETTIME, 0); @@ -1656,7 +1660,7 @@ INLINE int _BATTLE_Exit( char *file, int line, int charaindex ,int battleindex) } } #endif - //51000地图战斗后返回记录点 + //51000鍦板浘鎴樻枟鍚庤繑鍥炶褰曠偣 if(CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER && CHAR_getInt( charaindex, CHAR_FLOOR )==51000){ int floor = 0, x = 0, y = 0; CHAR_getElderPosition( CHAR_getInt( charaindex, CHAR_LASTTALKELDER), &floor, &x, &y ); @@ -1771,7 +1775,7 @@ int BATTLE_RescueEntry( int charaindex, int toindex ) if( !BATTLE_CHECKINDEX( battleindex) ) return 1; if( ( fd = getfdFromCharaIndex(charaindex) ) < 0 ) return 1; - //组队BUG + //缁勯槦BUG int pi; for( pi = 0; pi < CHAR_PARTYMAX; pi ++ ) { int index = CHAR_getWorkInt( toindex, pi + CHAR_WORKPARTYINDEX1); @@ -1812,7 +1816,7 @@ int BATTLE_RescueEntry( int charaindex, int toindex ) if(ip==toip){ ipcnt++; if(ipcnt>sameipnum){ - CHAR_talkToCli( charaindex, -1, "此地图允许的单IP组队已达上限。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "姝ゅ湴鍥惧厑璁哥殑鍗旾P缁勯槦宸茶揪涓婇檺銆", CHAR_COLORYELLOW); return 1; } else @@ -1827,7 +1831,7 @@ int BATTLE_RescueEntry( int charaindex, int toindex ) if(ip==toip){ ipcnt++; if(ipcnt>sameipnum){ - CHAR_talkToCli( charaindex, -1, "此地图允许的单IP组队已达上限。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "姝ゅ湴鍥惧厑璁哥殑鍗旾P缁勯槦宸茶揪涓婇檺銆", CHAR_COLORYELLOW); return 1; } } @@ -1856,7 +1860,7 @@ int BATTLE_RescueEntry( int charaindex, int toindex ) if(ip==toip){ ipcnt++; if(ipcnt>sameipnum){ - CHAR_talkToCli( charaindex, -1, "同IP组队数已达上限,无法开战。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍚孖P缁勯槦鏁板凡杈句笂闄愶紝鏃犳硶寮鎴樸", CHAR_COLORYELLOW); return 1; } } @@ -1868,7 +1872,7 @@ int BATTLE_RescueEntry( int charaindex, int toindex ) if(ip==toip){ ipcnt++; if(ipcnt>sameipnum){ - CHAR_talkToCli( charaindex, -1, "同IP组队数已达上限,无法开战。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍚孖P缁勯槦鏁板凡杈句笂闄愶紝鏃犳硶寮鎴樸", CHAR_COLORYELLOW); return 1; } } @@ -1910,7 +1914,7 @@ int BATTLE_RescueEntry( int charaindex, int toindex ) pindex = CHAR_getCharPet( charaindex, CHAR_getInt( charaindex, CHAR_DEFAULTPET ) ); CHAR_setWorkInt( pindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_RESCUE ); } - //snprintf( szBuffer, sizeof( szBuffer ), "(%s)加入作战。", + //snprintf( szBuffer, sizeof( szBuffer ), "(%s)鍔犲叆浣滄垬銆", // CHAR_getUseName( charaindex ) ); //BATTLE_BroadCast( battleindex, szBuffer, CHAR_COLORYELLOW ); if( ( fd = getfdFromCharaIndex(charaindex) ) != -1 ){ @@ -1924,7 +1928,7 @@ int BATTLE_RescueEntry( int charaindex, int toindex ) BATTLE_Index2No( battleindex, charaindex ), BP_FLG_JOIN, CHAR_getInt(charaindex, CHAR_MP ) ); BATTLE_CommandSend( charaindex, szBuffer ); }else{ - snprintf( szBuffer, sizeof( szBuffer ), "无法参战。" ); + snprintf( szBuffer, sizeof( szBuffer ), "鏃犳硶鍙傛垬銆" ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORYELLOW); if( ( fd = getfdFromCharaIndex(charaindex) ) != -1 ){ lssproto_EN_send( fd, FALSE, BattleArray[battleindex].field_no ); @@ -1946,10 +1950,10 @@ BOOL BATTLE_RescueTry( int charaindex) fd = getfdFromCharaIndex( charaindex); if( fd == -1 ) return FALSE; -#if 1 // 修正利用参战重复加入战斗 Robin +#if 1 // 淇鍒╃敤鍙傛垬閲嶅鍔犲叆鎴樻枟 Robin if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE) { - CHAR_talkToCli( charaindex, -1, " 重复加入战斗! ", CHAR_COLORRED); - //print("\n 改封包!!重复加入战斗!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); + CHAR_talkToCli( charaindex, -1, " 閲嶅鍔犲叆鎴樻枟! ", CHAR_COLORRED); + //print("\n 鏀瑰皝鍖!!閲嶅鍔犲叆鎴樻枟!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); //lssproto_EN_send( fd, FALSE, 0 ); return FALSE; } @@ -2013,14 +2017,14 @@ BOOL BATTLE_RescueTry( int charaindex) } if( cnt == 0 ) { if( pfound == FALSE ) { - CHAR_talkToCli( charaindex, -1, "那里没有任何人。", + CHAR_talkToCli( charaindex, -1, "閭i噷娌℃湁浠讳綍浜恒", CHAR_COLORYELLOW); } lssproto_EN_send( fd, FALSE, 0 ); }else if( cnt == 1 ) { if( BATTLE_RescueEntry( charaindex, CONNECT_getBattlecharaindex(fd,0) ) ){ - CHAR_talkToCli( charaindex, -1, "无法参战。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鏃犳硶鍙傛垬銆", CHAR_COLORYELLOW); }else { result = TRUE; } @@ -2028,7 +2032,7 @@ BOOL BATTLE_RescueTry( int charaindex) int strlength; char msgbuf[1024]; char escapebuf[2048]; - strcpysafe( msgbuf,sizeof(msgbuf), "1\n加入谁的战斗呢?\n"); + strcpysafe( msgbuf,sizeof(msgbuf), "1\n鍔犲叆璋佺殑鎴樻枟鍛紵\n"); strlength = strlen( msgbuf); for( i = 0; CONNECT_getBattlecharaindex( fd,i ) != -1 @@ -2037,7 +2041,7 @@ BOOL BATTLE_RescueTry( int charaindex) char buf[256]; snprintf( buf, sizeof( buf),"%s\n", a); if( strlength + strlen( buf) > arraysizeof( msgbuf)){ - //print( "\nerr:%s:%d 视窗的讯息缓冲不足\n", + //print( "\nerr:%s:%d 瑙嗙獥鐨勮鎭紦鍐蹭笉瓒砛n", //__FILE__,__LINE__); break; } @@ -2072,7 +2076,7 @@ BOOL BATTLE_RescueParentTry( int charaindex, int pindex) result = TRUE; } if( result == FALSE ) { - CHAR_talkToCli( charaindex, -1, "无法参战。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鏃犳硶鍙傛垬銆", CHAR_COLORYELLOW); } return result; } @@ -2160,7 +2164,7 @@ int BATTLE_WatchNewEntry( iEntryMax = BATTLE_PLAYER_MAX; break; default: - //print( "不明(%s)(%d)\n", + //print( "涓嶆槑(%s)(%d)\n", //CHAR_getUseName( charaindex ), //CHAR_getInt( charaindex, CHAR_WHICHTYPE ) ); return BATTLE_ERR_TYPE; @@ -2267,7 +2271,7 @@ int BATTLE_WatchEntry( iRet = BATTLE_CreateForWatcher( charaindex, battleindex ); } if( iRet == 0 ){ - //snprintf( szBuffer, sizeof( szBuffer ), "(%s)开始观战。", + //snprintf( szBuffer, sizeof( szBuffer ), "(%s)寮濮嬭鎴樸", // CHAR_getUseName( charaindex ) ); //BATTLE_BroadCast( battleindex, szBuffer, CHAR_COLORYELLOW ); @@ -2280,7 +2284,7 @@ int BATTLE_WatchEntry( BATTLE_CommandSend( charaindex, szBuffer ); }else{ - snprintf( szBuffer, sizeof( szBuffer ), "无法观战。" ); + snprintf( szBuffer, sizeof( szBuffer ), "鏃犳硶瑙傛垬銆" ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORYELLOW); if( ( fd = getfdFromCharaIndex(charaindex) ) != -1 ){ @@ -2310,23 +2314,24 @@ BOOL BATTLE_WatchTry( int charaindex ) for( i = 0; i < CONNECT_WINDOWBUFSIZE ; i ++ ) { CONNECT_setBattlecharaindex( fd,i,-1); } + /* 鐩伄鍓嶃伄搴ф銈掑緱銈 */ CHAR_getCoordinationDir( CHAR_getInt( charaindex, CHAR_DIR ) , CHAR_getInt( charaindex , CHAR_X ), CHAR_getInt( charaindex , CHAR_Y ) , 1 , &x , &y ); cnt = 0; - /*愤坌及 及蟆及平乓仿毛潸 允月 */ + /*鑷垎銇洰銇墠銇偔銉c儵銈掑彇寰椼仚銈 */ for( object = MAP_getTopObj( CHAR_getInt( charaindex, CHAR_FLOOR),x,y) ; object ; object = NEXT_OBJECT(object ) ) { int toindex; int objindex = GET_OBJINDEX(object); - /* 平乓仿弁正□元扎卅中 */ + /* 銈儯銉┿偗銈裤兗銇樸們銇亜 */ if( OBJECT_getType( objindex) != OBJTYPE_CHARA) continue; toindex = OBJECT_getIndex( objindex); - /* 皿伊奶乩□元扎卅中 */ + /* 銉椼儸銈ゃ儰銉笺仒銈冦仾銇 */ if( CHAR_getInt( toindex, CHAR_WHICHTYPE) != CHAR_TYPEPLAYER #ifdef _PLAYER_NPC && CHAR_getInt( toindex, CHAR_WHICHTYPE) != CHAR_TYPEPLAYERNPC @@ -2334,7 +2339,7 @@ BOOL BATTLE_WatchTry( int charaindex ) // && CHAR_getInt( toindex, CHAR_WHICHTYPE) != CHAR_TYPEPLAYERNPC ) continue; pfound = TRUE; - /* 爵 匹卅中卅日戚尺 */ + /* 鎴﹂棙涓仹銇亜銇倝娆°伕 */ if( CHAR_getWorkInt( toindex, CHAR_WORKBATTLEMODE) == BATTLE_CHARMODE_NONE ){ continue; } @@ -2345,13 +2350,13 @@ BOOL BATTLE_WatchTry( int charaindex ) } if( cnt == 0 ) { if( pfound == FALSE ) { - CHAR_talkToCli( charaindex, -1, "那里没有任何人。", + CHAR_talkToCli( charaindex, -1, "閭i噷娌℃湁浠讳綍浜恒", CHAR_COLORYELLOW); } - // 分木手中卅仁化棋爵撩 + // 銇犮倢銈傘亜銇亸銇﹁Τ鎴﹀け鏁 lssproto_EN_send( fd, FALSE, 0 ); } - /* ㄠ谛仄井中卅中桦宁反巨件玄伉□今六月 */ + /* 锛戜汉銇椼亱銇勩仾銇勫牬鍚堛伅銈ㄣ兂銉堛儶銉笺仌銇涖倠 */ else if( cnt == 1 ) { if( BATTLE_WatchEntry( charaindex,CONNECT_getBattlecharaindex(fd,0)) ) { @@ -2360,15 +2365,15 @@ BOOL BATTLE_WatchTry( int charaindex ) result = TRUE; } } - /* 醒谛中凶日它奴件玉它毛请仄化 中宁歹六月 */ + /* 瑜囨暟浜恒亜銇熴倝銈︺偅銉炽儔銈︺倰鍑恒仐銇﹀晱銇勫悎銈忋仜銈 */ else if( cnt > 1 ) { int strlength; char msgbuf[1024]; char escapebuf[2048]; - strcpysafe( msgbuf,sizeof(msgbuf), "1\n观看谁的战斗呢?\n"); + strcpysafe( msgbuf,sizeof(msgbuf), "1\n瑙傜湅璋佺殑鎴樻枟鍛紵\n"); strlength = strlen( msgbuf); - /* 它奴件玉它及丢永本□斥综岳[ - * 爵 及平乓仿及域 + /* 銈︺偅銉炽儔銈︺伄銉°儍銈汇兗銈镐綔鎴愩 + * 鎴﹂棙涓伄銈儯銉┿伄涓瑕 */ for( i = 0; CONNECT_getBattlecharaindex( fd,i ) != -1 @@ -2380,7 +2385,7 @@ BOOL BATTLE_WatchTry( int charaindex ) char buf[256]; snprintf( buf, sizeof( buf),"%s\n", a); if( strlength + strlen( buf) > arraysizeof( msgbuf)){ - //print( "\nerr:%s:%d 视窗的讯息缓冲不足\n", + //print( "\nerr:%s:%d 瑙嗙獥鐨勮鎭紦鍐蹭笉瓒砛n", //__FILE__,__LINE__); break; } @@ -2407,9 +2412,9 @@ BOOL BATTLE_WatchTry( int charaindex ) #define MAX_DOUJYOUENEMY 64 -static int DoujyouEnemyTbl[10]; // ㄠㄟ手中日氏仃升 +static int DoujyouEnemyTbl[10]; // 锛戯紣銈傘亜銈夈倱銇戙仼 /*************************************************************** - * 桦乒□玉迕卞衬平乓仿潸 + * 閬撳牬銉€兗銉夌敤銇暤銈儯銉╁彇寰 ***************************************************************/ int *Doujyou_GetEnemy( int meindex, int charaindex ) { @@ -2422,7 +2427,7 @@ int *Doujyou_GetEnemy( int meindex, int charaindex ) NPC_Util_GetArgStr( meindex, argstr, sizeof( argstr)); - /* 赓渝祭 */ + /* 鍒濇湡鍖 */ for( i = 0; i < arraysizeof(WorkEnemyTbl); i ++ ) { WorkEnemyTbl[i] = -1; } @@ -2434,7 +2439,7 @@ int *Doujyou_GetEnemy( int meindex, int charaindex ) } insert = 0; - /* 娄醒卞踏中化丐月衬毛巨件玄伉□今六月 */ + /* 寮曟暟銇浉銇勩仸銇傘倠鏁点倰銈ㄣ兂銉堛儶銉笺仌銇涖倠 */ for( i = 0; i < MAX_DOUJYOUENEMY; i ++ ) { int curEnemy; char data[128]; @@ -2449,21 +2454,21 @@ int *Doujyou_GetEnemy( int meindex, int charaindex ) WorkEnemyTbl[insert] = curEnemy; insert ++; } - // 分木手中卅井匀凶日巨仿□ + // 銇犮倢銈傘亜銇亱銇c仧銈夈偍銉┿兗 if( insert <= 0 )return NULL; - // ㄠ 仿件母丞涩烂 + // 锛戝尮鐩儵銉炽儉銉犺ō瀹 DoujyouEnemyTbl[0] = WorkEnemyTbl[RAND( 0, insert-1 )]; if( NPC_Util_GetStrFromStrWithDelim( argstr, "enemypetno", buf, sizeof( buf)) == NULL ) { - // 中卅井匀凶日窒手踏井卅中 + // 銇勩仾銇嬨仯銇熴倝浣曘倐鏇搞亱銇亜 DoujyouEnemyTbl[1] = -1; }else{ insert = 0; - /* 娄醒卞踏中化丐月衬毛巨件玄伉□今六月 */ + /* 寮曟暟銇浉銇勩仸銇傘倠鏁点倰銈ㄣ兂銉堛儶銉笺仌銇涖倠 */ for( i = 0; i < MAX_DOUJYOUENEMY; i ++ ) { int curEnemy; char data[128]; @@ -2478,11 +2483,11 @@ int *Doujyou_GetEnemy( int meindex, int charaindex ) WorkEnemyTbl[insert] = curEnemy; insert ++; } - // ㄡ 仿件母丞涩烂 + // 锛掑尮鐩儵銉炽儉銉犺ō瀹 DoujyouEnemyTbl[1] = WorkEnemyTbl[RAND( 0, insert-1 )]; } - // ㄢ 仄 + // 锛撳尮鐩劇銇 DoujyouEnemyTbl[2] = -1; return DoujyouEnemyTbl; @@ -2501,7 +2506,7 @@ static int DoujyouWeponTbl[] = { ITEM_BOUNDTHROW, ITEM_BREAKTHROW, }; -int DoujyouRandomWeponSet( int charaindex ){ +int DoujyouRandomWeponSet( int charaindex ){ int wepon = -1, itemindex; int work = RAND( 0, arraysizeof( DoujyouWeponTbl ) - 1 ); switch( DoujyouWeponTbl[work] ){ @@ -2602,16 +2607,16 @@ int BATTLE_CreateVsEnemyNew( int charaindex, int npcindex, int *table ) // if(CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER) { #ifdef _STREET_VENDOR - // 摆摊中不可进入战斗 + // 鎽嗘憡涓笉鍙繘鍏ユ垬鏂 if( CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR) > -1) return BATTLE_ERR_END; #endif -#ifdef _ANGEL_SUMMON // 装备使者信物不遇敌 +#ifdef _ANGEL_SUMMON // 瑁呭浣胯呬俊鐗╀笉閬囨晫 if( CHAR_getWorkInt(charaindex,CHAR_WORKANGELMODE) == TRUE ) return BATTLE_ERR_END; #endif } if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) != BATTLE_CHARMODE_NONE ){ - CHAR_talkToCli( charaindex, -1, "二重遭遇。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浜岄噸閬亣銆", CHAR_COLORYELLOW ); return BATTLE_ERR_ALREADYBATTLE; } battleindex = BATTLE_CreateBattle(charaindex); @@ -2694,7 +2699,7 @@ int BATTLE_CreateVsEnemyNew( int charaindex, int npcindex, int *table ) if( 100466 <= work && work <= 100471 ){ CHAR_setWorkInt( enemyindex, CHAR_WORKBATTLEFLG, CHAR_getWorkInt( enemyindex, CHAR_WORKBATTLEFLG ) | CHAR_BATTLEFLG_ABIO ); - //print( "(%s)无生物\n", CHAR_getUseName( enemyindex ) ); + //print( "(%s)鏃犵敓鐗‐n", CHAR_getUseName( enemyindex ) ); } } @@ -2785,11 +2790,11 @@ int BATTLE_CreateVsEnemy( int charaindex, int mode, int npcindex ) if( CHAR_CHECKINDEX( charaindex ) == FALSE )return BATTLE_ERR_CHARAINDEX; #ifdef _STREET_VENDOR - // 摆摊中不可进入战斗 + // 鎽嗘憡涓笉鍙繘鍏ユ垬鏂 if( CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR) > -1) return BATTLE_ERR_END; #endif -#ifdef _ANGEL_SUMMON // 装备使者信物不遇敌 +#ifdef _ANGEL_SUMMON // 瑁呭浣胯呬俊鐗╀笉閬囨晫 if( CHAR_getWorkInt(charaindex,CHAR_WORKANGELMODE) == TRUE ) return BATTLE_ERR_END; #endif @@ -2803,7 +2808,7 @@ int BATTLE_CreateVsEnemy( int charaindex, int mode, int npcindex ) #endif if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) != BATTLE_CHARMODE_NONE ){ - CHAR_talkToCli( charaindex, -1, "二重遭遇。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浜岄噸閬亣銆", CHAR_COLORYELLOW ); return BATTLE_ERR_ALREADYBATTLE; } #ifdef _BATTLEMAP_CTRL @@ -2814,7 +2819,7 @@ int BATTLE_CreateVsEnemy( int charaindex, int mode, int npcindex ) time_t timep; struct tm *p; time(&timep); - p=localtime(&timep); /*取得当地时间*/ + p=localtime(&timep); /*鍙栧緱褰撳湴鏃堕棿*/ timep = mktime(p); if(timep-CHAR_getWorkInt(charaindex,CHAR_WORKBATTLETIME)<=getBattleTimeSec(j)){ return BATTLE_ERR_END; @@ -2914,7 +2919,7 @@ int BATTLE_CreateVsEnemy( int charaindex, int mode, int npcindex ) if( 100466 <= work && work <= 100471 ){ CHAR_setWorkInt( enemyindex, CHAR_WORKBATTLEFLG, CHAR_getWorkInt( enemyindex, CHAR_WORKBATTLEFLG ) | CHAR_BATTLEFLG_ABIO ); - //print( "(%s)无生物\n", CHAR_getUseName( enemyindex ) ); + //print( "(%s)鏃犵敓鐗‐n", CHAR_getUseName( enemyindex ) ); } } //andy_edit 2002/10/23 @@ -3011,13 +3016,13 @@ int BATTLE_CreateVsPlayer( int charaindex0, int charaindex1 ) if( CHAR_CHECKINDEX( charaindex1 ) == FALSE )return BATTLE_ERR_CHARAINDEX; if( CHAR_getWorkInt( charaindex0, CHAR_WORKBATTLEMODE ) != BATTLE_CHARMODE_NONE ){ - CHAR_talkToCli( charaindex0, -1, "二重遭遇。", CHAR_COLORYELLOW ); - CHAR_talkToCli( charaindex1, -1, "二重遭遇。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex0, -1, "浜岄噸閬亣銆", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex1, -1, "浜岄噸閬亣銆", CHAR_COLORYELLOW ); return BATTLE_ERR_ALREADYBATTLE; } if( CHAR_getWorkInt( charaindex1, CHAR_WORKBATTLEMODE ) != BATTLE_CHARMODE_NONE ){ - CHAR_talkToCli( charaindex0, -1, "二重遭遇。", CHAR_COLORYELLOW ); - CHAR_talkToCli( charaindex1, -1, "二重遭遇。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex0, -1, "浜岄噸閬亣銆", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex1, -1, "浜岄噸閬亣銆", CHAR_COLORYELLOW ); return BATTLE_ERR_ALREADYBATTLE; } @@ -3037,11 +3042,11 @@ int BATTLE_CreateVsPlayer( int charaindex0, int charaindex1 ) time_t timep; struct tm *p; time(&timep); - p=localtime(&timep); /*取得当地时间*/ + p=localtime(&timep); /*鍙栧緱褰撳湴鏃堕棿*/ timep = mktime(p); if(CHAR_getWorkInt(charaindex1,CHAR_WORKBALLTELENDTIME)+120>timep){ char bmsg[256]; - sprintf(bmsg,"对方正在连点保护中,剩余时间:%d秒,对方如果移动保护结束。",CHAR_getWorkInt(charaindex1,CHAR_WORKBALLTELENDTIME)+120-timep); + sprintf(bmsg,"瀵规柟姝e湪杩炵偣淇濇姢涓紝鍓╀綑鏃堕棿锛%d绉掞紝瀵规柟濡傛灉绉诲姩淇濇姢缁撴潫銆",CHAR_getWorkInt(charaindex1,CHAR_WORKBALLTELENDTIME)+120-timep); CHAR_talkToCli( charaindex0, -1, bmsg, CHAR_COLORYELLOW ); return BATTLE_ERR_ALREADYBATTLE; } @@ -3197,7 +3202,7 @@ BATTLE_CreateVsPlayer_End:; //********************************************************* // -// 棋爵迕田玄伙正旦弁毛馨笛[玄永皿及戚卞涩烂允月 +// 瑕虫垿鐢ㄣ儛銉堛儷銈裤偣銈倰杩藉姞銆傘儓銉冦儣銇銇ō瀹氥仚銈 // int BATTLE_WatchLink( int topbattleindex, int battleindex ) // @@ -3207,38 +3212,38 @@ int BATTLE_WatchLink( int topbattleindex, int battleindex ) BATTLE *pWork, *pTop; if( BATTLE_CHECKINDEX( battleindex ) == FALSE ){ - //fprint( "err:battle index 奇怪(%d)\n", battleindex ); + //fprint( "err:battle index 濂囨(%d)\n", battleindex ); return FALSE; } if( BATTLE_CHECKINDEX( topbattleindex ) == FALSE ){ - //fprint( "err:battle index 奇怪(%d)\n", topbattleindex ); + //fprint( "err:battle index 濂囨(%d)\n", topbattleindex ); return FALSE; } pTop = &BattleArray[topbattleindex]; if( BATTLE_CHECKADDRESS( pTop ) == FALSE ){ - //fprint( "err:battle address 奇怪(%p)\n", pTop ); + //fprint( "err:battle address 濂囨(%p)\n", pTop ); return FALSE; } - pWork = pTop->pNext; // 田永弁失永皿 + pWork = pTop->pNext; // 銉愩儍銈偄銉冦儣 if( pWork ){ if( BATTLE_CHECKADDRESS( pWork ) == FALSE ){ - //fprint( "err:battle address 奇怪(%p)\n", pWork ); + //fprint( "err:battle address 濂囨(%p)\n", pWork ); return FALSE; } } - // 愤坌毛蟆及戚卞允月 + // 鑷垎銈掑墠銇銇仚銈 pTop->pNext = &BattleArray[battleindex]; - // 愤坌及蟆田玄伙毛涩烂 + // 鑷垎銇墠銉愩儓銉倰瑷畾 BattleArray[battleindex].pBefore = pTop; - // 愤坌及戚田玄伙毛涩烂 + // 鑷垎銇銉愩儓銉倰瑷畾 BattleArray[battleindex].pNext = pWork; - // 戚及蟆反愤坌 + // 娆°伄鍓嶃伅鑷垎 if( pWork ){ pWork->pBefore = &BattleArray[battleindex]; } @@ -3247,7 +3252,7 @@ int BATTLE_WatchLink( int topbattleindex, int battleindex ) //********************************************************* // -// 棋爵迕田玄伙正旦弁毛夫午勾 仁 +// 瑕虫垿鐢ㄣ儛銉堛儷銈裤偣銈倰銇层仺銇ゆ姕銇 // int BATTLE_WatchUnLink( int battleindex ) // @@ -3257,31 +3262,31 @@ int BATTLE_WatchUnLink( int battleindex ) BATTLE *pTop; if( BATTLE_CHECKINDEX( battleindex ) == FALSE ){ - //fprint( "err:battle index 奇怪(%d)\n", battleindex ); + //fprint( "err:battle index 濂囨(%d)\n", battleindex ); return FALSE; } - // 愤坌毛蟆及田玄伙 + // 鑷垎銈掑墠銇儛銉堛儷 pTop = BattleArray[battleindex].pBefore; if( pTop ){ if( BATTLE_CHECKADDRESS( pTop ) == FALSE ){ - //fprint( "err:battle address 奇怪(%p)\n", pTop ); + //fprint( "err:battle address 濂囨(%p)\n", pTop ); }else{ - // 勾卅亢卅云仄 + // 銇ゃ仾銇庛仾銇娿仐 pTop->pNext = BattleArray[battleindex].pNext; } } if( BattleArray[battleindex].pNext ){ if( BATTLE_CHECKADDRESS( BattleArray[battleindex].pNext ) == FALSE ){ - //fprint( "err:battle address 奇怪(%p)\n", BattleArray[battleindex].pNext ); + //fprint( "err:battle address 濂囨(%p)\n", BattleArray[battleindex].pNext ); }else{ BattleArray[battleindex].pNext->pBefore = pTop; } } - // 愤坌及蟆田玄伙毛涩烂 + // 鑷垎銇墠銉愩儓銉倰瑷畾 BattleArray[battleindex].pBefore = NULL; - // 愤坌及戚田玄伙反 仄 + // 鑷垎銇銉愩儓銉伅鐒°仐 BattleArray[battleindex].pNext = NULL; return TRUE; @@ -3291,11 +3296,11 @@ int BATTLE_WatchUnLink( int battleindex ) //********************************************************* // -// 棋爵迕卞田玄伙正旦弁毛综岳允月 +// 瑕虫垿鐢ㄣ伀銉愩儓銉偪銈广偗銈掍綔鎴愩仚銈 // int BATTLE_CreateForWatcher( int charaindex, int topbattleindex ) // -// 曰袄 BATTLE_ERR +// 鎴汇倞鍊 BATTLE_ERR // //********************************************************* { @@ -3303,73 +3308,73 @@ int BATTLE_CreateForWatcher( int charaindex, int topbattleindex ) i, fd, iRet = 0; - // 由仿丢□正民尼永弁 + // 銉戙儵銉°兗銈裤儊銈с儍銈 if( CHAR_CHECKINDEX( charaindex ) == FALSE )return BATTLE_ERR_CHARAINDEX; if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) != BATTLE_CHARMODE_NONE ){ - CHAR_talkToCli( charaindex, -1, "二重遭遇。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浜岄噸閬亣銆", CHAR_COLORYELLOW ); return BATTLE_ERR_ALREADYBATTLE; } - // 允匹卞爵 匹卅中井 + // 銇欍仹銇垿闂樹腑銇с仾銇勩亱 if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) != 0 ){ return BATTLE_ERR_ALREADYBATTLE; } if(CHAR_getInt(charaindex,CHAR_FLOOR)==20000){ - CHAR_talkToCli( charaindex, -1, "PK比赛中,不允许场内观战。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "PK姣旇禌涓紝涓嶅厑璁稿満鍐呰鎴樸", CHAR_COLORYELLOW ); return BATTLE_ERR_ALREADYBATTLE; } - // 爵 正旦弁毛综岳允月 + // 鎴﹂棙銈裤偣銈倰浣滄垚銇欍倠 battleindex = BATTLE_CreateBattle(charaindex ); - if( battleindex < 0 )return BATTLE_ERR_NOTASK;// 正旦弁 苇匹五卅井匀凶巨仿□ + if( battleindex < 0 )return BATTLE_ERR_NOTASK;// 銈裤偣銈櫤瑕嬨仹銇嶃仾銇嬨仯銇熴偍銉┿兗 #ifdef _WAN_FIX CHAR_setWorkInt(charaindex,CHAR_WORKBATTLEPROTYPE,1); #endif - // 仇切日及讽采反皿伊奶乩□讽采匹丐月午烂聒允月[ + // 銇撱仭銈夈伄闄e柖銇儣銉偆銉ゃ兗闄e柖銇с亗銈嬨仺瀹氱京銇欍倠銆 BattleArray[battleindex].Side[0].type = BATTLE_S_TYPE_PLAYER; - // 轾仇丹础及讽采手皿伊奶乩□讽采匹丐月午烂聒允月[ + // 鍚戙亾銇嗗伌銇櫍鍠躲倐銉椼儸銈ゃ儰銉奸櫍鍠躲仹銇傘倠銇ㄥ畾缇┿仚銈嬨 BattleArray[battleindex].Side[1].type = BATTLE_S_TYPE_PLAYER; - // 伉□母□毛忡绣 + // 銉兗銉銉笺倰淇濆瓨 BattleArray[battleindex].leaderindex = charaindex; - // 爵 及正奶皿 + // 鎴﹂棙銇偪銈ゃ儣 BattleArray[battleindex].type = BATTLE_TYPE_WATCH; BattleArray[battleindex].mode = BATTLE_MODE_WATCHBC; - // 田玄伙白奴□伙玉 寞 + // 銉愩儓銉儠銈c兗銉儔鐣彿 field_no = BattleArray[battleindex].field_no = BattleArray[topbattleindex].field_no; BattleArray[battleindex].turn = BattleArray[topbattleindex].turn; - // 伉件弁今六月 + // 銉兂銈仌銇涖倠 if( BATTLE_WatchLink( topbattleindex, battleindex ) == FALSE ){ //fprint( "err:battle link error(%d),(%d)\n", //topbattleindex, battleindex ); - // 巨仿□质 匹及 GOTO + // 銈ㄣ儵銉煎嚘鐞嗐仹銇 GOTO goto BATTLE_CreateForWatcher_End; } - // 由□ 奴仍午巨件玄伉□ + // 銉戙兗銉嗐偅銇斻仺銈ㄣ兂銉堛儶銉 iRet = BATTLE_WatchPartyNewEntry( charaindex, battleindex, 0 ); if( iRet ){ - // 巨仿□质 匹及 GOTO + // 銈ㄣ儵銉煎嚘鐞嗐仹銇 GOTO goto BATTLE_CreateForWatcher_End; } -// 巨仿□及桦宁反允什卞戊戊卞 月 +// 銈ㄣ儵銉笺伄鍫村悎銇仚銇愩伀銈炽偝銇潵銈 BATTLE_CreateForWatcher_End:; - if( iRet ){ // 巨仿□互丐匀凶日正旦弁 滋 - // 蝈够 仃月 + if( iRet ){ // 銈ㄣ儵銉笺亴銇傘仯銇熴倝銈裤偣銈粌妫 + // 鍏ㄥ摗鎶溿亼銈 BATTLE_ExitAll( battleindex ); - //{爵 正旦弁绰轮 + //鎴﹂棙銈裤偣銈墛闄 BATTLE_DeleteBattle( battleindex ); fd = getfdFromCharaIndex( charaindex ); if( fd != -1 )lssproto_EN_send( fd, FALSE, field_no ); }else{ fd = getfdFromCharaIndex( charaindex ); - /* 巨件市它件玄岳 毛项尹月 */ + /* 銈ㄣ兂銈偊銉炽儓鎴愬姛銈掓暀銇堛倠 */ if( fd != -1 )lssproto_EN_send( fd, BattleArray[battleindex].type, field_no ); - /* 切禾□术霜月 */ + /* 绔嬨仭銉濄兗銈洪併倠 */ if( CHAR_getWorkInt( charaindex, CHAR_WORKACTION) != -1 ) { CHAR_sendWatchEvent( CHAR_getWorkInt( charaindex, CHAR_WORKOBJINDEX), @@ -3377,22 +3382,22 @@ BATTLE_CreateForWatcher_End:; NULL, 0, FALSE); CHAR_setWorkInt( charaindex, CHAR_WORKACTION, -1); } - /* 爵 失奶戊件 憎CA霜耨 */ + /* 鎴﹂棙銈€偆銈炽兂琛ㄧずCA閫佷俊 */ CHAR_sendBattleWatch( CHAR_getWorkInt( charaindex, CHAR_WORKOBJINDEX ), ON); - // 醮棉卞手项尹月 + // 浠查枔銇倐鏁欍亪銈 for( i = 1; i < CHAR_PARTYMAX; i ++ ){ pindex = CHAR_getWorkInt( charaindex, i + CHAR_WORKPARTYINDEX1 ); if( CHAR_CHECKINDEX( pindex ) == FALSE )continue; - // 切扎氏午巨件市它件玄匹五化卅中卅日霜日卅中 - // FINAL 分匀凶日蟆及爵 苇化中月 + // 銇°們銈撱仺銈ㄣ兂銈偊銉炽儓銇с亶銇︺仾銇勩仾銈夐併倝銇亜 + // FINAL 銇犮仯銇熴倝鍓嶃伄鎴﹂棙瑕嬨仸銇勩倠 if( CHAR_getWorkInt( pindex, CHAR_WORKBATTLEMODE ) == BATTLE_CHARMODE_FINAL ) continue; fd = getfdFromCharaIndex(pindex); - /* 巨件市它件玄岳 */ + /* 銈ㄣ兂銈偊銉炽儓鎴愬姛 */ if( fd != -1 )lssproto_EN_send( fd, BattleArray[battleindex].type, field_no ); - /* 切禾□术霜月 */ + /* 绔嬨仭銉濄兗銈洪併倠 */ if( CHAR_getWorkInt( pindex, CHAR_WORKACTION) != -1 ) { CHAR_sendWatchEvent( CHAR_getWorkInt( pindex, CHAR_WORKOBJINDEX), @@ -3400,11 +3405,11 @@ BATTLE_CreateForWatcher_End:; NULL, 0, FALSE); CHAR_setWorkInt( pindex, CHAR_WORKACTION, -1); } - /* 爵 失奶戊件 憎CA霜耨 */ + /* 鎴﹂棙銈€偆銈炽兂琛ㄧずCA閫佷俊 */ CHAR_sendBattleWatch( CHAR_getWorkInt( charaindex, CHAR_WORKOBJINDEX ), ON); } /* - print( "以(%s)为领队与敌军交手。", + print( "浠(%s)涓洪闃熶笌鏁屽啗浜ゆ墜銆", CHAR_getChar( charaindex, CHAR_NAME ) ); */ } @@ -3419,7 +3424,7 @@ BATTLE_CreateForWatcher_End:; /*------------------------------------------------------------ - * 爵 毛 蝇允月 + * 鎴﹂棙銈掍腑鏂仚銈 ------------------------------------------------------------*/ void BATTLE_WatchStop( int charaindex ) { @@ -3428,13 +3433,13 @@ void BATTLE_WatchStop( int charaindex ) battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return; - // 平乓仿弁正互中凶日 仃今六月 + // 銈儯銉┿偗銈裤亴銇勩仧銈夋姕銇戙仌銇涖倠 BATTLE_Exit( charaindex, battleindex ); - // 由□ 奴 仃月 + // 銉戙兗銉嗐偅鎶溿亼銈 CHAR_DischargePartyNoMsg( charaindex ); CHAR_talkToCli( charaindex, -1, - "战斗中止。", CHAR_COLORYELLOW ); + "鎴樻枟涓銆", CHAR_COLORYELLOW ); lssproto_B_send( getfdFromCharaIndex( charaindex ), "BU" ); @@ -3450,7 +3455,7 @@ void BATTLE_WatchStop( int charaindex ) //************************************************************* // -// 正□件备潘热诸匹 蛹仄凶由仿丢□正毛俅孺仄化中仁 +// 姣庛偪銉笺兂鍚勭ó鍛銇у娓涖仐銇熴儜銉┿儭銉笺偪銈掓姂鍒躲仐銇︺亜銇 // void BATTLE_TurnParam( int charaindex, @@ -3465,7 +3470,7 @@ void BATTLE_TurnParam( int modparam, fixparam, lastparam; if( fixkind == -1 ){ - fixparam = 0; // 葭互 中桦宁反ㄟ + fixparam = 0; // 鍏冦亴鐒°亜鍫村悎銇紣 }else{ fixparam = CHAR_getWorkInt( charaindex, fixkind ); } @@ -3475,14 +3480,15 @@ void BATTLE_TurnParam( lastparam = CHAR_getWorkInt( charaindex, last ); } modparam = CHAR_getWorkInt( charaindex, mod ); - // 仇仇匹 ≈ 午 及 毛苇化} - // 及袄毛俅孺仄化中仁 + // 銇撱亾銇э辑锛激锛嬶棘锛★汲锛淬仺锛︼缉锛搞伄姣旂巼銈掕銇︺ + // 锛集锛ゃ伄鍊ゃ倰鎶戝埗銇椼仸銇勩亸 + + // 浠娿伅 MODPARAM 銈掞紥锛愶紖娓涖仐銇︺亜銇 - // 漆反 MODPARAM 毛ㄡㄟ⊙蛹仄化中仁 modparam *= 0.8; CHAR_setWorkInt( charaindex, mod, modparam ); - // 卞笛尹月 + // 锛肌锛筹即銇姞銇堛倠 if( last != -1 ){ CHAR_setWorkInt( charaindex, @@ -3498,9 +3504,9 @@ void BATTLE_AttReverse( int charaindex ) //ttom start because the second had this if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEFLG ) & CHAR_BATTLEFLG_REVERSE ){ CHAR_setWorkInt(charaindex,CHAR_WORKBATTLEREVERSE,1); - // 鳖仄化月卅日戚尺 + // 鍙嶈虎銇椼仸銈嬨仾銈夋銇 }else{ - // 鳖仄化卅中及匹伉正□件 + // 鍙嶈虎銇椼仸銇亜銇仹銉偪銉笺兂 return; } //ttom end @@ -3542,29 +3548,29 @@ void BATTLE_PreCommandSeq( int battleindex ) CHAR_complianceParameter( charaindex ); BATTLE_TurnParam( charaindex, - CHAR_WORKFIXSTR, // 猾 + CHAR_WORKFIXSTR, // 鏀诲嚮鍔 CHAR_WORKMODATTACK, CHAR_WORKATTACKPOWER ); BATTLE_TurnParam( charaindex, - CHAR_WORKFIXTOUGH, // 潮 + CHAR_WORKFIXTOUGH, // 闃插尽 CHAR_WORKMODDEFENCE, CHAR_WORKDEFENCEPOWER ); BATTLE_TurnParam( charaindex, - CHAR_WORKFIXDEX, // 豳镀今 + CHAR_WORKFIXDEX, // 鏁忔嵎 CHAR_WORKMODQUICK, CHAR_WORKQUICK ); if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER ){ BATTLE_TurnParam( charaindex, -1, - CHAR_WORKMODCHARM, // + CHAR_WORKMODCHARM, // 榄呭姏 CHAR_WORKFIXCHARM ); } BATTLE_TurnParam( charaindex, - -1, // 凯 + -1, // 鎹曡幏鐜 CHAR_WORKMODCHARM, -1 ); @@ -3578,16 +3584,16 @@ void BATTLE_PreCommandSeq( int battleindex ) //************************************************** // -// 棋爵及桦宁及戊穴件玉谨切尺 月凛及域 及 木 +// 瑕虫垿銇牬鍚堛伄銈炽優銉炽儔寰呫仭銇告埢銈嬫檪銇竴閫c伄娴併倢 // void BATTLE_PreWatchWaitSeq( int battleindex ) // // //************************************************** { - // 仇及凛鳔匹凛对忡绣 + // 銇撱伄鏅傜偣銇ф檪鍒讳繚瀛 BattleArray[battleindex].timer = NowTime.tv_sec; - // 蝈够及乒□玉毛戊穴件玉 蟆卞允月 + // 鍏ㄥ摗銇儮銉笺儔銈掋偝銉炪兂銉夊叆鍔涘墠銇仚銈 BATTLE_AllCharaWatchWaitSet( battleindex ); } static int BATTLE_Init( int battleindex ) @@ -3619,15 +3625,15 @@ int BATTLE_CountEntry( BATTLE_ENTRY *pEntry; int cnt = 0; - // 由仿丢□正民尼永弁 + // 銉戙儵銉°兗銈裤儊銈с儍銈 if( BATTLE_CHECKSIDE( side ) == FALSE )return -BATTLE_ERR_PARAM; if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return -BATTLE_ERR_BATTLEINDEX; - // 巨件玄伉□ + // 銈ㄣ兂銉堛儶銉奸厤鍒 pEntry = BattleArray[battleindex].Side[side].Entry; for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ - if( pEntry[i].charaindex != -1 ){ // 平乓仿互中凶日醒尹月 + if( pEntry[i].charaindex != -1 ){ // 銈儯銉┿亴銇勩仧銈夋暟銇堛倠 cnt ++; } } @@ -3640,7 +3646,7 @@ static BOOL BATTLE_CommandWait( int battleindex, int side) BATTLE_ENTRY *pEntry; BOOL iRet = TRUE; BOOL TimeOut = FALSE; - if( BATTLE_CHECKSIDE( side ) == FALSE )return TRUE;//检查值是否在合法 围 + if( BATTLE_CHECKSIDE( side ) == FALSE )return TRUE;//妫鏌ュ兼槸鍚﹀湪鍚堟硶 鍥 if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return TRUE; if( BattleArray[battleindex].Side[side].type == BATTLE_S_TYPE_ENEMY ) return TRUE; pEntry = BattleArray[battleindex].Side[side].Entry; @@ -3693,9 +3699,9 @@ static BOOL BATTLE_CommandWait( int battleindex, int side) //charaindex, CHAR_getUseName( charaindex), //CHAR_getChar( charaindex, CHAR_CDKEY) ); - CHAR_talkToCli( charaindex, -1, "超过时间未下指令,强迫离开战斗!", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "瓒呰繃鏃堕棿鏈笅鎸囦护锛屽己杩寮鎴樻枟锛", CHAR_COLORYELLOW); - CHAR_DischargeParty( charaindex, 0);//解散团队 + CHAR_DischargeParty( charaindex, 0);//瑙f暎鍥㈤槦 CHAR_setWorkInt(charaindex, CHAR_WORKFMPKFLAG, -1); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_COMPELESCAPE ); @@ -3717,7 +3723,7 @@ static BOOL BATTLE_CommandWait( int battleindex, int side) if( BeOk > 0 ){ #ifdef _BATTLECOMMAND_TIME if( BattleArray[ battleindex].PartTime <= 0 ){ - //如果战役中有任一人执行指令, 则延迟时间设为120秒 + //濡傛灉鎴樺焦涓湁浠讳竴浜烘墽琛屾寚浠, 鍒欏欢杩熸椂闂磋涓120绉 int battletimeout = getBattleTimtOut(); if(battletimeout == 0) battletimeout = 120; BattleArray[battleindex].PartTime = (int)time(NULL) + battletimeout; @@ -3728,7 +3734,7 @@ static BOOL BATTLE_CommandWait( int battleindex, int side) } -#ifdef _ITEM_ADDEXP //vincent 经验提升 +#ifdef _ITEM_ADDEXP //vincent 缁忛獙鎻愬崌 #ifdef _ITEM_ADDEQUIPEXP int BATTLE_GetExp( int charaindex, int midx ) #else @@ -3803,23 +3809,23 @@ int BATTLE_GetExp( int charaindex ) #ifdef _ITEM_ADDEQUIPEXP if( CHAR_CHECKINDEX( midx ) ){ for( i = 0 ; i < CHAR_EQUIPPLACENUM ; i ++ ){ - int id = CHAR_getItemIndex(midx,i);//道具id + int id = CHAR_getItemIndex(midx,i);//閬撳叿id if( ITEM_CHECKINDEX(id) ){ char *arg,*P; - arg = ITEM_getChar(id, ITEM_ARGUMENT );//道具参数 + arg = ITEM_getChar(id, ITEM_ARGUMENT );//閬撳叿鍙傛暟 if( (P = strstr( arg, "EXPUP" )) ){ - if( (P = strstr( arg, "人" )) ){//只对人有效 + if( (P = strstr( arg, "浜" )) ){//鍙浜烘湁鏁 if( CHAR_getInt( charaindex, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER ){ addexp += getexp*atoi(P+=2)*0.01; itemaddexp += itemgetexp*atoi(P+=2)*0.01; } } - else if( (P = strstr( arg, "宠" )) ){//只对宠有效 + else if( (P = strstr( arg, "瀹" )) ){//鍙瀹犳湁鏁 if( CHAR_getInt( charaindex, CHAR_WHICHTYPE) == CHAR_TYPEPET && (CHAR_getInt( midx, CHAR_RIDEPET) != charaindex ) ) addexp += getexp*atoi(P+=2)*0.01; } - else if( (P = strstr( arg, "骑" )) ){//只对骑宠有效 + else if( (P = strstr( arg, "楠" )) ){//鍙楠戝疇鏈夋晥 if( CHAR_getInt( charaindex, CHAR_WHICHTYPE) == CHAR_TYPEPET && (CHAR_getInt( midx, CHAR_RIDEPET) == charaindex ) ) addexp += getexp*atoi(P+=2)*0.01; @@ -3865,7 +3871,7 @@ int BATTLE_GetExp( int charaindex ) && CHAR_getInt( midx, CHAR_VIPRIDE) > 0) addexp = addexp * 2; #endif - CHAR_setWorkInt( charaindex, CHAR_WORKGETEXP, addexp );//回存CHAR_WORKGETEXP + CHAR_setWorkInt( charaindex, CHAR_WORKGETEXP, addexp );//鍥炲瓨CHAR_WORKGETEXP CHAR_AddMaxExp( charaindex, addexp); @@ -3900,48 +3906,48 @@ int BATTLE_DpCalc( int battleindex ) looseside = 1 - winside; if( winside != -1 && winside != 1 )return BATTLE_ERR_PARAM; - // 宁煌袄赓渝祭 + // 鍚堣▓鍊ゅ垵鏈熷寲 dpall = 0; - // 仃凶 井日 毛畴丹 + // 璨犮亼銇熸柟銇嬨倝锛わ及銈掑オ銇 pLooseEntry = BattleArray[battleindex].Side[looseside].Entry; for( i = 0 ; i < BATTLE_ENTRY_MAX; i ++ ){ charaindex = pLooseEntry[i].charaindex; - // 皿伊奶乩□动陆反饬 仄 + // 銉椼儸銈ゃ儰銉间互澶栥伅鑸堝懗鐒°仐 if( CHAR_CHECKINDEX( charaindex ) == FALSE )continue; if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) != CHAR_TYPEPLAYER )continue; - // ㄠㄟ坌及ㄠ手日尹月 + // 锛戯紣鍒嗐伄锛戙倐銈夈亪銈 dpadd = CHAR_getInt( charaindex, CHAR_DUELPOINT ) * DUELPOINT_RATE; - // 仃凶 卞反 毛穴奶瓜旦涩烂 + // 璨犮亼銇熸柟銇伅锛わ及銈掋優銈ゃ儕銈硅ō瀹 CHAR_setWorkInt( charaindex, CHAR_WORKGETEXP, CHAR_getWorkInt( charaindex, CHAR_WORKGETEXP) - dpadd ); - // 宁煌袄卞笛遥 + // 鍚堣▓鍊ゃ伀鍔犵畻 dpall += dpadd; } - // 今日卞 仆凶曰仄凶谛迕及 毛笛遥 + // 銇曘倝銇冦亽銇熴倞銇椼仧浜虹敤銇激锛般倰鍔犵畻 dpall += BattleArray[battleindex].Side[winside].common_dp; pWinEntry = BattleArray[battleindex].Side[winside].Entry; for( num = 0,i = 0 ; i < BATTLE_ENTRY_MAX; i ++ ){ charaindex = pWinEntry[i].charaindex; - // 皿伊奶乩□动陆反饬 仄 + // 銉椼儸銈ゃ儰銉间互澶栥伅鑸堝懗鐒°仐 if( CHAR_CHECKINDEX( charaindex ) == FALSE )continue; if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) != CHAR_TYPEPLAYER )continue; num++; } - // 卅兮井 匀凶幻丹卞簿手中卅中 + // 銇仠銇嬪嫕銇c仧銇汇亞銇銈傘亜銇亜 if( num <= 0 )return BATTLE_ERR_BATTLEINDEX; dpadd = dpall / num; - if( dpadd <= 0 )dpadd = 1; // 斓匹手ㄠ反芨尹月 + if( dpadd <= 0 )dpadd = 1; // 鏈浣庛仹銈傦紤銇笌銇堛倠 for( num = 0,i = 0 ; i < BATTLE_ENTRY_MAX; i ++ ){ charaindex = pWinEntry[i].charaindex; - // 皿伊奶乩□动陆反饬 仄 + // 銉椼儸銈ゃ儰銉间互澶栥伅鑸堝懗鐒°仐 if( CHAR_CHECKINDEX( charaindex ) == FALSE )continue; if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) != CHAR_TYPEPLAYER )continue; - // 匀凶 卞反 毛涩烂 + // 鍕濄仯銇熸柟銇伅锛わ及銈掕ō瀹 CHAR_setWorkInt( charaindex, CHAR_WORKGETEXP, CHAR_getWorkInt( charaindex, CHAR_WORKGETEXP) + dpadd ); } @@ -3949,7 +3955,7 @@ int BATTLE_DpCalc( int battleindex ) return 0; } -//#define RS_LIST_MAX 4 // 凛卞窒谛爵 瑛绊霜月井 +//#define RS_LIST_MAX 4 // 鍚屾檪銇綍浜烘垿闂樼祼鏋滈併倠銇 #define RS_LIST_MAX 5 typedef struct{ int num; @@ -3958,9 +3964,9 @@ typedef struct{ }RS_LIST; int BATTLE_GetDuelPoint( - int battleindex, // 爵 奶件犯永弁旦 - int side, // 扔奶玉 ㄟ ㄠ - int num // 愤坌反 及窒 及平乓仿井 + int battleindex, // 鎴﹂棙銈ゃ兂銉囥儍銈偣 + int side, // 銈点偆銉夛紙锛愶綖锛戯級 + int num // 鑷垎銇厤鍒椼伄浣曠暘鐩伄銈儯銉┿亱 ) { char szBuffer[1024]=""; @@ -3986,12 +3992,12 @@ int BATTLE_GetDuelPoint( } dpadd = CHAR_getWorkInt( charaindex, CHAR_WORKGETEXP ); if( dpadd == 0 ){ - dpadd = 0; // 仇及桦宁反ㄟ + dpadd = 0; // 銇撱伄鍫村悎銇紣 }else if( dpadd < 0 ){ - dpadd = min( -1, dpadd ); // 剂卅仁午手ㄠ反手日丹 + dpadd = min( -1, dpadd ); // 灏戙仾銇忋仺銈傦紤銇倐銈夈亞 }else{ - dpadd = max( 1, dpadd ); // 剂卅仁午手ㄠ反手日丹 + dpadd = max( 1, dpadd ); // 灏戙仾銇忋仺銈傦紤銇倐銈夈亞 } if(playfloor==11111|| playfloor==22222|| @@ -4000,9 +4006,9 @@ int BATTLE_GetDuelPoint( { int fd = getfdFromCharaIndex( charaindex); char* id = CHAR_getChar( charaindex, CHAR_CDKEY); - dpnow = sasql_vippoint(id,0,0) + dpadd; //PK会员点 - dpnow = max( dpnow, 0 ); //计算现在会员点 - sasql_vippoint( id, dpadd, 1 ); //写入会员点数据 + dpnow = sasql_vippoint(id,0,0) + dpadd; //PK浼氬憳鐐 + dpnow = max( dpnow, 0 ); //璁$畻鐜板湪浼氬憳鐐 + sasql_vippoint( id, dpadd, 1 ); //鍐欏叆浼氬憳鐐规暟鎹 if(dpnow 0 ){ if( getBattleDebugMsg( ) != 0 ){ snprintf( szBuffer, sizeof(szBuffer), - "(%s) 升级至 %d", + "(%s) 鍗囩骇鑷 %d", CHAR_getUseName( petindex ), CHAR_getInt( petindex, CHAR_LV ) ); @@ -4223,7 +4229,7 @@ int BATTLE_GetExpGold( }else if( CHAR_findEmptyItemBox( charaindex ) >= 0 ){ int ret = CHAR_addItemSpecificItemIndex(charaindex,itemindex); if( 0 <= ret && ret < CHAR_EQUIPPLACENUM ){ - //print( "itemget err: 在这里不能取得item(%s)(%d)(%s)\n", + //print( "itemget err: 鍦ㄨ繖閲屼笉鑳藉彇寰梚tem(%s)(%d)(%s)\n", //CHAR_getUseName( charaindex ), //ret, //ITEM_getAppropriateName(itemindex) @@ -4240,7 +4246,7 @@ int BATTLE_GetExpGold( if( ItemGet == TRUE ){ if( getBattleDebugMsg( ) != 0 ){ snprintf( szBuffer, sizeof(szBuffer), - "拾获(%s)", + "鎷捐幏(%s)", ITEM_getAppropriateName(itemindex) ); BATTLE_talkToCli( charaindex, szBuffer, CHAR_COLORYELLOW ); } @@ -4248,12 +4254,12 @@ int BATTLE_GetExpGold( // LogItem( // CHAR_getChar( charaindex, CHAR_NAME ), // CHAR_getChar( charaindex, CHAR_CDKEY ), -//#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +//#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О // itemindex, //#else -// ITEM_getInt( itemindex, ITEM_ID ), /* 失奶 丞 寞 */ +// ITEM_getInt( itemindex, ITEM_ID ), /* 澶卞ザ 涓 瀵 */ //#endif -// "BattleGet(战斗後所得的道具)", +// "BattleGet(鎴樻枟寰屾墍寰楃殑閬撳叿)", // CHAR_getInt( charaindex,CHAR_FLOOR), // CHAR_getInt( charaindex,CHAR_X ), // CHAR_getInt( charaindex,CHAR_Y ), @@ -4407,17 +4413,17 @@ static int BATTLE_Finish( int battleindex ) } if(CHAR_CHECKINDEX(winindex) != FALSE){ CHAR_setInt(winindex,CHAR_AUTOPK,CHAR_getInt(winindex,CHAR_AUTOPK)+1); - sprintf(token,"[乱舞战报]:%s 战胜 —— %s 战败", winname, lostname); + sprintf(token,"[涔辫垶鎴樻姤]锛%s 鎴樿儨 鈥斺 %s 鎴樿触", winname, lostname); autopkcnt++; int autopkvigor = getAutoPkVigorPkNum()*CHAR_getInt(lostindex,CHAR_AUTOPK)+getAutoPkVigorPkCnt()*autopkcnt; CHAR_setInt(lostindex,CHAR_VIGOR,CHAR_getInt(lostindex,CHAR_VIGOR)+autopkvigor); - sprintf(token2,"[比赛战果]:「%s」击杀点数 %d 生存点数 %d 获得活力%d",lostname,CHAR_getInt(lostindex,CHAR_AUTOPK),autopkcnt,autopkvigor); + sprintf(token2,"[姣旇禌鎴樻灉]锛氥%s銆嶅嚮鏉鐐规暟 %d 鐢熷瓨鐐规暟 %d 鑾峰緱娲诲姏%d",lostname,CHAR_getInt(lostindex,CHAR_AUTOPK),autopkcnt,autopkvigor); }else{ - sprintf(token,"[乱舞战报]:%s 逃跑 —— %s 逃跑", winname, lostname); + sprintf(token,"[涔辫垶鎴樻姤]锛%s 閫冭窇 鈥斺 %s 閫冭窇", winname, lostname); autopkcnt++; int autopkvigor = getAutoPkVigorPkNum()*CHAR_getInt(lostindex,CHAR_AUTOPK)+getAutoPkVigorPkCnt()*autopkcnt; CHAR_setInt(lostindex,CHAR_VIGOR,CHAR_getInt(lostindex,CHAR_VIGOR)+autopkvigor); - sprintf(token2,"[比赛战果]:「%s」击杀点数 %d 生存点数 %d 获得活力%d",lostname,CHAR_getInt(lostindex,CHAR_AUTOPK),autopkcnt,autopkvigor); + sprintf(token2,"[姣旇禌鎴樻灉]锛氥%s銆嶅嚮鏉鐐规暟 %d 鐢熷瓨鐐规暟 %d 鑾峰緱娲诲姏%d",lostname,CHAR_getInt(lostindex,CHAR_AUTOPK),autopkcnt,autopkvigor); } for(i=0;ipNext ){ if( BATTLE_CHECKADDRESS( pBattle ) == FALSE ){ - //fprint( "err:battle address 奇怪(%p)\n", pBattle ); + //fprint( "err:battle address 濂囨(%p)\n", pBattle ); break; } for( i = BATTLE_ENTRY_MAX-1; i >= 0 ; i -- ){ @@ -4566,7 +4572,7 @@ static int BATTLE_Finish( int battleindex ) pBattle = BattleArray[battleindex].pNext; for( ;pBattle; pBattle = pBattle->pNext ){ if( BATTLE_CHECKADDRESS( pBattle ) == FALSE ){ - //fprint( "err:battle address 奇怪(%p)\n", pBattle ); + //fprint( "err:battle address 濂囨(%p)\n", pBattle ); break; } BATTLE_DeleteBattle( pBattle->battleindex ); @@ -4645,16 +4651,16 @@ int BATTLE_DefaultAttacker( int battleindex, int side ) //********************************************************* // -// 爵 丐月扔奶玉及戏五酸曰皿伊奶乩□卞 毛笛遥 +//鎴﹂棙涓亗銈嬨偟銈ゃ儔銇敓銇嶆畫銈娿儣銉偆銉ゃ兗銇激锛般倰鍔犵畻 // int BATTLE_AddDpAlive( - int battleindex, // 田玄伙奶件犯永弁旦 - int side, // 扔奶玉( 0 or 1 ) + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int side, // 銈点偆銉( 0 or 1 ) int dp ) // -// 曰袄“{戏五酸匀化中月皿伊奶乩□及醒 -//{{{{{ 爵 互垫歹木化中卅仃木壬 及袄 +// 鎴汇倞鍊わ細銆鐢熴亶娈嬨仯銇︺亜銈嬨儣銉偆銉ゃ兗銇暟 +// 鎴﹂棙銇岃銈忋倢銇︺亜銇亼銈屻伆 璨犮伄鍊 // //********************************************************* { @@ -4662,19 +4668,19 @@ int BATTLE_AddDpAlive( BATTLE_ENTRY *pEntry; int cnt = 0; - // 由仿丢□正民尼永弁 + // 銉戙儵銉°兗銈裤儊銈с儍銈 if( BATTLE_CHECKSIDE( side ) == FALSE )return -BATTLE_ERR_PARAM; if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return -BATTLE_ERR_BATTLEINDEX; - // 巨件玄伉□ + // 銈ㄣ兂銉堛儶銉奸厤鍒 pEntry = BattleArray[battleindex].Side[side].Entry; for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ charaindex = pEntry[i].charaindex; if( CHAR_CHECKINDEX( charaindex ) == FALSE ) continue; - // 矢永玄反仇及端楮溢卅中 + // 銉氥儍銉堛伅銇撱伄闅涢枹淇傘仾銇 if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ) continue; - // 戏五化中引允[笛遥 + // 鐢熴亶銇︺亜銇俱仚銆傚姞绠 if( CHAR_getFlg( charaindex, CHAR_ISDIE ) == FALSE ){ CHAR_setWorkInt( charaindex, CHAR_WORKGETEXP, CHAR_getWorkInt( charaindex, CHAR_WORKGETEXP) + dp ); @@ -4687,15 +4693,15 @@ int BATTLE_AddDpAlive( #if 1 //********************************************************* // -// 爵 }皿伊奶乩□互戏五酸匀化中月井譬屯月 +// 鎴﹂棙涓併儣銉偆銉ゃ兗銇岀敓銇嶆畫銇c仸銇勩倠銇嬭銇广倠 // int BATTLE_CountAlive( - int battleindex, // 田玄伙奶件犯永弁旦 - int side // 扔奶玉( 0 or 1 ) + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int side // 銈点偆銉( 0 or 1 ) ) // -// 曰袄“{戏五酸匀化中月皿伊奶乩□及醒 -//{{{{{ 爵 互垫歹木化中卅仃木壬 及袄 +// 鎴汇倞鍊わ細銆鐢熴亶娈嬨仯銇︺亜銈嬨儣銉偆銉ゃ兗銇暟 +//銆銆銆銆銆 鎴﹂棙銇岃銈忋倢銇︺亜銇亼銈屻伆 璨犮伄鍊 // //********************************************************* { @@ -4703,19 +4709,19 @@ int BATTLE_CountAlive( BATTLE_ENTRY *pEntry; int cnt = 0; - // 由仿丢□正民尼永弁 + // 銉戙儵銉°兗銈裤儊銈с儍銈 if( BATTLE_CHECKSIDE( side ) == FALSE )return -BATTLE_ERR_PARAM; if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return -BATTLE_ERR_BATTLEINDEX; - // 巨件玄伉□ + // 銈ㄣ兂銉堛儶銉奸厤鍒 pEntry = BattleArray[battleindex].Side[side].Entry; for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ charaindex = pEntry[i].charaindex; if( CHAR_CHECKINDEX( charaindex ) == FALSE ) continue; - // 矢永玄反仇及端楮溢卅中 + // 銉氥儍銉堛伅銇撱伄闅涢枹淇傘仾銇 if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ) continue; - // 戏五化中引允[ + // 鐢熴亶銇︺亜銇俱仚銆 if( CHAR_getFlg( charaindex, CHAR_ISDIE ) == FALSE ){ cnt ++; } @@ -4728,16 +4734,16 @@ int BATTLE_CountAlive( //********************************************************* // -// 爵 }辅爵仄凶化皿伊奶乩□及心互戏五化中月橇谪井毛民尼永弁 +// 鎴﹂棙涓佸弬鎴︺仐銇熴仸銉椼儸銈ゃ儰銉笺伄銇裤亴鐢熴亶銇︺亜銈嬬姸鎱嬨亱銈掋儊銈с儍銈 // int BATTLE_OnlyRescue( - int battleindex, // 田玄伙奶件犯永弁旦 - int side, // 扔奶玉( 0 or 1 ) + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int side, // 銈点偆銉( 0 or 1 ) int *pOnlyFlg ) // -// 曰袄“{戏五酸匀化中月皿伊奶乩□及醒 -//{{{{{ 爵 互垫歹木化中卅仃木壬 及袄 +// 鎴汇倞鍊わ細銆鐢熴亶娈嬨仯銇︺亜銈嬨儣銉偆銉ゃ兗銇暟 +//銆銆銆銆銆 鎴﹂棙銇岃銈忋倢銇︺亜銇亼銈屻伆 璨犮伄鍊 // //********************************************************* { @@ -4747,11 +4753,11 @@ int BATTLE_OnlyRescue( (*pOnlyFlg) = 0; - // 由仿丢□正民尼永弁 + // 銉戙儵銉°兗銈裤儊銈с儍銈 if( BATTLE_CHECKSIDE( side ) == FALSE )return -BATTLE_ERR_PARAM; if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return -BATTLE_ERR_BATTLEINDEX; - // 巨件玄伉□ + // 銈ㄣ兂銉堛儶銉奸厤鍒 pEntry = BattleArray[battleindex].Side[side].Entry; for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ @@ -4759,12 +4765,12 @@ int BATTLE_OnlyRescue( if( CHAR_CHECKINDEX( charaindex ) == FALSE ){ continue; } - // 矢永玄反仇及端楮溢卅中 + // 銉氥儍銉堛伅銇撱伄闅涢枹淇傘仾銇 if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ) continue; - // 戏五化中引允[ + // 鐢熴亶銇︺亜銇俱仚銆 if( CHAR_getFlg( charaindex, CHAR_ISDIE ) == FALSE ){ cnt ++; - // 戏五化中月支勾反辅爵 井" + // 鐢熴亶銇︺亜銈嬨倓銇ゃ伅鍙傛垿鐩村緦銇嬶紵 if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) == BATTLE_CHARMODE_RESCUE ){ }else{ OnlyRescue = 0; @@ -4775,12 +4781,12 @@ int BATTLE_OnlyRescue( #endif } - // 戏五化中月支勾互中化公中勾反辅爵 分匀凶日 + // 鐢熴亶銇︺亜銈嬨倓銇ゃ亴銇勩仸銇濄亜銇ゃ伅鍙傛垿鐩村緦銇犮仯銇熴倝 if( cnt > 0 && OnlyRescue ){ - // 白仿弘毛 化月 + // 銉曘儵銈般倰绔嬨仸銈 (*pOnlyFlg) = 1; }else{ - // 切互匀凶日ㄟ卞允月 + // 銇°亴銇c仧銈夛紣銇仚銈 (*pOnlyFlg) = 0; } @@ -4798,7 +4804,7 @@ static BOOL BATTLE_TimeOutCheck( int battleindex ) }else{ return FALSE; } - //BATTLE_BroadCast( battleindex, "server时间已到。", CHAR_COLORYELLOW ); + //BATTLE_BroadCast( battleindex, "server鏃堕棿宸插埌銆", CHAR_COLORYELLOW ); for( j = 0; j < 2; j ++ ){ pEntry = pBattle->Side[j].Entry; for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ @@ -4813,7 +4819,7 @@ static BOOL BATTLE_TimeOutCheck( int battleindex ) BATTLE_Exit( charaindex, battleindex ); CHAR_DischargePartyNoMsg( charaindex ); CHAR_talkToCli( charaindex, -1, - "时间到,结束战斗。", CHAR_COLORYELLOW ); + "鏃堕棿鍒帮紝缁撴潫鎴樻枟銆", CHAR_COLORYELLOW ); BATTLE_CommandSend( charaindex, "BU" ); } } @@ -4866,7 +4872,7 @@ int BATTLE_WatchBC( int battleindex ) int BATTLE_WatchPre( int battleindex ) { //DebugMainFunction="BATTLE_WatchPre"; - // 戊穴件玉谨切尺 月凛及域 及 木 + // 銈炽優銉炽儔寰呫仭銇告埢銈嬫檪銇竴閫c伄娴併倢 BATTLE_PreWatchWaitSeq( battleindex ); BattleArray[battleindex].mode = BATTLE_MODE_WATCHWAIT; return 0; @@ -4895,7 +4901,7 @@ static int BATTLE_Command( int battleindex ) //DebugMainFunction="BATTLE_Command_4"; for( ; pWatchBattle ; pWatchBattle = pWatchBattle->pNext ){ if( BATTLE_CHECKADDRESS( pWatchBattle ) == FALSE ){ - //fprint( "err:观战battle address错误(%p)\n", pWatchBattle ); + //fprint( "err:瑙傛垬battle address閿欒(%p)\n", pWatchBattle ); break; } @@ -4926,13 +4932,13 @@ static int BATTLE_Command( int battleindex ) #endif //DebugMainFunction="BATTLE_Command_8"; - pBattle->turn ++;//自己回合数增加 + pBattle->turn ++;//鑷繁鍥炲悎鏁板鍔 //DebugMainFunction="BATTLE_Command_9"; BATTLE_ai_all( battleindex, 0, 0); //DebugMainFunction="BATTLE_Command_10"; BATTLE_ai_all( battleindex, 1, 0); //DebugMainFunction="BATTLE_Command_11"; - BATTLE_Battling( battleindex );//处理战斗 + BATTLE_Battling( battleindex );//澶勭悊鎴樻枟 //DebugMainFunction="BATTLE_Command_12"; pBattle->Side[0].flg &= ~BSIDE_FLG_SURPRISE; //DebugMainFunction="BATTLE_Command_13"; @@ -4974,30 +4980,30 @@ int BATTLE_Loop( void ) { int i, cnt = 0; rand(); - for( i = 0; i < BATTLE_battlenum; i ++ ){//最多战斗场数 + for( i = 0; i < BATTLE_battlenum; i ++ ){//鏈澶氭垬鏂楀満鏁 if( BattleArray[i].use == FALSE )continue; - if( BattleArray[i].type == BATTLE_TYPE_WATCH ){//若是观战模式 + if( BattleArray[i].type == BATTLE_TYPE_WATCH ){//鑻ユ槸瑙傛垬妯″紡 if( BATTLE_CountAlive( i, 0 ) == 0 ){ BATTLE_FinishSet( i ); } } switch( BattleArray[i].mode ){ - case BATTLE_MODE_NONE://未战斗 + case BATTLE_MODE_NONE://鏈垬鏂 break; - case BATTLE_MODE_INIT://战斗初始化 + case BATTLE_MODE_INIT://鎴樻枟鍒濆鍖 BATTLE_Init( i ); break; - case BATTLE_MODE_BATTLE://Server内部战斗中 + case BATTLE_MODE_BATTLE://Server鍐呴儴鎴樻枟涓 BATTLE_Command( i ); break; - case BATTLE_MODE_FINISH://战斗结束 + case BATTLE_MODE_FINISH://鎴樻枟缁撴潫 BATTLE_Finish( i ); break; - case BATTLE_MODE_STOP://战斗中断 + case BATTLE_MODE_STOP://鎴樻枟涓柇 BATTLE_Stop( i ); break; - case BATTLE_MODE_WATCHBC://观战中... + case BATTLE_MODE_WATCHBC://瑙傛垬涓... BATTLE_WatchBC( i ); break; @@ -5026,11 +5032,11 @@ int BATTLE_Loop( void ) typedef struct { - int charaindex; // 平乓仿弁正奶件犯永弁旦 - int side; // 扔奶玉 - int dex; // 豳镀今 - int num; // 巨件玄伉□ 寞 - int combo; // 宁 猾允月谛棉井" + int charaindex; // 銈儯銉┿偗銈裤偆銉炽儑銉冦偗銈 + int side; // 銈点偆銉 + int dex; // 绱犳棭銇 + int num; // 銈ㄣ兂銉堛儶銉肩暘鍙 + int combo; // 鍚堜綋鏀绘拑銇欍倠浜洪枔銇嬶紵 #ifdef _EQUIT_SEQUENCE int sequence; #endif @@ -5041,9 +5047,9 @@ typedef int (*FUNC)( const void *, const void * ); //************************************************************ // -// 爵 及豳镀今 胜楮醒 +// 鎴﹂棙銇礌鏃┿仌姣旇純闁㈡暟 // -// 豳镀今反袄互 五中 互穸木化中月[嫦赐末□玄匹丐月[ +// 绱犳棭銇曘伅鍊ゃ亴澶с亶銇勬柟銇屽劒銈屻仸銇勩倠銆傞檷闋嗐偨銉笺儓銇с亗銈嬨 // static int EsCmp( const BATTLE_CHARLIST *pC1, @@ -5112,13 +5118,13 @@ static void EntrySort( BATTLE_CHARLIST *EntryList, int listsize) //************************************************************ // -// 豳镀今毛煌遥允月[ +// 绱犳棭銇曘倰瑷堢畻銇欍倠銆 // static int BATTLE_DexCalc( int charaindex ) // -// 曰袄 豳镀今 +// 鎴汇倞鍊 绱犳棭銇 // //************************************************************ { @@ -5126,27 +5132,27 @@ static int BATTLE_DexCalc( int work, COM; int petindex = BATTLE_getRidePet( charaindex ); - // 戊穴件玉潸 + // 銈炽優銉炽儔鍙栧緱 COM = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ); -#ifdef _PETSKILL_BECOMEFOX // 攻击顺序中的敏捷降下20% +#ifdef _PETSKILL_BECOMEFOX // 鏀诲嚮椤哄簭涓殑鏁忔嵎闄嶄笅20% if( CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; - dex = work *0.8;//敏降20% + dex = work *0.8;//鏁忛檷20% } #endif #ifdef _PROFESSION_ADDSKILL if( CHAR_getWorkInt( charaindex, CHAR_WORKFEAR ) > 0 ){ work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; - dex = work*0.8;//敏降20% + dex = work*0.8;//鏁忛檷20% } #endif - // 骚橘 猾及桦宁 + // 閫氬父鏀绘拑銇牬鍚 switch( COM ){ -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - case BATTLE_COM_S_BLOOD: // 嗜血成性 - case BATTLE_COM_S_BLOOD_WORMS: // 嗜血蛊 - case BATTLE_COM_S_SIGN: // 一针见血 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + case BATTLE_COM_S_BLOOD: // 鍡滆鎴愭 + case BATTLE_COM_S_BLOOD_WORMS: // 鍡滆铔 + case BATTLE_COM_S_SIGN: // 涓閽堣琛 #endif #ifdef _BATTLE_NEWPOWER @@ -5162,58 +5168,58 @@ static int BATTLE_DexCalc( #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - case BATTLE_COM_S_FIRE_ENCLOSE: // 火附体 - case BATTLE_COM_S_ICE_ENCLOSE: // 冰附体 - case BATTLE_COM_S_THUNDER_ENCLOSE: // 雷附体 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + case BATTLE_COM_S_FIRE_ENCLOSE: // 鐏檮浣 + case BATTLE_COM_S_ICE_ENCLOSE: // 鍐伴檮浣 + case BATTLE_COM_S_THUNDER_ENCLOSE: // 闆烽檮浣 work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; dex = work - RAND( work * 0.3, work * 0.5 ); break; - case BATTLE_COM_S_VOLCANO_SPRINGS:// 火山泉 - case BATTLE_COM_S_SUMMON_THUNDER: // 召雷术 - case BATTLE_COM_S_ICE_ARROW: // 冰箭术 + case BATTLE_COM_S_VOLCANO_SPRINGS:// 鐏北娉 + case BATTLE_COM_S_SUMMON_THUNDER: // 鍙浄鏈 + case BATTLE_COM_S_ICE_ARROW: // 鍐扮鏈 work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; dex = work - RAND( 0, work * 0.2 ); break; - case BATTLE_COM_S_CURRENT: // 电流术 - case BATTLE_COM_S_FIRE_BALL:// 火星球 - case BATTLE_COM_S_ICE_CRACK: // 冰爆术 + case BATTLE_COM_S_CURRENT: // 鐢垫祦鏈 + case BATTLE_COM_S_FIRE_BALL:// 鐏槦鐞 + case BATTLE_COM_S_ICE_CRACK: // 鍐扮垎鏈 work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; dex = work - RAND( 0, work * 0.5 ); break; - case BATTLE_COM_S_FIRE_SPEAR:// 火龙枪 - case BATTLE_COM_S_STORM: // 暴风雨 - case BATTLE_COM_S_ICE_MIRROR: // 冰镜术 - case BATTLE_COM_S_ENCLOSE: // 附身术 - case BATTLE_COM_S_TRANSPOSE: // 移形换位 + case BATTLE_COM_S_FIRE_SPEAR:// 鐏緳鏋 + case BATTLE_COM_S_STORM: // 鏆撮闆 + case BATTLE_COM_S_ICE_MIRROR: // 鍐伴暅鏈 + case BATTLE_COM_S_ENCLOSE: // 闄勮韩鏈 + case BATTLE_COM_S_TRANSPOSE: // 绉诲舰鎹綅 work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; dex = work - RAND( work * 0.2, work * 0.5 ); break; - case BATTLE_COM_S_DOOM: // 世界末日 + case BATTLE_COM_S_DOOM: // 涓栫晫鏈棩 work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; dex = work - RAND( 0.3, work * 0.6 ); break; #endif -#ifdef _SKILL_SPEEDY_ATT //vincent 宠技:疾速攻击 +#ifdef _SKILL_SPEEDY_ATT //vincent 瀹犳妧:鐤鹃熸敾鍑 case BATTLE_COM_S_SPEEDYATTACK: work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; - dex = work + work*0.3;//敏加30% + dex = work + work*0.3;//鏁忓姞30% break; #endif -#ifdef _PETSKILL_DAMAGETOHP //宠技:暗月狂狼(嗜血技的变体) +#ifdef _PETSKILL_DAMAGETOHP //瀹犳妧:鏆楁湀鐙傜嫾(鍡滆鎶鐨勫彉浣) case BATTLE_COM_S_DAMAGETOHP2: work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; - dex = work + work*0.2;//敏加20% + dex = work + work*0.2;//鏁忓姞20% break; #endif - case BATTLE_COM_ITEM: // 失奶 丞毛银丹桦宁 + case BATTLE_COM_ITEM: // 銈€偆銉嗐儬銈掍娇銇嗗牬鍚 work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; dex = work - RAND( 0, work * 0.3 ) + work * 0.15; break; - default: // 骚橘 爵丹卅升) + default: // 閫氬父锛堟垿銇嗐仾銇) // Robin 0727 ride pet if( petindex == -1 ) work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; @@ -5227,9 +5233,9 @@ static int BATTLE_DexCalc( break; } - // 穴奶瓜旦卞卅匀化仄引匀凶日" - //if( dex <= 0 )dex = 1; //官方负敏情况 - if( dex<=0 ) dex = RAND(1,10); //修改后是如果负敏,就在1-5之间随机取 + // 銉炪偆銉娿偣銇仾銇c仸銇椼伨銇c仧銈夛紵 + //if( dex <= 0 )dex = 1; //瀹樻柟璐熸晱鎯呭喌 + if( dex<=0 ) dex = RAND(1,5); //淇敼鍚庢槸濡傛灉璐熸晱锛屽氨鍦1-5涔嬮棿闅忔満鍙 return dex; } @@ -5240,7 +5246,7 @@ static int BATTLE_DexCalc( //************************************************************* // -// 戊件申生□扑亦件互丐月井升丹井民尼永弁 +// 銈炽兂銉撱儘銉笺偡銉с兂銇屻亗銈嬨亱銇┿亞銇嬨儊銈с儍銈 // static void ComboCheck( BATTLE_CHARLIST *pEntryList, @@ -5255,12 +5261,12 @@ static void ComboCheck( com, enemy, side, - oldside = -3, // 赝癫卞丐曰尹卅中袄 - oldenemy = -3, // 赝癫卞丐曰尹卅中袄 + oldside = -3, // 閬╁綋銇亗銈娿亪銇亜鍊 + oldenemy = -3, // 閬╁綋銇亗銈娿亪銇亜鍊 armtype, move, per, - ComboId = 1, // 戊件示 + ComboId = 1, // 銈炽兂銉滐缉锛 start = -1; for( i = 0; i < entrynum; i ++ ){ @@ -5270,12 +5276,12 @@ static void ComboCheck( side = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLESIDE ); armtype = 0; if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEENEMY ){ - per = 20; // 衬反ㄡㄟ⊙ + per = 20; //鏁点伅锛掞紣锛 }else{ - per = 50; // 愤坌反ㄤㄟ⊙ + per = 50; // 鑷垎銇紩锛愶紖 } - // 互ㄟ井 仃卅井匀凶日 + // 锛及銇岋紣銇嬪嫊銇戙仾銇嬨仯銇熴倝 if( CHAR_getInt( charaindex, CHAR_HP ) <= 0 || BATTLE_CanMoveCheck( charaindex ) == FALSE ){ @@ -5284,45 +5290,45 @@ static void ComboCheck( move = 1; } - // 猾础及 湛毛潸 [髑仆烟卅日母丢 - // 髑仆烟卅日母丢 + // 鏀绘拑鍋淬伄姝﹀櫒銈掑彇寰椼傛姇銇掔郴銇倝銉銉 + // 鎶曘亽绯汇仾銈夈儉銉 if( BATTLE_IsThrowWepon( CHAR_getItemIndex( charaindex, CHAR_ARM ) ) == TRUE ){ armtype = 1; } - pEntryList[i].combo = 0; // 赓渝祭 + pEntryList[i].combo = 0; // 鍒濇湡鍖 - if( start != -1 ){ // 宁 猾 - if( com != BATTLE_COM_ATTACK // 猾戊穴件玉匹卅中 - || enemy != oldenemy // 谎匀化月衬互 元匹卅中 - || side != oldside // 扔奶玉互啜丹 - || armtype == 1 // 髑仆烟匹丐月 - || move == 0 // 仃卅中 + if( start != -1 ){ // 鍚堜綋鏀绘拑鐧哄嫊涓 + if( com != BATTLE_COM_ATTACK // 鏀绘拑銈炽優銉炽儔銇с仾銇 + || enemy != oldenemy // 鐙欍仯銇︺倠鏁点亴鍚屻仒銇с仾銇 + || side != oldside // 銈点偆銉夈亴閬曘亞 + || armtype == 1 // 鎶曘亽绯汇仹銇傘倠 + || move == 0 // 鍕曘亼銇亜 ){ - start = -1; // 蔽 - oldside = side; // 扔奶玉创尹月 + start = -1; // 绲備簡 + oldside = side; // 銈点偆銉夎銇堛倠 }else{ - // 戊件示涩烂 + // 銈炽兂銉滆ō瀹 CHAR_setWorkInt( pEntryList[i].charaindex, CHAR_WORKBATTLECOM1,BATTLE_COM_COMBO ); pEntryList[i].combo = ComboId; - // 赓及谛手域杀涩烂 + // 鏈鍒濄伄浜恒倐涓蹇滆ō瀹 CHAR_setWorkInt( pEntryList[start].charaindex, CHAR_WORKBATTLECOM1,BATTLE_COM_COMBO ); pEntryList[start].combo = ComboId; } } - if( start == -1 ){// 宁 猾 仄化中卅中桦宁 + if( start == -1 ){// 鍚堜綋鏀绘拑鐧哄嫊銇椼仸銇勩仾銇勫牬鍚 if( com == BATTLE_COM_ATTACK - && armtype != 1 // 髑仆烟匹卅中 - && move == 1 // 仃月 + && armtype != 1 // 鎶曘亽绯汇仹銇亜 + && move == 1 // 鍕曘亼銈 && RAND( 1, 100 ) <= per - ){ // 骚橘 猾 匹丐月 + ){ // 閫氬父鏀绘拑涓仹銇傘倠 start = i; - oldenemy = enemy; // 谎匀化月衬毛创尹月 - oldside = side; // 扔奶玉创尹月 + oldenemy = enemy; // 鐙欍仯銇︺倠鏁点倰瑕氥亪銈 + oldside = side; // 銈点偆銉夎銇堛倠 ComboId ++; } } @@ -5333,17 +5339,17 @@ static void ComboCheck( //************************************************************* // -// 戊件申生□扑亦件互 癫卞匹五月井民尼永弁 -//{戚及谛互戊件示匹五月橇谪元扎卅井匀凶日 FALSE +// 銈炽兂銉撱儘銉笺偡銉с兂銇屾湰褰撱伀銇с亶銈嬨亱銉併偋銉冦偗 +//銆娆°伄浜恒亴銈炽兂銉溿仹銇嶃倠鐘舵厠銇樸們銇亱銇c仧銈 FALSE // static BOOL ComboCheck2( - BATTLE_CHARLIST *pEntryList, // 巨件玄伉□伉旦玄 - int nownum, // 蜇箕及赐 - int entrynum // 巨件玄伉□ 醒 + BATTLE_CHARLIST *pEntryList, // 銈ㄣ兂銉堛儶銉笺儶銈广儓 + int nownum, // 鐝惧湪銇爢鐣 + int entrynum // 銈ㄣ兂銉堛儶銉兼渶澶ф暟 ) // -// 戊件示匹五月 TRUE -// 匹五卅中 FALSE +// 銈炽兂銉溿仹銇嶃倠 TRUE +// 銇с亶銇亜 FALSE // //************************************************************* { @@ -5353,26 +5359,26 @@ static BOOL ComboCheck2( ComboId, charaindex; - // 戊件示 忡绣 + // 銈炽兂銉滐缉锛や繚瀛 ComboId = pEntryList[nownum].combo; charaindex = pEntryList[nownum].charaindex; - // 愤坌互镝擦蘸撩 仄化中凶日撩 + // 鑷垎銇屽繝瑾犲害澶辨晽銇椼仸銇勩仧銈夊け鏁 if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEFLG) & CHAR_BATTLEFLG_AIBAD ) { -// print( "由於忠诚度不足使用必杀技失败( %s )\n",CHAR_getUseName( charaindex ) ); +// print( "鐢辨柤蹇犺瘹搴︿笉瓒充娇鐢ㄥ繀鏉鎶澶辫触( %s )\n",CHAR_getUseName( charaindex ) ); return FALSE; } - // 戚及谛互戊件示卞辅笛匹五月井割 + // 娆°伄浜恒亴銈炽兂銉溿伀鍙傚姞銇с亶銈嬨亱纰鸿獚 for( i = nownum+1; i < entrynum; i ++ ){ charaindex = pEntryList[i].charaindex; - // 戊件示 啜丹午镀仁手撩 + //銈炽兂銉滐缉锛ら仌銇嗐仺鏃┿亸銈傚け鏁 if( ComboId != pEntryList[i].combo )break; - // 爵 卞辅笛仄化中卅井匀凶日戚尺 + //鎴﹂棙銇弬鍔犮仐銇︺亜銇亱銇c仧銈夋銇 if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE) == 0 ) break; if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE) == BATTLE_CHARMODE_FINAL ) break; @@ -5386,7 +5392,7 @@ static BOOL ComboCheck2( } /* if( iRet == FALSE ){ - print( "必杀技失败( %s )\n", + print( "蹇呮潃鎶澶辫触( %s )\n", CHAR_getUseName( pEntryList[nownum].charaindex ) ); } */ @@ -5417,7 +5423,7 @@ void BATTLE_UltimateExtra( if( BattleArray[battleindex].type != BATTLE_TYPE_P_vs_P ){ int levelflg = 1; //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)被击飞至远方。", + // "(%s)琚嚮椋炶嚦杩滄柟銆", // CHAR_getUseName( enemyindex ) ); if( CHAR_getInt( enemyindex, CHAR_LV ) <= 10 ){ levelflg = 2; @@ -5448,56 +5454,56 @@ void BATTLE_UltimateExtra( } }else - // 矢永玄卅日 + // 銉氥儍銉堛仾銈 if( CHAR_getInt( enemyindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ){ int levelflg = 1; int playerindex = CHAR_getWorkInt( enemyindex, CHAR_WORKPLAYERINDEX ); - // 伊矛伙互斓中桦宁反 蛹月 坌 + // 銉儥銉亴浣庛亜鍫村悎銇瓍鍔涙笡銈嬪崐鍒 if( CHAR_getInt( playerindex, CHAR_LV ) <= 10 ){ levelflg = 2; } //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)被击飞。", + // "(%s)琚嚮椋炪", // CHAR_getUseName( enemyindex ) ); - // 潜谛及犯白巧伙玄井日反内允 + // 涓讳汉銇儑銉曘偐銉儓銇嬨倝銇仛銇 CHAR_setInt( playerindex, CHAR_DEFAULTPET, -1 ); - // 犯亘巨伙动陆反镝擦艘毛票仆月 + // 銉囥儱銈ㄣ儷浠ュ銇繝瑾犲績銈掍笅銇掋倠 if( BattleArray[battleindex].type != BATTLE_TYPE_P_vs_P ){ - // 伉旦弁及 中田玄伙井"丐月卅日镝擦 毛票仆月 + // 銉偣銈伄鐒°亜銉愩儓銉亱锛熴亗銈嬨仾銈夊繝瑾犻瓍鍔涖倰涓嬨亽銈 if( BattleArray[battleindex].norisk == 0 ){; CHAR_PetAddVariableAi( enemyindex, AI_FIX_PETULTIMATE/levelflg ); } - // 潜谛及矢永玄韶氏分荚醒毛市它件玄允月 + // 涓讳汉銇儦銉冦儓姝汇倱銇犲洖鏁般倰銈偊銉炽儓銇欍倠 CHAR_setInt( playerindex, CHAR_DEADPETCOUNT, CHAR_getInt( playerindex, CHAR_DEADPETCOUNT ) + 1 ); } /* - // 矢永玄互中凶日爵 井日厄仃今六月[ + // 銉氥儍銉堛亴銇勩仧銈夋垿闂樸亱銈夈伂銇戙仌銇涖倠銆 BATTLE_PetDefaultExit( enemyindex, battleindex ); */ - // 愤坌手 仃月 + // 鑷垎銈傛姕銇戙倠 BATTLE_Exit( enemyindex, battleindex ); }else{ int flg; - // 公木动陆匹失伙 奴丢永玄韶 + // 銇濄倢浠ュ銇с偄銉儐銈c儭銉冦儓姝 //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)被击飞。", + // "(%s)琚嚮椋炪", // CHAR_getUseName( enemyindex ) ); - // 衬平乓仿反扔□田□卞酸仄化云仁 + // 鏁点偔銉c儵銇偟銉笺儛銉笺伀娈嬨仐銇︺亰銇 // BATTLE_Exit( enemyindex, battleindex ); flg = CHAR_getWorkInt( enemyindex, CHAR_WORKBATTLEFLG ); - flg |= CHAR_BATTLEFLG_ULTIMATE; // 失伙 奴丢永玄熬仃凶 + flg |= CHAR_BATTLEFLG_ULTIMATE; // 銈€儷銉嗐偅銉°儍銉堝彈銇戙仧 CHAR_setWorkInt( enemyindex, CHAR_WORKBATTLEFLG, flg ); BATTLE_Exit( enemyindex, battleindex ); } - // 须 煤 + // 瀹熸硜涓稒 //BATTLE_BroadCast( battleindex, szBuffer, CHAR_COLORYELLOW ); } @@ -5505,12 +5511,12 @@ void BATTLE_UltimateExtra( //************************************************************* // -// 骚橘卞竣濮今六凶桦宁及 溃质 +// 閫氬父銇皸绲躲仌銇涖仧鍫村悎銇壒娈婂嚘鐞 // void BATTLE_NormalDeadExtra( - int battleindex, // 爵 奶件犯永弁旦 - int charaindex, // 诮仄凶平乓仿及奶件犯永弁旦 - int enemyindex // 诮今木凶平乓仿及奶件犯永弁旦 + int battleindex, // 鎴﹂棙銈ゃ兂銉囥儍銈偣 + int charaindex, // 娈恒仐銇熴偔銉c儵銇偆銉炽儑銉冦偗銈 + int enemyindex // 娈恒仌銈屻仧銈儯銉┿伄銈ゃ兂銉囥儍銈偣 ) // // @@ -5521,33 +5527,34 @@ void BATTLE_NormalDeadExtra( szBuffer[0] = 0; - // 皿伊奶乩□匹 - // 衬午及爵 分匀凶日 - // 伉旦弁及 中田玄伙卅日 + // 銉椼儸銈ゃ儰銉笺仹 + // 鏁点仺銇垿闂樸仩銇c仧銈 + // 銉偣銈伄鐒°亜銉愩儓銉仾銈 + if( CHAR_getInt( enemyindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER && BattleArray[battleindex].type == BATTLE_TYPE_P_vs_E && BattleArray[battleindex].norisk == 0 ){ int levelflg = 1; - // 愤坌及 毛票仆月 - // 伊矛伙ㄠㄟ动票及谛反 坌分仃票互月 + // 鑷垎銇瓍鍔涖倰涓嬨亽銈 + // 銉儥銉紤锛愪互涓嬨伄浜恒伅榄呭姏鍗婂垎銇犮亼涓嬨亴銈 if( CHAR_getInt( enemyindex, CHAR_LV ) <= 10 ){ levelflg = 2; } CHAR_AddCharm( enemyindex, CH_FIX_PLAYERDEAD/levelflg ); - // 爵 卞辅笛仄化中凶矢永玄及 毛票仆月 + // 鎴﹂棙銇弬鍔犮仐銇︺亜銇熴儦銉冦儓銇瓍鍔涖倰涓嬨亽銈 pno = CHAR_getInt( enemyindex, CHAR_DEFAULTPET ); if( 0 <= pno && pno < CHAR_MAXPETHAVE ){ - // 矢永玄及奶件犯永弁旦 + // 銉氥儍銉堛伄銈ゃ兂銉囥儍銈偣 pindex = CHAR_getCharPet( enemyindex, pno ); if( CHAR_CHECKINDEX( pindex ) == TRUE ){ CHAR_PetAddVariableAi( pindex, AI_FIX_PLAYERDEAD/levelflg ); } } - // 韶氏分平乓仿及戊穴件玉反侉木月 + // 姝汇倱銇犮偔銉c儵銇偝銉炪兂銉夈伅蹇樸倢銈 CHAR_setWorkInt( enemyindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); }else - // 矢永玄卅日 + // 銉氥儍銉堛仾銈 if( CHAR_getInt( enemyindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET && BattleArray[battleindex].type == BATTLE_TYPE_P_vs_E && BattleArray[battleindex].norisk == 0 @@ -5555,25 +5562,25 @@ void BATTLE_NormalDeadExtra( int levelflg = 1; int playerindex = CHAR_getWorkInt( enemyindex, CHAR_WORKPLAYERINDEX ); - // 潜谛及伊矛伙ㄠㄟ动票及谛反 坌分仃票互月 + // 涓讳汉銇儸銉欍儷锛戯紣浠ヤ笅銇汉銇瓍鍔涘崐鍒嗐仩銇戜笅銇屻倠 if( CHAR_getInt( playerindex, CHAR_LV ) <= 10 ){ levelflg = 2; } - // 愤坌及镝擦艘毛票仆月 + // 鑷垎銇繝瑾犲績銈掍笅銇掋倠 CHAR_PetAddVariableAi( enemyindex, AI_FIX_PETDEAD/levelflg ); - // 潜谛及矢永玄韶氏分荚醒毛市它件玄允月 + // 涓讳汉銇儦銉冦儓姝汇倱銇犲洖鏁般倰銈偊銉炽儓銇欍倠 CHAR_setInt( playerindex, CHAR_DEADPETCOUNT, CHAR_getInt( playerindex, CHAR_DEADPETCOUNT ) + 1 ); - // 韶氏分平乓仿及戊穴件玉反侉木月 + // 姝汇倱銇犮偔銉c儵銇偝銉炪兂銉夈伅蹇樸倢銈 CHAR_setWorkInt( enemyindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); }else{ - // 公木动陆 + // 銇濄倢浠ュ } //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)失去意识。", + // "(%s)澶卞幓鎰忚瘑銆", // CHAR_getUseName( enemyindex ) ); //BATTLE_BroadCast( battleindex, szBuffer, CHAR_COLORYELLOW ); @@ -5639,24 +5646,24 @@ void BATTLE_EscapeDpSend( int battleindex, int charaindex ) // Nuke 0725: Avoid too large number if ((battleindex<0)||(battleindex>getBattlenum())) return; - // 动陆反 仃月 + // 锛わ嫉锛ワ棘浠ュ銇姕銇戙倠 if( BattleArray[battleindex].type != BATTLE_TYPE_P_vs_P ){ return; } - // 锹澎扔奶玉 + // 鐩告墜銈点偆銉 enemyside = 1 - CHAR_getWorkInt( charaindex, CHAR_WORKBATTLESIDE ); pEntry = BattleArray[battleindex].Side[enemyside].Entry; - // 锹澎础卞中月谛醒毛醒尹月 + // 鐩告墜鍋淬伀銇勩倠浜烘暟銈掓暟銇堛倠 dpadd = CHAR_getInt( charaindex, CHAR_DUELPOINT ) * DUELPOINT_RATE; - if( dpadd < 1 )dpadd = 1; // 斓匹手ㄠ + if( dpadd < 1 )dpadd = 1; // 鏈浣庛仹銈傦紤 - // 谛井日娄中化云仁 + // 鏈汉銇嬨倝寮曘亜銇︺亰銇 CHAR_setWorkInt( charaindex, CHAR_WORKGETEXP, -dpadd*2 ); - // 锹澎础卞反箫允 + // 鐩告墜鍋淬伀銇冻銇 BattleArray[battleindex].Side[enemyside].common_dp += dpadd; @@ -5736,7 +5743,7 @@ int BATTLE_AddDuelPoint( int battleindex, int *pBidList ) if(indexfloor==11111|| indexfloor==22222|| indexfloor==33333|| - indexfloor==44444) //判定人物所在地图 + indexfloor==44444) //鍒ゅ畾浜虹墿鎵鍦ㄥ湴鍥 { // dpnow = CHAR_getWorkInt( enemyindex, CHAR_WORKVIPPOINT ); // dpnow -= dpadd; @@ -5814,7 +5821,7 @@ int BATTLE_AddDuelPoint( if( CHAR_getInt( enemyindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER ){ int dpadd, dpnow; dpnow = CHAR_getInt( enemyindex, CHAR_DUELPOINT ); - dpadd = dpnow * DUELPOINT_RATE; // ㄠㄟ坌及ㄠ手日尹月 + dpadd = dpnow * DUELPOINT_RATE; // 銊犮劅鍧屽強銊犳墜鏃ュ肮鏈 dpnow -= dpadd; CHAR_setWorkInt( enemyindex, CHAR_WORKGETEXP, CHAR_getWorkInt( enemyindex, CHAR_WORKGETEXP) - dpadd ); @@ -5838,7 +5845,7 @@ int BATTLE_ItemDelCheck( int itemindex ) if( CHAR_CHECKINDEX( icnt ) ) { for( jcnt = 0; jcnt < CHAR_MAXITEMHAVE; jcnt ++ ) { if( CHAR_getItemIndex( icnt, jcnt ) == itemindex ) { - //print( "err:战利品奇怪的item处理(%s)(%s)index(%d)\n", + //print( "err:鎴樺埄鍝佸鎬殑item澶勭悊(%s)(%s)index(%d)\n", // CHAR_getUseName(icnt),ITEM_getAppropriateName(itemindex), // itemindex ); return FALSE; @@ -5877,7 +5884,7 @@ int BATTLE_AddExpItem( int battleindex, int *pBidList ) || BattleArray[battleindex].Side[1-side].type == BATTLE_S_TYPE_PLAYER){ proflg = 0; } -#ifdef _SHARE_EXP //团队经验共享 +#ifdef _SHARE_EXP //鍥㈤槦缁忛獙鍏变韩 if(getExpShare()==1){ for( i = 0; i < BATTLE_ENTRY_MAX ; i ++ ){ if( BattleArray[battleindex].type == BATTLE_TYPE_P_vs_E ){ @@ -5933,7 +5940,7 @@ int BATTLE_AddExpItem( int battleindex, int *pBidList ) } if( proflg == 1 && side != j ){ if( CHAR_getInt( enemyindex, CHAR_WHICHTYPE ) != CHAR_TYPEENEMY ){ - //print( "\nerr: 夺取敌人以外的战利品(%s:%d)\n", + //print( "\nerr: 澶哄彇鏁屼汉浠ュ鐨勬垬鍒╁搧(%s:%d)\n", // __FILE__, __LINE__ ); } for(item=CHAR_STARTITEMARRAY; item < CHAR_STARTITEMARRAY+10; item++){ @@ -5942,7 +5949,7 @@ int BATTLE_AddExpItem( int battleindex, int *pBidList ) continue; } if( ITEM_getWorkInt( itemindex, ITEM_WORKCHARAINDEX ) <= getFdnum() ){ - //print( "\nerr: 将玩家的item当做战利品(%s:%d)\n", + //print( "\nerr: 灏嗙帺瀹剁殑item褰撳仛鎴樺埄鍝(%s:%d)\n", // __FILE__, __LINE__ ); continue; } @@ -5983,9 +5990,9 @@ int BATTLE_AddExpItem( int battleindex, int *pBidList ) int nowexp, b_level; int ridepet; b_level = CHAR_getInt( charaindex[k], CHAR_LV ) - enemylevel; - if( b_level <= EXPGET_MAXLEVEL ){//如 人物大怪物5以下 或怪物大於人物 + if( b_level <= EXPGET_MAXLEVEL ){//濡 浜虹墿澶ф墿5浠ヤ笅 鎴栨墿澶ф柤浜虹墿 nowexp = exp; - }else{//如果人物大於怪物5以上 + }else{//濡傛灉浜虹墿澶ф柤鎬墿5浠ヤ笂 b_level = EXPGET_MAXLEVEL+EXPGET_DIV - b_level; if( b_level > EXPGET_DIV ) b_level = EXPGET_DIV; if( b_level <= 0 ){ @@ -6010,9 +6017,9 @@ int BATTLE_AddExpItem( int battleindex, int *pBidList ) if(getStringFromIndexWithDelim(itemarg,"|", 1, buftest, sizeof(buftest)) == TRUE){ itemlv = atoi(buftest); b_level = itemlv - enemylevel; - if( b_level <= EXPGET_MAXLEVEL ){//如 人物大怪物5以下 或怪物大於人物 + if( b_level <= EXPGET_MAXLEVEL ){//濡 浜虹墿澶ф墿5浠ヤ笅 鎴栨墿澶ф柤浜虹墿 nowexp = exp; - }else{//如果人物大於怪物5以上 + }else{//濡傛灉浜虹墿澶ф柤鎬墿5浠ヤ笂 b_level = EXPGET_MAXLEVEL+EXPGET_DIV - b_level; if( b_level > EXPGET_DIV ) b_level = EXPGET_DIV; if( b_level <= 0 ){ @@ -6086,7 +6093,7 @@ void Pet_Check_Die( int petindex ) float modai; #define RAND(x,y) ((x-1)+1+ (int)( (double)(y-(x-1))*rand()/(RAND_MAX+1.0)) ) - //玛宠死亡 扣基本属性及忠诚 + //鐜涘疇姝讳骸 鎵e熀鏈睘鎬у強蹇犺瘹 if( CHAR_getInt( petindex, CHAR_PETID) == 718 ) { LevelUpPoint = CHAR_getInt( petindex, CHAR_ALLOCPOINT ); vital = (( LevelUpPoint >> 24 ) & 0xff); @@ -6125,7 +6132,7 @@ void Pet_Check_Die( int petindex ) // CHAR_getChar( petindex, CHAR_NAME), // petindex, 2, // CHAR_getInt( petindex, CHAR_LV), -// "battle_die(战斗死亡)", +// "battle_die(鎴樻枟姝讳骸)", // CHAR_getInt( petindex,CHAR_FLOOR), // 0, // 0 @@ -6214,7 +6221,7 @@ void Compute_Down( int charaindex, int rideindex, int *down1, int *down2, int fl *down1 = 0; *down2 = 0; - //人物 + //浜虹墿 downs = CHAR_getInt( charaindex, CHAR_VITAL ) + CHAR_getInt( charaindex, CHAR_STR ) @@ -6230,7 +6237,7 @@ void Compute_Down( int charaindex, int rideindex, int *down1, int *down2, int fl *down1 = downs; } if( flg == -1 ) { - }else {//骑乘宠物 + }else {//楠戜箻瀹犵墿 if( !CHAR_CHECKINDEX( rideindex)) return; downs = CHAR_getInt( rideindex, CHAR_VITAL ) @@ -6250,7 +6257,7 @@ void Compute_Down( int charaindex, int rideindex, int *down1, int *down2, int fl } } -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 void Compute_Down_SARS( int charaindex, int rideindex, int *down1, int *down2, int flg) { int hp=0, pethp=0; @@ -6258,7 +6265,7 @@ void Compute_Down_SARS( int charaindex, int rideindex, int *down1, int *down2, i *down1 = 0; *down2 = 0; - //人物 + //浜虹墿 /* downs = CHAR_getInt( charaindex, CHAR_VITAL ) @@ -6279,7 +6286,7 @@ void Compute_Down_SARS( int charaindex, int rideindex, int *down1, int *down2, i *down1 = downs; } if( flg == -1 ) { - }else {//骑乘宠物 + }else {//楠戜箻瀹犵墿 if( !CHAR_CHECKINDEX( rideindex)) return; downs = CHAR_getInt( rideindex, CHAR_VITAL ) @@ -6317,11 +6324,11 @@ void WorkIceCrackPlay(int charaindex, int cnt, int workicecracknum ) int ToList[SIDE_OFFSET*2+1]; memset( ToList, -1, sizeof( ToList)); BATTLE_MultiList( battleindex, TARGET_SIDE_1, ToList ); - // 将魔法参数代入动画 + // 灏嗛瓟娉曞弬鏁颁唬鍏ュ姩鐢 analysis_profession_parameter( 2, 4, defNo, charaindex ); PROFESSION_MAGIC_ATTAIC_Effect( battleindex, bid, ToList, 2); - if( defNo == 20 || defNo == 25 || defNo == 26 )//右 + if( defNo == 20 || defNo == 25 || defNo == 26 )//鍙 bid = 0; else bid = 10; @@ -6415,17 +6422,17 @@ static int BATTLE_StatusSeq( int charaindex ) for( i = 1; i < BATTLE_ST_END; i++ ){ if( ( cnt = CHAR_getWorkInt( charaindex, StatusTbl[i] )) <= 0 )continue; CHAR_setWorkInt( charaindex, StatusTbl[i], --cnt ); -#ifdef _MAGIC_WEAKEN // 虚弱 +#ifdef _MAGIC_WEAKEN // 铏氬急 if(CHAR_getWorkInt(charaindex,CHAR_WORKWEAKEN) > 0) CHAR_setWorkInt( charaindex, StatusTbl[i], cnt+1 ); #endif -#ifdef _MAGIC_BARRIER// vincent 精灵:魔障 +#ifdef _MAGIC_BARRIER// vincent 绮剧伒:榄旈殰 if(CHAR_getWorkInt(charaindex,CHAR_WORKBARRIER) > 0) CHAR_setWorkInt( charaindex, StatusTbl[i], cnt+1 ); #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( cnt <= 0 && ( StatusTbl[i] != CHAR_WORKICECRACK ) #ifdef _PROFESSION_ADDSKILL && ( StatusTbl[i] != CHAR_WORKICECRACK2 ) @@ -6438,12 +6445,12 @@ static int BATTLE_StatusSeq( int charaindex ) && ( StatusTbl[i] != CHAR_WORKICECRACK9 ) && ( StatusTbl[i] != CHAR_WORKICECRACK10 ) #endif - ){ // 冰爆术 + ){ // 鍐扮垎鏈 #else if( cnt <= 0 ){ #endif BATTLE_BadStatusString( bid, 0 ); - //snprintf( szBuffer, sizeof( szBuffer ), "(%s)将(%s)修理完毕。", + //snprintf( szBuffer, sizeof( szBuffer ), "(%s)灏(%s)淇悊瀹屾瘯銆", // CHAR_getUseName( charaindex ), aszStatusFull[i] ); // BATTLE_BroadCast( battleindex, szBuffer, // (bid >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; @@ -6452,7 +6459,7 @@ static int BATTLE_StatusSeq( int charaindex ) // BATTLESTR_ADD( szBuffer ); #ifdef _MAGIC_NOCAST if( StatusTbl[i] == CHAR_WORKNOCAST ){ - lssproto_NC_send( getfdFromCharaIndex( charaindex ), 0);//复原 + lssproto_NC_send( getfdFromCharaIndex( charaindex ), 0);//澶嶅師 } #endif if( StatusTbl[i] == CHAR_WORKDRUNK ){ @@ -6476,7 +6483,7 @@ static int BATTLE_StatusSeq( int charaindex ) Compute_Down( charaindex, ridepet, &down, &petdown, ridepet); if( down >= 0 ){ //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s)因(%s)受到(%d)的损伤。", + // "(%s)鍥(%s)鍙楀埌(%d)鐨勬崯浼ゃ", // CHAR_getUseName( charaindex ), // aszStatusFull[i], // down ); @@ -6493,7 +6500,7 @@ static int BATTLE_StatusSeq( int charaindex ) } if( ridepet != -1 && petdown >= 0 ){ //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s的骑宠)因(%s)受到(%d)的损伤。", + // "(%s鐨勯獞瀹)鍥(%s)鍙楀埌(%d)鐨勬崯浼ゃ", // CHAR_getUseName( charaindex ), // aszStatusFull[i], petdown ); //BATTLE_BroadCast( battleindex, szBuffer, @@ -6518,7 +6525,7 @@ static int BATTLE_StatusSeq( int charaindex ) CHAR_setInt( defindex, CHAR_HP,0); CHAR_setFlg( defindex, CHAR_ISDIE, 1 ); CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); - sprintf(szBuffer, "%s身中剧毒未解而阵亡了!!", CHAR_getChar( defindex, CHAR_NAME )); + sprintf(szBuffer, "%s韬腑鍓ф瘨鏈В鑰岄樀浜′簡!!", CHAR_getChar( defindex, CHAR_NAME )); if( CHAR_getInt( defindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ){ CHAR_talkToCli( CHAR_getWorkInt(defindex, CHAR_WORKPLAYERINDEX), -1, szBuffer, CHAR_COLORYELLOW); }else{ @@ -6539,7 +6546,7 @@ static int BATTLE_StatusSeq( int charaindex ) if( down >= 0 ){ CHAR_setInt( charaindex, CHAR_HP, hp - down ); //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s)因(%s)受到(%d)的损伤。", + // "(%s)鍥(%s)鍙楀埌(%d)鐨勬崯浼ゃ", // CHAR_getUseName( charaindex ), // aszStatusFull[i], // down ); @@ -6577,7 +6584,7 @@ static int BATTLE_StatusSeq( int charaindex ) if( down >= 0 ){ CHAR_setInt( charaindex, CHAR_HP, hp - down ); //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s)因(%s)受到(%d)的损伤。", + // "(%s)鍥(%s)鍙楀埌(%d)鐨勬崯浼ゃ", // CHAR_getUseName( charaindex ), // aszStatusFull[i], // down ); @@ -6594,7 +6601,7 @@ static int BATTLE_StatusSeq( int charaindex ) if( petdown >= 0 ){ CHAR_setInt( ridepet, CHAR_HP, pethp - petdown ); //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s的骑宠)因(%s)受到(%d)的损伤。", + // "(%s鐨勯獞瀹)鍥(%s)鍙楀埌(%d)鐨勬崯浼ゃ", // CHAR_getUseName( charaindex ), // aszStatusFull[i], // petdown ); @@ -6604,9 +6611,9 @@ static int BATTLE_StatusSeq( int charaindex ) break; } #endif -#ifdef _MAGIC_NOCAST // 精灵:沉默 +#ifdef _MAGIC_NOCAST // 绮剧伒:娌夐粯 case CHAR_WORKNOCAST: - lssproto_NC_send( getfdFromCharaIndex( charaindex ), 1);//沉默 + lssproto_NC_send( getfdFromCharaIndex( charaindex ), 1);//娌夐粯 break; #endif case CHAR_WORKCONFUSION: @@ -6632,7 +6639,7 @@ static int BATTLE_StatusSeq( int charaindex ) } break; #ifdef _PROFESSION_ADDSKILL - case CHAR_WORKANNEX://附身术 + case CHAR_WORKANNEX://闄勮韩鏈 { int side, pos, defNo, lop; @@ -6658,10 +6665,10 @@ static int BATTLE_StatusSeq( int charaindex ) case CHAR_WORKDRUNK: break; -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - case CHAR_WORKOBLIVION: // 遗忘 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + case CHAR_WORKOBLIVION: // 閬楀繕 { - // 恢复技能 + // 鎭㈠鎶鑳 if( cnt <= 1 ){ int defNo = BATTLE_Index2No( battleindex, charaindex ); int toNo = defNo - 5; @@ -6670,11 +6677,11 @@ static int BATTLE_StatusSeq( int charaindex ) memset( msg, -1, sizeof(msg) ); - // 主人index + // 涓讳汉index toNoindex = BATTLE_No2Index( battleindex, toNo ); CHAR_setWorkInt(charaindex, StatusTbl[BATTLE_ST_OBLIVION], 0 ); - // 宠物编号 + // 瀹犵墿缂栧彿 pet_no = CHAR_getInt( toNoindex, CHAR_DEFAULTPET ); sprintf( msg, "W%d", pet_no ); CHAR_sendStatusString( toNoindex, msg ); @@ -6686,7 +6693,7 @@ static int BATTLE_StatusSeq( int charaindex ) } break; } - case CHAR_WORK_F_ENCLOSE: // 火附体 + case CHAR_WORK_F_ENCLOSE: // 鐏檮浣 { int ToList[SIDE_OFFSET*2+1]; int defNo = BATTLE_Index2No( battleindex, charaindex ); @@ -6698,7 +6705,7 @@ static int BATTLE_StatusSeq( int charaindex ) BATTLE_MultiList( battleindex, defNo, ToList ); BATTLE_MagicEffect( battleindex, defNo, ToList, 101699, 101699 ); - // 取魔法伤害值 + // 鍙栭瓟娉曚激瀹冲 DAMAGE = DAMAGE * cnt; #ifdef _PROFESSION_ADDSKILL dec_hp = PROFESSION_MAGIC_GET_DAMAGE( charaindex, charaindex, 1, DAMAGE, 0); @@ -6720,7 +6727,7 @@ static int BATTLE_StatusSeq( int charaindex ) break; } - case CHAR_WORK_I_ENCLOSE: // 冰附体 + case CHAR_WORK_I_ENCLOSE: // 鍐伴檮浣 { int old_dex = CHAR_getInt( charaindex, CHAR_DEX ); int dex = 0; @@ -6738,9 +6745,9 @@ static int BATTLE_StatusSeq( int charaindex ) break; } - case CHAR_WORKRESIST_F: // 火抗性提升 + case CHAR_WORKRESIST_F: // 鐏姉鎬ф彁鍗 { - // 恢复抗性 + // 鎭㈠鎶楁 if( cnt <= 1 ){ int add_value = 0; int old_value = 0; @@ -6748,13 +6755,13 @@ static int BATTLE_StatusSeq( int charaindex ) add_value = CHAR_getWorkInt( charaindex, CHAR_WORKMODRESIST_F ); CHAR_setWorkInt( charaindex, CHAR_WORK_F_RESIST, old_value - add_value ); - CHAR_talkToCli( charaindex, -1 , "火抗性恢复" , CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1 , "鐏姉鎬ф仮澶" , CHAR_COLORYELLOW ); } break; } - case CHAR_WORKRESIST_I: // 冰抗性提升 + case CHAR_WORKRESIST_I: // 鍐版姉鎬ф彁鍗 { - // 恢复抗性 + // 鎭㈠鎶楁 if( cnt <= 1 ){ int add_value = 0; int old_value = 0; @@ -6762,14 +6769,14 @@ static int BATTLE_StatusSeq( int charaindex ) add_value = CHAR_getWorkInt( charaindex, CHAR_WORKMODRESIST_I ); CHAR_setWorkInt( charaindex, CHAR_WORK_I_RESIST, old_value - add_value ); - CHAR_talkToCli( charaindex, -1 , "冰抗性恢复" , CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1 , "鍐版姉鎬ф仮澶" , CHAR_COLORYELLOW ); } break; } - case CHAR_WORKRESIST_T: // 雷抗性提升 + case CHAR_WORKRESIST_T: // 闆锋姉鎬ф彁鍗 { - // 恢复抗性 + // 鎭㈠鎶楁 if( cnt <= 1 ){ int add_value = 0; int old_value = 0; @@ -6777,42 +6784,42 @@ static int BATTLE_StatusSeq( int charaindex ) add_value = CHAR_getWorkInt( charaindex, CHAR_WORKMODRESIST_T ); CHAR_setWorkInt( charaindex, CHAR_WORK_T_RESIST, old_value - add_value ); - CHAR_talkToCli( charaindex, -1 , "雷抗性恢复" , CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1 , "闆锋姉鎬ф仮澶" , CHAR_COLORYELLOW ); } break; } #ifdef _PROFESSION_ADDSKILL -/* case CHAR_WORKERSIST_F_I_T: // 提升火冰雷抗性 +/* case CHAR_WORKERSIST_F_I_T: // 鎻愬崌鐏啺闆锋姉鎬 { - // 恢复抗性 + // 鎭㈠鎶楁 if( cnt <= 1 ){ int add_value = 0; int old_value = 0; old_value = CHAR_getWorkInt( charaindex, CHAR_WORK_F_RESIST ); add_value = CHAR_getWorkInt( charaindex, CHAR_WORKMODRESIST_F ); CHAR_setWorkInt( charaindex, CHAR_WORK_F_RESIST, old_value - add_value ); - CHAR_talkToCli( charaindex, -1 , "火抗性恢复" , CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1 , "鐏姉鎬ф仮澶" , CHAR_COLORYELLOW ); old_value = CHAR_getWorkInt( charaindex, CHAR_WORK_I_RESIST ); add_value = CHAR_getWorkInt( charaindex, CHAR_WORKMODRESIST_I ); CHAR_setWorkInt( charaindex, CHAR_WORK_I_RESIST, old_value - add_value ); - CHAR_talkToCli( charaindex, -1 , "冰抗性恢复" , CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1 , "鍐版姉鎬ф仮澶" , CHAR_COLORYELLOW ); old_value = CHAR_getWorkInt( charaindex, CHAR_WORK_T_RESIST ); add_value = CHAR_getWorkInt( charaindex, CHAR_WORKMODRESIST_T ); CHAR_setWorkInt( charaindex, CHAR_WORK_T_RESIST, old_value - add_value ); - CHAR_talkToCli( charaindex, -1 , "雷抗性恢复" , CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1 , "闆锋姉鎬ф仮澶" , CHAR_COLORYELLOW ); } break; }*/ case CHAR_WORKFEAR: if( cnt <= 0 ) - CHAR_talkToCli( charaindex, -1 , "攻、防、敏恢复" , CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1 , "鏀汇侀槻銆佹晱鎭㈠" , CHAR_COLORYELLOW ); break; #endif - case CHAR_WORKINSTIGATE: // 挑拨 + case CHAR_WORKINSTIGATE: // 鎸戞嫧 { int side, pos, defNo, lop, rate=0; if( RAND( 1, 100 ) > 80 ){ @@ -6843,7 +6850,7 @@ static int BATTLE_StatusSeq( int charaindex ) break; } /* - case CHAR_WORK_FOCUS: // 专注战斗 + case CHAR_WORK_FOCUS: // 涓撴敞鎴樻枟 { if( cnt <= 1 ){ int atk_to_index = CHAR_getWorkInt( charaindex, CHAR_WORKMOD_FOCUS ); @@ -6859,9 +6866,9 @@ static int BATTLE_StatusSeq( int charaindex ) break; } */ - case CHAR_WORKSIGN: // 一针见血 + case CHAR_WORKSIGN: // 涓閽堣琛 { - // 吸血 + // 鍚歌 int skill_level = CHAR_getWorkInt( charaindex, CHAR_WORKMODSIGN ); int old_hp = CHAR_getInt( charaindex, CHAR_HP ); int old_mp = CHAR_getInt( charaindex, CHAR_MP ); @@ -6886,13 +6893,13 @@ static int BATTLE_StatusSeq( int charaindex ) dec_hp = 50; dec_mp = 10; } - // 增加hp + // 澧炲姞hp if( skill_level > 8 ) rate = 100; else if( skill_level > 7 ) rate = 50; else rate = 0; add_hp = dec_hp * rate / 100; - // 增加mp + // 澧炲姞mp if( skill_level > 8 ) rate = 100; else rate = 0; add_mp = dec_mp * rate / 100; @@ -6914,14 +6921,14 @@ static int BATTLE_StatusSeq( int charaindex ) dec_hp = 50; dec_mp = 10; } - // 增加hp + // 澧炲姞hp if( skill_level >= 9 ) rate = 80; else if( skill_level >= 7 ) rate = (skill_level - 1 ) * 10; else if( skill_level >= 4 ) rate = (skill_level - 2 ) * 10; else rate = skill_level * 10; add_hp = dec_hp * rate / 100; - // 增加mp + // 澧炲姞mp if( skill_level >= 9 ) rate = 100; else if( skill_level >= 7 ) rate = (skill_level - 1 ) * 10; else if( skill_level >= 4 ) rate = (skill_level - 2 ) * 10; @@ -6929,7 +6936,7 @@ static int BATTLE_StatusSeq( int charaindex ) add_mp = dec_mp * rate / 100; #endif - // 中嗜血蛊的人减 HP + // 涓棞琛铔婄殑浜哄噺 HP if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER ){ mp = old_mp - dec_mp; if( mp < 0 ){ @@ -6939,7 +6946,7 @@ static int BATTLE_StatusSeq( int charaindex ) CHAR_setInt(charaindex, CHAR_MP, mp); } - // 中嗜血蛊的人减 HP + // 涓棞琛铔婄殑浜哄噺 HP if( ridepet == -1 ) { hp = old_hp - dec_hp; if( hp < 0 ) hp = 0; @@ -6972,7 +6979,7 @@ static int BATTLE_StatusSeq( int charaindex ) BATTLESTR_ADD( szCommand ); - // 使用嗜血蛊的人加 HP、MP + // 浣跨敤鍡滆铔婄殑浜哄姞 HP銆丮P if( (add_hp > 0) && (to_old_hp > 0) ){ int to_bid=0, to_hp=0, to_mp=0; @@ -6994,9 +7001,9 @@ static int BATTLE_StatusSeq( int charaindex ) break; } - case CHAR_WORKBLOODWORMS: // 嗜血蛊 + case CHAR_WORKBLOODWORMS: // 鍡滆铔 { - // 吸血 + // 鍚歌 int skill_level = CHAR_getWorkInt( charaindex, CHAR_WORKMODBLOODWORMS ); int old_hp = CHAR_getInt( charaindex, CHAR_HP ); int to_index = CHAR_getWorkInt( charaindex, CHAR_WORKBLOODWORMSID ); @@ -7015,7 +7022,7 @@ static int BATTLE_StatusSeq( int charaindex ) add_hp = dec_hp * rate / 100; - // 中嗜血蛊的人减 HP + // 涓棞琛铔婄殑浜哄噺 HP if( ridepet == -1 ) { hp = old_hp - dec_hp; if( hp < 0 ) hp = 0; @@ -7049,7 +7056,7 @@ static int BATTLE_StatusSeq( int charaindex ) BATTLESTR_ADD( szCommand ); - // 使用嗜血蛊的人加 HP + // 浣跨敤鍡滆铔婄殑浜哄姞 HP if( (add_hp > 0) && (to_old_hp > 0) ){ int to_bid=0, to_hp=0; @@ -7066,9 +7073,9 @@ static int BATTLE_StatusSeq( int charaindex ) break; } - case CHAR_WORKICEARROW: // 冰箭 + case CHAR_WORKICEARROW: // 鍐扮 { - // 减敏 + // 鍑忔晱 int dec_dex = CHAR_getWorkInt( charaindex, CHAR_WORKMODICEARROW ); int old_dex = CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX ); int dex=0; @@ -7081,7 +7088,7 @@ static int BATTLE_StatusSeq( int charaindex ) break; } - case CHAR_WORKICECRACK: // 冰爆术 + case CHAR_WORKICECRACK: // 鍐扮垎鏈 { int value=0; int defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 );//defNo = BATTLE_Index2No( battleindex, charaindex ); @@ -7094,11 +7101,11 @@ static int BATTLE_StatusSeq( int charaindex ) int ToList[SIDE_OFFSET*2+1]; memset( ToList, -1, sizeof( ToList)); BATTLE_MultiList( battleindex, TARGET_SIDE_1, ToList ); - // 将魔法参数代入动画 + // 灏嗛瓟娉曞弬鏁颁唬鍏ュ姩鐢 analysis_profession_parameter( 2, 4, defNo, charaindex ); PROFESSION_MAGIC_ATTAIC_Effect( battleindex, bid, ToList, 2); - if( defNo == 20 || defNo == 25 || defNo == 26 )//右 + if( defNo == 20 || defNo == 25 || defNo == 26 )//鍙 bid = 0; else bid = 10; @@ -7113,7 +7120,7 @@ static int BATTLE_StatusSeq( int charaindex ) defType = CHAR_getInt(charaidx, CHAR_WHICHTYPE); CHAR_setWorkInt( charaidx, CHAR_WORKICECRACK, 0 ); //BATTLE_BadStatusString( bid, 0 ); - //snprintf( szBuffer, sizeof( szBuffer ), "(%s)将(%s)修理完毕。", + //snprintf( szBuffer, sizeof( szBuffer ), "(%s)灏(%s)淇悊瀹屾瘯銆", // CHAR_getUseName( charaindex ), aszStatusFull[i] ); // BATTLE_BroadCast( battleindex, szBuffer, // (bid >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; @@ -7159,7 +7166,7 @@ static int BATTLE_StatusSeq( int charaindex ) if( damage >= 0 ){ //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s)因(%s)受到(%d)的损伤。", + // "(%s)鍥(%s)鍙楀埌(%d)鐨勬崯浼ゃ", // CHAR_getUseName( charaindex ), // aszStatusFull[i], // damage ); @@ -7173,7 +7180,7 @@ static int BATTLE_StatusSeq( int charaindex ) } if( petidx != -1 && petdamage >= 0 ){ //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s的骑宠)因(%s)受到(%d)的损伤。", + // "(%s鐨勯獞瀹)鍥(%s)鍙楀埌(%d)鐨勬崯浼ゃ", // CHAR_getUseName( charaindex ), // aszStatusFull[i], petdamage ); //BATTLE_BroadCast( battleindex, szBuffer, @@ -7186,38 +7193,38 @@ static int BATTLE_StatusSeq( int charaindex ) BATTLESTR_ADD( szBuffer ); } } - //print("\n冰爆术"); + //print("\n鍐扮垎鏈"); break; #ifdef _PROFESSION_ADDSKILL - case CHAR_WORKICECRACK2: // 冰爆术2 - WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK2 );print("\n冰爆术2");break; - case CHAR_WORKICECRACK3: // 冰爆术3 - WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK3 );print("\n冰爆术3");break; - case CHAR_WORKICECRACK4: // 冰爆术4 - WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK4 );print("\n冰爆术4");break; - case CHAR_WORKICECRACK5: // 冰爆术5 - WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK5 );print("\n冰爆术5");break; - case CHAR_WORKICECRACK6: // 冰爆术6 - WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK6 );print("\n冰爆术6");break; - case CHAR_WORKICECRACK7: // 冰爆术7 - WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK7 );print("\n冰爆术7");break; - case CHAR_WORKICECRACK8: // 冰爆术8 - WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK8 );print("\n冰爆术8");break; - case CHAR_WORKICECRACK9: // 冰爆术9 - WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK9 );print("\n冰爆术9");break; - case CHAR_WORKICECRACK10: // 冰爆术10 - WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK10 );print("\n冰爆术10");break; + case CHAR_WORKICECRACK2: // 鍐扮垎鏈2 + WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK2 );print("\n鍐扮垎鏈2");break; + case CHAR_WORKICECRACK3: // 鍐扮垎鏈3 + WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK3 );print("\n鍐扮垎鏈3");break; + case CHAR_WORKICECRACK4: // 鍐扮垎鏈4 + WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK4 );print("\n鍐扮垎鏈4");break; + case CHAR_WORKICECRACK5: // 鍐扮垎鏈5 + WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK5 );print("\n鍐扮垎鏈5");break; + case CHAR_WORKICECRACK6: // 鍐扮垎鏈6 + WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK6 );print("\n鍐扮垎鏈6");break; + case CHAR_WORKICECRACK7: // 鍐扮垎鏈7 + WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK7 );print("\n鍐扮垎鏈7");break; + case CHAR_WORKICECRACK8: // 鍐扮垎鏈8 + WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK8 );print("\n鍐扮垎鏈8");break; + case CHAR_WORKICECRACK9: // 鍐扮垎鏈9 + WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK9 );print("\n鍐扮垎鏈9");break; + case CHAR_WORKICECRACK10: // 鍐扮垎鏈10 + WorkIceCrackPlay( charaindex, cnt, CHAR_WORKICECRACK10 );print("\n鍐扮垎鏈10");break; #endif //_PROFESSION_ADDSKILL #endif -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 case CHAR_WORKSARS: { int j; - int rate = 60; // 传染 SARS 机率 + int rate = 60; // 浼犳煋 SARS 鏈虹巼 - // 受传染的人受伤 + // 鍙椾紶鏌撶殑浜哄彈浼 { int petdown=-1; int dec_mp = 0; @@ -7225,14 +7232,14 @@ static int BATTLE_StatusSeq( int charaindex ) Compute_Down_SARS( charaindex, ridepet, &down, &petdown, ridepet); if( down >= 0 ){ //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s)因(%s)受到(%d)的损伤。", + // "(%s)鍥(%s)鍙楀埌(%d)鐨勬崯浼ゃ", // CHAR_getUseName( charaindex ), // aszStatusFull[i], // down ); //BATTLE_BroadCast( battleindex, szBuffer, // (bid >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; - // 如果是玩家扣 MP + // 濡傛灉鏄帺瀹舵墸 MP if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER ){ int old_mp = CHAR_getInt( charaindex, CHAR_MP ); dec_mp = old_mp / 10 ; @@ -7246,7 +7253,7 @@ static int BATTLE_StatusSeq( int charaindex ) } if( ridepet != -1 && petdown >= 0 ){ //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s的骑宠)因(%s)受到(%d)的损伤。", + // "(%s鐨勯獞瀹)鍥(%s)鍙楀埌(%d)鐨勬崯浼ゃ", // CHAR_getUseName( charaindex ), // aszStatusFull[i], petdown ); //BATTLE_BroadCast( battleindex, szBuffer, @@ -7254,7 +7261,7 @@ static int BATTLE_StatusSeq( int charaindex ) } } - // 主传染者传SARS + // 涓讳紶鏌撹呬紶SARS if( CHAR_getWorkInt( charaindex, CHAR_WORKMODSARS ) > 0 ){ int buf2[5], ti=0; int tibuf[10]={ @@ -7274,14 +7281,14 @@ static int BATTLE_StatusSeq( int charaindex ) if( j > 4 ){ if( (j+1) < 10 ) buf2[ti++]=tibuf[j+1]; if( (j-1) > 4 ) buf2[ti++]=tibuf[j-1]; - //不等边 + //涓嶇瓑杈 if( (j-5+1) < 5 ) buf2[ti++]=tibuf[j-5+1]; if( (j-5-1) >= 0 ) buf2[ti++]=tibuf[j-5-1]; if( (j-5) >= 0 ) buf2[ti++]=tibuf[j-5]; }else{ if( (j+1) < 5 ) buf2[ti++]=tibuf[j+1]; if( (j-1) >= 0 ) buf2[ti++]=tibuf[j-1]; - //不等边 + //涓嶇瓑杈 if( (j+5+1) < 10 ) buf2[ti++]=tibuf[j+5+1]; if( (j+5-1) > 4 ) buf2[ti++]=tibuf[j+5-1]; if( (j+5) < 10 ) buf2[ti++]=tibuf[j+5]; @@ -7298,10 +7305,10 @@ static int BATTLE_StatusSeq( int charaindex ) toindex = BATTLE_No2Index( battleindex, buf2[j] ); - // 得到sars的离开 + // 寰楀埌sars鐨勭寮 if( CHAR_getWorkInt( toindex,CHAR_WORKSARS ) > 0 ) continue; - if( RAND( 1, 100 ) <= rate ){ // 中 SARS + if( RAND( 1, 100 ) <= rate ){ // 涓 SARS if( toindex == charaindex ) continue; if( CHAR_getInt( toindex, CHAR_HP ) <= 0 ) continue; @@ -7315,7 +7322,7 @@ static int BATTLE_StatusSeq( int charaindex ) default : //snprintf( szBuffer, sizeof( szBuffer ), - // "(%s)是(%s)", CHAR_getUseName( charaindex ), + // "(%s)鏄(%s)", CHAR_getUseName( charaindex ), // aszStatusFull[i] ); //BATTLE_BroadCast( battleindex, szBuffer, // (bid >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; @@ -7364,7 +7371,7 @@ static int BATTLE_StatusSeq( int charaindex ) MyHp = ((MyHp+AddHp)>=MaxHp)?MaxHp:(MyHp+AddHp); MyHp = (MyHp<= 1 )?1:MyHp; CHAR_setInt( charaindex, CHAR_HP, MyHp); - //snprintf( szBuffer, sizeof( szBuffer ), "(%s)增加(%d)的HP。", + //snprintf( szBuffer, sizeof( szBuffer ), "(%s)澧炲姞(%d)鐨凥P銆", // CHAR_getUseName( charaindex ), AddHp ); //BATTLE_BroadCast( battleindex, szBuffer, // (bid >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; @@ -7439,7 +7446,7 @@ static int BATTLE_StatusSeq( int charaindex ) } CHAR_setWorkInt( charaindex, CHAR_MYSKILLDEX, turns); } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( (turns=CHAR_getWorkInt( charaindex, CHAR_MYSKILLHIT)) > 0 ){ turns--; if( turns == 0 ){ @@ -7448,7 +7455,7 @@ static int BATTLE_StatusSeq( int charaindex ) nums -= dec_num; CHAR_setWorkInt( charaindex, CHAR_WORKHITRIGHT, nums); - CHAR_talkToCli( charaindex, -1, "恢复命中率", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鎭㈠鍛戒腑鐜", CHAR_COLORYELLOW); //sprintf( szBuffer, "BD|r%X|0|6|%X|", bid, dec_num*(-1)); //BATTLESTR_ADD( szBuffer ); } @@ -7467,16 +7474,16 @@ static int BATTLE_StatusSeq( int charaindex ) BOOL BATTLE_CanMoveCheck( int charaindex ) { - // + // 楹荤椇 if( CHAR_getWorkInt( charaindex, CHAR_WORKPARALYSIS ) > 0 ){ return FALSE; } - // 檗祭 + // 鐭冲寲 if( CHAR_getWorkInt( charaindex, CHAR_WORKSTONE ) > 0 ){ return FALSE; } - // 戽曰 + // 鐪犮倞 if( CHAR_getWorkInt( charaindex, CHAR_WORKSLEEP ) > 0 ){ return FALSE; } @@ -7486,29 +7493,29 @@ BOOL BATTLE_CanMoveCheck( int charaindex ) } #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - // 晕眩 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + // 鏅曠湬 if( CHAR_getWorkInt( charaindex, CHAR_WORKDIZZY ) > 0 ){ return FALSE; } - // 天罗地网 + // 澶╃綏鍦扮綉 if( CHAR_getWorkInt( charaindex, CHAR_WORKDRAGNET ) > 0 ){ return FALSE; } #ifdef _JOB_FIX - // 冰箭术 + // 鍐扮鏈 if( CHAR_getWorkInt( charaindex, CHAR_WORKICEARROW ) > 0 ){ return FALSE; } #endif /* - // 专注战斗 + // 涓撴敞鎴樻枟 if( CHAR_getWorkInt( charaindex, CHAR_WORK_FOCUS ) > 0 ){ return FALSE; } */ - // 雷附体 + // 闆烽檮浣 if( CHAR_getWorkInt( charaindex, CHAR_WORK_T_ENCLOSE ) > 0 ){ return FALSE; } @@ -7536,7 +7543,7 @@ int BATTLE_GetEqShield( int charaindex ) } #endif -int BATTLE_GetWepon( int charaindex ) //取得角色手持武器 +int BATTLE_GetWepon( int charaindex ) //鍙栧緱瑙掕壊鎵嬫寔姝﹀櫒 { int iRet = ITEM_FIST, itemindex; @@ -7565,14 +7572,14 @@ void BATTLE_TargetListSet( int charaindex, int attackNo, int *pList) defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 ); battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); -#ifdef _SKILLLIMIT // (可开放) Syu ADD 不得攻击我方限制 - if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_FALLRIDE || // 落马 - CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_WILDVIOLENTATTACK || //狂暴攻击 - CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_TIMID || // 怯战 - CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_MPDAMAGE || // MP攻击 - CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_WEAKEN || // 虚弱 - CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_DAMAGETOHP || // 嗜血 - CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_STEALMONEY ) { // 捐献 +#ifdef _SKILLLIMIT // (鍙紑鏀) Syu ADD 涓嶅緱鏀诲嚮鎴戞柟闄愬埗 + if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_FALLRIDE || // 钀介┈ + CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_WILDVIOLENTATTACK || //鐙傛毚鏀诲嚮 + CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_TIMID || // 鎬垬 + CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_MPDAMAGE || // MP鏀诲嚮 + CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_WEAKEN || // 铏氬急 + CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_DAMAGETOHP || // 鍡滆 + CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_STEALMONEY ) { // 鎹愮尞 if( BATTLE_CheckSameSide( charaindex, defNo) == 1 ) { CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); // BATTLE_NoAction( battleindex, attackNo ); @@ -7584,8 +7591,8 @@ void BATTLE_TargetListSet( int charaindex, int attackNo, int *pList) for( i = 0; i < BATTLE_ENTRY_MAX*2; i ++ ){ pList[i] = defNo; } -#ifdef _BATTLE_ATTCRAZED // ANDY 疯狂暴走 -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _BATTLE_ATTCRAZED // ANDY 鐤媯鏆磋蛋 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ATTCRAZED || CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ATTSHOOT ){ #else @@ -7596,7 +7603,7 @@ void BATTLE_TargetListSet( int charaindex, int attackNo, int *pList) int n = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3); -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 if( BATTLE_CheckSameSide( charaindex, defNo) == 1 ) { CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); BATTLE_NoAction( battleindex, attackNo ); @@ -7678,7 +7685,7 @@ int BATTLE_PetRandomSkill( int battleindex, int charaindex ) #define PETSKILLSERCHTIME 50 int i, j, iNum, toNo, k, myNo, side, pskill_array; int skill_type; -#ifdef _FIXWOLF // Syu ADD 修正狼人变身Bug +#ifdef _FIXWOLF // Syu ADD 淇鐙间汉鍙樿韩Bug int pid=CHAR_getInt( charaindex , CHAR_PETID); int skNum; #endif @@ -7688,7 +7695,7 @@ int BATTLE_PetRandomSkill( int battleindex, int charaindex ) myNo = BATTLE_Index2No( battleindex, charaindex ); side = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLESIDE ); -#ifdef _FIXWOLF // Syu ADD 修正狼人变身Bug +#ifdef _FIXWOLF // Syu ADD 淇鐙间汉鍙樿韩Bug iNum = RAND( 0, CHAR_MAXPETSKILLHAVE-1 ); skNum = CHAR_getPetSkill( charaindex , iNum ); if( ((pid == 981) || (pid == 982) || (pid == 983) || (pid == 984)) && (skNum == 600)){ @@ -7797,39 +7804,39 @@ static int BATTLE_PetLoyalCheck( int battleindex, int bid, int charaindex ) Rand = RAND( 1, 100 ); - mode = 0; // 恳仄中垫 - if( ai >= 80 ){ // 镝擦蘸ㄧㄟ⊙动晓 - mode = PETAI_MODE_NORMAL; // 濮覆岳 + mode = 0; // 姝c仐銇勮鍕 + if( ai >= 80 ){ // 蹇犺獱搴︼紭锛愶紖浠ヤ笂 + mode = PETAI_MODE_NORMAL; // 绲跺鎴愬姛 }else - if( ai >= 70 ){ // 镝擦蘸ㄦㄟ⊙动晓 - if( Rand < 10 )mode = PETAI_MODE_TARGETRANDOM; // 正□必永玄 + if( ai >= 70 ){ // 蹇犺獱搴︼紬锛愶紖浠ヤ笂 + if( Rand < 10 )mode = PETAI_MODE_TARGETRANDOM; // 銈裤兗銈层儍銉堝 }else if( ai >= 60 ){ - if( Rand < 20 )mode = PETAI_MODE_TARGETRANDOM; // 正□必永玄 + if( Rand < 20 )mode = PETAI_MODE_TARGETRANDOM; // 銈裤兗銈层儍銉堝 }else if( ai >= 50 ){ - if( Rand < 35 )mode = PETAI_MODE_TARGETRANDOM; // 正□必永玄 + if( Rand < 35 )mode = PETAI_MODE_TARGETRANDOM; // 銈裤兗銈层儍銉堝 }else if( ai >= 40 ){ - if( Rand < 50 )mode = PETAI_MODE_TARGETRANDOM; // 正□必永玄 + if( Rand < 50 )mode = PETAI_MODE_TARGETRANDOM; // 銈裤兗銈层儍銉堝 }else if( ai >= 30 ){ - if( Rand < 70 )mode = PETAI_MODE_RANDOMACT; // 垫 仿件母丞 + if( Rand < 70 )mode = PETAI_MODE_RANDOMACT; // 琛屽嫊銉┿兂銉銉 }else if( ai >= 20 ){ - if( Rand < 70 )mode = PETAI_MODE_RANDOMACT; // 垫 仿件母丞 + if( Rand < 70 )mode = PETAI_MODE_RANDOMACT; // 琛屽嫊銉┿兂銉銉 }else if( ai >= 10 ){ if( Rand < 80 ){ - mode = PETAI_MODE_OWNERATTACK; // 潜谛 猾 + mode = PETAI_MODE_OWNERATTACK; // 涓讳汉鏀绘拑 }else{ - mode = PETAI_MODE_ENEMYATTACK; // 衬 猾 + mode = PETAI_MODE_ENEMYATTACK; // 鏁垫敾鎾 } }else{ if( Rand < 60 ){ - mode = PETAI_MODE_OWNERATTACK; // 潜谛 猾 + mode = PETAI_MODE_OWNERATTACK; // 涓讳汉鏀绘拑 }else{ - mode = PETAI_MODE_ESCAPE; // 仆月 + mode = PETAI_MODE_ESCAPE; // 鏁垫敾鎾 } } @@ -7864,42 +7871,42 @@ static int BATTLE_PetLoyalCheck( int battleindex, int bid, int charaindex ) } break; - case PETAI_MODE_RANDOMACT: // 垫 互仿件母丞 - // 哗萄ㄠ葱 猾蟆反濮覆井尹切扎母丢 + case PETAI_MODE_RANDOMACT: // 琛屽嫊銇屻儵銉炽儉銉 + // 鍦扮悆锛戦辨敾鎾冨墠銇刀瀵俱亱銇堛仭銈冦儉銉 if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_EARTHROUND0 ){ return 0; } - // 布□犯奴失件白仿弘毛反内允 + // 銈兗銉囥偅銈€兂銉曘儵銈般倰銇仛銇 flg = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEFLG ); flg &= ~CHAR_BATTLEFLG_GUARDIAN; CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEFLG, flg ); - if( toNo == bid ){ // 愤坌毛蓟氏匹仄引匀凶日 - // 窒手匹五卅中仇午卞允月 + if( toNo == bid ){ // 鑷垎銈掗伕銈撱仹銇椼伨銇c仧銈 + // 浣曘倐銇с亶銇亜銇撱仺銇仚銈 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); }else{ - // 仿件母丞卞檗 毛本永玄 + // 銉┿兂銉銉犮伀鐭崇増銈掋偦銉冦儓 BATTLE_PetRandomSkill( battleindex, charaindex ); } break; - case PETAI_MODE_OWNERATTACK: // 潜谛 猾 + case PETAI_MODE_OWNERATTACK: // 涓讳汉鏀绘拑 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_ATTACK ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, bid-5 ); break; - case PETAI_MODE_ENEMYATTACK: // 衬 猾 + case PETAI_MODE_ENEMYATTACK: // 鏁垫敾鎾 { int myside = 0; if( bid >= BATTLE_ENTRY_MAX ) myside = 1; CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_ATTACK ); - // 锹澎扔奶玉卞 + // 鐩告墜銈点偆銉夈伀 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, BATTLE_DefaultAttacker( battleindex, 1 - myside ) ); } break; - case PETAI_MODE_ESCAPE: // 仆月公及 夫旦玄 + case PETAI_MODE_ESCAPE: // 閫冦亽銈嬨仢銇緦銉偣銉 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_LOSTESCAPE ); break; @@ -7913,7 +7920,7 @@ static int BATTLE_PetLoyalCheck( int battleindex, int bid, int charaindex ) #define MAX_MAGIC_NUMBER 25 -// 每一种魔法的攻击 围 (id,area) +// 姣忎竴绉嶉瓟娉曠殑鏀诲嚮鑼冨洿 (id,area) int TargetIndex[MAX_MAGIC_NUMBER][2] = { {301,-1},{302,-1},{303,26},{304,-1},{305,20},{306,20}, @@ -7931,7 +7938,7 @@ static int BATTLE_Battling( int battleindex ) //DebugMainFunction="BATTLE_Battling_1"; BATTLE *pBattle, *pWatchBattle; BATTLE_ENTRY *pEntry[2]; - char *aszFieldAttr[] = { "无", "地", "水", "火", "风" }, + char *aszFieldAttr[] = { "鏃", "鍦", "姘", "鐏", "椋" }, szBuffer[256]="", szWork[256]; int i,j,k, @@ -7959,7 +7966,7 @@ static int BATTLE_Battling( int battleindex ) EntryList[i].combo = 0; } //DebugMainFunction="BATTLE_Battling_5"; - sprintf( szBuffer, "战役 %d 转换 %d 属性 %s", + sprintf( szBuffer, "鎴樺焦 %d 杞崲 %d 灞炴 %s", battleindex, pBattle->turn, aszFieldAttr[pBattle->field_att] ); @@ -7973,7 +7980,7 @@ static int BATTLE_Battling( int battleindex ) EntryList[entrynum].charaindex = pEntry[j][i].charaindex; EntryList[entrynum].side = j; EntryList[entrynum].num = pEntry[j][i].bid; - EntryList[entrynum].dex = BATTLE_DexCalc( pEntry[j][i].charaindex ); //敏捷 + EntryList[entrynum].dex = BATTLE_DexCalc( pEntry[j][i].charaindex ); //鏁忔嵎 #ifdef _EQUIT_SEQUENCE EntryList[entrynum].sequence = CHAR_getWorkInt( pEntry[j][i].charaindex, CHAR_WORKSEQUENCEPOWER); #endif @@ -7992,10 +7999,10 @@ static int BATTLE_Battling( int battleindex ) && pBattle->Side[j].Entry[i].charaindex == -1){ if( pBattle->iEntryBack2[k] >= 0 ){ sprintf( szBattleString, "BE|et%X|f1|", k ); - //BATTLE_BroadCast( battleindex, "突然有人不见了。", CHAR_COLORYELLOW ); + //BATTLE_BroadCast( battleindex, "绐佺劧鏈変汉涓嶈浜嗐", CHAR_COLORYELLOW ); }else{ - //print( "应是输入ID不正确出现的error。\n" ); - //BATTLE_BroadCast( battleindex, "ID错误的error。", CHAR_COLORYELLOW ); + //print( "搴旀槸杈撳叆ID涓嶆纭嚭鐜扮殑error銆俓n" ); + //BATTLE_BroadCast( battleindex, "ID閿欒鐨別rror銆", CHAR_COLORYELLOW ); } } k ++; @@ -8029,7 +8036,7 @@ static int BATTLE_Battling( int battleindex ) szBadStatusString[0] = 0; if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) != BATTLE_CHARMODE_C_OK ){ - //sprintf( szBuffer, "指令输入不完全。(%s)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "鎸囦护杈撳叆涓嶅畬鍏ㄣ(%s)", CHAR_getUseName( charaindex ) ); //BATTLE_BroadCast( battleindex, szBuffer, CHAR_COLORYELLOW ); continue; } @@ -8047,13 +8054,13 @@ static int BATTLE_Battling( int battleindex ) BATTLE_MagicStatusSeq( charaindex ); #endif //DebugMainFunction="BATTLE_Battling_13"; -#ifdef _MAGIC_DEEPPOISON // 剧毒 +#ifdef _MAGIC_DEEPPOISON // 鍓ф瘨 if( CHAR_getFlg( charaindex, CHAR_ISDIE ) == TRUE ){ CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); } #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 BATTLE_ProfessionStatusSeq( battleindex, charaindex); #endif //DebugMainFunction="BATTLE_Battling_14"; @@ -8070,7 +8077,7 @@ static int BATTLE_Battling( int battleindex ) gWeponType = BATTLE_GetWepon( charaindex ); //DebugMainFunction="BATTLE_Battling_16"; #ifdef _PETSKILL_BECOMEFOX - if( CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 //若是变成小狐狸 + if( CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 //鑻ユ槸鍙樻垚灏忕嫄鐙 || CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)==101749) { int COM = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ); @@ -8081,13 +8088,13 @@ static int BATTLE_Battling( int battleindex ) || COM == BATTLE_COM_GUARD || COM == BATTLE_COM_NONE) ){ CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); - CHAR_talkToCli( charaindex, -1, "变成小狐狸後只能攻击、防御和待机!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "鍙樻垚灏忕嫄鐙稿緦鍙兘鏀诲嚮銆侀槻寰″拰寰呮満锛", CHAR_COLORYELLOW ); } } #endif //DebugMainFunction="BATTLE_Battling_17"; #ifdef _PETSKILL_BECOMEPIG - if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > -1 //变成乌力了 + if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > -1 //鍙樻垚涔屽姏浜 && (CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER) ) { int COM = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ); @@ -8104,8 +8111,8 @@ static int BATTLE_Battling( int battleindex ) || COM == BATTLE_COM_PETIN || COM == BATTLE_COM_PETOUT) ){ CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_GUARD ); - //CHAR_talkToCli( charaindex, -1, "变成乌力後只能攻击、防御、待机、逃跑和使用道具!", CHAR_COLORYELLOW ); - CHAR_talkToCli( charaindex, -1, "变成乌力後不能使用咒术和职业技能!", CHAR_COLORYELLOW ); + //CHAR_talkToCli( charaindex, -1, "鍙樻垚涔屽姏寰屽彧鑳芥敾鍑汇侀槻寰°佸緟鏈恒侀冭窇鍜屼娇鐢ㄩ亾鍏凤紒", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "鍙樻垚涔屽姏寰屼笉鑳戒娇鐢ㄥ拻鏈拰鑱屼笟鎶鑳斤紒", CHAR_COLORYELLOW ); } } #endif @@ -8120,7 +8127,7 @@ static int BATTLE_Battling( int battleindex ) }else{ int luckwork = CHAR_getInt( charaindex, CHAR_LUCK )*5; if( luckwork > 5*5 ){ -// print( "\nerr:运气奇怪(%s)(%d)\n", +// print( "\nerr:杩愭皵濂囨(%s)(%d)\n", // CHAR_getUseName( charaindex ), // CHAR_getInt( charaindex, CHAR_LUCK ) ); luckwork = 5*5; @@ -8150,7 +8157,7 @@ static int BATTLE_Battling( int battleindex ) if( BattleArray[battleindex].Side[myside].flg & BSIDE_FLG_SURPRISE ){ }else{ if( BATTLE_PetLoyalCheck( battleindex, attackNo, charaindex ) ) { -#ifdef _FIXWOLF // Syu ADD 修正狼人变身Bug +#ifdef _FIXWOLF // Syu ADD 淇鐙间汉鍙樿韩Bug if ( CHAR_getInt ( charaindex , CHAR_BASEIMAGENUMBER) == 101428 ) { if( CHAR_getWorkInt ( charaindex , CHAR_WORKTURN ) == 0){ CHAR_setInt( charaindex, CHAR_BASEIMAGENUMBER, CHAR_getInt( charaindex , CHAR_BASEBASEIMAGENUMBER)); @@ -8197,12 +8204,12 @@ static int BATTLE_Battling( int battleindex ) #ifdef _PETSKILL_BECOMEFOX if( CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)==101749 - || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //若是变成小狐狸不可以使用回力标 + || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //鑻ユ槸鍙樻垚灏忕嫄鐙镐笉鍙互浣跨敤鍥炲姏鏍 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); } #endif #ifdef _PETSKILL_BECOMEPIG - if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > -1 ){//变成乌力了 + if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > -1 ){//鍙樻垚涔屽姏浜 gWeponType = ITEM_FIST; CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_ATTACK ); } @@ -8235,7 +8242,7 @@ static int BATTLE_Battling( int battleindex ) break; #endif -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 case BATTLE_COM_S_SARS: gBattleStausChange = CHAR_GETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3 ); gBattleStausTurn = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3 ); @@ -8257,15 +8264,15 @@ static int BATTLE_Battling( int battleindex ) gBattleDuckModyfy = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3 ); #ifdef _VARY_WOLF case BATTLE_COM_S_VARY: - // 先用不到 + // 鍏堢敤涓嶅埌 break; #endif #ifdef _SKILL_WILDVIOLENT_ATT - //狂暴攻击 vincent add 2002/05/16 + //鐙傛毚鏀诲嚮 vincent add 2002/05/16 case BATTLE_COM_S_WILDVIOLENTATTACK: - attack_max = RAND(3,10);//攻击次数 - gDamageDiv = attack_max;//每次攻击造成伤害 - gBattleDuckModyfy = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3 );//命中率 + attack_max = RAND(3,10);//鏀诲嚮娆℃暟 + gDamageDiv = attack_max;//姣忔鏀诲嚮閫犳垚浼ゅ + gBattleDuckModyfy = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3 );//鍛戒腑鐜 break; #endif case BATTLE_COM_S_EARTHROUND0: @@ -8276,15 +8283,15 @@ static int BATTLE_Battling( int battleindex ) attack_max = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3); break; #endif -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 case BATTLE_COM_S_ATTSHOOT: attack_max = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3); - gDamageDiv = attack_max;//每次攻击造成伤害 + gDamageDiv = attack_max;//姣忔鏀诲嚮閫犳垚浼ゅ break; #endif case BATTLE_COM_S_MIGHTY: gBattleDamageModyfy = CHAR_GETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3 ) * 0.01; - gBattleDuckModyfy = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3 ); // 歹今木膜恳骚橘尺 + gBattleDuckModyfy = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3 ); // 姝逛粖鏈ㄨ啘鎭抽獨姗樺昂 break; } //DebugMainFunction="BATTLE_Battling_28"; @@ -8295,10 +8302,10 @@ static int BATTLE_Battling( int battleindex ) ContFlg = FALSE; if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEFLG ) & CHAR_BATTLEFLG_AIBAD && COM == BATTLE_COM_COMBO ){ - //print( "由於忠诚度不足使用必杀技失败(%s)\n", CHAR_getUseName( charaindex ) ); + //print( "鐢辨柤蹇犺瘹搴︿笉瓒充娇鐢ㄥ繀鏉鎶澶辫触(%s)\n", CHAR_getUseName( charaindex ) ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_ATTACK ); } -#ifdef _BATTLE_TIMESPEED//动画播放速度 +#ifdef _BATTLE_TIMESPEED//鍔ㄧ敾鎾斁閫熷害 { int flgtime = 0; switch( COM ){ @@ -8307,7 +8314,7 @@ static int BATTLE_Battling( int battleindex ) flgtime = 200*3; break; #endif -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 case BATTLE_COM_S_ATTSHOOT: flgtime = 80*attack_max; break; @@ -8330,27 +8337,27 @@ static int BATTLE_Battling( int battleindex ) } #endif -#ifdef _PETSKILL_BECOMEFOX // 中了媚惑术後攻防敏能力各降 20% - if( CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //变成小狐狸 - CHAR_setWorkInt( charaindex, CHAR_WORKATTACKPOWER, CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR)*0.8);//攻降20% - CHAR_setWorkInt( charaindex, CHAR_WORKDEFENCEPOWER, CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH)*0.8);//防降20% - CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX)*0.8);//敏降20% +#ifdef _PETSKILL_BECOMEFOX // 涓簡濯氭儜鏈緦鏀婚槻鏁忚兘鍔涘悇闄 20% + if( CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //鍙樻垚灏忕嫄鐙 + CHAR_setWorkInt( charaindex, CHAR_WORKATTACKPOWER, CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR)*0.8);//鏀婚檷20% + CHAR_setWorkInt( charaindex, CHAR_WORKDEFENCEPOWER, CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH)*0.8);//闃查檷20% + CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX)*0.8);//鏁忛檷20% } #endif - switch( COM ){//处理攻击 + switch( COM ){//澶勭悊鏀诲嚮 -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - //==== 直接攻击系 =============================================================== - case BATTLE_COM_S_BRUST: // 爆击 - case BATTLE_COM_S_CHAIN_ATK: // 连环攻击 - case BATTLE_COM_S_CHAIN_ATK_2: // 双重攻击 - case BATTLE_COM_S_CAVALRY: // 座骑攻击 - case BATTLE_COM_S_DEAD_ATTACK: // 濒死攻击 - case BATTLE_COM_S_ATTACK_WEAK: // 弱点攻击 - case BATTLE_COM_S_PLUNDER: // 体掠夺 - case BATTLE_COM_S_CHAOS: // 混乱攻击 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + //==== 鐩存帴鏀诲嚮绯 =============================================================== + case BATTLE_COM_S_BRUST: // 鐖嗗嚮 + case BATTLE_COM_S_CHAIN_ATK: // 杩炵幆鏀诲嚮 + case BATTLE_COM_S_CHAIN_ATK_2: // 鍙岄噸鏀诲嚮 + case BATTLE_COM_S_CAVALRY: // 搴ч獞鏀诲嚮 + case BATTLE_COM_S_DEAD_ATTACK: // 婵掓鏀诲嚮 + case BATTLE_COM_S_ATTACK_WEAK: // 寮辩偣鏀诲嚮 + case BATTLE_COM_S_PLUNDER: // 浣撴帬澶 + case BATTLE_COM_S_CHAOS: // 娣蜂贡鏀诲嚮 { - // 防止同队互打 + // 闃叉鍚岄槦浜掓墦 //DebugMainFunction="BATTLE_Battling_30"; defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 ); if( BATTLE_CheckSameSide( charaindex, defNo) == 1 ){ @@ -8358,36 +8365,36 @@ static int BATTLE_Battling( int battleindex ) } //DebugMainFunction="BATTLE_Battling_31"; } - case BATTLE_COM_S_ENRAGE_PET: // 激怒宠物 + case BATTLE_COM_S_ENRAGE_PET: // 婵鎬掑疇鐗 { //DebugMainFunction="BATTLE_Battling_32"; CHAR_setFlg( charaindex, CHAR_ISATTACKED, 1 ); defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 ); battle_profession_attack_fun(battleindex, attackNo, defNo, charaindex); - //change fix 修正使用职业得不到道具 + //change fix 淇浣跨敤鑱屼笟寰椾笉鍒伴亾鍏 //BATTLE_AddProfit( battleindex, aAttackList); //DebugMainFunction="BATTLE_Battling_33"; } break; - //==== 魔法攻击系 ================================================================ - case BATTLE_COM_S_VOLCANO_SPRINGS: // 火山泉 - case BATTLE_COM_S_FIRE_BALL: // 火星球 - case BATTLE_COM_S_FIRE_SPEAR: // 火龙枪 - case BATTLE_COM_S_SUMMON_THUNDER: // 召雷术 - case BATTLE_COM_S_CURRENT: // 电流术 - case BATTLE_COM_S_STORM: // 暴风雨 - case BATTLE_COM_S_ICE_ARROW: // 冰箭 - case BATTLE_COM_S_ICE_CRACK: // 冰爆术 - case BATTLE_COM_S_ICE_MIRROR: // 冰镜术 - case BATTLE_COM_S_DOOM: // 世界末日 - case BATTLE_COM_S_BLOOD_WORMS: // 嗜血蛊 - case BATTLE_COM_S_SIGN: // 一针见血 - case BATTLE_COM_S_ENCLOSE: // 附身术 - case BATTLE_COM_S_THROUGH_ATTACK: // 贯穿攻击 - case BATTLE_COM_S_CONVOLUTE: // 回旋攻击 + //==== 榄旀硶鏀诲嚮绯 ================================================================ + case BATTLE_COM_S_VOLCANO_SPRINGS: // 鐏北娉 + case BATTLE_COM_S_FIRE_BALL: // 鐏槦鐞 + case BATTLE_COM_S_FIRE_SPEAR: // 鐏緳鏋 + case BATTLE_COM_S_SUMMON_THUNDER: // 鍙浄鏈 + case BATTLE_COM_S_CURRENT: // 鐢垫祦鏈 + case BATTLE_COM_S_STORM: // 鏆撮闆 + case BATTLE_COM_S_ICE_ARROW: // 鍐扮 + case BATTLE_COM_S_ICE_CRACK: // 鍐扮垎鏈 + case BATTLE_COM_S_ICE_MIRROR: // 鍐伴暅鏈 + case BATTLE_COM_S_DOOM: // 涓栫晫鏈棩 + case BATTLE_COM_S_BLOOD_WORMS: // 鍡滆铔 + case BATTLE_COM_S_SIGN: // 涓閽堣琛 + case BATTLE_COM_S_ENCLOSE: // 闄勮韩鏈 + case BATTLE_COM_S_THROUGH_ATTACK: // 璐┛鏀诲嚮 + case BATTLE_COM_S_CONVOLUTE: // 鍥炴棆鏀诲嚮 { #ifdef _PROFESSION_ADDSKILL - /* if( COM == BATTLE_COM_S_DOOM //世界末日集气 + /* if( COM == BATTLE_COM_S_DOOM //涓栫晫鏈棩闆嗘皵 || COM == BATTLE_COM_S_FIRE_SPEAR){ if( CHAR_getWorkInt( charaindex, CHAR_DOOMTIME ) > 0 ){ BATTLE_NoAction( battleindex, attackNo ); @@ -8397,7 +8404,7 @@ static int BATTLE_Battling( int battleindex ) } }*/ #endif - // 防止同队互打 + // 闃叉鍚岄槦浜掓墦 //DebugMainFunction="BATTLE_Battling_34"; defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 ); if( BATTLE_CheckSameSide( charaindex, defNo) == 1 ){ @@ -8405,17 +8412,17 @@ static int BATTLE_Battling( int battleindex ) } //DebugMainFunction="BATTLE_Battling_35"; } - case BATTLE_COM_S_BLOOD: // 嗜血成性 + case BATTLE_COM_S_BLOOD: // 鍡滆鎴愭 { //DebugMainFunction="BATTLE_Battling_36"; CHAR_setFlg( charaindex, CHAR_ISATTACKED, 1 ); defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 ); -#if 1 // Robin fix 修正嗜血吸别人的血 +#if 1 // Robin fix 淇鍡滆鍚稿埆浜虹殑琛 if( defNo != attackNo && COM == BATTLE_COM_S_BLOOD ){ - //print("\n 改封包!嗜血吸别人的血!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); + //print("\n 鏀瑰皝鍖!鍡滆鍚稿埆浜虹殑琛!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); defNo = attackNo; - CHAR_talkToCli( charaindex, -1, "因封包异常而断线。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍥犲皝鍖呭紓甯歌屾柇绾裤", CHAR_COLORYELLOW); CONNECT_setCloseRequest( CHAR_getWorkInt( charaindex, CHAR_WORKFD ) , 1 ); break; } @@ -8435,29 +8442,29 @@ static int BATTLE_Battling( int battleindex ) pBattle->ice_attackNo[pBattle->ice_count] = attackNo; ++pBattle->ice_count; BATTLE_NoAction( battleindex, attackNo ); - //print("\n进入冰爆"); + //print("\n杩涘叆鍐扮垎"); break; } //DebugMainFunction="BATTLE_Battling_38"; #endif battle_profession_attack_magic_fun(battleindex, attackNo, defNo, charaindex); //DebugMainFunction="BATTLE_Battling_39"; - //change fix 修正使用职业得不到道具 + //change fix 淇浣跨敤鑱屼笟寰椾笉鍒伴亾鍏 //BATTLE_AddProfit( battleindex, aAttackList); break; } - //==== 提升自已能力系 ==================================================================== - case BATTLE_COM_S_FOCUS: // 专注战斗 - case BATTLE_COM_S_AVOID: // 回避 - case BATTLE_COM_S_RECOVERY: // 补血 - case BATTLE_COM_S_SCAPEGOAT: // 舍已为友 - case BATTLE_COM_S_ENRAGE: // 激化攻击 - case BATTLE_COM_S_COLLECT: // 能量聚集 - case BATTLE_COM_S_TRAP: // 陷阱 - case BATTLE_COM_S_TRANSPOSE: // 移形换位 - case BATTLE_COM_S_DOCILE: // 驯伏宠物 + //==== 鎻愬崌鑷凡鑳藉姏绯 ==================================================================== + case BATTLE_COM_S_FOCUS: // 涓撴敞鎴樻枟 + case BATTLE_COM_S_AVOID: // 鍥為伩 + case BATTLE_COM_S_RECOVERY: // 琛ヨ + case BATTLE_COM_S_SCAPEGOAT: // 鑸嶅凡涓哄弸 + case BATTLE_COM_S_ENRAGE: // 婵鍖栨敾鍑 + case BATTLE_COM_S_COLLECT: // 鑳介噺鑱氶泦 + case BATTLE_COM_S_TRAP: // 闄烽槺 + case BATTLE_COM_S_TRANSPOSE: // 绉诲舰鎹綅 + case BATTLE_COM_S_DOCILE: // 椹紡瀹犵墿 #ifdef _PROFESSION_ADDSKILL - case BATTLE_COM_S_CALL_NATURE: // 号召自然 + case BATTLE_COM_S_CALL_NATURE: // 鍙峰彫鑷劧 #endif { CHAR_setFlg( charaindex, CHAR_ISATTACKED, 1 ); @@ -8467,35 +8474,35 @@ static int BATTLE_Battling( int battleindex ) //DebugMainFunction="BATTLE_Battling_41"; break; } - //==== 击中改变状态系 ==================================================================== - case BATTLE_COM_S_SHIELD_ATTACK: // 盾击 - case BATTLE_COM_S_ENTWINE: // 树根缠绕 - case BATTLE_COM_S_DRAGNET: // 天罗地网 - case BATTLE_COM_S_TOXIN_WEAPON: // 毒素武器 - case BATTLE_COM_S_INSTIGATE: // 挑拨 - case BATTLE_COM_S_OBLIVION: // 遗忘 + //==== 鍑讳腑鏀瑰彉鐘舵佺郴 ==================================================================== + case BATTLE_COM_S_SHIELD_ATTACK: // 鐩惧嚮 + case BATTLE_COM_S_ENTWINE: // 鏍戞牴缂犵粫 + case BATTLE_COM_S_DRAGNET: // 澶╃綏鍦扮綉 + case BATTLE_COM_S_TOXIN_WEAPON: // 姣掔礌姝﹀櫒 + case BATTLE_COM_S_INSTIGATE: // 鎸戞嫧 + case BATTLE_COM_S_OBLIVION: // 閬楀繕 { - // 防止同队互打 + // 闃叉鍚岄槦浜掓墦 defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 ); //DebugMainFunction="BATTLE_Battling_42"; if( BATTLE_CheckSameSide( charaindex, defNo) == 1 ){ BATTLE_NoAction( battleindex, attackNo ); //if( COM == BATTLE_COM_S_TOXIN_WEAPON ) - //printf("\nbug-同队互打"); + //printf("\nbug-鍚岄槦浜掓墦"); break; } //DebugMainFunction="BATTLE_Battling_43"; } - case BATTLE_COM_S_RESIST_FIRE: // 火抗性提升 - case BATTLE_COM_S_RESIST_ICE: // 冰抗性提升 - case BATTLE_COM_S_RESIST_THUNDER: // 雷抗性提升 + case BATTLE_COM_S_RESIST_FIRE: // 鐏姉鎬ф彁鍗 + case BATTLE_COM_S_RESIST_ICE: // 鍐版姉鎬ф彁鍗 + case BATTLE_COM_S_RESIST_THUNDER: // 闆锋姉鎬ф彁鍗 #ifdef _PROFESSION_ADDSKILL - case BATTLE_COM_S_RESIST_F_I_T: // 自然威能 - case BATTLE_COM_S_BOUNDARY: // 四属性结界 + case BATTLE_COM_S_RESIST_F_I_T: // 鑷劧濞佽兘 + case BATTLE_COM_S_BOUNDARY: // 鍥涘睘鎬х粨鐣 #endif - case BATTLE_COM_S_FIRE_ENCLOSE: // 火附体 - case BATTLE_COM_S_ICE_ENCLOSE: // 冰附体 - case BATTLE_COM_S_THUNDER_ENCLOSE: // 雷附体 + case BATTLE_COM_S_FIRE_ENCLOSE: // 鐏檮浣 + case BATTLE_COM_S_ICE_ENCLOSE: // 鍐伴檮浣 + case BATTLE_COM_S_THUNDER_ENCLOSE: // 闆烽檮浣 { CHAR_setFlg( charaindex, CHAR_ISATTACKED, 1 ); @@ -8504,7 +8511,7 @@ static int BATTLE_Battling( int battleindex ) battle_profession_status_chang_fun(battleindex, attackNo, defNo, charaindex); //DebugMainFunction="BATTLE_Battling_45"; //if( COM == BATTLE_COM_S_TOXIN_WEAPON ) - //printf("\nbug-毒素武器处理结束"); + //printf("\nbug-姣掔礌姝﹀櫒澶勭悊缁撴潫"); //DebugMainFunction="BATTLE_Battling_46"; break; } @@ -8512,9 +8519,9 @@ static int BATTLE_Battling( int battleindex ) #endif #ifdef _PETSKILL_ACUPUNCTURE - case BATTLE_COM_S_ACUPUNCTURE: //针刺外皮 + case BATTLE_COM_S_ACUPUNCTURE: //閽堝埡澶栫毊 CHAR_setWorkInt( charaindex, CHAR_WORKACUPUNCTURE, 1); - //print("\n针刺:%s",CHAR_getChar(charaindex,CHAR_NAME)); + //print("\n閽堝埡:%s",CHAR_getChar(charaindex,CHAR_NAME)); #endif case BATTLE_COM_S_CHARGE_OK: case BATTLE_COM_S_POWERBALANCE: @@ -8524,11 +8531,11 @@ static int BATTLE_Battling( int battleindex ) if( COM == BATTLE_COM_S_MIGHTY ){ int def_index = -1; int i; - defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 );//取得被攻击者的位置 + defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 );//鍙栧緱琚敾鍑昏呯殑浣嶇疆 if( BATTLE_TargetCheck(battleindex, defNo) == FALSE || CHAR_getWorkInt( BATTLE_No2Index( battleindex, defNo ), CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_EARTHROUND0 ){ - //随意找一只打 + //闅忔剰鎵句竴鍙墦 if( defNo < 10 ){ for( i=0;i<10;i++ ) if( BATTLE_TargetCheck(battleindex, i) @@ -8550,9 +8557,9 @@ static int BATTLE_Battling( int battleindex ) return 0; } } - def_index = BATTLE_No2Index( battleindex, defNo );//取得被攻击者的idx + def_index = BATTLE_No2Index( battleindex, defNo );//鍙栧緱琚敾鍑昏呯殑idx - // 防止同队互打 + // 闃叉鍚岄槦浜掓墦 //DebugMainFunction="BATTLE_Battling_47"; if( BATTLE_CheckSameSide( charaindex, defNo) == 1 ){ BATTLE_NoAction( battleindex, attackNo ); break; @@ -8561,27 +8568,27 @@ static int BATTLE_Battling( int battleindex ) if( !CHAR_CHECKINDEX( def_index ) ) break; //DebugMainFunction="BATTLE_Battling_49"; if( PROFESSION_BATTLE_StatusAttackCheck( charaindex, def_index, CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM5), CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM7) ) ) - CHAR_setWorkInt( def_index, StatusTbl[CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM5)], CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM6));//设定麻痹 + CHAR_setWorkInt( def_index, StatusTbl[CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM5)], CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM6));//璁惧畾楹荤椆 //DebugMainFunction="BATTLE_Battling_50"; } case BATTLE_COM_S_GUARDIAN_ATTACK: case BATTLE_COM_S_RENZOKU: -#ifdef _BATTLE_ATTCRAZED // ANDY 疯狂暴走 +#ifdef _BATTLE_ATTCRAZED // ANDY 鐤媯鏆磋蛋 case BATTLE_COM_S_ATTCRAZED: #endif -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 case BATTLE_COM_S_ATTSHOOT: #endif #ifdef _SKILL_WILDVIOLENT_ATT - case BATTLE_COM_S_WILDVIOLENTATTACK://狂暴攻击 vincent add 2002/05/16 + case BATTLE_COM_S_WILDVIOLENTATTACK://鐙傛毚鏀诲嚮 vincent add 2002/05/16 #endif #ifdef _SKILL_SPEEDY_ATT - case BATTLE_COM_S_SPEEDYATTACK: //疾速攻击 vincent add 2002/05/20 + case BATTLE_COM_S_SPEEDYATTACK: //鐤鹃熸敾鍑 vincent add 2002/05/20 #endif case BATTLE_COM_ATTACK: -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 case BATTLE_COM_S_SARS: #endif @@ -8612,7 +8619,7 @@ static int BATTLE_Battling( int battleindex ) else f_num = 15; - // 取出战场上存活的人 + // 鍙栧嚭鎴樺満涓婂瓨娲荤殑浜 for( i=f_num; i 0 || CHAR_getWorkInt( charaindex, CHAR_WORKNPCMETAMO) > 0 - || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //若是变成小狐狸 + || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //鑻ユ槸鍙樻垚灏忕嫄鐙 if( gWeponType == ITEM_BOW || gWeponType == ITEM_BOUNDTHROW || gWeponType == ITEM_BREAKTHROW || gWeponType == ITEM_BOOMERANG) { - CHAR_talkToCli( charaindex, -1, "变身中无法使用远距离武器!!", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍙樿韩涓棤娉曚娇鐢ㄨ繙璺濈姝﹀櫒!!", CHAR_COLORYELLOW); continue; } @@ -8849,7 +8856,7 @@ static int BATTLE_Battling( int battleindex ) #endif //DebugMainFunction="BATTLE_Battling_78"; if( gWeponType == ITEM_BOW ) sprintf( szWork, "BB|a%X|w0|", attackNo ); - else if( gWeponType == ITEM_BOUNDTHROW ) //若是丢斧头 + else if( gWeponType == ITEM_BOUNDTHROW ) //鑻ユ槸涓㈡枾澶 sprintf( szWork, "BB|a%X|w1|", attackNo ); else if( gWeponType == ITEM_BREAKTHROW ) sprintf( szWork, "BB|a%X|w2|", attackNo ); @@ -8857,7 +8864,7 @@ static int BATTLE_Battling( int battleindex ) //DebugMainFunction="BATTLE_Battling_79"; } -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 if ( COM == BATTLE_COM_S_ATTSHOOT ) sprintf( szWork, "BB|a%X|w0|", attackNo ); #endif @@ -8869,7 +8876,7 @@ static int BATTLE_Battling( int battleindex ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); }else{ -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 if ( CHAR_getWorkInt(charaindex, CHAR_WORKBATTLECOM1) != BATTLE_COM_S_ATTSHOOT) #endif #ifdef _PETSKILL_SHOWMERCY @@ -8894,8 +8901,8 @@ static int BATTLE_Battling( int battleindex ) #ifdef _PETSKILL_RETRACE if( Battle_Attack_ReturnData_x.Battle_Attack_ReturnData == BATTLE_RET_DODGE && COM == BATTLE_COM_S_RETRACE ){ - if( RAND(1,100) < 80 ){ //80%机率发动2次攻击 - //攻+20% + if( RAND(1,100) < 80 ){ //80%鏈虹巼鍙戝姩2娆℃敾鍑 + //鏀+20% CHAR_setWorkInt( BATTLE_No2Index( battleindex, attackNo ), CHAR_WORKATTACKPOWER, @@ -8952,18 +8959,18 @@ static int BATTLE_Battling( int battleindex ) BATTLESTR_ADD( "FF|" ); //DebugMainFunction="BATTLE_Battling_90"; -#ifdef _PETSKILL_BECOMEFOX // 向对方使用媚惑术 +#ifdef _PETSKILL_BECOMEFOX // 鍚戝鏂逛娇鐢ㄥ獨鎯戞湳 if ( (COM == BATTLE_COM_S_BECOMEFOX ) - && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_MISS) //没有miss - && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_DODGE) //没有闪避过 + && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_MISS) //娌℃湁miss + && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_DODGE) //娌℃湁闂伩杩 && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_ALLGUARD) && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_ARRANGE) - && (BATTLE_TargetCheck( battleindex, defNo )) //还活着 + && (BATTLE_TargetCheck( battleindex, defNo )) //杩樻椿鐫 && (rand()%100 < 31) - && (CHAR_getInt( BATTLE_No2Index( battleindex, defNo ), CHAR_WHICHTYPE ) != CHAR_TYPEPLAYER) //只有宠物(CHAR_TYPEPET)才可以被媚惑 + && (CHAR_getInt( BATTLE_No2Index( battleindex, defNo ), CHAR_WHICHTYPE ) != CHAR_TYPEPLAYER) //鍙湁瀹犵墿(CHAR_TYPEPET)鎵嶅彲浠ヨ濯氭儜 && (CHAR_getWorkInt( BATTLE_No2Index( battleindex, defNo ), CHAR_WORK_PETFLG ) != 0 ) #ifdef _PETSKILL_BECOMEPIG - && (CHAR_getInt( charaindex, CHAR_BECOMEPIG) == -1)//没有处於乌力化 + && (CHAR_getInt( charaindex, CHAR_BECOMEPIG) == -1)//娌℃湁澶勬柤涔屽姏鍖 #endif ) { @@ -8977,7 +8984,7 @@ static int BATTLE_Battling( int battleindex ) CHAR_setWorkInt( defindex, CHAR_WORKFOXROUND, pBattle->turn ); - if( CHAR_getInt( defindex, CHAR_RIDEPET) != -1 ) { //骑宠就要让他落马 + if( CHAR_getInt( defindex, CHAR_RIDEPET) != -1 ) { //楠戝疇灏辫璁╀粬钀介┈ CHAR_setInt( defindex, CHAR_RIDEPET, -1 ); //DebugMainFunction="BATTLE_Battling_94"; BATTLE_changeRideImage( defindex ); @@ -8989,16 +8996,16 @@ static int BATTLE_Battling( int battleindex ) } #endif //DebugMainFunction="BATTLE_Battling_96"; -#ifdef _PETSKILL_BECOMEPIG // 向对方使用乌力化 +#ifdef _PETSKILL_BECOMEPIG // 鍚戝鏂逛娇鐢ㄤ箤鍔涘寲 if ( (COM == BATTLE_COM_S_BECOMEPIG ) - && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_MISS) //没有miss - && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_DODGE) //没有闪避过 + && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_MISS) //娌℃湁miss + && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_DODGE) //娌℃湁闂伩杩 && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_ALLGUARD) && (Battle_Attack_ReturnData_x.Battle_Attack_ReturnData != BATTLE_RET_ARRANGE) - && (BATTLE_TargetCheck( battleindex, defNo )) //还活着 - && (CHAR_getInt( BATTLE_No2Index( battleindex, defNo ), CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER) //只有玩家才可以被乌力化 - && (BATTLE_CheckSameSide( charaindex, defNo) != 1 ) // 防止同队互打 - && CHAR_getInt( BATTLE_No2Index( battleindex, defNo ), CHAR_BECOMEPIG) < 2000000000 ) //防止破表 + && (BATTLE_TargetCheck( battleindex, defNo )) //杩樻椿鐫 + && (CHAR_getInt( BATTLE_No2Index( battleindex, defNo ), CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER) //鍙湁鐜╁鎵嶅彲浠ヨ涔屽姏鍖 + && (BATTLE_CheckSameSide( charaindex, defNo) != 1 ) // 闃叉鍚岄槦浜掓墦 + && CHAR_getInt( BATTLE_No2Index( battleindex, defNo ), CHAR_BECOMEPIG) < 2000000000 ) //闃叉鐮磋〃 { char temp[64]; int ToList[SIDE_OFFSET*2+1], compute,petrate,pettime,pigbbi=100250; @@ -9014,15 +9021,15 @@ static int BATTLE_Battling( int battleindex ) petrate = 100, pettime = 60, pigbbi = 100250; //DebugMainFunction="BATTLE_Battling_100"; if( rand()%100 < petrate ){ - CHAR_setWorkInt( defindex, CHAR_WORKITEMMETAMO, 0);//道具变身取消 - CHAR_setWorkInt( defindex, CHAR_WORKNPCMETAMO, 0 );//NPC变身取消 - CHAR_setWorkInt( defindex, CHAR_WORKFOXROUND, -1);//媚惑术变身取消 + CHAR_setWorkInt( defindex, CHAR_WORKITEMMETAMO, 0);//閬撳叿鍙樿韩鍙栨秷 + CHAR_setWorkInt( defindex, CHAR_WORKNPCMETAMO, 0 );//NPC鍙樿韩鍙栨秷 + CHAR_setWorkInt( defindex, CHAR_WORKFOXROUND, -1);//濯氭儜鏈彉韬彇娑 //DebugMainFunction="BATTLE_Battling_101"; BATTLE_MultiList( battleindex, defNo, ToList ); //DebugMainFunction="BATTLE_Battling_102"; BATTLE_MagicEffect( battleindex, defNo, ToList, 101120, 101750); //DebugMainFunction="BATTLE_Battling_103"; - if( CHAR_getInt( defindex, CHAR_RIDEPET) != -1 ){ //骑宠就要让他落马 + if( CHAR_getInt( defindex, CHAR_RIDEPET) != -1 ){ //楠戝疇灏辫璁╀粬钀介┈ CHAR_setInt( defindex, CHAR_RIDEPET, -1 ); //DebugMainFunction="BATTLE_Battling_104"; BATTLE_changeRideImage( defindex ); @@ -9034,19 +9041,19 @@ static int BATTLE_Battling( int battleindex ) compute = CHAR_getInt( defindex, CHAR_BECOMEPIG); CHAR_setInt( defindex, CHAR_BASEIMAGENUMBER, CHAR_getInt( defindex, CHAR_BECOMEPIG_BBI ) ); - if( compute == -1 )//第一次中 - CHAR_setInt( defindex, CHAR_BECOMEPIG, pettime + 1 + compute ); //乌力化时间(单位:秒) + if( compute == -1 )//绗竴娆′腑 + CHAR_setInt( defindex, CHAR_BECOMEPIG, pettime + 1 + compute ); //涔屽姏鍖栨椂闂(鍗曚綅:绉) else CHAR_setInt( defindex, CHAR_BECOMEPIG, pettime + compute ); - sprintf(temp, "乌力时间:%d秒", CHAR_getInt( defindex, CHAR_BECOMEPIG) ); + sprintf(temp, "涔屽姏鏃堕棿:%d绉", CHAR_getInt( defindex, CHAR_BECOMEPIG) ); CHAR_talkToCli( defindex, -1, temp, CHAR_COLORYELLOW); //DebugMainFunction="BATTLE_Battling_106"; - //print("\n乌力化开始0:%s,round:%d", CHAR_getChar( defindex, CHAR_NAME), CHAR_getWorkInt( defindex, CHAR_WORKFOXROUND)); + //print("\n涔屽姏鍖栧紑濮0:%s,round:%d", CHAR_getChar( defindex, CHAR_NAME), CHAR_getWorkInt( defindex, CHAR_WORKFOXROUND)); } } #endif break; -//以下处理特殊攻击 +//浠ヤ笅澶勭悊鐗规畩鏀诲嚮 case BATTLE_COM_BOOMERANG: gBattleDamageModyfy = 0.3; defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 ); @@ -9164,7 +9171,7 @@ static int BATTLE_Battling( int battleindex ) } } break; - case BATTLE_COM_COMPELESCAPE: //强制离开 + case BATTLE_COM_COMPELESCAPE: //寮哄埗绂诲紑 if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) != CHAR_TYPEPET ){ //DebugMainFunction="BATTLE_Battling_126"; BATTLE_Escape( battleindex, attackNo, 1); @@ -9210,13 +9217,13 @@ static int BATTLE_Battling( int battleindex ) BATTLE_PetIn( battleindex, attackNo ); //DebugMainFunction="BATTLE_Battling_134"; } - // shan 2002/01/14 Begin 五只宠 + // shan 2002/01/14 Begin 浜斿彧瀹 { int attackindex, petNo; attackindex = BATTLE_No2Index( battleindex, attackNo ); petNo = CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM2 ); -#ifdef _TRANS_7_COLOR //CF设置是否可以外挂召唤宠物 +#ifdef _TRANS_7_COLOR //CF璁剧疆鏄惁鍙互澶栨寕鍙敜瀹犵墿 if( getpetsummon() == 0 ){ if( CHAR_getWorkInt(charaindex, CHAR_WORK_PET0_STAT+petNo) != PET_STAT_SELECT) @@ -9240,24 +9247,24 @@ static int BATTLE_Battling( int battleindex ) break; // Terry add 2001/11/05 #ifdef _ATTACK_MAGIC - case BATTLE_COM_S_ATTACK_MAGIC: // 宠物魔法 + case BATTLE_COM_S_ATTACK_MAGIC: // 瀹犵墿榄旀硶 magic = CHAR_GETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3); toindex = CHAR_getWorkInt(charaindex,CHAR_WORKBATTLECOM2); // print("magic->%d,toindex->%d\n",magic,toindex); - // 判断攻 围 + // 鍒ゆ柇鏀诲嚮鑼冨洿 //DebugMainFunction="BATTLE_Battling_137"; for(magic_count=0;magic_count= 0 && toindex <= 4) toindex = TargetIndex[magic_count][1]; - // 打右下的前面那一排 + // 鎵撳彸涓嬬殑鍓嶉潰閭d竴鎺 else toindex = TargetIndex[magic_count][1]-1; } @@ -9286,12 +9293,12 @@ static int BATTLE_Battling( int battleindex ) case BATTLE_COM_ITEM: itemindex = CHAR_getItemIndex(charaindex, CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM3 )); if( ITEM_CHECKINDEX( itemindex ) == FALSE ){ -// print( "\nerr:要使用的item位置奇怪(%s)(%d)\n", +// print( "\nerr:瑕佷娇鐢ㄧ殑item浣嶇疆濂囨(%s)(%d)\n", // CHAR_getUseName( charaindex ), CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM3 ) ); break; } -#if 1 // Robin fix 战斗不可换防具饰品 +#if 1 // Robin fix 鎴樻枟涓嶅彲鎹㈤槻鍏烽グ鍝 #ifdef _BATTLE_EQUIT_OTHER if(getBattleEquitOther()!=1) #endif @@ -9310,7 +9317,7 @@ static int BATTLE_Battling( int battleindex ) //|| itemtype == CHAR_HEAD ) { - //print("\n 改封包!战斗不可换防具!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); + //print("\n 鏀瑰皝鍖!鎴樻枟涓嶅彲鎹㈤槻鍏!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); break; } } @@ -9320,7 +9327,7 @@ static int BATTLE_Battling( int battleindex ) { if( CHAR_getWorkInt( charaindex, CHAR_WORKITEMMETAMO) > 0 || CHAR_getWorkInt( charaindex, CHAR_WORKNPCMETAMO) > 0 - || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //若是变成小狐狸 + || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //鑻ユ槸鍙樻垚灏忕嫄鐙 int armtype; int itemindex = CHAR_getItemIndex( charaindex, CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM3 )); @@ -9329,7 +9336,7 @@ static int BATTLE_Battling( int battleindex ) if( armtype == ITEM_BOW || armtype == ITEM_BOUNDTHROW || armtype == ITEM_BREAKTHROW || armtype == ITEM_BOOMERANG) { - CHAR_talkToCli( charaindex, -1, "变身无法使用远距离武器!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "鍙樿韩鏃犳硶浣跨敤杩滆窛绂绘鍣紒", CHAR_COLORYELLOW ); break; } } @@ -9345,8 +9352,8 @@ static int BATTLE_Battling( int battleindex ) //DebugMainFunction="BATTLE_Battling_146"; BATTLESTR_ADD( szWork ); //DebugMainFunction="BATTLE_Battling_147"; -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - // 武器专精 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + // 姝﹀櫒涓撶簿 BATTLE_ProfessionStatus_init( battleindex, charaindex ); #endif //DebugMainFunction="BATTLE_Battling_148"; @@ -9356,7 +9363,7 @@ static int BATTLE_Battling( int battleindex ) break; #ifdef _PSKILL_FALLGROUND - case BATTLE_COM_S_FALLRIDE://落马术 + case BATTLE_COM_S_FALLRIDE://钀介┈鏈 if( (defNo = BATTLE_TargetAdjust( battleindex, charaindex, myside )) < 0 ){ BATTLE_NoAction( battleindex, attackNo ); //print("\n BATTLE_NoAction()"); @@ -9441,7 +9448,7 @@ static int BATTLE_Battling( int battleindex ) #endif #ifdef _SKILL_DAMAGETOHP - case BATTLE_COM_S_DAMAGETOHP: //嗜血技 + case BATTLE_COM_S_DAMAGETOHP: //鍡滆鎶 { int skill; //DebugMainFunction="BATTLE_Battling_165"; @@ -9459,7 +9466,7 @@ static int BATTLE_Battling( int battleindex ) #endif #ifdef _PETSKILL_DAMAGETOHP - case BATTLE_COM_S_DAMAGETOHP2: //暗月狂狼(嗜血技的变体) + case BATTLE_COM_S_DAMAGETOHP2: //鏆楁湀鐙傜嫾(鍡滆鎶鐨勫彉浣) { int skill,attackidxtemp; //DebugMainFunction="BATTLE_Battling_168"; @@ -9479,7 +9486,7 @@ static int BATTLE_Battling( int battleindex ) #endif #ifdef _Skill_MPDAMAGE - case BATTLE_COM_S_MPDAMAGE: //MP伤害 + case BATTLE_COM_S_MPDAMAGE: //MP浼ゅ { int skill; //DebugMainFunction="BATTLE_Battling_172"; @@ -9567,7 +9574,7 @@ static int BATTLE_Battling( int battleindex ) break; #endif -#ifdef _SONIC_ATTACK // WON ADD 音波攻击 +#ifdef _SONIC_ATTACK // WON ADD 闊虫尝鏀诲嚮 case BATTLE_COM_S_SONIC: { int skill, defNo2=-1, index2=-1; @@ -9733,7 +9740,7 @@ static int BATTLE_Battling( int battleindex ) //DebugMainFunction="BATTLE_Battling_210"; break; #endif - case BATTLE_COM_S_GBREAK: //破除防御 + case BATTLE_COM_S_GBREAK: //鐮撮櫎闃插尽 if( (defNo = BATTLE_TargetAdjust( battleindex, charaindex, myside )) < 0 ){ BATTLE_NoAction( battleindex, attackNo ); @@ -9743,9 +9750,9 @@ static int BATTLE_Battling( int battleindex ) ContFlg = BATTLE_S_GBreak( battleindex, attackNo, defNo ); //DebugMainFunction="BATTLE_Battling_212"; break; -#ifdef _SKILL_GUARDBREAK2//破除防御2 vincent add 2002/05/20 +#ifdef _SKILL_GUARDBREAK2//鐮撮櫎闃插尽2 vincent add 2002/05/20 case BATTLE_COM_S_GBREAK2: - //确定攻击对象 + //纭畾鏀诲嚮瀵硅薄 if( (defNo = BATTLE_TargetAdjust( battleindex, charaindex, myside )) < 0 ){ BATTLE_NoAction( battleindex, attackNo ); break; @@ -9757,8 +9764,8 @@ static int BATTLE_Battling( int battleindex ) #endif #ifdef _SKILL_SACRIFICE - case BATTLE_COM_S_SACRIFICE://救援 vincent add 2002/05/30 - //确定攻击对象 + case BATTLE_COM_S_SACRIFICE://鏁戞彺 vincent add 2002/05/30 + //纭畾鏀诲嚮瀵硅薄 if( (defNo = BATTLE_TargetAdjust( battleindex, charaindex, myside )) < 0 ){ BATTLE_NoAction( battleindex, attackNo ); break; @@ -9770,7 +9777,7 @@ static int BATTLE_Battling( int battleindex ) #endif #ifdef _SKILL_REFRESH - case BATTLE_COM_S_REFRESH://状态回复 vincent add 2002/08/08 + case BATTLE_COM_S_REFRESH://鐘舵佸洖澶 vincent add 2002/08/08 { int array; array = CHAR_GETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3); @@ -9783,7 +9790,7 @@ static int BATTLE_Battling( int battleindex ) break; #endif -#ifdef _SKILL_WEAKEN //vincent宠技:虚弱 +#ifdef _SKILL_WEAKEN //vincent瀹犳妧:铏氬急 case BATTLE_COM_S_WEAKEN: { int array; @@ -9797,7 +9804,7 @@ static int BATTLE_Battling( int battleindex ) break; #endif -#ifdef _SKILL_DEEPPOISON //vincent宠技:剧毒 +#ifdef _SKILL_DEEPPOISON //vincent瀹犳妧:鍓ф瘨 case BATTLE_COM_S_DEEPPOISON: { int array; @@ -9810,7 +9817,7 @@ static int BATTLE_Battling( int battleindex ) break; #endif -#ifdef _SKILL_BARRIER //vincent宠技:魔障 +#ifdef _SKILL_BARRIER //vincent瀹犳妧:榄旈殰 case BATTLE_COM_S_BARRIER: { int array; @@ -9823,7 +9830,7 @@ static int BATTLE_Battling( int battleindex ) break; #endif -#ifdef _SKILL_NOCAST //vincent宠技:沉默 +#ifdef _SKILL_NOCAST //vincent瀹犳妧:娌夐粯 case BATTLE_COM_S_NOCAST: { int array; @@ -9836,11 +9843,11 @@ static int BATTLE_Battling( int battleindex ) break; #endif -#ifdef _SKILL_ROAR //vincent宠技:大吼 +#ifdef _SKILL_ROAR //vincent瀹犳妧:澶у惣 case BATTLE_COM_S_ROAR: { int array; - //确定攻击对象 + //纭畾鏀诲嚮瀵硅薄 if( (defNo = BATTLE_TargetAdjust( battleindex, charaindex, myside )) < 0 ){ BATTLE_NoAction( battleindex, attackNo ); break; @@ -9872,21 +9879,21 @@ static int BATTLE_Battling( int battleindex ) } gDamageDiv = 1.0; ComboId = EntryList[i].combo; - aAttackList[0] = EntryList[i].num; // 伉旦玄卞笛尹月 - i ++; // 戚及谛井日 + aAttackList[0] = EntryList[i].num; // 銉偣銉堛伀鍔犮亪銈 + i ++; // 娆°伄浜恒亱銈 k = 1; for( ; EntryList[i].combo == ComboId && i < entrynum; i ++ ){ int charmode; - // 绣箕允月井民尼永弁 + // 瀛樺湪銇欍倠銇嬨儊銈с儍銈 if( CHAR_CHECKINDEX( EntryList[i].charaindex ) == FALSE )continue; - // 爵 卞辅笛仄化中卅中桦宁反戚尺 + // 鎴﹂棙銇弬鍔犮仐銇︺亜銇亜鍫村悎銇銇 charmode = CHAR_getWorkInt( EntryList[i].charaindex, CHAR_WORKBATTLEMODE ); if( charmode == 0 || charmode == BATTLE_CHARMODE_FINAL ){ continue; } - // 旦 □正旦唱橘荚汊↓ 质 + // 銈广儐銉笺偪銈圭暟甯稿洖寰╋紗姣掑嚘鐞 //DebugMainFunction="BATTLE_Battling_231"; BATTLE_StatusSeq( EntryList[i].charaindex ); //DebugMainFunction="BATTLE_Battling_232"; @@ -9894,7 +9901,7 @@ static int BATTLE_Battling( int battleindex ) BATTLE_MagicStatusSeq( EntryList[i].charaindex ); #endif //DebugMainFunction="BATTLE_Battling_233"; - // 仃卅井匀凶桦宁 + // 鍕曘亼銇亱銇c仧鍫村悎 if( BATTLE_CanMoveCheck( EntryList[i].charaindex ) == FALSE ){ continue; } @@ -9906,7 +9913,7 @@ static int BATTLE_Battling( int battleindex ) aAttackList[k] = -1; i--; if( k == 1 ){ - //print( "\nerr:一人combo bug\n" ); + //print( "\nerr:涓浜篶ombo bug\n" ); } //DebugMainFunction="BATTLE_Battling_234"; sprintf( szWork, "BY|r%X|", defNo ); @@ -9919,7 +9926,7 @@ static int BATTLE_Battling( int battleindex ) BATTLE_AddProfit( battleindex, aAttackList ); #endif //DebugMainFunction="BATTLE_Battling_238"; - // 反 FF 毛仁匀勾仃月 + //鏈寰屻伅 FF 銈掋亸銇c仱銇戙倠 BATTLESTR_ADD( "FF|" ); //DebugMainFunction="BATTLE_Battling_239"; break; @@ -10008,7 +10015,7 @@ static int BATTLE_Battling( int battleindex ) #endif //--------------------------------------------- default: - //print( "\nerr:奇怪的命令(%d:%d:%s)\n", charaindex, COM, + //print( "\nerr:濂囨殑鍛戒护(%d:%d:%s)\n", charaindex, COM, //CHAR_getUseName( charaindex ) ); //DebugMainFunction="BATTLE_Battling_257"; sprintf( szWork, "bg|%x|", attackNo ); @@ -10047,10 +10054,10 @@ static int BATTLE_Battling( int battleindex ) time_t timep; struct tm *p; time(&timep); - p=localtime(&timep); /*取得当地时间*/ + p=localtime(&timep); /*鍙栧緱褰撳湴鏃堕棿*/ timep = mktime(p); if(CHAR_getWorkInt(charaindex,CHAR_WORKNPCENEMYBATTLETIME)>=timep){ - CHAR_talkToCli( charaindex,-1,"因快速战斗而掉线",CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex,-1,"鍥犲揩閫熸垬鏂楄屾帀绾",CHAR_COLORYELLOW); CONNECT_setCloseRequest( getfdFromCharaIndex( charaindex ) , 1 ); //CONNECT_endOne_debug(getfdFromCharaIndex(charaindex)); //CHAR_setInt(charaindex,CHAR_MP,0); @@ -10061,9 +10068,9 @@ static int BATTLE_Battling( int battleindex ) CHAR_setWorkInt(charaindex,CHAR_WORKNPCENEMYBATTLETIME,0); } #endif -#ifdef _PETSKILL_BECOMEFOX // 判断中了媚惑术後是否已到恢复的回合数 - //if(CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)==101749) //用图号判断的话,若是人变身时,会被自动改回去 - if( CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ) //若是变成小狐狸 +#ifdef _PETSKILL_BECOMEFOX // 鍒ゆ柇涓簡濯氭儜鏈緦鏄惁宸插埌鎭㈠鐨勫洖鍚堟暟 + //if(CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)==101749) //鐢ㄥ浘鍙峰垽鏂殑璇,鑻ユ槸浜哄彉韬椂,浼氳鑷姩鏀瑰洖鍘 + if( CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ) //鑻ユ槸鍙樻垚灏忕嫄鐙 { if(CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)!=101749) CHAR_setInt( charaindex, CHAR_BASEIMAGENUMBER, 101749 ); @@ -10071,8 +10078,8 @@ static int BATTLE_Battling( int battleindex ) if(pBattle->turn - CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND) > 2) { int defNo = BATTLE_Index2No( battleindex, charaindex ); - int toNo = defNo - 5;//主人的编号 - //print("\n变身人物回复:%s,round:%d", CHAR_getChar( charaindex, CHAR_NAME), CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND)); + int toNo = defNo - 5;//涓讳汉鐨勭紪鍙 + //print("\n鍙樿韩浜虹墿鍥炲:%s,round:%d", CHAR_getChar( charaindex, CHAR_NAME), CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND)); CHAR_setInt( charaindex, CHAR_BASEIMAGENUMBER, CHAR_getInt( charaindex, CHAR_BASEBASEIMAGENUMBER)); @@ -10081,7 +10088,7 @@ static int BATTLE_Battling( int battleindex ) CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX)); CHAR_setWorkInt( charaindex, CHAR_WORKFOXROUND, -1); - //Change fix 回复宠物忘掉的技能 + //Change fix 鍥炲瀹犵墿蹇樻帀鐨勬妧鑳 //DebugMainFunction="BATTLE_Battling_260"; sprintf( szWork, "W%d", CHAR_getInt( BATTLE_No2Index( battleindex, toNo ), CHAR_DEFAULTPET ) ); //DebugMainFunction="BATTLE_Battling_261"; @@ -10097,11 +10104,11 @@ static int BATTLE_Battling( int battleindex ) char pigbuffer[128]; CHAR_setInt( charaindex, CHAR_BASEIMAGENUMBER, CHAR_getInt( charaindex, CHAR_BECOMEPIG_BBI ) ); if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > 0 ){ - sprintf(pigbuffer, "乌力时间:%d秒", CHAR_getInt( charaindex, CHAR_BECOMEPIG )); + sprintf(pigbuffer, "涔屽姏鏃堕棿:%d绉", CHAR_getInt( charaindex, CHAR_BECOMEPIG )); CHAR_talkToCli( charaindex,-1,pigbuffer,CHAR_COLORWHITE); } else{ - sprintf(pigbuffer, " 乌力时间结束,离开战斗後可解除乌力化:%d ", CHAR_getInt( charaindex, CHAR_BECOMEPIG )); + sprintf(pigbuffer, " 涔屽姏鏃堕棿缁撴潫锛岀寮鎴樻枟寰屽彲瑙i櫎涔屽姏鍖:%d ", CHAR_getInt( charaindex, CHAR_BECOMEPIG )); CHAR_talkToCli( charaindex,-1,pigbuffer,CHAR_COLORWHITE); } } @@ -10110,16 +10117,16 @@ static int BATTLE_Battling( int battleindex ) #ifdef _PROFESSION_ADDSKILL { /* for(i=0;i<20;i++){ - if( pBattle->ice_use[i] ){//冰爆准备中 - print("\n冰爆准备中"); - if( pBattle->ice_bout[i] > 0 ){//冰爆倒数 - print("\n冰爆倒数"); - if( --pBattle->ice_bout[i] == 0 ){//放冰爆 - print("\n放冰爆"); + if( pBattle->ice_use[i] ){//鍐扮垎鍑嗗涓 + print("\n鍐扮垎鍑嗗涓"); + if( pBattle->ice_bout[i] > 0 ){//鍐扮垎鍊掓暟 + print("\n鍐扮垎鍊掓暟"); + if( --pBattle->ice_bout[i] == 0 ){//鏀惧啺鐖 + print("\n鏀惧啺鐖"); pBattle->ice_use[i] = FALSE; if( CHAR_CHECKINDEX(pBattle->ice_charaindex[i]) ){ int battlecom = CHAR_getWorkInt( pBattle->ice_charaindex[i], CHAR_WORKBATTLECOM1 ); - print("\n冰爆"); + print("\n鍐扮垎"); print("\nbattlecom:%d",battlecom); CHAR_setWorkInt( pBattle->ice_charaindex[i], CHAR_WORKBATTLECOM1, BATTLE_COM_S_ICE_CRACK ); CHAR_SETWORKINT_HIGH( pBattle->ice_charaindex[i], CHAR_WORKBATTLECOM3, pBattle->ice_level[i] ); @@ -10141,22 +10148,22 @@ static int BATTLE_Battling( int battleindex ) int wind_boundary = GETHIGHVALUE( CHAR_getWorkInt( charaindex, CHAR_WORKFIXWINDAT_BOUNDARY ) ); int boundary_turn=0; BOOL boundaryclear = FALSE; - if( earth_boundary > 0 ){//地结界 + if( earth_boundary > 0 ){//鍦扮粨鐣 //DebugMainFunction="BATTLE_Battling_263"; boundary_turn = GETLOWVALUE( CHAR_getWorkInt( charaindex, CHAR_WORKFIXEARTHAT_BOUNDARY ) ) - 1; //DebugMainFunction="BATTLE_Battling_264"; -// print("\n地:%d ",boundary_turn ); +// print("\n鍦:%d ",boundary_turn ); if( boundary_turn <= -1 ) CHAR_setWorkInt( charaindex, CHAR_WORKFIXEARTHAT_BOUNDARY, 0 ),boundaryclear = TRUE; else CHAR_setWorkInt( charaindex, CHAR_WORKFIXEARTHAT_BOUNDARY, MAKE2VALUE(earth_boundary,boundary_turn) ); } - if( water_boundary > 0 ){//水结界 + if( water_boundary > 0 ){//姘寸粨鐣 //DebugMainFunction="BATTLE_Battling_265"; boundary_turn = GETLOWVALUE( CHAR_getWorkInt( charaindex, CHAR_WORKFIXWATERAT_BOUNDARY ) ) - 1; //DebugMainFunction="BATTLE_Battling_266"; -// print("\n水:%d ",boundary_turn ); +// print("\n姘:%d ",boundary_turn ); if( boundary_turn <= -1 ) CHAR_setWorkInt( charaindex, CHAR_WORKFIXWATERAT_BOUNDARY, 0 ),boundaryclear = TRUE; @@ -10164,10 +10171,10 @@ static int BATTLE_Battling( int battleindex ) CHAR_setWorkInt( charaindex, CHAR_WORKFIXWATERAT_BOUNDARY, MAKE2VALUE(water_boundary,boundary_turn) ); //DebugMainFunction="BATTLE_Battling_267"; } - if( fire_boundary > 0 ){//火结界 + if( fire_boundary > 0 ){//鐏粨鐣 //DebugMainFunction="BATTLE_Battling_268"; boundary_turn = GETLOWVALUE( CHAR_getWorkInt( charaindex, CHAR_WORKFIXFIREAT_BOUNDARY ) ) - 1; -// print("\n火:%d ",boundary_turn ); +// print("\n鐏:%d ",boundary_turn ); //DebugMainFunction="BATTLE_Battling_269"; if( boundary_turn <= -1 ) CHAR_setWorkInt( charaindex, CHAR_WORKFIXFIREAT_BOUNDARY, 0 ),boundaryclear = TRUE; @@ -10175,10 +10182,10 @@ static int BATTLE_Battling( int battleindex ) CHAR_setWorkInt( charaindex, CHAR_WORKFIXFIREAT_BOUNDARY, MAKE2VALUE(fire_boundary,boundary_turn) ); } - if( wind_boundary > 0 ){//风结界 + if( wind_boundary > 0 ){//椋庣粨鐣 //DebugMainFunction="BATTLE_Battling_270"; boundary_turn = GETLOWVALUE( CHAR_getWorkInt( charaindex, CHAR_WORKFIXWINDAT_BOUNDARY ) ) - 1; -// print("\n风:%d ",boundary_turn ); +// print("\n椋:%d ",boundary_turn ); //DebugMainFunction="BATTLE_Battling_271"; if( boundary_turn <= -1 ) CHAR_setWorkInt( charaindex, CHAR_WORKFIXWINDAT_BOUNDARY, 0 ),boundaryclear = TRUE; @@ -10192,7 +10199,7 @@ static int BATTLE_Battling( int battleindex ) && GETHIGHVALUE( CHAR_getWorkInt( charaindex, CHAR_WORKFIXWINDAT_BOUNDARY ) ) == 0 && boundaryclear ){ int toNo = BATTLE_Index2No( battleindex, charaindex ); - if( toNo < 10 )//右方 + if( toNo < 10 )//鍙虫柟 snprintf( szWork, sizeof( szWork ), "Ba|%X|%X|", 0,1 ); else snprintf( szWork, sizeof( szWork ), "Ba|%X|%X|", 0,0 ); @@ -10215,7 +10222,7 @@ static int BATTLE_Battling( int battleindex ) userindex = BATTLE_getBattleDieIndex( battleindex, k); //DebugMainFunction="BATTLE_Battling_277"; if( !CHAR_CHECKINDEX( userindex) ) continue; - //Change fix CHECK_ITEM_RELIFE里面有检查了,这里不用 + //Change fix CHECK_ITEM_RELIFE閲岄潰鏈夋鏌ヤ簡,杩欓噷涓嶇敤 //if( CHAR_getFlg( userindex, CHAR_ISDIE ) == FALSE ) // continue; if( CHAR_getInt( userindex, CHAR_HP) > 0 ) @@ -10238,16 +10245,16 @@ static int BATTLE_Battling( int battleindex ) //DebugMainFunction="BATTLE_Battling_282"; BATTLESTR_ADD( szBadStatusString ); //DebugMainFunction="BATTLE_Battling_283"; - BATTLE_AddProfit( battleindex, aAttackList );//取得经验值 + BATTLE_AddProfit( battleindex, aAttackList );//鍙栧緱缁忛獙鍊 //DebugMainFunction="BATTLE_Battling_284"; len = pszBattleTop - szBattleString; if( AllSize + len >= sizeof( szAllBattleString ) - 1 ){ - // 引匹中匀凶井日窒手仄卅中 + // 寮曞尮涓寑鍑朵簳鏃ョ獟鎵嬩粍鍗呬腑 }else{ //DebugMainFunction="BATTLE_Battling_285"; memcpy( szAllBattleString+AllSize, szBattleString, len ); //DebugMainFunction="BATTLE_Battling_286"; - szAllBattleString[AllSize+len] = 0;// NULL 毛本永玄 + szAllBattleString[AllSize+len] = 0;// NULL 姣涙湰姘哥巹 AllSize += len; } //DebugMainFunction="BATTLE_Battling_287"; @@ -10264,7 +10271,7 @@ static int BATTLE_Battling( int battleindex ) if(!CHAR_CHECKINDEX(dieindex)) continue; if(CHAR_getFlg(dieindex,CHAR_ISDIE) == FALSE) continue; if(CHAR_getInt(dieindex,CHAR_HP) > 0) continue; - // 雷尔死亡,变身 + // 闆峰皵姝讳骸,鍙樿韩 if(CHAR_getInt(dieindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(dieindex,CHAR_BASEBASEIMAGENUMBER) == 101814){ //DebugMainFunction="BATTLE_Battling_289"; @@ -10283,7 +10290,7 @@ static int BATTLE_Battling( int battleindex ) if( pBattle->att_count <= 0 ){ pBattle->field_att = BATTLE_ATTR_NONE; //snprintf( szBuffer, sizeof(szBuffer), - // "field回复成无属性。" + // "field鍥炲鎴愭棤灞炴с" //); //BATTLE_BroadCast( battleindex, szBuffer, CHAR_COLORYELLOW ); //DebugMainFunction="BATTLE_Battling_291"; @@ -10305,7 +10312,7 @@ static int BATTLE_Battling( int battleindex ) pWatchBattle = pBattle->pNext; for( ; pWatchBattle ; pWatchBattle = pWatchBattle->pNext ){ if( BATTLE_CHECKADDRESS( pWatchBattle ) == FALSE ){ - //print( "err:观战battle address错误(%p)\n", pWatchBattle ); + //print( "err:瑙傛垬battle address閿欒(%p)\n", pWatchBattle ); break; } for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ @@ -10393,13 +10400,13 @@ BOOL CHECK_PET_RELIFE( int battleindex, int petindex) if( CHAR_getWorkInt( petindex, CHAR_WORKSPETRELIFE) != 0 ) return FALSE; for( i=0;iskill, SKILL_LEVEL); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_M( skill_level ); @@ -10526,18 +10533,18 @@ void BATTLE_ProfessionStatus_init( int battleindex, int charaindex ) if( add_practice > 25 ) add_practice = 25; add_practice += old_practice; - // 因为old_practice=0所以add_practice为2~25 + // 鍥犱负old_practice=0鎵浠dd_practice涓2~25 CHAR_setWorkInt( charaindex, CHAR_WORK_F_PROFICIENCY, add_practice ); }else - // 冰熟练度 + // 鍐扮啛缁冨害 if( (strcmp( skill_name , "PROFESSION_ICE_PRACTICE" )) == 0 ){ int old_practice = CHAR_getInt( charaindex, PROFESSION_ICE_P ); int add_practice = 0; int skill_level = 0; - // 技能等级 + // 鎶鑳界瓑绾 hskill = CHAR_getCharHaveSkill( charaindex, i ); skill_level = SKILL_getInt( &hskill->skill, SKILL_LEVEL); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_M( skill_level ); @@ -10551,13 +10558,13 @@ void BATTLE_ProfessionStatus_init( int battleindex, int charaindex ) CHAR_setWorkInt( charaindex, CHAR_WORK_I_PROFICIENCY, add_practice ); }else - // 雷熟练度 + // 闆风啛缁冨害 if( (strcmp( skill_name , "PROFESSION_THUNDER_PRACTICE" )) == 0 ){ int old_practice = CHAR_getInt( charaindex, PROFESSION_THUNDER_P ); int add_practice = 0; int skill_level = 0; - // 技能等级 + // 鎶鑳界瓑绾 hskill = CHAR_getCharHaveSkill( charaindex, i ); skill_level = SKILL_getInt( &hskill->skill, SKILL_LEVEL); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_M( skill_level ); @@ -10571,13 +10578,13 @@ void BATTLE_ProfessionStatus_init( int battleindex, int charaindex ) CHAR_setWorkInt( charaindex, CHAR_WORK_T_PROFICIENCY, add_practice ); }else - // 回避 + // 鍥為伩 if( (strcmp( skill_name , "PROFESSION_AVOID" )) == 0 ){ int skill_level = 0; if( profession_class != PROFESSION_SKILL_getInt( Pskillid, PROFESSION_SKILL_PROFESSION_CLASS) ) return; - // 技能等级 + // 鎶鑳界瓑绾 hskill = CHAR_getCharHaveSkill( charaindex, i ); skill_level = SKILL_getInt( &hskill->skill, SKILL_LEVEL); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); @@ -10592,14 +10599,14 @@ void BATTLE_ProfessionStatus_init( int battleindex, int charaindex ) CHAR_setWorkInt( charaindex, CHAR_WORKMOD_P_DUCK, value ); }else - // 格档 + // 鏍兼。 if( (strcmp( skill_name , "PROFESSION_DEFLECT" )) == 0 ){ int skill_level = 0; int old_value = 0, add_value = 0; if( profession_class != PROFESSION_SKILL_getInt( Pskillid, PROFESSION_SKILL_PROFESSION_CLASS) ) return; - // 技能等级 + // 鎶鑳界瓑绾 hskill = CHAR_getCharHaveSkill( charaindex, i ); skill_level = SKILL_getInt( &hskill->skill, SKILL_LEVEL); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); @@ -10611,40 +10618,40 @@ void BATTLE_ProfessionStatus_init( int battleindex, int charaindex ) CHAR_complianceParameter( charaindex ); }else - // 武器专精 + // 姝﹀櫒涓撶簿 if( (strcmp( skill_name , "PROFESSION_WEAPON_FOCUS" )) == 0 ){ int skill_level = 0; rate = 0; if( profession_class != PROFESSION_SKILL_getInt( Pskillid, PROFESSION_SKILL_PROFESSION_CLASS) ) continue; - // 技能等级 + // 鎶鑳界瓑绾 hskill = CHAR_getCharHaveSkill( charaindex, i ); skill_level = SKILL_getInt( &hskill->skill, SKILL_LEVEL); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); - // 技能参数 + // 鎶鑳藉弬鏁 pszOption = PROFESSION_SKILL_getChar( Pskillid, PROFESSION_SKILL_OPTION); if( pszOption == "\0" ) continue; - // 装备武器 + // 瑁呭姝﹀櫒 WeaponType = BATTLE_GetWepon( charaindex ); switch( WeaponType ){ case ITEM_AXE: - if( (pszP=strstr( pszOption, "斧" ))!=NULL) rate = 1; break; + if( (pszP=strstr( pszOption, "鏂" ))!=NULL) rate = 1; break; case ITEM_CLUB: - if( (pszP=strstr( pszOption, "棍" ))!=NULL) rate = 1; break; + if( (pszP=strstr( pszOption, "妫" ))!=NULL) rate = 1; break; case ITEM_SPEAR: - if( (pszP=strstr( pszOption, "枪" ))!=NULL) rate = 1; break; + if( (pszP=strstr( pszOption, "鏋" ))!=NULL) rate = 1; break; case ITEM_BOW: - if( (pszP=strstr( pszOption, "弓" ))!=NULL) rate = 1; break; - case ITEM_BOOMERANG: // 回旋标 - if( (pszP=strstr( pszOption, "镖" ))!=NULL) rate = 1; break; - case ITEM_BOUNDTHROW: // 投掷斧头 - if( (pszP=strstr( pszOption, "投" ))!=NULL) rate = 1; break; - case ITEM_BREAKTHROW: // 投掷石 - if( (pszP=strstr( pszOption, "石" ))!=NULL) rate = 1; break; + if( (pszP=strstr( pszOption, "寮" ))!=NULL) rate = 1; break; + case ITEM_BOOMERANG: // 鍥炴棆鏍 + if( (pszP=strstr( pszOption, "闀" ))!=NULL) rate = 1; break; + case ITEM_BOUNDTHROW: // 鎶曟幏鏂уご + if( (pszP=strstr( pszOption, "鎶" ))!=NULL) rate = 1; break; + case ITEM_BREAKTHROW: // 鎶曟幏鐭 + if( (pszP=strstr( pszOption, "鐭" ))!=NULL) rate = 1; break; default: rate = 0; break; } @@ -10677,15 +10684,15 @@ void BATTLE_ProfessionStatusSeq( int battleindex, int charaindex ) CHAR_HaveSkill* hskill; - int status_table[9]={ 2, //麻痹 - 3, //睡眠 - 4, //石化 - 12, //晕眩 - 13, //缠绕 - 14, //天罗 - 15, //冰暴 - 17, //冰箭 - 23, }; //雷附体 + int status_table[9]={ 2, //楹荤椆 + 3, //鐫$湢 + 4, //鐭冲寲 + 12, //鏅曠湬 + 13, //缂犵粫 + 14, //澶╃綏 + 15, //鍐版毚 + 17, //鍐扮 + 23, }; //闆烽檮浣 #ifdef _PETSKILL_DAMAGETOHP /* { @@ -10694,14 +10701,14 @@ void BATTLE_ProfessionStatusSeq( int battleindex, int charaindex ) pet = CHAR_getInt( charaindex, CHAR_DEFAULTPET ); if( pet >= 0 ){ sprintf( msg, "o%d", pet ); - //if(CHAR_getInt( petindex, CHAR_PETID) == "狼" //宠物ID + //if(CHAR_getInt( petindex, CHAR_PETID) == "鐙" //瀹犵墿ID // && CHAR_getInt( petindex, CHAR_HP) ) CHAR_sendStatusString( charaindex, msg ); pindex = CHAR_getCharPet( charaindex, pet ); - print("\n宠物名:%s",CHAR_getChar( pindex, CHAR_NAME)); + print("\n瀹犵墿鍚:%s",CHAR_getChar( pindex, CHAR_NAME)); } else - print("\无宠物"); + print("\鏃犲疇鐗"); } */ #endif @@ -10713,21 +10720,21 @@ void BATTLE_ProfessionStatusSeq( int battleindex, int charaindex ) for( i=0; i 0 ){ flag=1; @@ -10736,7 +10743,7 @@ void BATTLE_ProfessionStatusSeq( int battleindex, int charaindex ) } if( flag > 0 ){ - // 技能等级 + // 鎶鑳界瓑绾 hskill = CHAR_getCharHaveSkill( charaindex, i ); skill_level = SKILL_getInt( &hskill->skill, SKILL_LEVEL); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_M( skill_level ); @@ -10765,7 +10772,7 @@ void BATTLE_ProfessionStatusSeq( int battleindex, int charaindex ) } } - // 陷阱 + // 闄烽槺 if( (strcmp( skill_name , "PROFESSION_TRAP" )) == 0 ){ int count=0; @@ -10857,7 +10864,7 @@ char* SearchFmWar(int charaindex,int fmwarselect) if(fmwarfloor == 1042 && fmlistpage*6+1-6<=afmwarnum){ int i=fmlistpage*6+1-6+1; char fmwarbuff[1024]; - sprintf(fmwarbuff,"2\n    「请选择您需要观战的队伍」\n   队长名称  VS  队长名称"); + sprintf(fmwarbuff,"2\n銆銆銆 銆岃閫夋嫨鎮ㄩ渶瑕佽鎴樼殑闃熶紞銆峔n銆銆銆闃熼暱鍚嶇О銆銆锛讹汲銆銆闃熼暱鍚嶇О"); char name1[64],name2[64],newname1[64],fmwarindexbuf[32]; memset(newname1, 0, sizeof(newname1)); int fmwarindex = -1; @@ -10879,15 +10886,15 @@ char* SearchFmWar(int charaindex,int fmwarselect) strcat(newname1," "); } if(strlen(newname1)<1) - sprintf(fmwarbuff,"%s\n%s VS %s",fmwarbuff,name1,name2); + sprintf(fmwarbuff,"%s\n%s 锛讹汲 %s",fmwarbuff,name1,name2); else - sprintf(fmwarbuff,"%s\n%s%s VS %s",fmwarbuff,newname1,name1,name2); + sprintf(fmwarbuff,"%s\n%s%s 锛讹汲 %s",fmwarbuff,newname1,name1,name2); } return fmwarbuff; }else if(fmwarfloor == 2032 && fmlistpage*6+1-6<=bfmwarnum){ int i=fmlistpage*6+1-6+1; char fmwarbuff[1024]; - sprintf(fmwarbuff,"2\n    「请选择您需要观战的队伍」\n   队长名称  VS  队长名称"); + sprintf(fmwarbuff,"2\n銆銆銆 銆岃閫夋嫨鎮ㄩ渶瑕佽鎴樼殑闃熶紞銆峔n銆銆銆闃熼暱鍚嶇О銆銆锛讹汲銆銆闃熼暱鍚嶇О"); char name1[64],name2[64],newname1[64],fmwarindexbuf[32]; memset(newname1, 0, sizeof(newname1)); int fmwarindex = -1; @@ -10909,15 +10916,15 @@ char* SearchFmWar(int charaindex,int fmwarselect) strcat(newname1," "); } if(strlen(newname1)<1) - sprintf(fmwarbuff,"%s\n%s VS %s",fmwarbuff,name1,name2); + sprintf(fmwarbuff,"%s\n%s 锛讹汲 %s",fmwarbuff,name1,name2); else - sprintf(fmwarbuff,"%s\n%s%s VS %s",fmwarbuff,newname1,name1,name2); + sprintf(fmwarbuff,"%s\n%s%s 锛讹汲 %s",fmwarbuff,newname1,name1,name2); } return fmwarbuff; }else if(fmwarfloor == 3032 && fmlistpage*6+1-6<=cfmwarnum){ int i=fmlistpage*6+1-6+1; char fmwarbuff[1024]; - sprintf(fmwarbuff,"2\n    「请选择您需要观战的队伍」\n   队长名称  VS  队长名称"); + sprintf(fmwarbuff,"2\n銆銆銆 銆岃閫夋嫨鎮ㄩ渶瑕佽鎴樼殑闃熶紞銆峔n銆銆銆闃熼暱鍚嶇О銆銆锛讹汲銆銆闃熼暱鍚嶇О"); char name1[64],name2[64],newname1[64],fmwarindexbuf[32]; memset(newname1, 0, sizeof(newname1)); int fmwarindex = -1; @@ -10939,15 +10946,15 @@ char* SearchFmWar(int charaindex,int fmwarselect) strcat(newname1," "); } if(strlen(newname1)<1) - sprintf(fmwarbuff,"%s\n%s VS %s",fmwarbuff,name1,name2); + sprintf(fmwarbuff,"%s\n%s 锛讹汲 %s",fmwarbuff,name1,name2); else - sprintf(fmwarbuff,"%s\n%s%s VS %s",fmwarbuff,newname1,name1,name2); + sprintf(fmwarbuff,"%s\n%s%s 锛讹汲 %s",fmwarbuff,newname1,name1,name2); } return fmwarbuff; }else if(fmwarfloor == 4032 && fmlistpage*6+1-6<=dfmwarnum){ int i=fmlistpage*6+1-6+1; char fmwarbuff[1024]; - sprintf(fmwarbuff,"2\n    「请选择您需要观战的队伍」\n   队长名称  VS  队长名称"); + sprintf(fmwarbuff,"2\n銆銆銆 銆岃閫夋嫨鎮ㄩ渶瑕佽鎴樼殑闃熶紞銆峔n銆銆銆闃熼暱鍚嶇О銆銆锛讹汲銆銆闃熼暱鍚嶇О"); char name1[64],name2[64],newname1[64],fmwarindexbuf[32]; memset(newname1, 0, sizeof(newname1)); int fmwarindex = -1; @@ -10969,15 +10976,15 @@ char* SearchFmWar(int charaindex,int fmwarselect) strcat(newname1," "); } if(strlen(newname1)<1) - sprintf(fmwarbuff,"%s\n%s VS %s",fmwarbuff,name1,name2); + sprintf(fmwarbuff,"%s\n%s 锛讹汲 %s",fmwarbuff,name1,name2); else - sprintf(fmwarbuff,"%s\n%s%s VS %s",fmwarbuff,newname1,name1,name2); + sprintf(fmwarbuff,"%s\n%s%s 锛讹汲 %s",fmwarbuff,newname1,name1,name2); } return fmwarbuff; }else if(fmwarfloor == 20000 && fmlistpage*6+1-6<=efmwarnum){ int i=fmlistpage*6+1-6+1; char fmwarbuff[1024]; - sprintf(fmwarbuff,"2\n    「请选择您需要观战的队伍」\n   队长名称  VS  队长名称"); + sprintf(fmwarbuff,"2\n銆銆銆 銆岃閫夋嫨鎮ㄩ渶瑕佽鎴樼殑闃熶紞銆峔n銆銆銆闃熼暱鍚嶇О銆銆锛讹汲銆銆闃熼暱鍚嶇О"); char name1[64],name2[64],newname1[64],fmwarindexbuf[32]; memset(newname1, 0, sizeof(newname1)); int fmwarindex = -1; @@ -10999,15 +11006,15 @@ char* SearchFmWar(int charaindex,int fmwarselect) strcat(newname1," "); } if(strlen(newname1)<1) - sprintf(fmwarbuff,"%s\n%s VS %s",fmwarbuff,name1,name2); + sprintf(fmwarbuff,"%s\n%s 锛讹汲 %s",fmwarbuff,name1,name2); else - sprintf(fmwarbuff,"%s\n%s%s VS %s",fmwarbuff,newname1,name1,name2); + sprintf(fmwarbuff,"%s\n%s%s 锛讹汲 %s",fmwarbuff,newname1,name1,name2); } return fmwarbuff; }else if(fmwarfloor == 51000 && fmlistpage*6+1-6<=ffmwarnum){ int i=fmlistpage*6+1-6+1; char fmwarbuff[1024]; - sprintf(fmwarbuff,"2\n    「请选择您需要观战的队伍」\n   队长名称  VS  队长名称"); + sprintf(fmwarbuff,"2\n銆銆銆 銆岃閫夋嫨鎮ㄩ渶瑕佽鎴樼殑闃熶紞銆峔n銆銆銆闃熼暱鍚嶇О銆銆锛讹汲銆銆闃熼暱鍚嶇О"); char name1[64],name2[64],newname1[64],fmwarindexbuf[32]; memset(newname1, 0, sizeof(newname1)); int fmwarindex = -1; @@ -11029,9 +11036,9 @@ char* SearchFmWar(int charaindex,int fmwarselect) strcat(newname1," "); } if(strlen(newname1)<1) - sprintf(fmwarbuff,"%s\n%s VS %s",fmwarbuff,name1,name2); + sprintf(fmwarbuff,"%s\n%s 锛讹汲 %s",fmwarbuff,name1,name2); else - sprintf(fmwarbuff,"%s\n%s%s VS %s",fmwarbuff,newname1,name1,name2); + sprintf(fmwarbuff,"%s\n%s%s 锛讹汲 %s",fmwarbuff,newname1,name1,name2); } return fmwarbuff; } @@ -11155,7 +11162,7 @@ void Enemy_setStayLoop(int charaindex) ch = CHAR_getCharPointer( charaindex); if( ch == NULL ) return; strcpysafe( ch->charfunctable[CHAR_LOOPFUNCTEMP1].string, - sizeof( ch->charfunctable[CHAR_LOOPFUNCTEMP1]), "CHAR_BattleStayLoop");//战斗 + sizeof( ch->charfunctable[CHAR_LOOPFUNCTEMP1]), "CHAR_BattleStayLoop");//鎴樻枟 CHAR_setInt( charaindex, CHAR_LOOPINTERVAL, getOfflineBattleTime()); CHAR_constructFunctable( charaindex); } diff --git a/battle/battle_ai.c b/battle/battle_ai.c index 4795efc..6e1e69a 100644 --- a/battle/battle_ai.c +++ b/battle/battle_ai.c @@ -8,8 +8,9 @@ #include "pet_skill.h" struct B_AI_RESULT { - BATTLE_COM command; /* 窒毛允月井 */ - int target; /* 簿卞 */ + BATTLE_COM command; /* 浣曘倰銇欍倠銇 */ + int target; /* 瑾般伀 */ + }; static int BATTLE_ai_normal( int, int, BATTLE_ENTRY *,struct B_AI_RESULT *); @@ -38,7 +39,7 @@ int BATTLE_ai_all( int battleindex, int side, int turn) mode = CHAR_getWorkInt( charaindex, CHAR_WORKTACTICS); if( mode < 0 || mode >= arraysizeof( functbl)){ - //print( "BATTLE_ai_all 中,战斗逻辑模式很奇怪(%s)(%d)\n", + //print( "BATTLE_ai_all 涓,鎴樻枟閫昏緫妯″紡寰堝鎬(%s)(%d)\n", //CHAR_getUseName( charaindex ), mode ); mode = 1; } @@ -107,22 +108,23 @@ int BATTLE_ai_one( int charaindex, int battleindex, int side, int turn) struct B_AI_RESULT result; int mode; - /* 由仿丢□正民尼永弁 */ + /* 銉戙儵銉°兗銈裤儊銈с儍銈 */ if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return BATTLE_ERR_BATTLEINDEX; if( BATTLE_CHECKSIDE( side ) == FALSE )return BATTLE_ERR_PARAM; if( BATTLE_CHECKSIDE( side ^1) == FALSE )return BATTLE_ERR_PARAM; - /* 及扔奶玉隋垫丹 */ - /* 衬平乓仿动陆反 仃月 */ + /* 涓℃柟銇偟銈ゃ儔鍏辫銇 */ + /* 鏁点偔銉c儵浠ュ銇姕銇戙倠 */ + if( BattleArray[battleindex].Side[side].type != BATTLE_S_TYPE_ENEMY ) return 0; - /* 覆础扔奶玉 */ + /* 鍙嶅鍋淬偟銈ゃ儔 */ pEntry = BattleArray[battleindex].Side[side^1].Entry; mode = CHAR_getWorkInt( charaindex, CHAR_WORKTACTICS); - /* 质 毛蕊曰坌仃月 */ + /* 鍑︾悊銈掓尟銈婂垎銇戙倠 */ if( mode < 0 || mode >= arraysizeof( functbl)) return FALSE; - /* 质 毛蕊曰坌仃月 */ + /* 鍑︾悊銈掓尟銈婂垎銇戙倠 */ if( functbl[mode] != NULL ) { rc = functbl[mode]( turn, charaindex, pEntry, &result); } @@ -137,13 +139,13 @@ int BATTLE_ai_one( int charaindex, int battleindex, int side, int turn) return TRUE; } -/* 骚卞锹澎毛瑁户月 */ +/* 鏅氥伀鐩告墜銈掓焙銈併倠 */ -#define B_AI_NORMAL_ATTACKOPTION "at" /* 猾左皿扑亦件 */ -#define B_AI_NORMAL_GUARDOPTION "gu" /* 豢左皿扑亦件 */ -#define B_AI_NORMAL_MAGICOPTION "ma" /* 热诸左皿扑亦件 */ -#define B_AI_NORMAL_ESCAPEOPTION "es" /* 仆月左皿扑亦件 */ -#define B_AI_NORMAL_WAZAOPTION "wa" /* 左皿扑亦件 */ +#define B_AI_NORMAL_ATTACKOPTION "at" /* 鏀绘拑銈儣銈枫儳銉 */ +#define B_AI_NORMAL_GUARDOPTION "gu" /* 闃插尽銈儣銈枫儳銉 */ +#define B_AI_NORMAL_MAGICOPTION "ma" /* 鍛銈儣銈枫儳銉 */ +#define B_AI_NORMAL_ESCAPEOPTION "es" /* 閫冦亽銈嬨偑銉椼偡銉с兂 */ +#define B_AI_NORMAL_WAZAOPTION "wa" /* 鎶銈儣銈枫儳銉 */ #ifdef _ENEMY_ATTACK_AI #define B_AI_NORMAL_RANDAOPTION "rn" #define B_AI_NORMAL_RANDOMOPTIONNUM 1 @@ -155,7 +157,7 @@ int BATTLE_ai_one( int charaindex, int battleindex, int side, int turn) #define B_AI_NORMAL_ESCAPESUBOPTIONNUM 1 #define B_AI_NORMAL_WAZASUBOPTIONNUM 7 -/* 左皿扑亦件娄醒及 侬及烂聒 */ +/* 銈儣銈枫儳銉冲紩鏁般伄鏂囧瓧銇畾缇 */ #define B_AI_NORMAL_TARGET_ALL 1 #define B_AI_NORMAL_TARGET_PLAYER 2 #define B_AI_NORMAL_TARGET_PET 3 @@ -203,11 +205,11 @@ static int BATTLE_ai_normal( int turn, int charaindex, BATTLE_ENTRY *pEntry, struct B_AI_RESULT *result) { - int at[B_AI_NORMAL_ATTACKSUBOPTIONNUM] = { 0,0,0}; /* 猾左皿扑亦件 */ - int gu[B_AI_NORMAL_GUARDSUBOPTIONNUM] = {0}; /* 左皿扑亦件 */ - int ma[B_AI_NORMAL_MAGICSUBOPTIONNUM] = {0}; /* 左皿扑亦件 */ - int es[B_AI_NORMAL_ESCAPESUBOPTIONNUM] = {0}; /* 左皿扑亦件 */ - int wa[B_AI_NORMAL_WAZASUBOPTIONNUM] = {0,0,0,0, 0,0,0};/* 左皿扑亦件 */ + int at[B_AI_NORMAL_ATTACKSUBOPTIONNUM] = { 0,0,0}; /* 鏀绘拑銈儣銈枫儳銉 */ + int gu[B_AI_NORMAL_GUARDSUBOPTIONNUM] = {0}; /* 銈儣銈枫儳銉 */ + int ma[B_AI_NORMAL_MAGICSUBOPTIONNUM] = {0}; /* 銈儣銈枫儳銉 */ + int es[B_AI_NORMAL_ESCAPESUBOPTIONNUM] = {0}; /* 銈儣銈枫儳銉 */ + int wa[B_AI_NORMAL_WAZASUBOPTIONNUM] = {0,0,0,0, 0,0,0};/* 銈儣銈枫儳銉 */ #ifdef _ENEMY_ATTACK_AI int rn[B_AI_NORMAL_RANDOMOPTIONNUM] = {1}; #endif @@ -221,7 +223,7 @@ static int BATTLE_ai_normal( int turn, int charaindex, char buff2[256]; if( turn == 1 ) { - //print( "应该没这回事。\n" ); + //print( "搴旇娌¤繖鍥炰簨銆俓n" ); return FALSE; } if( NPC_Util_GetStrFromStrWithDelim( CHAR_getWorkChar( charaindex, CHAR_WORKBATTLE_TACTICSOPTION), @@ -322,7 +324,7 @@ static int BATTLE_ai_normal( int turn, int charaindex, if( wa[i] != 0 )break; } if( i >= B_AI_NORMAL_WAZASUBOPTIONNUM ){ - //print( "无指定任何的攻击方式。\n" ); + //print( "鏃犳寚瀹氫换浣曠殑鏀诲嚮鏂瑰紡銆俓n" ); return FALSE; } } @@ -513,7 +515,7 @@ static int BATTLE_ai_normal( int turn, int charaindex, result->command = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ); return TRUE; }else{ -// print( "此项技能尚未设定(%s):(%d)\n", +// print( "姝ら」鎶鑳藉皻鏈瀹(%s):(%d)\n", // CHAR_getUseName( charaindex), mode - B_AI_WAZAMODE0 ); return FALSE; } diff --git a/battle/battle_command.c b/battle/battle_command.c index e7b1605..56deeb7 100644 --- a/battle/battle_command.c +++ b/battle/battle_command.c @@ -12,7 +12,7 @@ #include "magic_base.h" #include "handletime.h" -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 #include "profession_skill.h" #endif int NowBattlerFd; @@ -24,21 +24,21 @@ int BATTLE_MpDown( int charaindex, int down ) #else { int mp, battleindex; - // 爵 反覆谛爵井}???爵井 + // 鎴﹂棙銇浜烘垿銇嬨???鎴︺亱 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return TRUE; - // 覆谛爵元扎卅井匀凶日?? + // 瀵句汉鎴︺仒銈冦仾銇嬨仯銇熴倝?? if( BattleArray[battleindex].type != BATTLE_TYPE_P_vs_P ){ return TRUE; } - // ??毛蛹日六月井" + // ??銈掓笡銈夈仜銈嬨亱锛 mp = CHAR_getInt( charaindex, CHAR_MP ); if( mp < down ){ - // 蛹日六卅中及匹窒手仄卅中午允月 + // 娓涖倝銇涖仾銇勩伄銇т綍銈傘仐銇亜銇ㄣ仚銈 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); - // 戊穴件玉OK及隙烂 + // 銈炽優銉炽儔OK銇寚瀹 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); return FALSE; } @@ -55,7 +55,7 @@ void BattleCommandDispach( int fd, char *command ) int EscapeFree = BATTLE_FLG_FREEDP; int charaindex = CONNECT_getCharaindex(fd); char szBuffer[256]=""; -#ifdef _FIXWOLF // Syu ADD 修正狼人变身Bug +#ifdef _FIXWOLF // Syu ADD 淇鐙间汉鍙樿韩Bug int i , j , pindex; BATTLE_ENTRY *pEntry; #endif @@ -86,10 +86,10 @@ void BattleCommandDispach( int fd, char *command ) EscapeFree = 0; if (CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEWATCH )!=TRUE){ CHAR_talkToCli( charaindex, -1, - "华义大魔王使出定身法,定定定定定定把你定在战斗里。", CHAR_COLORYELLOW ); + "鍗庝箟澶ч瓟鐜嬩娇鍑哄畾韬硶锛屽畾瀹氬畾瀹氬畾瀹氭妸浣犲畾鍦ㄦ垬鏂楅噷銆", CHAR_COLORYELLOW ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_GUARD ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //sprintf( szBuffer, "Command(%s)(防御)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(闃插尽)", CHAR_getUseName( charaindex ) ); endFlg = 1; BATTLE_MpDown( charaindex, 2 ); }else{ @@ -108,7 +108,7 @@ void BattleCommandDispach( int fd, char *command ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_ESCAPE ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //sprintf( szBuffer, "Command(%s)(逃跑)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(閫冭窇)", CHAR_getUseName( charaindex ) ); endFlg = 1; BATTLE_MpDown( charaindex, 20 ); @@ -142,12 +142,12 @@ void BattleCommandDispach( int fd, char *command ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_BOOMERANG ); #ifdef _PETSKILL_BECOMEFOX if( CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER)==101749 - || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //若是变成小狐狸不可以使用回力标 + || CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ){ //鑻ユ槸鍙樻垚灏忕嫄鐙镐笉鍙互浣跨敤鍥炲姏鏍 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); } #endif #ifdef _PETSKILL_BECOMEPIG - if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > -1 ){//变成乌力了 + if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > -1 ){//鍙樻垚涔屽姏浜 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_ATTACK ); } #endif @@ -158,7 +158,7 @@ void BattleCommandDispach( int fd, char *command ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, 1 ); - //sprintf( szBuffer, "Command(%s)(战斗)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(鎴樻枟)", CHAR_getUseName( charaindex ) ); endFlg = 1; @@ -178,7 +178,7 @@ void BattleCommandDispach( int fd, char *command ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - sprintf( szBuffer, "Command(%s)(防御)", CHAR_getUseName( charaindex ) ); + sprintf( szBuffer, "Command(%s)(闃插尽)", CHAR_getUseName( charaindex ) ); endFlg = 1; BATTLE_MpDown( charaindex, 2 ); @@ -191,8 +191,8 @@ void BattleCommandDispach( int fd, char *command ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_WAIT ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); -// sprintf( szBuffer, "Command(%s)(server托管)", CHAR_getUseName( charaindex ) ); - //sprintf( szBuffer, "Command(%s)(待机)", CHAR_getUseName( charaindex ) ); +// sprintf( szBuffer, "Command(%s)(server鎵樼)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(寰呮満)", CHAR_getUseName( charaindex ) ); endFlg = 1; }else @@ -218,7 +218,7 @@ void BattleCommandDispach( int fd, char *command ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //sprintf( szBuffer, "Command(%s)(捕获)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(鎹曡幏)", CHAR_getUseName( charaindex ) ); endFlg = 1; BATTLE_MpDown( charaindex, 20 ); @@ -247,7 +247,7 @@ void BattleCommandDispach( int fd, char *command ) #ifndef _PET_STANDBY if( iNum >= 0) { if( ! (CHAR_getWorkInt( charaindex, CHAR_WORKSTANDBYPET) & ( 1 << iNum)) ) { - //print("\n 改封包!叫出非待机宠!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); + //print("\n 鏀瑰皝鍖!鍙嚭闈炲緟鏈哄疇!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); iNum = -1; } } @@ -257,10 +257,10 @@ void BattleCommandDispach( int fd, char *command ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, iNum ); if( iNum < 0 ){ CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_PETIN ); - //sprintf( szBuffer, "Command(%s)(唤回宠物)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(鍞ゅ洖瀹犵墿)", CHAR_getUseName( charaindex ) ); }else{ CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_PETOUT ); - //sprintf( szBuffer, "Command(%s)(叫出宠物)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(鍙嚭瀹犵墿)", CHAR_getUseName( charaindex ) ); } CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); @@ -288,18 +288,18 @@ void BattleCommandDispach( int fd, char *command ) || checkErrorStatus( petindex) ) { - //sprintf( szBuffer, "Command(%s)(自动)", CHAR_getUseName( petindex ) ); + //sprintf( szBuffer, "Command(%s)(鑷姩)", CHAR_getUseName( petindex ) ); CHAR_setWorkInt( petindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); #ifdef _PETSKILLBUG //Add By Syu 2002.0805 }else if ((CHAR_getInt(petindex, CHAR_TRANSMIGRATION)<1) && ( iNum>=CHAR_getInt(petindex, CHAR_SLOT) ) ) { - //sprintf( szBuffer, "Command(%s)(自动)", CHAR_getUseName( petindex ) ); + //sprintf( szBuffer, "Command(%s)(鑷姩)", CHAR_getUseName( petindex ) ); CHAR_setWorkInt( petindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); #endif }else{ petskillindex = PETSKILL_GetArray( petindex, iNum); -#ifdef _FIXWOLF // Syu ADD 修正狼人变身Bug +#ifdef _FIXWOLF // Syu ADD 淇鐙间汉鍙樿韩Bug if( (CHAR_getPetSkill( petindex , iNum )== 600) && (ToNo == -1)) { for( j = 0; j < 2; j ++ ) @@ -320,12 +320,12 @@ void BattleCommandDispach( int fd, char *command ) if( petskillindex >= 0 && PETSKILL_Use( petindex, iNum, ToNo, NULL ) == TRUE ){ - //sprintf( szBuffer, "Command(%s)(石版)", CHAR_getUseName( petindex ) ); + //sprintf( szBuffer, "Command(%s)(鐭崇増)", CHAR_getUseName( petindex ) ); EscapeFree = 0; }else{ - //sprintf( szBuffer, "Command(%s)(自动)", CHAR_getUseName( petindex ) ); + //sprintf( szBuffer, "Command(%s)(鑷姩)", CHAR_getUseName( petindex ) ); CHAR_setWorkInt( petindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); } } @@ -374,7 +374,7 @@ void BattleCommandDispach( int fd, char *command ) CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, magicindex ); CHAR_SETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3, iNum ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //sprintf( szBuffer, "Command(%s)(咒术)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(鍜掓湳)", CHAR_getUseName( charaindex ) ); #ifdef _ITEM_ATTSKILLMAGIC } #endif @@ -383,7 +383,7 @@ void BattleCommandDispach( int fd, char *command ) EscapeFree = 0; CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_WAIT ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //sprintf( szBuffer, "Command(%s)(待机)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(寰呮満)", CHAR_getUseName( charaindex ) ); } endFlg = 1; }else @@ -412,12 +412,12 @@ void BattleCommandDispach( int fd, char *command ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_ITEM ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM3, iNum ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //sprintf( szBuffer, "Command(%s)(道具)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(閬撳叿)", CHAR_getUseName( charaindex ) ); endFlg = 1; } }else if( strncmp( command, "@", 1 ) == 0 ){ - //sprintf( szBuffer, "Command(%s)(通用)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(閫氱敤)", CHAR_getUseName( charaindex ) ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); endFlg = 1; @@ -426,7 +426,7 @@ void BattleCommandDispach( int fd, char *command ) min( 100, CHAR_getInt( charaindex, CHAR_MP ) + 30 ) ); }else -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( strncmp( command, "P", 1 ) == 0 ){ int iNum=-1, ToNo=-1; int skillindex=-1; @@ -444,16 +444,16 @@ void BattleCommandDispach( int fd, char *command ) } if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE) == BATTLE_CHARMODE_NONE ){ -// print("\n\n 非法封包(19001)(%s)(%s)\n\n", CHAR_getChar(charaindex, CHAR_CDKEY), CHAR_getChar(charaindex, CHAR_NAME) ); +// print("\n\n 闈炴硶灏佸寘(19001)(%s)(%s)\n\n", CHAR_getChar(charaindex, CHAR_CDKEY), CHAR_getChar(charaindex, CHAR_NAME) ); #ifdef _PROSKILL_ERR_KICK CONNECT_setCloseRequest( fd , 1 ); #endif return; } -#ifndef _PROSKILL_OPTIMUM // Robin fix cancel 此处略过职业检查, 改在 PROFESSION_SKILL_Use 中检查 - // 人物的职业 +#ifndef _PROSKILL_OPTIMUM // Robin fix cancel 姝ゅ鐣ヨ繃鑱屼笟妫鏌, 鏀瑰湪 PROFESSION_SKILL_Use 涓鏌 + // 浜虹墿鐨勮亴涓 char_pskill = CHAR_getInt( charaindex, PROFESSION_CLASS ); - // 技能的职业 + // 鎶鑳界殑鑱屼笟 skillindex = PROFESSION_SKILL_GetArray( charaindex, iNum); Pskillid = PROFESSION_SKILL_getskillArray( skillindex); profession_skill = PROFESSION_SKILL_getInt( Pskillid, PROFESSION_SKILL_PROFESSION_CLASS); @@ -463,22 +463,22 @@ void BattleCommandDispach( int fd, char *command ) if( 1 ) { #endif if( PROFESSION_SKILL_Use( charaindex, iNum, ToNo, NULL ) == 1 ){ - //sprintf( szBuffer, "Command(%s)(职业技能)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(鑱屼笟鎶鑳)", CHAR_getUseName( charaindex ) ); endFlg = 1; }else{ -// print("\n职业技能失败!!\n"); +// print("\n鑱屼笟鎶鑳藉け璐!!\n"); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_WAIT ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //sprintf( szBuffer, "Command(%s)(待机)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(寰呮満)", CHAR_getUseName( charaindex ) ); #ifdef _PROSKILL_ERR_KICK CONNECT_setCloseRequest( fd , 1 ); #endif } }else{ -// print("\n改封包??职业技能ID不正确:%s:%d:%d \n", CHAR_getChar( charaindex, CHAR_CDKEY), char_pskill, profession_skill); +// print("\n鏀瑰皝鍖??鑱屼笟鎶鑳絀D涓嶆纭:%s:%d:%d \n", CHAR_getChar( charaindex, CHAR_CDKEY), char_pskill, profession_skill); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_WAIT ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //sprintf( szBuffer, "Command(%s)(待机)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(寰呮満)", CHAR_getUseName( charaindex ) ); #ifdef _PROSKILL_ERR_KICK CONNECT_setCloseRequest_debug( fd , 1 ); #endif @@ -489,7 +489,7 @@ void BattleCommandDispach( int fd, char *command ) #endif { - //sprintf( szBuffer, "Command(%s)(失败)", CHAR_getUseName( charaindex ) ); + //sprintf( szBuffer, "Command(%s)(澶辫触)", CHAR_getUseName( charaindex ) ); endFlg = 2; } @@ -532,56 +532,56 @@ void BATTLE_ActSettingSend( int battleindex ) pEntry = BattleArray[battleindex].Side[j].Entry; for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ pindex = pEntry[i].charaindex; - // 戊穴件玉 匹五化中凶日 + // 銈炽優銉炽儔鍏ュ姏銇с亶銇︺亜銇熴倝 if( CHAR_getWorkInt( pindex, CHAR_WORKBATTLEMODE ) == BATTLE_CHARMODE_C_OK ){ - endBit |= 1 << k; // 申永玄 化月 + endBit |= 1 << k; // 銉撱儍銉堢珛銇︺倠 }else - // 衬分匀凶日濮覆 井允 + // 鏁点仩銇c仧銈夌刀瀵惧嫊銇嬨仚 if( CHAR_getInt( pindex, CHAR_WHICHTYPE ) == CHAR_TYPEENEMY || CHAR_getInt( pindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYERNPC || CHAR_getInt( pindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYERPETNPC ) { - endBit |= 1 << k; // 申永玄 化月 + endBit |= 1 << k; // 銉撱儍銉堢珛銇︺倠 } k ++; } } sprintf( szBA, "BA|%X|%X|", endBit, BattleArray[battleindex].turn ); // print( "%s\n", szBA ); - //今日卞蝈够伙□皿仄化霜月 + //銇曘倝銇叏鍝°儷銉笺儣銇椼仸閫併倠 for( j = 0; j < 2; j ++ ){ pEntry = BattleArray[battleindex].Side[j].Entry; for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ pindex = pEntry[i].charaindex; if( CHAR_CHECKINDEX( pindex ) == FALSE )continue; - // 辅爵仄凶化及平乓仿卞反霜日卅中 + // 鍙傛垿銇椼仧銇︺伄銈儯銉┿伀銇併倝銇亜 if( CHAR_getWorkInt( pindex, CHAR_WORKBATTLEMODE ) == BATTLE_CHARMODE_RESCUE )continue; - // 皿伊奶乩□分匀凶日 + // 銉椼儸銈ゃ儰銉笺仩銇c仧銈 if( CHAR_getInt( pindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER - ){ // 戊穴件玉霜月 + ){ // 銈炽優銉炽儔閫併倠 BATTLE_CommandSend( pindex, szBA ); } } } - // 棋爵仄化中月谛卞手霜月 + // 瑕虫垿銇椼仸銇勩倠浜恒伀銈傞併倠 pBattle = BattleArray[battleindex].pNext; for( ; pBattle ; pBattle = pBattle->pNext ){ - // 仇及失玉伊旦互恳仄中井民尼永弁 + // 銇撱伄銈€儔銉偣銇屾銇椼亜銇嬨儊銈с儍銈 if( BATTLE_CHECKADDRESS( pBattle ) == FALSE ){ - //fprint( "err:观战battle address错误(%p)\n", pBattle ); + //fprint( "err:瑙傛垬battle address閿欒(%p)\n", pBattle ); break; } - // 蝈够卞霜耨 + // 鍏ㄥ摗銇佷俊 for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ charaindex = pBattle->Side[0].Entry[i].charaindex; if( CHAR_CHECKINDEX( charaindex ) == FALSE )continue; if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) != CHAR_TYPEPLAYER )continue; - // 戊穴件玉霜月 + // 銈炽優銉炽儔閫併倠 BATTLE_CommandSend( pindex, szBA ); } } @@ -603,7 +603,7 @@ BOOL BATTLE_IsHide( int charaindex ){ //******************************************************* // -// 田玄伙及戊穴件玉毛弁仿奶失件玄卞霜月 +// 銉愩儓銉伄銈炽優銉炽儔銈掋偗銉┿偆銈€兂銉堛伀閫併倠 // BOOL BATTLE_CommandSend( int charaindex, char *pszCommand) // @@ -640,7 +640,7 @@ BOOL BATTLE_MakeCharaString( for( j = 0; j < 2; j ++ ){ if( j == 1 ){ - iOffset = SIDE_OFFSET; // 轾仇丹础扔奶玉及桦宁反皿仿旦允月 + iOffset = SIDE_OFFSET; // 鍚戙亾銇嗗伌銈点偆銉夈伄鍫村悎銇儣銉┿偣銇欍倠 }else{ iOffset = 0; } @@ -661,22 +661,22 @@ BOOL BATTLE_MakeCharaString( if( CHAR_getWorkInt( charaindex, CHAR_WORKPOISON ) > 0 ){ flg |= BC_FLG_POISON; }else -#ifdef _MAGIC_WEAKEN // 虚弱 +#ifdef _MAGIC_WEAKEN // 铏氬急 if( CHAR_getWorkInt( charaindex, CHAR_WORKWEAKEN ) > 0 ){ flg |= BC_FLG_WEAKEN; }else #endif -#ifdef _MAGIC_DEEPPOISON // 剧毒 +#ifdef _MAGIC_DEEPPOISON // 鍓ф瘨 if( CHAR_getWorkInt( charaindex, CHAR_WORKDEEPPOISON ) > 0 ){ flg |= BC_FLG_DEEPPOISON; }else #endif -#ifdef _MAGIC_NOCAST // 沉默 +#ifdef _MAGIC_NOCAST // 娌夐粯 if( CHAR_getWorkInt( charaindex, CHAR_WORKNOCAST ) > 0 ){ flg |= BC_FLG_NOCAST; }else #endif -#ifdef _MAGIC_BARRIER // 魔障 +#ifdef _MAGIC_BARRIER // 榄旈殰 if( CHAR_getWorkInt( charaindex, CHAR_WORKBARRIER ) > 0 ){ flg |= BC_FLG_BARRIER; }else @@ -705,63 +705,63 @@ BOOL BATTLE_MakeCharaString( if( BATTLE_IsHide( charaindex ) == TRUE ){ flg |= BC_FLG_HIDE; } -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 if( CHAR_getWorkInt( charaindex, CHAR_WORKSARS ) > 0 ){ flg |= BC_FLG_SARS; } #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( CHAR_getWorkInt( charaindex, CHAR_WORKDIZZY ) > 0 ){ - flg |= BC_FLG_DIZZY; // 晕眩 + flg |= BC_FLG_DIZZY; // 鏅曠湬 } if( CHAR_getWorkInt( charaindex, CHAR_WORKENTWINE ) > 0 ){ - flg |= BC_FLG_ENTWINE; // 树根缠绕 + flg |= BC_FLG_ENTWINE; // 鏍戞牴缂犵粫 } if( CHAR_getWorkInt( charaindex, CHAR_WORKDRAGNET ) > 0 ){ - flg |= BC_FLG_DRAGNET; // 天罗地网 + flg |= BC_FLG_DRAGNET; // 澶╃綏鍦扮綉 } if( CHAR_getWorkInt( charaindex, CHAR_WORKICECRACK ) > 0 ){ - // flg |= BC_FLG_ICECRACK; // 冰爆术 + // flg |= BC_FLG_ICECRACK; // 鍐扮垎鏈 } if( CHAR_getWorkInt( charaindex, CHAR_WORKOBLIVION ) > 0 ){ - flg |= BC_FLG_OBLIVION; // 遗忘 + flg |= BC_FLG_OBLIVION; // 閬楀繕 } if( CHAR_getWorkInt( charaindex, CHAR_WORKICEARROW ) > 0 ){ - flg |= BC_FLG_ICEARROW; // 冰箭 + flg |= BC_FLG_ICEARROW; // 鍐扮 } if( CHAR_getWorkInt( charaindex, CHAR_WORKBLOODWORMS ) > 0 ){ - flg |= BC_FLG_BLOODWORMS; // 嗜血蛊 + flg |= BC_FLG_BLOODWORMS; // 鍡滆铔 } if( CHAR_getWorkInt( charaindex, CHAR_WORKSIGN ) > 0 ){ - flg |= BC_FLG_SIGN; // 一针见血 + flg |= BC_FLG_SIGN; // 涓閽堣琛 } if( CHAR_getWorkInt( charaindex, CHAR_WORKINSTIGATE ) > 0 ){ - flg |= BC_FLG_CARY; // 挑拨 + flg |= BC_FLG_CARY; // 鎸戞嫧 } if( CHAR_getWorkInt( charaindex, CHAR_WORK_F_ENCLOSE ) > 0 ){ - flg |= BC_FLG_F_ENCLOSE; // 火附体 + flg |= BC_FLG_F_ENCLOSE; // 鐏檮浣 } if( CHAR_getWorkInt( charaindex, CHAR_WORK_I_ENCLOSE ) > 0 ){ - flg |= BC_FLG_I_ENCLOSE; // 冰附体 + flg |= BC_FLG_I_ENCLOSE; // 鍐伴檮浣 } if( CHAR_getWorkInt( charaindex, CHAR_WORK_T_ENCLOSE ) > 0 ){ - flg |= BC_FLG_T_ENCLOSE; // 雷附体 + flg |= BC_FLG_T_ENCLOSE; // 闆烽檮浣 } #endif #ifdef _PROFESSION_ADDSKILL if( CHAR_getWorkInt( charaindex, CHAR_WORKANNEX ) > 0 ){ - flg |= BC_FLG_T_ENCLOSE; // 附身术 + flg |= BC_FLG_T_ENCLOSE; // 闄勮韩鏈 } if( CHAR_getWorkInt( charaindex, CHAR_WORKWATER ) > 0 ){ - flg |= BC_FLG_WATER; // 水附体 + flg |= BC_FLG_WATER; // 姘撮檮浣 } if( CHAR_getWorkInt( charaindex, CHAR_WORKFEAR ) > 0 ){ - flg |= BC_FLG_FEAR; // 恐惧 + flg |= BC_FLG_FEAR; // 鎭愭儳 } #endif #ifdef _PETSKILL_LER if(CHAR_getWorkInt(charaindex,CHAR_WORK_RELIFE) > 0){ - flg |= BC_FLG_CHANGE; // 雷尔变身 + flg |= BC_FLG_CHANGE; // 闆峰皵鍙樿韩 CHAR_setWorkInt(charaindex,CHAR_WORK_RELIFE,0); } #endif @@ -785,13 +785,13 @@ BOOL BATTLE_MakeCharaString( }else { if( CHAR_getWorkInt( charaindex, CHAR_WORKPETFALL ) == 1 ){ rideflg = -1; -#ifdef _PETSKILL_BECOMEFOX // 若中了媚惑术而落马时将讯息传给 Client +#ifdef _PETSKILL_BECOMEFOX // 鑻ヤ腑浜嗗獨鎯戞湳鑰岃惤椹椂灏嗚鎭紶缁 Client if( CHAR_getWorkInt( charaindex, CHAR_WORKFOXROUND ) != -1 ) - rideflg = -2; //client用来判断显示落马的文字 (对应的client变数为p_party[ BattleMyNo ]->onRide) + rideflg = -2; //client鐢ㄦ潵鍒ゆ柇鏄剧ず钀介┈鐨勬枃瀛 (瀵瑰簲鐨刢lient鍙樻暟涓簆_party[ BattleMyNo ]->onRide) #endif -#ifdef _PETSKILL_BECOMEPIG // 若中了乌力化而落马时将讯息传给 Client - if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > 120 )//变成乌力了 - rideflg = -3; //client用来判断显示落马的文字 (对应的client变数为p_party[ BattleMyNo ]->onRide) +#ifdef _PETSKILL_BECOMEPIG // 鑻ヤ腑浜嗕箤鍔涘寲鑰岃惤椹椂灏嗚鎭紶缁 Client + if( CHAR_getInt( charaindex, CHAR_BECOMEPIG) > 120 )//鍙樻垚涔屽姏浜 + rideflg = -3; //client鐢ㄦ潵鍒ゆ柇鏄剧ず钀介┈鐨勬枃瀛 (瀵瑰簲鐨刢lient鍙樻暟涓簆_party[ BattleMyNo ]->onRide) #endif CHAR_setWorkInt( charaindex, CHAR_WORKPETFALL, 0 ); } @@ -819,7 +819,7 @@ BOOL BATTLE_MakeCharaString( petmaxhp ); STRCPY_TAIL( pszTop, pszLast, szBuffer ); - if( pszTop >= pszLast )return FALSE;// 译尹凶日撩 + if( pszTop >= pszLast )return FALSE;// 瓒呫亪銇熴倝澶辨晽 } } @@ -827,8 +827,8 @@ BOOL BATTLE_MakeCharaString( } void BATTLE_BpSendToWatch( - BATTLE *pBattle, // 棋爵田玄伙正旦弁及禾奶件正 - char *pszBcString // BC 侬 + BATTLE *pBattle, // 瑕虫垿銉愩儓銉偪銈广偗銇儩銈ゃ兂銈 + char *pszBcString // BC鏂囧瓧鍒 ) { @@ -837,13 +837,13 @@ void BATTLE_BpSendToWatch( // for( ; pBattle ; pBattle = pBattle->pNext ){ if( pBattle == NULL )return; - // 仇及失玉伊旦互恳仄中井民尼永弁 + // 銇撱伄銈€儔銉偣銇屾銇椼亜銇嬨儊銈с儍銈 if( BATTLE_CHECKADDRESS( pBattle ) == FALSE ){ - //fprint( "err:观战battle address错误(%p)\n", pBattle ); + //fprint( "err:瑙傛垬battle address閿欒(%p)\n", pBattle ); return; } - // 蝈够卞霜耨 + // 鍏ㄥ摗銇佷俊 for( i = 0; i < BATTLE_ENTRY_MAX; i ++ ){ charaindex = pBattle->Side[0].Entry[i].charaindex; if( CHAR_CHECKINDEX( charaindex ) == FALSE )continue; @@ -851,16 +851,16 @@ void BATTLE_BpSendToWatch( != CHAR_TYPEPLAYER ) continue; if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) == BATTLE_CHARMODE_WATCHINIT){ - flg |= BP_FLG_JOIN; // 蕙筋辅笛 + flg |= BP_FLG_JOIN; // 鏂拌鍙傚姞 } - flg |= BP_FLG_PLAYER_MENU_OFF; // 皿伊奶乩□丢瓦亘□请今卅中 - // 皿伊奶乩□ 寞霜月 + flg |= BP_FLG_PLAYER_MENU_OFF; // 銉椼儸銈ゃ儰銉笺儭銉嬨儱銉煎嚭銇曘仾銇 + // 銉椼儸銈ゃ儰銉肩暘鍙烽併倠 sprintf( szBp, "BP|%X|%X|%X", 20, flg, 0 ); BATTLE_CommandSend( charaindex, szBp ); - // 蝈够隋骚树 霜月 + // 鍏ㄥ摗鍏遍氭儏鍫遍併倠 BATTLE_CommandSend( charaindex, pszBcString ); } - // 戊穴件玉谨切尺 + // 銈炽優銉炽儔寰呫仭銇 pBattle->mode = BATTLE_MODE_WATCHPRE; // } } @@ -891,7 +891,7 @@ void BATTLE_CharSendAll( int battleindex ) } if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) == BATTLE_CHARMODE_RESCUE){ - flg |= BP_FLG_JOIN; // 辅爵 + flg |= BP_FLG_JOIN; // 鍙傛垿 } At_SoubiIndex = CHAR_getItemIndex( charaindex, CHAR_ARM ); if( ITEM_CHECKINDEX( At_SoubiIndex ) == FALSE ){ @@ -910,17 +910,12 @@ void BATTLE_CharSendAll( int battleindex ) #ifdef _PETSKILL_DAMAGETOHP { -/* - 让开,让开~~~~~~~ - ╭══╮ - ╭╯ΘΘ║ - ╰⊙═⊙╯我来给你送月饼了 -*/ + char msg[32]={0}; - //print("\n宠物id:%d",CHAR_getInt( pindex, CHAR_PETID)); - //print("\n宠物名:%s",CHAR_getChar( pindex, CHAR_NAME)); - //if( CHAR_getInt( pindex, CHAR_PETID) == 777 ){//宠物ID 水双头狼 - // || CHAR_getInt( pindex, CHAR_PETID) == 146 ) //火双头狼 + //print("\n瀹犵墿id:%d",CHAR_getInt( pindex, CHAR_PETID)); + //print("\n瀹犵墿鍚:%s",CHAR_getChar( pindex, CHAR_NAME)); + //if( CHAR_getInt( pindex, CHAR_PETID) == 777 ){//瀹犵墿ID 姘村弻澶寸嫾 + // || CHAR_getInt( pindex, CHAR_PETID) == 146 ) //鐏弻澶寸嫾 // && CHAR_getInt( pindex, CHAR_HP) ){ sprintf( msg, "o%d", pet ); CHAR_sendStatusString( charaindex, msg ); @@ -929,9 +924,9 @@ void BATTLE_CharSendAll( int battleindex ) } #endif -#ifdef _PETSKILL_BECOMEFOX // 限制中了媚惑术的宠物的技能 +#ifdef _PETSKILL_BECOMEFOX // 闄愬埗涓簡濯氭儜鏈殑瀹犵墿鐨勬妧鑳 //if( CHAR_getInt( pindex, CHAR_BASEIMAGENUMBER) == 101749 ){ - if( CHAR_getWorkInt( pindex, CHAR_WORKFOXROUND ) != -1 ){ //若是变成小狐狸 + if( CHAR_getWorkInt( pindex, CHAR_WORKFOXROUND ) != -1 ){ //鑻ユ槸鍙樻垚灏忕嫄鐙 char msg[32]={0}; sprintf( msg, "a%d", pet ); CHAR_sendStatusString( charaindex, msg ); @@ -974,9 +969,9 @@ void BATTLE_CharSendAll( int battleindex ) } pBattle = BattleArray[battleindex].pNext; for( ; pBattle ; pBattle = pBattle->pNext ){ - // 仇及失玉伊旦互恳仄中井民尼永弁 + // 銇撱伄銈€儔銉偣銇屾銇椼亜銇嬨儊銈с儍銈 if( BATTLE_CHECKADDRESS( pBattle ) == FALSE ){ - //fprint( "err:观战battle address错误(%p)\n", pBattle ); + //fprint( "err:瑙傛垬battle address閿欒(%p)\n", pBattle ); break; } @@ -1011,7 +1006,7 @@ void BattleEncountOut( int charaindex) pmode = CHAR_getWorkInt( pindex, CHAR_WORKBATTLEMODE ); if( pmode > 0 && pmode != BATTLE_CHARMODE_FINAL ){ BATTLE_RescueParentTry( charaindex, pindex ); -// print( "较慢参加战斗(%s)\n", CHAR_getUseName( charaindex ) ); +// print( "杈冩參鍙傚姞鎴樻枟(%s)\n", CHAR_getUseName( charaindex ) ); } } @@ -1020,38 +1015,38 @@ void BattleEncountOut( int charaindex) //************************************************** // -// 犯白巧伙玄及戊穴件玉毛 木月矢永玄迕 +// 銉囥儠銈┿儷銉堛伄銈炽優銉炽儔銈掑叆銈屻倠銉氥儍銉堢敤 // BOOL BATTLE_PetDefaultCommand( int petindex ) // //************************************************** { if( CHAR_CHECKINDEX( petindex ) == FALSE )return FALSE; - // 锹澎及隙烂 + // 鐩告墜銇寚瀹 CHAR_setWorkInt( petindex, CHAR_WORKBATTLECOM2, -1 ); - // 骚橘 猾及隙烂 + // 閫氬父鏀绘拑銇寚瀹 CHAR_setWorkInt( petindex, CHAR_WORKBATTLECOM1, BATTLE_COM_ATTACK ); - // 戊穴件玉OK及隙烂 + // 銈炽優銉炽儔OK銇寚瀹 CHAR_setWorkInt( petindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); return TRUE; } -// Robin fix 检查石化昏睡不可战斗 +// Robin fix 妫鏌ョ煶鍖栨槒鐫′笉鍙垬鏂 int checkErrorStatus( int charaindex) { //if( BATTLE_CanMoveCheck( charaindex) == FALSE) { if( - CHAR_getWorkInt( charaindex, CHAR_WORKPARALYSIS ) > 0 // 麻痹 - || CHAR_getWorkInt( charaindex, CHAR_WORKSTONE ) > 0 // 石化 - || CHAR_getWorkInt( charaindex, CHAR_WORKSLEEP ) > 0 // 睡眠 - //|| CHAR_getWorkInt( charaindex, CHAR_WORKBARRIER ) > 0 // 魔障 - || CHAR_getWorkInt( charaindex, CHAR_WORKDIZZY ) > 0 // 晕眩 - || CHAR_getWorkInt( charaindex, CHAR_WORKDRAGNET ) > 0 // 天罗地网 - //|| CHAR_getWorkInt( charaindex, CHAR_WORK_T_ENCLOSE ) > 0 // 雷附体 + CHAR_getWorkInt( charaindex, CHAR_WORKPARALYSIS ) > 0 // 楹荤椆 + || CHAR_getWorkInt( charaindex, CHAR_WORKSTONE ) > 0 // 鐭冲寲 + || CHAR_getWorkInt( charaindex, CHAR_WORKSLEEP ) > 0 // 鐫$湢 + //|| CHAR_getWorkInt( charaindex, CHAR_WORKBARRIER ) > 0 // 榄旈殰 + || CHAR_getWorkInt( charaindex, CHAR_WORKDIZZY ) > 0 // 鏅曠湬 + || CHAR_getWorkInt( charaindex, CHAR_WORKDRAGNET ) > 0 // 澶╃綏鍦扮綉 + //|| CHAR_getWorkInt( charaindex, CHAR_WORK_T_ENCLOSE ) > 0 // 闆烽檮浣 #ifdef _PROFESSION_ADDSKILL -// || CHAR_getWorkInt( charaindex, CHAR_DOOMTIME ) > 0 //世界末日集气 +// || CHAR_getWorkInt( charaindex, CHAR_DOOMTIME ) > 0 //涓栫晫鏈棩闆嗘皵 #endif ) { @@ -1062,7 +1057,7 @@ int checkErrorStatus( int charaindex) // else // strcpysafe( cdkey,sizeof(cdkey), CHAR_getChar( charaindex, CHAR_OWNERCDKEY) ); -// print("\n 改封包!不可战斗的状态!!:%s ", cdkey ); +// print("\n 鏀瑰皝鍖!涓嶅彲鎴樻枟鐨勭姸鎬!!:%s ", cdkey ); return 1; } diff --git a/battle/battle_event.c b/battle/battle_event.c index 6122f88..14e03a2 100644 --- a/battle/battle_event.c +++ b/battle/battle_event.c @@ -17,7 +17,7 @@ #include "char_base.h" #include "item_event.h" -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 #include "profession_skill.h" #include "item.h" #include "skill.h" @@ -59,33 +59,33 @@ int gBattleBadStatusTbl[BATTLE_ENTRY_MAX*2]; #ifdef _OTHER_MAGICSTAUTS #ifdef _MAGICSTAUTS_RESIST -char MagicStatus[MAXSTATUSTYPE][36] = { "NULL","魔抗","铁壁","火抗","电抗","冰抗"}; +char MagicStatus[MAXSTATUSTYPE][36] = { "NULL","榄旀姉","閾佸","鐏姉","鐢垫姉","鍐版姉"}; int MagicTbl[] = { -1, CHAR_DEFMAGICSTATUS, CHAR_MAGICSUPERWALL, CHAR_MAGICFIRE, CHAR_MAGICTHUNDER, CHAR_MAGICICE }; #else -char MagicStatus[MAXSTATUSTYPE][36] = { "NULL","魔抗","铁壁"}; +char MagicStatus[MAXSTATUSTYPE][36] = { "NULL","榄旀姉","閾佸"}; int MagicTbl[] = { -1, CHAR_DEFMAGICSTATUS, CHAR_MAGICSUPERWALL }; #endif //_MAGICSTAUTS_RESIST #endif -char *aszStatus[] = { "全", "毒", "麻", "眠", "石", "醉", "乱", "虚", "剧", "障", "默" -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 - ,"煞" +char *aszStatus[] = { "鍏", "姣", "楹", "鐪", "鐭", "閱", "涔", "铏", "鍓", "闅", "榛" +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 + ,"鐓" #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - ,"晕","缠","罗","爆","忘","箭","蛊","针","挑","烧","霜","电","专","火","冰","雷","炎","冻","击" +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + ,"鏅","缂","缃","鐖","蹇","绠","铔","閽","鎸","鐑","闇","鐢","涓","鐏","鍐","闆","鐐","鍐","鍑" #endif #ifdef _PROFESSION_ADDSKILL - ,"抗" + ,"鎶" #endif }; -char *aszStatusFull[] = { "全快", "毒", "麻痹", "睡眠", "石化", "酒醉", "混乱", "虚弱", "剧毒", "魔障", "沉默" -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 - ,"毒煞" +char *aszStatusFull[] = { "鍏ㄥ揩", "姣", "楹荤椆", "鐫$湢", "鐭冲寲", "閰掗唹", "娣蜂贡", "铏氬急", "鍓ф瘨", "榄旈殰", "娌夐粯" +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 + ,"姣掔厼" #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - ,"晕眩","缠绕","天罗","冰爆","遗忘","冰箭","嗜血蛊","一针见血","挑拨","火附体", - "冰附体","雷附体","专注战斗","火抗","冰抗","雷抗","火附","冰附","雷附" +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + ,"鏅曠湬","缂犵粫","澶╃綏","鍐扮垎","閬楀繕","鍐扮","鍡滆铔","涓閽堣琛","鎸戞嫧","鐏檮浣", + "鍐伴檮浣","闆烽檮浣","涓撴敞鎴樻枟","鐏姉","鍐版姉","闆锋姉","鐏檮","鍐伴檮","闆烽檮" #endif }; @@ -94,10 +94,10 @@ int StatusTbl[] = { -1, CHAR_WORKPOISON, CHAR_WORKPARALYSIS, CHAR_WORKDRUNK, CHAR_WORKCONFUSION, CHAR_WORKWEAKEN, CHAR_WORKDEEPPOISON, CHAR_WORKBARRIER, CHAR_WORKNOCAST -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 ,CHAR_WORKSARS #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 ,CHAR_WORKDIZZY, CHAR_WORKENTWINE ,CHAR_WORKDRAGNET, CHAR_WORKICECRACK ,CHAR_WORKOBLIVION, CHAR_WORKICEARROW @@ -110,9 +110,9 @@ int StatusTbl[] = { -1, CHAR_WORKPOISON, CHAR_WORKPARALYSIS, ,CHAR_WORK_T_ENCLOSE_2 #endif #ifdef _PROFESSION_ADDSKILL - ,CHAR_WORKERSIST_F_I_T, CHAR_WORKWATER//水附体 - ,CHAR_WORKANNEX//附身 - ,CHAR_WORKFEAR//恐惧 + ,CHAR_WORKERSIST_F_I_T, CHAR_WORKWATER//姘撮檮浣 + ,CHAR_WORKANNEX//闄勮韩 + ,CHAR_WORKFEAR//鎭愭儳 ,CHAR_WORKICECRACK2 ,CHAR_WORKICECRACK3 ,CHAR_WORKICECRACK4 @@ -130,10 +130,10 @@ int RegTbl[] = { -1, CHAR_WORKMODPOISON, CHAR_WORKMODPARALYSIS, CHAR_WORKMODDRUNK, CHAR_WORKMODCONFUSION, CHAR_WORKMODWEAKEN, CHAR_WORKMODDEEPPOISON, CHAR_WORKMODBARRIER, CHAR_WORKMODNOCAST -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 ,CHAR_WORKMODSARS #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 ,CHAR_WORKMODDIZZY, CHAR_WORKMODENTWINE ,CHAR_WORKMODDRAGNET, CHAR_WORKMODICECRACK ,CHAR_WORKMODOBLIVION, CHAR_WORKMODICEARROW @@ -147,29 +147,29 @@ int RegTbl[] = { -1, CHAR_WORKMODPOISON, CHAR_WORKMODPARALYSIS, #endif }; -char *aszMagicDef[] = { "常", "吸", "反", "无" -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - ,"陷" +char *aszMagicDef[] = { "甯", "鍚", "鍙", "鏃" +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + ,"闄" #endif #ifdef _PETSKILL_ACUPUNCTURE - ,"刺" + ,"鍒" #endif }; -char *aszMagicDefFull[] = { "通常", "吸收", "反射", "无效化" -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - ,"陷阱" +char *aszMagicDefFull[] = { "閫氬父", "鍚告敹", "鍙嶅皠", "鏃犳晥鍖" +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + ,"闄烽槺" #endif #ifdef _PETSKILL_ACUPUNCTURE - ,"针刺" + ,"閽堝埡" #endif }; int MagicDefTbl[] = { -1, CHAR_WORKDAMAGEABSROB, CHAR_WORKDAMAGEREFLEC, CHAR_WORKDAMAGEVANISH -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 ,CHAR_WORKTRAP #endif #ifdef _PETSKILL_ACUPUNCTURE @@ -177,13 +177,13 @@ int MagicDefTbl[] = { -1, CHAR_WORKDAMAGEABSROB, CHAR_WORKDAMAGEREFLEC, CHAR_WOR #endif }; -char *aszParamChange[] = { "无", "攻", "防", "早", "魅", "捕" }; -char *aszParamChangeFull[] = { "无", "攻击力", "防御力", "速度", "魅力", "捕获率" }; +char *aszParamChange[] = { "鏃", "鏀", "闃", "鏃", "榄", "鎹" }; +char *aszParamChangeFull[] = { "鏃", "鏀诲嚮鍔", "闃插尽鍔", "閫熷害", "榄呭姏", "鎹曡幏鐜" }; int aParamChangeTbl[] = { -1, CHAR_WORKMODATTACK, CHAR_WORKMODDEFENCE, CHAR_WORKMODQUICK, CHAR_WORKMODCHARM, CHAR_WORKMODCAPTURE }; // Robin 0727 Ride Pet -// 取得骑宠的index +// 鍙栧緱楠戝疇鐨刬ndex int BATTLE_getRidePet( int charaindex ) { int petindex = -1; @@ -204,30 +204,30 @@ int BATTLE_getRidePet( int charaindex ) } -// 取得骑宠时的三围 正常版 +// 鍙栧緱楠戝疇鏃剁殑涓夊洿 姝e父鐗 float BATTLE_adjustRidePet3A( int charaindex, int petindex, int workindex, int action ) { float ret = CHAR_getWorkInt( charaindex, workindex ); BOOL throwweapon = BATTLE_IsThrowWepon(CHAR_getItemIndex( charaindex, CHAR_ARM ) ); switch( workindex ) { - case CHAR_WORKATTACKPOWER : // 攻击力 - if( throwweapon ) // 投掷 + case CHAR_WORKATTACKPOWER : // 鏀诲嚮鍔 + if( throwweapon ) // 鎶曟幏 ret = CHAR_getWorkInt( charaindex, CHAR_WORKATTACKPOWER ) #ifdef _BATTLE_NEWPOWER //andy 1/24 reEdit + CHAR_getWorkInt( petindex, CHAR_WORKATTACKPOWER )*0.4; #else + CHAR_getWorkInt( petindex, CHAR_WORKATTACKPOWER )*0.2; #endif - else // 近战 + else // 杩戞垬 ret = CHAR_getWorkInt( charaindex, CHAR_WORKATTACKPOWER )*0.8 + CHAR_getWorkInt( petindex, CHAR_WORKATTACKPOWER )*0.8; break; - case CHAR_WORKDEFENCEPOWER : // 防御力 + case CHAR_WORKDEFENCEPOWER : // 闃插尽鍔 ret = CHAR_getWorkInt( charaindex, CHAR_WORKDEFENCEPOWER )*0.7 + CHAR_getWorkInt( petindex, CHAR_WORKDEFENCEPOWER )*0.7; break; - case CHAR_WORKQUICK : // 敏捷力 + case CHAR_WORKQUICK : // 鏁忔嵎鍔 if( action == ATTACKSIDE ) { if( throwweapon ) { ret = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )*0.8 @@ -257,7 +257,7 @@ float BATTLE_adjustRidePet3A( int charaindex, int petindex, int workindex, int a return ret; } -// Robin 0727 ride Pet 落马改图 +// Robin 0727 ride Pet 钀介┈鏀瑰浘 void BATTLE_changeRideImage( int index ) { int itemindex = CHAR_getItemIndex(index,CHAR_ARM); @@ -406,22 +406,22 @@ int BATTLE_ItemCrushCheck( int charaindex ) } #endif -#define BREAK_NAME_WEPON "武器" -#define BREAK_NAME_AROMER "防具" -#define BREAK_BRACELET "护腕" -#define BREAK_MUSIC "乐器" -#define BREAK_NECKLACE "头饰" -#define BREAK_RING "戒指" -#define BREAK_BELT "皮带" -#define BREAK_EARRING "耳饰" -#define BREAK_NOSERING "鼻环" -#define BREAK_AMULET "护身符" -#define BREAK_OTHER "道具" +#define BREAK_NAME_WEPON "姝﹀櫒" +#define BREAK_NAME_AROMER "闃插叿" +#define BREAK_BRACELET "鎶よ厱" +#define BREAK_MUSIC "涔愬櫒" +#define BREAK_NECKLACE "澶撮グ" +#define BREAK_RING "鎴掓寚" +#define BREAK_BELT "鐨甫" +#define BREAK_EARRING "鑰抽グ" +#define BREAK_NOSERING "榧荤幆" +#define BREAK_AMULET "鎶よ韩绗" +#define BREAK_OTHER "閬撳叿" #ifdef _TAKE_ITEMDAMAGE -static char *aszCrushTbl[] = { "完好", "受损", "毁坏" , "不堪使用" , "碎片" }; +static char *aszCrushTbl[] = { "瀹屽ソ", "鍙楁崯", "姣佸潖" , "涓嶅牚浣跨敤" , "纰庣墖" }; #else -static char *aszCrushTbl[] = { "受损", "毁坏" }; +static char *aszCrushTbl[] = { "鍙楁崯", "姣佸潖" }; #endif @@ -457,20 +457,20 @@ int BATTLE_ItemCrush( int charaindex, int ItemEquip, int Damages, int flg) crushenum = crushenum - RAND( breadnums, (breadnums*1.4) ); ITEM_setInt( itemindex, ITEM_DAMAGECRUSHE, crushenum); - if( crushenum <= 0 ){ //损坏消失 + if( crushenum <= 0 ){ //鎹熷潖娑堝け crushenum = 0; - sprintf(szBuffer, "%s因过度损坏而消失。\n", ITEM_getChar( itemindex, ITEM_NAME)); + sprintf(szBuffer, "%s鍥犺繃搴︽崯鍧忚屾秷澶便俓n", ITEM_getChar( itemindex, ITEM_NAME)); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORYELLOW); // LogItem( // CHAR_getChar( charaindex, CHAR_NAME ), // CHAR_getChar( charaindex, CHAR_CDKEY ), -//#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +//#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О // itemindex, //#else // ITEM_getInt( itemindex, ITEM_ID ), //#endif -// "因过度损坏而消失", +// "鍥犺繃搴︽崯鍧忚屾秷澶", // CHAR_getInt( charaindex,CHAR_FLOOR), // CHAR_getInt( charaindex,CHAR_X ), // CHAR_getInt( charaindex,CHAR_Y ), @@ -480,7 +480,7 @@ int BATTLE_ItemCrush( int charaindex, int ItemEquip, int Damages, int flg) // ); CHAR_DelItem( charaindex, ItemEquip); crushlevel = 4; - }else { //损坏扣值 + }else { //鎹熷潖鎵e int defs, level=0; @@ -504,10 +504,10 @@ int BATTLE_ItemCrush( int charaindex, int ItemEquip, int Damages, int flg) // work *=0.95; // ITEM_setInt( itemindex, ItemBreakPos[i], work ); // } - sprintf( szBuffer, "%s是%s的。", + sprintf( szBuffer, "%s鏄%s鐨勩", ITEM_getChar( itemindex, ITEM_NAME ), aszCrushTbl[level] ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORRED); - //更改道具说明 + //鏇存敼閬撳叿璇存槑 // buf1 = ITEM_getChar( itemindex, ITEM_SECRETNAME); // if( strstr( buf1, "(") != 0 ) { // char buf5[256]; @@ -577,14 +577,14 @@ int BATTLE_ItemCrush( int charaindex ) if( crushlevel > 1 ) return FALSE; { if( crushlevel == 1 ){ - sprintf( szBuffer, "CrushLv2(毁坏道具Lv2)" ); + sprintf( szBuffer, "CrushLv2(姣佸潖閬撳叿Lv2)" ); }else{ - sprintf( szBuffer, "CrushLv1(毁坏道具Lv1)" ); + sprintf( szBuffer, "CrushLv1(姣佸潖閬撳叿Lv1)" ); } // LogItem( // CHAR_getChar( charaindex, CHAR_NAME ), // CHAR_getChar( charaindex, CHAR_CDKEY ), -//#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +//#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О // itemindex, //#else // ITEM_getInt( itemindex, ITEM_ID ), @@ -601,7 +601,7 @@ int BATTLE_ItemCrush( int charaindex ) } /*{ int battleindex, bid; - //sprintf( szBuffer, "(%s)的(%s)是(%s)\n", + //sprintf( szBuffer, "(%s)鐨(%s)鏄(%s)\n", // CHAR_getUseName( charaindex ), // ITEM_getChar( itemindex, ITEM_NAME ), // aszCrushTbl[crushlevel] ); @@ -713,7 +713,7 @@ static int BATTLE_ItemCrushSeq( int charaindex ) if( BATTLE_ItemCrushCheck( charaindex ) == TRUE ){ if( BATTLE_ItemCrush( charaindex ) == TRUE ){ - sprintf( szWork, "BK|%s的\t装备受到损伤。", + sprintf( szWork, "BK|%s鐨刓t瑁呭鍙楀埌鎹熶激銆", CHAR_getUseName( charaindex ) ); strcatsafe( szBadStatusString,sizeof(szBadStatusString), szWork ); iRet = TRUE; @@ -753,7 +753,7 @@ static BOOL BATTLE_ArrangeCheck( int attackindex, int defindex) } #endif -//回避判定 +//鍥為伩鍒ゅ畾 static BOOL BATTLE_DuckCheck( int attackindex, int defindex @@ -773,7 +773,7 @@ static BOOL BATTLE_DuckCheck( } if( BATTLE_CanMoveCheck( defindex ) == FALSE ){ #ifdef _PROFESSION_ADDSKILL - if( CHAR_getWorkInt( defindex, CHAR_DOOMTIME ) <= 0 )//集气时可闪避(并且没有处於天罗地网和盾击的状态) + if( CHAR_getWorkInt( defindex, CHAR_DOOMTIME ) <= 0 )//闆嗘皵鏃跺彲闂伩(骞朵笖娌℃湁澶勬柤澶╃綏鍦扮綉鍜岀浘鍑荤殑鐘舵) return FALSE; else{ if( CHAR_getWorkInt( defindex, CHAR_WORKDRAGNET ) == 0 @@ -877,20 +877,20 @@ static BOOL BATTLE_DuckCheck( #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 per = BATTLE_check_profession_duck( defindex, per ); #endif #ifdef _PROFESSION_ADDSKILL - if( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_CHAOS ){ //混乱攻击时命中降低 + if( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_CHAOS ){ //娣蜂贡鏀诲嚮鏃跺懡涓檷浣 per += (per*0.4); } #endif if( RAND( 1, 10000 ) <= per ){ flg = TRUE; -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - // 回避技能升级 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + // 鍥為伩鎶鑳藉崌绾 if( (CHAR_getInt( defindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER) ){ PROFESSION_SKILL_LVEVEL_UP( defindex, "PROFESSION_AVOID" ); } @@ -991,9 +991,9 @@ static void BATTLE_GetAttr( int charaindex, int *T_pow ) */ } #endif - //print("\n地1=%d,水1=%d,火1=%d,风1=%d\n",T_pow[0],T_pow[1],T_pow[2],T_pow[3]); + //print("\n鍦1=%d,姘1=%d,鐏1=%d,椋1=%d\n",T_pow[0],T_pow[1],T_pow[2],T_pow[3]); #ifdef _PROFESSION_ADDSKILL - //加上结界 + //鍔犱笂缁撶晫 //T_pow[0] += T_pow[0]*( (CHAR_getWorkInt( charaindex, CHAR_WORKFIXEARTHAT_BOUNDARY )>>16&0x0000ffff) /100 ); //T_pow[1] += T_pow[1]*( (CHAR_getWorkInt( charaindex, CHAR_WORKFIXWATERAT_BOUNDARY )>>16&0x0000ffff) /100 ); //T_pow[2] += T_pow[2]*( (CHAR_getWorkInt( charaindex, CHAR_WORKFIXFIREAT_BOUNDARY )>>16&0x0000ffff) /100 ); @@ -1005,7 +1005,7 @@ static void BATTLE_GetAttr( int charaindex, int *T_pow ) T_pow[2] = (T_pow[2]+CHAR_getWorkInt( charaindex, CHAR_WORK_FI ))>100?100:(T_pow[2]+CHAR_getWorkInt( charaindex, CHAR_WORK_EA )); T_pow[3] = (T_pow[3]+CHAR_getWorkInt( charaindex, CHAR_WORK_WI ))>100?100:(T_pow[3]+CHAR_getWorkInt( charaindex, CHAR_WORK_EA )); #endif - //print("\n地2=%d,水2=%d,火2=%d,风2=%d\n",T_pow[0],T_pow[1],T_pow[2],T_pow[3]); + //print("\n鍦2=%d,姘2=%d,鐏2=%d,椋2=%d\n",T_pow[0],T_pow[1],T_pow[2],T_pow[3]); { int i, renum=ATTR_MAX; for( i=0; i<4; i++) { @@ -1015,7 +1015,7 @@ static void BATTLE_GetAttr( int charaindex, int *T_pow ) if( renum < 0 ) renum = 0; T_pow[ 4] = renum; } - //print("\n地2=%d,水2=%d,火2=%d,风2=%d\n",T_pow[0],T_pow[1],T_pow[2],T_pow[3]); + //print("\n鍦2=%d,姘2=%d,鐏2=%d,椋2=%d\n",T_pow[0],T_pow[1],T_pow[2],T_pow[3]); /* if( *pAt_Fire < 0 ) *pAt_Fire = 0; if( *pAt_Water < 0 ) *pAt_Water = 0; @@ -1069,7 +1069,7 @@ static int BATTLE_AttrAdjust( int damage ) { - int At_pow[5]={0,0,0,0,0}; //地水火风 + int At_pow[5]={0,0,0,0,0}; //鍦版按鐏 int Dt_pow[5]={0,0,0,0,0}; int i; float At_FieldPow, Df_FieldPow; @@ -1079,8 +1079,8 @@ static int BATTLE_AttrAdjust( BATTLE_GetAttr( attackindex, At_pow); BATTLE_GetAttr( defindex, Dt_pow); - //print("\n地1=%d,水1=%d,火1=%d,风1=%d\n",At_pow[0],At_pow[1],At_pow[2],At_pow[3]); - //print("\n地2=%d,水2=%d,火2=%d,风2=%d\n",Dt_pow[0],Dt_pow[1],Dt_pow[2],Dt_pow[3]); + //print("\n鍦1=%d,姘1=%d,鐏1=%d,椋1=%d\n",At_pow[0],At_pow[1],At_pow[2],At_pow[3]); + //print("\n鍦2=%d,姘2=%d,鐏2=%d,椋2=%d\n",Dt_pow[0],Dt_pow[1],Dt_pow[2],Dt_pow[3]); #ifdef _PSKILL_MDFYATTACK if( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1) == BATTLE_COM_S_MDFYATTACK ) { int MKind=-1, MODS=0; @@ -1110,8 +1110,8 @@ static int BATTLE_AttrAdjust( loopfunc( defindex, attackindex, &damage, Dt_pow, 5); } #endif - //print("\n地1=%d,水1=%d,火1=%d,风1=%d\n",At_pow[0],At_pow[1],At_pow[2],At_pow[3]); - //print("\n地2=%d,水2=%d,火2=%d,风2=%d\n",Dt_pow[0],Dt_pow[1],Dt_pow[2],Dt_pow[3]); + //print("\n鍦1=%d,姘1=%d,鐏1=%d,椋1=%d\n",At_pow[0],At_pow[1],At_pow[2],At_pow[3]); + //print("\n鍦2=%d,姘2=%d,鐏2=%d,椋2=%d\n",Dt_pow[0],Dt_pow[1],Dt_pow[2],Dt_pow[3]); At_FieldPow = BATTLE_FieldAttAdjust( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLEINDEX ), At_pow[ 2], At_pow[ 1], At_pow[ 0], At_pow[ 3] ); Df_FieldPow = BATTLE_FieldAttAdjust( @@ -1125,7 +1125,7 @@ static int BATTLE_AttrAdjust( At_Wind *= damage; At_none *= damage; */ //print("\ndamage1=%d,",damage); - damage = BATTLE_AttrCalc(//火2水1第0封3 + damage = BATTLE_AttrCalc(//鐏2姘1绗0灏3 At_pow[ 2], At_pow[ 1], At_pow[ 0], At_pow[ 3], At_pow[ 4], Dt_pow[ 2], Dt_pow[ 1], Dt_pow[ 0], Dt_pow[ 3], Dt_pow[ 4] ); damage *= (At_FieldPow / Df_FieldPow); @@ -1160,7 +1160,7 @@ int BATTLE_GuardAdjust( int damage ) return damage; } -//计算伤害值 +//璁$畻浼ゅ鍊 int BATTLE_DamageCalc( int attackindex, int defindex ) { float attack, defense; @@ -1192,14 +1192,14 @@ int BATTLE_DamageCalc( int attackindex, int defindex ) #endif } -#ifdef _MAGIC_SUPERWALL //铁壁防御 +#ifdef _MAGIC_SUPERWALL //閾佸闃插尽 if( CHAR_getWorkInt( defindex, CHAR_MAGICSUPERWALL ) > 0 ){ float def = (float)(CHAR_getWorkInt( defindex, CHAR_OTHERSTATUSNUMS )); def = (def + rand()%20)/100; defense += defense * def; } #endif -#ifdef _NPCENEMY_ADDPOWER //修改怪物的能力值 +#ifdef _NPCENEMY_ADDPOWER //淇敼鎬墿鐨勮兘鍔涘 if( CHAR_getInt( defindex, CHAR_WHICHTYPE ) == CHAR_TYPEENEMY ) { defense += (defense*(rand()%10)+2)/100; } @@ -1210,13 +1210,13 @@ int BATTLE_DamageCalc( int attackindex, int defindex ) if( CHAR_getWorkInt( defindex, CHAR_WORKSTONE ) > 0 ) defense *= 2.0; #ifdef _PETSKILL_REGRET - //无装备防御 + //鏃犺澶囬槻寰 if( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_REGRET || CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_REGRET2 ) defense = CHAR_getWorkInt(defindex,CHAR_WORKFIXTOUGH); #endif -#ifdef _EQUIT_NEGLECTGUARD //忽视目标防御力% +#ifdef _EQUIT_NEGLECTGUARD //蹇借鐩爣闃插尽鍔% if( CHAR_getWorkInt( attackindex, CHAR_WORKNEGLECTGUARD) > 1 ) { float defp = (float)CHAR_getWorkInt( attackindex, CHAR_WORKNEGLECTGUARD); defp = 1 - (defp/100); @@ -1236,12 +1236,12 @@ int BATTLE_DamageCalc( int attackindex, int defindex ) damage = (int)(( (attack - defense )*DAMAGE_RATE ) + K0); } - //四属性 + //鍥涘睘鎬 damage = BATTLE_AttrAdjust( attackindex, defindex, damage ); #ifdef _PROFESSION_ADDSKILL { - //四属结界 + //鍥涘睘缁撶晫 if( ((CHAR_getWorkInt( defindex, CHAR_WORKFIXEARTHAT_BOUNDARY )>>16) & 0x0000ffff) > 0 ){ if( CHAR_getWorkInt( attackindex, CHAR_WORKFIXEARTHAT ) > 0 ) damage -= damage*(float)((CHAR_getWorkInt( attackindex, CHAR_WORKFIXEARTHAT )/200.0)); @@ -1261,7 +1261,7 @@ int BATTLE_DamageCalc( int attackindex, int defindex ) } #endif -#ifdef _ADD_DEAMGEDEFC //额外伤害 & 附加攻击 +#ifdef _ADD_DEAMGEDEFC //棰濆浼ゅ & 闄勫姞鏀诲嚮 { int apower, dpower, otherpower; apower = CHAR_getWorkInt( attackindex, CHAR_WORKOTHERDMAGE); @@ -1349,7 +1349,7 @@ static int BATTLE_CriticalCheckPlayer( int attackindex, int defindex ) if( per < 0 ) per = 1; if( per > 10000 ) per = 10000; #ifdef _PETSKILL_LER - // 雷尔不能被打飞 + // 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) per = 0; #endif @@ -1450,7 +1450,7 @@ static int BATTLE_GuardianCheck( int attackindex, int defindex ) } Guardian = BattleArray[battleindex].Side[DefSide].Entry[i].guardian; -// Terry add fix 使用舍已为人技能时,若攻击使用此技能的人client会当 +// Terry add fix 浣跨敤鑸嶅凡涓轰汉鎶鑳芥椂,鑻ユ敾鍑讳娇鐢ㄦ鎶鑳界殑浜篶lient浼氬綋 if(Guardian == DefNo) return -1; // end GuardianIndex = BATTLE_No2Index( battleindex, Guardian ); @@ -1470,17 +1470,17 @@ static int BATTLE_GuardianCheck( int attackindex, int defindex ) || CHAR_getWorkInt( GuardianIndex, CHAR_WORKSTONE ) > 0 || CHAR_getWorkInt( GuardianIndex, CHAR_WORKBARRIER ) > 0 || GuardianIndex == attackindex -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - || CHAR_getWorkInt( GuardianIndex, CHAR_WORKDIZZY ) > 0 // 晕眩 - || CHAR_getWorkInt( GuardianIndex, CHAR_WORKDRAGNET ) > 0 // 天罗地网 - || CHAR_getWorkInt( GuardianIndex, CHAR_WORKINSTIGATE ) > 0 // 挑拨 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + || CHAR_getWorkInt( GuardianIndex, CHAR_WORKDIZZY ) > 0 // 鏅曠湬 + || CHAR_getWorkInt( GuardianIndex, CHAR_WORKDRAGNET ) > 0 // 澶╃綏鍦扮綉 + || CHAR_getWorkInt( GuardianIndex, CHAR_WORKINSTIGATE ) > 0 // 鎸戞嫧 #endif #ifdef _PROFESSION_ADDSKILL - || CHAR_getWorkInt( GuardianIndex, CHAR_DOOMTIME ) > 0 //世界末日集气 + || CHAR_getWorkInt( GuardianIndex, CHAR_DOOMTIME ) > 0 //涓栫晫鏈棩闆嗘皵 #endif ){ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)想要守住(%s)可是没成功\。", + // "(%s)鎯宠瀹堜綇(%s)鍙槸娌℃垚鍔焅銆", // CHAR_getUseName( GuardianIndex ), // CHAR_getUseName( defindex ) //); @@ -1493,7 +1493,7 @@ static int BATTLE_GuardianCheck( int attackindex, int defindex ) CHAR_getItemIndex( attackindex, CHAR_ARM ) ) == TRUE ){ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)想要守住(%s)可是没成功\。", + // "(%s)鎯宠瀹堜綇(%s)鍙槸娌℃垚鍔焅銆", // CHAR_getUseName( GuardianIndex ), // CHAR_getUseName( defindex ) //); @@ -1503,7 +1503,7 @@ static int BATTLE_GuardianCheck( int attackindex, int defindex ) } //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)护住了(%s)。", + // "(%s)鎶や綇浜(%s)銆", // CHAR_getUseName( GuardianIndex ), // CHAR_getUseName( defindex ) //); @@ -1524,7 +1524,7 @@ static int BATTLE_DamageWakeUp( int battleindex, int defindex ) if( CHAR_getWorkInt( defindex, CHAR_WORKSLEEP ) > 0 ){ CHAR_setWorkInt( defindex, CHAR_WORKSLEEP, 0 ); bid = BATTLE_Index2No( battleindex, defindex ); - //sprintf( szBuffer, "(%s)被击中跳了起来。\n", + //sprintf( szBuffer, "(%s)琚嚮涓烦浜嗚捣鏉ャ俓n", // CHAR_getUseName( defindex ) ); //BATTLE_BroadCast( battleindex, szBuffer, // (bid >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; @@ -1541,16 +1541,16 @@ static int BATTLE_AttackSeq( int attackindex, int defindex, int *pDamage, int *p battleindex = CHAR_getWorkInt( attackindex, CHAR_WORKBATTLEINDEX ); - // 主人打宠 + // 涓讳汉鎵撳疇 if( CHAR_getInt( defindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET && BattleArray[battleindex].norisk == 0 && BattleArray[battleindex].type == BATTLE_TYPE_P_vs_E){ if( CHAR_getWorkInt( defindex, CHAR_WORKPLAYERINDEX ) == attackindex ){ - CHAR_PetAddVariableAi( defindex, AI_FIX_SEKKAN ); // 修正忠诚度 + CHAR_PetAddVariableAi( defindex, AI_FIX_SEKKAN ); // 淇蹇犺瘹搴 } } - // 闪避 + // 闂伩 if( opt != BATTLE_COM_COMBO ){ if( BATTLE_DuckCheck( attackindex, defindex ) == TRUE ){ return BATTLE_RET_DODGE; @@ -1563,7 +1563,7 @@ static int BATTLE_AttackSeq( int attackindex, int defindex, int *pDamage, int *p #endif } - // 检查被攻击方有无被别人用忠犬保护 + // 妫鏌ヨ鏀诲嚮鏂规湁鏃犺鍒汉鐢ㄥ繝鐘繚鎶 if( *pGuardian == -1 ){ *pGuardian = BATTLE_GuardianCheck( attackindex, defindex ); if( *pGuardian != -1 ){ @@ -1572,20 +1572,20 @@ static int BATTLE_AttackSeq( int attackindex, int defindex, int *pDamage, int *p } } - // 会心一击 + // 浼氬績涓鍑 perCri = BATTLE_CriticalCheck( attackindex, defindex ); #ifdef _PETSKILL_DAMAGETOHP - if( opt == BATTLE_COM_S_DAMAGETOHP2 ){ //暗月狂狼 (会心一击上升30%) && CHAR_getInt( attackindex, CHAR_HP) <= CHAR_getWorkInt( attackindex, CHAR_MAXMP)*0.5 - //print("\n1会心一击:%d",perCri); - //print("\n1攻:%d", CHAR_getWorkInt( attackindex, CHAR_WORKATTACKPOWER)); - //print("\n1敏:%d", CHAR_getWorkInt( attackindex, CHAR_WORKQUICK)); - perCri = perCri + (perCri*0.3); //会心一击上升30% - CHAR_setWorkInt( attackindex, CHAR_WORKATTACKPOWER, CHAR_getWorkInt( attackindex,CHAR_WORKFIXSTR)+CHAR_getWorkInt( attackindex,CHAR_WORKFIXSTR)*0.2);//攻上升20% - CHAR_setWorkInt( attackindex, CHAR_WORKQUICK, CHAR_getWorkInt( attackindex, CHAR_WORKFIXDEX)+CHAR_getWorkInt( attackindex, CHAR_WORKFIXDEX) *0.2 );//敏上升20% - //print("\n2会心一击:%d",perCri); - //print("\n2攻:%d", CHAR_getWorkInt( attackindex, CHAR_WORKATTACKPOWER)); - //print("\n2敏:%d", CHAR_getWorkInt( attackindex, CHAR_WORKQUICK)); + if( opt == BATTLE_COM_S_DAMAGETOHP2 ){ //鏆楁湀鐙傜嫾 (浼氬績涓鍑讳笂鍗30%) && CHAR_getInt( attackindex, CHAR_HP) <= CHAR_getWorkInt( attackindex, CHAR_MAXMP)*0.5 + //print("\n1浼氬績涓鍑:%d",perCri); + //print("\n1鏀:%d", CHAR_getWorkInt( attackindex, CHAR_WORKATTACKPOWER)); + //print("\n1鏁:%d", CHAR_getWorkInt( attackindex, CHAR_WORKQUICK)); + perCri = perCri + (perCri*0.3); //浼氬績涓鍑讳笂鍗30% + CHAR_setWorkInt( attackindex, CHAR_WORKATTACKPOWER, CHAR_getWorkInt( attackindex,CHAR_WORKFIXSTR)+CHAR_getWorkInt( attackindex,CHAR_WORKFIXSTR)*0.2);//鏀讳笂鍗20% + CHAR_setWorkInt( attackindex, CHAR_WORKQUICK, CHAR_getWorkInt( attackindex, CHAR_WORKFIXDEX)+CHAR_getWorkInt( attackindex, CHAR_WORKFIXDEX) *0.2 );//鏁忎笂鍗20% + //print("\n2浼氬績涓鍑:%d",perCri); + //print("\n2鏀:%d", CHAR_getWorkInt( attackindex, CHAR_WORKATTACKPOWER)); + //print("\n2鏁:%d", CHAR_getWorkInt( attackindex, CHAR_WORKQUICK)); } #endif @@ -1600,9 +1600,9 @@ static int BATTLE_AttackSeq( int attackindex, int defindex, int *pDamage, int *p } iRet = BATTLE_RET_CRITICAL; if( CHAR_getInt( attackindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER ){ - // 勇士武器专精技能升级 + // 鍕囧+姝﹀櫒涓撶簿鎶鑳藉崌绾 PROFESSION_SKILL_WEAPON_FOCUS_LVEVEL_UP( attackindex, "PROFESSION_WEAPON_FOCUS" ); - // 勇士二刀流技能升级 + // 鍕囧+浜屽垁娴佹妧鑳藉崌绾 PROFESSION_SKILL_DUAL_WEAPON_LVEVEL_UP( attackindex, "PROFESSION_DUAL_WEAPON" ); } }else{ @@ -1613,7 +1613,7 @@ static int BATTLE_AttackSeq( int attackindex, int defindex, int *pDamage, int *p if( opt == BATTLE_COM_S_GBREAK){ ;; }else -#ifdef _SKILL_GUARDBREAK2//破除防御2 vincent add 2002/05/20 +#ifdef _SKILL_GUARDBREAK2//鐮撮櫎闃插尽2 vincent add 2002/05/20 if( opt == BATTLE_COM_S_GBREAK2){ if( CHAR_getWorkInt( defindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_GUARD){ (*pDamage) = (*pDamage)*1.3; @@ -1624,12 +1624,12 @@ static int BATTLE_AttackSeq( int attackindex, int defindex, int *pDamage, int *p #endif #ifdef _PETSKILL_REGRET - if( opt == BATTLE_COM_S_REGRET2 ){// 人物伤害减少 + if( opt == BATTLE_COM_S_REGRET2 ){// 浜虹墿浼ゅ鍑忓皯 (*pDamage) = (*pDamage)*0.8; }else #endif -#ifdef _SONIC_ATTACK // WON ADD 音波攻击 - if( opt == BATTLE_COM_S_SONIC2 ){// 人物伤害减半 +#ifdef _SONIC_ATTACK // WON ADD 闊虫尝鏀诲嚮 + if( opt == BATTLE_COM_S_SONIC2 ){// 浜虹墿浼ゅ鍑忓崐 (*pDamage) = (*pDamage)*0.5; }else #endif @@ -1639,26 +1639,26 @@ static int BATTLE_AttackSeq( int attackindex, int defindex, int *pDamage, int *p } if( (*pDamage) < 1 ) (*pDamage) = RAND( 0, 1 ); -#ifdef _PREVENT_TEAMATTACK // 防止同队互打 +#ifdef _PREVENT_TEAMATTACK // 闃叉鍚岄槦浜掓墦 if (CHAR_getInt( defindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER || CHAR_getInt( defindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ) { int myside = CHAR_getWorkInt( defindex, CHAR_WORKBATTLESIDE);//attackindex if( myside == CHAR_getWorkInt( attackindex, CHAR_WORKBATTLESIDE)){ if( CHAR_getWorkInt( attackindex, CHAR_WORKCONFUSION) > 0 -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - || CHAR_getWorkInt( attackindex, CHAR_WORKINSTIGATE) > 0 // 挑拨 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + || CHAR_getWorkInt( attackindex, CHAR_WORKINSTIGATE) > 0 // 鎸戞嫧 #endif #ifdef _PROFESSION_ADDSKILL - || CHAR_getWorkInt( attackindex, CHAR_WORKANNEX) > 0 //附身 + || CHAR_getWorkInt( attackindex, CHAR_WORKANNEX) > 0 //闄勮韩 #endif - ){ //攻击方异常混乱 + ){ //鏀诲嚮鏂瑰紓甯告贩涔 #ifdef _PETSKILL_TEMPTATION - }else if( CHAR_getWorkInt( attackindex, CHAR_WORKTEMPTATION ) > 0 ){//水漾诱惑 + }else if( CHAR_getWorkInt( attackindex, CHAR_WORKTEMPTATION ) > 0 ){//姘存季璇辨儜 #endif }else if( CHAR_getInt( attackindex, CHAR_WHICHTYPE) == CHAR_TYPEPET && - CHAR_getWorkInt( attackindex, CHAR_WORKBATTLEFLG) & CHAR_BATTLEFLG_AIBAD ){ //nono宠 + CHAR_getWorkInt( attackindex, CHAR_WORKBATTLEFLG) & CHAR_BATTLEFLG_AIBAD ){ //nono瀹 }else if( CHAR_getInt( defindex, CHAR_WHICHTYPE) == CHAR_TYPEPET && - CHAR_getWorkInt( defindex, CHAR_WORKPLAYERINDEX) == attackindex ){ // 自已宠物 + CHAR_getWorkInt( defindex, CHAR_WORKPLAYERINDEX) == attackindex ){ // 鑷凡瀹犵墿 }else { int myhp, mymaxhp; mymaxhp = CHAR_getWorkInt( defindex, CHAR_WORKMAXHP); @@ -1679,7 +1679,7 @@ static int BATTLE_AttackSeq( int attackindex, int defindex, int *pDamage, int *p *pDamage *= 0.1; iRet = BATTLE_RET_ARRANGE; - // 勇士格挡技能增加 + // 鍕囧+鏍兼尅鎶鑳藉鍔 if( (CHAR_getInt( defindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER) ) PROFESSION_SKILL_LVEVEL_UP( defindex, "PROFESSION_DEFLECT" ); } @@ -1710,7 +1710,7 @@ BOOL BATTLE_CheckMySkillDuck( int charaindex ) int duck1 = CHAR_getWorkInt( charaindex, CHAR_MYSKILLDUCKPOWER); if( (rad = (rand()%100)) > duck1 ){ return FALSE; - }else {//回避 + }else {//鍥為伩 return TRUE; } } @@ -1718,7 +1718,7 @@ BOOL BATTLE_CheckMySkillDuck( int charaindex ) } #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 int BATTLE_check_profession_duck( int charaindex, int per ) { @@ -1746,14 +1746,14 @@ int BATTLE_GetDamageReact( int charaindex ) return BATTLE_MD_REFLEC; } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - if( CHAR_getWorkInt( charaindex, CHAR_WORKTRAP ) > 0 ){ //陷阱 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + if( CHAR_getWorkInt( charaindex, CHAR_WORKTRAP ) > 0 ){ //闄烽槺 return BATTLE_MD_TRAP; } #endif #ifdef _PETSKILL_ACUPUNCTURE - if( CHAR_getWorkInt( charaindex, CHAR_WORKACUPUNCTURE ) > 0 ){ //针刺外皮 - //print("\n针刺:BATTLE_GetDamageReact"); + if( CHAR_getWorkInt( charaindex, CHAR_WORKACUPUNCTURE ) > 0 ){ //閽堝埡澶栫毊 + //print("\n閽堝埡:BATTLE_GetDamageReact"); return BATTLE_MD_ACUPUNCTURE; } #endif @@ -1806,7 +1806,7 @@ int BATTLE_DamageSub( int attackindex, int defindex, int *pDamage, int *pPetDama }else{ } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ){ if( BATTLE_IsThrowWepon( CHAR_getItemIndex( attackindex, CHAR_ARM ) ) == FALSE ) *pRefrect = BATTLE_MD_TRAP; @@ -1873,8 +1873,8 @@ int BATTLE_DamageSub( int attackindex, int defindex, int *pDamage, int *pPetDama defpet = attackpet; } }else -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - if( *pRefrect == BATTLE_MD_TRAP ){ //陷阱 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + if( *pRefrect == BATTLE_MD_TRAP ){ //闄烽槺 #ifdef _PETSKILL_BATTLE_MODEL if(CHAR_getWorkInt(defindex,CHAR_NPCWORKINT1) == BATTLE_COM_S_BATTLE_MODEL){ CHAR_setWorkInt( defindex, CHAR_WORKTRAP, 0 ); @@ -1916,13 +1916,13 @@ int BATTLE_DamageSub( int attackindex, int defindex, int *pDamage, int *pPetDama }else #endif #ifdef _PETSKILL_ACUPUNCTURE - if( *pRefrect == BATTLE_MD_ACUPUNCTURE ){ //针刺外皮 + if( *pRefrect == BATTLE_MD_ACUPUNCTURE ){ //閽堝埡澶栫毊 if( damage%2 != 0 ) damage+=1; playerdamage = damage; - //先扣被攻击方的血,因为之後的动作都是对攻击方做的 + //鍏堟墸琚敾鍑绘柟鐨勮,鍥犱负涔嬪緦鐨勫姩浣滈兘鏄鏀诲嚮鏂瑰仛鐨 hp = CHAR_getInt( defindex, CHAR_HP ); if( attackpet == -1 ) { hp -= damage; @@ -1960,7 +1960,7 @@ int BATTLE_DamageSub( int attackindex, int defindex, int *pDamage, int *pPetDama int defNo = BATTLE_Index2No( battleindex, defindex ); CHAR_setWorkInt( defindex, CHAR_WORKULTIMATE, 0 ); - //死亡的宠物改为休息 + //姝讳骸鐨勫疇鐗╂敼涓轰紤鎭 if( defNo >= SIDE_OFFSET ){ i = defNo - SIDE_OFFSET; DefSide = 1; @@ -1971,16 +1971,16 @@ int BATTLE_DamageSub( int attackindex, int defindex, int *pDamage, int *pPetDama BattleArray[battleindex].Side[DefSide].Entry[i].flg |= BENT_FLG_ULTIMATE; } - //针刺外皮技能回合数设为0 + //閽堝埡澶栫毊鎶鑳藉洖鍚堟暟璁句负0 CHAR_setWorkInt( defindex, CHAR_WORKACUPUNCTURE, 0); - //if( CHAR_getWorkInt( defindex, CHAR_WORKSLEEP ) > 0 )//检查有无昏睡 + //if( CHAR_getWorkInt( defindex, CHAR_WORKSLEEP ) > 0 )//妫鏌ユ湁鏃犳槒鐫 // CHAR_setWorkInt( defindex, CHAR_WORKSLEEP, 0); #ifdef _PETSKILL_BATTLE_MODEL if(CHAR_getWorkInt(defindex,CHAR_NPCWORKINT1) != BATTLE_COM_S_BATTLE_MODEL) #endif { - //扣攻击方的血 + //鎵f敾鍑绘柟鐨勮 hp = CHAR_getInt( attackindex, CHAR_HP ); if( attackpet == -1 ) { hp -= damage/2; @@ -2070,7 +2070,7 @@ int BATTLE_DamageSub( int attackindex, int defindex, int *pDamage, int *pPetDama if( BattleArray[battleindex].type == BATTLE_TYPE_P_vs_P ){ } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) IsUltimate = 0; #endif @@ -2086,7 +2086,7 @@ int BATTLE_DamageSub( int attackindex, int defindex, int *pDamage, int *pPetDama return IsUltimate; } -#ifdef _PETSKILL_FIREKILL //火线猎杀专用 +#ifdef _PETSKILL_FIREKILL //鐏嚎鐚庢潃涓撶敤 int BATTLE_DamageSub_FIREKILL( int attackindex, int defindex, int *pDamage, int *pPetDamage, int *pRefrect ) { @@ -2126,7 +2126,7 @@ int BATTLE_DamageSub_FIREKILL( int attackindex, int defindex, int *pDamage, int }else{ } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ){ if( BATTLE_IsThrowWepon( CHAR_getItemIndex( attackindex, CHAR_ARM ) ) == FALSE ) *pRefrect = BATTLE_MD_TRAP; @@ -2183,8 +2183,8 @@ int BATTLE_DamageSub_FIREKILL( int attackindex, int defindex, int *pDamage, int defpet = attackpet; }else -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - if( *pRefrect == BATTLE_MD_TRAP ){ //陷阱 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + if( *pRefrect == BATTLE_MD_TRAP ){ //闄烽槺 int value=0; value = CHAR_getWorkInt( defindex, CHAR_WORKMODTRAP ); damage = value; @@ -2216,13 +2216,13 @@ int BATTLE_DamageSub_FIREKILL( int attackindex, int defindex, int *pDamage, int }else #endif #ifdef _PETSKILL_ACUPUNCTURE - if( *pRefrect == BATTLE_MD_ACUPUNCTURE ){ //针刺外皮 + if( *pRefrect == BATTLE_MD_ACUPUNCTURE ){ //閽堝埡澶栫毊 if( damage%2 != 0 ) damage+=1; playerdamage = damage; - //先扣被攻击方的血,因为之後的动作都是对攻击方做的 + //鍏堟墸琚敾鍑绘柟鐨勮,鍥犱负涔嬪緦鐨勫姩浣滈兘鏄鏀诲嚮鏂瑰仛鐨 hp = CHAR_getInt( defindex, CHAR_HP ); if( attackpet == -1 ) { hp -= damage; @@ -2260,7 +2260,7 @@ int BATTLE_DamageSub_FIREKILL( int attackindex, int defindex, int *pDamage, int int defNo = BATTLE_Index2No( battleindex, defindex ); CHAR_setWorkInt( defindex, CHAR_WORKULTIMATE, 0 ); - //死亡的宠物改为休息 + //姝讳骸鐨勫疇鐗╂敼涓轰紤鎭 if( defNo >= SIDE_OFFSET ){ i = defNo - SIDE_OFFSET; DefSide = 1; @@ -2271,12 +2271,12 @@ int BATTLE_DamageSub_FIREKILL( int attackindex, int defindex, int *pDamage, int BattleArray[battleindex].Side[DefSide].Entry[i].flg |= BENT_FLG_ULTIMATE; } - //针刺外皮技能回合数设为0 + //閽堝埡澶栫毊鎶鑳藉洖鍚堟暟璁句负0 CHAR_setWorkInt( defindex, CHAR_WORKACUPUNCTURE, 0); - //if( CHAR_getWorkInt( defindex, CHAR_WORKSLEEP ) > 0 )//检查有无昏睡 + //if( CHAR_getWorkInt( defindex, CHAR_WORKSLEEP ) > 0 )//妫鏌ユ湁鏃犳槒鐫 // CHAR_setWorkInt( defindex, CHAR_WORKSLEEP, 0); - //扣攻击方的血 + //鎵f敾鍑绘柟鐨勮 hp = CHAR_getInt( attackindex, CHAR_HP ); if( attackpet == -1 ) { hp -= damage/2; @@ -2366,7 +2366,7 @@ int BATTLE_DamageSub_FIREKILL( int attackindex, int defindex, int *pDamage, int } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) IsUltimate = 0; #endif @@ -2416,7 +2416,7 @@ int BATTLE_DamageSub2( int attackindex, int defindex, int *pDamage, int *pPetDam } } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ){ if( BATTLE_IsThrowWepon( CHAR_getItemIndex( attackindex, CHAR_ARM ) ) == FALSE ) *pRefrect = BATTLE_MD_TRAP; @@ -2458,8 +2458,8 @@ int BATTLE_DamageSub2( int attackindex, int defindex, int *pDamage, int *pPetDam defpet = attackpet; }else -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 - if( *pRefrect == BATTLE_MD_TRAP ){ //陷阱 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 + if( *pRefrect == BATTLE_MD_TRAP ){ //闄烽槺 hp = CHAR_getInt( attackindex, CHAR_HP ); hp -= playerdamage; @@ -2539,7 +2539,7 @@ int BATTLE_DamageSub2( int attackindex, int defindex, int *pDamage, int *pPetDam if( BattleArray[battleindex].type == BATTLE_TYPE_P_vs_P ){ } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) IsUltimate = 0; #endif @@ -2604,7 +2604,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) defindex, react = 0, statusDefNo, opt = 0; int flg = 0, iWork, par, perStatus, i, DefSide = 0, Guardian = -1; BOOL iRet = TRUE; - int suitpoison=30;//基本中毒% + int suitpoison=30;//鍩烘湰涓瘨% attackindex = BATTLE_No2Index( battleindex, attackNo ); defindex = toindex = BATTLE_No2Index( battleindex, defNo ); @@ -2628,11 +2628,11 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) if( CHAR_getInt( attackindex, CHAR_HP ) <= 0 ) return FALSE; - // 光、镜、守 + // 鍏夈侀暅銆佸畧 if( BATTLE_GetDamageReact( attackindex ) > 0 ) iRet = FALSE; else if( BATTLE_GetDamageReact( defindex ) > 0 ) iRet = FALSE; - // 攻击模式 + // 鏀诲嚮妯″紡 iWork = BATTLE_AttackSeq( attackindex, toindex, &damage, &Guardian, opt ); if( Guardian >= 0 ) @@ -2648,7 +2648,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) ultimate = BATTLE_DamageSub( attackindex, defindex, &damage, &petdamage, &react ); -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ){ defindex = attackindex; statusDefNo = attackNo; @@ -2672,13 +2672,13 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) } #ifdef _PETSKILL_ACUPUNCTURE - if( react == BATTLE_MD_ACUPUNCTURE ){ //针刺外皮时会无法正常解除被打方的状态,所以把index换回来 + if( react == BATTLE_MD_ACUPUNCTURE ){ //閽堝埡澶栫毊鏃朵細鏃犳硶姝e父瑙i櫎琚墦鏂圭殑鐘舵,鎵浠ユ妸index鎹㈠洖鏉 defindex = toindex = BATTLE_No2Index( battleindex, defNo ); statusDefNo = defNo; } #endif - //昏睡时,在这里解除状态(也有其它的状态) + //鏄忕潯鏃,鍦ㄨ繖閲岃В闄ょ姸鎬(涔熸湁鍏跺畠鐨勭姸鎬) if( damage > 0 && ( react != BATTLE_MD_ABSROB ) && ( react != BATTLE_MD_VANISH ) ){ BATTLE_DamageWakeUp( battleindex, defindex ); } @@ -2693,7 +2693,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) switch( iWork ){ case BATTLE_RET_ALLGUARD: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)朝向(%s)攻击,轻易地被躲开。", + // "(%s)鏈濆悜(%s)鏀诲嚮,杞绘槗鍦拌韬插紑銆", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ) //); @@ -2704,7 +2704,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) break; case BATTLE_RET_MISS: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)朝向(%s)攻击,没击中。", + // "(%s)鏈濆悜(%s)鏀诲嚮,娌″嚮涓", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ) //); @@ -2714,7 +2714,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) break; case BATTLE_RET_DODGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)攻击了(%s)躲开了(%.2f%%)", + // "(%s)鏀诲嚮浜(%s)韬插紑浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -2726,7 +2726,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) break; case BATTLE_RET_NORMAL: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)受到(%s)的攻击(%d)遭受损伤(%d:%d:%d%%)", + // "(%s)鍙楀埌(%s)鐨勬敾鍑(%d)閬彈鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -2740,7 +2740,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) break; case BATTLE_RET_CRITICAL: //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)向(%s)CRITICAL(%d%%)(%d)不可以(%d:%d:%d%%)", + //"(%s)鍚(%s)CRITICAL(%d%%)(%d)涓嶅彲浠(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // (int)(gCriper*0.01), @@ -2757,7 +2757,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) #ifdef _EQUIT_ARRANGE case BATTLE_RET_ARRANGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)攻击了(%s)挡掉了(%.2f%%)", + // "(%s)鏀诲嚮浜(%s)鎸℃帀浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -2788,7 +2788,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) ultimate = 0; #endif @@ -2810,15 +2810,15 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) #ifdef _PETSKILL_ACUPUNCTURE - if( react == BATTLE_MD_ACUPUNCTURE ){ //针刺外皮不会反射特殊状态,所以要改回来 + if( react == BATTLE_MD_ACUPUNCTURE ){ //閽堝埡澶栫毊涓嶄細鍙嶅皠鐗规畩鐘舵,鎵浠ヨ鏀瑰洖鏉 defindex = toindex = BATTLE_No2Index( battleindex, defNo ); statusDefNo = defNo; } - //注意:之後要不要再改回原本反射.......???? + //娉ㄦ剰:涔嬪緦瑕佷笉瑕佸啀鏀瑰洖鍘熸湰鍙嶅皠.......???? #endif #ifdef _SUIT_ADDPART4 - if( gBattleStausChange == -1 && CHAR_getWorkInt( attackindex, CHAR_SUITPOISON ) > 0 )//带毒装备 + if( gBattleStausChange == -1 && CHAR_getWorkInt( attackindex, CHAR_SUITPOISON ) > 0 )//甯︽瘨瑁呭 gBattleStausChange = 1,gBattleStausTurn = 3, suitpoison=CHAR_getWorkInt( attackindex, CHAR_SUITPOISON ); #endif @@ -2841,7 +2841,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) CHAR_getWorkInt( defindex, CHAR_WORKDRUNK ) / 2 ); } -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 if( gBattleStausChange == BATTLE_ST_SARS ){ CHAR_setWorkInt( defindex, CHAR_WORKMODSARS, 1); } @@ -2856,7 +2856,7 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) } //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)变成(%s)(%d%%)", + //"(%s)鍙樻垚(%s)(%d%%)", // CHAR_getUseName( defindex ), // aszStatusFull[gBattleStausChange], // perStatus @@ -2867,18 +2867,18 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) BATTLE_BadStatusString( statusDefNo, gBattleStausChange ); }else{ //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)无法成功\(%d%%)", + //"(%s)鏃犳硶鎴愬姛\(%d%%)", // aszStatusFull[gBattleStausChange], // perStatus ); //BATTLE_BroadCast( battleindex, szBuffer, // (attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; } } -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 if ( ( damage > 0 ) && ( CHAR_getWorkInt( attackindex , CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ATTSHOOT ) ) { if ( RAND ( 1 , 5 ) > 4 ) { - CHAR_setWorkInt( defindex, CHAR_WORKSLEEP , 3 ); //设定昏睡 - CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE );//因为设定了昏睡,所以设定无动作 + CHAR_setWorkInt( defindex, CHAR_WORKSLEEP , 3 ); //璁惧畾鏄忕潯 + CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE );//鍥犱负璁惧畾浜嗘槒鐫,鎵浠ヨ瀹氭棤鍔ㄤ綔 } } #endif @@ -2886,8 +2886,8 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) if ( ( damage > 0 ) && ( CHAR_getWorkInt( attackindex , CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_GYRATE ) && (CHAR_getWorkInt( attackindex , CHAR_WORKBATTLECOM5 ) >0) ) { if ( RAND ( 1 , 100 ) <= CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM7) ) { int iEffect = CHAR_getWorkInt( attackindex , CHAR_WORKBATTLECOM5 ); - CHAR_setWorkInt( defindex, StatusTbl[iEffect] , CHAR_getWorkInt( attackindex , CHAR_WORKBATTLECOM6 ) ); //设定昏睡 - CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE );//因为设定了昏睡,所以设定无动作 + CHAR_setWorkInt( defindex, StatusTbl[iEffect] , CHAR_getWorkInt( attackindex , CHAR_WORKBATTLECOM6 ) ); //璁惧畾鏄忕潯 + CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE );//鍥犱负璁惧畾浜嗘槒鐫,鎵浠ヨ瀹氭棤鍔ㄤ綔 } } #endif @@ -2901,10 +2901,10 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) } } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( damage > 0 && (CHAR_getInt(attackindex, CHAR_WHICHTYPE)== CHAR_TYPEPLAYER) ){ int i; - // 检查火、冰、雷附体 + // 妫鏌ョ伀銆佸啺銆侀浄闄勪綋 for( i=0; i<3; i++ ){ int turn = 0, status = -1; @@ -2914,10 +2914,10 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) int skill_type = CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ); int perStatus = 0, j = 0; int skill_level = CHAR_getWorkInt( attackindex, CHAR_WORKMOD_F_ENCLOSE_2+i ); - char pszP[3][10] = { "烧","霜","电" }; + char pszP[3][10] = { "鐑","闇","鐢" }; int img1 = 101697, img2 = 101698 + i; - // 状态 + // 鐘舵 for( j = 1; j < BATTLE_ST_END; j ++ ){ if( strncmp( pszP[i], aszStatus[j], 2 ) == 0 ){ status = j; @@ -2925,19 +2925,19 @@ int BATTLE_Attack( int battleindex, int attackNo, int defNo ) } } - // 命中率 + // 鍛戒腑鐜 perStatus = 20 + skill_level * 2; - // 回合数 + // 鍥炲悎鏁 if( skill_level >= 10 ) turn = 3; else if( skill_level >= 5 ) turn = 2; else turn = 1; - // 雷附体一回合数 + // 闆烽檮浣撲竴鍥炲悎鏁 if( i == 2 ) turn = 1; - // 火、冰、雷附体附加攻击 -// Terry add fix 忠犬bug + // 鐏佸啺銆侀浄闄勪綋闄勫姞鏀诲嚮 +// Terry add fix 蹇犵姮bug if(Guardian >= 0) iRet = BATTLE_PROFESSION_RANG_ATTACK_DAMAGE(attackindex, attackNo, Guardian, skill_type, status, turn, perStatus, 0, img1, img2 ); else iRet = BATTLE_PROFESSION_RANG_ATTACK_DAMAGE(attackindex, attackNo, defNo, skill_type, status, turn, perStatus, 0, img1, img2 ); @@ -3018,11 +3018,11 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) if( CHAR_getInt( attackindex, CHAR_HP ) <= 0 ) return FALSE; - // 光、镜、守 + // 鍏夈侀暅銆佸畧 // if( BATTLE_GetDamageReact( attackindex ) > 0 ) iRet = FALSE; // else if( BATTLE_GetDamageReact( defindex ) > 0 ) iRet = FALSE; - // 攻击模式 + // 鏀诲嚮妯″紡 iWork = BATTLE_AttackSeq( attackindex, toindex, &damage, &Guardian, opt ); if( Guardian >= 0 ) @@ -3038,7 +3038,7 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) ultimate = BATTLE_DamageSub_FIREKILL( attackindex, defindex, &damage, &petdamage, &react ); -//#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +//#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 // if( react == BATTLE_MD_TRAP ){ // defindex = attackindex; // statusDefNo = attackNo; @@ -3062,13 +3062,13 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) // } //#ifdef _PETSKILL_ACUPUNCTURE -// if( react == BATTLE_MD_ACUPUNCTURE ){ //针刺外皮时会无法正常解除被打方的状态,所以把index换回来 +// if( react == BATTLE_MD_ACUPUNCTURE ){ //閽堝埡澶栫毊鏃朵細鏃犳硶姝e父瑙i櫎琚墦鏂圭殑鐘舵,鎵浠ユ妸index鎹㈠洖鏉 // defindex = toindex = BATTLE_No2Index( battleindex, defNo ); // statusDefNo = defNo; // } //#endif - //昏睡时,在这里解除状态(也有其它的状态) + //鏄忕潯鏃,鍦ㄨ繖閲岃В闄ょ姸鎬(涔熸湁鍏跺畠鐨勭姸鎬) if( damage > 0 && ( react != BATTLE_MD_ABSROB ) && ( react != BATTLE_MD_VANISH ) ){ BATTLE_DamageWakeUp( battleindex, defindex ); } @@ -3083,7 +3083,7 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) switch( iWork ){ case BATTLE_RET_ALLGUARD: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)朝向(%s)攻击,轻易地被躲开。", + // "(%s)鏈濆悜(%s)鏀诲嚮,杞绘槗鍦拌韬插紑銆", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ) //); @@ -3091,14 +3091,14 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) break; case BATTLE_RET_MISS: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)朝向(%s)攻击,没击中。", + // "(%s)鏈濆悜(%s)鏀诲嚮,娌″嚮涓", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ) //); break; case BATTLE_RET_DODGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)攻击了(%s)躲开了(%.2f%%)", + // "(%s)鏀诲嚮浜(%s)韬插紑浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -3110,7 +3110,7 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) break; case BATTLE_RET_NORMAL: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)受到(%s)的攻击(%d)遭受损伤(%d:%d:%d%%)", + // "(%s)鍙楀埌(%s)鐨勬敾鍑(%d)閬彈鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -3124,7 +3124,7 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) break; case BATTLE_RET_CRITICAL: //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)向(%s)CRITICAL(%d%%)(%d)不可以(%d:%d:%d%%)", + //"(%s)鍚(%s)CRITICAL(%d%%)(%d)涓嶅彲浠(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // (int)(gCriper*0.01), @@ -3141,7 +3141,7 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) #ifdef _EQUIT_ARRANGE case BATTLE_RET_ARRANGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)攻击了(%s)挡掉了(%.2f%%)", + // "(%s)鏀诲嚮浜(%s)鎸℃帀浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -3168,7 +3168,7 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) } } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) ultimate = 0; #endif @@ -3190,11 +3190,11 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) //#ifdef _PETSKILL_ACUPUNCTURE -// if( react == BATTLE_MD_ACUPUNCTURE ){ //针刺外皮不会反射特殊状态,所以要改回来 +// if( react == BATTLE_MD_ACUPUNCTURE ){ //閽堝埡澶栫毊涓嶄細鍙嶅皠鐗规畩鐘舵,鎵浠ヨ鏀瑰洖鏉 // defindex = toindex = BATTLE_No2Index( battleindex, defNo ); // statusDefNo = defNo; // } -// //注意:之後要不要再改回原本反射.......???? +// //娉ㄦ剰:涔嬪緦瑕佷笉瑕佸啀鏀瑰洖鍘熸湰鍙嶅皠.......???? //#endif @@ -3217,7 +3217,7 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) CHAR_getWorkInt( defindex, CHAR_WORKDRUNK ) / 2 ); } -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 if( gBattleStausChange == BATTLE_ST_SARS ){ CHAR_setWorkInt( defindex, CHAR_WORKMODSARS, 1); } @@ -3232,7 +3232,7 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) } //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)变成(%s)(%d%%)", + //"(%s)鍙樻垚(%s)(%d%%)", // CHAR_getUseName( defindex ), // aszStatusFull[gBattleStausChange], // perStatus @@ -3243,18 +3243,18 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) BATTLE_BadStatusString( statusDefNo, gBattleStausChange ); }else{ //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)无法成功\(%d%%)", + //"(%s)鏃犳硶鎴愬姛\(%d%%)", // aszStatusFull[gBattleStausChange], // perStatus ); //BATTLE_BroadCast( battleindex, szBuffer, // (attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; } } -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 if ( ( damage > 0 ) && ( CHAR_getWorkInt( attackindex , CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ATTSHOOT ) ) { if ( RAND ( 1 , 5 ) > 4 ) { - CHAR_setWorkInt( defindex, CHAR_WORKSLEEP , 3 ); //设定昏睡 - CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE );//因为设定了昏睡,所以设定无动作 + CHAR_setWorkInt( defindex, CHAR_WORKSLEEP , 3 ); //璁惧畾鏄忕潯 + CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE );//鍥犱负璁惧畾浜嗘槒鐫,鎵浠ヨ瀹氭棤鍔ㄤ綔 } } #endif @@ -3268,10 +3268,10 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) } } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( damage > 0 && (CHAR_getInt(attackindex, CHAR_WHICHTYPE)== CHAR_TYPEPLAYER) ){ int i; - // 检查火、冰、雷附体 + // 妫鏌ョ伀銆佸啺銆侀浄闄勪綋 for( i=0; i<3; i++ ){ int turn = 0, status = -1; @@ -3281,10 +3281,10 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) int skill_type = CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ); int perStatus = 0, j = 0; int skill_level = CHAR_getWorkInt( attackindex, CHAR_WORKMOD_F_ENCLOSE_2+i ); - char pszP[3][10] = { "烧","霜","电" }; + char pszP[3][10] = { "鐑","闇","鐢" }; int img1 = 101697, img2 = 101698 + i; - // 状态 + // 鐘舵 for( j = 1; j < BATTLE_ST_END; j ++ ){ if( strncmp( pszP[i], aszStatus[j], 2 ) == 0 ){ status = j; @@ -3292,19 +3292,19 @@ int BATTLE_Attack_FIREKILL( int battleindex, int attackNo, int defNo ) } } - // 命中率 + // 鍛戒腑鐜 perStatus = 20 + skill_level * 2; - // 回合数 + // 鍥炲悎鏁 if( skill_level >= 10 ) turn = 3; else if( skill_level >= 5 ) turn = 2; else turn = 1; - // 雷附体一回合数 + // 闆烽檮浣撲竴鍥炲悎鏁 if( i == 2 ) turn = 1; - // 火、冰、雷附体附加攻击 -// Terry add fix 忠犬bug + // 鐏佸啺銆侀浄闄勪綋闄勫姞鏀诲嚮 +// Terry add fix 蹇犵姮bug if(Guardian >= 0) iRet = BATTLE_PROFESSION_RANG_ATTACK_DAMAGE(attackindex, attackNo, Guardian, skill_type, status, turn, perStatus, 0, img1, img2 ); else iRet = BATTLE_PROFESSION_RANG_ATTACK_DAMAGE(attackindex, attackNo, defNo, skill_type, status, turn, perStatus, 0, img1, img2 ); @@ -3511,7 +3511,7 @@ static BOOL BATTLE_CounterCheckPet( int attackindex, int defindex, int *pPer ) static BOOL BATTLE_CounterCheck( int attackindex, int defindex, int *pPar ) { -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 if ( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ATTSHOOT || CHAR_getWorkInt( defindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ATTSHOOT ) { @@ -3527,7 +3527,7 @@ static BOOL BATTLE_CounterCheck( int attackindex, int defindex, int *pPar ) -//反击判定 +//鍙嶅嚮鍒ゅ畾 BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) { @@ -3540,7 +3540,7 @@ BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) attackindex = BATTLE_No2Index( battleindex, attackNo ); defindex = BATTLE_No2Index( battleindex, defNo ); -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 if ( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ATTSHOOT ) { return FALSE; } @@ -3556,13 +3556,13 @@ BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) return FALSE; } - // nono宠 + // nono瀹 if( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLEFLG ) & CHAR_BATTLEFLG_ABIO ) return FALSE; - // 反击条件 + // 鍙嶅嚮鏉′欢 if( BATTLE_CounterCheck( attackindex, defindex, &per ) == FALSE ) return FALSE; - // 光、镜、守 + // 鍏夈侀暅銆佸畧 if( BATTLE_GetDamageReact( attackindex ) > 0 ) iRet = FALSE; else if( BATTLE_GetDamageReact( defindex ) > 0 ) @@ -3585,7 +3585,7 @@ BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) ultimate = BATTLE_DamageSub( attackindex, defindex, &damage, &petdamage, &react ); if( react == BATTLE_MD_REFLEC ) defindex = attackindex; -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ) defindex = attackindex; #endif @@ -3601,7 +3601,7 @@ BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) case BATTLE_RET_MISS: /* snprintf( szBuffer, sizeof(szBuffer), - "(%s)朝向(%s)反击,没击中。", + "(%s)鏈濆悜(%s)鍙嶅嚮,娌″嚮涓", CHAR_getUseName( attackindex ), CHAR_getUseName( defindex ) ); @@ -3610,7 +3610,7 @@ BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) case BATTLE_RET_DODGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)意外攻击(%d%%)!但是(%s)闪开了(%.2f%%)", + // "(%s)鎰忓鏀诲嚮(%d%%)!浣嗘槸(%s)闂紑浜(%.2f%%)", // CHAR_getUseName( attackindex ), // per, // CHAR_getUseName( defindex ), @@ -3621,7 +3621,7 @@ BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) case BATTLE_RET_NORMAL: //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)的反击!(%d%%)(%d)损伤 (%d:%d:%d%%)", + //"(%s)鐨勫弽鍑!(%d%%)(%d)鎹熶激 (%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // per, // damage, @@ -3635,7 +3635,7 @@ BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) case BATTLE_RET_CRITICAL: //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)的CRITICAL!(%d%%)(%d)损伤 (%d:%d:%d%%)", + //"(%s)鐨凜RITICAL锛(%d%%)(%d)鎹熶激 (%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // per, // damage, @@ -3651,7 +3651,7 @@ BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) #ifdef _EQUIT_ARRANGE case BATTLE_RET_ARRANGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)攻击了(%s)挡掉了(%.2f%%)", + // "(%s)鏀诲嚮浜(%s)鎸℃帀浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -3675,7 +3675,7 @@ BOOL BATTLE_Counter( int battleindex, int attackNo, int defNo ) } } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) ultimate = 0; #endif @@ -3816,7 +3816,7 @@ typedef struct _NeedItemEnemy{ }NEEDITEMENEMY; NEEDITEMENEMY NeedEnemy[128] = { { 524, { 2456, -1, -1, -1, -1, -1, -1, -1, -1, -1} }, - //伊甸任务 + //浼婄敻浠诲姟 { 961, {20219, -1, -1, -1, -1, -1, -1, -1, -1, -1} }, { 953, {20223, -1, -1, -1, -1, -1, -1, -1, -1, -1} }, { 962, {20222, -1, -1, -1, -1, -1, -1, -1, -1, -1} }, @@ -3827,7 +3827,7 @@ NEEDITEMENEMY NeedEnemy[128] = { { 1105, {1690, 1691, 1692, -1, -1, -1, -1, -1, -1, -1} }, { 8, {1810, -1, -1, -1, -1, -1, -1, -1, -1, -1} }, -#ifdef _WOLF_TAKE_AXE // WON ADD 抓双头狼的限制 +#ifdef _WOLF_TAKE_AXE // WON ADD 鎶撳弻澶寸嫾鐨勯檺鍒 { 145, {2236, -1, -1, -1, -1, -1, -1, -1, -1, -1} }, { 146, {2236, -1, -1, -1, -1, -1, -1, -1, -1, -1} }, #endif @@ -3843,7 +3843,7 @@ int need_item_eneny_init() fp = fopen("data/needitemeneny.txt", "r"); if (fp == NULL) { - print("无法打开文件\n"); + print("鏃犳硶鎵撳紑鏂囦欢\n"); return FALSE; } while(1){ @@ -3872,7 +3872,7 @@ typedef struct _NeedItemEnemy{ }NEEDITEMENEMY; NEEDITEMENEMY NeedEnemy[] = { { 524, 2456 }, - //伊甸任务 + //浼婄敻浠诲姟 { 961, 20219}, { 953, 20223}, { 962, 20222}, @@ -3917,7 +3917,7 @@ BOOL BATTLE_CaptureItemCheck( int attackindex, int defindex ) if( ITEM_getInt( itemindex, ITEM_ID ) != NeedEnemy[ ti].ItemId[i] ) continue; break; } - //没找到 + //娌℃壘鍒 if( j>= CHAR_MAXITEMHAVE ) return FALSE; } return TRUE; @@ -3950,12 +3950,12 @@ BOOL BATTLE_CaptureItemDelAll( int attackindex, int defindex ) // LogItem( // CHAR_getChar( attackindex, CHAR_NAME ), // CHAR_getChar( attackindex, CHAR_CDKEY ), -//#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +//#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О // itemindex, //#else // ITEM_getInt( itemindex, ITEM_ID ), //#endif -// "PetEaten(使用条件道具捕获宠物)", +// "PetEaten(浣跨敤鏉′欢閬撳叿鎹曡幏瀹犵墿)", // CHAR_getInt( attackindex,CHAR_FLOOR), // CHAR_getInt( attackindex,CHAR_X ), // CHAR_getInt( attackindex,CHAR_Y ), @@ -3979,7 +3979,7 @@ BOOL BATTLE_CaptureItemDelAll( int attackindex, int defindex ) } CHAR_DelItem( attackindex, j); CHAR_complianceParameter( attackindex); - break;//Change fix 抓到一只宠只删除一个道具(最後还是决定全删) + break;//Change fix 鎶撳埌涓鍙疇鍙垹闄や竴涓亾鍏(鏈寰岃繕鏄喅瀹氬叏鍒) } } } @@ -4013,13 +4013,13 @@ BOOL BATTLE_Capture( ){ flg = 0; //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)没有捕获(%s)的必要道具。", + // "(%s)娌℃湁鎹曡幏(%s)鐨勫繀瑕侀亾鍏枫", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ) //); }else if( BATTLE_CaptureCheck( attackindex, defindex, &per ) == FALSE ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)无法捕获(%s)(%.2f%%)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鏃犳硶鎹曡幏(%s)(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // per @@ -4030,13 +4030,13 @@ BOOL BATTLE_Capture( if( flg == 1 ){ pindex = PET_createPetFromCharaIndex( attackindex, defindex ); if( pindex == -1 ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)呈现无法捕获的状态。", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鍛堢幇鏃犳硶鎹曡幏鐨勭姸鎬併", // CHAR_getUseName( attackindex ) ); flg = 0; }else{ int ai; CHAR_setInt( pindex, CHAR_PETGETLV, CHAR_getInt( pindex, CHAR_LV ) ); - //snprintf( szBuffer, sizeof(szBuffer), "(%s)捕获了(%s)(%.2f%%)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鎹曡幏浜(%s)(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // per @@ -4048,7 +4048,7 @@ BOOL BATTLE_Capture( // CHAR_getUseID( attackindex ), // CHAR_getChar( defindex, CHAR_NAME ), // CHAR_getInt( defindex, CHAR_LV ), -// "Get(捕获宠物)", +// "Get(鎹曡幏瀹犵墿)", // CHAR_getInt( attackindex, CHAR_FLOOR ), // CHAR_getInt( attackindex, CHAR_X ), // CHAR_getInt( attackindex, CHAR_Y ), @@ -4071,12 +4071,12 @@ BOOL BATTLE_Capture( // LogItem( // CHAR_getChar( attackindex, CHAR_NAME ), // CHAR_getChar( attackindex, CHAR_CDKEY ), -//#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +//#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О // itemindex, //#else // ITEM_getInt( itemindex, ITEM_ID ), //#endif -// "PetEaten(使用料理捕获宠物)", +// "PetEaten(浣跨敤鏂欑悊鎹曡幏瀹犵墿)", // CHAR_getInt( attackindex,CHAR_FLOOR), // CHAR_getInt( attackindex,CHAR_X ), // CHAR_getInt( attackindex,CHAR_Y ), @@ -4130,7 +4130,7 @@ void BATTLE_Guard( /*attackindex = BATTLE_No2Index( battleindex, attackNo ); { char szBuffer[256]=""; - //snprintf( szBuffer, sizeof(szBuffer), "(%s)保住了自身安全。", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)淇濅綇浜嗚嚜韬畨鍏ㄣ", // CHAR_getUseName( attackindex ) //); //BATTLE_BroadCast( battleindex, szBuffer, @@ -4258,7 +4258,7 @@ BOOL BATTLE_Escape( int battleindex, int attackNo, int flag) } if( flg == 1 || flag == 1 ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)逃跑了(%d%%)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)閫冭窇浜(%d%%)", // CHAR_getUseName( attackindex ), iPar //); //if( getBattleDebugMsg( ) != 0 ){ @@ -4279,7 +4279,7 @@ BOOL BATTLE_Escape( int battleindex, int attackNo, int flag) BATTLE_Exit( attackindex, battleindex ); }else{ //if( getBattleDebugMsg( ) != 0 ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)差点跑了(%d%%)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)宸偣璺戜簡(%d%%)", // CHAR_getUseName( attackindex ), iPar //); //BATTLE_BroadCast( battleindex, szBuffer, @@ -4343,7 +4343,7 @@ int BATTLE_NoAction( int battleindex, int attackNo ) sprintf( szCommand, "bn|%x|", attackNo ); BATTLESTR_ADD( szCommand ); - //snprintf( szBuffer, sizeof(szBuffer), "(%s)什麽也不能做。", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)浠楹戒篃涓嶈兘鍋氥", // CHAR_getUseName( attackindex ) //); //BATTLE_BroadCast( battleindex, szBuffer, @@ -4362,7 +4362,7 @@ int BATTLE_PetIn( int battleindex, int attackNo ) attackindex = BATTLE_No2Index( battleindex, attackNo ); petindex = CHAR_getInt( attackindex, CHAR_DEFAULTPET ); petindex = CHAR_getCharPet( attackindex, petindex ); -#ifdef _FIXWOLF // Syu ADD 修正狼人变身Bug +#ifdef _FIXWOLF // Syu ADD 淇鐙间汉鍙樿韩Bug if ( CHAR_getInt ( petindex , CHAR_BASEIMAGENUMBER) == 101428 ) { CHAR_setInt( petindex, CHAR_BASEIMAGENUMBER, CHAR_getInt( petindex , CHAR_BASEBASEIMAGENUMBER)); @@ -4370,9 +4370,9 @@ int BATTLE_PetIn( int battleindex, int attackNo ) CHAR_setWorkInt( petindex, CHAR_WORKQUICK, CHAR_getWorkInt( petindex , CHAR_WORKFIXDEX)); } #endif -#ifdef _PETSKILL_BECOMEFOX // 宠物中媚惑术收回後再放出来时要恢复正常状态 +#ifdef _PETSKILL_BECOMEFOX // 瀹犵墿涓獨鎯戞湳鏀跺洖寰屽啀鏀惧嚭鏉ユ椂瑕佹仮澶嶆甯哥姸鎬 if ( CHAR_getInt ( petindex , CHAR_WORKFOXROUND) != -1 - || CHAR_getInt( petindex, CHAR_BASEIMAGENUMBER) == 101749 ){ //若是变身为狸 + || CHAR_getInt( petindex, CHAR_BASEIMAGENUMBER) == 101749 ){ //鑻ユ槸鍙樿韩涓虹嫺 CHAR_setInt( petindex, CHAR_BASEIMAGENUMBER, CHAR_getInt( petindex , CHAR_BASEBASEIMAGENUMBER)); CHAR_setWorkInt( petindex, CHAR_WORKATTACKPOWER, CHAR_getWorkInt( petindex , CHAR_WORKFIXSTR)); CHAR_setWorkInt( petindex, CHAR_WORKQUICK, CHAR_getWorkInt( petindex , CHAR_WORKFIXDEX)); @@ -4382,7 +4382,7 @@ int BATTLE_PetIn( int battleindex, int attackNo ) if( CHAR_getWorkInt( petindex, CHAR_WORKBATTLEFLG ) & CHAR_BATTLEFLG_NORETURN ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)无法回复成(%s)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鏃犳硶鍥炲鎴(%s)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( petindex ) //); @@ -4392,7 +4392,7 @@ int BATTLE_PetIn( int battleindex, int attackNo ) BATTLE_PetDefaultExit( attackindex, battleindex ); CHAR_setInt( attackindex, CHAR_DEFAULTPET, -1 ); - //snprintf( szBuffer, sizeof(szBuffer), "(%s)回复成(%s)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鍥炲鎴(%s)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( petindex ) //); @@ -4428,12 +4428,12 @@ int BATTLE_PetOut( int battleindex, int attackNo ) CHAR_getWorkInt( attackindex, CHAR_WORKBATTLESIDE ) ); if( iRet < 0 ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)呼唤宠物,可是没有出现其踪迹。", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鍛煎敜瀹犵墿,鍙槸娌℃湁鍑虹幇鍏惰釜杩广", // CHAR_getUseName( attackindex ) //); }else if( CHAR_getInt( attackindex, CHAR_DEFAULTPET ) < 0 ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)呼唤宠物,可是没有出现其踪迹。", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鍛煎敜瀹犵墿,鍙槸娌℃湁鍑虹幇鍏惰釜杩广", // CHAR_getUseName( attackindex ) //); }else{ @@ -4444,7 +4444,7 @@ int BATTLE_PetOut( int battleindex, int attackNo ) CHAR_setWorkInt( petindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //snprintf( szBuffer, sizeof(szBuffer), "(%s)呼唤(%s)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鍛煎敜(%s)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( petindex ) //); @@ -4484,7 +4484,7 @@ int BATTLE_Magic( int battleindex, int attackNo ) } -//判别攻击是否命中 +//鍒ゅ埆鏀诲嚮鏄惁鍛戒腑 int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) { char szBuffer[512]=""; @@ -4512,7 +4512,7 @@ int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) react = 0; ultimate = BATTLE_DamageSub( attackindex, defindex, &damage, &petdamage, &react ); if( react == BATTLE_MD_REFLEC )defindex = attackindex; -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ) defindex = attackindex; #endif #ifdef _PETSKILL_ACUPUNCTURE @@ -4520,7 +4520,7 @@ int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) #endif }else{ - //若敌非防御则damage为0 + //鑻ユ晫闈為槻寰″垯damage涓0 damage = 0; iWork = BATTLE_RET_MISS; } @@ -4538,7 +4538,7 @@ int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) case BATTLE_RET_ALLGUARD: case BATTLE_RET_MISS: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)朝向(%s)发动绝技,没击中。", + // "(%s)鏈濆悜(%s)鍙戝姩缁濇妧,娌″嚮涓", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ) //); @@ -4547,7 +4547,7 @@ int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) case BATTLE_RET_DODGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)展开防御攻击(%s)躲开了(%.2f%%)", + // "(%s)灞曞紑闃插尽鏀诲嚮(%s)韬插紑浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -4558,7 +4558,7 @@ int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) case BATTLE_RET_NORMAL: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)受到(%s)的绝技攻击(%d)损伤(%d:%d:%d%%)", + // "(%s)鍙楀埌(%s)鐨勭粷鎶鏀诲嚮(%d)鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -4574,7 +4574,7 @@ int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) case BATTLE_RET_CRITICAL: //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)受到(%s)的绝技CRITICAL(%d)损伤(%d:%d:%d%%)", + //"(%s)鍙楀埌(%s)鐨勭粷鎶CRITICAL(%d)鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -4590,7 +4590,7 @@ int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) #ifdef _EQUIT_ARRANGE case BATTLE_RET_ARRANGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)攻击了(%s)挡掉了(%.2f%%)", + // "(%s)鏀诲嚮浜(%s)鎸℃帀浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -4621,7 +4621,7 @@ int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) } } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) ultimate = 0; #endif @@ -4680,7 +4680,7 @@ int BATTLE_S_GBreak( int battleindex, int attackNo, int defNo ) } -#ifdef _SKILL_SACRIFICE//救援 vincent add 2002/05/30 +#ifdef _SKILL_SACRIFICE//鏁戞彺 vincent add 2002/05/30 int BATTLE_S_Sacrifice( int battleindex, int attackNo, int defNo ) { int attackindex, defindex = 0; @@ -4695,14 +4695,14 @@ int BATTLE_S_Sacrifice( int battleindex, int attackNo, int defNo ) DefSide = 1; } - //修正HP + //淇HP CHAR_setInt(attackindex,CHAR_HP,(CHAR_getInt(attackindex,CHAR_HP)*0.5)); CHAR_setInt(defindex,CHAR_HP,min(CHAR_getInt(attackindex,CHAR_HP)+CHAR_getInt(defindex,CHAR_HP),CHAR_getWorkInt(defindex,CHAR_WORKMAXHP))); Damage=CHAR_getInt(attackindex,CHAR_HP); - //魔法动画 + //榄旀硶鍔ㄧ敾 BATTLE_MultiList( battleindex, defNo, ToList ); - //秀hp改变数值 + //绉hp鏀瑰彉鏁板 BATTLE_MagicEffect(battleindex, attackNo, ToList, MAGIC_EFFECT_USER, SPR_heal2 ); snprintf( szCommand, sizeof(szCommand),"BD|r%X|%X|%X|d%X|p%X|", attackNo, BD_KIND_HP, 0, Damage, 0 ); BATTLESTR_ADD( szCommand ); @@ -4749,7 +4749,7 @@ int BATTLE_S_Refresh( int battleindex, int attackNo, int defNo, int marray ) } #endif -#ifdef _SKILL_ROAR //vincent宠技:大吼 +#ifdef _SKILL_ROAR //vincent瀹犳妧:澶у惣 int BATTLE_S_Roar( int battleindex, int attackNo, int defNo, int marray ) { int masteridx=-1, index2, charaindex; @@ -4764,43 +4764,43 @@ int BATTLE_S_Roar( int battleindex, int attackNo, int defNo, int marray ) charaindex = BATTLE_No2Index( battleindex, attackNo ); - index2 = BATTLE_No2Index( battleindex, defNo);//被击中目标之index + index2 = BATTLE_No2Index( battleindex, defNo);//琚嚮涓洰鏍囦箣index if( !CHAR_CHECKINDEX( index2) ) return iRet; - if( BATTLE_Index2No( battleindex, charaindex ) == defNo ){//用在自身 + if( BATTLE_Index2No( battleindex, charaindex ) == defNo ){//鐢ㄥ湪鑷韩 return iRet; } if( CHAR_getInt( index2, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER ) { - petid = -1;//作用在人物 + petid = -1;//浣滅敤鍦ㄤ汉鐗 }else if( CHAR_getInt( index2, CHAR_WHICHTYPE) == CHAR_TYPEPET ) { - masteridx = BATTLE_No2Index(battleindex,defNo-5);//作用在宠物 + masteridx = BATTLE_No2Index(battleindex,defNo-5);//浣滅敤鍦ㄥ疇鐗 if( !CHAR_CHECKINDEX( masteridx) ) return iRet; - petid = CHAR_getInt(index2,CHAR_PETID);//宠物id + petid = CHAR_getInt(index2,CHAR_PETID);//瀹犵墿id }else if( CHAR_getInt( index2, CHAR_WHICHTYPE) == CHAR_TYPEENEMY ) { petid = CHAR_getInt(index2,CHAR_PETID); } magicarg = PETSKILL_getChar( marray, PETSKILL_OPTION ); while( getStringFromIndexWithDelim( magicarg,"|", i, buf1, sizeof( buf1)) != FALSE ) { - if( petid == atoi( buf1) ){//年兽判别 + if( petid == atoi( buf1) ){//骞村吔鍒ゅ埆 FINDPET = TRUE; break; } i++; } -//送讯息至玩家 - if( FINDPET == TRUE ) {//若为年兽 +//閫佽鎭嚦鐜╁ + if( FINDPET == TRUE ) {//鑻ヤ负骞村吔 char buf4[255]; - sprintf( buf4, "%s被吼声吓跑了!", CHAR_getChar( index2, CHAR_NAME)); - BATTLE_Exit(index2,battleindex);//离开战斗 + sprintf( buf4, "%s琚惣澹板悡璺戜簡锛", CHAR_getChar( index2, CHAR_NAME)); + BATTLE_Exit(index2,battleindex);//绂诲紑鎴樻枟 if( CHAR_CHECKINDEX( masteridx) ){ - CHAR_setInt(masteridx,CHAR_DEFAULTPET,-1);//无参战宠 + CHAR_setInt(masteridx,CHAR_DEFAULTPET,-1);//鏃犲弬鎴樺疇 CHAR_talkToCli( masteridx,-1, buf4, CHAR_COLORYELLOW); } - //前攻动画 + //鍓嶆敾鍔ㄧ敾 flg |= BCF_ROAR; sprintf( szWork, "BH|a%X|", attackNo ); BATTLESTR_ADD( szWork ); @@ -4808,7 +4808,7 @@ int BATTLE_S_Roar( int battleindex, int attackNo, int defNo, int marray ) BATTLESTR_ADD(szWork); BATTLESTR_ADD( "FF|" ); - sprintf(szWork,"BQ|e%X|",defNo);//逃跑动画 + sprintf(szWork,"BQ|e%X|",defNo);//閫冭窇鍔ㄧ敾 BATTLESTR_ADD(szWork); CHAR_talkToCli( CHAR_getWorkInt(charaindex, CHAR_WORKPLAYERINDEX),-1, buf4, CHAR_COLORYELLOW); } @@ -4817,7 +4817,7 @@ int BATTLE_S_Roar( int battleindex, int attackNo, int defNo, int marray ) } #endif -#ifdef _SKILL_GUARDBREAK2//破除防御2 vincent add 2002/05/20 +#ifdef _SKILL_GUARDBREAK2//鐮撮櫎闃插尽2 vincent add 2002/05/20 int BATTLE_S_GBreak2( int battleindex, int attackNo, int defNo ) { char szBuffer[512]=""; @@ -4842,7 +4842,7 @@ int BATTLE_S_GBreak2( int battleindex, int attackNo, int defNo ) ultimate = BATTLE_DamageSub( attackindex, defindex, &damage, &petdamage, &react ); if( react == BATTLE_MD_REFLEC )defindex = attackindex; -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ) defindex = attackindex; #endif #ifdef _PETSKILL_ACUPUNCTURE @@ -4863,7 +4863,7 @@ int BATTLE_S_GBreak2( int battleindex, int attackNo, int defNo ) case BATTLE_RET_ALLGUARD: case BATTLE_RET_MISS: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)朝向(%s)发动绝技,没击中。", + // "(%s)鏈濆悜(%s)鍙戝姩缁濇妧,娌″嚮涓", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ) //); @@ -4872,7 +4872,7 @@ int BATTLE_S_GBreak2( int battleindex, int attackNo, int defNo ) case BATTLE_RET_DODGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)展开防御攻击(%s)躲开了(%.2f%%)", + // "(%s)灞曞紑闃插尽鏀诲嚮(%s)韬插紑浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -4883,7 +4883,7 @@ int BATTLE_S_GBreak2( int battleindex, int attackNo, int defNo ) case BATTLE_RET_NORMAL: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)受到(%s)的绝技攻击(%d)损伤(%d:%d:%d%%)", + // "(%s)鍙楀埌(%s)鐨勭粷鎶鏀诲嚮(%d)鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -4899,7 +4899,7 @@ int BATTLE_S_GBreak2( int battleindex, int attackNo, int defNo ) case BATTLE_RET_CRITICAL: //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)受到(%s)的绝技CRITICAL(%d)损伤(%d:%d:%d%%)", + //"(%s)鍙楀埌(%s)鐨勭粷鎶CRITICAL(%d)鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -4915,7 +4915,7 @@ int BATTLE_S_GBreak2( int battleindex, int attackNo, int defNo ) #ifdef _EQUIT_ARRANGE case BATTLE_RET_ARRANGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)攻击了(%s)挡掉了(%.2f%%)", + // "(%s)鏀诲嚮浜(%s)鎸℃帀浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -4943,7 +4943,7 @@ int BATTLE_S_GBreak2( int battleindex, int attackNo, int defNo ) } } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) ultimate = 0; #endif @@ -5027,7 +5027,7 @@ int BATTLE_Charge( int battleindex, int attackNo ) CHAR_SETWORKINT_LOW( attackindex, CHAR_WORKBATTLECOM3, iWork - 1); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)保持体力中。", + // "(%s)淇濇寔浣撳姏涓", // CHAR_getUseName( attackindex ) //); //BATTLE_BroadCast( battleindex, szBuffer, @@ -5039,7 +5039,7 @@ int BATTLE_Charge( int battleindex, int attackNo ) } } -//状态攻击命中判定 +//鐘舵佹敾鍑诲懡涓垽瀹 int BATTLE_StatusAttackCheck( int attackindex, int defindex, @@ -5054,7 +5054,7 @@ int BATTLE_StatusAttackCheck( int Df_Reg = 0, level = 0, per = 0, i ; int battleindex; if( status >= BATTLE_ST_END || status <= 0 )return FALSE; - for( i = 1; i < BATTLE_ST_END; i++ ){//若已有异常状态则return + for( i = 1; i < BATTLE_ST_END; i++ ){//鑻ュ凡鏈夊紓甯哥姸鎬佸垯return if( CHAR_getWorkInt( defindex, StatusTbl[i] ) > 0 )return FALSE; } @@ -5141,7 +5141,7 @@ int BATTLE_StatusAttackCheck( } } -//职业技能状态攻击命中判定 +//鑱屼笟鎶鑳界姸鎬佹敾鍑诲懡涓垽瀹 int PROFESSION_BATTLE_StatusAttackCheck( int charaindex, int toindex, int status, int Success ) { int rand_num = RAND( 1, 100 ); @@ -5152,7 +5152,7 @@ int PROFESSION_BATTLE_StatusAttackCheck( int charaindex, int toindex, int status if( CHAR_getFlg( toindex, CHAR_ISDIE ) == TRUE ) return 0; #ifdef _PROFESSION_ADDSKILL - if( status == BATTLE_ST_RESIST_F_I_T ){//自然威能 + if( status == BATTLE_ST_RESIST_F_I_T ){//鑷劧濞佽兘 if( CHAR_getWorkInt( toindex, StatusTbl[BATTLE_ST_RESIST_F] ) > 0 ) return 0; if( CHAR_getWorkInt( toindex, StatusTbl[BATTLE_ST_RESIST_I] ) > 0 ) return 0; if( CHAR_getWorkInt( toindex, StatusTbl[BATTLE_ST_RESIST_T] ) > 0 ) return 0; @@ -5172,7 +5172,7 @@ int PROFESSION_BATTLE_StatusAttackCheck( int charaindex, int toindex, int status } #endif - for( i = 1; i < BATTLE_ST_END; i++ ){//若已有异常状态则return + for( i = 1; i < BATTLE_ST_END; i++ ){//鑻ュ凡鏈夊紓甯哥姸鎬佸垯return if( CHAR_getWorkInt( toindex, StatusTbl[i] ) > 0 ) return 0; } @@ -5204,7 +5204,7 @@ int BATTLE_Combo( int battleindex, int *pAttackList, int defNo ) defindex = toindex = BATTLE_No2Index( battleindex, defNo ); - //BATTLE_BroadCast( battleindex, "发动必杀技!!", + //BATTLE_BroadCast( battleindex, "鍙戝姩蹇呮潃鎶锛侊紒", // (pAttackList[0] >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; for( i = 0; pAttackList[i] != -1 && i < BATTLE_ENTRY_MAX; i ++ ){ @@ -5234,7 +5234,7 @@ int BATTLE_Combo( int battleindex, int *pAttackList, int defNo ) react = BATTLE_GetDamageReact( defindex ); if( ( react == BATTLE_MD_REFLEC -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 || react == BATTLE_MD_TRAP #endif #ifdef _PETSKILL_ACUPUNCTURE @@ -5268,7 +5268,7 @@ int BATTLE_Combo( int battleindex, int *pAttackList, int defNo ) if( react == BATTLE_MD_REFLEC ){ defindex = attackindex; } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ) defindex = attackindex; #endif #ifdef _PETSKILL_ACUPUNCTURE @@ -5285,7 +5285,7 @@ int BATTLE_Combo( int battleindex, int *pAttackList, int defNo ) case BATTLE_RET_ALLGUARD: case BATTLE_RET_NORMAL: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)受到(%s)的攻击(%d)遭受损伤(%d:%d:%d%%)", + // "(%s)鍙楀埌(%s)鐨勬敾鍑(%d)閬彈鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -5301,7 +5301,7 @@ int BATTLE_Combo( int battleindex, int *pAttackList, int defNo ) case BATTLE_RET_CRITICAL: //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)向(%s)CRITICAL(%d%%)(%d)不可以(%d:%d:%d%%)", + //"(%s)鍚(%s)CRITICAL(%d%%)(%d)涓嶅彲浠(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // (int)(gCriper*0.01), @@ -5340,7 +5340,7 @@ int BATTLE_Combo( int battleindex, int *pAttackList, int defNo ) } } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) ultimate = 0; #endif @@ -5444,7 +5444,7 @@ int BATTLE_EarthRoundHide( int battleindex, int attackNo ) BATTLESTR_ADD( szCommand ); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)绕到背後去。", + // "(%s)缁曞埌鑳屽緦鍘汇", // CHAR_getUseName( attackindex ) //); @@ -5482,7 +5482,7 @@ BOOL BATTLE_LostEscape( int battleindex, int attackNo ) pno = CHAR_getInt( oyaindex, CHAR_DEFAULTPET ); if( pno < 0 )return FALSE; -// print(" nono宠改休息 "); +// print(" nono瀹犳敼浼戞伅 "); BATTLE_Exit( attackindex, battleindex ); @@ -5496,7 +5496,7 @@ BOOL BATTLE_LostEscape( int battleindex, int attackNo ) // CHAR_getChar( attackindex, CHAR_NAME ), // CHAR_getInt( attackindex, CHAR_LV ), // -// "EscapeLost(战斗逃走并回收)", +// "EscapeLost(鎴樻枟閫冭蛋骞跺洖鏀)", // // CHAR_getInt( oyaindex, CHAR_FLOOR ), // CHAR_getInt( oyaindex, CHAR_X ), @@ -5504,7 +5504,7 @@ BOOL BATTLE_LostEscape( int battleindex, int attackNo ) // CHAR_getChar( attackindex, CHAR_UNIQUECODE) // shan 2001/12/14 // ); - //snprintf( szBuffer, sizeof(szBuffer), "(%s)走掉了。", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)璧版帀浜嗐", // CHAR_getUseName( attackindex ) //); //if( getBattleDebugMsg( ) != 0 ){ @@ -5548,7 +5548,7 @@ BOOL BATTLE_Abduct( if( CHAR_CHECKINDEX( attackindex ) == FALSE ) return iRet; if( CHAR_CHECKINDEX( defindex ) == FALSE ) return iRet; #ifdef _BATTLE_ABDUCTII - // 取得宠物技能命令 + // 鍙栧緱瀹犵墿鎶鑳藉懡浠 pszP = PETSKILL_getChar( array, PETSKILL_OPTION ); if( pszP == "\0" ) return iRet; #endif @@ -5575,7 +5575,7 @@ BOOL BATTLE_Abduct( if( Deftype != CHAR_TYPEPLAYER ){ #ifdef _BATTLE_ABDUCTII int AiPer=0; - // 取得宠物技能命令 + // 鍙栧緱瀹犵墿鎶鑳藉懡浠 AiPer = atoi( pszP); if( AiPer <= 0 || Deftype != CHAR_TYPEPET ){ #endif @@ -5607,7 +5607,7 @@ BOOL BATTLE_Abduct( if( RAND( 1, 100 ) < per ){ flg = 1; //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)带着(%s)离开该处(%d%%)", + // "(%s)甯︾潃(%s)绂诲紑璇ュ(%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // per @@ -5621,7 +5621,7 @@ BOOL BATTLE_Abduct( }else{ flg = 0; //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)无法带离(%s)一个人默默地离开(%d%%)", + // "(%s)鏃犳硶甯︾(%s)涓涓汉榛橀粯鍦扮寮(%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // per @@ -5669,9 +5669,9 @@ void BATTLE_StealMoney( int battleindex, int attackNo, int defNo) if( attackNo > 10 ) { safeSide = 1; } - if( defNo>=safeSide*SIDE_OFFSET && defNo<((safeSide*SIDE_OFFSET)+SIDE_OFFSET)){//同边 + if( defNo>=safeSide*SIDE_OFFSET && defNo<((safeSide*SIDE_OFFSET)+SIDE_OFFSET)){//鍚岃竟 per = 0; - }else { //不同边 + }else { //涓嶅悓杈 per = 50; per = (((per+LV)/4)+10)>>1; } @@ -5702,7 +5702,7 @@ void BATTLE_StealMoney( int battleindex, int attackNo, int defNo) S_FLG = 0; }else{ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)从(%s)获得了(%d)STONE(%d%%)", + // "(%s)浠(%s)鑾峰緱浜(%d)STONE(%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // GOLD, @@ -5715,15 +5715,15 @@ void BATTLE_StealMoney( int battleindex, int attackNo, int defNo) } }else{ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)没从(%s)获得东西(%d%%)", + // "(%s)娌′粠(%s)鑾峰緱涓滆タ(%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // per //); } - sprintf( buf1, "被偷了一些石币"); + sprintf( buf1, "琚伔浜嗕竴浜涚煶甯"); if( S_FLG) { - sprintf( szBuffer, "BK|%s%s。|", CHAR_getUseName( defindex ), buf1 ); + sprintf( szBuffer, "BK|%s%s銆倈", CHAR_getUseName( defindex ), buf1 ); strcatsafe( szBadStatusString,sizeof(szBadStatusString), szBuffer ); if( CHAR_getInt( attackindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ){ int attackoyaindex = CHAR_getWorkInt( attackindex, CHAR_WORKPLAYERINDEX ); @@ -5780,7 +5780,7 @@ void BATTLE_Steal( int battleindex, int attackNo, int defNo ) gold = (int)( (float)gold * RAND( 8, 12 ) * 0.01 ); if( gold <= 0 ){ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)无法获得(%s)的STONE(%d%%)", + // "(%s)鏃犳硶鑾峰緱(%s)鐨凷TONE(%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // per @@ -5788,7 +5788,7 @@ void BATTLE_Steal( int battleindex, int attackNo, int defNo ) flg = 0; }else{ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)从(%s)获得了(%d)STONE(%d%%)", + // "(%s)浠(%s)鑾峰緱浜(%d)STONE(%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gold, @@ -5813,7 +5813,7 @@ void BATTLE_Steal( int battleindex, int attackNo, int defNo ) i = RAND( 0, j-1 ); if( i >= 0 ){ if( 0 <= itemtbl[i] && itemtbl[i] < CHAR_STARTITEMARRAY ){ - fprint( "err:要盗取装备品(%d)\n", itemtbl[i] ); + fprint( "err:瑕佺洍鍙栬澶囧搧(%d)\n", itemtbl[i] ); }else{ itemindex = CHAR_getItemIndex( defindex, itemtbl[i] ); } @@ -5821,7 +5821,7 @@ void BATTLE_Steal( int battleindex, int attackNo, int defNo ) } if( itemindex == - 1 ){ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)无法获得(%s)的道具(%d%%)", + // "(%s)鏃犳硶鑾峰緱(%s)鐨勯亾鍏(%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // per @@ -5829,7 +5829,7 @@ void BATTLE_Steal( int battleindex, int attackNo, int defNo ) flg = 0; }else{ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)从(%s)获得了(%s)(%d%%)", + // "(%s)浠(%s)鑾峰緱浜(%s)(%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // ITEM_getAppropriateName( itemindex ), @@ -5841,12 +5841,12 @@ void BATTLE_Steal( int battleindex, int attackNo, int defNo ) // LogItem( // CHAR_getChar( defindex, CHAR_NAME ), // CHAR_getChar( defindex, CHAR_CDKEY ), -//#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +//#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О // itemindex, //#else // ITEM_getInt( itemindex, ITEM_ID ), //#endif -// "Stealed(偷窃的道具)", +// "Stealed(鍋风獌鐨勯亾鍏)", // CHAR_getInt( defindex,CHAR_FLOOR), // CHAR_getInt( defindex,CHAR_X ), // CHAR_getInt( defindex,CHAR_Y ), @@ -5860,11 +5860,11 @@ void BATTLE_Steal( int battleindex, int attackNo, int defNo ) } }else{ flg = 0; - //snprintf( szBuffer, sizeof(szBuffer), "(%s)没从(%s)获得东西(%d%%)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)娌′粠(%s)鑾峰緱涓滆タ(%d%%)", // CHAR_getUseName( attackindex ), CHAR_getUseName( defindex ), per ); } if( flg == 1 ){ - sprintf( szBuffer, "BK|%s被偷了一些东西。|", + sprintf( szBuffer, "BK|%s琚伔浜嗕竴浜涗笢瑗裤倈", CHAR_getUseName( defindex ) ); strcatsafe( szBadStatusString,sizeof(strcatsafe), szBuffer ); if( CHAR_getInt( attackindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ){ @@ -5887,7 +5887,7 @@ void BATTLE_Steal( int battleindex, int attackNo, int defNo ) BATTLESTR_ADD( szCommand ); } -#ifdef _PSKILL_FALLGROUND //落马术 +#ifdef _PSKILL_FALLGROUND //钀介┈鏈 int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_type) { char szBuffer[512]=""; @@ -5896,8 +5896,8 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ int damage=0, petdamage=0, i=0, iWork, Guardian=-1; int flg = 0, DefSide=0,par,ultimate=0, react=0; BOOL iRet = FALSE; - attackindex = BATTLE_No2Index( battleindex, attackNo ); //攻方index - defindex = BATTLE_No2Index( battleindex, defNo ); //守方index + attackindex = BATTLE_No2Index( battleindex, attackNo ); //鏀绘柟index + defindex = BATTLE_No2Index( battleindex, defNo ); //瀹堟柟index if( defNo >= SIDE_OFFSET ){ @@ -5905,8 +5905,8 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ DefSide = 1; } react = 0; - react = BATTLE_GetDamageReact( defindex);//有光镜守 - //取得攻击後状态 + react = BATTLE_GetDamageReact( defindex);//鏈夊厜闀滃畧 + //鍙栧緱鏀诲嚮寰岀姸鎬 iWork = BATTLE_AttackSeq( attackindex, defindex, &damage, &Guardian, BATTLE_COM_S_FALLRIDE ); @@ -5914,7 +5914,7 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ ultimate = BATTLE_DamageSub( attackindex, defindex, &damage, &petdamage, &react ); if( react == BATTLE_MD_REFLEC ) defindex = attackindex; -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ) defindex = attackindex; #endif #ifdef _PETSKILL_ACUPUNCTURE @@ -5931,7 +5931,7 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ case BATTLE_RET_ALLGUARD: case BATTLE_RET_MISS: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)朝向(%s)发动绝技,没击中。", + // "(%s)鏈濆悜(%s)鍙戝姩缁濇妧,娌″嚮涓", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ) //); @@ -5939,7 +5939,7 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ break; case BATTLE_RET_DODGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)展开防御攻击(%s)躲开了(%.2f%%)", + // "(%s)灞曞紑闃插尽鏀诲嚮(%s)韬插紑浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -5949,7 +5949,7 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ break; case BATTLE_RET_NORMAL: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)受到(%s)的绝技攻击(%d)损伤(%d:%d:%d%%)", + // "(%s)鍙楀埌(%s)鐨勭粷鎶鏀诲嚮(%d)鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -5964,7 +5964,7 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ break; case BATTLE_RET_CRITICAL: //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)受到(%s)的绝技CRITICAL(%d)损伤(%d:%d:%d%%)", + //"(%s)鍙楀埌(%s)鐨勭粷鎶CRITICAL(%d)鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -5979,7 +5979,7 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ #ifdef _EQUIT_ARRANGE case BATTLE_RET_ARRANGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)攻击了(%s)挡掉了(%.2f%%)", + // "(%s)鏀诲嚮浜(%s)鎸℃帀浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -5999,7 +5999,7 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ #ifdef _PREVENT_TEAMATTACK && BATTLE_CheckSameSide( attackindex, defNo) == 0 #endif - ){ //落马 + ){ //钀介┈ int fallflg = RAND( 0, 100); if( #ifdef _EQUIT_RESIST @@ -6009,7 +6009,7 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ #endif ){ if( CHAR_getInt( defindex , CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER ) { -#ifdef _FIXPETFALL //Syu ADD 修正落马术 +#ifdef _FIXPETFALL //Syu ADD 淇钀介┈鏈 if( CHAR_getInt( defindex, CHAR_RIDEPET) >= 0 ) { #else if( CHAR_getInt( defindex, CHAR_RIDEPET) > 0 ) { @@ -6050,7 +6050,7 @@ int BATTLE_S_FallGround( int battleindex, int attackNo, int defNo, int skill_typ } } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) ultimate = 0; #endif @@ -6231,7 +6231,7 @@ int BATTLE_E_ENEMYHELP( int battleindex, int attackNo, int defNo, int skill_type if( BATTLE_NewEntry( enindex, battleindex, Side) ) { //CHAR_setWorkInt( enindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_RESCUE ); CHAR_setWorkInt( enindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - //snprintf( szBuffer, sizeof( szBuffer ), "(%s)加入作战。", + //snprintf( szBuffer, sizeof( szBuffer ), "(%s)鍔犲叆浣滄垬銆", // CHAR_getUseName( enindex ) ); //BATTLE_BroadCast( battleindex, szBuffer, CHAR_COLORYELLOW ); }else { @@ -6255,7 +6255,7 @@ int BATTLE_DefineAttack( int attackindex, int defindex, int iWork, case BATTLE_RET_ALLGUARD: case BATTLE_RET_MISS: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)朝向(%s)发动绝技,没击中。", + // "(%s)鏈濆悜(%s)鍙戝姩缁濇妧,娌″嚮涓", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ) //); @@ -6263,7 +6263,7 @@ int BATTLE_DefineAttack( int attackindex, int defindex, int iWork, break; case BATTLE_RET_DODGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)展开防御攻击(%s)躲开了(%.2f%%)", + // "(%s)灞曞紑闃插尽鏀诲嚮(%s)韬插紑浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -6273,7 +6273,7 @@ int BATTLE_DefineAttack( int attackindex, int defindex, int iWork, break; case BATTLE_RET_NORMAL: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)受到(%s)的绝技攻击(%d)损伤(%d:%d:%d%%)", + // "(%s)鍙楀埌(%s)鐨勭粷鎶鏀诲嚮(%d)鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -6288,7 +6288,7 @@ int BATTLE_DefineAttack( int attackindex, int defindex, int iWork, break; case BATTLE_RET_CRITICAL: //snprintf( szBuffer, sizeof(szBuffer), - //"(%s)受到(%s)的绝技CRITICAL(%d)损伤(%d:%d:%d%%)", + //"(%s)鍙楀埌(%s)鐨勭粷鎶CRITICAL(%d)鎹熶激(%d:%d:%d%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // damage, @@ -6303,7 +6303,7 @@ int BATTLE_DefineAttack( int attackindex, int defindex, int iWork, #ifdef _EQUIT_ARRANGE case BATTLE_RET_ARRANGE: //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)攻击了(%s)挡掉了(%.2f%%)", + // "(%s)鏀诲嚮浜(%s)鎸℃帀浜(%.2f%%)", // CHAR_getUseName( attackindex ), // CHAR_getUseName( defindex ), // gDuckPer @@ -6335,7 +6335,7 @@ int BATTLE_DefDieType( int defindex, int iRet, int *ultimate, int *flg, char *sz } #ifdef _PETSKILL_LER -// 雷尔不能被打飞 +// 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(defindex,CHAR_BASEBASEIMAGENUMBER) == 101814) *ultimate = 0; #endif @@ -6361,7 +6361,7 @@ int BATTLE_S_DamageToHp( int battleindex, int attackindex, int defindex, int Dam int A_HP=0, pHP,defi=0; float def=0.00; if( Damage < 1 ) return A_HP; - if( BATTLE_GetDamageReact( defindex) > 0 )//有光镜守 + if( BATTLE_GetDamageReact( defindex) > 0 )//鏈夊厜闀滃畧 return A_HP; pszOption = PETSKILL_getChar( skill, PETSKILL_OPTION ); @@ -6393,7 +6393,7 @@ int BATTLE_S_DamageToHp2( int battleindex, int attackindex, int defindex, int Da int A_HP=0, pHP,defi=0; float def=0.00; if( Damage < 1 ) return A_HP; - if( BATTLE_GetDamageReact( defindex) > 0 )//有光镜守 + if( BATTLE_GetDamageReact( defindex) > 0 )//鏈夊厜闀滃畧 return A_HP; pszOption = PETSKILL_getChar( skill, PETSKILL_OPTION ); @@ -6410,7 +6410,7 @@ int BATTLE_S_DamageToHp2( int battleindex, int attackindex, int defindex, int Da if( (A_HP+CHAR_getInt( attackindex, CHAR_HP)) > CHAR_getWorkInt( attackindex, CHAR_WORKMAXHP ) ){ A_HP = CHAR_getWorkInt( attackindex, CHAR_WORKMAXHP )-CHAR_getInt( attackindex, CHAR_HP); } - //print("\n伤:%d 回血:%d",Damage,A_HP); + //print("\n浼:%d 鍥炶:%d",Damage,A_HP); pHP = CHAR_getInt( attackindex, CHAR_HP) + A_HP; CHAR_setInt( attackindex, CHAR_HP, min( pHP, CHAR_getWorkInt( attackindex, CHAR_WORKMAXHP ))); CHAR_send_P_StatusString( attackindex, CHAR_P_STRING_HP); @@ -6426,7 +6426,7 @@ int BATTLE_S_MpDamage( int battleindex, int attackindex, int defindex, int damag int D_MP=0,defi=0; float def=0.00; if( damage < 1 ) return D_MP; - if( BATTLE_GetDamageReact( defindex) > 0 )//有光镜守 + if( BATTLE_GetDamageReact( defindex) > 0 )//鏈夊厜闀滃畧 return D_MP; if( CHAR_getInt( defindex, CHAR_WHICHTYPE) == CHAR_TYPEENEMY || CHAR_getInt( defindex, CHAR_WHICHTYPE) == CHAR_TYPEPET ) @@ -6450,7 +6450,7 @@ int BATTLE_S_MpDamage( int battleindex, int attackindex, int defindex, int damag void BATTLE_S_ToothCrushe( int battleindex, int attackindex, int defindex, int damage, int skill) { int crushindex, itemindex; //aszCrushTbl - //char *strCrushTbl[] = { "完好", "受损", "毁坏" , "不堪使用" , "碎片" }; + //char *strCrushTbl[] = { "瀹屽ソ", "鍙楁崯", "姣佸潖" , "涓嶅牚浣跨敤" , "纰庣墖" }; if( CHAR_getInt( defindex, CHAR_WHICHTYPE) != CHAR_TYPEPLAYER #ifdef _TAKE_ITEMDAMAGE_FOR_PET && CHAR_getInt( defindex, CHAR_WHICHTYPE) == CHAR_TYPEPET @@ -6484,18 +6484,18 @@ void BATTLE_S_ToothCrushe( int battleindex, int attackindex, int defindex, int d if( crushenum <= 0 ) { char buf2[256]; - sprintf(buf2, "%s因过度损坏而消失。\n", ITEM_getChar( itemindex, ITEM_NAME)); + sprintf(buf2, "%s鍥犺繃搴︽崯鍧忚屾秷澶便俓n", ITEM_getChar( itemindex, ITEM_NAME)); CHAR_talkToCli( defindex, -1, buf2, CHAR_COLORYELLOW); // LogItem( // CHAR_getChar( defindex, CHAR_NAME ), // CHAR_getChar( defindex, CHAR_CDKEY ), -//#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +//#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О // itemindex, //#else // ITEM_getInt( itemindex, ITEM_ID ), //#endif -// "因过度损坏而消失", +// "鍥犺繃搴︽崯鍧忚屾秷澶", // CHAR_getInt( defindex,CHAR_FLOOR), // CHAR_getInt( defindex,CHAR_X ), // CHAR_getInt( defindex,CHAR_Y ), @@ -6509,9 +6509,9 @@ void BATTLE_S_ToothCrushe( int battleindex, int attackindex, int defindex, int d }else { char buf2[256]; - sprintf( buf2, "%s是%s的。", ITEM_getChar( itemindex, ITEM_NAME ), aszCrushTbl[level] ); + sprintf( buf2, "%s鏄%s鐨勩", ITEM_getChar( itemindex, ITEM_NAME ), aszCrushTbl[level] ); CHAR_talkToCli( defindex, -1, buf2, CHAR_COLORYELLOW); - //更改道具说明 + //鏇存敼閬撳叿璇存槑 // buf1 = ITEM_getChar( itemindex, ITEM_SECRETNAME); // if( strstr( buf1, "(") != 0 ) { // char buf5[256]; @@ -6583,7 +6583,7 @@ int BATTLE_S_PetSkillProperty( int battleindex, int attackNo, int skill_type, in if( pszP == "\0" ) return iRet; - attackindex = BATTLE_No2Index( battleindex, attackNo ); //攻方index + attackindex = BATTLE_No2Index( battleindex, attackNo ); //鏀绘柟index if( !CHAR_CHECKINDEX( attackindex)) return iRet; switch( skill_type){ case BATTLE_COM_S_PROPERTYSKILL: @@ -6592,7 +6592,7 @@ int BATTLE_S_PetSkillProperty( int battleindex, int attackNo, int skill_type, in ch = CHAR_getCharPointer( attackindex); if( ch == NULL ) return iRet; strcpysafe( ch->charfunctable[CHAR_BATTLEPROPERTY].string, - sizeof( ch->charfunctable[CHAR_BATTLEPROPERTY]), pszP);//战斗 + sizeof( ch->charfunctable[CHAR_BATTLEPROPERTY]), pszP);//鎴樻枟 CHAR_constructFunctable( attackindex); iRet = TRUE; } @@ -6618,9 +6618,9 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t if( pszP == "\0" ) return iRet; react = 0; - attackindex = BATTLE_No2Index( battleindex, attackNo ); //攻方index - defindex = BATTLE_No2Index( battleindex, defNo ); //守方index - if( (ReactType=BATTLE_GetDamageReact( defindex)) > 0 ) { //有光镜守 + attackindex = BATTLE_No2Index( battleindex, attackNo ); //鏀绘柟index + defindex = BATTLE_No2Index( battleindex, defNo ); //瀹堟柟index + if( (ReactType=BATTLE_GetDamageReact( defindex)) > 0 ) { //鏈夊厜闀滃畧 react = ReactType; #ifdef _BATTLE_LIGHTTAKE if( skill_type == BATTLE_COM_S_LIGHTTAKE ){ @@ -6646,7 +6646,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t DefSide = 1; } - //取得攻击後状态 + //鍙栧緱鏀诲嚮寰岀姸鎬 iWork = BATTLE_AttackSeq( attackindex, defindex, &damage, &Guardian, skill_type ); switch( skill_type){ @@ -6683,7 +6683,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t if( react == BATTLE_MD_REFLEC ) defindex = attackindex; -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ) defindex = attackindex; #endif @@ -6698,7 +6698,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t if( CHAR_getInt( defindex, CHAR_HP ) <= 0 ) iRet = BATTLE_DefDieType( defindex, iRet, &ultimate, &flg, szBuffer); #ifdef _PETSKILL_ANTINTER - //强制将死掉的宠打飞 + //寮哄埗灏嗘鎺夌殑瀹犳墦椋 if( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ANTINTER && CHAR_getInt( defindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ){ ultimate = 2; @@ -6706,7 +6706,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t flg |= BCF_DEATH; flg |= BCF_ULTIMATE_2; CHAR_setWorkInt( defindex, CHAR_WORKULTIMATE, 0 ); - damage=1;//因後面有判断若 damage<=0 则 skill_type=-1 所以这里damage设为1 + damage=1;//鍥犲緦闈㈡湁鍒ゆ柇鑻 damage<=0 鍒 skill_type=-1 鎵浠ヨ繖閲宒amage璁句负1 } #endif @@ -6721,7 +6721,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t } if( damage <= 0 ) { -#ifdef _SONIC_ATTACK // WON ADD 音波攻击 +#ifdef _SONIC_ATTACK // WON ADD 闊虫尝鏀诲嚮 if( skill_type != BATTLE_COM_S_SONIC && skill_type != BATTLE_COM_S_SONIC2 #ifdef _PETSKILL_REGRET && skill_type != BATTLE_COM_S_REGRET && skill_type != BATTLE_COM_S_REGRET2 @@ -6778,7 +6778,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t #endif #ifdef _SKILL_TOOTH - case BATTLE_COM_S_TOOTHCRUSHE: //囓齿术 tooth + case BATTLE_COM_S_TOOTHCRUSHE: //鍥撻娇鏈 tooth flg |= BCF_TOOTH; BATTLE_S_ToothCrushe( battleindex, attackindex, defindex, damage, skill); snprintf( szCommand, sizeof( szCommand ), "BH|a%X|r%X|f%X|d%X|p%X|FF|", @@ -6811,7 +6811,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t snprintf( szCommand, sizeof( szCommand ), "BH|a%X|r%X|f%X|d%X|p%X|FF|", attackNo, defNo, flg, damage, petdamage ); BATTLESTR_ADD( szCommand ); - if( timid < 15 && damage > 1 ){//怯战 + if( timid < 15 && damage > 1 ){//鎬垬 BATTLE_NoAction( battleindex, defNo ); sprintf( szCommand, "BE|e%X|", defNo ); BATTLESTR_ADD( szCommand ); @@ -6831,7 +6831,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t }else { BATTLE_Exit( defindex, battleindex); - CHAR_DischargePartyNoMsg( defindex);//解散团队 + CHAR_DischargePartyNoMsg( defindex);//瑙f暎鍥㈤槦 } } } @@ -6843,7 +6843,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t int timid=0; char *timidc=NULL; pszP = PETSKILL_getChar( skill, PETSKILL_OPTION ); - if( ( timidc = strstr( pszP, "命%" ) ) != NULL ) + if( ( timidc = strstr( pszP, "鍛%" ) ) != NULL ) sscanf( timidc+3,"%d", &timid ); snprintf( szCommand, sizeof( szCommand ), "BH|a%X|r%X|f%X|d%X|p%X|FF|", attackNo, defNo, flg, damage, petdamage ); @@ -6884,8 +6884,8 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t BATTLESTR_ADD( szCommand ); if( CHAR_getInt( defindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ){ int defkoyaindex = CHAR_getWorkInt( defindex, CHAR_WORKPLAYERINDEX ); - BATTLE_PetDefaultExit( defkoyaindex, battleindex );//宠物离开战场 - CHAR_setInt( defkoyaindex, CHAR_DEFAULTPET, -1 );//设定无参战宠物 + BATTLE_PetDefaultExit( defkoyaindex, battleindex );//瀹犵墿绂诲紑鎴樺満 + CHAR_setInt( defkoyaindex, CHAR_DEFAULTPET, -1 );//璁惧畾鏃犲弬鎴樺疇鐗 } } break; @@ -6918,15 +6918,15 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t break; #endif -#ifdef _SONIC_ATTACK // WON ADD 音波攻击 - // 宠物伤害 +#ifdef _SONIC_ATTACK // WON ADD 闊虫尝鏀诲嚮 + // 瀹犵墿浼ゅ case BATTLE_COM_S_SONIC: { int img2=0; if( defNo >= 10 ) img2 = 101703; else img2 = 101704; - flg |= BCF_B_SKILLACT; //击中後秀图 + flg |= BCF_B_SKILLACT; //鍑讳腑寰岀鍥 snprintf( szCommand, sizeof( szCommand ), "B+|a%X|r%X|f%X|d%X|e%X|s%X|h%X|FF|", attackNo, defNo, flg, damage, 0, 0, img2 ); @@ -6934,7 +6934,7 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t break; } - // 人物伤害 + // 浜虹墿浼ゅ case BATTLE_COM_S_SONIC2: { sprintf( szCommand, "BD|r%X|0|0|d%X|p%X|", defNo, damage, petdamage ); @@ -6944,17 +6944,17 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t } #endif #ifdef _PETSKILL_REGRET - // 宠物伤害 + // 瀹犵墿浼ゅ case BATTLE_COM_S_REGRET: { int img2=0,Success=0; char *psz = NULL; - if( (psz = strstr( pszP, "命%" ) ) != NULL ) sscanf( psz+3, "%d", &Success ); + if( (psz = strstr( pszP, "鍛%" ) ) != NULL ) sscanf( psz+3, "%d", &Success ); if( (PROFESSION_BATTLE_StatusAttackCheck( attackindex, defindex, 12, Success ) == 0 ) || (CHAR_getInt( defindex, CHAR_HP ) <= 0 ) ){ }else{ - CHAR_setWorkInt( defindex, StatusTbl[12], 2 );//晕眩1回合 + CHAR_setWorkInt( defindex, StatusTbl[12], 2 );//鏅曠湬1鍥炲悎 CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); BATTLE_BadStatusString( defNo, 12 ); } @@ -6962,23 +6962,23 @@ int BATTLE_S_AttackDamage( int battleindex, int attackNo, int defNo, int skill_t if( defNo >= 10 ) img2 = 101418;//101703; else img2 = 101418;//101704; - flg |= BCF_B_SKILLACT; //击中後秀图 + flg |= BCF_B_SKILLACT; //鍑讳腑寰岀鍥 snprintf( szCommand, sizeof( szCommand ), "B+|a%X|r%X|f%X|d%X|e%X|s%X|h%X|FF|", attackNo, defNo, flg, damage, 0, 0, img2 ); BATTLESTR_ADD( szCommand ); break; } - // 人物伤害 + // 浜虹墿浼ゅ case BATTLE_COM_S_REGRET2: { int Success; char *psz = NULL; - if( (psz = strstr( pszP, "命%" ) ) != NULL ) sscanf( psz+3, "%d", &Success ); + if( (psz = strstr( pszP, "鍛%" ) ) != NULL ) sscanf( psz+3, "%d", &Success ); if( (PROFESSION_BATTLE_StatusAttackCheck( attackindex, defindex, 12, Success ) == 0 ) || (CHAR_getInt( defindex, CHAR_HP ) <= 0 ) ){ }else{ - CHAR_setWorkInt( defindex, StatusTbl[12], 2 );//晕眩1回合 + CHAR_setWorkInt( defindex, StatusTbl[12], 2 );//鏅曠湬1鍥炲悎 CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); BATTLE_BadStatusString( defNo, 12 ); } @@ -7012,7 +7012,7 @@ int PETSKILL_MagicStatusChange_Battle( int battleindex, int attackNo, int toNo, int status = -1, i, turn = 3, nums=0; int ReceveEffect, charaindex=-1; char buf1[256]; - charaindex = BATTLE_No2Index( battleindex, attackNo ); //攻方index + charaindex = BATTLE_No2Index( battleindex, attackNo ); //鏀绘柟index if( !CHAR_CHECKINDEX( charaindex)) return FALSE; magicarg = PETSKILL_getChar( marray, PETSKILL_OPTION ); if( getStringFromIndexWithDelim( magicarg,"|",1, buf1, sizeof( buf1)) == FALSE ) @@ -7031,13 +7031,13 @@ int PETSKILL_MagicStatusChange_Battle( int battleindex, int attackNo, int toNo, nums = atoi( buf1); if( getStringFromIndexWithDelim( magicarg,"|",4, buf1, sizeof( buf1)) == FALSE ) return FALSE; - if( strstr( buf1, "单") != 0 ) { + if( strstr( buf1, "鍗") != 0 ) { if( toNo >= 20 ) return FALSE; } battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); //attackNo = BATTLE_Index2No( battleindex, charaindex ); -/* //动画图号决定 +/* //鍔ㄧ敾鍥惧彿鍐冲畾 if( status == BATTLE_ST_NONE ){ ReceveEffect = SPR_tyusya; }else{ @@ -7061,7 +7061,7 @@ int PETSKILL_SetDuckChange_Battle( int battleindex, int attackNo, int toNo, int int charaindex=-1; char buf1[256]; - charaindex = BATTLE_No2Index( battleindex, attackNo ); //攻方index + charaindex = BATTLE_No2Index( battleindex, attackNo ); //鏀绘柟index if( !CHAR_CHECKINDEX( charaindex)) return FALSE; if( BATTLE_No2Index( battleindex, toNo ) != charaindex ) return FALSE; @@ -7102,7 +7102,7 @@ int PETSKILL_SetMagicPet_Battle( int battleindex, int attackNo, int toNo, int ma int charaindex=-1; char buf1[256]; - charaindex = BATTLE_No2Index( battleindex, attackNo ); //攻方index + charaindex = BATTLE_No2Index( battleindex, attackNo ); //鏀绘柟index if( !CHAR_CHECKINDEX( charaindex)) return FALSE; if( BATTLE_CHECKINDEX( battleindex ) == FALSE ) return FALSE; @@ -7161,7 +7161,7 @@ int PETSKILL_SetMagicPet_Battle( int battleindex, int attackNo, int toNo, int ma } #endif -#ifdef _SKILL_WEAKEN //vincent宠技:虚弱 +#ifdef _SKILL_WEAKEN //vincent瀹犳妧:铏氬急 int BATTLE_S_Weaken( int battleindex, int attackNo, @@ -7175,7 +7175,7 @@ int BATTLE_S_Weaken( int ReceveEffect, Success = 0; char *pszP; char szTurn[] = "turn"; - char szSuccess[] = "成"; + char szSuccess[] = "鎴"; magicarg = PETSKILL_getChar( marray, PETSKILL_OPTION ); if( magicarg == "\0" ) { //print("\n magicarg == NULL "); @@ -7237,8 +7237,8 @@ BOOL BATTLE_S_Temptation( int battleindex,int attackNo,int defNo, int skill ) if( CHAR_CHECKINDEX( defindex ) == FALSE )return iRet; if( CHAR_getInt( defindex, CHAR_WHICHTYPE) != CHAR_TYPEPET ) return iRet; if( CHAR_getWorkInt( defindex , CHAR_WORKFIXAI ) <= atoi(magicarg)){ - //技能攻击 - CHAR_setWorkInt( defindex, CHAR_WORKTEMPTATION , 1 ); //用来解除打自己方1滴血的限制 + //鎶鑳芥敾鍑 + CHAR_setWorkInt( defindex, CHAR_WORKTEMPTATION , 1 ); //鐢ㄦ潵瑙i櫎鎵撹嚜宸辨柟1婊磋鐨勯檺鍒 defside = CHAR_getWorkInt( defindex, CHAR_WORKBATTLESIDE); target = CHAR_getWorkInt( defindex, CHAR_WORKBATTLECOM2 ); @@ -7249,10 +7249,10 @@ BOOL BATTLE_S_Temptation( int battleindex,int attackNo,int defNo, int skill ) CHAR_setWorkInt( defindex , CHAR_WORKBATTLECOM2, BATTLE_DefaultAttacker(battleindex,defside)); } - img1 = 101505; //珠珠动画101637; //准备期动画 - img2 = 101502; //珠珠动画101645; //击中後动画 + img1 = 101505; //鐝犵彔鍔ㄧ敾101637; //鍑嗗鏈熷姩鐢 + img2 = 101502; //鐝犵彔鍔ㄧ敾101645; //鍑讳腑寰屽姩鐢 flg |= BCF_NO_DAMAGE; - flg |= BCF_B_SKILLACT; //击中後秀图 + flg |= BCF_B_SKILLACT; //鍑讳腑寰岀鍥 snprintf( szWork, sizeof( szWork ), "B+|a%X|r%X|f%X|d%X|p%X|e%X|s%X|h%X|FF|", attackNo, defNo, flg, 0, 0, 1 , img1 , img2 ); BATTLESTR_ADD( szWork ); @@ -7263,7 +7263,7 @@ BOOL BATTLE_S_Temptation( int battleindex,int attackNo,int defNo, int skill ) } #endif -#ifdef _SKILL_DEEPPOISON //vincent宠技:剧毒 +#ifdef _SKILL_DEEPPOISON //vincent瀹犳妧:鍓ф瘨 int BATTLE_S_Deeppoison( int battleindex, int attackNo, int defNo, int marray ) { BOOL iRet = FALSE; @@ -7272,7 +7272,7 @@ int BATTLE_S_Deeppoison( int battleindex, int attackNo, int defNo, int marray ) int ReceveEffect, Success = 0; char *pszP; char szTurn[] = "turn"; - char szSuccess[] = "成"; + char szSuccess[] = "鎴"; magicarg = PETSKILL_getChar( marray, PETSKILL_OPTION ); if( magicarg == "\0" ) { //print("\n magicarg == NULL "); @@ -7315,7 +7315,7 @@ int BATTLE_S_Deeppoison( int battleindex, int attackNo, int defNo, int marray ) } #endif -#ifdef _SKILL_BARRIER //vincent宠技:魔障 +#ifdef _SKILL_BARRIER //vincent瀹犳妧:榄旈殰 int BATTLE_S_Barrier( int battleindex, int attackNo, @@ -7330,9 +7330,9 @@ int BATTLE_S_Barrier( char *magicarg; int Success = 0; char szTurn[] = "turn"; - char szSuccess[] = "成"; + char szSuccess[] = "鎴"; char *pszP; - charaindex = BATTLE_No2Index( battleindex, attackNo ); //攻方index + charaindex = BATTLE_No2Index( battleindex, attackNo ); //鏀绘柟index //check index if( CHAR_CHECKINDEX( charaindex ) == FALSE )return FALSE; @@ -7350,12 +7350,12 @@ int BATTLE_S_Barrier( pszP = magicarg; - //读取作用回合数 + //璇诲彇浣滅敤鍥炲悎鏁 if( ( pszP = strstr( pszP, szTurn ) ) != NULL){ pszP += sizeof( szTurn ); sscanf( pszP, "%d", &turn ); } - //命中率 + //鍛戒腑鐜 if( ( pszP = strstr( pszP, szSuccess ) ) != NULL){ pszP += sizeof( szSuccess ); sscanf( pszP, "%d", &Success ); @@ -7363,10 +7363,10 @@ int BATTLE_S_Barrier( BATTLE_MultiList( battleindex, defNo, ToList ); - //施魔法动画效果 + //鏂介瓟娉曞姩鐢绘晥鏋 BATTLE_MagicEffect(battleindex, attackNo, ToList, MAGIC_EFFECT_USER, SPR_hoshi); - //check是否战斗中 + //check鏄惁鎴樻枟涓 if( IsBATTLING( charaindex ) == TRUE ) { @@ -7384,7 +7384,7 @@ int BATTLE_S_Barrier( } #endif -#ifdef _SKILL_NOCAST //vincent宠技:沉默 +#ifdef _SKILL_NOCAST //vincent瀹犳妧:娌夐粯 int BATTLE_S_Nocast( int battleindex, int attackNo, @@ -7399,9 +7399,9 @@ int BATTLE_S_Nocast( char *magicarg; int Success = 0; char szTurn[] = "turn"; - char szSuccess[] = "成"; + char szSuccess[] = "鎴"; char *pszP; - charaindex = BATTLE_No2Index( battleindex, attackNo ); //攻方index + charaindex = BATTLE_No2Index( battleindex, attackNo ); //鏀绘柟index //check index if( CHAR_CHECKINDEX( charaindex ) == FALSE )return FALSE; @@ -7419,12 +7419,12 @@ int BATTLE_S_Nocast( pszP = magicarg; - //读取作用回合数 + //璇诲彇浣滅敤鍥炲悎鏁 if( ( pszP = strstr( pszP, szTurn ) ) != NULL){ pszP += sizeof( szTurn ); sscanf( pszP, "%d", &turn ); } - //命中率 + //鍛戒腑鐜 if( ( pszP = strstr( pszP, szSuccess ) ) != NULL){ pszP += sizeof( szSuccess ); sscanf( pszP, "%d", &Success ); @@ -7432,17 +7432,17 @@ int BATTLE_S_Nocast( BATTLE_MultiList( battleindex, defNo, ToList ); - //施魔法动画效果 + //鏂介瓟娉曞姩鐢绘晥鏋 BATTLE_MagicEffect(battleindex, attackNo, ToList, MAGIC_EFFECT_USER, SPR_hoshi); - //check是否战斗中 + //check鏄惁鎴樻枟涓 if( IsBATTLING( charaindex ) == TRUE ){ for( i = 0; ToList[i] != -1; i ++ ){ toindex = BATTLE_No2Index( battleindex, ToList[i] ); if( BATTLE_StatusAttackCheck( charaindex,toindex, BATTLE_ST_NOCAST, Success, 30, 1.0, &perStatus ) == TRUE && CHAR_getInt( toindex, CHAR_WHICHTYPE) != CHAR_TYPEPET){ - //无法展开咒术页 + //鏃犳硶灞曞紑鍜掓湳椤 lssproto_NC_send( getfdFromCharaIndex( toindex ), 1); CHAR_setWorkInt( toindex, CHAR_WORKNOCAST, turn ); BATTLE_BadStatusString( ToList[i], BATTLE_ST_NOCAST ); @@ -7465,7 +7465,7 @@ int BATTLE_getReactFlg( int index, int react) flg |= BCF_SUPERWALL; } #endif -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 if( react == BATTLE_MD_TRAP ) flg |= BCF_TRAP; #endif #ifdef _PETSKILL_ACUPUNCTURE @@ -7484,9 +7484,9 @@ int BATTLE_CheckSameSide( int charaindex, int toNo) MySide = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLESIDE); //toindex = BATTLE_No2Index( battleindex, ToList[i] ); - if( toNo < 20 ){//单一目标 + if( toNo < 20 ){//鍗曚竴鐩爣 toindex = BATTLE_No2Index( battleindex, toNo); - if( CHAR_getWorkInt( toindex, CHAR_WORKBATTLESIDE) == MySide ) return 1;//同边 + if( CHAR_getWorkInt( toindex, CHAR_WORKBATTLESIDE) == MySide ) return 1;//鍚岃竟 }else if( toNo){ BATTLE_MultiList( battleindex, toNo, ToList ); @@ -7494,7 +7494,7 @@ int BATTLE_CheckSameSide( int charaindex, int toNo) toindex = BATTLE_No2Index( battleindex, ToList[i] ); if( !CHAR_CHECKINDEX( toindex) ) continue; - if( CHAR_getWorkInt( toindex, CHAR_WORKBATTLESIDE) == MySide ) return 1;//同边 + if( CHAR_getWorkInt( toindex, CHAR_WORKBATTLESIDE) == MySide ) return 1;//鍚岃竟 } } return 0; @@ -7520,7 +7520,7 @@ int CHAR_BattleStayLoop( int charaindex) if( CONNECT_getBDTime( fd) < time( NULL) ) { if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) == BATTLE_CHARMODE_NONE){ if(getNoStayBattle()==1){ - CHAR_talkToCli(charaindex, -1, "本线为商业娱乐线路,原地遇敌异常缓慢,请到其他线路尝试。", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "鏈嚎涓哄晢涓氬ū涔愮嚎璺紝鍘熷湴閬囨晫寮傚父缂撴參锛岃鍒板叾浠栫嚎璺皾璇曘", CHAR_COLORYELLOW); } lssproto_EN_recv( fd, CHAR_getInt( charaindex,CHAR_X), CHAR_getInt( charaindex,CHAR_Y)); CONNECT_setBDTime( fd, (int)time( NULL)); @@ -7531,7 +7531,7 @@ int CHAR_BattleStayLoop( int charaindex) ch = CHAR_getCharPointer( charaindex); if( ch == NULL ) return 0; strcpysafe( ch->charfunctable[CHAR_LOOPFUNCTEMP1].string, - sizeof( ch->charfunctable[CHAR_LOOPFUNCTEMP1]), "");//战斗 + sizeof( ch->charfunctable[CHAR_LOOPFUNCTEMP1]), "");//鎴樻枟 CHAR_setInt( charaindex, CHAR_LOOPINTERVAL, 0); CHAR_constructFunctable( charaindex); } @@ -7549,7 +7549,7 @@ int PET_PetskillPropertyEvent( int Myindex, int defindex, int *damage, int *T_Po if( !CHAR_CHECKINDEX( defindex)) return 0; BATTLE_GetAttr( defindex, My_Pow); - //被攻击方转变属性 + //琚敾鍑绘柟杞彉灞炴 for( i=0; i<4; i++) { int nums = (i+3)%4; if( My_Pow[i] != 0 ){ @@ -7566,9 +7566,9 @@ int PET_PetskillPropertyEvent( int Myindex, int defindex, int *damage, int *T_Po -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 -// 直接攻击函式 +// 鐩存帴鏀诲嚮鍑藉紡 int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int charaindex) { char szBuffer[512]=""; @@ -7585,55 +7585,55 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c skill = CHAR_GETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3); skill_type=CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ); - //攻方index + //鏀绘柟index attackindex = BATTLE_No2Index( battleindex, attackNo ); if( CHAR_CHECKINDEX( attackindex ) == FALSE ) return iRet; - //守方index + //瀹堟柟index defindex = BATTLE_No2Index( battleindex, defNo ); if( CHAR_CHECKINDEX( defindex ) == FALSE ){ return iRet; } - // 屍体掠夺 + // 灞嶄綋鎺犲ず if( (CHAR_getInt( defindex, CHAR_HP ) <= 0) && (skill_type != BATTLE_COM_S_PLUNDER) ){ return iRet; } - // 非战斗使用技能 + // 闈炴垬鏂椾娇鐢ㄦ妧鑳 if( !PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_USE_FLAG) ) return iRet; - // 取得技能参数 + // 鍙栧緱鎶鑳藉弬鏁 pszOption = PROFESSION_SKILL_getChar( skill, PROFESSION_SKILL_OPTION); if( pszOption == "\0" ) return iRet; - // 技能等级 + // 鎶鑳界瓑绾 skill_level = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); - // 动画方式 0原地秀动画 1人物移动秀动画 - if( (pszP = strstr( pszOption, "效%" ) ) != NULL ) sscanf( pszP+3, "%d", &effect ); + // 鍔ㄧ敾鏂瑰紡 0鍘熷湴绉鍔ㄧ敾 1浜虹墿绉诲姩绉鍔ㄧ敾 + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ) sscanf( pszP+3, "%d", &effect ); - // 准备期的动画 + // 鍑嗗鏈熺殑鍔ㄧ敾 img1 = PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_IMG_1 ); - // 击中後的动画 + // 鍑讳腑寰岀殑鍔ㄧ敾 img2 = PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_IMG_2 ); - // 目标地球一周,不动作 + // 鐩爣鍦扮悆涓鍛紝涓嶅姩浣 if( defNo >= 0 && defNo <= 19 ){ if( CHAR_getWorkInt( defindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_EARTHROUND0 ){ return iRet; } } - // 取出各技能参数 + // 鍙栧嚭鍚勬妧鑳藉弬鏁 switch( skill_type){ - case BATTLE_COM_S_BRUST: // 爆击 + case BATTLE_COM_S_BRUST: // 鐖嗗嚮 { int str=0, old_str=0; - // 增加攻击力 + // 澧炲姞鏀诲嚮鍔 old_str = CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR); str = old_str * ( skill_level * 3 + 100 ) / 100; @@ -7641,10 +7641,10 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c break; } - case BATTLE_COM_S_CHAOS: // 混乱攻击 + case BATTLE_COM_S_CHAOS: // 娣蜂贡鏀诲嚮 { int atk = 0; - // 减30%攻击力 + // 鍑30%鏀诲嚮鍔 atk = CHAR_getWorkInt( charaindex, CHAR_WORKATTACKPOWER ); atk = atk * 70 / 100; CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER, atk ); @@ -7655,7 +7655,7 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c break; } - case BATTLE_COM_S_CHAIN_ATK: // 连环攻击 + case BATTLE_COM_S_CHAIN_ATK: // 杩炵幆鏀诲嚮 { int rand_num = RAND(1, 100); int hit; @@ -7665,45 +7665,45 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c hit = skill_level * 5 + 15; if( rand_num <= hit ) - atk_num=2; // 攻击二次 + atk_num=2; // 鏀诲嚮浜屾 else atk_num=0; break; } - case BATTLE_COM_S_ENRAGE_PET: // 激怒宠物 + case BATTLE_COM_S_ENRAGE_PET: // 婵鎬掑疇鐗 { - // 判断是否同队 + // 鍒ゆ柇鏄惁鍚岄槦 if( BATTLE_CheckSameSide( charaindex, defNo) != 1 ) return iRet; defNo = attackNo; - // 攻击力 1 + // 鏀诲嚮鍔 1 CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER, 0 ); break; } - case BATTLE_COM_S_CHAIN_ATK_2: // 双重攻击 + case BATTLE_COM_S_CHAIN_ATK_2: // 鍙岄噸鏀诲嚮 { int atkpower = 0; - int absrob_num = CHAR_getWorkInt( defindex, CHAR_WORKDAMAGEABSROB ); // 光 - //int reflec_num = CHAR_getWorkInt( defindex, CHAR_WORKDAMAGEREFLEC ); // 镜 - int evanish_num = CHAR_getWorkInt( defindex, CHAR_WORKDAMAGEVANISH ); // 守 - int trap_num = CHAR_getWorkInt( defindex, CHAR_WORKTRAP ); // 陷阱 + int absrob_num = CHAR_getWorkInt( defindex, CHAR_WORKDAMAGEABSROB ); // 鍏 + //int reflec_num = CHAR_getWorkInt( defindex, CHAR_WORKDAMAGEREFLEC ); // 闀 + int evanish_num = CHAR_getWorkInt( defindex, CHAR_WORKDAMAGEVANISH ); // 瀹 + int trap_num = CHAR_getWorkInt( defindex, CHAR_WORKTRAP ); // 闄烽槺 if( absrob_num > 0 ) CHAR_setWorkInt( defindex, CHAR_WORKDAMAGEABSROB, max(absrob_num - 1, 0) ); - //if( reflec_num > 0 ) CHAR_setWorkInt( defindex, CHAR_WORKDAMAGEREFLEC, max(reflec_num - 1, 0) );//让镜有效,这行要拿掉 + //if( reflec_num > 0 ) CHAR_setWorkInt( defindex, CHAR_WORKDAMAGEREFLEC, max(reflec_num - 1, 0) );//璁╅暅鏈夋晥,杩欒瑕佹嬁鎺 if( evanish_num > 0 ) CHAR_setWorkInt( defindex, CHAR_WORKDAMAGEVANISH, max(evanish_num - 1, 0) ); if( trap_num > 0 ) CHAR_setWorkInt( defindex, CHAR_WORKTRAP, 0 ); - // 第一下攻击力 0 + // 绗竴涓嬫敾鍑诲姏 0 CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER, 0 ); snprintf( szCommand, sizeof( szCommand ), "B+|a%X|r%X|f%X|d%X|p%X|e%X|s%X|h%X|", attackNo, defNo, BCF_NO_DAMAGE, 0, 0, effect, img1, img2 ); BATTLESTR_ADD( szCommand ); - // 增加攻击力 + // 澧炲姞鏀诲嚮鍔 atkpower =(int)( CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR) * (skill_level * 2 + 100) /100 ); CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER, atkpower ); @@ -7718,7 +7718,7 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c return iRet; } - case BATTLE_COM_S_DEAD_ATTACK: // 濒死攻击 + case BATTLE_COM_S_DEAD_ATTACK: // 婵掓鏀诲嚮 { int hit=0, hp=0, old_hp=0, rate=0; @@ -7727,7 +7727,7 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c hp = old_hp * rate / 100; if( old_hp <= 10 ){ - CHAR_talkToCli( charaindex, -1, "HP不足,无法使用技能", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "HP涓嶈冻锛屾棤娉曚娇鐢ㄦ妧鑳", CHAR_COLORYELLOW); return iRet; } @@ -7736,7 +7736,7 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c CHAR_setWorkInt(charaindex,CHAR_WORKHITRIGHT, CHAR_getWorkInt(charaindex,CHAR_WORKHITRIGHT) + hit ); CHAR_setWorkInt( charaindex, CHAR_MYSKILLHIT, 1); CHAR_setWorkInt( charaindex, CHAR_MYSKILLHIT_NUM, hit); - CHAR_talkToCli( charaindex, -1, "命中率上升", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍛戒腑鐜囦笂鍗", CHAR_COLORYELLOW); sprintf( szCommand, "BD|r%X|0|1|%X|", attackNo, (-1) * (old_hp - hp) ); BATTLESTR_ADD( szCommand ); @@ -7744,20 +7744,20 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c CHAR_setInt(charaindex, CHAR_HP, hp); break; } - case BATTLE_COM_S_ATTACK_WEAK: // 弱点攻击 + case BATTLE_COM_S_ATTACK_WEAK: // 寮辩偣鏀诲嚮 { float str=0.0, dex=0.0; int whichtype; whichtype = CHAR_getInt( defindex, CHAR_WHICHTYPE); - // 目标为宠物时升攻 + // 鐩爣涓哄疇鐗╂椂鍗囨敾 if( (whichtype == CHAR_TYPEPET) || (whichtype == CHAR_TYPEENEMY) ){ str = skill_level * 2 +10 + 100; CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER, CHAR_getWorkInt(charaindex,CHAR_WORKATTACKPOWER) * (str/100) ); } - // 降敏 + // 闄嶆晱 dex = 100 - ( skill_level + 10 ); CHAR_setWorkInt(charaindex,CHAR_WORKQUICK, CHAR_getWorkInt(charaindex,CHAR_WORKFIXDEX) * (dex/100) ); sprintf( szCommand, "BD|r%X|0|6|%X|", attackNo, (-1) * (skill_level + 10) ); @@ -7765,14 +7765,14 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c break; } - case BATTLE_COM_S_PLUNDER: // 屍体掠夺 + case BATTLE_COM_S_PLUNDER: // 灞嶄綋鎺犲ず { char pBidList[BATTLE_ENTRY_MAX*2+1]; int item, start = 0; memset( pBidList, -1, sizeof(pBidList) ); pBidList[0] = defNo; - // 掠夺的目标 + // 鎺犲ず鐨勭洰鏍 defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 ); defindex = BATTLE_No2Index( battleindex, defNo ); if( CHAR_getInt( defindex, CHAR_WHICHTYPE) != CHAR_TYPEENEMY ) return 1; @@ -7801,7 +7801,7 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c item_name = ITEM_getChar( itemindex, ITEM_NAME); - sprintf( msg, "得到%s", item_name ); + sprintf( msg, "寰楀埌%s", item_name ); CHAR_talkToCli( charaindex, -1, msg, CHAR_COLORYELLOW); CHAR_setItemIndex( enemy_index, item, -1 ); @@ -7823,7 +7823,7 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c react = 0; - if( (ReactType=BATTLE_GetDamageReact( defindex)) > 0 ) { //有光镜守 + if( (ReactType=BATTLE_GetDamageReact( defindex)) > 0 ) { //鏈夊厜闀滃畧 react = ReactType; if( skill_type != BATTLE_COM_S_CHAIN_ATK ){ react=0; @@ -7837,14 +7837,14 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c DefSide = 1; } - //取得攻击後状态 + //鍙栧緱鏀诲嚮寰岀姸鎬 iWork = BATTLE_AttackSeq( attackindex, defindex, &damage, &Guardian, skill_type ); - if( skill_type == BATTLE_COM_S_ENRAGE_PET ){//让激怒宠物技能不要真的打死宠物 + if( skill_type == BATTLE_COM_S_ENRAGE_PET ){//璁╂縺鎬掑疇鐗╂妧鑳戒笉瑕佺湡鐨勬墦姝诲疇鐗 if( CHAR_getInt( defindex, CHAR_HP ) <= damage ){ damage = 0; } } - if( skill_type == BATTLE_COM_S_CAVALRY) // 座骑攻击 + if( skill_type == BATTLE_COM_S_CAVALRY) // 搴ч獞鏀诲嚮 ultimate = BATTLE_PROFESSION_ATK_PET_DamageSub( attackindex, defindex, &damage, &petdamage, &react, skill_level ); else ultimate = BATTLE_DamageSub( attackindex, defindex, &damage, &petdamage, &react); @@ -7860,13 +7860,13 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c iRet = BATTLE_DefineAttack( attackindex, defindex, iWork, szBuffer, damage, react, &flg); - // 将 NORMAL 及 CRITICAL 的 flg 改成 职业的flg + // 灏 NORMAL 鍙 CRITICAL 鐨 flg 鏀规垚 鑱屼笟鐨刦lg if( img2 != 0 ){ if( flg == BCF_NORMAL || flg == BCF_KAISHIN ){ - if( (pszP = strstr( pszOption, "前" ) ) != NULL ) - flg |= BCF_F_SKILLACT; //击中前秀图 + if( (pszP = strstr( pszOption, "鍓" ) ) != NULL ) + flg |= BCF_F_SKILLACT; //鍑讳腑鍓嶇鍥 else - flg |= BCF_B_SKILLACT; //击中後秀 + flg |= BCF_B_SKILLACT; //鍑讳腑寰岀 } } @@ -7882,17 +7882,17 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c memset( szCommand, 0, sizeof( szCommand)); switch( skill_type){ - case BATTLE_COM_S_BRUST: // 爆击 - case BATTLE_COM_S_DEAD_ATTACK: // 濒死攻击 - case BATTLE_COM_S_ATTACK_WEAK: // 弱点攻击 - case BATTLE_COM_S_CAVALRY: // 座骑攻击 + case BATTLE_COM_S_BRUST: // 鐖嗗嚮 + case BATTLE_COM_S_DEAD_ATTACK: // 婵掓鏀诲嚮 + case BATTLE_COM_S_ATTACK_WEAK: // 寮辩偣鏀诲嚮 + case BATTLE_COM_S_CAVALRY: // 搴ч獞鏀诲嚮 { snprintf( szCommand, sizeof( szCommand ), "B+|a%X|r%X|f%X|d%X|p%X|e%X|s%X|h%X|FF|", attackNo, defNo, flg, damage, petdamage, effect, img1, img2 ); BATTLESTR_ADD( szCommand ); break; } - case BATTLE_COM_S_ENRAGE_PET: // 激怒宠物 + case BATTLE_COM_S_ENRAGE_PET: // 婵鎬掑疇鐗 { int str = 0; int turn = 0; @@ -7900,20 +7900,20 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c flg |= BCF_NO_DAMAGE; - flg |= BCF_B_SKILLACT; //击中後秀图 + flg |= BCF_B_SKILLACT; //鍑讳腑寰岀鍥 defNo = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM2 ); pindex = BATTLE_No2Index( battleindex, defNo ); - // 检查是否为宠物 + // 妫鏌ユ槸鍚︿负瀹犵墿 if( CHAR_getInt( pindex, CHAR_WHICHTYPE) != CHAR_TYPEPET ) break; snprintf( szCommand, sizeof( szCommand ), "B+|a%X|r%X|f%X|d%X|p%X|e%X|s%X|h%X|FF|", attackNo, defNo, flg, 0, 0, effect, img1, img2 ); BATTLESTR_ADD( szCommand ); - // 加攻 + // 鍔犳敾 str = skill_level * 2 + 10; sprintf( szCommand, "BD|r%X|0|4|%X|", defNo, str); BATTLESTR_ADD( szCommand ); @@ -7927,7 +7927,7 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c break; } - case BATTLE_COM_S_CHAOS: // 混乱攻击 + case BATTLE_COM_S_CHAOS: // 娣蜂贡鏀诲嚮 { int i=0, j=0, k=0, f_num=0; int temp[10], chose_temp[10]; @@ -7943,10 +7943,10 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c if( defNo >= 10 ) f_num = 10; else f_num = 0; - // 减30%攻击力 + // 鍑30%鏀诲嚮鍔 //CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER, CHAR_getWorkInt( charaindex, CHAR_WORKATTACKPOWER ) * 70 / 100 ); - //传给client减攻击力效果 + //浼犵粰client鍑忔敾鍑诲姏鏁堟灉 sprintf( szCommand, "BD|r%X|0|4|%X|", attackNo, -30 ); BATTLESTR_ADD( szCommand ); @@ -7954,7 +7954,7 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c attackNo, defNo, flg, damage, petdamage, effect, img1, img2 ); BATTLESTR_ADD( szCommand ); - // 取出战场上存活的人 + // 鍙栧嚭鎴樺満涓婂瓨娲荤殑浜 for( i=f_num; i 0 ){ int atk_to_index = -1; atk_to_index = BATTLE_No2Index( battleindex, chose_temp[k] ); @@ -8004,7 +8004,7 @@ int battle_profession_attack_fun(int battleindex, int attackNo, int defNo, int c memset( chose_temp, -1, sizeof( chose_temp ) ); j = 0; k = 0; - // 取出战场上存活的人 + // 鍙栧嚭鎴樺満涓婂瓨娲荤殑浜 for( i=f_num; i=23 && toindex<=26 ){ // 单排 + }else if( toindex>=23 && toindex<=26 ){ // 鍗曟帓 attIdx = 1; - }else if( toindex==20 || toindex==21 ){ // 一方全体 + }else if( toindex==20 || toindex==21 ){ // 涓鏂瑰叏浣 attIdx = 2; } - // Robin fix 增加战场属性优势 + // Robin fix 澧炲姞鎴樺満灞炴т紭鍔 attr = BattleArray[battleindex].field_att -1; PROFESSION_MAGIC_ATTAIC( battleindex, attackNo, toindex, attIdx, attr, skill); @@ -8100,7 +8100,7 @@ int battle_profession_attack_magic_fun(int battleindex, int attackNo, int defNo, return TRUE; } -// 提升自已能力系函式 +// 鎻愬崌鑷凡鑳藉姏绯诲嚱寮 int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int charaindex) { int i, skill, skill_type, skill_level, img1, img2, turn=1; @@ -8111,28 +8111,28 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c skill = CHAR_GETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3); skill_type = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ); - // 非战斗使用技能 + // 闈炴垬鏂椾娇鐢ㄦ妧鑳 if( !PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_USE_FLAG) ) return iRet; - // 技能的参数 + // 鎶鑳界殑鍙傛暟 pszOption = PROFESSION_SKILL_getChar( skill, PROFESSION_SKILL_OPTION); if( pszOption == "\0" ) return iRet; - // 技能等级 + // 鎶鑳界瓑绾 skill_level = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3); - // 准备期的动画 + // 鍑嗗鏈熺殑鍔ㄧ敾 img1 = PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_IMG_1 ); - // 击中後的动画 + // 鍑讳腑寰岀殑鍔ㄧ敾 img2 = PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_IMG_2 ); - // 使用回合数 - if( (pszP = strstr( pszOption, "回%" ) ) != NULL ) sscanf( pszP+3, "%d", &turn ); + // 浣跨敤鍥炲悎鏁 + if( (pszP = strstr( pszOption, "鍥%" ) ) != NULL ) sscanf( pszP+3, "%d", &turn ); if(turn < 1) turn=1; switch(skill_type){ - case BATTLE_COM_S_TRANSPOSE: // 移形换位 + case BATTLE_COM_S_TRANSPOSE: // 绉诲舰鎹綅 { int defNo2 = CHAR_getWorkInt(charaindex,CHAR_WORKBATTLECOM2); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_M( skill_level ); @@ -8147,7 +8147,7 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c if( !CHAR_CHECKINDEX( toindex ))continue; if( charaindex != toindex ) continue; - // 回避率 + // 鍥為伩鐜 if( skill_level >= 10 ) avoid = 70; else if( skill_level >= 9 ) avoid = 60; else if( skill_level >= 8 ) avoid = 50; @@ -8170,7 +8170,7 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c } break; } - case BATTLE_COM_S_SCAPEGOAT: // 舍已为友 + case BATTLE_COM_S_SCAPEGOAT: // 鑸嶅凡涓哄弸 { int tgh=0, old_tgh=0, flg=0, rate=0; int pos=0, side=0, ownerpos=0; @@ -8179,17 +8179,17 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c pos = BATTLE_Index2No( battleindex, charaindex ); side = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLESIDE ); - if( skill_level >= 10 ){ // 我方全体 + if( skill_level >= 10 ){ // 鎴戞柟鍏ㄤ綋 for(i=0; i<10; i++){ if(pos != i ) BattleArray[battleindex].Side[side].Entry[i].guardian = pos; } - }else if( skill_level >= 5 ){ // 我方所有宠物 + }else if( skill_level >= 5 ){ // 鎴戞柟鎵鏈夊疇鐗 for(i=5; i<10; i++){ if(pos != i ) BattleArray[battleindex].Side[side].Entry[i].guardian = pos; } - }else{ // 人物之宠物 + }else{ // 浜虹墿涔嬪疇鐗 ownerpos = pos + 5; if( ownerpos >= 10 ) ownerpos -= 10; if( ownerpos < 0 || ownerpos > 19 ){ @@ -8216,7 +8216,7 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c break; } - case BATTLE_COM_S_ENRAGE: // 激化攻击 + case BATTLE_COM_S_ENRAGE: // 婵鍖栨敾鍑 { int str=0, tgh=0; skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); @@ -8225,14 +8225,14 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c BATTLE_MultiList( battleindex, attackNo, ToList ); BATTLE_MagicEffect( battleindex, attackNo, ToList, img1, img2 ); - // 减防 + // 鍑忛槻 tgh = skill_level * 2 + 10; sprintf( szCommand, "BD|r%X|0|5|%X|", attackNo, (-1) * tgh ); BATTLESTR_ADD( szCommand ); CHAR_setWorkInt(charaindex,CHAR_MYSKILLTGHPOWER, (-1) * tgh); - // 加攻 + // 鍔犳敾 str = skill_level * 2 + 20; sprintf( szCommand, "BD|r%X|0|4|%X|", attackNo, str); BATTLESTR_ADD( szCommand ); @@ -8249,7 +8249,7 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c iRet = TRUE; break; } - case BATTLE_COM_S_COLLECT: // 能量聚集 + case BATTLE_COM_S_COLLECT: // 鑳介噺鑱氶泦 { int dex=0, tgh=0; skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); @@ -8258,13 +8258,13 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c BATTLE_MultiList( battleindex, attackNo, ToList ); BATTLE_MagicEffect( battleindex, attackNo, ToList, img1, img2 ); - // 减敏 + // 鍑忔晱 dex = (skill_level * 2) + 10; sprintf( szCommand, "BD|r%X|0|6|%X|", attackNo, (-1) * dex ); BATTLESTR_ADD( szCommand ); CHAR_setWorkInt(charaindex,CHAR_MYSKILLDEXPOWER, dex); - // 加防 + // 鍔犻槻 tgh = (skill_level * 2) + 20; sprintf( szCommand, "BD|r%X|0|5|%X|", attackNo, tgh); BATTLESTR_ADD( szCommand ); @@ -8280,7 +8280,7 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c iRet = TRUE; break; } - case BATTLE_COM_S_FOCUS: // 专注战斗 + case BATTLE_COM_S_FOCUS: // 涓撴敞鎴樻枟 { int ToList[SIDE_OFFSET*2+1]; skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); @@ -8292,12 +8292,12 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c CHAR_setWorkInt( charaindex, CHAR_MYSKILLHIT, 2); CHAR_setWorkInt( charaindex, CHAR_MYSKILLHIT_NUM, 100); - CHAR_talkToCli( charaindex, -1, "命中率上升", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍛戒腑鐜囦笂鍗", CHAR_COLORYELLOW); iRet = TRUE; break; } - case BATTLE_COM_S_TRAP: // 陷阱 + case BATTLE_COM_S_TRAP: // 闄烽槺 { int value; int ToList[SIDE_OFFSET*2+1]; @@ -8319,7 +8319,7 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c iRet = TRUE; break; } - case BATTLE_COM_S_DOCILE: // 驯伏宠物 + case BATTLE_COM_S_DOCILE: // 椹紡瀹犵墿 { int rate = 0; skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); @@ -8332,13 +8332,13 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c break; } #ifdef _PROFESSION_ADDSKILL - case BATTLE_COM_S_CALL_NATURE: // 号召自然 + case BATTLE_COM_S_CALL_NATURE: // 鍙峰彫鑷劧 { int ridepet=0,count=0,addhp=0,toindex=-1; int ToList[SIDE_OFFSET*2+1]; BATTLE_MultiList( battleindex, defNo, ToList ); - if( defNo == 20 || defNo == 25 || defNo == 26 )//右方 + if( defNo == 20 || defNo == 25 || defNo == 26 )//鍙虫柟 img1 = 101772; for( i = 0; ToList[i] != -1; i ++ ){ toindex = BATTLE_No2Index( battleindex, ToList[i] ); @@ -8414,7 +8414,7 @@ int battle_profession_assist_fun(int battleindex, int attackNo, int defNo, int c extern unsigned int GET_PROFESSION_magic_array(int idx); #endif -// 击中改变状态系函式 +// 鍑讳腑鏀瑰彉鐘舵佺郴鍑藉紡 extern void BATTLE_TargetListSet( int charaindex, int attackNo, int *pList); extern int BoomerangVsTbl[4][5]; int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, int charaindex) @@ -8431,34 +8431,34 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, skill = CHAR_GETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3 ); skill_type=CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1 ); - // 非战斗使用技能 + // 闈炴垬鏂椾娇鐢ㄦ妧鑳 if( !PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_USE_FLAG) ) return iRet; - // 技能的参数 + // 鎶鑳界殑鍙傛暟 pszOption = PROFESSION_SKILL_getChar( skill, PROFESSION_SKILL_OPTION); if( pszOption == "\0" ) return iRet; - // 技能等级 + // 鎶鑳界瓑绾 skill_level = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); - // 技能等级 rate - if( (pszP = strstr( pszOption, "倍%" ) ) != NULL ) sscanf( pszP+3, "%f", &rate ); + // 鎶鑳界瓑绾 rate + if( (pszP = strstr( pszOption, "鍊%" ) ) != NULL ) sscanf( pszP+3, "%f", &rate ); - // 准备期的动画 + // 鍑嗗鏈熺殑鍔ㄧ敾 img1 = PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_IMG_1 ); - // 击中後的动画 + // 鍑讳腑寰岀殑鍔ㄧ敾 img2 = PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_IMG_2 ); - // 使用回合数 - if( (pszP = strstr( pszOption, "回%" ) ) != NULL ) sscanf( pszP+3, "%d", &turn ); + // 浣跨敤鍥炲悎鏁 + if( (pszP = strstr( pszOption, "鍥%" ) ) != NULL ) sscanf( pszP+3, "%d", &turn ); if(turn < 1) turn=1; - // 动画方式 0原地秀动画 1人物移动秀动画 - if( (pszP = strstr( pszOption, "效%" ) ) != NULL ) sscanf( pszP+3, "%d", &effect ); + // 鍔ㄧ敾鏂瑰紡 0鍘熷湴绉鍔ㄧ敾 1浜虹墿绉诲姩绉鍔ㄧ敾 + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ) sscanf( pszP+3, "%d", &effect ); - // 目标地球一周,不动作 + // 鐩爣鍦扮悆涓鍛紝涓嶅姩浣 if( defNo >= 0 && defNo <= 19 ){ defindex = BATTLE_No2Index( battleindex, defNo ); if( CHAR_CHECKINDEX( defindex ) == FALSE ) return iRet; @@ -8468,32 +8468,32 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } switch(skill_type){ - // 不移动型 - case BATTLE_COM_S_ENTWINE: // 树根缠绕 - case BATTLE_COM_S_DRAGNET: // 天罗地网 - case BATTLE_COM_S_INSTIGATE: // 挑拨 - case BATTLE_COM_S_OBLIVION: // 遗忘 - case BATTLE_COM_S_RESIST_FIRE: // 火抗性提升 - case BATTLE_COM_S_RESIST_ICE: // 冰抗性提升 - case BATTLE_COM_S_RESIST_THUNDER: // 雷抗性提升 + // 涓嶇Щ鍔ㄥ瀷 + case BATTLE_COM_S_ENTWINE: // 鏍戞牴缂犵粫 + case BATTLE_COM_S_DRAGNET: // 澶╃綏鍦扮綉 + case BATTLE_COM_S_INSTIGATE: // 鎸戞嫧 + case BATTLE_COM_S_OBLIVION: // 閬楀繕 + case BATTLE_COM_S_RESIST_FIRE: // 鐏姉鎬ф彁鍗 + case BATTLE_COM_S_RESIST_ICE: // 鍐版姉鎬ф彁鍗 + case BATTLE_COM_S_RESIST_THUNDER: // 闆锋姉鎬ф彁鍗 #ifdef _PROFESSION_ADDSKILL - case BATTLE_COM_S_RESIST_F_I_T: // 自然威能 + case BATTLE_COM_S_RESIST_F_I_T: // 鑷劧濞佽兘 #endif - case BATTLE_COM_S_FIRE_ENCLOSE: // 火附体 - case BATTLE_COM_S_ICE_ENCLOSE: // 冰附体 - case BATTLE_COM_S_THUNDER_ENCLOSE: // 雷附体 + case BATTLE_COM_S_FIRE_ENCLOSE: // 鐏檮浣 + case BATTLE_COM_S_ICE_ENCLOSE: // 鍐伴檮浣 + case BATTLE_COM_S_THUNDER_ENCLOSE: // 闆烽檮浣 { int perStatus=0, toindex=-1, status=-1, Success=0, dex=0, old_dex; //char szBuffer[256]=""; int ToList[SIDE_OFFSET*2+1]; int defNo2 = CHAR_getWorkInt(charaindex,CHAR_WORKBATTLECOM2); - // 使用对象 - if( skill_type == BATTLE_COM_S_RESIST_FIRE || // 火抗性提升 - skill_type == BATTLE_COM_S_RESIST_ICE || // 冰抗性提升 - skill_type == BATTLE_COM_S_RESIST_THUNDER // 雷抗性提升 + // 浣跨敤瀵硅薄 + if( skill_type == BATTLE_COM_S_RESIST_FIRE || // 鐏姉鎬ф彁鍗 + skill_type == BATTLE_COM_S_RESIST_ICE || // 鍐版姉鎬ф彁鍗 + skill_type == BATTLE_COM_S_RESIST_THUNDER // 闆锋姉鎬ф彁鍗 #ifdef _PROFESSION_ADDSKILL - || skill_type == BATTLE_COM_S_RESIST_F_I_T // 自然威能 + || skill_type == BATTLE_COM_S_RESIST_F_I_T // 鑷劧濞佽兘 #endif ){ #ifdef _PROFESSION_ADDSKILL @@ -8517,19 +8517,19 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, charaindex = BATTLE_No2Index( battleindex, attackNo ); if( CHAR_CHECKINDEX( charaindex ) == FALSE ) return iRet; - // 改变状态 - if( ((pszP = strstr( pszOption, "缠" ) ) != NULL ) || - ((pszP = strstr( pszOption, "挑" ) ) != NULL ) || - ((pszP = strstr( pszOption, "忘" ) ) != NULL ) || - ((pszP = strstr( pszOption, "火" ) ) != NULL ) || - ((pszP = strstr( pszOption, "冰" ) ) != NULL ) || - ((pszP = strstr( pszOption, "雷" ) ) != NULL ) || - ((pszP = strstr( pszOption, "罗" ) ) != NULL ) || - ((pszP = strstr( pszOption, "击" ) ) != NULL ) || - ((pszP = strstr( pszOption, "冻" ) ) != NULL ) || - ((pszP = strstr( pszOption, "炎" ) ) != NULL ) + // 鏀瑰彉鐘舵 + if( ((pszP = strstr( pszOption, "缂" ) ) != NULL ) || + ((pszP = strstr( pszOption, "鎸" ) ) != NULL ) || + ((pszP = strstr( pszOption, "蹇" ) ) != NULL ) || + ((pszP = strstr( pszOption, "鐏" ) ) != NULL ) || + ((pszP = strstr( pszOption, "鍐" ) ) != NULL ) || + ((pszP = strstr( pszOption, "闆" ) ) != NULL ) || + ((pszP = strstr( pszOption, "缃" ) ) != NULL ) || + ((pszP = strstr( pszOption, "鍑" ) ) != NULL ) || + ((pszP = strstr( pszOption, "鍐" ) ) != NULL ) || + ((pszP = strstr( pszOption, "鐐" ) ) != NULL ) #ifdef _PROFESSION_ADDSKILL - || ((pszP = strstr( pszOption, "抗" ) ) != NULL ) + || ((pszP = strstr( pszOption, "鎶" ) ) != NULL ) #endif ){ for( i = 1; i < BATTLE_ST_END; i ++ ){ @@ -8547,8 +8547,8 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, else { #endif - // 成功率 - if( (pszP = strstr( pszOption, "成%" ) ) != NULL ) sscanf( pszP+3, "%d", &Success ); + // 鎴愬姛鐜 + if( (pszP = strstr( pszOption, "鎴%" ) ) != NULL ) sscanf( pszP+3, "%d", &Success ); Success = Success + skill_level * 5; #ifdef _BATTLE_NO_WANG } @@ -8556,9 +8556,9 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, if( skill_type == BATTLE_COM_S_DRAGNET ){ int DRAGNET=0,dragnet_idx=-1; int PLAYER=0; - //找出攻方是那一边的 - if( attackNo > 9 ){//左边 - for(i=0;i<10;i++){//计算右边有多少人中天罗 + //鎵惧嚭鏀绘柟鏄偅涓杈圭殑 + if( attackNo > 9 ){//宸﹁竟 + for(i=0;i<10;i++){//璁$畻鍙宠竟鏈夊灏戜汉涓ぉ缃 dragnet_idx = BATTLE_No2Index( battleindex, i ); if( CHAR_CHECKINDEX( dragnet_idx ) ){ PLAYER++; @@ -8568,8 +8568,8 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } } } - else{//右 - for(i=10;i<20;i++){//计算左边有多少人中天罗 + else{//鍙 + for(i=10;i<20;i++){//璁$畻宸﹁竟鏈夊灏戜汉涓ぉ缃 dragnet_idx = BATTLE_No2Index( battleindex, i ); if( CHAR_CHECKINDEX( dragnet_idx ) ){ PLAYER++; @@ -8589,23 +8589,23 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, perStatus = Success; - // 回合数 - if( (skill_type == BATTLE_COM_S_INSTIGATE) && (skill_level == 10) ){ // 挑拨 + // 鍥炲悎鏁 + if( (skill_type == BATTLE_COM_S_INSTIGATE) && (skill_level == 10) ){ // 鎸戞嫧 turn = 4; - }else if( (skill_type == BATTLE_COM_S_RESIST_FIRE) || // 火抗性提升 - (skill_type == BATTLE_COM_S_RESIST_ICE) || // 冰抗性提升 - (skill_type == BATTLE_COM_S_RESIST_THUNDER) ){ // 雷抗性提升 + }else if( (skill_type == BATTLE_COM_S_RESIST_FIRE) || // 鐏姉鎬ф彁鍗 + (skill_type == BATTLE_COM_S_RESIST_ICE) || // 鍐版姉鎬ф彁鍗 + (skill_type == BATTLE_COM_S_RESIST_THUNDER) ){ // 闆锋姉鎬ф彁鍗 if( skill_level >= 10 ) turn = 5; else if( skill_level >= 5 ) turn = 4; else turn = 3; - }else if( skill_type == BATTLE_COM_S_OBLIVION ){ // 遗忘 + }else if( skill_type == BATTLE_COM_S_OBLIVION ){ // 閬楀繕 if( skill_level >= 10 ){ turn = 4; }else if( skill_level >= 5 ){ turn = 3; }else{ turn = 2; } } #ifdef _PROFESSION_ADDSKILL - else if( skill_type == BATTLE_COM_S_RESIST_F_I_T ){ // 自然威能 + else if( skill_type == BATTLE_COM_S_RESIST_F_I_T ){ // 鑷劧濞佽兘 skill_level = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3); if( skill_level >= 100 ) turn = 5; else if( skill_level > 80 ) turn = 4; @@ -8615,14 +8615,14 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, switch( skill_type ){ case BATTLE_COM_S_RESIST_FIRE: - CHAR_talkToCli( charaindex, -1 , "火抗性提升" , CHAR_COLORYELLOW ); break; + CHAR_talkToCli( charaindex, -1 , "鐏姉鎬ф彁鍗" , CHAR_COLORYELLOW ); break; case BATTLE_COM_S_RESIST_ICE: - CHAR_talkToCli( charaindex, -1 , "冰抗性提升" , CHAR_COLORYELLOW ); break; + CHAR_talkToCli( charaindex, -1 , "鍐版姉鎬ф彁鍗" , CHAR_COLORYELLOW ); break; case BATTLE_COM_S_RESIST_THUNDER: - CHAR_talkToCli( charaindex, -1 , "雷抗性提升" , CHAR_COLORYELLOW ); break; + CHAR_talkToCli( charaindex, -1 , "闆锋姉鎬ф彁鍗" , CHAR_COLORYELLOW ); break; #ifdef _PROFESSION_ADDSKILL case BATTLE_COM_S_RESIST_F_I_T: - CHAR_talkToCli( charaindex, -1 , "火冰雷抗性提升" , CHAR_COLORYELLOW ); break; + CHAR_talkToCli( charaindex, -1 , "鐏啺闆锋姉鎬ф彁鍗" , CHAR_COLORYELLOW ); break; #endif } @@ -8630,19 +8630,19 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, toindex = BATTLE_No2Index( battleindex, ToList[i] ); if( CHAR_CHECKINDEX( toindex ) == FALSE ) return iRet; - // 挑拨不可施於玩家人物身上 + // 鎸戞嫧涓嶅彲鏂芥柤鐜╁浜虹墿韬笂 if( skill_type == BATTLE_COM_S_INSTIGATE ){ if( CHAR_getInt( toindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER ){ - CHAR_talkToCli( charaindex, -1, "不可施於人物身上", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "涓嶅彲鏂芥柤浜虹墿韬笂", CHAR_COLORYELLOW ); break; } } - // 状态命中检定 + // 鐘舵佸懡涓瀹 if( (PROFESSION_BATTLE_StatusAttackCheck( charaindex, toindex, status, Success ) == 0 ) || (CHAR_getInt( toindex, CHAR_HP ) <= 0 ) ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)无法将(%s)做成(%s)(%d%%)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鏃犳硶灏(%s)鍋氭垚(%s)(%d%%)", // CHAR_getUseName( charaindex ), CHAR_getUseName( toindex ), // aszStatusFull[status], perStatus ); @@ -8650,7 +8650,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, // (attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; }else{ #ifdef _PROFESSION_ADDSKILL - if( status == BATTLE_ST_RESIST_F_I_T ){//自然威能 + if( status == BATTLE_ST_RESIST_F_I_T ){//鑷劧濞佽兘 CHAR_setWorkInt( toindex, StatusTbl[BATTLE_ST_RESIST_F], turn + 1 ); CHAR_setWorkInt( toindex, StatusTbl[BATTLE_ST_RESIST_I], turn + 1 ); CHAR_setWorkInt( toindex, StatusTbl[BATTLE_ST_RESIST_T], turn + 1 ); @@ -8670,48 +8670,48 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, || status == BATTLE_ST_ICEARROW ){ CHAR_setWorkInt( toindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); } - if( status == BATTLE_ST_DRAGNET ){//天罗地网 - CHAR_setWorkInt( toindex, CHAR_DOOMTIME, 0 );//世界末日集气 + if( status == BATTLE_ST_DRAGNET ){//澶╃綏鍦扮綉 + CHAR_setWorkInt( toindex, CHAR_DOOMTIME, 0 );//涓栫晫鏈棩闆嗘皵 CHAR_setWorkInt( toindex, CHAR_WORK_com1, 0 ); CHAR_setWorkInt( toindex, CHAR_WORK_toNo, 0 ); CHAR_setWorkInt( toindex, CHAR_WORK_mode, 0 ); CHAR_setWorkInt( toindex, CHAR_WORK_skill_level, 0 ); CHAR_setWorkInt( toindex, CHAR_WORK_array, 0 ); } - if( skill_type == BATTLE_COM_S_FIRE_ENCLOSE ){ // 火附体 + if( skill_type == BATTLE_COM_S_FIRE_ENCLOSE ){ // 鐏檮浣 CHAR_setWorkInt( toindex, CHAR_WORKMOD_F_ENCLOSE_2, skill_level ); - // 加火熟练度经验值 + // 鍔犵伀鐔熺粌搴︾粡楠屽 PROFESSION_SKILL_LVEVEL_UP( charaindex, "PROFESSION_FIRE_PRACTICE" ); - }else if(skill_type == BATTLE_COM_S_ICE_ENCLOSE ){ // 冰附体 + }else if(skill_type == BATTLE_COM_S_ICE_ENCLOSE ){ // 鍐伴檮浣 CHAR_setWorkInt( toindex, CHAR_WORKMOD_I_ENCLOSE_2, skill_level ); - // 加冰熟练度经验值 + // 鍔犲啺鐔熺粌搴︾粡楠屽 PROFESSION_SKILL_LVEVEL_UP( charaindex, "PROFESSION_ICE_PRACTICE" ); - }else if(skill_type == BATTLE_COM_S_THUNDER_ENCLOSE ){ // 雷附体 + }else if(skill_type == BATTLE_COM_S_THUNDER_ENCLOSE ){ // 闆烽檮浣 CHAR_setWorkInt( toindex, CHAR_WORKMOD_T_ENCLOSE_2, skill_level ); - // 加雷熟练度经验值 + // 鍔犻浄鐔熺粌搴︾粡楠屽 PROFESSION_SKILL_LVEVEL_UP( charaindex, "PROFESSION_THUNDER_PRACTICE" ); } - // 遗忘 宠物遗忘技能 + // 閬楀繕 瀹犵墿閬楀繕鎶鑳 if( skill_type == BATTLE_COM_S_OBLIVION ){ int toNo = -1, toNoindex = -1, pet_no = -1, num = 0; char msg[20]; memset( msg, -1, sizeof(msg) ); - // 主人index + // 涓讳汉index toNo = ToList[i] - 5; toNoindex = BATTLE_No2Index( battleindex, toNo ); - // 宠物编号 + // 瀹犵墿缂栧彿 pet_no = CHAR_getInt( toNoindex, CHAR_DEFAULTPET ); - // 遗忘宠技数量 + // 閬楀繕瀹犳妧鏁伴噺 num = skill_level / 2; if( num < 1 ) num = 1; CHAR_setWorkInt( toindex, CHAR_WORKMODOBLIVION, num ); - // 传给 client 遗忘技能 + // 浼犵粰 client 閬楀繕鎶鑳 if( toNoindex != -1 ){ sprintf( msg, "W%d", pet_no ); CHAR_sendStatusString( toNoindex, msg ); @@ -8722,7 +8722,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } } - // 挑拨 降属性 + // 鎸戞嫧 闄嶅睘鎬 if(skill_type == BATTLE_COM_S_INSTIGATE ){ int rate=0; rate = skill_level * 1 + 10; @@ -8737,9 +8737,9 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } - // 树根缠绕 降敏 + // 鏍戞牴缂犵粫 闄嶆晱 if(skill_type == BATTLE_COM_S_ENTWINE ){ - if( (pszP = strstr( pszOption, "敏%" ) ) != NULL ) sscanf( pszP+3, "%d", &dex ); + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ) sscanf( pszP+3, "%d", &dex ); dex = skill_level * 4 + dex; old_dex = CHAR_getWorkInt( toindex, CHAR_WORKFIXDEX); old_dex = old_dex * (100 - dex) / 100; @@ -8748,7 +8748,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, BATTLESTR_ADD( szCommand ); } - // 火抗性提升 + // 鐏姉鎬ф彁鍗 if(skill_type == BATTLE_COM_S_RESIST_FIRE ){ int old_value = CHAR_getWorkInt( toindex, CHAR_WORK_F_RESIST ); int up_value = skill_level + 10; @@ -8756,7 +8756,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, CHAR_setWorkInt( toindex, CHAR_WORK_F_RESIST, old_value + up_value ); }else - // 冰抗性提升 + // 鍐版姉鎬ф彁鍗 if(skill_type == BATTLE_COM_S_RESIST_ICE ){ int old_value = CHAR_getWorkInt( toindex, CHAR_WORK_I_RESIST ); int up_value = skill_level + 10; @@ -8764,7 +8764,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, CHAR_setWorkInt( toindex, CHAR_WORK_I_RESIST, old_value + up_value ); }else - // 雷抗性提升 + // 闆锋姉鎬ф彁鍗 if(skill_type == BATTLE_COM_S_RESIST_THUNDER ){ int old_value = CHAR_getWorkInt( toindex, CHAR_WORK_T_RESIST ); int up_value = skill_level + 10; @@ -8774,10 +8774,10 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } #ifdef _PROFESSION_ADDSKILL else - // 自然威能 + // 鑷劧濞佽兘 if(skill_type == BATTLE_COM_S_RESIST_F_I_T ){ int old_value = CHAR_getWorkInt( toindex, CHAR_WORK_F_RESIST ); - int up_value = 2; //抗性值 + int up_value = 2; //鎶楁у if( skill_level >= 10 ) up_value = 20; else if( skill_level > 8 ) up_value = 18; @@ -8804,7 +8804,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } #endif //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)将(%s)做成(%s)(%d%%)", CHAR_getUseName( charaindex ), + // "(%s)灏(%s)鍋氭垚(%s)(%d%%)", CHAR_getUseName( charaindex ), // CHAR_getUseName( toindex ), aszStatusFull[status], perStatus ); //BATTLE_BroadCast( battleindex, szBuffer, @@ -8815,8 +8815,8 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } break; } - // 移动型 - case BATTLE_COM_S_SHIELD_ATTACK: // 盾击 + // 绉诲姩鍨 + case BATTLE_COM_S_SHIELD_ATTACK: // 鐩惧嚮 { int itmid=-1; int perStatus, status=-1, Success=-1; @@ -8827,20 +8827,20 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, itmid = CHAR_getItemIndex( charaindex, CHAR_EQSHIELD ); if( ( itmid < 0 ) || ITEM_WSHIELD != ITEM_getInt( itmid , ITEM_TYPE ) ){ - CHAR_talkToCli( charaindex, -1, "未装备盾牌,无法使用此技能", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鏈澶囩浘鐗岋紝鏃犳硶浣跨敤姝ゆ妧鑳", CHAR_COLORYELLOW); iRet = FALSE; break; } - // 攻击力减半 + // 鏀诲嚮鍔涘噺鍗 if( skill_level != 10 ) CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER, (int)(CHAR_getWorkInt(charaindex,CHAR_WORKATTACKPOWER) * 0.5 ) ); memset( ToList, -1, sizeof( ToList)); BATTLE_MultiList( battleindex, defNo2, ToList ); - // 改变状态 - if( (pszP = strstr( pszOption, "晕" ) ) != NULL ){ + // 鏀瑰彉鐘舵 + if( (pszP = strstr( pszOption, "鏅" ) ) != NULL ){ for( i = 1; i < BATTLE_ST_END; i ++ ){ if( strncmp( pszP, aszStatus[i], 2 ) == 0 ){ status = i; @@ -8849,8 +8849,8 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } } - // 成功率 - if( (pszP = strstr( pszOption, "成%" ) ) != NULL ) sscanf( pszP+3, "%d", &Success ); + // 鎴愬姛鐜 + if( (pszP = strstr( pszOption, "鎴%" ) ) != NULL ) sscanf( pszP+3, "%d", &Success ); Success += skill_level * 4; perStatus = Success; @@ -8863,15 +8863,15 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, int hit = -1; react = 0; - defindex = BATTLE_No2Index( battleindex, ToList[i] ); //守方index + defindex = BATTLE_No2Index( battleindex, ToList[i] ); //瀹堟柟index if( CHAR_CHECKINDEX( defindex ) == FALSE ) continue; - if( (ReactType=BATTLE_GetDamageReact( defindex)) > 0 ) { //有光镜守 + if( (ReactType=BATTLE_GetDamageReact( defindex)) > 0 ) { //鏈夊厜闀滃畧 react = ReactType; skill_type=-1; } - //取得攻击後状态 + //鍙栧緱鏀诲嚮寰岀姸鎬 iWork = BATTLE_AttackSeq( charaindex, defindex, &damage, &Guardian, skill_type ); ultimate = BATTLE_DamageSub( charaindex, defindex, &damage, &petdamage, &react); @@ -8882,14 +8882,14 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, iRet = BATTLE_DefineAttack( charaindex, defindex, iWork, szBuffer, damage, react, &flg); - // 将 NORMAL 及 CRITICAL 的 flg 改成 职业的flg + // 灏 NORMAL 鍙 CRITICAL 鐨 flg 鏀规垚 鑱屼笟鐨刦lg if( img2 != 0 ){ if( flg == BCF_NORMAL || flg == BCF_KAISHIN ){ hit=1; - if( (pszP = strstr( pszOption, "前" ) ) != NULL ){ - flg |= BCF_F_SKILLACT; //击中前秀图 + if( (pszP = strstr( pszOption, "鍓" ) ) != NULL ){ + flg |= BCF_F_SKILLACT; //鍑讳腑鍓嶇鍥 }else{ - flg |= BCF_B_SKILLACT; //击中後秀图 + flg |= BCF_B_SKILLACT; //鍑讳腑寰岀鍥 } } } @@ -8907,7 +8907,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, if( (PROFESSION_BATTLE_StatusAttackCheck( charaindex, defindex, status, Success ) == 0 ) || (CHAR_getInt( defindex, CHAR_HP ) <= 0 ) ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)无法将(%s)做成(%s)(%d%%)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鏃犳硶灏(%s)鍋氭垚(%s)(%d%%)", // CHAR_getUseName( charaindex ), CHAR_getUseName( defindex ), aszStatusFull[status], perStatus ); //BATTLE_BroadCast( battleindex, szBuffer, @@ -8929,7 +8929,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)将(%s)做成(%s)(%d%%)", + // "(%s)灏(%s)鍋氭垚(%s)(%d%%)", // CHAR_getUseName( charaindex ), // CHAR_getUseName( defindex ), // aszStatusFull[status], @@ -8957,7 +8957,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, break; } - case BATTLE_COM_S_TOXIN_WEAPON: // 毒素武器 + case BATTLE_COM_S_TOXIN_WEAPON: // 姣掔礌姝﹀櫒 { int perStatus, status=-1, Success=-1; int defNo2 = CHAR_getWorkInt(charaindex,CHAR_WORKBATTLECOM2); @@ -8965,8 +8965,8 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, charaindex = BATTLE_No2Index( battleindex, attackNo ); if( CHAR_CHECKINDEX( charaindex ) == FALSE ) return iRet; - // 改变状态 - if( ((pszP = strstr( pszOption, "毒" ) ) != NULL ) ){ + // 鏀瑰彉鐘舵 + if( ((pszP = strstr( pszOption, "姣" ) ) != NULL ) ){ for( i = 1; i < BATTLE_ST_END; i ++ ){ if( strncmp( pszP, aszStatus[i], 2 ) == 0 ){ @@ -8976,8 +8976,8 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } } - // 成功率 - if( (pszP = strstr( pszOption, "成%" ) ) != NULL ) sscanf( pszP+3, "%d", &Success ); + // 鎴愬姛鐜 + if( (pszP = strstr( pszOption, "鎴%" ) ) != NULL ) sscanf( pszP+3, "%d", &Success ); Success += skill_level * 2; perStatus = Success; @@ -8998,7 +8998,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, memset( szCommand, -1, sizeof(szCommand) ); - // 有无变身 + // 鏈夋棤鍙樿韩 #ifdef _PETSKILL_BECOMEPIG if(CHAR_getWorkInt(charaindex, CHAR_WORKFOXROUND) > 0 || CHAR_getWorkInt(charaindex, CHAR_BECOMEPIG) > 0) bChange = TRUE; @@ -9006,7 +9006,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, if(CHAR_getWorkInt(charaindex, CHAR_WORKFOXROUND) > 0) bChange = TRUE; #endif if(!bChange){ - // 武器为远程武器 + // 姝﹀櫒涓鸿繙绋嬫鍣 if( gWeponType == ITEM_BOW ){ sprintf( szCommand, "BB|a%X|w0|", attackNo ); BATTLESTR_ADD( szCommand ); @@ -9038,16 +9038,16 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, //memset( szBuffer, 0, sizeof( szBuffer ) ); - defindex = BATTLE_No2Index( battleindex, ToList[i] ); //守方index + defindex = BATTLE_No2Index( battleindex, ToList[i] ); //瀹堟柟index if( CHAR_CHECKINDEX( defindex ) == FALSE ) continue; if( CHAR_getInt( defindex, CHAR_HP ) <= 0 ) continue; - if( (ReactType=BATTLE_GetDamageReact( defindex)) > 0 ){ //有光镜守 + if( (ReactType=BATTLE_GetDamageReact( defindex)) > 0 ){ //鏈夊厜闀滃畧 react = ReactType; skill_type=-1; } - //取得攻击後状态 + //鍙栧緱鏀诲嚮寰岀姸鎬 iWork = BATTLE_AttackSeq( charaindex, defindex, &damage, &Guardian, skill_type ); if(Guardian >= 0) defindex = BATTLE_No2Index( battleindex, Guardian ); @@ -9070,7 +9070,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, if( (PROFESSION_BATTLE_StatusAttackCheck( charaindex, defindex, status, perStatus ) == 0 ) || (CHAR_getInt( defindex, CHAR_HP ) <= 0 ) ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)无法将(%s)做成(%s)(%d%%)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鏃犳硶灏(%s)鍋氭垚(%s)(%d%%)", // CHAR_getUseName( charaindex ), CHAR_getUseName( defindex ), aszStatusFull[status], perStatus ); //BATTLE_BroadCast( battleindex, szBuffer, // (attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; @@ -9091,7 +9091,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)将(%s)做成(%s)(%d%%)", + // "(%s)灏(%s)鍋氭垚(%s)(%d%%)", // CHAR_getUseName( charaindex ), // CHAR_getUseName( defindex ), // aszStatusFull[status], @@ -9102,7 +9102,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, } } - // 武器为远程武器时 + // 姝﹀櫒涓鸿繙绋嬫鍣ㄦ椂 if(((gWeponType == ITEM_BOW) || (gWeponType == ITEM_BOUNDTHROW) @@ -9126,7 +9126,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, iRet = TRUE; } - // 武器为远程武器时 + // 姝﹀櫒涓鸿繙绋嬫鍣ㄦ椂 if((( gWeponType == ITEM_BOW ) || ( gWeponType == ITEM_BOUNDTHROW ) || ( gWeponType == ITEM_BREAKTHROW ) || ( gWeponType == ITEM_BOOMERANG )) && !bChange){ snprintf( szCommand, sizeof( szCommand ), "FF|" ); BATTLESTR_ADD( szCommand ); @@ -9136,7 +9136,7 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, break; } #ifdef _PROFESSION_ADDSKILL - case BATTLE_COM_S_BOUNDARY: // 四属性结界 + case BATTLE_COM_S_BOUNDARY: // 鍥涘睘鎬х粨鐣 { int ToList[SIDE_OFFSET*2+1],status=-1,power=20,toindex=-1,loop=1; int defNo2 = defNo;//CHAR_getWorkInt(charaindex,CHAR_WORKBATTLECOM2); @@ -9160,16 +9160,16 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, else if( skill_level > 20 ) power = 30; else power = 20; - if( ((pszP = strstr( pszOption, "地结界" ) ) != NULL ) ) + if( ((pszP = strstr( pszOption, "鍦扮粨鐣" ) ) != NULL ) ) status = CHAR_WORKFIXEARTHAT_BOUNDARY; - else if( ((pszP = strstr( pszOption, "水结界" ) ) != NULL ) ) + else if( ((pszP = strstr( pszOption, "姘寸粨鐣" ) ) != NULL ) ) status = CHAR_WORKFIXWATERAT_BOUNDARY; - else if( ((pszP = strstr( pszOption, "火结界" ) ) != NULL ) ) + else if( ((pszP = strstr( pszOption, "鐏粨鐣" ) ) != NULL ) ) status = CHAR_WORKFIXFIREAT_BOUNDARY; - else if( ((pszP = strstr( pszOption, "风结界" ) ) != NULL ) ){ + else if( ((pszP = strstr( pszOption, "椋庣粨鐣" ) ) != NULL ) ){ status = CHAR_WORKFIXWINDAT_BOUNDARY; } - else{//破结界 + else{//鐮寸粨鐣 status = CHAR_WORKFIXEARTHAT_BOUNDARY; if( skill_level >= 100 ) rand_boundary = 100; @@ -9186,14 +9186,14 @@ int battle_profession_status_chang_fun(int battleindex, int attackNo, int defNo, loop = 0; } - if( ((pszP = strstr( pszOption, "破结界" ) ) != NULL ) ){ + if( ((pszP = strstr( pszOption, "鐮寸粨鐣" ) ) != NULL ) ){ if( defNo2 < 10 )defNo2 = 20; else defNo2 = 21; } memset( ToList, -1, sizeof( ToList)); BATTLE_MultiList( battleindex, defNo2, ToList ); - if( ((pszP = strstr( pszOption, "破结界" ) ) == NULL ) ){//先把所有结界清除 + if( ((pszP = strstr( pszOption, "鐮寸粨鐣" ) ) == NULL ) ){//鍏堟妸鎵鏈夌粨鐣屾竻闄 for( j=CHAR_WORKFIXEARTHAT_BOUNDARY; j 0 ){ //有光镜守 + if( (ReactType=BATTLE_GetDamageReact( defindex)) > 0 ){ //鏈夊厜闀滃畧 react = ReactType; skill_type=-1; } @@ -9517,7 +9517,7 @@ int BATTLE_PROFESSION_RANG_ATTACK_DAMAGE( int charaindex, int attackNo, int defN if( img1 != 0 ){ if( (PROFESSION_BATTLE_StatusAttackCheck( charaindex, defindex, status, perStatus ) == 0 ) || (CHAR_getInt( defindex, CHAR_HP ) <= 0 ) ){ - //snprintf( szBuffer, sizeof(szBuffer), "(%s)无法将(%s)做成(%s)(%d%%)", + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鏃犳硶灏(%s)鍋氭垚(%s)(%d%%)", // CHAR_getUseName( charaindex ), CHAR_getUseName( defindex ), aszStatusFull[status], perStatus ); //BATTLE_BroadCast( battleindex, szBuffer,(attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; } @@ -9536,7 +9536,7 @@ int BATTLE_PROFESSION_RANG_ATTACK_DAMAGE( int charaindex, int attackNo, int defN ) CHAR_setWorkInt( defindex, CHAR_WORKBATTLECOM1, BATTLE_COM_NONE ); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)将(%s)做成(%s)(%d%%)", + // "(%s)灏(%s)鍋氭垚(%s)(%d%%)", // CHAR_getUseName( charaindex ), // CHAR_getUseName( defindex ), // aszStatusFull[status], @@ -9556,7 +9556,7 @@ int BATTLE_PROFESSION_RANG_ATTACK_DAMAGE( int charaindex, int attackNo, int defN #ifdef _PETSKILL_LER extern ToCallMagic PROFESSION_magic[3]; -// 雷尔技 - 群蝠四窜 +// 闆峰皵鎶 - 缇よ潬鍥涚獪 void BATTLE_BatFly( int battleindex, int attackNo,int myside) { int ToList[SIDE_OFFSET*2+1],i,toindex; @@ -9567,14 +9567,14 @@ void BATTLE_BatFly( int battleindex, int attackNo,int myside) if(CHAR_CHECKINDEX(charaindex) == FALSE) return; memset(ToList,-1,sizeof(ToList)); - if(myside) BATTLE_MultiList(battleindex,TARGET_SIDE_0,ToList); // 打右上 - else BATTLE_MultiList(battleindex,TARGET_SIDE_1,ToList); // 打左下 + if(myside) BATTLE_MultiList(battleindex,TARGET_SIDE_0,ToList); // 鎵撳彸涓 + else BATTLE_MultiList(battleindex,TARGET_SIDE_1,ToList); // 鎵撳乏涓 PROFESSION_magic[2].uiSpriteNum = myside ? 101806:101807; PROFESSION_magic[2].siSx = 320; PROFESSION_magic[2].siSy = 240; - PROFESSION_magic[2].uiPrevMagicNum = myside ? 101808:101809; // 前置动画 - PROFESSION_magic[2].uiPostMagicNum = 0xffffffff; // 无後置动画 + PROFESSION_magic[2].uiPrevMagicNum = myside ? 101808:101809; // 鍓嶇疆鍔ㄧ敾 + PROFESSION_magic[2].uiPostMagicNum = 0xffffffff; // 鏃犲緦缃姩鐢 PROFESSION_magic[2].uiShowType = 1; PROFESSION_magic[2].uiShowBehindChar = 1; PROFESSION_magic[2].siPrevMagicSx = 0; @@ -9588,14 +9588,14 @@ void BATTLE_BatFly( int battleindex, int attackNo,int myside) petidx = BATTLE_getRidePet(toindex); if(!CHAR_CHECKINDEX(toindex)) continue; charhp = CHAR_getInt(toindex,CHAR_HP); - // 没骑宠物 + // 娌¢獞瀹犵墿 if( -1 == petidx || CHAR_getInt(petidx,CHAR_HP) <= 0){ - // 剩下不到10滴血 + // 鍓╀笅涓嶅埌10婊磋 if((charhp/10) == 0){ CHAR_setInt(toindex,CHAR_HP,charhp - 1); charhp = 1; } - // 扣10%的HP + // 鎵10%鐨凥P else{ CHAR_setInt(toindex,CHAR_HP,charhp - (charhp/10)); charhp /= 10; @@ -9604,19 +9604,19 @@ void BATTLE_BatFly( int battleindex, int attackNo,int myside) sprintf(szCommand,"BD|r%X|%X|0|d%X|p0|",ToList[i],BD_KIND_HP,charhp); } else{ - // 剩下不到20滴血 + // 鍓╀笅涓嶅埌20婊磋 if((charhp/20) == 0){ CHAR_setInt(toindex,CHAR_HP,charhp - 1); charhp = 1; } - // 人和宠各扣5%HP + // 浜哄拰瀹犲悇鎵5%HP else{ CHAR_setInt(toindex,CHAR_HP,charhp - (charhp/20)); charhp /= 20; } addhp += charhp; pethp = CHAR_getInt(petidx,CHAR_HP); - // 剩下不到20滴血 + // 鍓╀笅涓嶅埌20婊磋 if((pethp/20) == 0){ CHAR_setInt(petidx,CHAR_HP,pethp - 1); pethp = 1; @@ -9644,7 +9644,7 @@ void BATTLE_BatFly( int battleindex, int attackNo,int myside) BATTLESTR_ADD(szCommand); } -// 雷尔技 - 分身地裂 +// 闆峰皵鎶 - 鍒嗚韩鍦拌 void BATTLE_DivideAttack( int battleindex, int attackNo,int myside) { int ToList[SIDE_OFFSET*2+1],i,toindex; @@ -9655,14 +9655,14 @@ void BATTLE_DivideAttack( int battleindex, int attackNo,int myside) if(CHAR_CHECKINDEX(charaindex) == FALSE) return; memset(ToList,-1,sizeof(ToList)); - if(myside) BATTLE_MultiList(battleindex,TARGET_SIDE_0,ToList); // 打左上 - else BATTLE_MultiList(battleindex,TARGET_SIDE_1,ToList); // 打右下 + if(myside) BATTLE_MultiList(battleindex,TARGET_SIDE_0,ToList); // 鎵撳乏涓 + else BATTLE_MultiList(battleindex,TARGET_SIDE_1,ToList); // 鎵撳彸涓 PROFESSION_magic[2].uiSpriteNum = myside ? 101798:101800; PROFESSION_magic[2].siSx = 320; PROFESSION_magic[2].siSy = 240; - PROFESSION_magic[2].uiPrevMagicNum = myside ? 101808:101809; // 前置动画 - PROFESSION_magic[2].uiPostMagicNum = 0xffffffff; // 无後置动画 + PROFESSION_magic[2].uiPrevMagicNum = myside ? 101808:101809; // 鍓嶇疆鍔ㄧ敾 + PROFESSION_magic[2].uiPostMagicNum = 0xffffffff; // 鏃犲緦缃姩鐢 PROFESSION_magic[2].uiShowType = 1; PROFESSION_magic[2].uiShowBehindChar = 0; PROFESSION_magic[2].siPrevMagicSx = 0; @@ -9671,14 +9671,14 @@ void BATTLE_DivideAttack( int battleindex, int attackNo,int myside) sprintf(szCommand,"%X|",0x5711438); BATTLESTR_ADD(szCommand); - // 先完成扣MP的动作 + // 鍏堝畬鎴愭墸MP鐨勫姩浣 for(i=0;i>1)); charmp >>= 1; sprintf(szCommand,"BD|r%X|%X|0|d%X|",ToList[i],BD_KIND_MP,charmp); @@ -9691,9 +9691,9 @@ void BATTLE_DivideAttack( int battleindex, int attackNo,int myside) if(!CHAR_CHECKINDEX(toindex)) continue; charhp = CHAR_getInt(toindex,CHAR_HP); - // 没骑宠物 + // 娌¢獞瀹犵墿 if( -1 == petidx || CHAR_getInt(petidx,CHAR_HP) <= 0){ - // 扣20%HP + // 鎵20%HP if((charhp/5) == 0){ CHAR_setInt(toindex,CHAR_HP,charhp - 1); charhp = 1; @@ -9705,7 +9705,7 @@ void BATTLE_DivideAttack( int battleindex, int attackNo,int myside) sprintf(szCommand,"BD|r%X|%X|0|d%X|p0|",ToList[i],BD_KIND_HP,charhp); } else{ - // 人和宠各扣10%HP + // 浜哄拰瀹犲悇鎵10%HP if((charhp/10) == 0){ CHAR_setInt(toindex,CHAR_HP,charhp - 1); charhp = 1; @@ -9734,7 +9734,7 @@ void BATTLE_DivideAttack( int battleindex, int attackNo,int myside) } } -// 雷尔死亡,变身 +// 闆峰皵姝讳骸,鍙樿韩 void BATTLE_LerChange(int battleindex,int charaindex,int no) { int array = -1,newindex = -1; @@ -9766,11 +9766,11 @@ void BATTLE_LerChange(int battleindex,int charaindex,int no) #ifdef _PETSKILL_BATTLE_MODEL typedef struct _tsAttackObject{ - int index; // 攻击物件编号 - int target; // 目标编号 - int actionNumber; // 攻击物件图号 + int index; // 鏀诲嚮鐗╀欢缂栧彿 + int target; // 鐩爣缂栧彿 + int actionNumber; // 鏀诲嚮鐗╀欢鍥惧彿 }AttackObject; -// BATTLE_BattleModel 用的攻击函式 +// BATTLE_BattleModel 鐢ㄧ殑鏀诲嚮鍑藉紡 void BATTLE_BattleModel_ATTACK( int battleindex, int charaindex, @@ -9783,48 +9783,48 @@ void BATTLE_BattleModel_ATTACK( int i,iDefindex,iPetindex,iToindex,iDamage,iPetDamage,iGuardian = -1,iDefState,iUltimate = 0,iTemp = 0,iTemp2 = 0,iFlg = 0; char szCommand[1024]; - // 检查目标存不存在或有没有死亡 + // 妫鏌ョ洰鏍囧瓨涓嶅瓨鍦ㄦ垨鏈夋病鏈夋浜 if(!BATTLE_TargetCheck(battleindex,pAAttackObject->target)) return; iToindex = iDefindex = BATTLE_No2Index(battleindex,pAAttackObject->target); - // 若是宠物,检查主人在不在场上 + // 鑻ユ槸瀹犵墿,妫鏌ヤ富浜哄湪涓嶅湪鍦轰笂 if(CHAR_getInt(iToindex,CHAR_WHICHTYPE ) == CHAR_TYPEPET){ if(pAAttackObject->target + 5 >= SIDE_OFFSET) iFlg = 1; i = pAAttackObject->target + 5 - iFlg * SIDE_OFFSET; if(BattleArray[battleindex].Side[iFlg].Entry[i].flg & BENT_FLG_ULTIMATE) return; } iPetindex = BATTLE_getRidePet(iToindex); - // 计算伤害 + // 璁$畻浼ゅ iDefState = BATTLE_AttackSeq(charaindex,iToindex,&iDamage,&iGuardian,-1); - // iType & 0x00000004 为 true 表示为物理攻击 + // iType & 0x00000004 涓 true 琛ㄧず涓虹墿鐞嗘敾鍑 if(iType & 0x00000004){ - // 若忠犬没死亡,设定忠犬 + // 鑻ュ繝鐘病姝讳骸,璁惧畾蹇犵姮 if(BATTLE_TargetCheck(battleindex,iGuardian)){ - // 若有忠犬,把被攻击者设定为使用忠犬技能的角色,否则被攻击者为原目标 + // 鑻ユ湁蹇犵姮,鎶婅鏀诲嚮鑰呰瀹氫负浣跨敤蹇犵姮鎶鑳界殑瑙掕壊,鍚﹀垯琚敾鍑昏呬负鍘熺洰鏍 if(iGuardian >= 0) iDefindex = BATTLE_No2Index(battleindex,iGuardian); } else iGuardian = -1; } - // 设定 CHAR_NPCWORKINT1 为 BATTLE_COM_S_BATTLE_MODEL 在 BATTLE_DamageSub 会用到 + // 璁惧畾 CHAR_NPCWORKINT1 涓 BATTLE_COM_S_BATTLE_MODEL 鍦 BATTLE_DamageSub 浼氱敤鍒 iTemp2 = CHAR_getWorkInt(iDefindex,CHAR_NPCWORKINT1); CHAR_setWorkInt(iDefindex,CHAR_NPCWORKINT1,BATTLE_COM_S_BATTLE_MODEL); - // 在这之後的 iDefindex 才是真正会受伤的目标 + // 鍦ㄨ繖涔嬪緦鐨 iDefindex 鎵嶆槸鐪熸浼氬彈浼ょ殑鐩爣 if(gDamageDiv != 0.0 && iDamage > 0){ iDamage /= gDamageDiv; if(iDamage <= 0) iDamage = 1; } - // 若没有下列任一项,进行扣血 + // 鑻ユ病鏈変笅鍒椾换涓椤,杩涜鎵h if(!(iDefState == BATTLE_RET_DODGE)){ - // 扣血 - // 物理攻击 + // 鎵h + // 鐗╃悊鏀诲嚮 if(iType & 0x00000004) iUltimate = BATTLE_DamageSub(charaindex,iDefindex,&iDamage,&iPetDamage,&iTemp); - // 非物理攻击 + // 闈炵墿鐞嗘敾鍑 else{ iTemp = -1; iUltimate = BATTLE_DamageSub(charaindex,iDefindex,&iDamage,&iPetDamage,&iTemp); } } iFlg = 0; - // 回传状态检查 + // 鍥炰紶鐘舵佹鏌 switch(iDefState){ case BATTLE_RET_ALLGUARD:iFlg |= BCF_GUARD;break; case BATTLE_RET_MISS:iDamage = 0;break; @@ -9842,17 +9842,17 @@ void BATTLE_BattleModel_ATTACK( #endif } - //昏睡时,在这里解除状态(也有其它的状态) + //鏄忕潯鏃,鍦ㄨ繖閲岃В闄ょ姸鎬(涔熸湁鍏跺畠鐨勭姸鎬) if(iDamage > 0 && (iTemp != BATTLE_MD_ABSROB) && (iTemp != BATTLE_MD_VANISH)) BATTLE_DamageWakeUp(battleindex,iDefindex); - // 目标是否死亡 + // 鐩爣鏄惁姝讳骸 if(CHAR_getInt(iDefindex,CHAR_HP) <= 0){ if(CHAR_getWorkInt(iDefindex,CHAR_WORKBATTLEFLG ) & CHAR_BATTLEFLG_ABIO) iUltimate = 1; else if(CHAR_getInt(iDefindex,CHAR_WHICHTYPE) != CHAR_TYPEPLAYER && (iFlg & BCF_KAISHIN)){ if(RAND(1,100) < 50) iUltimate = 1; } #ifdef _PETSKILL_LER - // 雷尔不能被打飞 + // 闆峰皵涓嶈兘琚墦椋 if(CHAR_getInt(iDefindex,CHAR_BASEBASEIMAGENUMBER) == 101813 || CHAR_getInt(iDefindex,CHAR_BASEBASEIMAGENUMBER) == 101814) iUltimate = 0; #endif @@ -9867,16 +9867,16 @@ void BATTLE_BattleModel_ATTACK( if(BATTLE_ItemCrushSeq(iDefindex) == TRUE) #endif iFlg |= BCF_CRUSH; - // 状态命中判定 + // 鐘舵佸懡涓垽瀹 if(iDamage > 0 && BATTLE_StatusAttackCheck(charaindex,iDefindex,iEffect,iEffectHit,30,1.0,&iTemp)){ CHAR_setWorkInt(iDefindex,StatusTbl[iEffect],iTurn); if(iEffect == BATTLE_ST_DRUNK) CHAR_setWorkInt(iDefindex,CHAR_WORKDRUNK,CHAR_getWorkInt(iDefindex,CHAR_WORKDRUNK) >> 1); - // 中以下状态的目标该回合之後不能行动 + // 涓互涓嬬姸鎬佺殑鐩爣璇ュ洖鍚堜箣寰屼笉鑳借鍔 if(iEffect == BATTLE_ST_PARALYSIS || iEffect == BATTLE_ST_SLEEP || iEffect == BATTLE_ST_STONE || iEffect == BATTLE_ST_BARRIER) CHAR_setWorkInt(iDefindex,CHAR_WORKBATTLECOM1,BATTLE_COM_NONE); - // 回传client那一个目标要执行状态改变 - if(iGuardian >= 0) BATTLE_BadStatusString(iGuardian,iEffect); // iGuardian 大於等於 0 表示有目标使用了忠犬,该目标状态改变 - else BATTLE_BadStatusString(pAAttackObject->target,iEffect); // 否则原目标状态改变 + // 鍥炰紶client閭d竴涓洰鏍囪鎵ц鐘舵佹敼鍙 + if(iGuardian >= 0) BATTLE_BadStatusString(iGuardian,iEffect); // iGuardian 澶ф柤绛夋柤 0 琛ㄧず鏈夌洰鏍囦娇鐢ㄤ簡蹇犵姮,璇ョ洰鏍囩姸鎬佹敼鍙 + else BATTLE_BadStatusString(pAAttackObject->target,iEffect); // 鍚﹀垯鍘熺洰鏍囩姸鎬佹敼鍙 } } @@ -9901,12 +9901,12 @@ void BATTLE_BattleModel_ATTACK( iPetDamage, pAAttackObject->actionNumber); - // 把命令送入传给client的buffer + // 鎶婂懡浠ら佸叆浼犵粰client鐨刡uffer BATTLESTR_ADD(szCommand); iTemp = BATTLE_Index2No(battleindex,iDefindex); - // iFlg 已没作用,拿来作别的用途 + // iFlg 宸叉病浣滅敤,鎷挎潵浣滃埆鐨勭敤閫 iFlg = 0; if(iTemp >= SIDE_OFFSET) iFlg = 1; @@ -9933,7 +9933,7 @@ void BATTLE_BattleModel(int battleindex,int attackNo,int myside) return; } - // 取得效果 + // 鍙栧緱鏁堟灉 if(getStringFromIndexWithDelim(pszOption,"|",3,szData,sizeof(szData)) != FALSE){ for(i=1;i= iActionAmount) i1 = 0; } - // 检查场上目标剩几只 + // 妫鏌ュ満涓婄洰鏍囧墿鍑犲彧 for(i=0;i= i){ - i0 = i; // 记录场上目标只数 + i0 = i; // 璁板綍鍦轰笂鐩爣鍙暟 for(i=0;istatus:%d",status); - // 躲绊卅中及匹撩 + // 鍔规灉銇亜銇仹澶辨晽 if( status == -1 ) return; - // 田玄伙 寞 + // 銉愩儓銉暘鍙 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); - index2 = BATTLE_No2Index( battleindex, toindex);//被击中目标之index + index2 = BATTLE_No2Index( battleindex, toindex);//琚嚮涓洰鏍囦箣index attackNo = BATTLE_Index2No( battleindex, charaindex ); // defNo = BATTLE_Index2No( battleindex, index2 ); //print("\nvincent-->charaindex:%d,attackNo:%d,index2:%d,defNo:%d,",charaindex,attackNo,index2,defNo); - /* 平乓仿弁正□及赭 伉旦玄井日壅蛔 */ + /* 銈儯銉┿偗銈裤兗銇墍鎸佸搧銉偣銉堛亱銈夋秷鍘 */ CHAR_setItemIndex(charaindex, haveitemindex ,-1); - CHAR_sendItemDataOne( charaindex, haveitemindex);/* 失奶 丞凳蕙 */ + CHAR_sendItemDataOne( charaindex, haveitemindex);/* 銈€偆銉嗐儬鏇存柊 */ // if( CHAR_getWorkInt( charaindex, StatusTbl[status] ) > 0 ){ // ReceveEffect = SPR_tyusya; // }else{ // ReceveEffect = SPR_hoshi; // } - ReceveEffect = SPR_tyusya;//打针 + ReceveEffect = SPR_tyusya;//鎵撻拡 BATTLE_MultiStatusRecovery( battleindex, attackNo, toindex, status, MAGIC_EFFECT_USER, ReceveEffect ); - /* 壅允 */ + /* 娑堛仚 */ ITEM_endExistItemsOne( itemindex ); ////////////////////////// // BATTLE_MultiList( battleindex, defNo, ToList ); @@ -823,7 +823,7 @@ void ITEM_useRefresh_Effect( charaindex, toindex, haveitemindex) //////////////////////////// } #endif -#ifdef _ITEM_ADDEXP //vincent 经验提升 +#ifdef _ITEM_ADDEXP //vincent 缁忛獙鎻愬崌 void ITEM_useAddexp_Effect( charaindex, toindex, haveitemindex) { int itemindex,power,vtime; @@ -833,14 +833,14 @@ void ITEM_useAddexp_Effect( charaindex, toindex, haveitemindex) itemindex = CHAR_getItemIndex(charaindex,haveitemindex); - // 检查物品 + // 妫鏌ョ墿鍝 if(!ITEM_CHECKINDEX(itemindex)) return; arg = ITEM_getChar(itemindex, ITEM_ARGUMENT ); - if( (p = strstr( arg, "增" )) != NULL ){ + if( (p = strstr( arg, "澧" )) != NULL ){ sscanf( p+2, "%d", &power ); } - if( (p = strstr( arg, "分" )) != NULL ){ + if( (p = strstr( arg, "鍒" )) != NULL ){ sscanf( p+2, "%d", &vtime ); } if( p == NULL )return; @@ -850,12 +850,12 @@ void ITEM_useAddexp_Effect( charaindex, toindex, haveitemindex) 0 != (int)(CHAR_getInt( charaindex, CHAR_ADDEXPPOWER)) ) { - CHAR_talkToCli( charaindex, -1, "经验增加的效果不同,无法叠加使用", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "缁忛獙澧炲姞鐨勬晥鏋滀笉鍚,鏃犳硶鍙犲姞浣跨敤", CHAR_COLORYELLOW); return; } } #endif -#ifdef _ITEM_ADDEXP2 // 智果时间可以累加 +#ifdef _ITEM_ADDEXP2 // 鏅烘灉鏃堕棿鍙互绱姞 { int point; point = CHAR_getInt( charaindex, CHAR_ADDEXPPOWER) @@ -865,7 +865,7 @@ void ITEM_useAddexp_Effect( charaindex, toindex, haveitemindex) #else if( point >= 7200000) { #endif - CHAR_talkToCli( charaindex, -1, "智慧之果累计时间及效果已达上限。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鏅烘収涔嬫灉绱鏃堕棿鍙婃晥鏋滃凡杈句笂闄愩", CHAR_COLORYELLOW); return; } @@ -891,14 +891,14 @@ void ITEM_useAddexp_Effect( charaindex, toindex, haveitemindex) CHAR_setInt( charaindex, CHAR_ADDEXPPOWER, power); CHAR_setInt( charaindex, CHAR_ADDEXPTIME,vtime*60 ); - //清除道具 + //娓呴櫎閬撳叿 BATTLE_ItemUseDelete(charaindex,haveitemindex); - //sprintf(szBuffer, "学习经验的能力提升了%d%", power); - sprintf(szBuffer, "学习经验的能力提升了%d%,时效剩余%d分钟。", power, vtime); + //sprintf(szBuffer, "瀛︿範缁忛獙鐨勮兘鍔涙彁鍗囦簡%d锛", power); + sprintf(szBuffer, "瀛︿範缁忛獙鐨勮兘鍔涙彁鍗囦簡%d锛咃紝鏃舵晥鍓╀綑%d鍒嗛挓銆", power, vtime); CHAR_talkToCli(charaindex,-1,szBuffer,CHAR_COLORYELLOW); //int mfd=getfdFromCharaIndex( charaindex); CHAR_charSaveFromConnect(charaindex, FALSE); - CHAR_talkToCli(charaindex, -1, "系统为你自动存档!", CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "绯荤粺涓轰綘鑷姩瀛樻。锛", CHAR_COLORRED); } #endif //Terry add 2001/12/24 @@ -918,7 +918,7 @@ void ITEM_useFirecracker_Battle( charaindex, toindex, haveitemindex) #endif itemindex = CHAR_getItemIndex(charaindex,haveitemindex); - // 检查物品 + // 妫鏌ョ墿鍝 if(!ITEM_CHECKINDEX(itemindex)) return; battleindex = CHAR_getWorkInt(charaindex,CHAR_WORKBATTLEINDEX); @@ -935,24 +935,24 @@ void ITEM_useFirecracker_Battle( charaindex, toindex, haveitemindex) MySide_start = safeSide*SIDE_OFFSET; MySide_end = ((safeSide*SIDE_OFFSET) + SIDE_OFFSET); - if( (toindex >= MySide_start) && (toindex= MySide_start) && (toindex= 901 && CHAR_getInt(index2,CHAR_PETID) <= 904){ - // 取得目标的正後方的角色的index + // 鍙栧緱鐩爣鐨勬寰屾柟鐨勮鑹茬殑index masteridx = BATTLE_No2Index(battleindex,toindex-5); - // 如果对战的是玩家 + // 濡傛灉瀵规垬鐨勬槸鐜╁ if(CHAR_getInt(masteridx,CHAR_WHICHTYPE) == CHAR_TYPEPLAYER) PetEscape = 1; - else print("\n年兽在遇敌时出现"); + else print("\n骞村吔鍦ㄩ亣鏁屾椂鍑虹幇"); } } - // 如果不是炸自己 + // 濡傛灉涓嶆槸鐐歌嚜宸 if(BATTLE_Index2No(battleindex,charaindex) != toindex) { sprintf(szWork,"BB|a%X|w3|r%X|f0|d0|p0|FF|",BATTLE_Index2No(battleindex,charaindex),toindex); @@ -1021,13 +1021,13 @@ void ITEM_useFirecracker_Battle( charaindex, toindex, haveitemindex) CHAR_setInt(masteridx,CHAR_DEFAULTPET,-1); sprintf(szWork,"BQ|e%X|",toindex); BATTLESTR_ADD(szWork); - CHAR_talkToCli(masteridx,-1,"年兽被吓跑了!",CHAR_COLORWHITE); - CHAR_talkToCli(charaindex,-1,"年兽被吓跑了!",CHAR_COLORWHITE); + CHAR_talkToCli(masteridx,-1,"骞村吔琚悡璺戜簡锛",CHAR_COLORWHITE); + CHAR_talkToCli(charaindex,-1,"骞村吔琚悡璺戜簡锛",CHAR_COLORWHITE); } } - CHAR_talkToCli(charaindex,-1,"什麽事都没发生。",CHAR_COLORWHITE); - CHAR_talkToCli(charaindex,-1,"道具消失了。",CHAR_COLORWHITE); - // 使用後道具消失 + CHAR_talkToCli(charaindex,-1,"浠楹戒簨閮芥病鍙戠敓銆",CHAR_COLORWHITE); + CHAR_talkToCli(charaindex,-1,"閬撳叿娑堝け浜嗐",CHAR_COLORWHITE); + // 浣跨敤寰岄亾鍏锋秷澶 BATTLE_ItemUseDelete(charaindex,haveitemindex); #endif } @@ -1038,9 +1038,9 @@ void ITEM_useFirecracker_Battle( charaindex, toindex, haveitemindex) -//气绝状态回复耐力,复加复活(光,镜,守)精灵 参数同魔法(光,镜,守)精灵,但只能在战斗之使用,用完就没了 -//参数 例如:耐力值 吸 turn 1 -#ifdef _FEV_ADD_NEW_ITEM // FEV ADD 增加复活守精 +//姘旂粷鐘舵佸洖澶嶈愬姏,澶嶅姞澶嶆椿(鍏,闀,瀹)绮剧伒 鍙傛暟鍚岄瓟娉(鍏,闀,瀹)绮剧伒,浣嗗彧鑳藉湪鎴樻枟涔嬩娇鐢,鐢ㄥ畬灏辨病浜 +//鍙傛暟 渚嬪:鑰愬姏鍊 鍚 turn 1 +#ifdef _FEV_ADD_NEW_ITEM // FEV ADD 澧炲姞澶嶆椿瀹堢簿 void ITEM_ResAndDef( int charaindex, int toindex, int haveitemindex ) { int itemindex, battleindex, attackNo, par = 0, pow = 0, ReceveEffect; @@ -1051,37 +1051,37 @@ void ITEM_ResAndDef( int charaindex, int toindex, int haveitemindex ) char magicarg4[200]; char *pszP = NULL; - char delim[] = " ";//协助分解字串的区隔字元 + char delim[] = " ";//鍗忓姪鍒嗚В瀛椾覆鐨勫尯闅斿瓧鍏 int status = -1, i, turn = 3; char szTurn[] = "turn"; - // 失奶 丞互丐月井升丹井 + // 銈€偆銉嗐儬銇屻亗銈嬨亱銇┿亞銇 itemindex = CHAR_getItemIndex( charaindex, haveitemindex); if(!ITEM_CHECKINDEX(itemindex)) return; - buffer = ITEM_getChar(itemindex, ITEM_ARGUMENT );//整串字串 - pszP = strtok(buffer, delim);//第一个参数 - magicarg = strtok(NULL, delim);//第二个参数 - magicarg2 = strtok(NULL, delim);//第叁个参数 - magicarg3 = strtok(NULL, delim);//第四个参数 + buffer = ITEM_getChar(itemindex, ITEM_ARGUMENT );//鏁翠覆瀛椾覆 + pszP = strtok(buffer, delim);//绗竴涓弬鏁 + magicarg = strtok(NULL, delim);//绗簩涓弬鏁 + magicarg2 = strtok(NULL, delim);//绗弫涓弬鏁 + magicarg3 = strtok(NULL, delim);//绗洓涓弬鏁 sprintf(magicarg4,"%s %s %s",magicarg,magicarg2,magicarg3); magicarg = (char*)magicarg4; - //光镜守..不得使用敌方 + //鍏夐暅瀹..涓嶅緱浣跨敤鏁屾柟 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER //&& BattleArray[battleindex].type != BATTLE_TYPE_P_vs_P ){ - if( BATTLE_CheckSameSide( charaindex, toindex) == 0 ){//不同边 + if( BATTLE_CheckSameSide( charaindex, toindex) == 0 ){//涓嶅悓杈 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); BATTLE_NoAction( battleindex, BATTLE_Index2No( battleindex, charaindex) ); - CHAR_talkToCli( charaindex, -1, "光镜守..不得施予非玩家敌方。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍏夐暅瀹..涓嶅緱鏂戒簣闈炵帺瀹舵晫鏂广", CHAR_COLORYELLOW); return; } } - //在气绝状态回复耐力 + //鍦ㄦ皵缁濈姸鎬佸洖澶嶈愬姏 if( strstr( pszP, "%" ) ){ par = 1; } @@ -1092,7 +1092,7 @@ void ITEM_ResAndDef( int charaindex, int toindex, int haveitemindex ) attackNo = BATTLE_Index2No( battleindex, charaindex ); - //选择代表的特效 + //閫夋嫨浠h〃鐨勭壒鏁 if( pow <= 0 ){ ReceveEffect = SPR_fukkatu3; }else @@ -1109,12 +1109,12 @@ void ITEM_ResAndDef( int charaindex, int toindex, int haveitemindex ) pow, par, SPR_item3, ReceveEffect ); - //(光,镜,守)精灵 + //(鍏,闀,瀹)绮剧伒 - // 躲绊毛潸 + // 鍔规灉銈掑彇寰 for( ;status == -1 && magicarg[0] != 0; magicarg++ ){ for( i = 1; i < BATTLE_MD_END; i ++ ){ - // 躲绊疋永正伉井" + // 鍔规灉銉斻儍銈裤儶銇嬶紵 if( strncmp( magicarg, aszMagicDef[i], 2 ) == 0 ){ status = i; pszP +=2; @@ -1122,22 +1122,22 @@ void ITEM_ResAndDef( int charaindex, int toindex, int haveitemindex ) } } } - // 躲绊卅中及匹撩 + // 鍔规灉銇亜銇仹澶辨晽 if( status == -1 ) return; - // 窒荚 凳今六月井" + // 浣曞洖澶夋洿銇曘仜銈嬨亱锛 if( ( magicarg = strstr( magicarg, szTurn ) ) != NULL){ magicarg += sizeof( szTurn ); sscanf( magicarg, "%d", &turn ); } - //print("次数:%d",turn); + //print("娆℃暟:%d",turn); - // 田玄伙 寞 + // 銉愩儓銉暘鍙 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); - // 蝈够 + // 鍏ㄥ摗 BATTLE_MultiMagicDef( battleindex, attackNo, toindex, status, turn, MAGIC_EFFECT_USER, SPR_difence ); diff --git a/battle/battle_magic.c b/battle/battle_magic.c index 19de874..4e02c72 100644 --- a/battle/battle_magic.c +++ b/battle/battle_magic.c @@ -11,7 +11,7 @@ #include"common.h" #include"lssproto_serv.h" -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 #include "profession_skill.h" #include "skill.h" #endif @@ -37,26 +37,26 @@ void Magic_ComputeDefExp( int charindex, int Mnum, int MagicLv, int Damage); /* typedef struct tagToCallMagic { - unsigned int uiSpriteNum; // 此咒术在Spr_x.bin的编号 - unsigned int uiAttackType; // 攻击的方式:单人,整排( 轮流 ) , 整排( 轮流 ) , 整排( 同时 ) , 全体( 轮流 ) , 全体( 同时 ) - unsigned int uiSliceTime; // 轮流攻击时的时间差 - unsigned int uiShowType; // 显示的位置方式:中央、指定 - int siSx; // 显示的位置 - X轴 - int siSy; // 显示的位置 - Y轴 - unsigned int uiShowBehindChar; // 显示在人物的前方或下方 - unsigned int uiShakeScreen; // 是否震动画面 - unsigned int uiShakeFrom; // 震动画面的起始时间( 毫秒 ) - unsigned int uiShakeTo; // 震动画面的结束时间( 毫秒 _ - unsigned int uiPrevMagicNum; // 前置咒术的索引号( 0XFFFFFFFFFF 表示无前置咒术 ) - int siPrevMagicSx; // 前置咒术的显示位置 - X轴 - int siPrevMagicSy; // 前置咒术的显示位置 - Y轴 - int siPrevMagicOnChar; // 前置咒术显示在人物的前方或下方 - unsigned int uiPostMagicNum; // 後置咒术的索引号( 0XFFFFFFFF 表示无後置咒术 ) - int siPostMagicSx; // 後置咒术的显示位置 - X轴 - int siPostMagicSy; // 後置咒术的显示位置 - Y轴 - int siPostMagicOnChar; // 後置咒术显示在人物的前方或下方 - int isPostDisappear; // 咒术一般攻击完时是否马上消失 - int ToCallMagicNo; // 召唤术的编号 + unsigned int uiSpriteNum; // 姝ゅ拻鏈湪Spr_x.bin鐨勭紪鍙 + unsigned int uiAttackType; // 鏀诲嚮鐨勬柟寮忥細鍗曚汉锛屾暣鎺( 杞祦 ) , 鏁存帓( 杞祦 ) , 鏁存帓( 鍚屾椂 ) , 鍏ㄤ綋( 杞祦 ) , 鍏ㄤ綋( 鍚屾椂 ) + unsigned int uiSliceTime; // 杞祦鏀诲嚮鏃剁殑鏃堕棿宸 + unsigned int uiShowType; // 鏄剧ず鐨勪綅缃柟寮忥細涓ぎ銆佹寚瀹 + int siSx; // 鏄剧ず鐨勪綅缃 - X杞 + int siSy; // 鏄剧ず鐨勪綅缃 - Y杞 + unsigned int uiShowBehindChar; // 鏄剧ず鍦ㄤ汉鐗╃殑鍓嶆柟鎴栦笅鏂 + unsigned int uiShakeScreen; // 鏄惁闇囧姩鐢婚潰 + unsigned int uiShakeFrom; // 闇囧姩鐢婚潰鐨勮捣濮嬫椂闂( 姣 ) + unsigned int uiShakeTo; // 闇囧姩鐢婚潰鐨勭粨鏉熸椂闂( 姣 _ + unsigned int uiPrevMagicNum; // 鍓嶇疆鍜掓湳鐨勭储寮曞彿( 0XFFFFFFFFFF 琛ㄧず鏃犲墠缃拻鏈 ) + int siPrevMagicSx; // 鍓嶇疆鍜掓湳鐨勬樉绀轰綅缃 - X杞 + int siPrevMagicSy; // 鍓嶇疆鍜掓湳鐨勬樉绀轰綅缃 - Y杞 + int siPrevMagicOnChar; // 鍓嶇疆鍜掓湳鏄剧ず鍦ㄤ汉鐗╃殑鍓嶆柟鎴栦笅鏂 + unsigned int uiPostMagicNum; // 寰岀疆鍜掓湳鐨勭储寮曞彿( 0XFFFFFFFF 琛ㄧず鏃犲緦缃拻鏈 ) + int siPostMagicSx; // 寰岀疆鍜掓湳鐨勬樉绀轰綅缃 - X杞 + int siPostMagicSy; // 寰岀疆鍜掓湳鐨勬樉绀轰綅缃 - Y杞 + int siPostMagicOnChar; // 寰岀疆鍜掓湳鏄剧ず鍦ㄤ汉鐗╃殑鍓嶆柟鎴栦笅鏂 + int isPostDisappear; // 鍜掓湳涓鑸敾鍑诲畬鏃舵槸鍚﹂┈涓婃秷澶 + int ToCallMagicNo; // 鍙敜鏈殑缂栧彿 }ToCallMagic; */ @@ -67,7 +67,7 @@ ToCallMagic TOCALL_magic[3] = { {100354,0,0,0,50,25,1,0,0,0,101120,65528,65485,0 #endif -// 魔法熟练度及抗性升级所需经验值 +// 榄旀硶鐔熺粌搴﹀強鎶楁у崌绾ф墍闇缁忛獙鍊 int Magic_Level_Table[101] = { 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, //lv 1~10 @@ -246,7 +246,7 @@ void BATTLE_ImprecateRecovery( case BD_KIND_CURSE: if( CHAR_getWorkInt( toindex, CHAR_WORKIMPRECATENUM1 ) <= 0 && CHAR_getInt( toindex, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER ) { - CHAR_setWorkInt( toindex, CHAR_WORKHURTMP, powers); //伤害 MP + CHAR_setWorkInt( toindex, CHAR_WORKHURTMP, powers); //浼ゅ MP CHAR_setWorkInt( toindex, CHAR_WORKIMPRECATENUM1, rounds); } break; @@ -255,14 +255,14 @@ void BATTLE_ImprecateRecovery( #ifdef _TYPE_TOXICATION if( CHAR_CanCureFlg( toindex, "HP") == FALSE ) break; #endif - CHAR_setWorkInt( toindex, CHAR_WORKWISHESHP, powers); //祝福 hp + CHAR_setWorkInt( toindex, CHAR_WORKWISHESHP, powers); //绁濈 hp CHAR_setWorkInt( toindex, CHAR_WORKIMPRECATENUM2, rounds); } break; case BD_KIND_WISHES: if( CHAR_getWorkInt( toindex, CHAR_WORKIMPRECATENUM3 ) <= 0 && CHAR_getInt( toindex, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER ) { - CHAR_setWorkInt( toindex, CHAR_WORKWISHESMP, powers); //祝福 MP + CHAR_setWorkInt( toindex, CHAR_WORKWISHESMP, powers); //绁濈 MP CHAR_setWorkInt( toindex, CHAR_WORKIMPRECATENUM3, rounds); } break; @@ -324,7 +324,7 @@ void BATTLE_MultiRecovery( CHAR_complianceParameter( toindex ); CHAR_sendCToArroundCharacter( CHAR_getWorkInt( toindex , CHAR_WORKOBJINDEX )); CHAR_send_P_StatusString( toindex , CHAR_P_STRING_BASEBASEIMAGENUMBER); - CHAR_talkToCli( toindex,-1,"乌力化失效了。",CHAR_COLORWHITE); + CHAR_talkToCli( toindex,-1,"涔屽姏鍖栧け鏁堜簡銆",CHAR_COLORWHITE); } break; #endif @@ -333,8 +333,8 @@ void BATTLE_MultiRecovery( { if (CHAR_getInt(toindex, CHAR_WHICHTYPE)!=CHAR_TYPEPLAYER) return; - //print("地水火风:%d %d %d %d", CHAR_getInt( toindex, CHAR_EARTHAT ), CHAR_getInt( toindex, CHAR_WATERAT ), CHAR_getInt( toindex, CHAR_FIREAT ), CHAR_getInt( toindex, CHAR_WINDAT ) ); - if( power == 1 ){//旋转属性 正转 + //print("鍦版按鐏:%d %d %d %d", CHAR_getInt( toindex, CHAR_EARTHAT ), CHAR_getInt( toindex, CHAR_WATERAT ), CHAR_getInt( toindex, CHAR_FIREAT ), CHAR_getInt( toindex, CHAR_WINDAT ) ); + if( power == 1 ){//鏃嬭浆灞炴 姝h浆 if( CHAR_getInt( toindex, CHAR_EARTHAT ) == 100 ) CHAR_setInt( toindex, CHAR_EARTHAT, CHAR_getInt( toindex, CHAR_EARTHAT )-10 ), CHAR_setInt( toindex, CHAR_WATERAT, CHAR_getInt( toindex, CHAR_WATERAT )+10 ); @@ -360,7 +360,7 @@ void BATTLE_MultiRecovery( CHAR_setInt( toindex, CHAR_WINDAT, CHAR_getInt( toindex, CHAR_WINDAT )-10 ), CHAR_setInt( toindex, CHAR_EARTHAT, CHAR_getInt( toindex, CHAR_EARTHAT )+10 ); } - if( power == 2 ){//旋转属性 反转 + if( power == 2 ){//鏃嬭浆灞炴 鍙嶈浆 if( CHAR_getInt( toindex, CHAR_EARTHAT ) == 100 ) CHAR_setInt( toindex, CHAR_EARTHAT, CHAR_getInt( toindex, CHAR_EARTHAT )-10 ), CHAR_setInt( toindex, CHAR_WINDAT, CHAR_getInt( toindex, CHAR_WINDAT )+10 ); @@ -408,7 +408,7 @@ void BATTLE_MultiRecovery( CHAR_setInt( toindex, CHAR_HP, min( workhp, CHAR_getWorkInt( toindex, CHAR_WORKMAXHP ) ) ); - //snprintf( szBuffer, sizeof(szBuffer), "(%s)的耐久力回复(%d)", CHAR_getUseName( toindex ), UpPoint ); + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鐨勮愪箙鍔涘洖澶(%d)", CHAR_getUseName( toindex ), UpPoint ); }else { int allUpPoint; @@ -446,7 +446,7 @@ void BATTLE_MultiRecovery( CHAR_setInt( ridepet, CHAR_HP, min( workhp, CHAR_getWorkInt( ridepet, CHAR_WORKMAXHP ) ) ); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)的耐久力回复(%d),(%s的骑宠)的耐久力回复(%d)", + // "(%s)鐨勮愪箙鍔涘洖澶(%d),(%s鐨勯獞瀹)鐨勮愪箙鍔涘洖澶(%d)", // CHAR_getUseName( toindex ), // UpPoint, // CHAR_getUseName( toindex ), @@ -465,7 +465,7 @@ void BATTLE_MultiRecovery( CHAR_setInt( toindex, CHAR_MP, min( workhp, CHAR_getWorkInt( toindex, CHAR_WORKMAXMP ) ) ); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)的气力回复(%d)", + // "(%s)鐨勬皵鍔涘洖澶(%d)", // CHAR_getUseName( toindex ), // UpPoint // ); @@ -531,23 +531,23 @@ int MAGIC_Recovery_Battle( int charaindex, int toNo, int marray, int mp ) battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); -#if 1 // Robin fix 防封包改Magic范围 +#if 1 // Robin fix 闃插皝鍖呮敼Magic鑼冨洿 range = MAGIC_getInt( marray, MAGIC_TARGET ); //print(" MAGIC_TARGET:%d toNo:%d ", range, toNo); - if( range == 0 && toNo != attackNo ) { // 只能对自己使用 -// print("\n 改封包!MAGIC只能对自己使用!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); + if( range == 0 && toNo != attackNo ) { // 鍙兘瀵硅嚜宸变娇鐢 +// print("\n 鏀瑰皝鍖!MAGIC鍙兘瀵硅嚜宸变娇鐢!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); return FALSE; } - if( range == 1 && toNo >= 20 ) { // 只能对单体使用 -// print("\n 改封包!MAGIC只能对单体使用!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); + if( range == 1 && toNo >= 20 ) { // 鍙兘瀵瑰崟浣撲娇鐢 +// print("\n 鏀瑰皝鍖!MAGIC鍙兘瀵瑰崟浣撲娇鐢!!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); return FALSE; } #endif - // shan(对全体使用魔法的bug),修改者jinchao+2001/12/07 + // shan(瀵瑰叏浣撲娇鐢ㄩ瓟娉曠殑bug)锛屼慨鏀硅卝inchao+2001/12/07 if( BATTLE_CHECKINDEX( battleindex ) == FALSE ) return FALSE; magicarg = MAGIC_getChar( marray, MAGIC_OPTION ); - // shan(对全体使用魔法的bug),修改者jinchao+2001/12/07 + // shan(瀵瑰叏浣撲娇鐢ㄩ瓟娉曠殑bug)锛屼慨鏀硅卝inchao+2001/12/07 if (magicarg == "\0") return FALSE; power = atoi( magicarg ); @@ -568,15 +568,16 @@ int MAGIC_Recovery_Battle( int charaindex, int toNo, int marray, int mp ) } void BATTLE_MultiResAndDef( - int battleindex, // 田玄伙奶件犯永弁旦 - int attackNo, // 井仃月谛 寞 - int toNo, // 井仃日木月谛 寞 - int power, // 湘 荚汊袄 - int per, // ⊙井" - int kind, // 芊 豢及潘 - int count, // 窒荚 什井 - int UseEffect, // 银丹谛及巨白尼弁玄 - int RecevEffect // 井仃日木月谛及巨白尼弁玄 + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int attackNo, // 銇嬨亼銈嬩汉鐣彿 + int toNo, // 銇嬨亼銈夈倢銈嬩汉鐣彿 + int power, // 鍩烘湰鍥炲京鍊 + int per, // 锛呫亱锛 + int kind, // 榄旀硶闃插尽銇ó椤 + int count, // 浣曞洖闃层亹銇 + int UseEffect, // 浣裤亞浜恒伄銈ㄣ儠銈с偗銉 + int RecevEffect // 銇嬨亼銈夈倢銈嬩汉銇偍銉曘偋銈儓 + ) { int i, toindex, charaindex, UpPoint = 0, workhp; @@ -589,11 +590,11 @@ void BATTLE_MultiResAndDef( BATTLE_MultiListDead( battleindex, toNo, ToList ); BATTLE_MagicEffect( - battleindex, // 田玄伙奶件犯永弁旦 - attackNo, // 井仃月谛 寞(ㄟ ㄠㄨ) - ToList, // 井仃日木月谛 寞伉旦玄(ㄟ ㄠㄨ) - UseEffect, // 井仃月谛巨白尼弁玄 - RecevEffect // 井仃日木月谛巨白尼弁玄 + battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + attackNo, // 銇嬨亼銈嬩汉鐣彿(锛愶綖锛戯紮) + ToList, // 銇嬨亼銈夈倢銈嬩汉鐣彿銉偣銉(锛愶綖锛戯紮) + UseEffect, // 銇嬨亼銈嬩汉銈ㄣ儠銈с偗銉 + RecevEffect // 銇嬨亼銈夈倢銈嬩汉銈ㄣ儠銈с偗銉 ); charaindex = BATTLE_No2Index( battleindex, attackNo ); for( i = 0; ToList[i] != -1; i ++ ){ @@ -625,10 +626,10 @@ void BATTLE_MultiResAndDef( CHAR_setWorkInt( toindex, MagicDefTbl[kind], count ); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)恢复意识", + // "(%s)鎭㈠鎰忚瘑", // CHAR_getUseName( toindex ) ); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)将(%s)遭受(损伤%s)", + // "(%s)灏(%s)閬彈(鎹熶激%s)", // CHAR_getUseName( charaindex ), // CHAR_getUseName( toindex ), // aszMagicDefFull[kind] @@ -679,7 +680,7 @@ static int SortLoc( const int *pEle1 , const int *pEle2 ) ele2basex = CharTableIdx[*pEle2][1]; ele2basey = CharTableIdx[*pEle2][0]; - // 左上方 + // 宸︿笂鏂 if( *pEle1 >= 10 ) { if( ele1basey != ele2basey ) @@ -687,7 +688,7 @@ static int SortLoc( const int *pEle1 , const int *pEle2 ) return ( ele1basex - ele2basex ); } - // 右下方 + // 鍙充笅鏂 else { if( ele1basey != ele2basey ) @@ -771,7 +772,7 @@ int BATTLE_CalcCharaRatio( int AttEle , int charaidx ) int petidx , charahurt , pethurt; int charaattr[4] , petattr[4]; - // 没有宠物 + // 娌℃湁瀹犵墿 if( -1 == ( petidx = BATTLE_getRidePet( charaidx ) ) ) return 10; @@ -798,12 +799,12 @@ int BATTLE_CalcCharaRatio( int AttEle , int charaidx ) } static int BATTLE_AttrCalc( - int My_Fire, // 愤坌础(膜恳熬仃月幻丹) + int My_Fire, // 鑷垎鍋(淇鍙椼亼銈嬨伝銇) int My_Water, int My_Earth, int My_Wind, int My_None, - int Vs_Fire, // 锹澎础 + int Vs_Fire, // 鐩告墜鍋 int Vs_Water, int Vs_Earth, int Vs_Wind, @@ -812,46 +813,47 @@ static int BATTLE_AttrCalc( { int iRet = 0; - // 绍及 猾 宁煌允月[ - My_Fire = My_Fire * Vs_None * AJ_UP // 绍 雄中 - + My_Fire * Vs_Fire * AJ_SAME // 绍 绍 元 - + My_Fire * Vs_Water * AJ_DOWN // 绍 浇中 - + My_Fire * Vs_Earth * AJ_SAME // 绍 萝 元 - + My_Fire * Vs_Wind * AJ_UP; // 绍 氘 雄中 + // 鐏伄鏀绘拑鍔涘悎瑷堛仚銈嬨 + My_Fire = My_Fire * Vs_None * AJ_UP // 鐏啋鐒 寮枫亜 + + My_Fire * Vs_Fire * AJ_SAME // 鐏啋鐏 鍚屻仒 + + My_Fire * Vs_Water * AJ_DOWN // 鐏啋姘 寮便亜 + + My_Fire * Vs_Earth * AJ_SAME // 鐏啋鍦 鍚屻仒 + + My_Fire * Vs_Wind * AJ_UP; // 鐏啋棰 寮枫亜 - // 及 猾 宁煌允月[ - My_Water = My_Water * Vs_None * AJ_UP // 雄中 - + My_Water * Vs_Fire * AJ_UP // 绍 雄中 - + My_Water * Vs_Water * AJ_SAME // 元 - + My_Water * Vs_Earth * AJ_DOWN // 萝 浇中 - + My_Water * Vs_Wind * AJ_SAME; // 氘 元 + // 姘淬伄鏀绘拑鍔涘悎瑷堛仚銈嬨 + My_Water = My_Water * Vs_None * AJ_UP // 姘粹啋鐒 寮枫亜 + + My_Water * Vs_Fire * AJ_UP // 姘粹啋鐏 寮枫亜 + + My_Water * Vs_Water * AJ_SAME // 姘粹啋姘 鍚屻仒 + + My_Water * Vs_Earth * AJ_DOWN // 姘粹啋鍦 寮便亜 + + My_Water * Vs_Wind * AJ_SAME; // 姘粹啋棰 鍚屻仒 - // 萝 - My_Earth = My_Earth * Vs_None * AJ_UP // 萝 雄中 - + My_Earth * Vs_Fire * AJ_SAME // 萝 绍 元 - + My_Earth * Vs_Water * AJ_UP // 萝 雄中 - + My_Earth * Vs_Earth * AJ_SAME // 萝 萝 元 - + My_Earth * Vs_Wind * AJ_DOWN; // 萝 氘 浇中 + // 鍦 + My_Earth = My_Earth * Vs_None * AJ_UP // 鍦熲啋鐒 寮枫亜 + + My_Earth * Vs_Fire * AJ_SAME // 鍦熲啋鐏 鍚屻仒 + + My_Earth * Vs_Water * AJ_UP // 鍦熲啋姘 寮枫亜 + + My_Earth * Vs_Earth * AJ_SAME // 鍦熲啋鍦 鍚屻仒 + + My_Earth * Vs_Wind * AJ_DOWN; // 鍦熲啋棰 寮便亜 - // 氘 - My_Wind = My_Wind * Vs_None * AJ_UP // 氘 雄中 - + My_Wind * Vs_Fire * AJ_DOWN // 氘 绍 浇中 - + My_Wind * Vs_Water * AJ_SAME // 氘 元 - + My_Wind * Vs_Earth * AJ_UP // 氘 萝 雄中 - + My_Wind * Vs_Wind * AJ_SAME; // 氘 氘 元 + // 棰 + My_Wind = My_Wind * Vs_None * AJ_UP // 棰ㄢ啋鐒 寮枫亜 + + My_Wind * Vs_Fire * AJ_DOWN // 棰ㄢ啋鐏 寮便亜 + + My_Wind * Vs_Water * AJ_SAME // 棰ㄢ啋姘 鍚屻仒 + + My_Wind * Vs_Earth * AJ_UP // 棰ㄢ啋鍦 寮枫亜 + + My_Wind * Vs_Wind * AJ_SAME; // 棰ㄢ啋棰 鍚屻仒 - // 箪岭 - My_None = My_None * Vs_None * AJ_SAME // 元 - + My_None * Vs_Fire * AJ_DOWN // 绍 浇中 - + My_None * Vs_Water * AJ_DOWN // 浇中 - + My_None * Vs_Earth * AJ_DOWN // 萝 浇中 - + My_None * Vs_Wind * AJ_DOWN; // 氘 浇中 + // 鐒″睘鎬 + My_None = My_None * Vs_None * AJ_SAME // 鐒♀啋鐒 鍚屻仒 + + My_None * Vs_Fire * AJ_DOWN // 鐒♀啋鐏 寮便亜 + + My_None * Vs_Water * AJ_DOWN // 鐒♀啋姘 寮便亜 + + My_None * Vs_Earth * AJ_DOWN // 鐒♀啋鍦 寮便亜 + + My_None * Vs_Wind * AJ_DOWN; // 鐒♀啋棰 寮便亜 - // 蝈 宁煌允月 + // 鍏ㄩ儴鍚堣▓銇欍倠 iRet = (My_Fire + My_Water + My_Earth + My_Wind + My_None) ; - // 喘仃遥壬匀井曰匹 五仁卅匀凶及匹公及坌尺日允 + // 鎺涖亼绠椼伆銇c亱銈娿仹澶с亶銇忋仾銇c仧銇仹銇濄伄鍒嗐伕銈夈仚 return (iRet * D_ATTR); + } extern float BATTLE_FieldAttAdjust(int battleindex,int pAt_Fire,int pAt_Water,int pAt_Earth,int pAt_Wind); @@ -886,8 +888,8 @@ static int BATTLE_AttrAdjust( return damage; } #endif -// 计算闪避率 -// return: 0:没闪过 1:闪过 +// 璁$畻闂伩鐜 +// return: 0:娌¢棯杩 1:闂繃 int BATTLE_MagicDodge(int charindex,int nDefKind,int nFieldAttr) { float fLuck = 0,fResist = 0; @@ -895,7 +897,7 @@ int BATTLE_MagicDodge(int charindex,int nDefKind,int nFieldAttr) float Dluck=0.0; #endif int charType = CHAR_getInt( charindex, CHAR_WHICHTYPE); - // 如果是防守者是玩家 + // 濡傛灉鏄槻瀹堣呮槸鐜╁ if( charType == CHAR_TYPEPLAYER ){ fLuck = (float)CHAR_getInt( charindex, CHAR_LUCK) * 3; fResist = (float)CHAR_getInt( charindex, CHAR_EARTH_RESIST + nFieldAttr) * 0.15; @@ -904,7 +906,7 @@ int BATTLE_MagicDodge(int charindex,int nDefKind,int nFieldAttr) Dluck = (float)(CHAR_getWorkInt( charindex, CHAR_EQUITQUIMAGIC)*0.9); fLuck += Dluck; #endif - }else {// 如果是防守者是宠物 + }else {// 濡傛灉鏄槻瀹堣呮槸瀹犵墿 fLuck = (float)CHAR_getInt( charindex, CHAR_LV) * 0.2; if(fLuck > 30) fLuck = 30; } @@ -943,7 +945,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, float temp = 0.0f; // int attattr[5], defattr[5]; char msgbuf[64]; - char kind[4][3] = {"地","水","火","风"}; + char kind[4][3] = {"鍦","姘","鐏","椋"}; #else BOOL TrueMagic=FALSE; #endif @@ -957,7 +959,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, if(z != toNo) toNo = z; } BATTLE_AttMagicEffect( battleindex , attackNo , list , attIdx ); - // 计算攻击的人物清单 + // 璁$畻鏀诲嚮鐨勪汉鐗╂竻鍗 if( attackNo < 10 ) magicattidx = attIdx * 2 + 1; else @@ -965,7 +967,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, listidx = 0; memset(def_is_player,-1,sizeof(def_is_player)); memset(def_be_hit,-1,sizeof(def_be_hit)); - // 单人攻击 + // 鍗曚汉鏀诲嚮 if( toNo < 20 ){ toNo = list[0]; basex = CharTableIdx[toNo][1]; @@ -976,7 +978,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, continue; else if( toNo >= 10 && ( j < 0 || j > 1 ) ) continue; - // 计算那些人需要加入清单 + // 璁$畻閭d簺浜洪渶瑕佸姞鍏ユ竻鍗 for( k = 0 ; k < 5 ; k++ ){ if( basex - 2 + k < 0 || basex - 2 + k > 4 ) continue; @@ -988,7 +990,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, } } } - }else if( 20 == toNo ){ // 右下全体 + }else if( 20 == toNo ){ // 鍙充笅鍏ㄤ綋 for( i = 0 ; i < 2 ; i++ ){ for( j = 0 ; j < 5 ; j++ ){ if( ATTMAGIC_magic[magicattidx].siField[i][j] && TRUE == BATTLE_TargetCheck( battleindex , CharTable[i + 2][j] ) ){ @@ -997,7 +999,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, } } } - }else if( 21 == toNo ){ // 左上全体 + }else if( 21 == toNo ){ // 宸︿笂鍏ㄤ綋 for( i = 0 ; i < 2 ; i++ ){ for( j = 0 ; j < 5 ; j++ ){ if( ATTMAGIC_magic[magicattidx].siField[i][j] && TRUE == BATTLE_TargetCheck( battleindex , CharTable[i][j] ) ){ @@ -1007,7 +1009,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, } } } - // 左上第一列 , 左上第二列 , 右下第一列 , 右下第二列 + // 宸︿笂绗竴鍒 , 宸︿笂绗簩鍒 , 鍙充笅绗竴鍒 , 鍙充笅绗簩鍒 else if( 23 == toNo || 24 == toNo || 25 == toNo || 26 == toNo ){ basey = toNo - 23; @@ -1017,7 +1019,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, else if( ( 23 == toNo || 24 == toNo ) && ( j < 0 || j > 1 ) ) continue; - // 计算那些人需要加入清单 + // 璁$畻閭d簺浜洪渶瑕佸姞鍏ユ竻鍗 for( k = 0 ; k < 5 ; k++ ){ if( ATTMAGIC_magic[magicattidx].siField[i][k] && TRUE == BATTLE_TargetCheck( battleindex , CharTable[j][k] ) ) { @@ -1028,17 +1030,17 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, } } - qsort( list , listidx , sizeof( list[0] ) , ( FUNC )SortLoc );// 排序位置 - // 取得人物的属性(不论玩家或是宠物) + qsort( list , listidx , sizeof( list[0] ) , ( FUNC )SortLoc );// 鎺掑簭浣嶇疆 + // 鍙栧緱浜虹墿鐨勫睘鎬(涓嶈鐜╁鎴栨槸瀹犵墿) //BATTLE_GetAttr( BATTLE_No2Index( battleindex , attackNo ) , &attattr[2] , &attattr[1] , &attattr[0] , &attattr[3] , &attattr[4] ); - // 如果攻击者是玩家,取得人物的魔法熟练度及魔法抗性 + // 濡傛灉鏀诲嚮鑰呮槸鐜╁,鍙栧緱浜虹墿鐨勯瓟娉曠啛缁冨害鍙婇瓟娉曟姉鎬 { int attType = CHAR_getInt(BATTLE_No2Index(battleindex,attackNo),CHAR_WHICHTYPE); int Check=0; AttIsPlayer=0; if( attType == CHAR_TYPEPLAYER) { AttIsPlayer = 1; - for(i=0;i<4;i++){ // att_magic_lv[i]: i = 0:地 1:水 2:火 3:风 + for(i=0;i<4;i++){ // att_magic_lv[i]: i = 0:鍦 1:姘 2:鐏 3:椋 att_magic_lv[i] = CHAR_getInt(BATTLE_No2Index(battleindex,attackNo),CHAR_EARTH_EXP+i); } }else if( attType == CHAR_TYPEENEMY ) { @@ -1074,7 +1076,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, DefIsPlayer = 0; if( defType == CHAR_TYPEPLAYER) { DefIsPlayer = 1; - for(j=0;j 0) { CHAR_setWorkInt(def_be_hit[i],CHAR_WORKSLEEP,0); z = BATTLE_Index2No(battleindex,def_be_hit[i]); @@ -1262,47 +1264,47 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, } #else //TrueMagic == FALSE - // 攻击方的经验值----------------------------------------------------------------------------- + // 鏀诲嚮鏂圭殑缁忛獙鍊----------------------------------------------------------------------------- if(AttIsPlayer){ - // 被克的魔法 + // 琚厠鐨勯瓟娉 DefFieldAttr = (FieldAttr+1)%4; - // 取得玩家所用的魔法的经验值 + // 鍙栧緱鐜╁鎵鐢ㄧ殑榄旀硶鐨勭粡楠屽 att_magic_exp_add = CHAR_getInt(BATTLE_No2Index(battleindex,attackNo),CHAR_EARTH_ATTMAGIC_EXP+FieldAttr); - // 取得玩家所用的魔法的被克魔法经验值 + // 鍙栧緱鐜╁鎵鐢ㄧ殑榄旀硶鐨勮鍏嬮瓟娉曠粡楠屽 att_magic_exp_sub = CHAR_getInt(BATTLE_No2Index(battleindex,attackNo),CHAR_EARTH_ATTMAGIC_EXP+DefFieldAttr); - // 依所使用的魔法加该属性的exp,打几只算几点exp + // 渚濇墍浣跨敤鐨勯瓟娉曞姞璇ュ睘鎬х殑exp,鎵撳嚑鍙畻鍑犵偣exp att_magic_exp_add += getexp; - // 依所使用的魔法扣被克属性的exp,打几只扣几点exp + // 渚濇墍浣跨敤鐨勯瓟娉曟墸琚厠灞炴х殑exp,鎵撳嚑鍙墸鍑犵偣exp att_magic_exp_sub -= getexp; lv_up_exp = Magic_Level_Table[att_magic_lv[FieldAttr]]; while(att_magic_exp_add >= lv_up_exp || att_magic_exp_sub < 0){ - // 如果玩家所用的魔法的经验值现在可以升级了 + // 濡傛灉鐜╁鎵鐢ㄧ殑榄旀硶鐨勭粡楠屽肩幇鍦ㄥ彲浠ュ崌绾т簡 if(att_magic_exp_add >= lv_up_exp){ - // 如果超过了100级 + // 濡傛灉瓒呰繃浜100绾 if(att_magic_lv[FieldAttr] + 1 > 100){ att_magic_lv[FieldAttr] = 100; - // 经验值清为0 + // 缁忛獙鍊兼竻涓0 att_magic_exp_add = 0; }else{ att_magic_lv[FieldAttr]++; - // 把现在的经验值扣掉升了级所用的经验值 + // 鎶婄幇鍦ㄧ殑缁忛獙鍊兼墸鎺夊崌浜嗙骇鎵鐢ㄧ殑缁忛獙鍊 att_magic_exp_add -= lv_up_exp; - snprintf(msgbuf,sizeof(msgbuf),"你的 %s 魔法熟练度升级为 %d。",kind[FieldAttr],att_magic_lv[FieldAttr]); + snprintf(msgbuf,sizeof(msgbuf),"浣犵殑 %s 榄旀硶鐔熺粌搴﹀崌绾т负 %d銆",kind[FieldAttr],att_magic_lv[FieldAttr]); CHAR_talkToCli(BATTLE_No2Index(battleindex,attackNo),-1,msgbuf,CHAR_COLORRED); } } - // 如果玩家所用的魔法的相克魔法的经验值现在可以降级了 + // 濡傛灉鐜╁鎵鐢ㄧ殑榄旀硶鐨勭浉鍏嬮瓟娉曠殑缁忛獙鍊肩幇鍦ㄥ彲浠ラ檷绾т簡 if(att_magic_exp_sub < 0 ){ - // 如果等级已经是1级 + // 濡傛灉绛夌骇宸茬粡鏄1绾 if(att_magic_lv[DefFieldAttr] <= 1){ att_magic_lv[DefFieldAttr] = 1; - // 经验值清为0 + // 缁忛獙鍊兼竻涓0 att_magic_exp_sub = 0; }else{ att_magic_lv[DefFieldAttr]--; - // 把下一个等级的经验值扣掉现在的经验值 + // 鎶婁笅涓涓瓑绾х殑缁忛獙鍊兼墸鎺夌幇鍦ㄧ殑缁忛獙鍊 att_magic_exp_sub = Magic_Level_Table[att_magic_lv[DefFieldAttr]] + att_magic_exp_sub; - snprintf(msgbuf,sizeof(msgbuf),"你的 %s 魔法熟练度降级为 %d。",kind[DefFieldAttr],att_magic_lv[DefFieldAttr]); + snprintf(msgbuf,sizeof(msgbuf),"浣犵殑 %s 榄旀硶鐔熺粌搴﹂檷绾т负 %d銆",kind[DefFieldAttr],att_magic_lv[DefFieldAttr]); CHAR_talkToCli(BATTLE_No2Index(battleindex,attackNo),-1,msgbuf,CHAR_COLORRED); } } @@ -1314,44 +1316,44 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, CHAR_setInt(BATTLE_No2Index(battleindex,attackNo),CHAR_EARTH_ATTMAGIC_EXP+DefFieldAttr,att_magic_exp_sub); } - // 防守方的经验值----------------------------------------------------------------------------- + // 闃插畧鏂圭殑缁忛獙鍊----------------------------------------------------------------------------- for(i=0;i= lv_up_exp || def_magic_exp_sub < 0){ - // 如果防守方玩家对此魔法的抗性的经验值现在可以升级了 + // 濡傛灉闃插畧鏂圭帺瀹跺姝ら瓟娉曠殑鎶楁х殑缁忛獙鍊肩幇鍦ㄥ彲浠ュ崌绾т簡 if(def_magic_exp_add >= lv_up_exp){ - // 如果超过了100级 + // 濡傛灉瓒呰繃浜100绾 if(def_magic_resist[FieldAttr] + 1 > 100) def_magic_resist[FieldAttr] = 100; else { def_magic_resist[FieldAttr]++; - snprintf(msgbuf,sizeof(msgbuf),"你的 %s 魔法抗性升级为 %d。",kind[FieldAttr],def_magic_resist[FieldAttr]); + snprintf(msgbuf,sizeof(msgbuf),"浣犵殑 %s 榄旀硶鎶楁у崌绾т负 %d銆",kind[FieldAttr],def_magic_resist[FieldAttr]); CHAR_talkToCli(charaidx,-1,msgbuf,CHAR_COLORRED); } - // 经验值清为0 + // 缁忛獙鍊兼竻涓0 def_magic_exp_add = 0; } - // 如果防守方玩家对此魔法的抗性的相克魔法的经验值现在可以降级了 + // 濡傛灉闃插畧鏂圭帺瀹跺姝ら瓟娉曠殑鎶楁х殑鐩稿厠榄旀硶鐨勭粡楠屽肩幇鍦ㄥ彲浠ラ檷绾т簡 if(def_magic_exp_sub < 0 ) { - // 如果等级已经是1级 - if(def_magic_resist[DefFieldAttr] <= 1) def_magic_exp_sub = 0; // 经验值清为0 + // 濡傛灉绛夌骇宸茬粡鏄1绾 + if(def_magic_resist[DefFieldAttr] <= 1) def_magic_exp_sub = 0; // 缁忛獙鍊兼竻涓0 else { def_magic_resist[DefFieldAttr]--; - // 经验值变成下一个等级的经验值 + // 缁忛獙鍊煎彉鎴愪笅涓涓瓑绾х殑缁忛獙鍊 def_magic_exp_sub = Magic_Level_Table[def_magic_resist[DefFieldAttr]]; - snprintf(msgbuf,sizeof(msgbuf),"你的 %s 魔法抗性降级为 %d。",kind[DefFieldAttr],def_magic_resist[DefFieldAttr]); + snprintf(msgbuf,sizeof(msgbuf),"浣犵殑 %s 榄旀硶鎶楁ч檷绾т负 %d銆",kind[DefFieldAttr],def_magic_resist[DefFieldAttr]); CHAR_talkToCli(charaidx,-1,msgbuf,CHAR_COLORRED); } } @@ -1362,7 +1364,7 @@ void BATTLE_MultiAttMagic( int battleindex, int attackNo, int toNo , int attIdx, CHAR_setInt(charaidx,CHAR_EARTH_RESIST+DefFieldAttr,def_magic_resist[DefFieldAttr]); CHAR_setInt(charaidx,CHAR_EARTH_DEFMAGIC_EXP+DefFieldAttr,def_magic_exp_sub); } - // 如果被攻击者中了睡眠 + // 濡傛灉琚敾鍑昏呬腑浜嗙潯鐪 if(CHAR_getWorkInt(def_be_hit[i],CHAR_WORKSLEEP) > 0) { CHAR_setWorkInt(def_be_hit[i],CHAR_WORKSLEEP,0); z = BATTLE_Index2No(battleindex,def_be_hit[i]); @@ -1406,7 +1408,7 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, BATTLE_ToCallDragonEffect( battleindex , attackNo , list , attIdx); - // 计算攻击的人物清单 + // 璁$畻鏀诲嚮鐨勪汉鐗╂竻鍗 if( attackNo < 10 ) magicattidx = attIdx * 2 + 1; else @@ -1417,12 +1419,12 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, memset(def_is_player,-1,sizeof(def_is_player)); memset(def_be_hit,-1,sizeof(def_be_hit)); - // 单人攻击 + // 鍗曚汉鏀诲嚮 if( toNo < 20 ){ toNo = list[0]; listidx++; - } else if( 20 == toNo ){ // 右下全体 + } else if( 20 == toNo ){ // 鍙充笅鍏ㄤ綋 for( i = 0 ; i < 2 ; i++ ){ for( j = 0 ; j < 5 ; j++ ){ if(TRUE == BATTLE_TargetCheck( battleindex , CharTable[i + 2][j] ) ){ @@ -1431,7 +1433,7 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, } } } - } else if( 21 == toNo ){ // 左上全体 + } else if( 21 == toNo ){ // 宸︿笂鍏ㄤ綋 for( i = 0 ; i < 2 ; i++ ){ for( j = 0 ; j < 5 ; j++ ){ if(TRUE == BATTLE_TargetCheck( battleindex , CharTable[i][j] ) ){ @@ -1440,7 +1442,7 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, } } } - } // 左上第一列 , 左上第二列 , 右下第一列 , 右下第二列 + } // 宸︿笂绗竴鍒 , 宸︿笂绗簩鍒 , 鍙充笅绗竴鍒 , 鍙充笅绗簩鍒 else if( 23 == toNo || 24 == toNo || 25 == toNo || 26 == toNo ){ basey = toNo - 23; for( i = 0 , j = basey - 1 ; j <= basey + 1 ; i++ , j++ ){ @@ -1448,7 +1450,7 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, continue; else if( ( 23 == toNo || 24 == toNo ) && ( j < 0 || j > 1 ) ) continue; - // 计算那些人需要加入清单 + // 璁$畻閭d簺浜洪渶瑕佸姞鍏ユ竻鍗 for( k = 0 ; k < 5 ; k++ ){ if(TRUE == BATTLE_TargetCheck( battleindex , CharTable[j][k] ) ) { @@ -1458,7 +1460,7 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, } } } - qsort( list , listidx , sizeof( list[0] ) , ( FUNC )SortLoc );// 排序位置 + qsort( list , listidx , sizeof( list[0] ) , ( FUNC )SortLoc );// 鎺掑簭浣嶇疆 for( i = 0 ; i < listidx ; i++ ) { int defType; charaidx = BATTLE_No2Index( battleindex , list[i] ); @@ -1479,10 +1481,10 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, 0); if (BATTLE_MagicDodge(charaidx, DefIsPlayer, FieldAttr)) { -// 没击中 +// 娌″嚮涓 attvalue = 0; } else { - if( 0 == TOCALL_magic[attIdx].uiAttackType ) {// 单人攻击 + if( 0 == TOCALL_magic[attIdx].uiAttackType ) {// 鍗曚汉鏀诲嚮 attvalue = BATTLE_DamageCalc(icindex, charaidx); } else { @@ -1492,13 +1494,13 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, CHAR_CharaDelete(icindex); charahp = CHAR_getInt( charaidx , CHAR_HP ); if (-1 == petidx || CHAR_getInt(petidx, CHAR_HP) <= 0) { -// 没骑宠物 +// 娌¢獞瀹犵墿 if( ( charahp -= attvalue ) < 0 ) { charahp = 0; } CHAR_setInt( charaidx , CHAR_HP , charahp ); pethp = 0; - if( 0 == TOCALL_magic[attIdx].uiAttackType ) {// 单人攻击 + if( 0 == TOCALL_magic[attIdx].uiAttackType ) {// 鍗曚汉鏀诲嚮 sprintf( szcommand , "%X|%X|%X|%X|" , toNo , list[i] , attvalue , pethp); } else sprintf( szcommand , "%X|%X|%X|%X|" , list[i] , list[i] , attvalue , pethp); @@ -1517,7 +1519,7 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, if( ( pethp -= attvalue ) < 0) { pethp = 0; - // 宠物没血了退出战场 + // 瀹犵墿娌¤浜嗛鍑烘垬鍦 CHAR_setInt(charaidx,CHAR_RIDEPET,-1); BATTLE_changeRideImage(charaidx); CHAR_setWorkInt(charaidx,CHAR_WORKPETFALL,1); @@ -1527,7 +1529,7 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, charahurt = charahurt_temp; - if( 0 == TOCALL_magic[attIdx].uiAttackType ) {// 单人攻击 + if( 0 == TOCALL_magic[attIdx].uiAttackType ) {// 鍗曚汉鏀诲嚮 sprintf( szcommand , "%X|%X|%X|%X|" , toNo , list[i] , charahurt , attvalue); } else sprintf( szcommand , "%X|%X|%X|%X|" , list[i] , list[i] , charahurt , attvalue); @@ -1547,16 +1549,16 @@ void BATTLE_MultiToCallDragonMagic( int battleindex, int attackNo, int toNo, //*********************************************************** // -// 芊羁匹 醒及平乓仿弁正□毛汊唾今六月 +// 榄旀硶绛夈仹瑜囨暟銇偔銉c儵銈偪銉笺倰寰╂椿銇曘仜銈 // void BATTLE_MultiRessurect( - int battleindex, // 田玄伙奶件犯永弁旦 - int attackNo, // 井仃月谛 寞 - int toNo, // 井仃日木月谛 寞 - int power, // 湘 荚汊袄 - int per, // ⊙井" - int UseEffect, // 银丹谛及巨白尼弁玄 - int RecevEffect // 井仃日木月谛及巨白尼弁玄 + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int attackNo, // 銇嬨亼銈嬩汉鐣彿 + int toNo, // 銇嬨亼銈夈倢銈嬩汉鐣彿 + int power, // 鍩烘湰鍥炲京鍊 + int per, // 锛呫亱锛 + int UseEffect, // 浣裤亞浜恒伄銈ㄣ儠銈с偗銉 + int RecevEffect // 銇嬨亼銈夈倢銈嬩汉銇偍銉曘偋銈儓 ) // //*********************************************************** @@ -1571,88 +1573,88 @@ void BATTLE_MultiRessurect( BATTLE_MultiListDead( battleindex, toNo, ToList ); BATTLE_MagicEffect( - battleindex, // 田玄伙奶件犯永弁旦 - attackNo, // 井仃月谛 寞(ㄟ ㄠㄨ) - ToList, // 井仃日木月谛 寞伉旦玄(ㄟ ㄠㄨ) - UseEffect, // 井仃月谛巨白尼弁玄 - RecevEffect // 井仃日木月谛巨白尼弁玄 + battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + attackNo, // 銇嬨亼銈嬩汉鐣彿(锛愶綖锛戯紮) + ToList, // 銇嬨亼銈夈倢銈嬩汉鐣彿銉偣銉(锛愶綖锛戯紮) + UseEffect, // 銇嬨亼銈嬩汉銈ㄣ儠銈с偗銉 + RecevEffect // 銇嬨亼銈夈倢銈嬩汉銈ㄣ儠銈с偗銉 ); - // 汊唾今六月 + // 寰╂椿銇曘仜銈 for( i = 0; ToList[i] != -1; i ++ ){ - // 锹澎及奶件犯永弁旦 + //鐩告墜銇偆銉炽儑銉冦偗銈 toindex = BATTLE_No2Index( battleindex, ToList[i] ); - // 反皿伊奶乩□及戏五忒曰 仄 + // 锛わ嫉锛ワ棘涓伅銉椼儸銈ゃ儰銉笺伄鐢熴亶杩斻倞鐒°仐 if( BattleArray[battleindex].type == BATTLE_TYPE_P_vs_P && CHAR_getInt( toindex, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER ){ continue; } - // 竣濮仄化中卅仃木壬汊唾今六卅中 + // 姘楃刀銇椼仸銇勩仾銇戙倢銇板京娲汇仌銇涖仾銇 if( CHAR_getFlg( toindex, CHAR_ISDIE ) == FALSE ){ continue; } - // 公及引引及煌遥 + // 銇濄伄銇俱伨銇▓绠 UpPoint = power; if( per ){ - // ⊙煌遥 + //锛呰▓绠 UpPoint *= CHAR_getWorkInt( toindex, CHAR_WORKMAXHP ) * 0.01; } if( power == 0 ){ - // 仇及桦宁反敦蝈荚汊 + //銇撱伄鍫村悎銇畬鍏ㄥ洖寰 UpPoint = CHAR_getWorkInt( toindex, CHAR_WORKMAXHP ); }else{ - // 荚汊汹卞汔毛 凶六月(漆反赝癫) + // 鍥炲京閲忋伀骞呫倰鎸併仧銇涖倠(浠娿伅閬╁綋) UpPoint = RAND( (power*0.9), (power*1.1) ); } - // 斓匹手ㄠ + // 鏈浣庛仹銈傦紤 UpPoint = max( 1, UpPoint ); workhp = CHAR_getInt( toindex, CHAR_HP ) + UpPoint; - // 毛译尹卅中方丹卞荚汊 + // 鏈澶с倰瓒呫亪銇亜銈堛亞銇洖寰 CHAR_setInt( toindex, CHAR_HP, min( workhp, CHAR_getWorkInt( toindex, CHAR_WORKMAXHP ) ) ); - // 汊唾 + // 寰╂椿 CHAR_setFlg( toindex, CHAR_ISDIE, 0 ); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)恢复意识", + // "(%s)鎭㈠鎰忚瘑", // CHAR_getUseName( toindex ) ); - // 须 煤 + // 瀹熸硜涓稒 //BATTLE_BroadCast( battleindex, szBuffer, // (attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; - // (汊唾)戊穴件玉毛中木月 + // (寰╂椿)銈炽優銉炽儔銈掋亜銈屻倠 snprintf( szCommand, sizeof(szCommand), "BL|r%X|h%X|", ToList[i], CHAR_getInt( toindex, CHAR_HP ) ); - // 侬 馨笛 + //鏂囧瓧鍒楄拷鍔 BATTLESTR_ADD( szCommand ); /* { int Sign, Damage; Sign = (UpPoint >= 0)?(1):(0); Damage = ABS( UpPoint ); - // ( 荚汊)戊穴件玉毛中木月 + // (锛及鍥炲京)銈炽優銉炽儔銈掋亜銈屻倠 snprintf( szCommand, sizeof(szCommand), "BD|r%X|%X|%X|d%X|", ToList[i], 0, Sign, Damage ); } - // 侬 馨笛 + // 鏂囧瓧鍒楄拷鍔 BATTLESTR_ADD( szCommand ); */ - // 衬午及爵 匹伉旦弁互卅井匀凶日 + // 鏁点仺銇垿闂樹腑銇с儶銈广偗銇屻仾銇嬨仯銇熴倝 if( BattleArray[battleindex].norisk == 0 && BattleArray[battleindex].type == BATTLE_TYPE_P_vs_E ){ - // 仇仇匹矢永玄分匀凶日袄毛皿仿旦允月 + // 銇撱亾銇с儦銉冦儓銇犮仯銇熴倝鍊ゃ倰銉椼儵銈广仚銈 if( CHAR_getInt( toindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ){ CHAR_PetAddVariableAi( toindex, AI_FIX_PETRESSURECT ); } @@ -1692,7 +1694,7 @@ void BATTLE_MultiReLife( int battleindex, int attackNo, int toNo, CHAR_setInt( toindex, CHAR_HP, min( workhp, CHAR_getWorkInt( toindex, CHAR_WORKMAXHP ) ) ); CHAR_setFlg( toindex, CHAR_ISDIE, 0 ); - //snprintf( szBuffer, sizeof(szBuffer), "(%s)恢复意识", CHAR_getUseName( toindex ) ); + //snprintf( szBuffer, sizeof(szBuffer), "(%s)鎭㈠鎰忚瘑", CHAR_getUseName( toindex ) ); snprintf( buf1, sizeof(buf1), "BJ|a%X|m%X|e%X|e%X|FF|", ToList[i], @@ -1720,14 +1722,14 @@ void BATTLE_MultiReLife( int battleindex, int attackNo, int toNo, #endif void BATTLE_MultiStatusChange( - int battleindex, // 田玄伙奶件犯永弁旦 - int attackNo, // 井仃月谛 寞 - int toNo, // 井仃日木月谛 寞 - int status, // 旦 □正旦潘 - int turn, // 正□件醒 - int UseEffect, // 银丹谛及巨白尼弁玄 - int RecevEffect, // 井仃日木月谛及巨白尼弁玄 - int Success // 岳 + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int attackNo, // 銇嬨亼銈嬩汉鐣彿 + int toNo, // 銇嬨亼銈夈倢銈嬩汉鐣彿 + int status, // 銈广儐銉笺偪銈圭ó鍒 + int turn, // 銈裤兗銉虫暟 + int UseEffect, // 浣裤亞浜恒伄銈ㄣ儠銈с偗銉 + int RecevEffect, // 銇嬨亼銈夈倢銈嬩汉銇偍銉曘偋銈儓 + int Success // 鎴愬姛鐜 ) { int i, toindex, charaindex; @@ -1737,11 +1739,11 @@ void BATTLE_MultiStatusChange( BATTLE_MultiList( battleindex, toNo, ToList ); BATTLE_MagicEffect( - battleindex, // 田玄伙奶件犯永弁旦 - attackNo, // 井仃月谛 寞(ㄟ ㄠㄨ) - ToList, // 井仃日木月谛 寞伉旦玄(ㄟ ㄠㄨ) - UseEffect, // 井仃月谛巨白尼弁玄 - RecevEffect // 井仃日木月谛巨白尼弁玄 + battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + attackNo, // 銇嬨亼銈嬩汉鐣彿(锛愶綖锛戯紮) + ToList, // 銇嬨亼銈夈倢銈嬩汉鐣彿銉偣銉(锛愶綖锛戯紮) + UseEffect, // 銇嬨亼銈嬩汉銈ㄣ儠銈с偗銉 + RecevEffect // 銇嬨亼銈夈倢銈嬩汉銈ㄣ儠銈с偗銉 ); charaindex = BATTLE_No2Index( battleindex, attackNo ); @@ -1750,7 +1752,7 @@ void BATTLE_MultiStatusChange( if( BATTLE_StatusAttackCheck( charaindex, toindex, status, Success, 30, 1.0, &perStatus ) == FALSE ){ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)无法将(%s)做成(%s)(%d%%)", + // "(%s)鏃犳硶灏(%s)鍋氭垚(%s)(%d%%)", // CHAR_getUseName( charaindex ), // CHAR_getUseName( toindex ), // aszStatusFull[status], @@ -1769,7 +1771,7 @@ void BATTLE_MultiStatusChange( } //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)将(%s)做成(%s)(%d%%)", + // "(%s)灏(%s)鍋氭垚(%s)(%d%%)", // CHAR_getUseName( charaindex ), // CHAR_getUseName( toindex ), // aszStatusFull[status], @@ -1816,15 +1818,16 @@ void BATTLE_MultiMagicStatusChange( int battleindex, int attackNo, int toNo, int //*********************************************************** // -// 芊羁匹 醒及平乓仿弁正□毛旦 □正旦荚汊 +// 榄旀硶绛夈仹瑜囨暟銇偔銉c儵銈偪銉笺倰銈广儐銉笺偪銈瑰洖寰 // void BATTLE_MultiStatusRecovery( - int battleindex, // 田玄伙奶件犯永弁旦 - int attackNo, // 井仃月谛 寞 - int toNo, // 井仃日木月谛 寞 - int status, // 旦 □正旦潘 - int UseEffect, // 银丹谛及巨白尼弁玄 - int RecevEffect // 井仃日木月谛及巨白尼弁玄 + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int attackNo, // 銇嬨亼銈嬩汉鐣彿 + int toNo, // 銇嬨亼銈夈倢銈嬩汉鐣彿 + int status, // 銈广儐銉笺偪銈圭ó鍒 + int UseEffect, // 浣裤亞浜恒伄銈ㄣ儠銈с偗銉 + int RecevEffect // 銇嬨亼銈夈倢銈嬩汉銇偍銉曘偋銈儓 + ) // //*********************************************************** @@ -1840,69 +1843,70 @@ void BATTLE_MultiStatusRecovery( BATTLE_MultiList( battleindex, toNo, ToList ); BATTLE_MagicEffect( - battleindex, // 田玄伙奶件犯永弁旦 - attackNo, // 井仃月谛 寞(ㄟ ㄠㄨ) - ToList, // 井仃日木月谛 寞伉旦玄(ㄟ ㄠㄨ) - UseEffect, // 井仃月谛巨白尼弁玄 - RecevEffect // 井仃日木月谛巨白尼弁玄 + battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + attackNo, // 銇嬨亼銈嬩汉鐣彿(锛愶綖锛戯紮) + ToList, // 銇嬨亼銈夈倢銈嬩汉鐣彿銉偣銉(锛愶綖锛戯紮) + UseEffect, // 銇嬨亼銈嬩汉銈ㄣ儠銈с偗銉 + RecevEffect // 銇嬨亼銈夈倢銈嬩汉銈ㄣ儠銈с偗銉 + ); charaindex = BATTLE_No2Index( battleindex, attackNo ); - // 旦 □正旦唱橘荚汊今六月 + // 銈广儐銉笺偪銈圭暟甯稿洖寰┿仌銇涖倠 for( i = 0; ToList[i] != -1; i ++ ){ - // 锹澎及奶件犯永弁旦 + // 鐩告墜銇偆銉炽儑銉冦偗銈 toindex = BATTLE_No2Index( battleindex, ToList[i] ); - // 锹澎互升及旦 □正旦井" + // 鐩告墜銇屻仼銇偣銉嗐兗銈裤偣銇嬶紵锛 tostatus = 0; - //检查异常状态 + //妫鏌ュ紓甯哥姸鎬 for( j = 1; j < BATTLE_ST_END; j ++ ){ if( CHAR_getWorkInt( toindex, StatusTbl[j] ) > 0 ){ tostatus = j; } } - //======== 仇仇匹岳 井升丹井毛 烂今六月 ========== - if( tostatus == 0 ){//正常 - // 撩 凛 -// print("\n vincent--很健康"); + //======== 銇撱亾銇ф垚鍔熴亱銇┿亞銇嬨倰鍒ゅ畾銇曘仜銈 ========== + if( tostatus == 0 ){//姝e父 + // 澶辨晽鏅 +// print("\n vincent--寰堝仴搴"); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)很健康", + // "(%s)寰堝仴搴", // CHAR_getUseName( toindex ) ); }else - // 蝈莒隙烂匹尕麻僖分匀凶日 - if( ( status == 0 && tostatus != 0 && tostatus <= CHAR_WORKCONFUSION ) // 蝈莒隙烂匹尕麻僖//找到异常 - || ( status == tostatus ) // 唱橘午荚汊椭互穴永民仄凶 + // 鍏ㄥ揩鎸囧畾銇т笉鍋ュ悍銇犮仯銇熴倝 + if( ( status == 0 && tostatus != 0 && tostatus <= CHAR_WORKCONFUSION ) // 铦堣帓闅欑儌鍖瑰皶楹诲儢//鎵惧埌寮傚父 + || ( status == tostatus ) // 鐣板父銇ㄥ洖寰╂潯銇屻優銉冦儊銇椼仧 ){ - // 荚汊允月 + // 鍥炲京銇欍倠 CHAR_setWorkInt( toindex, StatusTbl[tostatus], 0 ); #ifdef _MAGIC_NOCAST if( StatusTbl[tostatus] == CHAR_WORKNOCAST ){ //print("\nvincent-->lssproto_NC_send"); - lssproto_NC_send( getfdFromCharaIndex( toindex ), 0);//沉默解除 + lssproto_NC_send( getfdFromCharaIndex( toindex ), 0);//娌夐粯瑙i櫎 } #endif -// print("\n vincent--解除了:%d",tostatus); - // 岳 凛 +// print("\n vincent--瑙i櫎浜:%d",tostatus); + // 鎴愬姛鏅 //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)解除了(%s)的(%s)", + // "(%s)瑙i櫎浜(%s)鐨(%s)", // CHAR_getUseName( charaindex ), // CHAR_getUseName( toindex ), // aszStatusFull[tostatus] //); - // 仇仇匹旦 □正旦唱橘迕 侬 戊穴件玉毛中木月 - BATTLE_BadStatusString( ToList[i], 0 );//解除异常 + // 銇撱亾銇с偣銉嗐兗銈裤偣鐣板父鐢ㄦ枃瀛楀垪銈炽優銉炽儔銈掋亜銈屻倠 + BATTLE_BadStatusString( ToList[i], 0 );//瑙i櫎寮傚父 }else{ -// print("\n vincent--不"); - // 撩 凛 +// print("\n vincent--涓"); + // 澶辨晽鏅 /* snprintf( szBuffer, sizeof(szBuffer), - "(%s)不(%s)", + "(%s)涓(%s)", CHAR_getUseName( toindex ), aszStatusFull[status] ); */ } - // 须 煤 + // 瀹熸硜涓稒 //BATTLE_BroadCast( battleindex, szBuffer, // (attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; } @@ -1912,16 +1916,17 @@ void BATTLE_MultiStatusRecovery( //*********************************************************** // -// 芊羁匹 醒及平乓仿弁正□毛 芊 豢 +// 榄旀硶绛夈仹瑜囨暟銇偔銉c儵銈偪銉笺倰榄旀硶闃插尽 // void BATTLE_MultiMagicDef( - int battleindex, // 田玄伙奶件犯永弁旦 - int attackNo, // 井仃月谛 寞 - int toNo, // 井仃日木月谛 寞 - int kind, // 升及 芊 豢井 - int count, // 荚醒 - int UseEffect, // 银丹谛及巨白尼弁玄 - int RecevEffect // 井仃日木月谛及巨白尼弁玄 + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int attackNo, // 銇嬨亼銈嬩汉鐣彿 + int toNo, // 銇嬨亼銈夈倢銈嬩汉鐣彿 + int kind, // 銇┿伄榄旀硶闃插尽銇 + int count, // 鍥炴暟 + int UseEffect, // 浣裤亞浜恒伄銈ㄣ儠銈с偗銉 + int RecevEffect // 銇嬨亼銈夈倢銈嬩汉銇偍銉曘偋銈儓 + ) // //*********************************************************** @@ -1936,11 +1941,12 @@ void BATTLE_MultiMagicDef( BATTLE_MultiList( battleindex, toNo, ToList ); BATTLE_MagicEffect( - battleindex, // 田玄伙奶件犯永弁旦 - attackNo, // 井仃月谛 寞(ㄟ ㄠㄨ) - ToList, // 井仃日木月谛 寞伉旦玄(ㄟ ㄠㄨ) - UseEffect, // 井仃月谛巨白尼弁玄 - RecevEffect // 井仃日木月谛巨白尼弁玄 + battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + attackNo, // 銇嬨亼銈嬩汉鐣彿(锛愶綖锛戯紮) + ToList, // 銇嬨亼銈夈倢銈嬩汉鐣彿銉偣銉(锛愶綖锛戯紮) + UseEffect, // 銇嬨亼銈嬩汉銈ㄣ儠銈с偗銉 + RecevEffect // 銇嬨亼銈夈倢銈嬩汉銈ㄣ儠銈с偗銉 + ); charaindex = BATTLE_No2Index( battleindex, attackNo ); @@ -1948,7 +1954,7 @@ void BATTLE_MultiMagicDef( toindex = BATTLE_No2Index( battleindex, ToList[i] ); CHAR_setWorkInt( toindex, MagicDefTbl[kind], count ); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)将(%s)遭受(损伤%s)", + // "(%s)灏(%s)閬彈(鎹熶激%s)", // CHAR_getUseName( charaindex ), // CHAR_getUseName( toindex ), // aszMagicDefFull[kind] @@ -1968,17 +1974,18 @@ void BATTLE_MultiMagicDef( //*********************************************************** // -// 芊羁匹 醒及平乓仿弁正□及由仿丢□正毛晓票今六月 +// 榄旀硶绛夈仹瑜囨暟銇偔銉c儵銈偪銉笺伄銉戙儵銉°兗銈裤倰涓婁笅銇曘仜銈 // void BATTLE_MultiParamChange( - int battleindex, // 田玄伙奶件犯永弁旦 - int attackNo, // 井仃月谛 寞 - int toNo, // 井仃日木月谛 寞 - int kind, // 升及由仿丢□正井 - int power, // 禾奶件玄 - int par, // ⊙煌遥允月 - int UseEffect, // 银丹谛及巨白尼弁玄 - int RecevEffect // 井仃日木月谛及巨白尼弁玄 + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int attackNo, // 銇嬨亼銈嬩汉鐣彿 + int toNo, // 銇嬨亼銈夈倢銈嬩汉鐣彿 + int kind, // 銇┿伄銉戙儵銉°兗銈裤亱 + int power, // 銉濄偆銉炽儓 + int par, // 锛呰▓绠椼仚銈 + int UseEffect, // 浣裤亞浜恒伄銈ㄣ儠銈с偗銉 + int RecevEffect // 銇嬨亼銈夈倢銈嬩汉銇偍銉曘偋銈儓 + ) // //*********************************************************** @@ -1993,29 +2000,30 @@ void BATTLE_MultiParamChange( BATTLE_MultiList( battleindex, toNo, ToList ); BATTLE_MagicEffect( - battleindex, // 田玄伙奶件犯永弁旦 - attackNo, // 井仃月谛 寞(ㄟ ㄠㄨ) - ToList, // 井仃日木月谛 寞伉旦玄(ㄟ ㄠㄨ) - UseEffect, // 井仃月谛巨白尼弁玄 - RecevEffect // 井仃日木月谛巨白尼弁玄 + battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + attackNo, // 銇嬨亼銈嬩汉鐣彿(锛愶綖锛戯紮) + ToList, // 銇嬨亼銈夈倢銈嬩汉鐣彿銉偣銉(锛愶綖锛戯紮) + UseEffect, // 銇嬨亼銈嬩汉銈ㄣ儠銈с偗銉 + RecevEffect // 銇嬨亼銈夈倢銈嬩汉銈ㄣ儠銈с偗銉 + ); charaindex = BATTLE_No2Index( battleindex, attackNo ); - // 升及由仿丢□正卞允月井 + // 銇┿伄銉戙儵銉°兗銈裤伀銇欍倠銇 for( i = 0; ToList[i] != -1; i ++ ){ - // 锹澎及奶件犯永弁旦 + // 鐩告墜銇偆銉炽儑銉冦偗銈 toindex = BATTLE_No2Index( battleindex, ToList[i] ); switch( kind ){ case PC_KIND_ATTACK: if( par ){ - // ⊙煌遥卅凶户}ㄠㄟㄟ反井仃卅中 + // 锛呰▓绠椼仾銇熴倎銆侊紤锛愶紣銇亱銇戙仾銇 work = CHAR_getWorkInt( toindex, CHAR_WORKFIXSTR ); work = work * power; }else{ - // 公及引引及煌遥卅凶户ㄠㄟㄟ井仃月 + // 銇濄伄銇俱伨銇▓绠椼仾銇熴倎锛戯紣锛愩亱銇戙倠 work = power * 100; } CHAR_setWorkInt( toindex, CHAR_WORKMODATTACK, @@ -2024,11 +2032,11 @@ void BATTLE_MultiParamChange( break; case PC_KIND_DEFENSE: if( par ){ - // ⊙煌遥卅凶户}ㄠㄟㄟ反井仃卅中 + // 锛呰▓绠椼仾銇熴倎銆侊紤锛愶紣銇亱銇戙仾銇 work = CHAR_getWorkInt( toindex, CHAR_WORKFIXTOUGH ); work = work * power; }else{ - // 公及引引及煌遥卅凶户ㄠㄟㄟ井仃月 + // 銇濄伄銇俱伨銇▓绠椼仾銇熴倎锛戯紣锛愩亱銇戙倠 work = power * 100; } CHAR_setWorkInt( toindex, CHAR_WORKMODDEFENCE, @@ -2037,11 +2045,11 @@ void BATTLE_MultiParamChange( break; case PC_KIND_QUICK: if( par ){ - // ⊙煌遥卅凶户}ㄠㄟㄟ反井仃卅中 + // 锛呰▓绠椼仾銇熴倎銆侊紤锛愶紣銇亱銇戙仾銇 work = CHAR_getWorkInt( toindex, CHAR_WORKFIXDEX ); work = work * power; }else{ - // 公及引引及煌遥卅凶户ㄠㄟㄟ井仃月 + // 銇濄伄銇俱伨銇▓绠椼仾銇熴倎锛戯紣锛愩亱銇戙倠 work = power * 100; } CHAR_setWorkInt( toindex, CHAR_WORKMODQUICK, @@ -2050,11 +2058,11 @@ void BATTLE_MultiParamChange( break; case PC_KIND_CHARM: if( par ){ - // CHARM 反 100 今木化卅中凶户}100坌及ㄠ允月 + // CHARM 銇 100鍊嶃仌銈屻仸銇亜銇熴倎銆100鍒嗐伄锛戙仚銈 work = CHAR_getWorkInt( toindex, CHAR_WORKFIXCHARM ); work = work * power * 0.01; }else{ - // 公及引引及煌遥 + // 銇濄伄銇俱伨銇▓绠 work = power; } CHAR_setWorkInt( toindex, CHAR_WORKMODCHARM, @@ -2062,7 +2070,7 @@ void BATTLE_MultiParamChange( res = work; break; case PC_KIND_CAPTURE: - // CAPTURE 反 % 及心 + // CAPTURE 銇 % 銇伩 work = power; CHAR_setWorkInt( toindex, CHAR_WORKMODCAPTURE, CHAR_getWorkInt( toindex, CHAR_WORKMODCAPTURE ) + work ); @@ -2070,15 +2078,15 @@ void BATTLE_MultiParamChange( break; } - // 仇仇引匹 凶日 内岳 + // 銇撱亾銇俱仹鏉ャ仧銈夊繀銇氭垚鍔 //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)被(%s)(%+d)", + // "(%s)琚(%s)(%+d)", // CHAR_getUseName( toindex ), // aszParamChangeFull[kind], // res //); - // 须 煤 + // 瀹熸硜涓稒 //BATTLE_BroadCast( battleindex, szBuffer, // (attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; @@ -2092,14 +2100,14 @@ void BATTLE_MultiParamChange( //*********************************************************** // -// 芊羁匹 醒及箪岭 鳖 +// 榄旀硶绛夈仹瑜囨暟銇睘鎬у弽杌 // void BATTLE_MultiAttReverse( - int battleindex, // 田玄伙奶件犯永弁旦 - int attackNo, // 井仃月谛 寞 - int toNo, // 井仃日木月谛 寞 - int UseEffect, // 银丹谛及巨白尼弁玄 - int RecevEffect // 井仃日木月谛及巨白尼弁玄 + int battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + int attackNo, // 銇嬨亼銈嬩汉鐣彿 + int toNo, // 銇嬨亼銈夈倢銈嬩汉鐣彿 + int UseEffect, // 浣裤亞浜恒伄銈ㄣ儠銈с偗銉 + int RecevEffect // 銇嬨亼銈夈倢銈嬩汉銇偍銉曘偋銈儓 ) // //*********************************************************** @@ -2113,44 +2121,44 @@ void BATTLE_MultiAttReverse( BATTLE_MultiList( battleindex, toNo, ToList ); BATTLE_MagicEffect( - battleindex, // 田玄伙奶件犯永弁旦 - attackNo, // 井仃月谛 寞(ㄟ ㄠㄨ) - ToList, // 井仃日木月谛 寞伉旦玄(ㄟ ㄠㄨ) - UseEffect, // 井仃月谛巨白尼弁玄 - RecevEffect // 井仃日木月谛巨白尼弁玄 + battleindex, // 銉愩儓銉偆銉炽儑銉冦偗銈 + attackNo, // 銇嬨亼銈嬩汉鐣彿(锛愶綖锛戯紮) + ToList, // 銇嬨亼銈夈倢銈嬩汉鐣彿銉偣銉(锛愶綖锛戯紮) + UseEffect, // 銇嬨亼銈嬩汉銈ㄣ儠銈с偗銉 + RecevEffect // 銇嬨亼銈夈倢銈嬩汉銈ㄣ儠銈с偗銉 ); charaindex = BATTLE_No2Index( battleindex, attackNo ); - // 升及由仿丢□正卞允月井 + // 銇┿伄銉戙儵銉°兗銈裤伀銇欍倠銇 for( i = 0; ToList[i] != -1; i ++ ){ - // 锹澎及奶件犯永弁旦 + // 鐩告墜銇偆銉炽儑銉冦偗銈 toindex = BATTLE_No2Index( battleindex, ToList[i] ); flg = CHAR_getWorkInt( toindex, CHAR_WORKBATTLEFLG ); - flg ^= CHAR_BATTLEFLG_REVERSE; // 鳖 + flg ^= CHAR_BATTLEFLG_REVERSE; // 鍙嶈虎 CHAR_setWorkInt( toindex, CHAR_WORKBATTLEFLG, flg ); OnOff = ( flg & CHAR_BATTLEFLG_REVERSE )?(1):(0); - // 仇仇匹允井今内 鳖今六月 + //銇撱亾銇с仚銇嬨仌銇氬弽杌€仌銇涖倠 BATTLE_AttReverse( toindex ); if( OnOff ){ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)的属性变成相反。", + // "(%s)鐨勫睘鎬у彉鎴愮浉鍙嶃", // CHAR_getUseName( toindex ) ); }else{ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)回复成原本的属性。", + // "(%s)鍥炲鎴愬師鏈殑灞炴с", // CHAR_getUseName( toindex ) ); } - // 须 煤 + // 瀹熸硜涓稒 //BATTLE_BroadCast( battleindex, szBuffer, // (attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; - // 仇仇匹箪岭 鳖及 侬 毛霜月 + // 銇撱亾銇у睘鎬у弽杌€伄鏂囧瓧鍒椼倰閫併倠 sprintf( szBuffer, "BR|%X|%X|", ToList[i], OnOff ); BATTLESTR_ADD( szBuffer ); } @@ -2204,7 +2212,7 @@ void BATTLE_MultiCaptureUp( CHAR_setWorkInt( toindex, CHAR_WORKMODCAPTURE, workhp ); //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)的捕获率变成(%d)", + // "(%s)鐨勬崟鑾风巼鍙樻垚(%d)", // CHAR_getUseName( toindex ), UpPoint ); //BATTLE_BroadCast( battleindex, szBuffer, @@ -2224,15 +2232,15 @@ void BATTLE_MultiCaptureUp( //**************************************************************** // -// 白奴□伙玉箪岭 凳热诸 +// 銉曘偅銉笺儷銉夊睘鎬у鏇村應琛 // int BATTLE_FieldAttChange( - int charaindex, // 井仃月谛及奶件犯永弁旦 + int charaindex, // 銇嬨亼銈嬩汉銇偆銉炽儑銉冦偗銈 char *pArg ) // -// 岳 允木壬 TRUE -// 撩 卅日 FALSE +// 鎴愬姛銇欍倢銇 TRUE +// 澶辨晽銇倝 FALSE // //**************************************************************** @@ -2243,18 +2251,18 @@ int BATTLE_FieldAttChange( int FieldAttr[] = { BATTLE_ATTR_NONE, BATTLE_ATTR_EARTH, BATTLE_ATTR_WATER, BATTLE_ATTR_FIRE, BATTLE_ATTR_WIND }; char szCommand[256], // Robin 03/20 debug - //*pszP, *aszAttr[] = { "无", "土", "水", "火", "风" }; - *pszP, *aszAttr[] = { "无", "地", "水", "火", "风" }; + //*pszP, *aszAttr[] = { "鏃", "鍦", "姘", "鐏", "椋" }; + *pszP, *aszAttr[] = { "鏃", "鍦", "姘", "鐏", "椋" }; // Robin 03/21 debug - //char szTurn[] = "回"; + //char szTurn[] = "鍥"; char szTurn[] = "turn"; pszP = pArg; - // 箪岭毛潸 + // 灞炴с倰鍙栧緱 for( ;attr == -1 && pszP[0] != 0; pszP++ ){ for( i = 0; i < 5; i ++ ){ - // 箪岭疋永正伉井" + // 灞炴с償銉冦偪銉亱锛 if( strncmp( pszP, aszAttr[i], 2 ) == 0 ){ attr = i; pszP +=2; @@ -2262,17 +2270,17 @@ int BATTLE_FieldAttChange( } } } - // 箪岭 中及匹撩 + // 灞炴х劇銇勩伄銇уけ鏁 if( attr == -1 ) { return FALSE; } - // 升木仁日中 凳今六月井" + // 銇┿倢銇忋倝銇勫鏇淬仌銇涖倠銇嬶紵 sscanf( pszP, "%d", &power ); if( power < 0 || power > 100 )power = 30; - // 窒正□件 凳今六月井" + // 浣曘偪銉笺兂澶夋洿銇曘仜銈嬨亱锛 if( ( pszP = strstr( pszP, szTurn ) ) != NULL){ pszP += sizeof( szTurn ); sscanf( pszP, "%d", &turn ); @@ -2280,17 +2288,17 @@ int BATTLE_FieldAttChange( battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); if( BATTLE_CHECKINDEX( battleindex ) == FALSE )return FALSE; - // 祭今六月箪岭 + // 澶夊寲銇曘仜銈嬪睘鎬 BattleArray[battleindex].field_att = FieldAttr[attr]; - // 膜恳允月由伐□ + // 淇銇欍倠銉戙儻銉 BattleArray[battleindex].att_pow = power; - // 膜恳允月正□件醒 + // 淇銇欍倠銈裤兗銉虫暟 BattleArray[battleindex].att_count = turn; - // 仇仇引匹 凶日 内岳 + // 銇撱亾銇俱仹鏉ャ仧銈夊繀銇氭垚鍔 if( attr >= 0 ){ //snprintf( szBuffer, sizeof(szBuffer), - // "(%s)将field的属性改为(%s)", + // "(%s)灏唂ield鐨勫睘鎬ф敼涓(%s)", // CHAR_getUseName( charaindex ), // aszAttr[attr] //); @@ -2298,11 +2306,11 @@ int BATTLE_FieldAttChange( attackNo = BATTLE_Index2No( battleindex, charaindex ); - // 须 煤 + // 瀹熸硜涓稒 //BATTLE_BroadCast( battleindex, szBuffer, // (attackNo >= 10)? CHAR_COLORGRAY : CHAR_COLORPURPLE ) ; - // 仇仇匹 侬 戊穴件玉毛中木月 + // 銇撱亾銇ф枃瀛楀垪銈炽優銉炽儔銈掋亜銈屻倠 sprintf( szCommand, "BV|%X|%X|",attackNo, attr ); BATTLESTR_ADD( szCommand ); @@ -2315,25 +2323,26 @@ int BATTLE_FieldAttChange( //**************************************************************** // -// 白奴□伙玉箪岭 凳热诸 +// 銉曘偅銉笺儷銉夊睘鎬у鏇村應琛 // int MAGIC_FieldAttChange_Battle( - int charaindex, // 井仃月谛及奶件犯永弁旦 - int toNo, // 井仃日木月谛及奶件犯永弁旦( 银迕) + int charaindex, // 銇嬨亼銈嬩汉銇偆銉炽儑銉冦偗銈 + int toNo, // 銇嬨亼銈夈倢銈嬩汉銇偆銉炽儑銉冦偗銈(鏈娇鐢) int marray, // magicindex int mp // MP ) -// 岳 允木壬 TRUE -// 撩 卅日 FALSE +// 鎴愬姛銇欍倢銇 TRUE +// 澶辨晽銇倝 FALSE + // //**************************************************************** { char *pArg; - // 由仿丢□正毛潸 + // 銉戙儵銉°兗銈裤倰鍙栧緱 pArg = MAGIC_getChar( marray, MAGIC_OPTION ); - // 由仿丢□正 中及匹撩 + // 銉戙儵銉°兗銈跨劇銇勩伄銇уけ鏁 if( pArg == "\0" )return FALSE; return BATTLE_FieldAttChange( charaindex, pArg ); @@ -2341,16 +2350,17 @@ int MAGIC_FieldAttChange_Battle( } //**************************************************************** // -// 旦 □正旦唱橘毛芨尹月热诸 +// 銈广儐銉笺偪銈圭暟甯搞倰涓庛亪銈嬪應琛 // int MAGIC_StatusChange_Battle( - int charaindex, // 井仃月谛及奶件犯永弁旦 - int toNo, // 井仃日木月谛及奶件犯永弁旦 + int charaindex, // 銇嬨亼銈嬩汉銇偆銉炽儑銉冦偗銈 + int toNo, // 銇嬨亼銈夈倢銈嬩汉銇偆銉炽儑銉冦偗銈 int marray, // magicindex int mp // MP ) -// 岳 仄凶日 TRUE -// 撩 仄凶日 FALSE +// 鎴愬姛銇椼仧銈 TRUE +// 澶辨晽銇椼仧銈 FALSE + //**************************************************************** { @@ -2359,7 +2369,7 @@ int MAGIC_StatusChange_Battle( int battleindex, ReceveEffect, Success = 15; char *pszP; char szTurn[] = "turn"; - char szSuccess[] = "成"; + char szSuccess[] = "鎴"; magicarg = MAGIC_getChar( marray, MAGIC_OPTION ); pszP = magicarg; @@ -2384,9 +2394,9 @@ int MAGIC_StatusChange_Battle( battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); if( status == BATTLE_ST_NONE ){ - ReceveEffect = SPR_tyusya; // 月午五反仇木 + ReceveEffect = SPR_tyusya; // 鐩淬倠銇ㄣ亶銇亾銈 }else{ - ReceveEffect = SPR_hoshi; // 井井月午五反仇木 + ReceveEffect = SPR_hoshi; // 銇嬨亱銈嬨仺銇嶃伅銇撱倢 } BATTLE_MultiStatusChange( battleindex, attackNo, toNo, @@ -2399,13 +2409,14 @@ int MAGIC_StatusChange_Battle( #ifdef _MAGIC_DEEPPOISON int MAGIC_StatusChange_Battle2( - int charaindex, // 井仃月谛及奶件犯永弁旦 - int toNo, // 井仃日木月谛及奶件犯永弁旦 + int charaindex, // 銇嬨亼銈嬩汉銇偆銉炽儑銉冦偗銈 + int toNo, // 銇嬨亼銈夈倢銈嬩汉銇偆銉炽儑銉冦偗銈 int marray, // magicindex int mp // MP ) -// 岳 仄凶日 TRUE -// 撩 仄凶日 FALSE +// 鎴愬姛銇椼仧銈 TRUE +// 澶辨晽銇椼仧銈 FALSE + //**************************************************************** { @@ -2414,18 +2425,18 @@ int MAGIC_StatusChange_Battle2( int battleindex, ReceveEffect, Success = 15; char *pszP; char szTurn[] = "turn"; - char szSuccess[] = "成"; + char szSuccess[] = "鎴"; magicarg = MAGIC_getChar( marray, MAGIC_OPTION ); if( magicarg == "\0" ) { //print("\n magicarg == NULL "); return FALSE; } pszP = magicarg; - // 躲绊毛潸 + // 鍔规灉銈掑彇寰 for( ;status == -1 && pszP[0] != 0; pszP++ ){ - // ㄠ井日腹绸 + // 锛戙亱銈夋绱 for( i = 1; i < BATTLE_ST_END; i ++ ){ - // 躲绊疋永正伉井" + // 鍔规灉銉斻儍銈裤儶銇嬶紵 if( strncmp( pszP, aszStatus[i], 2 ) == 0 ){ status = i; pszP +=2; @@ -2433,16 +2444,16 @@ int MAGIC_StatusChange_Battle2( } } } - // 躲绊卅中及匹撩 + // 鍔规灉銇亜銇仹澶辨晽 if( status == -1 ) return FALSE; - // 窒正□件 凳今六月井" + // 浣曘偪銉笺兂澶夋洿銇曘仜銈嬨亱锛 if( ( pszP = strstr( pszP, szTurn ) ) != NULL){ pszP += sizeof( szTurn ); sscanf( pszP, "%d", &turn ); } - // 岳 涩烂 + // 鎴愬姛鐜囪ō瀹 if( ( pszP = strstr( pszP, szSuccess ) ) != NULL){ pszP += sizeof( szSuccess ); sscanf( pszP, "%d", &Success ); @@ -2450,16 +2461,16 @@ int MAGIC_StatusChange_Battle2( - // 田玄伙 寞 + // 銉愩儓銉暘鍙 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); if( status == BATTLE_ST_NONE ){ - ReceveEffect = SPR_tyusya; // 月午五反仇木 + ReceveEffect = SPR_tyusya; // 鐩淬倠銇ㄣ亶銇亾銈 }else{ - ReceveEffect = SPR_hoshi; // 井井月午五反仇木 + ReceveEffect = SPR_hoshi; // 銇嬨亱銈嬨仺銇嶃伅銇撱倢 } - // 蝈够 + // 鍏ㄥ摗 BATTLE_MultiStatusChange( battleindex, attackNo, toNo, status, turn+2, MAGIC_EFFECT_USER, ReceveEffect, Success ); return TRUE; @@ -2492,13 +2503,13 @@ int MAGIC_MagicStatusChange_Battle( int charaindex, int toNo, int marray, int mp nums = atoi( buf1); if( getStringFromIndexWithDelim( magicarg,"|",4, buf1, sizeof( buf1)) == FALSE ) return FALSE; - if( strstr( buf1, "单") != 0 ) { + if( strstr( buf1, "鍗") != 0 ) { if( toNo >= 20 ) return FALSE; } battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); - //动画图号决定 + //鍔ㄧ敾鍥惧彿鍐冲畾 #define SPR_mic_def 101411 ReceveEffect = SPR_heal2; if( status == 1 ) @@ -2579,16 +2590,18 @@ int MAGIC_MagicDef_Battle( //**************************************************************** // -// 由仿丢□正 祭毛芨尹月热诸 +// 銉戙儵銉°兗銈垮鍖栥倰涓庛亪銈嬪應琛 // int MAGIC_ParamChange_Battle( - int charaindex, // 井仃月谛及奶件犯永弁旦 - int toNo, // 井仃日木月谛及奶件犯永弁旦 + int charaindex, // 銇嬨亼銈嬩汉銇偆銉炽儑銉冦偗銈 + int toNo, // 銇嬨亼銈夈倢銈嬩汉銇偆銉炽儑銉冦偗銈 int marray, // magicindex int mp // MP + ) -// 岳 仄凶日 TRUE -// 撩 仄凶日 FALSE +// 鎴愬姛銇椼仧銈 TRUE +// 澶辨晽銇椼仧銈 FALSE + //**************************************************************** { @@ -2598,14 +2611,14 @@ int MAGIC_ParamChange_Battle( char *pszP; - // 由仿丢□正毛潸 //魔法名称 + // 銉戙儵銉°兗銈裤倰鍙栧緱 //榄旀硶鍚嶇О magicarg = MAGIC_getChar( marray, MAGIC_OPTION ); pszP = magicarg; - // 躲绊毛潸 //取得更改参数(无,攻,防,早,魅,捕) + // 鍔规灉銈掑彇寰 //鍙栧緱鏇存敼鍙傛暟(鏃,鏀,闃,鏃,榄,鎹) for( ;kind == -1 && pszP[0] != 0; pszP++ ){ for( i = 1; i < BATTLE_MD_END; i ++ ){ - // 躲绊疋永正伉井" + // 鍔规灉銉斻儍銈裤儶銇嬶紵锛 if( strncmp( pszP, aszParamChange[i], 2 ) == 0 ){ kind = i; pszP +=2; @@ -2613,23 +2626,23 @@ int MAGIC_ParamChange_Battle( } } } - // 躲绊卅中及匹撩 + // 鍔规灉銇亜銇仹澶辨晽 if( kind == -1 ) return FALSE; - if( strstr( pszP, "%" ) ){ // 仇及桦宁反⊙煌遥 + if( strstr( pszP, "%" ) ){ // 銇撱伄鍫村悎銇紖瑷堢畻 par = 1; } if( sscanf( pszP, "%d", &pow ) != 1 ){ - // 窒禾奶件玄丐仆月井 + // 浣曘儩銈ゃ兂銉堛亗銇掋倠銇 pow = 30; } - // 田玄伙 寞 + // 銉愩儓銉暘鍙 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); - // 蝈够 + // 鍏ㄥ摗 BATTLE_MultiParamChange( battleindex, attackNo, toNo, kind, pow, par, MAGIC_EFFECT_USER, SPR_hoshi ); @@ -2649,28 +2662,29 @@ int MAGIC_ParamChange_Battle( //**************************************************************** // -// 蜊谛及箪岭 鳖毛芨尹月热诸 +// 鍊嬩汉銇睘鎬у弽杌€倰涓庛亪銈嬪應琛 // int MAGIC_AttReverse_Battle( - int charaindex, // 井仃月谛及奶件犯永弁旦 - int toNo, // 井仃日木月谛及奶件犯永弁旦 + int charaindex, // 銇嬨亼銈嬩汉銇偆銉炽儑銉冦偗銈 + int toNo, // 銇嬨亼銈夈倢銈嬩汉銇偆銉炽儑銉冦偗銈 int marray, // magicindex int mp // MP ) -// 岳 仄凶日 TRUE -// 撩 仄凶日 FALSE +// 鎴愬姛銇椼仧銈 TRUE +// 澶辨晽銇椼仧銈 FALSE //**************************************************************** { int attackNo; int battleindex; - // 由仿丢□正反漆及午仇欠 中 - // 田玄伙 寞 + // 銉戙儵銉°兗銈裤伅浠娿伄銇ㄣ亾銈嶇劇銇 + // 銉愩儓銉暘鍙 + battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); - // 蝈够 + // 鍏ㄥ摗 BATTLE_MultiAttReverse( battleindex, attackNo, toNo, MAGIC_EFFECT_USER, SPR_kyu ); @@ -2682,16 +2696,16 @@ int MAGIC_AttReverse_Battle( //**************************************************************** // -// 旦 □正旦唱橘毛荚汊允月热诸 +// 銈广儐銉笺偪銈圭暟甯搞倰鍥炲京銇欍倠鍛 // int MAGIC_StatusRecovery_Battle( - int charaindex, // 井仃月谛及奶件犯永弁旦 - int toNo, // 井仃日木月谛及奶件犯永弁旦 + int charaindex, // 銇嬨亼銈嬩汉銇偆銉炽儑銉冦偗銈 + int toNo, // 銇嬨亼銈夈倢銈嬩汉銇偆銉炽儑銉冦偗銈 int marray, // magicindex int mp // MP ) -// 岳 仄凶日 TRUE -// 撩 仄凶日 FALSE +// 鎴愬姛銇椼仧銈 TRUE +// 澶辨晽銇椼仧銈 FALSE //**************************************************************** { char *magicarg; @@ -2699,15 +2713,15 @@ int MAGIC_StatusRecovery_Battle( int battleindex, ReceveEffect; char *pszP; - // 由仿丢□正毛潸 + // 銉戙儵銉°兗銈裤倰鍙栧緱 magicarg = MAGIC_getChar( marray, MAGIC_OPTION ); pszP = magicarg; - // 躲绊毛潸 + // 鍔规灉銈掑彇寰 for( ;status == -1 && pszP[0] != 0; pszP++ ){ - // 蝈莒手丐月及匹ㄟ井日腹绸 + // 鍏ㄥ揩銈傘亗銈嬨伄銇э紣銇嬨倝妞滅储 for( i = 0; i < BATTLE_ST_END; i ++ ){ - // 躲绊疋永正伉井" + // 鍔规灉銉斻儍銈裤儶銇嬶紵 if( strncmp( pszP, aszStatus[i], 2 ) == 0 ){ status = i; pszP +=2; @@ -2715,17 +2729,17 @@ int MAGIC_StatusRecovery_Battle( } } } - // 躲绊卅中及匹撩 + // 鍔规灉銇亜銇仹澶辨晽 if( status == -1 ) return FALSE; - // 田玄伙 寞 + // 銉愩儓銉暘鍙 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); - ReceveEffect = SPR_tyusya; // 月午五反仇木 + ReceveEffect = SPR_tyusya; // 鐩淬倠銇ㄣ亶銇亾銈 - // 蝈够 + // 鍏ㄥ摗 BATTLE_MultiStatusRecovery( battleindex, attackNo, toNo, status, MAGIC_EFFECT_USER, ReceveEffect ); @@ -2737,16 +2751,16 @@ int MAGIC_StatusRecovery_Battle( //**************************************************************** // -// 竣濮井日汊唾允月热诸 +// 姘楃刀銇嬨倝寰╂椿銇欍倠鍛 // int MAGIC_Ressurect_Battle( - int charaindex, // 井仃月谛及奶件犯永弁旦 - int toNo, // 井仃日木月谛及奶件犯永弁旦 + int charaindex, // 銇嬨亼銈嬩汉銇偆銉炽儑銉冦偗銈 + int toNo, // 銇嬨亼銈夈倢銈嬩汉銇偆銉炽儑銉冦偗銈 int marray, // magicindex int mp // MP ) -// 岳 仄凶日 TRUE -// 撩 仄凶日 FALSE +// 鎴愬姛銇椼仧銈 TRUE +// 澶辨晽銇椼仧銈 FALSE //**************************************************************** { char *magicarg; @@ -2755,17 +2769,17 @@ int MAGIC_Ressurect_Battle( char *pszP; - // 由仿丢□正毛潸 + // 銉戙儵銉°兗銈裤倰鍙栧緱 magicarg = MAGIC_getChar( marray, MAGIC_OPTION ); pszP = magicarg; - if( strstr( pszP, "%" ) ){ // 仇及桦宁反⊙煌遥 + if( strstr( pszP, "%" ) ){ // 銇撱伄鍫村悎銇紖瑷堢畻 par = 1; } if( sscanf( pszP, "%d", &pow ) != 1 ){ - // 窒禾奶件玄荚汊允月井" - pow = 0; // ㄟ及桦宁反敦蝈荚汊 + // 浣曘儩銈ゃ兂銉堝洖寰┿仚銈嬨亱锛 + pow = 0; // 锛愩伄鍫村悎銇畬鍏ㄥ洖寰 } if( pow <= 0 ){ @@ -2780,11 +2794,11 @@ int MAGIC_Ressurect_Battle( ReceveEffect = SPR_fukkatu3; } - // 田玄伙 寞 + // 銉愩儓銉暘鍙 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); - // 蝈够 + // 鍏ㄥ摗 BATTLE_MultiRessurect( battleindex, attackNo, toNo, pow, par, MAGIC_EFFECT_USER, ReceveEffect ); @@ -2803,43 +2817,44 @@ int MAGIC_ResAndDef_Battle( int attackNo, i; int battleindex, pow = 0, par = 0, turn = 3, status = -1; // Robin 03/21 debug - //char szTurn[] = "回"; + //char szTurn[] = "鍥"; char szTurn[] = "turn"; char *pszP; // Terry add 2004/12/7 - // 复活光..不得使用敌方 + // 澶嶆椿鍏..涓嶅緱浣跨敤鏁屾柟 battleindex = CHAR_getWorkInt(charaindex, CHAR_WORKBATTLEINDEX); if(CHAR_getInt(charaindex, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER) { - if(BATTLE_CheckSameSide(charaindex, toNo) == 0) //不同边 + if(BATTLE_CheckSameSide(charaindex, toNo) == 0) //涓嶅悓杈 { battleindex = CHAR_getWorkInt(charaindex, CHAR_WORKBATTLEINDEX); BATTLE_NoAction(battleindex, BATTLE_Index2No(battleindex, charaindex)); - CHAR_talkToCli(charaindex, -1, "复活光镜守..不得施予非玩家敌方。", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "澶嶆椿鍏夐暅瀹..涓嶅緱鏂戒簣闈炵帺瀹舵晫鏂广", CHAR_COLORYELLOW); return FALSE; } } // end - // 由仿丢□正毛潸 + // 銉戙儵銉°兗銈裤倰鍙栧緱 magicarg = MAGIC_getChar( marray, MAGIC_OPTION ); pszP = magicarg; - if( strstr( pszP, "%" ) ){ // 仇及桦宁反⊙煌遥 + if( strstr( pszP, "%" ) ){ // 銇撱伄鍫村悎銇紖瑷堢畻 par = 1; } if( sscanf( pszP, "%d", &pow ) != 1 ){ - // 窒禾奶件玄荚汊允月井" - pow = 0; // ㄟ及桦宁反敦蝈荚汊 + // 浣曘儩銈ゃ兂銉堝洖寰┿仚銈嬨亱锛 + pow = 0; // 锛愩伄鍫村悎銇畬鍏ㄥ洖寰 + } - // 馨笛允月 芊 豢躲绊毛潸 + // 杩藉姞銇欍倠榄旀硶闃插尽鍔规灉銈掑彇寰 for( ;status == -1 && pszP[0] != 0; pszP++ ){ for( i = 1; i < BATTLE_MD_END; i ++ ){ char *p; - // 躲绊疋永正伉井" + // 鍔规灉銉斻儍銈裤儶銇嬶紵 p = strstr( pszP, aszMagicDef[i] ); if( p != NULL ){ status = i; @@ -2849,20 +2864,20 @@ int MAGIC_ResAndDef_Battle( } } - // 躲绊卅中及匹撩 + // 鍔规灉銇亜銇仹澶辨晽 if( status == -1 ) return FALSE; - // 窒荚 凳今六月井" + // 浣曞洖澶夋洿銇曘仜銈嬨亱锛 if( ( pszP = strstr( pszP, szTurn ) ) != NULL){ pszP += sizeof( szTurn ); sscanf( pszP, "%d", &turn ); } - // 田玄伙 寞 + // 銉愩儓銉暘鍙 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); - // 蝈够 + // 鍏ㄥ摗 BATTLE_MultiResAndDef( battleindex, attackNo, toNo, pow, par, status, turn, MAGIC_EFFECT_USER, SPR_difence ); @@ -2875,7 +2890,7 @@ int MAGIC_AttMagic_Battle( int charaindex , int toNo , int marray , int mp ) { int attno , attidx , battleindex; int attr = -1, i , power; - char aszattr[][32] = { "地", "水", "火", "风" }; + char aszattr[][32] = { "鍦", "姘", "鐏", "椋" }; char buf1[256]; char *magicarg; int magiclv=0; @@ -2924,7 +2939,7 @@ int MAGIC_ToCallDragon_Battle( int charaindex , int toNo , int marray , int mp ) { int attno , attidx , battleindex; int attr = -1,/* i , */power, imageno; -// char aszattr[][32] = { "地", "水", "火", "风" }; +// char aszattr[][32] = { "鍦", "姘", "鐏", "椋" }; char buf1[256]; char *magicarg; //int magiclv=0; @@ -2967,37 +2982,39 @@ int MAGIC_ToCallDragon_Battle( int charaindex , int toNo , int marray , int mp ) //**************************************************************** // -// 凯 祭允月热诸 +// 鎹曠嵅鐜囧鍖栥仚銈嬪應琛 // int MAGIC_CaptureUp_Battle( - int charaindex, // 井仃月谛及奶件犯永弁旦 - int toNo, // 井仃日木月谛及奶件犯永弁旦 + int charaindex, // 銇嬨亼銈嬩汉銇偆銉炽儑銉冦偗銈 + int toNo, // 銇嬨亼銈夈倢銈嬩汉銇偆銉炽儑銉冦偗銈 int marray, // magicindex int mp // MP + ) -// 岳 仄凶日 TRUE -// 撩 仄凶日 FALSE +// 鎴愬姛銇椼仧銈 TRUE +// 澶辨晽銇椼仧銈 FALSE + //**************************************************************** { char *magicarg; int attackNo, ReceveEffect; int battleindex, pow = 5; - // 由仿丢□正毛潸 + // 銉戙儵銉°兗銈裤倰鍙栧緱 magicarg = MAGIC_getChar( marray, MAGIC_OPTION ); if( sscanf( magicarg, "%d", &pow ) != 1 ){ - // 窒禾奶件玄荚汊允月井" + // 浣曘儩銈ゃ兂銉堝洖寰┿仚銈嬨亱锛 pow = 5; } ReceveEffect = SPR_hoshi; - // 田玄伙 寞 + // 銉愩儓銉暘鍙 battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); attackNo = BATTLE_Index2No( battleindex, charaindex ); - // 蝈够 + // 鍏ㄥ摗 BATTLE_MultiCaptureUp( battleindex, attackNo, toNo, pow, MAGIC_EFFECT_USER, ReceveEffect ); @@ -3009,10 +3026,10 @@ static int BATTLE_getMagicAdjustInt( int attackindex, int defindex, int MagicLv, int At_Fire, At_Earth, At_Water, At_Wind, At_none; int Df_Fire, Df_Earth, Df_Water, Df_Wind, Df_none; float At_FieldPow, Df_FieldPow; - //取得施法者属性 + //鍙栧緱鏂芥硶鑰呭睘鎬 BATTLE_GetAttr(attackindex,&At_Fire,&At_Water,&At_Earth,&At_Wind,&At_none); MagicLv *=10; - switch( flg) { //将属性置换为魔法牵引属性 + switch( flg) { //灏嗗睘鎬х疆鎹负榄旀硶鐗靛紩灞炴 case 0: At_Earth = MagicLv+(MagicLv*(At_Earth/50)); At_Water=0; At_Fire=0; At_Wind=0; @@ -3030,21 +3047,21 @@ static int BATTLE_getMagicAdjustInt( int attackindex, int defindex, int MagicLv, At_Earth=0; At_Water=0; At_Fire=0; break; } - //取得该场属性加成 + //鍙栧緱璇ュ満灞炴у姞鎴 At_FieldPow = BATTLE_FieldAttAdjust( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLEINDEX ), At_Fire, At_Water, At_Earth, At_Wind ); At_Fire *= damage; At_Water *= damage; At_Earth *= damage; At_Wind *= damage; At_none *= damage; - //取得防守方属性 + //鍙栧緱闃插畧鏂瑰睘鎬 BATTLE_GetAttr( defindex, &Df_Fire, &Df_Water, &Df_Earth,&Df_Wind, &Df_none ); - //取得该场属性加成 + //鍙栧緱璇ュ満灞炴у姞鎴 Df_FieldPow = BATTLE_FieldAttAdjust( CHAR_getWorkInt( defindex, CHAR_WORKBATTLEINDEX ), Df_Fire, Df_Water, Df_Earth, Df_Wind ); - //四属相克 + //鍥涘睘鐩稿厠 damage = BATTLE_AttrCalc( At_Fire, At_Water, At_Earth, At_Wind, At_none, Df_Fire, Df_Water, Df_Earth, Df_Wind, Df_none ); @@ -3056,7 +3073,7 @@ void Magic_ComputeAttExp( int charindex, int Mnum, int MagicLv, int Expoint) { int magiclv1, magicex1; int addEx = (MagicLv * 3) * Expoint; - char MagicStr[][128]={"地","水","火","风"}; + char MagicStr[][128]={"鍦","姘","鐏","椋"}; char buf1[256]; memset( buf1, 0, sizeof( buf1)); magiclv1 = CHAR_getInt( charindex, CHAR_EARTH_EXP+Mnum); @@ -3066,7 +3083,7 @@ void Magic_ComputeAttExp( int charindex, int Mnum, int MagicLv, int Expoint) magicex1 = 0; if( magiclv1 < 100 ) { magiclv1 += 1; - sprintf( buf1,"%s魔法熟练度提升为%d。", MagicStr[Mnum], magiclv1); + sprintf( buf1,"%s榄旀硶鐔熺粌搴︽彁鍗囦负%d銆", MagicStr[Mnum], magiclv1); CHAR_talkToCli( charindex, -1, buf1, CHAR_COLORYELLOW); } } @@ -3076,7 +3093,7 @@ void Magic_ComputeAttExp( int charindex, int Mnum, int MagicLv, int Expoint) CHAR_setInt( charindex, CHAR_EARTH_EXP+Mnum, magiclv1); CHAR_setInt( charindex, CHAR_EARTH_ATTMAGIC_EXP+Mnum, magicex1); - Mnum = (Mnum+1)%4; //相克的魔法 + Mnum = (Mnum+1)%4; //鐩稿厠鐨勯瓟娉 magiclv1 = CHAR_getInt( charindex, CHAR_EARTH_EXP+Mnum); magicex1 = CHAR_getInt( charindex, CHAR_EARTH_ATTMAGIC_EXP+Mnum); if( magiclv1 > 1 ) { @@ -3086,7 +3103,7 @@ void Magic_ComputeAttExp( int charindex, int Mnum, int MagicLv, int Expoint) magiclv1 -= 1; if( magiclv1 < 0 ) magiclv1 = 0; CHAR_setInt( charindex, CHAR_EARTH_EXP+Mnum, magiclv1); - sprintf( buf1,"%s魔法熟练度下降为%d。", MagicStr[Mnum], magiclv1); + sprintf( buf1,"%s榄旀硶鐔熺粌搴︿笅闄嶄负%d銆", MagicStr[Mnum], magiclv1); CHAR_talkToCli( charindex, -1, buf1, CHAR_COLORYELLOW); } CHAR_setInt( charindex, CHAR_EARTH_ATTMAGIC_EXP+Mnum, magicex1); @@ -3100,7 +3117,7 @@ void Magic_ComputeDefExp( int charindex, int Mnum, int MagicLv, int Damage) int magicex1; int addEx; char buf1[256]; - char MagicStr[][128]={"地","水","火","风"}; + char MagicStr[][128]={"鍦","姘","鐏","椋"}; if( Damage < 200 ) return; memset( buf1, 0, sizeof( buf1)); magiclv1 = CHAR_getInt( charindex, CHAR_EARTH_RESIST+Mnum); @@ -3115,13 +3132,13 @@ void Magic_ComputeDefExp( int charindex, int Mnum, int MagicLv, int Damage) if( magiclv1 < 0 ) magiclv1 = 0; if( magiclv1 > 100 ) magiclv1 = 100; CHAR_setInt( charindex, CHAR_EARTH_RESIST+Mnum, magiclv1); - sprintf( buf1,"%s抗魔值提升为%d。", MagicStr[Mnum], magiclv1); + sprintf( buf1,"%s鎶楅瓟鍊兼彁鍗囦负%d銆", MagicStr[Mnum], magiclv1); CHAR_talkToCli( charindex, -1, buf1, CHAR_COLORYELLOW); } } if( magicex1 < 0 ) magicex1 = 0; CHAR_setInt( charindex, CHAR_EARTH_DEFMAGIC_EXP+Mnum, magicex1); - Mnum = (Mnum+1)%4; //相克的魔法 + Mnum = (Mnum+1)%4; //鐩稿厠鐨勯瓟娉 magiclv1 = CHAR_getInt( charindex, CHAR_EARTH_RESIST+Mnum); magicex1 = CHAR_getInt( charindex, CHAR_EARTH_DEFMAGIC_EXP+Mnum); if( magiclv1 > 1 ) { @@ -3131,7 +3148,7 @@ void Magic_ComputeDefExp( int charindex, int Mnum, int MagicLv, int Damage) magiclv1 -=1; if( magiclv1 < 0 ) magiclv1 = 0; - sprintf( buf1,"%s抗魔值下降为%d。", MagicStr[Mnum], magiclv1); + sprintf( buf1,"%s鎶楅瓟鍊间笅闄嶄负%d銆", MagicStr[Mnum], magiclv1); CHAR_talkToCli( charindex, -1, buf1, CHAR_COLORYELLOW); CHAR_setInt( charindex, CHAR_EARTH_RESIST+Mnum, magiclv1); } @@ -3155,18 +3172,18 @@ int MAGIC_ParamChange_Turn_Battle( int battleindex, Success = 15; char *pszP; char szTurn[] = "turn"; - char szSuccess[] = "成"; + char szSuccess[] = "鎴"; magicarg = MAGIC_getChar( marray, MAGIC_OPTION ); if( magicarg == "\0" ) { //print("\n magicarg == NULL "); return FALSE; } pszP = magicarg; - // 躲绊毛潸 + // 鍔规灉銈掑彇寰 for( ;status == -1 && pszP[0] != 0; pszP++ ){ - // ㄠ井日腹绸 + // 锛戙亱銈夋绱 for( i = 1; i < BATTLE_ST_END; i ++ ){ - // 躲绊疋永正伉井" + // 鍔规灉銉斻儍銈裤儶銇嬶紵 if( strncmp( pszP, aszStatus[i], 2 ) == 0 ){ status = i; pszP +=2; @@ -3206,10 +3223,10 @@ void BATTLE_MultiParamChangeTurn( int i, toindex,perStatus,charaindex; int ToList[SIDE_OFFSET*2+1]; - charaindex = BATTLE_No2Index( battleindex, attackNo ); //攻方index + charaindex = BATTLE_No2Index( battleindex, attackNo ); //鏀绘柟index BATTLE_MultiList( battleindex, toNo, ToList ); - //施魔法动画效果 + //鏂介瓟娉曞姩鐢绘晥鏋 BATTLE_MagicEffect(battleindex, attackNo, ToList, UseEffect, RecevEffect); for( i = 0; ToList[i] != -1; i ++ ) @@ -3231,36 +3248,36 @@ void BATTLE_MultiParamChangeTurn( /* typedef struct tagToCallMagic { - unsigned int uiSpriteNum; // 此咒术在Spr_x.bin的编号 - unsigned int uiAttackType; // 攻击的方式:单人,整排( 轮流 ) , 整排( 轮流 ) , 整排( 同时 ) , 全体( 轮流 ) , 全体( 同时 ) - unsigned int uiSliceTime; // 轮流攻击时的时间差 - unsigned int uiShowType; // 显示的位置方式:中央、指定 - int siSx; // 显示的位置 - X轴 - int siSy; // 显示的位置 - Y轴 - unsigned int uiShowBehindChar; // 显示在人物的前方或下方 - unsigned int uiShakeScreen; // 是否震动画面 - unsigned int uiShakeFrom; // 震动画面的起始时间( 毫秒 ) - unsigned int uiShakeTo; // 震动画面的结束时间( 毫秒 _ - unsigned int uiPrevMagicNum; // 前置咒术的索引号( 0XFFFFFFFFFF 表示无前置咒术 ) - int siPrevMagicSx; // 前置咒术的显示位置 - X轴 - int siPrevMagicSy; // 前置咒术的显示位置 - Y轴 - int siPrevMagicOnChar; // 前置咒术显示在人物的前方或下方 - unsigned int uiPostMagicNum; // 後置咒术的索引号( 0XFFFFFFFF 表示无後置咒术 ) - int siPostMagicSx; // 後置咒术的显示位置 - X轴 - int siPostMagicSy; // 後置咒术的显示位置 - Y轴 - int siPostMagicOnChar; // 後置咒术显示在人物的前方或下方 - int isPostDisappear; // 咒术一般攻击完时是否马上消失 - int ToCallMagicNo; // 召唤术的编号 + unsigned int uiSpriteNum; // 姝ゅ拻鏈湪Spr_x.bin鐨勭紪鍙 + unsigned int uiAttackType; // 鏀诲嚮鐨勬柟寮忥細鍗曚汉锛屾暣鎺( 杞祦 ) , 鏁存帓( 杞祦 ) , 鏁存帓( 鍚屾椂 ) , 鍏ㄤ綋( 杞祦 ) , 鍏ㄤ綋( 鍚屾椂 ) + unsigned int uiSliceTime; // 杞祦鏀诲嚮鏃剁殑鏃堕棿宸 + unsigned int uiShowType; // 鏄剧ず鐨勪綅缃柟寮忥細涓ぎ銆佹寚瀹 + int siSx; // 鏄剧ず鐨勪綅缃 - X杞 + int siSy; // 鏄剧ず鐨勪綅缃 - Y杞 + unsigned int uiShowBehindChar; // 鏄剧ず鍦ㄤ汉鐗╃殑鍓嶆柟鎴栦笅鏂 + unsigned int uiShakeScreen; // 鏄惁闇囧姩鐢婚潰 + unsigned int uiShakeFrom; // 闇囧姩鐢婚潰鐨勮捣濮嬫椂闂( 姣 ) + unsigned int uiShakeTo; // 闇囧姩鐢婚潰鐨勭粨鏉熸椂闂( 姣 _ + unsigned int uiPrevMagicNum; // 鍓嶇疆鍜掓湳鐨勭储寮曞彿( 0XFFFFFFFFFF 琛ㄧず鏃犲墠缃拻鏈 ) + int siPrevMagicSx; // 鍓嶇疆鍜掓湳鐨勬樉绀轰綅缃 - X杞 + int siPrevMagicSy; // 鍓嶇疆鍜掓湳鐨勬樉绀轰綅缃 - Y杞 + int siPrevMagicOnChar; // 鍓嶇疆鍜掓湳鏄剧ず鍦ㄤ汉鐗╃殑鍓嶆柟鎴栦笅鏂 + unsigned int uiPostMagicNum; // 寰岀疆鍜掓湳鐨勭储寮曞彿( 0XFFFFFFFF 琛ㄧず鏃犲緦缃拻鏈 ) + int siPostMagicSx; // 寰岀疆鍜掓湳鐨勬樉绀轰綅缃 - X杞 + int siPostMagicSy; // 寰岀疆鍜掓湳鐨勬樉绀轰綅缃 - Y杞 + int siPostMagicOnChar; // 寰岀疆鍜掓湳鏄剧ず鍦ㄤ汉鐗╃殑鍓嶆柟鎴栦笅鏂 + int isPostDisappear; // 鍜掓湳涓鑸敾鍑诲畬鏃舵槸鍚﹂┈涓婃秷澶 + int ToCallMagicNo; // 鍙敜鏈殑缂栧彿 }ToCallMagic; */ -ToCallMagic PROFESSION_magic[3] = { {0,0,0,1,0,0,1,1,0,0,0,65528,65485,0,-1,0,0,0,1,0}, // 单人 - {0,3,0,1,0,0,1,1,0,0,0,65528,65485,0,-1,0,0,0,1,1}, // 单排 - {0,5,0,1,0,0,1,1,0,0,0,65528,65485,0,-1,0,0,0,0,2}, // 全体 +ToCallMagic PROFESSION_magic[3] = { {0,0,0,1,0,0,1,1,0,0,0,65528,65485,0,-1,0,0,0,1,0}, // 鍗曚汉 + {0,3,0,1,0,0,1,1,0,0,0,65528,65485,0,-1,0,0,0,1,1}, // 鍗曟帓 + {0,5,0,1,0,0,1,1,0,0,0,65528,65485,0,-1,0,0,0,0,2}, // 鍏ㄤ綋 }; -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attIdx ,int FieldAttr, int skill) { int list[SIDE_OFFSET * 2 + 1]; @@ -3281,19 +3298,19 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId if((z = BATTLE_MultiList(battleindex,toNo,list)) == -1) return; else if(z != toNo){ toNo = z; -// terry fix for 不设定为新的目标会有问题 2004/02/10 +// terry fix for 涓嶈瀹氫负鏂扮殑鐩爣浼氭湁闂 2004/02/10 CHAR_setWorkInt(charaindex,CHAR_WORKBATTLECOM2,toNo); // end } - // 技能 + // 鎶鑳 command = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1); - // 技能等级 + // 鎶鑳界瓑绾 skill_level = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_M( skill_level ); - // 将魔法参数代入动画 + // 灏嗛瓟娉曞弬鏁颁唬鍏ュ姩鐢 magic_type = analysis_profession_parameter( attIdx, skill, toNo, charaindex ); PROFESSION_MAGIC_ATTAIC_Effect( battleindex, attackNo, list, attIdx); @@ -3301,12 +3318,12 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId memset(def_is_player,-1,sizeof(def_is_player)); memset(def_be_hit,-1,sizeof(def_be_hit)); - // 单人攻击 + // 鍗曚汉鏀诲嚮 if( toNo < 20 ){ toNo = list[0]; listidx++; - } else if( 20 == toNo ){ // 右下全体 + } else if( 20 == toNo ){ // 鍙充笅鍏ㄤ綋 for( i = 0 ; i < 2 ; i++ ){ for( j = 0 ; j < 5 ; j++ ){ if(TRUE == BATTLE_TargetCheck( battleindex , CharTable[i + 2][j] ) ){ @@ -3315,7 +3332,7 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId } } } - } else if( 21 == toNo ){ // 左上全体 + } else if( 21 == toNo ){ // 宸︿笂鍏ㄤ綋 for( i = 0 ; i < 2 ; i++ ){ for( j = 0 ; j < 5 ; j++ ){ if(TRUE == BATTLE_TargetCheck( battleindex , CharTable[i][j] ) ){ @@ -3324,7 +3341,7 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId } } } - } // 左上第一列 , 左上第二列 , 右下第一列 , 右下第二列 + } // 宸︿笂绗竴鍒 , 宸︿笂绗簩鍒 , 鍙充笅绗竴鍒 , 鍙充笅绗簩鍒 else if( 23 == toNo || 24 == toNo || 25 == toNo || 26 == toNo ){ basey = toNo - 23; for( i = 0 , j = basey - 1 ; j <= basey + 1 ; i++ , j++ ){ @@ -3332,7 +3349,7 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId continue; else if( ( 23 == toNo || 24 == toNo ) && ( j < 0 || j > 1 ) ) continue; - // 计算那些人需要加入清单 + // 璁$畻閭d簺浜洪渶瑕佸姞鍏ユ竻鍗 for( k = 0 ; k < 5 ; k++ ){ if(TRUE == BATTLE_TargetCheck( battleindex , CharTable[j][k] ) ) { @@ -3342,15 +3359,15 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId } } } - qsort( list , listidx , sizeof( list[0] ) , ( FUNC )SortLoc );// 排序位置 + qsort( list , listidx , sizeof( list[0] ) , ( FUNC )SortLoc );// 鎺掑簭浣嶇疆 - // 取熟练度 + // 鍙栫啛缁冨害 PROFESSION_MAGIC_GET_PRACTICE( &hp_power, &mp_power, &dec_hp, &dec_mp, charaindex ); power = hp_power; - // 取出攻击 list + // 鍙栧嚭鏀诲嚮 list PROFESSION_MAGIC_TOLIST_SORT( list, &listidx, charaindex ); for( i = 0 ; i < listidx ; i++ ) { @@ -3362,7 +3379,7 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId if( !CHAR_CHECKINDEX(charaidx) ) continue; - // 制作魔法特效 + // 鍒朵綔榄旀硶鐗规晥 if (CHAR_createCharacter( 100354, 777, 45, 45, 0, &icindex, &ioindex, 0) == TRUE){ CHAR_setInt( icindex, CHAR_LUCK, 1); @@ -3370,35 +3387,35 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId CHAR_setWorkInt( icindex, CHAR_WORKOTHERDMAGE, 0 ); - // 魔法命中检定 + // 榄旀硶鍛戒腑妫瀹 if( PROFESSION_MAGIC_DODGE( charaindex, charaidx, magic_type ) == 1 ){ // MISS attvalue = 0; }else{ - // 取特殊魔法伤害值 + // 鍙栫壒娈婇瓟娉曚激瀹冲 power = PROFESSION_MAGIC_GET_ICE_MIRROR_DAMAGE( charaindex, charaidx, command, power ); #ifdef _SUIT_ADDPART4 - if( CHAR_getWorkInt( charaidx, CHAR_WORKUNMPOWER ) > 0 ){//抵抗法师魔法的装备 + if( CHAR_getWorkInt( charaidx, CHAR_WORKUNMPOWER ) > 0 ){//鎶垫姉娉曞笀榄旀硶鐨勮澶 power -= power * (CHAR_getWorkInt( charaidx, CHAR_WORKUNMPOWER )/100.00); // print("\nWORKUNMPOWER:%d", CHAR_getWorkInt( charaidx, CHAR_WORKUNMPOWER )); } #endif - // 取魔法伤害值 + // 鍙栭瓟娉曚激瀹冲 #ifdef _PROFESSION_ADDSKILL attvalue = PROFESSION_MAGIC_GET_DAMAGE( charaindex, charaidx, magic_type, power, command ); #else attvalue = PROFESSION_MAGIC_GET_DAMAGE( charaindex, charaidx, magic_type, power ); #endif - // 改变自身状态魔法 + // 鏀瑰彉鑷韩鐘舵侀瓟娉 PROFESSION_MAGIC_CHANGE_STATUS( charaindex, attvalue, mp_power, &add_hp, &add_mp ); - // 特殊攻击 + // 鐗规畩鏀诲嚮 attvalue = PROFESSION_MAGIC_CHANG_STATUS( command, battleindex, charaindex, charaidx, attvalue, i ); def_be_hit[i] = charaidx; #ifdef _PROFESSION_ADDSKILL - if( command == BATTLE_COM_S_STORM ){// 暴风雨 水附体 - if( (PROFESSION_BATTLE_StatusAttackCheck( charaindex, charaidx, BATTLE_ST_WATER, 30 ) == 0 )// 状态命中检定 + if( command == BATTLE_COM_S_STORM ){// 鏆撮闆 姘撮檮浣 + if( (PROFESSION_BATTLE_StatusAttackCheck( charaindex, charaidx, BATTLE_ST_WATER, 30 ) == 0 )// 鐘舵佸懡涓瀹 || (CHAR_getInt( charaidx, CHAR_HP ) <= 0 ) ){ }else{ @@ -3414,25 +3431,25 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId } } - //记录被攻击方的idx + //璁板綍琚敾鍑绘柟鐨刬dx decmplist[decmplistcount++] = list[i]; #endif } - // 清除魔法特效 + // 娓呴櫎榄旀硶鐗规晥 CHAR_CharaDelete(icindex); charahp = CHAR_getInt( charaidx, CHAR_HP ); - // 没骑宠物 + // 娌¢獞瀹犵墿 if( -1 == petidx || CHAR_getInt(petidx, CHAR_HP) <= 0 ){ if( ( charahp -= attvalue ) < 0 ){ charahp = 0; } CHAR_setInt( charaidx , CHAR_HP , charahp ); pethp = 0; - if( 0 == PROFESSION_magic[attIdx].uiAttackType ) {// 单人攻击 + if( 0 == PROFESSION_magic[attIdx].uiAttackType ) {// 鍗曚汉鏀诲嚮 sprintf( szcommand , "%X|%X|%X|%X|" , toNo , list[i] , attvalue , pethp); } else sprintf( szcommand , "%X|%X|%X|%X|" , list[i] , list[i] , attvalue , pethp); @@ -3441,7 +3458,7 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId pethp = CHAR_getInt( petidx , CHAR_HP ); charahurt = attvalue * BATTLE_CalcCharaRatio( FieldAttr , charaidx ) / 10; - //以下的计算,若人物被打死,血不够扣的话,会将多出来的伤害再累加至宠物身上 + //浠ヤ笅鐨勮绠,鑻ヤ汉鐗╄鎵撴,琛涓嶅鎵g殑璇,浼氬皢澶氬嚭鏉ョ殑浼ゅ鍐嶇疮鍔犺嚦瀹犵墿韬笂 charahurt_temp = charahurt; if( ( charahp -= charahurt ) < 0 ) { @@ -3453,7 +3470,7 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId if( ( pethp -= attvalue ) < 0) { pethp = 0; - // 宠物没血了退出战场 + // 瀹犵墿娌¤浜嗛鍑烘垬鍦 CHAR_setInt(charaidx,CHAR_RIDEPET,-1); BATTLE_changeRideImage(charaidx); CHAR_setWorkInt(charaidx,CHAR_WORKPETFALL,1); @@ -3463,7 +3480,7 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId charahurt = charahurt_temp; - if( 0 == PROFESSION_magic[attIdx].uiAttackType ) {// 单人攻击 + if( 0 == PROFESSION_magic[attIdx].uiAttackType ) {// 鍗曚汉鏀诲嚮 sprintf( szcommand , "%X|%X|%X|%X|" , toNo , list[i] , charahurt , attvalue); } else sprintf( szcommand , "%X|%X|%X|%X|" , list[i] , list[i] , charahurt , attvalue); @@ -3471,13 +3488,13 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId { - //Change fix 加上这个先拿到DP值 + //Change fix 鍔犱笂杩欎釜鍏堟嬁鍒癉P鍊 int aAttackList[BATTLE_ENTRY_MAX*2+1]; aAttackList[0] = attackNo; aAttackList[1] = -1; BATTLE_AddProfit( battleindex, aAttackList); } - //change fix 让替身娃娃可正常运作 (这样做所有法术类职技战斗後都拿不到DP值,不过上面先拿到,所以没关系) + //change fix 璁╂浛韬▋濞冨彲姝e父杩愪綔 (杩欐牱鍋氭墍鏈夋硶鏈被鑱屾妧鎴樻枟寰岄兘鎷夸笉鍒癉P鍊,涓嶈繃涓婇潰鍏堟嬁鍒,鎵浠ユ病鍏崇郴) if( CHAR_getInt( charaidx, CHAR_HP ) <= 0 && CHAR_getInt( charaidx, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER /*&& !BattleArray[battleindex].dpbattle*/ ) @@ -3491,7 +3508,7 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId BATTLESTR_ADD( szcommand ); #ifdef _PROFESSION_ADDSKILL - //扣敌方mp + //鎵f晫鏂筸p if( (int)mp_power != 0 ){ for( i=0;i= 10 ){ for( i=0;i 0 ){ CHAR_setWorkInt( BATTLE_No2Index( battleindex , decmplist[i] ), CHAR_WORKFEAR, 4 ); BATTLE_BadStatusString( decmplist[i], BATTLE_ST_FEAR ); - sprintf( szcommand, "BD|r%X|0|6|%X|", decmplist[i], -20 );//敏降30% + sprintf( szcommand, "BD|r%X|0|6|%X|", decmplist[i], -20 );//鏁忛檷30% BATTLESTR_ADD( szcommand ); - // 减攻 + // 鍑忔敾 sprintf( szcommand, "BD|r%X|0|4|%X|", decmplist[i], -10 ); BATTLESTR_ADD( szcommand ); - // 减防 + // 鍑忛槻 sprintf( szcommand, "BD|r%X|0|5|%X|", decmplist[i], -10 ); BATTLESTR_ADD( szcommand ); } @@ -3564,9 +3581,9 @@ void PROFESSION_MAGIC_ATTAIC( int battleindex, int attackNo, int toNo, int attId BATTLESTR_ADD( szcommand ); } -// Terry fix 2003/11/17 修正睡眠者中了攻击性法术不会醒 +// Terry fix 2003/11/17 淇鐫$湢鑰呬腑浜嗘敾鍑绘ф硶鏈笉浼氶啋 for(i=0; i 0) { CHAR_setWorkInt(def_be_hit[i],CHAR_WORKSLEEP,0); @@ -3589,7 +3606,7 @@ int PROFESSION_MAGIC_ATTAIC_Effect( int battleindex, int attackNo , int ToList[] if( FALSE == CHAR_CHECKINDEX( attackindex ) ) return 0; #ifdef _PROFESSION_ADDSKILL - //if( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ICE_CRACK ) //冰爆术不先秀特效 + //if( CHAR_getWorkInt( attackindex, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_ICE_CRACK ) //鍐扮垎鏈笉鍏堢鐗规晥 // return 0; #endif snprintf( szcommand , sizeof( szcommand ) , "B$|a%X|i%X|m%X|%X|%X|%X|s%X|t%X|l%X|%X|%X|%X|%X|%X|%X|o%X|o%X|o%X|s%X|%X|%X|%X|%X|" , @@ -3635,15 +3652,15 @@ int analysis_profession_parameter( int attIdx, int skill, int toNo, int charaind char temp[64]; char *pszOption; // Robin fix profession magic_type - //char magic[3][5]={"火","电","冰"}; - char magic[3][5]={"火","冰","电"}; + //char magic[3][5]={"鐏","鐢","鍐"}; + char magic[3][5]={"鐏","鍐","鐢"}; int magic_type=-1; - // 取得技能参数 + // 鍙栧緱鎶鑳藉弬鏁 if( (pszOption=PROFESSION_SKILL_getChar(skill,PROFESSION_SKILL_OPTION)) == "\0" ) return -1; - // 魔法属性 + // 榄旀硶灞炴 memset( temp, 0, sizeof(temp) ); if( !getStringFromIndexWithDelim(pszOption,"|",1,temp,sizeof(temp)) ) return -1; @@ -3654,73 +3671,73 @@ int analysis_profession_parameter( int attIdx, int skill, int toNo, int charaind switch( magic_type ){ case 1: - // 加火熟练度经验值 + // 鍔犵伀鐔熺粌搴︾粡楠屽 PROFESSION_SKILL_LVEVEL_UP( charaindex, "PROFESSION_FIRE_PRACTICE" ); break; case 2: - // 加冰熟练度经验值 + // 鍔犲啺鐔熺粌搴︾粡楠屽 PROFESSION_SKILL_LVEVEL_UP( charaindex, "PROFESSION_ICE_PRACTICE" ); break; case 3: - // 加雷熟练度经验值 + // 鍔犻浄鐔熺粌搴︾粡楠屽 PROFESSION_SKILL_LVEVEL_UP( charaindex, "PROFESSION_THUNDER_PRACTICE" ); break; } - // 显示的位置方式 0人物 1画面中央 + // 鏄剧ず鐨勪綅缃柟寮 0浜虹墿 1鐢婚潰涓ぎ memset( temp, 0, sizeof(temp) ); if( !getStringFromIndexWithDelim(pszOption,"|",2,temp,sizeof(temp)) ) return -1; place = atoi(temp); PROFESSION_magic[attIdx].uiShowType = place; - // 显示在人物的前方或下方 + // 鏄剧ず鍦ㄤ汉鐗╃殑鍓嶆柟鎴栦笅鏂 memset( temp, 0, sizeof(temp) ); if( !getStringFromIndexWithDelim(pszOption,"|",3,temp,sizeof(temp)) ) return -1; place2 = atoi(temp); PROFESSION_magic[attIdx].uiShowBehindChar = place2; - // 显示的位置X + // 鏄剧ず鐨勪綅缃甔 memset( temp, 0, sizeof(temp) ); if( !getStringFromIndexWithDelim(pszOption,"|",4,temp,sizeof(temp)) ) return -1; x = atoi(temp); - // 显示的位置Y + // 鏄剧ず鐨勪綅缃甕 memset( temp, 0, sizeof(temp) ); if( !getStringFromIndexWithDelim(pszOption,"|",5,temp,sizeof(temp)) ) return -1; y = atoi(temp); - // 震动画面的开始毫秒数 + // 闇囧姩鐢婚潰鐨勫紑濮嬫绉掓暟 memset( temp, 0, sizeof(temp) ); if( !getStringFromIndexWithDelim(pszOption,"|",6,temp,sizeof(temp)) ) return -1; shake_s_time = atoi(temp); - // 震动画面的结束毫秒数 + // 闇囧姩鐢婚潰鐨勭粨鏉熸绉掓暟 memset( temp, 0, sizeof(temp) ); if( !getStringFromIndexWithDelim(pszOption,"|",7,temp,sizeof(temp)) ) return -1; shake_e_time = atoi(temp); - // 咒术一般攻击完时是否马上消失 + // 鍜掓湳涓鑸敾鍑诲畬鏃舵槸鍚﹂┈涓婃秷澶 memset( temp, 0, sizeof(temp) ); if( !getStringFromIndexWithDelim(pszOption,"|",8,temp,sizeof(temp)) ) return -1; disappear = atoi(temp); - // 准备动作的魔法图号 + // 鍑嗗鍔ㄤ綔鐨勯瓟娉曞浘鍙 image_1 = PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_IMG_1); - PROFESSION_magic[attIdx].uiPrevMagicNum = image_1; // 前置动画 + PROFESSION_magic[attIdx].uiPrevMagicNum = image_1; // 鍓嶇疆鍔ㄧ敾 - // 战斗的魔法图号 + // 鎴樻枟鐨勯瓟娉曞浘鍙 image_2 = PROFESSION_SKILL_getInt( skill, PROFESSION_SKILL_IMG_2); - PROFESSION_magic[attIdx].uiSpriteNum = image_2; // 後置动画 + PROFESSION_magic[attIdx].uiSpriteNum = image_2; // 寰岀疆鍔ㄧ敾 - // 显示在画面的 x,y座标 + // 鏄剧ず鍦ㄧ敾闈㈢殑 x,y搴ф爣 PROFESSION_magic[attIdx].siSx = x; PROFESSION_magic[attIdx].siSy = y; - // 取得攻击右边的魔法图号及座标 + // 鍙栧緱鏀诲嚮鍙宠竟鐨勯瓟娉曞浘鍙峰強搴ф爣 PROFESSION_MAGIC_GET_IMG2( toNo, charaindex, attIdx, pszOption ); - // 地震的时间 + // 鍦伴渿鐨勬椂闂 if( (shake_s_time>0) || (shake_e_time>0) ){ PROFESSION_magic[attIdx].uiShakeScreen = 1; PROFESSION_magic[attIdx].uiShakeFrom = shake_s_time; @@ -3736,7 +3753,7 @@ int analysis_profession_parameter( int attIdx, int skill, int toNo, int charaind } -// 取熟练度得伤害力 +// 鍙栫啛缁冨害寰椾激瀹冲姏 void PROFESSION_MAGIC_GET_PRACTICE( float *hp_power, float *mp_power, @@ -3755,7 +3772,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( critical = RAND( 1,100); switch( command ){ - case BATTLE_COM_S_VOLCANO_SPRINGS: // 火山泉 + case BATTLE_COM_S_VOLCANO_SPRINGS: // 鐏北娉 { *hp_power = skill_level * 10 + 100; @@ -3769,7 +3786,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( break; } - case BATTLE_COM_S_FIRE_BALL: // 火星球 + case BATTLE_COM_S_FIRE_BALL: // 鐏槦鐞 { if( skill_level >= 10 ) *hp_power = 360; @@ -3788,12 +3805,12 @@ void PROFESSION_MAGIC_GET_PRACTICE( break; } - case BATTLE_COM_S_SUMMON_THUNDER: // 召雷术 + case BATTLE_COM_S_SUMMON_THUNDER: // 鍙浄鏈 { *hp_power = skill_level*10 + 200; break; } - case BATTLE_COM_S_CURRENT: // 电流术 + case BATTLE_COM_S_CURRENT: // 鐢垫祦鏈 { #ifdef _PROFESSION_ADDSKILL if( skill_level >= 10 ) @@ -3813,7 +3830,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( #endif break; } - case BATTLE_COM_S_STORM: // 暴风雨 + case BATTLE_COM_S_STORM: // 鏆撮闆 { #ifdef _PROFESSION_ADDSKILL if( skill_level > 9 ) @@ -3831,7 +3848,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( #endif break; } - case BATTLE_COM_S_ICE_ARROW: // 冰箭术 + case BATTLE_COM_S_ICE_ARROW: // 鍐扮鏈 { if( skill_level >= 10 ) *hp_power = 250; @@ -3839,7 +3856,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( *hp_power = skill_level*10 + 130; break; } - case BATTLE_COM_S_ICE_CRACK: // 冰爆术 + case BATTLE_COM_S_ICE_CRACK: // 鍐扮垎鏈 { if( skill_level >= 10 ) *hp_power = 400; @@ -3850,7 +3867,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( break; } - case BATTLE_COM_S_DOOM: // 世界末日 + case BATTLE_COM_S_DOOM: // 涓栫晫鏈棩 { if( skill_level >= 10 ) *hp_power = 550; @@ -3870,7 +3887,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( *hp_power = 200; break; } - case BATTLE_COM_S_FIRE_SPEAR: // 火龙枪 + case BATTLE_COM_S_FIRE_SPEAR: // 鐏緳鏋 { #ifdef _JOB_FIX if( skill_level > 9 ) @@ -3908,7 +3925,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( break; } - case BATTLE_COM_S_BLOOD: // 嗜血成性 + case BATTLE_COM_S_BLOOD: // 鍡滆鎴愭 { int hp = CHAR_getInt( charaindex, CHAR_HP); if( hp > 1 ) @@ -3918,12 +3935,12 @@ void PROFESSION_MAGIC_GET_PRACTICE( break; } - case BATTLE_COM_S_BLOOD_WORMS: // 嗜血蛊 + case BATTLE_COM_S_BLOOD_WORMS: // 鍡滆铔 { *hp_power = skill_level*10+20; break; } - case BATTLE_COM_S_SIGN: // 一针见血 + case BATTLE_COM_S_SIGN: // 涓閽堣琛 { #ifdef _PROFESSION_ADDSKILL if( skill_level >= 10 ){ @@ -3959,7 +3976,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( #endif break; } - case BATTLE_COM_S_ENCLOSE: // 附身术 + case BATTLE_COM_S_ENCLOSE: // 闄勮韩鏈 { #ifdef _PROFESSION_ADDSKILL if( skill_level >= 10 ) @@ -3994,7 +4011,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( #endif #ifdef _SUIT_ADDPART4 if( rand()%100 < 30 ) - *hp_power += *hp_power * (CHAR_getWorkInt( charaindex, CHAR_WORKMPOWER2 )/100.00);//加强法师魔法的装备(限定30%机率) + *hp_power += *hp_power * (CHAR_getWorkInt( charaindex, CHAR_WORKMPOWER2 )/100.00);//鍔犲己娉曞笀榄旀硶鐨勮澶(闄愬畾30%鏈虹巼) #endif if( *hp_power > 0 ){ @@ -4006,7 +4023,7 @@ void PROFESSION_MAGIC_GET_PRACTICE( } -// 选择改击数量 +// 閫夋嫨鏀瑰嚮鏁伴噺 void PROFESSION_MAGIC_TOLIST_SORT( int *list, int *listidx, int charaindex ) { int j=0, get_num=0, temp[SIDE_OFFSET * 2 + 1]; @@ -4018,7 +4035,7 @@ void PROFESSION_MAGIC_TOLIST_SORT( int *list, int *listidx, int charaindex ) command = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1); switch(command){ - case BATTLE_COM_S_CURRENT: // 电流术 + case BATTLE_COM_S_CURRENT: // 鐢垫祦鏈 { #ifdef _PROFESSION_ADDSKILL if( skill_level > 9 ) get_num = 10; @@ -4040,12 +4057,12 @@ void PROFESSION_MAGIC_TOLIST_SORT( int *list, int *listidx, int charaindex ) #endif break; } - case BATTLE_COM_S_STORM: // 暴风雨 + case BATTLE_COM_S_STORM: // 鏆撮闆 { get_num = skill_level; break; } - case BATTLE_COM_S_DOOM: // 世界末日 + case BATTLE_COM_S_DOOM: // 涓栫晫鏈棩 { if( skill_level >= 8 ) get_num = 10; else if( skill_level >= 7 ) get_num = 8; @@ -4054,7 +4071,7 @@ void PROFESSION_MAGIC_TOLIST_SORT( int *list, int *listidx, int charaindex ) else get_num = 2; break; } - case BATTLE_COM_S_FIRE_SPEAR: // 火龙枪 + case BATTLE_COM_S_FIRE_SPEAR: // 鐏緳鏋 { /*int miss_rate=0, rand_num=0; @@ -4083,7 +4100,7 @@ void PROFESSION_MAGIC_TOLIST_SORT( int *list, int *listidx, int charaindex ) */ break; } - case BATTLE_COM_S_SIGN: // 一针见血 + case BATTLE_COM_S_SIGN: // 涓閽堣琛 { #ifdef _PROFESSION_ADDSKILL get_num = 10; @@ -4096,8 +4113,8 @@ void PROFESSION_MAGIC_TOLIST_SORT( int *list, int *listidx, int charaindex ) #endif break; } - case BATTLE_COM_S_CONVOLUTE: // 回旋攻击 - case BATTLE_COM_S_FIRE_BALL: // 火星球 + case BATTLE_COM_S_CONVOLUTE: // 鍥炴棆鏀诲嚮 + case BATTLE_COM_S_FIRE_BALL: // 鐏槦鐞 { int toNo=-1, toNo2=-1, battleindex=-1, i=0, count=0; battleindex = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ); @@ -4127,7 +4144,7 @@ void PROFESSION_MAGIC_TOLIST_SORT( int *list, int *listidx, int charaindex ) return; } - case BATTLE_COM_S_THROUGH_ATTACK: // 贯穿攻击 + case BATTLE_COM_S_THROUGH_ATTACK: // 璐┛鏀诲嚮 { int toNo = -1, toNo2 = -1, battleindex = -1; @@ -4192,7 +4209,7 @@ void PROFESSION_MAGIC_TOLIST_SORT( int *list, int *listidx, int charaindex ) } -// 改变自身状态 +// 鏀瑰彉鑷韩鐘舵 void PROFESSION_MAGIC_CHANGE_STATUS( int charaindex, int hp_power, @@ -4210,7 +4227,7 @@ void PROFESSION_MAGIC_CHANGE_STATUS( command = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1); switch( command ){ - case BATTLE_COM_S_BLOOD: // 嗜血成性 + case BATTLE_COM_S_BLOOD: // 鍡滆鎴愭 { int rate = 0; @@ -4224,7 +4241,7 @@ void PROFESSION_MAGIC_CHANGE_STATUS( break; } - case BATTLE_COM_S_BLOOD_WORMS: // 嗜血蛊 + case BATTLE_COM_S_BLOOD_WORMS: // 鍡滆铔 { if( skill_level >= 10 ){ *add_hp += hp_power * 0.2; @@ -4236,10 +4253,10 @@ void PROFESSION_MAGIC_CHANGE_STATUS( break; } #ifdef _PROFESSION_ADDSKILL - case BATTLE_COM_S_SIGN: // 一针见血 + case BATTLE_COM_S_SIGN: // 涓閽堣琛 { int success=10; - /*( skill_level >= 10 ) success = 30;//成功率 + /*( skill_level >= 10 ) success = 30;//鎴愬姛鐜 else if( skill_level > 9 ) success = 25; else if( skill_level > 8 ) success = 20; else if( skill_level > 7 ) success = 15; @@ -4268,7 +4285,7 @@ void PROFESSION_MAGIC_CHANGE_STATUS( } } -// 取得位置不是在中央的多人魔法图号及座标 +// 鍙栧緱浣嶇疆涓嶆槸鍦ㄤ腑澶殑澶氫汉榄旀硶鍥惧彿鍙婂骇鏍 void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszOption ) { int command=0, img2=0, x=0, y=0; @@ -4281,7 +4298,7 @@ void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszO command = CHAR_getWorkInt( charaindex, CHAR_WORKBATTLECOM1); switch( command ){ - case BATTLE_COM_S_BLOOD: // 嗜血成性 + case BATTLE_COM_S_BLOOD: // 鍡滆鎴愭 { int img=0; @@ -4293,7 +4310,7 @@ void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszO PROFESSION_MAGIC_CHANG_IMG2( img, pszOption, attIdx ); return; } - case BATTLE_COM_S_VOLCANO_SPRINGS: // 火山泉 + case BATTLE_COM_S_VOLCANO_SPRINGS: // 鐏北娉 { int img=0; @@ -4313,25 +4330,25 @@ void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszO memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",12,temp,sizeof(temp)) ) y = atoi(temp); - // 後置动画 + // 寰岀疆鍔ㄧ敾 PROFESSION_magic[attIdx].uiSpriteNum = img; - // 後置动画座标 + // 寰岀疆鍔ㄧ敾搴ф爣 PROFESSION_magic[attIdx].siSx = x; PROFESSION_magic[attIdx].siSy = y; } return; } - case BATTLE_COM_S_BLOOD_WORMS: // 嗜血蛊 + case BATTLE_COM_S_BLOOD_WORMS: // 鍡滆铔 { - // 右方 + // 鍙虫柟 if( toNo == 20 || toNo == 25 || toNo == 26 || ( toNo >= 0 && toNo < SIDE_OFFSET ) ) PROFESSION_MAGIC_CHANG_IMG2( 101623, pszOption, attIdx ); return; } - case BATTLE_COM_S_ICE_MIRROR: // 冰镜术 + case BATTLE_COM_S_ICE_MIRROR: // 鍐伴暅鏈 { if( toNo >= 0 && toNo < 10 ) PROFESSION_MAGIC_CHANG_IMG2( 101652, pszOption, attIdx ); @@ -4345,76 +4362,76 @@ void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszO memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",12,temp,sizeof(temp)) ) y = atoi(temp); - // 後置动画 + // 寰岀疆鍔ㄧ敾 PROFESSION_magic[attIdx].uiSpriteNum = 101652; - // 後置动画座标 + // 寰岀疆鍔ㄧ敾搴ф爣 PROFESSION_magic[attIdx].siSx = x; PROFESSION_magic[attIdx].siSy = y; } return; } - case BATTLE_COM_S_ENCLOSE: // 附身术 + case BATTLE_COM_S_ENCLOSE: // 闄勮韩鏈 { - // 右方 + // 鍙虫柟 if( toNo == 20 || toNo == 25 || toNo == 26 || ( toNo >= 0 && toNo < SIDE_OFFSET ) ) PROFESSION_MAGIC_CHANG_IMG2( 101643, pszOption, attIdx ); return; } - case BATTLE_COM_S_FIRE_SPEAR: // 火龙枪 + case BATTLE_COM_S_FIRE_SPEAR: // 鐏緳鏋 { - // 右方 + // 鍙虫柟 //if( toNo == 20 || toNo == 25 || toNo == 26 ) if( toNo < 10 ) PROFESSION_MAGIC_CHANG_IMG2( 101642, pszOption, attIdx ); return; } - case BATTLE_COM_S_DOOM: // 世界末日 + case BATTLE_COM_S_DOOM: // 涓栫晫鏈棩 { - // 右方 + // 鍙虫柟 if( toNo == 20 || toNo == 25 || toNo == 26 ) PROFESSION_MAGIC_CHANG_IMG2( 101639, pszOption, attIdx ); return; } - case BATTLE_COM_S_ICE_CRACK: // 冰爆术 + case BATTLE_COM_S_ICE_CRACK: // 鍐扮垎鏈 { - // 右方 + // 鍙虫柟 if( toNo == 20 || toNo == 25 || toNo == 26 ) PROFESSION_MAGIC_CHANG_IMG2( 101650, pszOption, attIdx ); return; } - case BATTLE_COM_S_ICE_ARROW: // 冰箭术 + case BATTLE_COM_S_ICE_ARROW: // 鍐扮鏈 { - // 右方 + // 鍙虫柟 if( toNo == 20 || toNo == 25 || toNo == 26 || ( toNo >= 0 && toNo < SIDE_OFFSET ) ) PROFESSION_MAGIC_CHANG_IMG2( 101649, pszOption, attIdx ); return; } - case BATTLE_COM_S_STORM: // 暴风雨 + case BATTLE_COM_S_STORM: // 鏆撮闆 { - // 右方 + // 鍙虫柟 if( toNo == 20 || toNo == 25 || toNo == 26 ) PROFESSION_MAGIC_CHANG_IMG2( 101677, pszOption, attIdx ); return; } #ifdef _PROFESSION_ADDSKILL - case BATTLE_COM_S_BOUNDARY: // 四属性结界 + case BATTLE_COM_S_BOUNDARY: // 鍥涘睘鎬х粨鐣 { - // 右方 + // 鍙虫柟 if( toNo == 20 || toNo == 25 || toNo == 26 ){ if( getStringFromIndexWithDelim(pszOption,"|",1,temp,sizeof(temp)) ) { - if( strcmp( "地结界", temp ) == 0 ) + if( strcmp( "鍦扮粨鐣", temp ) == 0 ) PROFESSION_MAGIC_CHANG_IMG2( 101786, pszOption, attIdx ); - else if( strcmp( "水结界", temp ) == 0 ) + else if( strcmp( "姘寸粨鐣", temp ) == 0 ) PROFESSION_MAGIC_CHANG_IMG2( 101774, pszOption, attIdx ); - else if( strcmp( "火结界", temp ) == 0 ) + else if( strcmp( "鐏粨鐣", temp ) == 0 ) PROFESSION_MAGIC_CHANG_IMG2( 101780, pszOption, attIdx ); - else if( strcmp( "风结界", temp ) == 0 ) + else if( strcmp( "椋庣粨鐣", temp ) == 0 ) PROFESSION_MAGIC_CHANG_IMG2( 101792, pszOption, attIdx ); else PROFESSION_MAGIC_CHANG_IMG2( 101770, pszOption, attIdx ); @@ -4423,25 +4440,25 @@ void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszO return; } #endif - case BATTLE_COM_S_CONVOLUTE: // 回旋攻击 + case BATTLE_COM_S_CONVOLUTE: // 鍥炴棆鏀诲嚮 { img2=101656; - if( toNo == 25 ){ // 右 1 + if( toNo == 25 ){ // 鍙 1 memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",9,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",10,temp,sizeof(temp)) ) y = atoi(temp); - }else if( toNo == 26 ){ // 右 2 + }else if( toNo == 26 ){ // 鍙 2 memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",11,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",12,temp,sizeof(temp)) ) y = atoi(temp); - }else if( toNo == 23 ){ // 左 1 + }else if( toNo == 23 ){ // 宸 1 memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",13,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",14,temp,sizeof(temp)) ) y = atoi(temp); - }else if( toNo == 24 ){ // 左 2 + }else if( toNo == 24 ){ // 宸 2 memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",15,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); @@ -4449,62 +4466,62 @@ void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszO }else return; - // 後置动画 + // 寰岀疆鍔ㄧ敾 PROFESSION_magic[attIdx].uiSpriteNum = img2; - // 後置动画座标 + // 寰岀疆鍔ㄧ敾搴ф爣 PROFESSION_magic[attIdx].siSx = x; PROFESSION_magic[attIdx].siSy = y; break; } - case BATTLE_COM_S_THROUGH_ATTACK: // 贯穿攻击 + case BATTLE_COM_S_THROUGH_ATTACK: // 璐┛鏀诲嚮 { - if( (toNo == 13) || (toNo == 18) ){ // 左下 1 + if( (toNo == 13) || (toNo == 18) ){ // 宸︿笅 1 img2=101676; x = 50; y = 240; - }else if( (toNo == 11) || (toNo == 16) ){ // 左 2 + }else if( (toNo == 11) || (toNo == 16) ){ // 宸 2 img2=101675; x = 120; y = 200; - }else if( (toNo == 10) || (toNo == 15) ){ // 左 3 + }else if( (toNo == 10) || (toNo == 15) ){ // 宸 3 img2=101674; x = 140; y = 160; - }else if( (toNo == 12) || (toNo == 17) ){ // 左 4 + }else if( (toNo == 12) || (toNo == 17) ){ // 宸 4 img2=101673; x = 160; y = 120; - }else if( (toNo == 14) || (toNo == 19) ){ // 左 5 + }else if( (toNo == 14) || (toNo == 19) ){ // 宸 5 img2=101672; x = 180; y = 80; - }else if( (toNo == 3) || (toNo == 8) ){ // 右 1 + }else if( (toNo == 3) || (toNo == 8) ){ // 鍙 1 img2=101665; memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",9,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",10,temp,sizeof(temp)) ) y = atoi(temp); - }else if( (toNo == 1) || (toNo == 6) ){ // 右 2 + }else if( (toNo == 1) || (toNo == 6) ){ // 鍙 2 img2=101664; memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",11,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",12,temp,sizeof(temp)) ) y = atoi(temp); - }else if( (toNo == 0) || (toNo == 5) ){ // 右 3 + }else if( (toNo == 0) || (toNo == 5) ){ // 鍙 3 img2=101663; memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",13,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",14,temp,sizeof(temp)) ) y = atoi(temp); - }else if( (toNo == 2) || (toNo == 7) ){ // 右 4 + }else if( (toNo == 2) || (toNo == 7) ){ // 鍙 4 img2=101662; memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",15,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",16,temp,sizeof(temp)) ) y = atoi(temp); - }else if( (toNo == 4) || (toNo == 9) ){ // 右 5 + }else if( (toNo == 4) || (toNo == 9) ){ // 鍙 5 img2=101661; memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",17,temp,sizeof(temp)) ) x = atoi(temp); @@ -4513,44 +4530,44 @@ void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszO }else return; - // 後置动画 + // 寰岀疆鍔ㄧ敾 PROFESSION_magic[attIdx].uiSpriteNum = img2; - // 後置动画座标 + // 寰岀疆鍔ㄧ敾搴ф爣 PROFESSION_magic[attIdx].siSx = x; PROFESSION_magic[attIdx].siSy = y; - // 前置动画 + // 鍓嶇疆鍔ㄧ敾 if( toNo >= 10 ){ int img1 = 101671; PROFESSION_magic[attIdx].uiPrevMagicNum = img1; } break; } - case BATTLE_COM_S_FIRE_BALL: // 火星球 + case BATTLE_COM_S_FIRE_BALL: // 鐏槦鐞 { - if( toNo == 25 ){ // 右 1 + if( toNo == 25 ){ // 鍙 1 img2=101694; memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",9,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",10,temp,sizeof(temp)) ) y = atoi(temp); - }else if( toNo == 26 ){ // 右 2 + }else if( toNo == 26 ){ // 鍙 2 img2=101694; memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",11,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",12,temp,sizeof(temp)) ) y = atoi(temp); - }else if( toNo == 23 ){ // 左 1 + }else if( toNo == 23 ){ // 宸 1 img2=101693; memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",13,temp,sizeof(temp)) ) x = atoi(temp); memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",14,temp,sizeof(temp)) ) y = atoi(temp); - }else if( toNo == 24 ){ // 左 2 + }else if( toNo == 24 ){ // 宸 2 img2=101693; memset( temp, 0, sizeof(temp) ); @@ -4560,10 +4577,10 @@ void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszO }else return; - // 後置动画 + // 寰岀疆鍔ㄧ敾 PROFESSION_magic[attIdx].uiSpriteNum = img2; - // 後置动画座标 + // 寰岀疆鍔ㄧ敾搴ф爣 PROFESSION_magic[attIdx].siSx = x; PROFESSION_magic[attIdx].siSy = y; @@ -4577,7 +4594,7 @@ void PROFESSION_MAGIC_GET_IMG2( int toNo, int charaindex, int attIdx, char *pszO #define D_16 (1.0/16) #define D_8 (1.0/8) -// 取得攻击伤害 +// 鍙栧緱鏀诲嚮浼ゅ #ifdef _PROFESSION_ADDSKILL int PROFESSION_MAGIC_GET_DAMAGE( int attackindex, int defindex, int magic_type, int power, int command ) #else @@ -4586,18 +4603,18 @@ int PROFESSION_MAGIC_GET_DAMAGE( int attackindex, int defindex, int magic_type, { int damage = 0; -#ifdef _FIX_MAGIC_RESIST // WON ADD 修正魔法抗性 - int proficiency=0;//熟练度 - int resist=0;//抗性 - int suit=0;//装备 - int spirit=0;//使用精灵造成的抗性 +#ifdef _FIX_MAGIC_RESIST // WON ADD 淇榄旀硶鎶楁 + int proficiency=0;//鐔熺粌搴 + int resist=0;//鎶楁 + int suit=0;//瑁呭 + int spirit=0;//浣跨敤绮剧伒閫犳垚鐨勬姉鎬 if( command == BATTLE_COM_S_DOOM ) magic_type = 1; - if( magic_type == 1){ // 火属性 - proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_F_PROFICIENCY); // 火熟练度 - resist = CHAR_getWorkInt( defindex, CHAR_WORK_F_RESIST); // 火抗 + if( magic_type == 1){ // 鐏睘鎬 + proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_F_PROFICIENCY); // 鐏啛缁冨害 + resist = CHAR_getWorkInt( defindex, CHAR_WORK_F_RESIST); // 鐏姉 #ifdef _EQUIT_RESIST suit = CHAR_getWorkInt( defindex, CHAR_WORK_F_SUIT)+CHAR_getWorkInt( defindex, CHAR_WORKEQUITFIRE ); #else @@ -4614,9 +4631,9 @@ int PROFESSION_MAGIC_GET_DAMAGE( int attackindex, int defindex, int magic_type, magic_type = 2; } - if( magic_type == 2){ // 电属性 - proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_T_PROFICIENCY); // 电熟练度 - resist = CHAR_getWorkInt( defindex, CHAR_WORK_T_RESIST); // 电抗 + if( magic_type == 2){ // 鐢靛睘鎬 + proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_T_PROFICIENCY); // 鐢电啛缁冨害 + resist = CHAR_getWorkInt( defindex, CHAR_WORK_T_RESIST); // 鐢垫姉 #ifdef _EQUIT_RESIST suit = CHAR_getWorkInt( defindex, CHAR_WORK_I_SUIT)+CHAR_getWorkInt( defindex, CHAR_WORKEQUITTHUNDER ); #else @@ -4633,9 +4650,9 @@ int PROFESSION_MAGIC_GET_DAMAGE( int attackindex, int defindex, int magic_type, magic_type = 3; } - if( magic_type == 3){ // 冰属性 - proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_I_PROFICIENCY); // 冰熟练度 - resist = CHAR_getWorkInt( defindex, CHAR_WORK_I_RESIST); // 冰抗 + if( magic_type == 3){ // 鍐板睘鎬 + proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_I_PROFICIENCY); // 鍐扮啛缁冨害 + resist = CHAR_getWorkInt( defindex, CHAR_WORK_I_RESIST); // 鍐版姉 #ifdef _EQUIT_RESIST suit = CHAR_getWorkInt( defindex, CHAR_WORK_T_SUIT)+CHAR_getWorkInt( defindex, CHAR_WORKEQUITICE ); #else @@ -4656,51 +4673,51 @@ int PROFESSION_MAGIC_GET_DAMAGE( int attackindex, int defindex, int magic_type, #else //_FIX_MAGIC_RESIST - fire_proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_F_PROFICIENCY); // 火熟练度 - electric_proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_T_PROFICIENCY); // 电熟练度 - ice_proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_I_PROFICIENCY); // 冰熟练度 - fire_resist = CHAR_getWorkInt( defindex, CHAR_WORK_F_RESIST); // 火抗 - electric_resist = CHAR_getWorkInt( defindex, CHAR_WORK_T_RESIST); // 电抗 - ice_resist = CHAR_getWorkInt( defindex, CHAR_WORK_I_RESIST); // 冰抗 + fire_proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_F_PROFICIENCY); // 鐏啛缁冨害 + electric_proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_T_PROFICIENCY); // 鐢电啛缁冨害 + ice_proficiency = CHAR_getWorkInt( attackindex, CHAR_WORK_I_PROFICIENCY); // 鍐扮啛缁冨害 + fire_resist = CHAR_getWorkInt( defindex, CHAR_WORK_F_RESIST); // 鐏姉 + electric_resist = CHAR_getWorkInt( defindex, CHAR_WORK_T_RESIST); // 鐢垫姉 + ice_resist = CHAR_getWorkInt( defindex, CHAR_WORK_I_RESIST); // 鍐版姉 // print("\n won test 0.0 ==> f(%d) e(%d) i(%d)", fire_proficiency, electric_proficiency, ice_proficiency ); // print("\n won test 0.1 ==> f(%d) e(%d) i(%d)", fire_resist, electric_resist, ice_resist ); - if( magic_type == 1){ // 火属性 + if( magic_type == 1){ // 鐏睘鎬 - attack = power * ( 100 + fire_proficiency ) / 100; // 攻击加成 + attack = power * ( 100 + fire_proficiency ) / 100; // 鏀诲嚮鍔犳垚 - if( rand_num < 40){ // 原攻击伤害 + if( rand_num < 40){ // 鍘熸敾鍑讳激瀹 attack = attack * ( 100 - fire_resist ) / 100; - }else{ // 乱数取伤害 + }else{ // 涔辨暟鍙栦激瀹 rand_num = RAND(-20, 20); attack = attack * ( 100 - (rand_num + fire_resist) ) / 100; } //print( "\nattack:%d ", attack ); }else - if( magic_type == 2){ // 电属性 + if( magic_type == 2){ // 鐢靛睘鎬 - attack = power * ( 100 + electric_proficiency ) / 100; // 攻击加成 + attack = power * ( 100 + electric_proficiency ) / 100; // 鏀诲嚮鍔犳垚 - if( rand_num < 40){ // 原攻击伤害 + if( rand_num < 40){ // 鍘熸敾鍑讳激瀹 attack = attack * ( 100 - electric_resist ) / 100; - }else{ // 乱数取伤害 + }else{ // 涔辨暟鍙栦激瀹 rand_num = RAND(-20, 20); attack = attack * ( 100 - (rand_num + electric_resist) ) / 100; } }else - if( magic_type == 3){ // 冰属性 + if( magic_type == 3){ // 鍐板睘鎬 - attack = power * ( 100 + ice_proficiency ) / 100; // 攻击加成 + attack = power * ( 100 + ice_proficiency ) / 100; // 鏀诲嚮鍔犳垚 - if( rand_num < 40){ // 原攻击伤害 + if( rand_num < 40){ // 鍘熸敾鍑讳激瀹 attack = attack * ( 100 - ice_resist ) / 100; - }else{ // 乱数取伤害 + }else{ // 涔辨暟鍙栦激瀹 rand_num = RAND(-20, 20); attack = attack * ( 100 - (rand_num + ice_resist) ) / 100; } - }else{ // 无 + }else{ // 鏃 attack = power; } @@ -4715,12 +4732,12 @@ int PROFESSION_MAGIC_GET_DAMAGE( int attackindex, int defindex, int magic_type, } -// 取得特殊攻击伤害 +// 鍙栧緱鐗规畩鏀诲嚮浼ゅ int PROFESSION_MAGIC_GET_ICE_MIRROR_DAMAGE( int attackindex, int defindex, int command, int power ) { int damage = power; - if( command == BATTLE_COM_S_ICE_MIRROR ){ // 冰镜术 + if( command == BATTLE_COM_S_ICE_MIRROR ){ // 鍐伴暅鏈 float defense = -1; int rate=0; int defpet = BATTLE_getRidePet( defindex ); @@ -4748,12 +4765,12 @@ int PROFESSION_MAGIC_GET_ICE_MIRROR_DAMAGE( int attackindex, int defindex, int c #endif //andy_Edit damage = 120 + (int)( ( defense * rate / 100 ) + ( ( defense - base_defense ) * rate / 200 ) ); - //控制对npc的伤害 + //鎺у埗瀵筺pc鐨勪激瀹 if( CHAR_getInt( defindex , CHAR_WHICHTYPE ) == CHAR_TYPEENEMY ) damage = damage > 800 ? 800 : damage; }else - if( command == BATTLE_COM_S_CONVOLUTE ){ // 回旋攻击 + if( command == BATTLE_COM_S_CONVOLUTE ){ // 鍥炴棆鏀诲嚮 int skill_level = CHAR_GETWORKINT_HIGH( attackindex, CHAR_WORKBATTLECOM3); int hit=0; @@ -4762,7 +4779,7 @@ int PROFESSION_MAGIC_GET_ICE_MIRROR_DAMAGE( int attackindex, int defindex, int c hit = skill_level * 2 + 60; //if( rand_num <= hit ){ - // 取得回旋攻击伤害 + // 鍙栧緱鍥炴棆鏀诲嚮浼ゅ #ifdef _JOB_FIX damage = BATTLE_PROFESSION_CONVOLUTE_GET_DAMAGE( attackindex, defindex, skill_level ) * 1.1; #else @@ -4772,19 +4789,19 @@ int PROFESSION_MAGIC_GET_ICE_MIRROR_DAMAGE( int attackindex, int defindex, int c // damage = 0; //} }else - if( command == BATTLE_COM_S_THROUGH_ATTACK ){ // 贯穿攻击 + if( command == BATTLE_COM_S_THROUGH_ATTACK ){ // 璐┛鏀诲嚮 int skill_level = CHAR_GETWORKINT_HIGH( attackindex, CHAR_WORKBATTLECOM3); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); if( skill_level != 10 ){ - // 命中率下降 + // 鍛戒腑鐜囦笅闄 CHAR_setWorkInt( attackindex, CHAR_MYSKILLHIT, 1); CHAR_setWorkInt( attackindex, CHAR_MYSKILLHIT_NUM, -70); CHAR_setWorkInt( attackindex, CHAR_WORKHITRIGHT, CHAR_getWorkInt(attackindex,CHAR_WORKHITRIGHT) -50 ); } - // 取得贯穿攻击伤害 + // 鍙栧緱璐┛鏀诲嚮浼ゅ #ifdef _JOB_FIX damage = BATTLE_PROFESSION_THROUGH_ATTACK_GET_DAMAGE( attackindex, defindex ) * 0.80; #else @@ -4793,9 +4810,9 @@ int PROFESSION_MAGIC_GET_ICE_MIRROR_DAMAGE( int attackindex, int defindex, int c } #ifdef _PROFESSION_ADDSKILL else - if( command == BATTLE_COM_S_CURRENT //电流术 - || command == BATTLE_COM_S_SUMMON_THUNDER ){//召雷术 - if( CHAR_getWorkInt( defindex, CHAR_WORKWATER ) > 0 ){//水附体 + if( command == BATTLE_COM_S_CURRENT //鐢垫祦鏈 + || command == BATTLE_COM_S_SUMMON_THUNDER ){//鍙浄鏈 + if( CHAR_getWorkInt( defindex, CHAR_WORKWATER ) > 0 ){//姘撮檮浣 if( RAND(1, 100) < 75 ) damage *= 3; } @@ -4806,8 +4823,8 @@ int PROFESSION_MAGIC_GET_ICE_MIRROR_DAMAGE( int attackindex, int defindex, int c -// 计算闪避率 -// return: 0:没闪过 1:闪过 +// 璁$畻闂伩鐜 +// return: 0:娌¢棯杩 1:闂繃 int PROFESSION_MAGIC_DODGE( int atk_index, int def_index, int magic_type ) { float fLuck = 0,fResist = 0, proficiency = 0; @@ -4817,34 +4834,34 @@ int PROFESSION_MAGIC_DODGE( int atk_index, int def_index, int magic_type ) int command; - // 目标地球一周,不动作 + // 鐩爣鍦扮悆涓鍛紝涓嶅姩浣 if( CHAR_getWorkInt( def_index, CHAR_WORKBATTLECOM1 ) == BATTLE_COM_S_EARTHROUND0 ){ return 1; // Miss } - // 如果是防守者是玩家 + // 濡傛灉鏄槻瀹堣呮槸鐜╁ if( charType == CHAR_TYPEPLAYER ){ - // 幸运 + // 骞歌繍 fLuck = (float)CHAR_getInt( def_index, CHAR_LUCK) * 3; - // 抗性 + // 鎶楁 if( magic_type != 0 ){ fResist = (float)(CHAR_getWorkInt( def_index, CHAR_WORK_F_RESIST + magic_type - 1 )) * 0.5; } fLuck += fResist; - // 抗魔装备 + // 鎶楅瓟瑁呭 Dluck = (float)(CHAR_getWorkInt( def_index, CHAR_EQUITQUIMAGIC)*0.4); fLuck += Dluck; - }else {// 如果是防守者是宠物 + }else {// 濡傛灉鏄槻瀹堣呮槸瀹犵墿 fLuck = (float)CHAR_getInt( def_index, CHAR_LV) * 0.15; if(fLuck > 20) fLuck = 20; } - // 熟练度 + // 鐔熺粌搴 // Robin fix //if( magic_type != 0 ){ if( magic_type > 0 ){ @@ -4907,10 +4924,10 @@ void PROFESSION_MAGIC_CHANG_IMG2( int img2, char *pszOption, int attIdx ) memset( temp, 0, sizeof(temp) ); if( getStringFromIndexWithDelim(pszOption,"|",10,temp,sizeof(temp)) ) y = atoi(temp); - // 後置动画 + // 寰岀疆鍔ㄧ敾 PROFESSION_magic[attIdx].uiSpriteNum = img2; - // 後置动画座标 + // 寰岀疆鍔ㄧ敾搴ф爣 PROFESSION_magic[attIdx].siSx = x; PROFESSION_magic[attIdx].siSy = y; } @@ -4926,28 +4943,28 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i skill_level = PROFESSION_CHANGE_SKILL_LEVEL_M( skill_level ); switch( command ){ - case BATTLE_COM_S_THROUGH_ATTACK: // 贯穿攻击 + case BATTLE_COM_S_THROUGH_ATTACK: // 璐┛鏀诲嚮 { int skill_level = CHAR_GETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_A( skill_level ); - if( no == 0 ){ // 攻击前排的 + if( no == 0 ){ // 鏀诲嚮鍓嶆帓鐨 attvalue = attvalue * (skill_level * 2 + 70) / 100; - }else if( no == 1 ){ // 攻击後排的 + }else if( no == 1 ){ // 鏀诲嚮寰屾帓鐨 attvalue = attvalue * (skill_level * 2 + 50) / 100; } break; } - case BATTLE_COM_S_ICE_CRACK: // 冰爆术 + case BATTLE_COM_S_ICE_CRACK: // 鍐扮垎鏈 { int hit=0, rand_num = RAND( 0, 100 ); - //for( j = 1; j < BATTLE_ST_END; j++ ){ //若已有异常状态则return + //for( j = 1; j < BATTLE_ST_END; j++ ){ //鑻ュ凡鏈夊紓甯哥姸鎬佸垯return // if( CHAR_getWorkInt( charaidx, StatusTbl[j] ) > 0 ) return 0; //} - // 命中率 + // 鍛戒腑鐜 if( skill_level >= 10 ) hit = 80; else if( skill_level >= 7 ) hit = 70; else if( skill_level >= 5 ) hit = 80; @@ -4977,14 +4994,14 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i } - // 冰爆术第一击无伤害 + // 鍐扮垎鏈涓鍑绘棤浼ゅ attvalue = 0; break; } - case BATTLE_COM_S_ENCLOSE: // 附身术 + case BATTLE_COM_S_ENCLOSE: // 闄勮韩鏈 { - for( j = 1; j < BATTLE_ST_END; j++ ) //若已有异常状态则return + for( j = 1; j < BATTLE_ST_END; j++ ) //鑻ュ凡鏈夊紓甯哥姸鎬佸垯return if( CHAR_getWorkInt( charaidx, StatusTbl[j] ) > 0 ) return attvalue; { @@ -5006,7 +5023,7 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i rand_num = RAND(0,100); - if( rand_num <= success ){ //成功时目标混乱 + if( rand_num <= success ){ //鎴愬姛鏃剁洰鏍囨贩涔 #ifdef _PROFESSION_ADDSKILL CHAR_setWorkInt( charaidx, CHAR_WORKANNEX, round ); #else @@ -5018,9 +5035,9 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i } break; } - case BATTLE_COM_S_ICE_ARROW: // 冰箭 + case BATTLE_COM_S_ICE_ARROW: // 鍐扮 { - for( j = 1; j < BATTLE_ST_END; j++ ){ //若已有异常状态则return + for( j = 1; j < BATTLE_ST_END; j++ ){ //鑻ュ凡鏈夊紓甯哥姸鎬佸垯return if( CHAR_getWorkInt( charaidx, StatusTbl[j] ) > 0 ) return attvalue; } { @@ -5033,7 +5050,7 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i else success = 10; rand_num = RAND(0,100); - if( rand_num <= success ){ //成功时目标降敏 + if( rand_num <= success ){ //鎴愬姛鏃剁洰鏍囬檷鏁 int dec_dex=0, turn=0; if( skill_level >= 8 ) dec_dex = 25; @@ -5062,9 +5079,9 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i } break; } - case BATTLE_COM_S_BLOOD_WORMS: // 嗜血蛊 + case BATTLE_COM_S_BLOOD_WORMS: // 鍡滆铔 { - for( j = 1; j < BATTLE_ST_END; j++ ){ //若已有异常状态则return + for( j = 1; j < BATTLE_ST_END; j++ ){ //鑻ュ凡鏈夊紓甯哥姸鎬佸垯return if( CHAR_getWorkInt( charaidx, StatusTbl[j] ) > 0 ) return attvalue; } { @@ -5085,18 +5102,18 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i } break; } - case BATTLE_COM_S_SIGN: // 一针见血 + case BATTLE_COM_S_SIGN: // 涓閽堣琛 { #ifdef _PROFESSION_ADDSKILL #else - for( j = 1; j < BATTLE_ST_END; j++ ){ //若已有异常状态则return + for( j = 1; j < BATTLE_ST_END; j++ ){ //鑻ュ凡鏈夊紓甯哥姸鎬佸垯return if( CHAR_getWorkInt( charaidx, StatusTbl[j] ) > 0 ) return attvalue; } { int turn=0, success=0, rand_num=0; int bid = BATTLE_Index2No( battleindex, charaidx ); - // 非玩家离开 + // 闈炵帺瀹剁寮 // if( CHAR_getInt( charaidx, CHAR_WHICHTYPE ) != CHAR_TYPEPLAYER ) return attvalue; if( skill_level == 10 ) success = 35; @@ -5108,7 +5125,7 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i rand_num = RAND(0,100); - if( rand_num <= success ){ //成功时目标吸血 + if( rand_num <= success ){ //鎴愬姛鏃剁洰鏍囧惛琛 if( skill_level >= 10 ) turn = 5; else if( skill_level >= 7 ) turn = 4; else if( skill_level >= 4 ) turn = 3; @@ -5124,7 +5141,7 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i #endif break; } - case BATTLE_COM_S_DOOM: // 世界末日 + case BATTLE_COM_S_DOOM: // 涓栫晫鏈棩 { /* int rand_num = RAND( 1, 100 ), work, dex; char szCommand[64]; @@ -5135,11 +5152,11 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i CHAR_setWorkInt( charaidx, CHAR_WORKFEAR, 2 ); BATTLE_BadStatusString( bid, BATTLE_ST_FEAR ); work = CHAR_getWorkInt( charaindex, CHAR_WORKQUICK )+20; - dex = work>>1;//敏降50% + dex = work>>1;//鏁忛檷50% sprintf( szCommand, "BD|r%X|0|6|%X|", bid, (-1) * dex ); BATTLESTR_ADD( szCommand ); #endif - // 中麻痹 + // 涓夯鐥 if( rand_num <= 20 ){ CHAR_setWorkInt( charaidx, CHAR_WORKPARALYSIS, 3 ); BATTLE_BadStatusString( bid, BATTLE_ST_PARALYSIS ); @@ -5164,14 +5181,6 @@ int PROFESSION_MAGIC_CHANG_STATUS(int command,int battleindex, int charaindex, i #ifdef _PETSKILL_FIREKILL -/* - . ..·. ..··. .○ - *. ..· ★.* ·. . - ★ . ·● ● ·. .★. - ..· /█\_/█\_ ·. - ??√√ √√??? - 中秋节快乐 -*/ void BATTLE_MultiAttMagic_Fire( int battleindex, int attackNo, int defNo, int FieldAttr , int Power) @@ -5190,7 +5199,7 @@ void BATTLE_MultiAttMagic_Fire( int battleindex, int attackNo, int defNo, float temp = 0.0f; // int attattr[5], defattr[5]; char msgbuf[64]; - char kind[4][3] = {"地","水","火","风"}; + char kind[4][3] = {"鍦","姘","鐏","椋"}; #else BOOL TrueMagic=FALSE; #endif @@ -5208,7 +5217,7 @@ void BATTLE_MultiAttMagic_Fire( int battleindex, int attackNo, int defNo, else f_num = 15; - // 取出战场上存活的人 + // 鍙栧嚭鎴樺満涓婂瓨娲荤殑浜 for( i=f_num; i 0) { CHAR_setWorkInt(def_be_hit[i],CHAR_WORKSLEEP,0); diff --git a/battle/pet_skill.c b/battle/pet_skill.c index a532531..9c01066 100644 --- a/battle/pet_skill.c +++ b/battle/pet_skill.c @@ -16,7 +16,7 @@ #include "char_talk.h" /*======================================================================== - * 矢永玄及 卞勾中化及末□旦 宠物的各式技能 + * 銉氥儍銉堛伄鎶銇仱銇勩仸銇偨銉笺偣 瀹犵墿鐨勫悇寮忔妧鑳 *========================================================================*/ static Petskill *PETSKILL_petskill; @@ -24,13 +24,13 @@ static int PETSKILL_petskillnum; typedef struct tagPetskill_PetskillFunctionTable { - char *functionname; /* 涩烂白央奶伙卞踏仁楮醒及 蟆 */ - PETSKILL_CALLFUNC func; /* 端卞裟太请今木月楮醒 */ + char *functionname; /* 瑷畾銉曘偂銈ゃ儷銇浉銇忛枹鏁般伄鍚嶅墠 */ + PETSKILL_CALLFUNC func; /* 瀹熼殯銇懠銇冲嚭銇曘倢銈嬮枹鏁 */ int hash; /* hash */ - int status; /* 仇及戊穴件玉毛矢永玄互隙烂仄凶执 */ + int status; /* 銇撱伄銈炽優銉炽儔銈掋儦銉冦儓銇屾寚瀹氥仐銇熷嵃 */ }PETSKILL_PetskillFunctionTable; -/* 毛 支仄凶日仇仇卞瓒 允月仪 */ +/*鎶銈掑銈勩仐銇熴倝銇撱亾銇櫥閷层仚銈嬩簨 */ static PETSKILL_PetskillFunctionTable PETSKILL_functbl[] = { { "PETSKILL_None", PETSKILL_None, 0 }, { "PETSKILL_NormalAttack", PETSKILL_NormalAttack, 0 }, @@ -43,7 +43,7 @@ static PETSKILL_PetskillFunctionTable PETSKILL_functbl[] = { { "PETSKILL_StatusChange", PETSKILL_StatusChange, 0 }, { "PETSKILL_EarthRound", PETSKILL_EarthRound, 0 }, { "PETSKILL_GuardBreak", PETSKILL_GuardBreak, 0 }, -#ifdef _SKILL_GUARDBREAK2//破除防御2 vincent add 2002/05/20 +#ifdef _SKILL_GUARDBREAK2//鐮撮櫎闃插尽2 vincent add 2002/05/20 { "PETSKILL_GuardBreak2", PETSKILL_GuardBreak2, 0 }, #endif { "PETSKILL_Abduct", PETSKILL_Abduct, 0 }, @@ -113,7 +113,7 @@ static PETSKILL_PetskillFunctionTable PETSKILL_functbl[] = { { "PETSKILL_AttackCrazed", PETSKILL_AttackCrazed, 0}, #endif -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 { "PETSKILL_AttackShoot", PETSKILL_AttackShoot, 0}, #endif @@ -157,27 +157,27 @@ static PETSKILL_PetskillFunctionTable PETSKILL_functbl[] = { #ifdef _SKILL_REFRESH { "PETSKILL_Refresh", PETSKILL_Refresh, 0},//vincent add 2002/08/08 #endif -#ifdef _SKILL_WEAKEN //vincent宠技:虚弱 +#ifdef _SKILL_WEAKEN //vincent瀹犳妧:铏氬急 { "PETSKILL_Weaken", PETSKILL_Weaken, 0},//vincent add 2002/07/11 #endif -#ifdef _SKILL_DEEPPOISON //vincent宠技:剧毒 +#ifdef _SKILL_DEEPPOISON //vincent瀹犳妧:鍓ф瘨 { "PETSKILL_Deeppoison", PETSKILL_Deeppoison, 0},//vincent add 2002/07/16 #endif -#ifdef _SKILL_BARRIER //vincent宠技:魔障 +#ifdef _SKILL_BARRIER //vincent瀹犳妧:榄旈殰 { "PETSKILL_Barrier", PETSKILL_Barrier, 0},//vincent add 2002/07/16 #endif -#ifdef _SKILL_NOCAST //vincent宠技:沉默 +#ifdef _SKILL_NOCAST //vincent瀹犳妧:娌夐粯 { "PETSKILL_Nocast", PETSKILL_Nocast, 0},//vincent add 2002/07/16 #endif -#ifdef _SKILL_ROAR //vincent宠技:大吼 +#ifdef _SKILL_ROAR //vincent瀹犳妧:澶у惣 { "PETSKILL_Roar", PETSKILL_Roar, 0},//vincent add 2002/07/11 #endif -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 { "PETSKILL_Sars", PETSKILL_Sars, 0}, #endif -#ifdef _SONIC_ATTACK // WON ADD 音波攻击 +#ifdef _SONIC_ATTACK // WON ADD 闊虫尝鏀诲嚮 { "PETSKILL_Sonic", PETSKILL_Sonic, 0}, #endif #ifdef _PETSKILL_REGRET @@ -188,7 +188,7 @@ static PETSKILL_PetskillFunctionTable PETSKILL_functbl[] = { { "PETSKILL_Gyrate", PETSKILL_Gyrate, 0}, #endif -#ifdef _PETSKILL_ACUPUNCTURE //针刺外皮 +#ifdef _PETSKILL_ACUPUNCTURE //閽堝埡澶栫毊 { "PETSKILL_Acupuncture", PETSKILL_Acupuncture, 0}, #endif @@ -237,7 +237,7 @@ static PETSKILL_PetskillFunctionTable PETSKILL_functbl[] = { /*----------------------------------------------------------------------*/ -/* 湘 民尼永弁]失弁本旦楮溢 */ +/* 鍩烘湰銉併偋銉冦偗锛屻偄銈偦銈归枹淇*/ /*----------------------------------------------------------------------*/ INLINE BOOL PETSKILL_CHECKINDEX( int index ) { @@ -288,7 +288,7 @@ INLINE BOOL PETSKILL_setChar( int index ,PETSKILL_DATACHAR element, char* new ) return TRUE; } /*---------------------------------------------------------------------- - * 矢永玄 及醒毛襞月[ + * 銉氥儍銉堟妧銇暟銈掔煡銈 *---------------------------------------------------------------------*/ int PETSKILL_getPetskillNum( void) { @@ -302,7 +302,7 @@ int PETSKILL_getPetskillNum( void) #endif /*---------------------------------------------------------------------- - * 矢永玄 及涩烂白央奶伙毛 戈//初始宠技 + * 銉氥儍銉堟妧銇ō瀹氥儠銈°偆銉倰瑾個//鍒濆瀹犳妧 *---------------------------------------------------------------------*/ BOOL PETSKILL_initPetskill( char *filename) { @@ -321,7 +321,7 @@ BOOL PETSKILL_initPetskill( char *filename) PETSKILL_petskillnum=0; - /* 引内 躲卅垫互窒垫丐月井升丹井譬屯月 *///读曲宠技总数 + /* 銇俱仛鏈夊姽銇銇屼綍琛屻亗銈嬨亱銇┿亞銇嬭銇广倠 *///璇诲彇瀹犳妧鎬绘暟 while( fgets( line, sizeof( line ), f ) ){ char token[256]; linenum ++; @@ -329,35 +329,35 @@ BOOL PETSKILL_initPetskill( char *filename) if( line[0] == '\n' )continue; /* none */ chomp( line ); PETSKILL_petskillnum++; -#ifdef _PETSKILL_OPTIMUM // Robin 取出最大宠技ID +#ifdef _PETSKILL_OPTIMUM // Robin 鍙栧嚭鏈澶у疇鎶ID if( getStringFromIndexWithDelim( line, ",", PETSKILL_STARTINTNUM, token, sizeof(token)) == FALSE ) continue; - //print("\n 宠技ID:%d %s ", atoi( token), line); + //print("\n 瀹犳妧ID:%d %s ", atoi( token), line); max_skillid = max( atoi( token), max_skillid); #endif } if( fseek( f, 0, SEEK_SET ) == -1 ){ - fprint( "寻找失败\n" ); + fprint( "瀵绘壘澶辫触\n" ); fclose(f); return FALSE; } -#ifdef _PETSKILL_OPTIMUM // 宠技Table数为 最大技能ID +1 +#ifdef _PETSKILL_OPTIMUM // 瀹犳妧Table鏁颁负 鏈澶ф妧鑳絀D +1 PETSKILL_petskillnum = max_skillid +1; -// print("\n 最大宠技ID = %d\n", max_skillid); +// print("\n 鏈澶у疇鎶ID = %d\n", max_skillid); #endif PETSKILL_petskill = allocateMemory( sizeof(struct tagPetskill) * PETSKILL_petskillnum ); if( PETSKILL_petskill == NULL ){ - fprint( "无法分配内存 %d\n" , + fprint( "鏃犳硶鍒嗛厤鍐呭瓨 %d\n" , sizeof(struct tagPetskill)*PETSKILL_petskillnum); fclose( f ); return FALSE; } - /* 赓渝祭 */ + /* 鍒濇湡鍖 */ for( i = 0; i < PETSKILL_petskillnum; i ++ ) { for( j = 0; j < PETSKILL_DATAINTNUM; j ++ ) { PETSKILL_setInt( i,j,-1); @@ -367,7 +367,7 @@ BOOL PETSKILL_initPetskill( char *filename) } } - /* 引凶 心 允 */ + /* 銇俱仧瑾伩鐩淬仚 */ linenum = 0; while( fgets( line, sizeof( line ), f ) ){ linenum ++; @@ -376,10 +376,10 @@ BOOL PETSKILL_initPetskill( char *filename) chomp( line ); - /* 垫毛帮溥允月 */ - /* 引内 tab 毛 " " 卞 五晶尹月 */ + /* 琛屻倰鏁村舰銇欍倠 */ + /* 銇俱仛 tab 銈 " " 銇疆銇嶆彌銇堛倠 */ replaceString( line, '\t' , ' ' ); - /* 燮 及旦矢□旦毛潸月[*/ + /* 鍏堥牠銇偣銉氥兗銈广倰鍙栥倠*/ { char buf[256]; for( i = 0; i < strlen( line); i ++) { @@ -396,31 +396,31 @@ BOOL PETSKILL_initPetskill( char *filename) char token[256]; int ret; -#ifdef _PETSKILL_OPTIMUM // 读取本行宠技的ID, 直接以宠技ID当Table index +#ifdef _PETSKILL_OPTIMUM // 璇诲彇鏈瀹犳妧鐨処D, 鐩存帴浠ュ疇鎶ID褰揟able index ret = getStringFromIndexWithDelim( line, ",", PETSKILL_STARTINTNUM, token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); break; } petskill_readlen = atoi( token); #endif for( i = 0; i < PETSKILL_DATACHARNUM; i ++ ) { - /* 侬 迕玄□弁件毛苇月 */ + /* 鏂囧瓧鍒楃敤銉堛兗銈兂銈掕銈 */ ret = getStringFromIndexWithDelim( line,",", i + 1, token,sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); break; } PETSKILL_setChar( petskill_readlen, i, token); } - /* 4勾 动嫦反醒袄犯□正 */ + /* 4銇ょ洰浠ラ檷銇暟鍊ゃ儑銉笺偪 */ for( i = PETSKILL_STARTINTNUM; i < PETSKILL_DATAINTNUM+PETSKILL_STARTINTNUM; i ++ ) { ret = getStringFromIndexWithDelim( line,",",i,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); break; } if( strlen( token) != 0 ) { @@ -446,9 +446,9 @@ BOOL PETSKILL_initPetskill( char *filename) PETSKILL_petskillnum = petskill_readlen; - print( "有效宠物技能数是 %d...", PETSKILL_petskillnum ); + print( "鏈夋晥瀹犵墿鎶鑳芥暟鏄 %d...", PETSKILL_petskillnum ); - /* hash 及瓒 */ + /* hash 銇櫥閷 */ for( i = 0; i < arraysizeof( PETSKILL_functbl); i ++ ) { PETSKILL_functbl[i].hash = hashpjw( PETSKILL_functbl[i].functionname); } @@ -471,7 +471,7 @@ BOOL PETSKILL_initPetskill( char *filename) return TRUE; } /*------------------------------------------------------------------------ - * Petskill及涩烂白央奶伙 心 仄 + * Petskill銇ō瀹氥儠銈°偆銉銇跨洿銇 *-----------------------------------------------------------------------*/ BOOL PETSKILL_reinitPetskill( void ) { @@ -479,14 +479,14 @@ BOOL PETSKILL_reinitPetskill( void ) return( PETSKILL_initPetskill( getPetskillfile())); } /*------------------------------------------------------------------------ - * PETSKILL_ID井日骄侬毛襞月楮醒 - * 忒曰袄 - * 岳 : 骄侬 - * 撩 : -1 + * PETSKILL_ID銇嬨倝娣诲瓧銈掔煡銈嬮枹鏁 + * 杩斻倞鍊 + * 鎴愬姛: 娣诲瓧 + * 澶辨晽: -1 *-----------------------------------------------------------------------*/ int PETSKILL_getPetskillArray( int petskillid) { -#ifdef _PETSKILL_OPTIMUM // 查询宠技ID改为阵列式 +#ifdef _PETSKILL_OPTIMUM // 鏌ヨ瀹犳妧ID鏀逛负闃靛垪寮 if( petskillid >= 0 && petskillid < PETSKILL_petskillnum ) return PETSKILL_petskill[petskillid].data[PETSKILL_ID]; #else @@ -500,11 +500,11 @@ int PETSKILL_getPetskillArray( int petskillid) return -1; } /*------------------------------------------------------------ - * 矢永玄 及楮醒 井日禾奶件正□毛忒允 - * 娄醒 - * name char* 热诸及 蟆 - * 忒曰袄 - * 楮醒尺及禾奶件正[卅中桦宁卞反NULL + * 銉氥儍銉堟妧銇枹鏁板悕銇嬨倝銉濄偆銉炽偪銉笺倰杩斻仚 + * 寮曟暟 + * name char* 鍛銇悕鍓 + * 杩斻倞鍊 + * 闁㈡暟銇搞伄銉濄偆銉炽偪銆傘仾銇勫牬鍚堛伀銇疦ULL ------------------------------------------------------------*/ PETSKILL_CALLFUNC PETSKILL_getPetskillFuncPointer(char* name ) { @@ -538,7 +538,7 @@ int PETSKILL_Use( if(petskillid!=0 && petskillid!=1 && petskillid!=2) petskillid=0; } -#ifdef _FIXWOLF // Syu ADD 修正狼人变身Bug +#ifdef _FIXWOLF // Syu ADD 淇鐙间汉鍙樿韩Bug if( petskillid == 600 ){ if ( CHAR_getInt ( charaindex , CHAR_BASEIMAGENUMBER) == 101428 ) petskillid = -1; @@ -603,7 +603,7 @@ int PETSKILL_ContinuationAttack( { #ifdef _FIX_ContinuationAttack if(toindex<0 || toindex>=BATTLE_ENTRY_MAX*2){ - print("err:N段攻击的击目标索引异常 %d ", toindex); + print("err:N娈垫敾鍑荤殑鍑荤洰鏍囩储寮曞紓甯 %d ", toindex); return FALSE; } #endif @@ -652,7 +652,7 @@ int PETSKILL_ChargeAttack( }else{ N = 1; } - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%d", &Per ); } CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, N ); @@ -675,7 +675,7 @@ int PETSKILL_Guardian( pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); @@ -683,7 +683,7 @@ int PETSKILL_Guardian( CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); @@ -704,7 +704,7 @@ int PETSKILL_Guardian( pos = BATTLE_Index2No( battleindex, charaindex ); if( (pszP = strstr( pszOption, "COM:" ) ) != NULL - && strstr( pszP+4, "防御" ) != NULL + && strstr( pszP+4, "闃插尽" ) != NULL ){ CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_GUARD ); @@ -749,7 +749,7 @@ int PETSKILL_Mighty( float fPer = 0.01; int strdef,i; char szTurn[] = "turn"; - char *hetStatus[]={"全", "毒", "麻", "眠", "石", "醉", "乱", "虚", "剧", "障", "默"}; + char *hetStatus[]={"鍏", "姣", "楹", "鐪", "鐭", "閱", "涔", "铏", "鍓", "闅", "榛"}; pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); for(i=0;i<11;i++){ if((pszP = strstr( pszOption, hetStatus[i] ) ) != NULL) break; @@ -764,7 +764,7 @@ int PETSKILL_Mighty( CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM6, 1); } - if((pszP = strstr( pszOption, "成" ) ) != NULL){ + if((pszP = strstr( pszOption, "鎴" ) ) != NULL){ sscanf( pszP+3, "%d", &i ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM7, i); }else{ @@ -775,16 +775,16 @@ int PETSKILL_Mighty( CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toindex ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - if( (pszP = strstr( pszOption, "倍" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鍊" ) ) != NULL ){ sscanf( pszP+2, "%f", &fBai ); iBai = (int)(fBai * 100); } CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, iBai ); pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); - if( ( pszP = strstr( pszOption, "避" ) ) != NULL){ + if( ( pszP = strstr( pszOption, "閬" ) ) != NULL){ sscanf( pszP+2, "%d", &iDuck ); } - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); @@ -792,7 +792,7 @@ int PETSKILL_Mighty( CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); @@ -800,7 +800,7 @@ int PETSKILL_Mighty( CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); } - if( (pszP = strstr( pszOption, "敏%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXDEX); @@ -834,7 +834,7 @@ int PETSKILL_PowerBalance( print("\n pszOption == NULL "); return FALSE; } - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); @@ -842,7 +842,7 @@ int PETSKILL_PowerBalance( CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); @@ -850,7 +850,7 @@ int PETSKILL_PowerBalance( CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); } - if( (pszP = strstr( pszOption, "敏%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXDEX); @@ -901,7 +901,7 @@ int PETSKILL_StatusChange( CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, i ); CHAR_SETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3, turn ); - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); @@ -910,7 +910,7 @@ int PETSKILL_StatusChange( (CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef) ); } - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); @@ -952,7 +952,7 @@ int PETSKILL_Vary( int cindex, int tindex, int id, char* data) //print("\n pszOption==NULL"); return FALSE; } - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); CHAR_setWorkInt( cindex, CHAR_SKILLSTRPOWER, fPer); fPer = fPer / 100; @@ -961,7 +961,7 @@ int PETSKILL_Vary( int cindex, int tindex, int id, char* data) CHAR_setWorkInt( cindex, CHAR_WORKATTACKPOWER, CHAR_getWorkInt( cindex, CHAR_WORKFIXSTR) + a_dep); } - if( (pszP = strstr( pszOption, "敏%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); CHAR_setWorkInt( cindex, CHAR_SKILLDEXPOWER, fPer); fPer = fPer / 100; @@ -1005,31 +1005,31 @@ int PETSKILL_WildViolentAttack( //print("\n pszOption == NULL "); return FALSE; } - //读取攻值 - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + //璇诲彇鏀诲 + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); - //设定修正值 + //璁惧畾淇鍊 strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } - //读取防值 - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + //璇诲彇闃插 + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); - //设定修正值 + //璁惧畾淇鍊 strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); } - //读取避值 - if( ( pszP = strstr( pszOption, "避" ) ) != NULL){ + //璇诲彇閬垮 + if( ( pszP = strstr( pszOption, "閬" ) ) != NULL){ sscanf( pszP+2, "%d", &iDuck ); } - // 膜恳毛忡绣 + // 鑶滄伋姣涘俊缁 CHAR_SETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3, iDuck ); return TRUE; @@ -1056,7 +1056,7 @@ int PETSKILL_Sacrifice( else { - sprintf(buf, "%s自身耐久力不足 救援失败!!", CHAR_getChar( charaindex, CHAR_NAME )); + sprintf(buf, "%s鑷韩鑰愪箙鍔涗笉瓒 鏁戞彺澶辫触!!", CHAR_getChar( charaindex, CHAR_NAME )); CHAR_talkToCli( CHAR_getWorkInt(charaindex, CHAR_WORKPLAYERINDEX), -1, buf, CHAR_COLORYELLOW); return FALSE; } @@ -1080,7 +1080,7 @@ int PETSKILL_Refresh( return TRUE; } #endif -#ifdef _SKILL_WEAKEN //vincent宠技:虚弱 +#ifdef _SKILL_WEAKEN //vincent瀹犳妧:铏氬急 int PETSKILL_Weaken( int charaindex, int toindex, @@ -1096,7 +1096,7 @@ int PETSKILL_Weaken( return TRUE; } #endif -#ifdef _SKILL_DEEPPOISON //vincent宠技:剧毒 +#ifdef _SKILL_DEEPPOISON //vincent瀹犳妧:鍓ф瘨 int PETSKILL_Deeppoison( int charaindex, int toindex, @@ -1113,7 +1113,7 @@ int PETSKILL_Deeppoison( } #endif -#ifdef _SKILL_BARRIER //vincent宠技:魔障 +#ifdef _SKILL_BARRIER //vincent瀹犳妧:榄旈殰 int PETSKILL_Barrier( int charaindex, int toindex, @@ -1130,7 +1130,7 @@ int PETSKILL_Barrier( } #endif -#ifdef _SKILL_NOCAST //vincent宠技:沉默 +#ifdef _SKILL_NOCAST //vincent瀹犳妧:娌夐粯 int PETSKILL_Nocast( int charaindex, int toindex, @@ -1147,7 +1147,7 @@ int PETSKILL_Nocast( } #endif -#ifdef _SKILL_ROAR //vincent宠技:大吼 +#ifdef _SKILL_ROAR //vincent瀹犳妧:澶у惣 int PETSKILL_Roar( int charaindex, int toindex, @@ -1164,7 +1164,7 @@ int PETSKILL_Roar( } #endif -#ifdef _SKILL_GUARDBREAK2//破除防御2 vincent add 2002/05/20 +#ifdef _SKILL_GUARDBREAK2//鐮撮櫎闃插尽2 vincent add 2002/05/20 int PETSKILL_GuardBreak2( int charaindex, int toNo, @@ -1250,7 +1250,7 @@ int PETSKILL_EarthRound( float fPer = 0.01; #ifdef _FIX_EARTHROUND if(toNo<0 || toNo>=BATTLE_ENTRY_MAX*2){ - print("err:地球一周攻击目标索引异常 %d ", toNo); + print("err:鍦扮悆涓鍛ㄦ敾鍑荤洰鏍囩储寮曞紓甯 %d ", toNo); return FALSE; } #endif @@ -1259,7 +1259,7 @@ int PETSKILL_EarthRound( CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); CHAR_setWorkInt(charaindex,CHAR_WORKBATTLECOM3, (int)fPer ); } @@ -1288,7 +1288,7 @@ int PETSKILL_GuardBreak( pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); @@ -1301,7 +1301,7 @@ int PETSKILL_GuardBreak( return TRUE; } -#ifdef _SKILL_SPEEDY_ATT//疾速攻击 vincent add 2002/05/20 +#ifdef _SKILL_SPEEDY_ATT//鐤鹃熸敾鍑 vincent add 2002/05/20 int PETSKILL_SpeedyAttack( int charaindex, int toNo, @@ -1325,12 +1325,12 @@ int PETSKILL_SpeedyAttack( return FALSE; } - //读取防值 - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + //璇诲彇闃插 + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); - //设定修正值 + //璁惧畾淇鍊 strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); @@ -1380,7 +1380,7 @@ int PETSKILL_StealMoney( int charaindex, int toNo, int array, char *data) #endif //******************************************************* -// 檗 -- 失奶 丞宁岳 +// 鐭崇増-- 銈€偆銉嗐儬鍚堟垚 // int PETSKILL_Merge( int charaindex, @@ -1439,14 +1439,14 @@ int PETSKILL_NoGuard( CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); - if( (pszP = strstr( pszOption, "避%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "閬%" ) ) != NULL ){ sscanf( pszP+3, "%d", &Duck ); CHAR_SETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3, Duck ); } - if( (pszP = strstr( pszOption, "击%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鍑%" ) ) != NULL ){ sscanf( pszP+3, "%d", &Counter ); } - if( (pszP = strstr( pszOption, "心%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "蹇%" ) ) != NULL ){ sscanf( pszP+3, "%d", &Critical ); } CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, @@ -1467,34 +1467,34 @@ int PETSKILL_AttackMagic( char *pszP; char szMagic[] = "magic"; char szItem[] = "item"; - int magic = 313; // magic id预设为火魔法等级一,item index预设为19659 + int magic = 313; // magic id棰勮涓虹伀榄旀硶绛夌骇涓,item index棰勮涓19659 // int item = 19659; - // 取得宠物技能命令 + // 鍙栧緱瀹犵墿鎶鑳藉懡浠 pszP = PETSKILL_getChar( array, PETSKILL_OPTION ); - // 取得施放的魔法的magic id + // 鍙栧緱鏂芥斁鐨勯瓟娉曠殑magic id if((pszP = strstr(pszP,szMagic)) != NULL) { pszP += sizeof(szMagic); sscanf(pszP,"%d",&magic); } /* - // 取得有此魔法属性的item index + // 鍙栧緱鏈夋榄旀硶灞炴х殑item index if((pszP = strstr(pszP,szItem)) != NULL) { pszP += sizeof(szItem); sscanf(pszP,"%d",&item); } */ - // 设定宠物技能为魔法 + // 璁惧畾瀹犵墿鎶鑳戒负榄旀硶 CHAR_setWorkInt(charaindex,CHAR_WORKBATTLECOM1,BATTLE_COM_S_ATTACK_MAGIC ); - // 攻击目标设定 + // 鏀诲嚮鐩爣璁惧畾 CHAR_setWorkInt(charaindex,CHAR_WORKBATTLECOM2,toindex); - // 设定所使用的是那一种魔法 + // 璁惧畾鎵浣跨敤鐨勬槸閭d竴绉嶉瓟娉 CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3,magic); - // 设定所使用的魔法的道具 + // 璁惧畾鎵浣跨敤鐨勯瓟娉曠殑閬撳叿 // CHAR_SETWORKINT_HIGH(charaindex,CHAR_WORKBATTLECOM3,item); - // 命令下达完毕 + // 鍛戒护涓嬭揪瀹屾瘯 CHAR_setWorkInt(charaindex,CHAR_WORKBATTLEMODE,BATTLE_CHARMODE_C_OK ); return TRUE; @@ -1502,7 +1502,7 @@ int PETSKILL_AttackMagic( #endif -#ifdef _PSKILL_FALLGROUND //落马术 +#ifdef _PSKILL_FALLGROUND //钀介┈鏈 int PETSKILL_FallGround( int charaindex, int toNo, int array, char *data ) { char *pszOption, *pszP; @@ -1514,7 +1514,7 @@ int PETSKILL_FallGround( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); @@ -1553,7 +1553,7 @@ int ENEMYSKILL_EnemyHelp( int enemyindex, int toNo, int array, char *data ) #endif -#ifdef _SKILL_DAMAGETOHP //嗜血技 { "PETSKILL_DamageToHp", PETSKILL_DamageToHp, 0}, +#ifdef _SKILL_DAMAGETOHP //鍡滆鎶 { "PETSKILL_DamageToHp", PETSKILL_DamageToHp, 0}, int PETSKILL_DamageToHp( int charaindex, int toNo, int array, char *data ) { char *pszOption; @@ -1564,7 +1564,7 @@ int PETSKILL_DamageToHp( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_DAMAGETOHP ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3, array); //记录技能 + CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3, array); //璁板綍鎶鑳 pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); if( pszOption == "\0" ) return FALSE; @@ -1592,7 +1592,7 @@ int PETSKILL_MpDamage( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_MPDAMAGE ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3, array); ////记录技能 + CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3, array); ////璁板綍鎶鑳 pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); if( pszOption == "\0" ) return FALSE; @@ -1620,7 +1620,7 @@ int PETSKILL_ToothCrushe( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_TOOTHCRUSHE ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录技能 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍鎶鑳 /* pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); if( pszOption == "\0" ) return FALSE; @@ -1646,7 +1646,7 @@ int PETSKILL_Modifyattack( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_MODIFYATT ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录技能 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍鎶鑳 /* pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); if( pszOption == "\0" ) return FALSE; @@ -1673,7 +1673,7 @@ int PETSKILL_Mdfyattack( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_MDFYATTACK); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); if( pszOption == "\0" ) return FALSE; @@ -1684,11 +1684,11 @@ int PETSKILL_Mdfyattack( int charaindex, int toNo, int array, char *data ) break; } if( i == 4 ) return FALSE; - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM4, i);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM4, i);//璁板綍灞炴 if( getStringFromIndexWithDelim( pszOption, "|", 2, buf1, sizeof( buf1)) == FALSE ) return FALSE; nums=atoi( buf1); - CHAR_SETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM4, nums);//记录数值 + CHAR_SETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM4, nums);//璁板綍鏁板 return TRUE; } #endif @@ -1725,21 +1725,21 @@ int PETSKILL_Inslay( int index, int toNo, int array, char *data) if( !ITEM_CHECKINDEX( itemindex) ) continue; if( i >= MAXINSLAY ) { - CHAR_talkToCli( charaindex, -1, "精工每次只能选择四个物品。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "绮惧伐姣忔鍙兘閫夋嫨鍥涗釜鐗╁搧銆", CHAR_COLORYELLOW); return FALSE; } for( j=0; j< MAXINSLAY; j++ ) { if( itemindexs[j] == itemindex ) { - //print("精工物品index相同 ERROR !!\n"); + //print("绮惧伐鐗╁搧index鐩稿悓 ERROR !!\n"); return FALSE; } } if( (buf1 = ITEM_getChar( itemindex, ITEM_TYPECODE)) == "\0" ) { - //print(" ITEM_TYPECODE == NULL 错误 !!\n"); + //print(" ITEM_TYPECODE == NULL 閿欒 !!\n"); return FALSE; } if( !strcmp( buf1, "\0") || !strcmp( buf1, "NULL") ) { - CHAR_talkToCli( charaindex, -1, "这样物品不适合精工。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "杩欐牱鐗╁搧涓嶉傚悎绮惧伐銆", CHAR_COLORYELLOW); return FALSE; } if( strstr( buf1, "INSLAY") != 0 ) { @@ -1747,7 +1747,7 @@ int PETSKILL_Inslay( int index, int toNo, int array, char *data) inslayindex = itemindex; inslayno = itemno; }else { - CHAR_talkToCli( charaindex, -1, "精工每次只能选择一个武器或防具。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "绮惧伐姣忔鍙兘閫夋嫨涓涓鍣ㄦ垨闃插叿銆", CHAR_COLORYELLOW); return FALSE; } } @@ -1756,7 +1756,7 @@ int PETSKILL_Inslay( int index, int toNo, int array, char *data) } if( !ITEM_CHECKINDEX( inslayindex) ) { - CHAR_talkToCli( charaindex, -1, "精工必须选择一个武器或防具。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "绮惧伐蹇呴』閫夋嫨涓涓鍣ㄦ垨闃插叿銆", CHAR_COLORYELLOW); return FALSE; } @@ -1792,7 +1792,7 @@ int PETSKILL_MagicStatusChange( int charaindex, int toindex, int array, char *da CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_SUPERWALL); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toindex ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 return TRUE; } @@ -1807,7 +1807,7 @@ int PETSKILL_SetDuck( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_SETDUCK); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 CHAR_setWorkInt( charaindex, CHAR_MAGICPETMP, 0 ); @@ -1825,7 +1825,7 @@ int PETSKILL_SetMagicPet( int charaindex, int toNo, int array, char *data ) nums = CHAR_getWorkInt( charaindex, CHAR_MAGICPETMP); if( nums >= 3 ){ int toindex = CHAR_getWorkInt( charaindex, CHAR_WORKPLAYERINDEX); - CHAR_talkToCli( toindex, -1, "此技能单场限用三次。", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "姝ゆ妧鑳藉崟鍦洪檺鐢ㄤ笁娆°", CHAR_COLORYELLOW); return FALSE; } CHAR_setWorkInt( charaindex, CHAR_MAGICPETMP, nums ); @@ -1833,7 +1833,7 @@ int PETSKILL_SetMagicPet( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_SETMAGICPET); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 return TRUE; } #endif @@ -1870,18 +1870,18 @@ int PETSKILL_Fixitem( int index, int toNo, int array, char *data) if( !ITEM_CHECKINDEX( itemindex) ) continue; if( i >= MAXFIXITEM ) { - CHAR_talkToCli( charaindex, -1, "修复每次只能选择两个物品。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "淇姣忔鍙兘閫夋嫨涓や釜鐗╁搧銆", CHAR_COLORYELLOW); return FALSE; } for( j=0; j< MAXFIXITEM; j++ ) { if( itemindexs[j] == itemindex ) { - //print("修复物品index相同 ERROR !!\n"); + //print("淇鐗╁搧index鐩稿悓 ERROR !!\n"); return FALSE; } } itemtype = ITEM_getInt( itemindex, ITEM_TYPE); if( itemtype == ITEM_DISH ) { - CHAR_talkToCli( charaindex, -1, "料理不能做修复。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鏂欑悊涓嶈兘鍋氫慨澶嶃", CHAR_COLORYELLOW); return FALSE; } @@ -1905,7 +1905,7 @@ int PETSKILL_Fixitem( int index, int toNo, int array, char *data) fixindex = itemindex; fixno = itemno; }else { - CHAR_talkToCli( charaindex, -1, "修复每次只能选择一个武器或防具。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "淇姣忔鍙兘閫夋嫨涓涓鍣ㄦ垨闃插叿銆", CHAR_COLORYELLOW); return FALSE; } } @@ -1915,7 +1915,7 @@ int PETSKILL_Fixitem( int index, int toNo, int array, char *data) } if( !ITEM_CHECKINDEX( fixindex) ) { - CHAR_talkToCli( charaindex, -1, "修复必须选择一个武器或防具。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "淇蹇呴』閫夋嫨涓涓鍣ㄦ垨闃插叿銆", CHAR_COLORYELLOW); return FALSE; } @@ -1935,7 +1935,7 @@ int PETSKILL_Fixitem( int index, int toNo, int array, char *data) CHAR_complianceParameter( charaindex ); CHAR_send_P_StatusString( charaindex, CHAR_P_STRING_ATK | CHAR_P_STRING_DEF | CHAR_P_STRING_QUICK | CHAR_P_STRING_CHARM ); - CHAR_talkToCli( charaindex, -1, "修复完成。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "淇瀹屾垚銆", CHAR_COLORYELLOW); return TRUE; } #endif @@ -1953,7 +1953,7 @@ int PETSKILL_BattleTimid( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKATTACKPOWER, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR)*0.7) ); CHAR_setWorkInt( charaindex, CHAR_WORKDEFENCEPOWER, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH)*0.4) ); CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX)*0.8) ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 return TRUE; } @@ -1972,38 +1972,38 @@ int PETSKILL_2BattleTimid( int charaindex, int toNo, int array, char *data ) pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); if( pszOption == "\0" ) return FALSE; - if( (pszP = strstr( pszOption, "-攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "-鏀%" ) ) != NULL ){ sscanf( pszP+4, "%f", &fPer ); fPer=(fPer/100); CHAR_setWorkInt( charaindex, CHAR_WORKATTACKPOWER, (CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR)*fPer) ); } - if( (pszP = strstr( pszOption, "+攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "+鏀%" ) ) != NULL ){ sscanf( pszP+4, "%f", &fPer ); fPer=(fPer/100); CHAR_setWorkInt( charaindex, CHAR_WORKATTACKPOWER, CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR)+(CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR)*fPer) ); } - if( (pszP = strstr( pszOption, "-防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "-闃%" ) ) != NULL ){ sscanf( pszP+4, "%f", &fPer ); fPer=(fPer/100); CHAR_setWorkInt( charaindex, CHAR_WORKDEFENCEPOWER, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH)*fPer) ); } - if( (pszP = strstr( pszOption, "+防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "+闃%" ) ) != NULL ){ sscanf( pszP+4, "%f", &fPer ); fPer=(fPer/100); CHAR_setWorkInt( charaindex, CHAR_WORKDEFENCEPOWER, CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH)+(CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH)*fPer) ); } - if( (pszP = strstr( pszOption, "-敏%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "-鏁%" ) ) != NULL ){ sscanf( pszP+4, "%f", &fPer ); fPer=(fPer/100); CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX)*fPer) ); } - if( (pszP = strstr( pszOption, "+敏%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "+鏁%" ) ) != NULL ){ sscanf( pszP+4, "%f", &fPer ); fPer=(fPer/100); CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX)+(CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX)*fPer) ); } - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 return TRUE; } @@ -2017,7 +2017,7 @@ int PETSKILL_AntInter( int charaindex, int toNo, int array, char* data) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 return TRUE; } #endif @@ -2035,7 +2035,7 @@ int PETSKILL_BattleProperty( int charaindex, int toNo, int array, char *data ) // CHAR_setWorkInt( charaindex, CHAR_WORKATTACKPOWER, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR)*0.7) ); // CHAR_setWorkInt( charaindex, CHAR_WORKDEFENCEPOWER, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH)*0.5) ); // CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX)*0.95) ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 return TRUE; } @@ -2053,7 +2053,7 @@ int PETSKILL_BattleTearDamage( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKATTACKPOWER, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR)*0.9) ); CHAR_setWorkInt( charaindex, CHAR_WORKDEFENCEPOWER, ( CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH)*0.8) ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 return TRUE; } #endif @@ -2072,7 +2072,7 @@ int PETSKILL_Lighttakeed( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKATTACKPOWER, (CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR)*0.7) ); CHAR_setWorkInt( charaindex, CHAR_WORKDEFENCEPOWER, (CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH)*0.5) ); // CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, (CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX)*0.95) ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 return TRUE; } #endif @@ -2096,18 +2096,18 @@ int PETSKILL_AttackCrazed( int charaindex, int toNo, int array, char *data ) pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); if( pszOption == "\0" ) return FALSE; - //读取攻值 - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + //璇诲彇鏀诲 + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); - //设定修正值 + //璁惧畾淇鍊 strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); @@ -2115,7 +2115,7 @@ int PETSKILL_AttackCrazed( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); } - if( (pszP = strstr( pszOption, "敏%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); CHAR_setWorkInt( charaindex, CHAR_SKILLDEXPOWER, fPer); fPer = fPer / 100; @@ -2124,18 +2124,18 @@ int PETSKILL_AttackCrazed( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX) + d_dep); } - if( (pszP = strstr( pszOption, "次" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "娆" ) ) != NULL ){ sscanf( pszP+3, "%d", &attnum ); CHAR_SETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3, attnum); } - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 //CHAR_SETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3, atoi(pszOption)); return TRUE; } #endif -#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 +#ifdef _SHOOTCHESTNUT // Syu ADD 瀹犳妧锛氫涪鏍楀瓙 int PETSKILL_AttackShoot( int charaindex, int toNo, int array, char *data ) { //int n = RAND ( 3 , 5 ) ; @@ -2168,13 +2168,13 @@ int PETSKILL_AttackShoot( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKATTACKPOWER, (CHAR_getWorkInt( charaindex, CHAR_WORKFIXSTR) * 1.2 / 4 ) ); CHAR_setWorkInt( charaindex, CHAR_WORKDEFENCEPOWER, (CHAR_getWorkInt( charaindex, CHAR_WORKFIXTOUGH) * 1) ); */ - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array);//璁板綍灞炴 CHAR_SETWORKINT_HIGH( charaindex, CHAR_WORKBATTLECOM3, n); return TRUE; } #endif -#ifdef _PET_SKILL_SARS // WON ADD 毒煞蔓延 +#ifdef _PET_SKILL_SARS // WON ADD 姣掔厼钄撳欢 int PETSKILL_Sars( int charaindex, int toNo, int array, char *data ) { @@ -2213,14 +2213,14 @@ int PETSKILL_Sars( int charaindex, int toNo, int array, char *data ) } #endif -#ifdef _SONIC_ATTACK // WON ADD 音波攻击 +#ifdef _SONIC_ATTACK // WON ADD 闊虫尝鏀诲嚮 int PETSKILL_Sonic( int charaindex, int toNo, int array, char *data ) { CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_SONIC ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍灞炴 return TRUE; } @@ -2232,7 +2232,7 @@ int PETSKILL_Regret( int charaindex, int toNo, int array, char *data ) int strdef,d_dep; float fPer = 0.01; pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); @@ -2240,14 +2240,14 @@ int PETSKILL_Regret( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); } - if( (pszP = strstr( pszOption, "敏%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); CHAR_setWorkInt( charaindex, CHAR_SKILLDEXPOWER, fPer); fPer = fPer / 100; @@ -2260,7 +2260,7 @@ int PETSKILL_Regret( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍灞炴 return TRUE; } @@ -2275,10 +2275,10 @@ int PETSKILL_Gyrate( int charaindex, int toNo, int array, char *data ) char szTurn[] = "turn"; int d_dep,i=0; int randi=0; - //char *hetStatus[]={"全", "毒", "麻", "眠", "石", "醉", "乱", "虚", "剧", "障", "默"}; + //char *hetStatus[]={"鍏", "姣", "楹", "鐪", "鐭", "閱", "涔", "铏", "鍓", "闅", "榛"}; CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_GYRATE ); - CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); //攻击对象 23,24,25,26 为单排 + CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); //鏀诲嚮瀵硅薄 23,24,25,26 涓哄崟鎺 CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); @@ -2304,7 +2304,7 @@ int PETSKILL_Gyrate( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM6, 1); } - if((pszP = strstr( pszOption, "成" ) ) != NULL){ + if((pszP = strstr( pszOption, "鎴" ) ) != NULL){ sscanf( pszP+3, "%d", &i ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM7, i); // randi=RAND(1,100); @@ -2319,18 +2319,18 @@ int PETSKILL_Gyrate( int charaindex, int toNo, int array, char *data ) // } } #endif - //读取攻值 - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + //璇诲彇鏀诲 + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); - //设定修正值 + //璁惧畾淇鍊 strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } #ifdef _PSKILL_GYRATE - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); @@ -2338,7 +2338,7 @@ int PETSKILL_Gyrate( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); } - if( (pszP = strstr( pszOption, "敏%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); CHAR_setWorkInt( charaindex, CHAR_SKILLDEXPOWER, fPer); fPer = fPer / 100; @@ -2347,7 +2347,7 @@ int PETSKILL_Gyrate( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX) + d_dep); } #endif - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍灞炴 return TRUE; } #endif @@ -2359,7 +2359,7 @@ int PETSKILL_Acupuncture( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍灞炴 return TRUE; } #endif @@ -2382,17 +2382,17 @@ int PETSKILL_Retrace( int charaindex, int toNo, int array, char *data ) return FALSE; } - //读取攻值 - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + //璇诲彇鏀诲 + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); - //设定修正值 + //璁惧畾淇鍊 strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } */ - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍灞炴 return TRUE; } #endif @@ -2405,7 +2405,7 @@ int PETSKILL_Hector( int charaindex, int toNo, int array, char *data ) int strdef; char szTurn[] = "turn"; int d_dep,i=0; - char *hetStatus[]={"全", "毒", "麻", "眠", "石", "醉", "乱", "虚", "剧", "障", "默"}; + char *hetStatus[]={"鍏", "姣", "楹", "鐪", "鐭", "閱", "涔", "铏", "鍓", "闅", "榛"}; CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_HECTOR ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); @@ -2428,25 +2428,25 @@ int PETSKILL_Hector( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM6, 1); } - if((pszP = strstr( pszOption, "成" ) ) != NULL){ + if((pszP = strstr( pszOption, "鎴" ) ) != NULL){ sscanf( pszP+3, "%d", &i ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM7, i); }else{ CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM7, 60); } - //读取攻值 - if( (pszP = strstr( pszOption, "攻%" ) ) != NULL ){ + //璇诲彇鏀诲 + if( (pszP = strstr( pszOption, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); - //设定修正值 + //璁惧畾淇鍊 strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } - if( (pszP = strstr( pszOption, "防%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); @@ -2454,7 +2454,7 @@ int PETSKILL_Hector( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); } - if( (pszP = strstr( pszOption, "敏%" ) ) != NULL ){ + if( (pszP = strstr( pszOption, "鏁%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); CHAR_setWorkInt( charaindex, CHAR_SKILLDEXPOWER, fPer); fPer = fPer / 100; @@ -2463,7 +2463,7 @@ int PETSKILL_Hector( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKQUICK, CHAR_getWorkInt( charaindex, CHAR_WORKFIXDEX) + d_dep); } - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍灞炴 return TRUE; } @@ -2476,7 +2476,7 @@ int PETSKILL_Firekill( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍灞炴 return TRUE; } @@ -2489,7 +2489,7 @@ int PETSKILL_DamageToHp2( int charaindex, int toNo, int array, char *data ) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_DAMAGETOHP2 ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3, array); //记录技能 + CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3, array); //璁板綍鎶鑳 /* pszOption = PETSKILL_getChar( array, PETSKILL_OPTION ); if( pszOption == "\0" ) return FALSE; @@ -2511,7 +2511,7 @@ int PETSKILL_BecomeFox( int charaindex, int toNo, int array, char* data) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_BECOMEFOX); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3, array); //记录技能 + CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM3, array); //璁板綍鎶鑳 return TRUE; } @@ -2523,7 +2523,7 @@ int PETSKILL_BecomePig( int charaindex, int toNo, int array, char* data) CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_BECOMEPIG); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toNo ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); - CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //记录属性 + CHAR_SETWORKINT_LOW( charaindex, CHAR_WORKBATTLECOM3, array); //璁板綍灞炴 return TRUE; } #endif @@ -2557,40 +2557,40 @@ int PETSKILL_BattleModel(int charaindex, int toindex, int array, char* data) pszOption = PETSKILL_getChar(array,PETSKILL_OPTION); if(pszOption == "\0"){ - //printf("PETSKILL_BattleModel: 读取 PETSKILL_OPTION 错误!!(数组:%d,文件:%s,第%d行)\n",array,__FILE__,__LINE__); + //printf("PETSKILL_BattleModel: 璇诲彇 PETSKILL_OPTION 閿欒!!(鏁扮粍:%d,鏂囦欢:%s,绗%d琛)\n",array,__FILE__,__LINE__); return FALSE; } - // 取得攻击类型 + // 鍙栧緱鏀诲嚮绫诲瀷 if(getStringFromIndexWithDelim(pszOption,"|",1,szData,sizeof(szData)) == FALSE){ - //printf("PETSKILL_BattleModel: no type data!!(文件:%s,第%d行)\n",__FILE__,__LINE__); + //printf("PETSKILL_BattleModel: no type data!!(鏂囦欢:%s,绗%d琛)\n",__FILE__,__LINE__); return FALSE; } iType = atoi(szData); - // 取得攻击物件数量 + // 鍙栧緱鏀诲嚮鐗╀欢鏁伴噺 if(getStringFromIndexWithDelim(pszOption,"|",2,szData,sizeof(szData)) == FALSE){ - //printf("PETSKILL_BattleModel: no object number data!!(文件:%s,第%d行)\n",__FILE__,__LINE__); + //printf("PETSKILL_BattleModel: no object number data!!(鏂囦欢:%s,绗%d琛)\n",__FILE__,__LINE__); return FALSE; } iObjectNum = atoi(szData); if(iObjectNum <= 0) iObjectNum = RAND(1,10); else if(iObjectNum > 10) iObjectNum = 10; - // 取得能力增减 + // 鍙栧緱鑳藉姏澧炲噺 if(getStringFromIndexWithDelim(pszOption,"|",6,szData,sizeof(szData)) != FALSE){ - // 检查设定 + // 妫鏌ヨ瀹 if(CHAR_getWorkInt(charaindex,CHAR_WORKPETSKILLBT)==0 && CHAR_getWorkInt(charaindex,CHAR_WORKBATTLEINDEX)>-1){ - //读取攻值 - if( (pszP = strstr( szData, "攻%" ) ) != NULL ){ + //璇诲彇鏀诲 + if( (pszP = strstr( szData, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); - //设定修正值 + //璁惧畾淇鍊 strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } #ifdef _PSKILL_BATTLE_MODEL - if( (pszP = strstr( szData, "防%" ) ) != NULL ){ + if( (pszP = strstr( szData, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); @@ -2598,7 +2598,7 @@ int PETSKILL_BattleModel(int charaindex, int toindex, int array, char* data) CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); } - if( (pszP = strstr( szData, "敏%" ) ) != NULL ){ + if( (pszP = strstr( szData, "鏁%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); CHAR_setWorkInt( charaindex, CHAR_SKILLDEXPOWER, fPer); fPer = fPer / 100; @@ -2612,8 +2612,8 @@ int PETSKILL_BattleModel(int charaindex, int toindex, int array, char* data) CHAR_setWorkInt(charaindex,CHAR_WORKPETSKILLBT,1); CHAR_setWorkInt(charaindex,CHAR_WORKBATTLEMODE,BATTLE_CHARMODE_C_OK); CHAR_setWorkInt(charaindex,CHAR_WORKBATTLECOM1,BATTLE_COM_S_BATTLE_MODEL); - CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM2,iType); // 记录攻击类型 - CHAR_SETWORKINT_HIGH(charaindex,CHAR_WORKBATTLECOM2,iObjectNum); // 记录攻击物件数量 + CHAR_SETWORKINT_LOW(charaindex,CHAR_WORKBATTLECOM2,iType); // 璁板綍鏀诲嚮绫诲瀷 + CHAR_SETWORKINT_HIGH(charaindex,CHAR_WORKBATTLECOM2,iObjectNum); // 璁板綍鏀诲嚮鐗╀欢鏁伴噺 CHAR_setWorkInt(charaindex,CHAR_WORKBATTLECOM3,array); return TRUE; } @@ -2643,7 +2643,7 @@ int PETSKILL_Combined( int charaindex, int toNo, int array, char* data) strcpysafe( combined,sizeof(combined), " " ); getStringFromIndexWithDelim( pszOption, "|", 1, combined, sizeof( combined)); - if( strcmp( combined, "综合法" ) == 0 ){ + if( strcmp( combined, "缁煎悎娉" ) == 0 ){ if( getStringFromIndexWithDelim( pszOption, "|", 2, countstr, sizeof( countstr)) == FALSE ) return FALSE; count = atoi(countstr); @@ -2676,7 +2676,7 @@ int PETSKILL_ZiYun1( int attcnt=1,ming=100,i,strdef,d_dep; float fPer; char szTurn[] = "turn"; - char *hetStatus[]={"全", "毒", "麻", "眠", "石", "醉", "乱", "虚", "剧", "障", "默"}; + char *hetStatus[]={"鍏", "姣", "楹", "鐪", "鐭", "閱", "涔", "铏", "鍓", "闅", "榛"}; CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM1, BATTLE_COM_S_ZIYUN1 ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM2, toindex ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLEMODE, BATTLE_CHARMODE_C_OK ); @@ -2689,17 +2689,17 @@ int PETSKILL_ZiYun1( ming = atoi(szData); } if(getStringFromIndexWithDelim(pszOption,"|",3,szData,sizeof(szData)) == FALSE){ - if( (pszP = strstr( szData, "攻%" ) ) != NULL ){ + if( (pszP = strstr( szData, "鏀%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); - //设定修正值 + //璁惧畾淇鍊 strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR); strdef=(int)(strdef * fPer); CHAR_setWorkInt(charaindex,CHAR_WORKATTACKPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXSTR)+strdef)); } - if( (pszP = strstr( szData, "防%" ) ) != NULL ){ + if( (pszP = strstr( szData, "闃%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); fPer=(fPer/100); strdef=CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH); @@ -2707,7 +2707,7 @@ int PETSKILL_ZiYun1( CHAR_setWorkInt(charaindex,CHAR_WORKDEFENCEPOWER,(CHAR_getWorkInt(charaindex,CHAR_WORKFIXTOUGH)+strdef)); } - if( (pszP = strstr( szData, "敏%" ) ) != NULL ){ + if( (pszP = strstr( szData, "鏁%" ) ) != NULL ){ sscanf( pszP+3, "%f", &fPer ); CHAR_setWorkInt( charaindex, CHAR_SKILLDEXPOWER, fPer); fPer = fPer / 100; @@ -2729,7 +2729,7 @@ int PETSKILL_ZiYun1( CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM6, 1); } - if((pszP = strstr( pszOption, "成" ) ) != NULL){ + if((pszP = strstr( pszOption, "鎴" ) ) != NULL){ sscanf( pszP+3, "%d", &i ); CHAR_setWorkInt( charaindex, CHAR_WORKBATTLECOM7, i); }else{ diff --git a/battle/profession_skill.c b/battle/profession_skill.c index 3a3ea47..ad628b2 100644 --- a/battle/profession_skill.c +++ b/battle/profession_skill.c @@ -1,7 +1,7 @@ #include "version.h" -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 #include #include #include @@ -27,87 +27,87 @@ typedef struct tagProfessionskill_skillFunctionTable static PROFESSION_SKILL_skillFunctionTable PROFESSION_SKILL_functbl[] = { -// 巫师技能 - { "PROFESSION_VOLCANO_SPRINGS", PROFESSION_volcano_springs, 0 }, // 火山泉 - { "PROFESSION_FIRE_BALL", PROFESSION_fire_ball, 0 }, // 火星球 - { "PROFESSION_FIRE_SPEAR", PROFESSION_fire_spear, 0 }, // 火龙枪 - { "PROFESSION_SUMMON_THUNDER", PROFESSION_summon_thunder, 0 }, // 召雷术 - { "PROFESSION_CURRENT", PROFESSION_current, 0 }, // 电流术 - { "PROFESSION_STORM", PROFESSION_storm, 0 }, // 暴风雨 - { "PROFESSION_ICE_ARROW", PROFESSION_ice_arrow, 0 }, // 冰箭术 - { "PROFESSION_ICE_CRACK", PROFESSION_ice_crack, 0 }, // 冰爆术 - { "PROFESSION_ICE_MIRROR", PROFESSION_ice_mirror, 0 }, // 冰镜术 - { "PROFESSION_DOOM", PROFESSION_doom, 0 }, // 世界末日 - { "PROFESSION_BLOOD", PROFESSION_blood, 0 }, // 嗜血成性 - { "PROFESSION_BLOOD_WORMS", PROFESSION_blood_worms, 0 }, // 嗜血蛊 - { "PROFESSION_SIGN", PROFESSION_sign, 0 }, // 一针见血 - { "PROFESSION_FIRE_ENCLOSE", PROFESSION_fire_enclose, 0 }, // 火附体 - { "PROFESSION_ICE_ENCLOSE", PROFESSION_ice_eclose, 0 }, // 冰附体 - { "PROFESSION_THUNDER_ENCLOSE", PROFESSION_thunder_enclose, 0 }, // 雷附体 - { "PROFESSION_FIRE_PRACTICE", PROFESSION_fire_practice, 0 }, // 火魔法熟练度 - { "PROFESSION_ICE_PRACTICE", PROFESSION_ice_practice, 0 }, // 冰魔法熟练度 - { "PROFESSION_THUNDER_PRACTICE",PROFESSION_thunder_practice,0 }, // 雷魔法熟练度 - { "PROFESSION_ENCLOSE", PROFESSION_enclose, 0 }, // 附身术 - { "PROFESSION_TRANSPOSE", PROFESSION_transpose, 0 }, // 移形换位 -// { "PROFESSION_ALCHEMY", PROFESSION_alchemy, 0 }, // 炼金术 +// 宸笀鎶鑳 + { "PROFESSION_VOLCANO_SPRINGS", PROFESSION_volcano_springs, 0 }, // 鐏北娉 + { "PROFESSION_FIRE_BALL", PROFESSION_fire_ball, 0 }, // 鐏槦鐞 + { "PROFESSION_FIRE_SPEAR", PROFESSION_fire_spear, 0 }, // 鐏緳鏋 + { "PROFESSION_SUMMON_THUNDER", PROFESSION_summon_thunder, 0 }, // 鍙浄鏈 + { "PROFESSION_CURRENT", PROFESSION_current, 0 }, // 鐢垫祦鏈 + { "PROFESSION_STORM", PROFESSION_storm, 0 }, // 鏆撮闆 + { "PROFESSION_ICE_ARROW", PROFESSION_ice_arrow, 0 }, // 鍐扮鏈 + { "PROFESSION_ICE_CRACK", PROFESSION_ice_crack, 0 }, // 鍐扮垎鏈 + { "PROFESSION_ICE_MIRROR", PROFESSION_ice_mirror, 0 }, // 鍐伴暅鏈 + { "PROFESSION_DOOM", PROFESSION_doom, 0 }, // 涓栫晫鏈棩 + { "PROFESSION_BLOOD", PROFESSION_blood, 0 }, // 鍡滆鎴愭 + { "PROFESSION_BLOOD_WORMS", PROFESSION_blood_worms, 0 }, // 鍡滆铔 + { "PROFESSION_SIGN", PROFESSION_sign, 0 }, // 涓閽堣琛 + { "PROFESSION_FIRE_ENCLOSE", PROFESSION_fire_enclose, 0 }, // 鐏檮浣 + { "PROFESSION_ICE_ENCLOSE", PROFESSION_ice_eclose, 0 }, // 鍐伴檮浣 + { "PROFESSION_THUNDER_ENCLOSE", PROFESSION_thunder_enclose, 0 }, // 闆烽檮浣 + { "PROFESSION_FIRE_PRACTICE", PROFESSION_fire_practice, 0 }, // 鐏瓟娉曠啛缁冨害 + { "PROFESSION_ICE_PRACTICE", PROFESSION_ice_practice, 0 }, // 鍐伴瓟娉曠啛缁冨害 + { "PROFESSION_THUNDER_PRACTICE",PROFESSION_thunder_practice,0 }, // 闆烽瓟娉曠啛缁冨害 + { "PROFESSION_ENCLOSE", PROFESSION_enclose, 0 }, // 闄勮韩鏈 + { "PROFESSION_TRANSPOSE", PROFESSION_transpose, 0 }, // 绉诲舰鎹綅 +// { "PROFESSION_ALCHEMY", PROFESSION_alchemy, 0 }, // 鐐奸噾鏈 -// 勇士技能 - { "PROFESSION_CHAIN_ATK", PROFESSION_chain_atk, 0 }, // 连环攻击 - { "PROFESSION_AVOID", PROFESSION_avoid, 0 }, // 回避 - { "PROFESSION_WEAPON_FOCUS", PROFESSION_weapon_focus, 0 }, // 武器专精 - { "PROFESSION_REBACK", PROFESSION_reback, 0 }, // 状态回复 - { "PROFESSION_BRUST", PROFESSION_brust, 0 }, // 爆击 - { "PROFESSION_CHAIN_ATK_2", PROFESSION_chain_atk_2, 0 }, // 双重攻击 - { "PROFESSION_SCAPEGOAT", PROFESSION_scapegoat, 0 }, // 舍已为友 - { "PROFESSION_ENRAGE", PROFESSION_enrage, 0 }, // 激化攻击 - { "PROFESSION_ENERGY_COLLECT", PROFESSION_energy_collect, 0 }, // 能量聚集 - { "PROFESSION_FOCUS", PROFESSION_focus, 0 }, // 专注战斗 - { "PROFESSION_SHIELD_ATTACK", PROFESSION_shield_attack, 0 }, // 盾击 - { "PROFESSION_DUAL_WEAPON", PROFESSION_dual_weapon, 0 }, // 二刀流 - { "PROFESSION_DEFLECT", PROFESSION_deflect, 0 }, // 格档 - { "PROFESSION_THROUGH_ATTACK", PROFESSION_through_attack, 0 }, // 贯穿攻击 - { "PROFESSION_CAVALRY", PROFESSION_cavalry, 0 }, // 座骑攻击 - { "PROFESSION_DEAD_ATTACK", PROFESSION_dead_attack, 0 }, // 濒死攻击 - { "PROFESSION_CONVOLUTE", PROFESSION_convolute, 0 }, // 回旋攻击 - { "PROFESSION_CHAOS", PROFESSION_chaos, 0 }, // 混乱攻击 +// 鍕囧+鎶鑳 + { "PROFESSION_CHAIN_ATK", PROFESSION_chain_atk, 0 }, // 杩炵幆鏀诲嚮 + { "PROFESSION_AVOID", PROFESSION_avoid, 0 }, // 鍥為伩 + { "PROFESSION_WEAPON_FOCUS", PROFESSION_weapon_focus, 0 }, // 姝﹀櫒涓撶簿 + { "PROFESSION_REBACK", PROFESSION_reback, 0 }, // 鐘舵佸洖澶 + { "PROFESSION_BRUST", PROFESSION_brust, 0 }, // 鐖嗗嚮 + { "PROFESSION_CHAIN_ATK_2", PROFESSION_chain_atk_2, 0 }, // 鍙岄噸鏀诲嚮 + { "PROFESSION_SCAPEGOAT", PROFESSION_scapegoat, 0 }, // 鑸嶅凡涓哄弸 + { "PROFESSION_ENRAGE", PROFESSION_enrage, 0 }, // 婵鍖栨敾鍑 + { "PROFESSION_ENERGY_COLLECT", PROFESSION_energy_collect, 0 }, // 鑳介噺鑱氶泦 + { "PROFESSION_FOCUS", PROFESSION_focus, 0 }, // 涓撴敞鎴樻枟 + { "PROFESSION_SHIELD_ATTACK", PROFESSION_shield_attack, 0 }, // 鐩惧嚮 + { "PROFESSION_DUAL_WEAPON", PROFESSION_dual_weapon, 0 }, // 浜屽垁娴 + { "PROFESSION_DEFLECT", PROFESSION_deflect, 0 }, // 鏍兼。 + { "PROFESSION_THROUGH_ATTACK", PROFESSION_through_attack, 0 }, // 璐┛鏀诲嚮 + { "PROFESSION_CAVALRY", PROFESSION_cavalry, 0 }, // 搴ч獞鏀诲嚮 + { "PROFESSION_DEAD_ATTACK", PROFESSION_dead_attack, 0 }, // 婵掓鏀诲嚮 + { "PROFESSION_CONVOLUTE", PROFESSION_convolute, 0 }, // 鍥炴棆鏀诲嚮 + { "PROFESSION_CHAOS", PROFESSION_chaos, 0 }, // 娣蜂贡鏀诲嚮 -// 猎人 - { "PROFESSION_TRACK", PROFESSION_track, 0 }, // 追寻敌踪 - { "PROFESSION_ESCAPE", PROFESSION_escape, 0 }, // 回避战斗 - { "PROFESSION_DOCILE", PROFESSION_docile, 0 }, // 驯伏宠物 - { "PROFESSION_TRAP", PROFESSION_trap, 0 }, // 陷阱 - { "PROFESSION_ENRAGE_PET", PROFESSION_enrage_pet, 0 }, // 激怒宠物 - { "PROFESSION_DRAGNET", PROFESSION_dragnet, 0 }, // 天罗地网 - { "PROFESSION_ENTWINE", PROFESSION_entwine, 0 }, // 树根缠绕 - { "PROFESSION_AUTARKY", PROFESSION_autarky, 0 }, // 自给自足 - { "PROFESSION_PLUNDER", PROFESSION_plunder, 0 }, // 屍体掠夺 - { "PROFESSION_TOXIN_WEAPON", PROFESSION_toxin_weapon, 0 }, // 毒素武器 - { "PROFESSION_RESIST_FIRE", PROFESSION_resist_fire, 0 }, // 火抗性 - { "PROFESSION_RESIST_ICE", PROFESSION_resist_ice, 0 }, // 冰抗性 - { "PROFESSION_RESIST_THUNDER", PROFESSION_resist_thunder, 0 }, // 雷抗性 +// 鐚庝汉 + { "PROFESSION_TRACK", PROFESSION_track, 0 }, // 杩藉鏁岃釜 + { "PROFESSION_ESCAPE", PROFESSION_escape, 0 }, // 鍥為伩鎴樻枟 + { "PROFESSION_DOCILE", PROFESSION_docile, 0 }, // 椹紡瀹犵墿 + { "PROFESSION_TRAP", PROFESSION_trap, 0 }, // 闄烽槺 + { "PROFESSION_ENRAGE_PET", PROFESSION_enrage_pet, 0 }, // 婵鎬掑疇鐗 + { "PROFESSION_DRAGNET", PROFESSION_dragnet, 0 }, // 澶╃綏鍦扮綉 + { "PROFESSION_ENTWINE", PROFESSION_entwine, 0 }, // 鏍戞牴缂犵粫 + { "PROFESSION_AUTARKY", PROFESSION_autarky, 0 }, // 鑷粰鑷冻 + { "PROFESSION_PLUNDER", PROFESSION_plunder, 0 }, // 灞嶄綋鎺犲ず + { "PROFESSION_TOXIN_WEAPON", PROFESSION_toxin_weapon, 0 }, // 姣掔礌姝﹀櫒 + { "PROFESSION_RESIST_FIRE", PROFESSION_resist_fire, 0 }, // 鐏姉鎬 + { "PROFESSION_RESIST_ICE", PROFESSION_resist_ice, 0 }, // 鍐版姉鎬 + { "PROFESSION_RESIST_THUNDER", PROFESSION_resist_thunder, 0 }, // 闆锋姉鎬 #ifdef _PROFESSION_ADDSKILL - { "PROFESSION_RESIST_F_I_T", PROFESSION_resist_f_i_t, 0 }, // 自然威能 - { "PROFESSION_CALL_NATURE", PROFESSION_call_nature, 0 }, // 号召自然 - { "PROFESSION_BOUNDARY", PROFESSION_boundary, 0 }, // 四属性结界 + { "PROFESSION_RESIST_F_I_T", PROFESSION_resist_f_i_t, 0 }, // 鑷劧濞佽兘 + { "PROFESSION_CALL_NATURE", PROFESSION_call_nature, 0 }, // 鍙峰彫鑷劧 + { "PROFESSION_BOUNDARY", PROFESSION_boundary, 0 }, // 鍥涘睘鎬х粨鐣 #endif - { "PROFESSION_G_RESIST_FIRE", PROFESSION_g_resist_fire, 0 }, // 团体火抗性 - { "PROFESSION_G_RESIST_ICE", PROFESSION_g_resist_ice, 0 }, // 团体冰抗性 - { "PROFESSION_G_RESIST_THUNDER",PROFESSION_g_resist_thunder,0 }, // 团体雷抗性 - { "PROFESSION_ATTACK_WEAK", PROFESSION_attack_weak, 0 }, // 弱点攻击 - { "PROFESSION_INSTIGATE", PROFESSION_instigate, 0 }, // 挑拨 - { "PROFESSION_OBLIVION", PROFESSION_oblivion, 0 }, // 遗忘 + { "PROFESSION_G_RESIST_FIRE", PROFESSION_g_resist_fire, 0 }, // 鍥綋鐏姉鎬 + { "PROFESSION_G_RESIST_ICE", PROFESSION_g_resist_ice, 0 }, // 鍥綋鍐版姉鎬 + { "PROFESSION_G_RESIST_THUNDER",PROFESSION_g_resist_thunder,0 }, // 鍥綋闆锋姉鎬 + { "PROFESSION_ATTACK_WEAK", PROFESSION_attack_weak, 0 }, // 寮辩偣鏀诲嚮 + { "PROFESSION_INSTIGATE", PROFESSION_instigate, 0 }, // 鎸戞嫧 + { "PROFESSION_OBLIVION", PROFESSION_oblivion, 0 }, // 閬楀繕 -// 共同技能 - { "PROFESSION_FULL_MP", PROFESSION_full_mp, 0 }, // 气力充沛 - { "PROFESSION_STRONG_BACK", PROFESSION_strong_back, 0 }, // 负重增加 - { "PROFESSION_STRENGTHEN", PROFESSION_strengthen, 0 }, // 自我强化 +// 鍏卞悓鎶鑳 + { "PROFESSION_FULL_MP", PROFESSION_full_mp, 0 }, // 姘斿姏鍏呮矝 + { "PROFESSION_STRONG_BACK", PROFESSION_strong_back, 0 }, // 璐熼噸澧炲姞 + { "PROFESSION_STRENGTHEN", PROFESSION_strengthen, 0 }, // 鑷垜寮哄寲 }; -static int profession_skill_num; // 职业技能总数 +static int profession_skill_num; // 鑱屼笟鎶鑳芥绘暟 -// 将 profession.txt 载入 +// 灏 profession.txt 杞藉叆 BOOL PROFESSION_initSkill( char *filename) { @@ -135,7 +135,7 @@ BOOL PROFESSION_initSkill( char *filename) if( line[0] == '\n' )continue; chomp( line ); profession_skill_num++; -#ifdef _PROSKILL_OPTIMUM // Robin 取出最大职技ID +#ifdef _PROSKILL_OPTIMUM // Robin 鍙栧嚭鏈澶ц亴鎶ID if( getStringFromIndexWithDelim( line, ",", PROFESSION_SKILL_DATACHARNUM+PROFESSION_SKILL_ID+1, token, sizeof(token)) == FALSE ) @@ -150,16 +150,16 @@ BOOL PROFESSION_initSkill( char *filename) return FALSE; } -#ifdef _PROSKILL_OPTIMUM // 职技Table数为 最大技能ID +1 +#ifdef _PROSKILL_OPTIMUM // 鑱屾妧Table鏁颁负 鏈澶ф妧鑳絀D +1 profession_skill_num = max_skillid +1; - print("最大职技ID = %d ...", max_skillid); + print("鏈澶ц亴鎶ID = %d ...", max_skillid); #endif PROFESSION_skill = allocateMemory( sizeof(struct tagProfessionkill) * profession_skill_num + 1 ); if( PROFESSION_skill == NULL ){ - fprint( "无法分配内存 %d\n", sizeof(struct tagProfessionkill)*profession_skill_num); + fprint( "鏃犳硶鍒嗛厤鍐呭瓨 %d\n", sizeof(struct tagProfessionkill)*profession_skill_num); fclose( f ); return FALSE; } @@ -200,7 +200,7 @@ BOOL PROFESSION_initSkill( char *filename) char token[256]; int ret; -#ifdef _PROSKILL_OPTIMUM // 读取本行职技的ID, 直接以职技ID当Table index +#ifdef _PROSKILL_OPTIMUM // 璇诲彇鏈鑱屾妧鐨処D, 鐩存帴浠ヨ亴鎶ID褰揟able index ret = getStringFromIndexWithDelim( line, ",", PROFESSION_SKILL_DATACHARNUM+PROFESSION_SKILL_ID+1, token, sizeof(token)); if( ret==FALSE ){ //fprint("Syntax Error file:%s line:%d\n",filename,linenum); @@ -222,7 +222,7 @@ BOOL PROFESSION_initSkill( char *filename) ret = getStringFromIndexWithDelim( line, ",", i+PROFESSION_SKILL_DATACHARNUM+1, token, sizeof(token)); if( ret==FALSE ){ - //fprint("文件语法错误:%s 第%d行\n",filename,linenum); + //fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); break; } if( strlen( token) != 0 ) { @@ -245,7 +245,7 @@ BOOL PROFESSION_initSkill( char *filename) } -// 重新载入 profession.txt +// 閲嶆柊杞藉叆 profession.txt void rePROFESSION_initSkill() { freeMemory( PROFESSION_skill ); @@ -311,12 +311,12 @@ int PROFESSION_SKILL_getskillNum( void) int PROFESSION_SKILL_getskillArray( int skillid) { -#ifdef _PROSKILL_OPTIMUM // 查询职技ID改为阵列式 +#ifdef _PROSKILL_OPTIMUM // 鏌ヨ鑱屾妧ID鏀逛负闃靛垪寮 if( skillid >= 0 && skillid < profession_skill_num ) return PROFESSION_skill[skillid].data[PROFESSION_SKILL_ID]; #else int i; - for( i = 0; i <= profession_skill_num; i ++ ) { // 待优化 + for( i = 0; i <= profession_skill_num; i ++ ) { // 寰呬紭鍖 if( PROFESSION_skill[i].data[PROFESSION_SKILL_ID] == skillid ) return i; } @@ -356,7 +356,7 @@ int _PROFESSION_SKILL_GetArray( char *file, int line, int charaindex, int skill /*----------------------------------------------------------------------*/ -// 使用职业技能 +// 浣跨敤鑱屼笟鎶鑳 int PROFESSION_SKILL_Use( int charaindex, int skill, int toNo, char *data ) { int Pskillid, skillid; @@ -369,38 +369,38 @@ int PROFESSION_SKILL_Use( int charaindex, int skill, int toNo, char *data ) Pskillid = PROFESSION_SKILL_getskillArray( skillid); //print("\n skillid:%d Pskillid:%d ", skillid, Pskillid); // Robin log if( Pskillid == -1 ) { -// printf("\n 改封包??找不到该职技! "); +// printf("\n 鏀瑰皝鍖??鎵句笉鍒拌鑱屾妧! "); return ret; } -#ifdef _PROSKILL_OPTIMUM // Robin fix 检查职业是否相符 +#ifdef _PROSKILL_OPTIMUM // Robin fix 妫鏌ヨ亴涓氭槸鍚︾浉绗 char_pskill = CHAR_getInt( charaindex, PROFESSION_CLASS ); profession_skill = PROFESSION_SKILL_getInt( Pskillid, PROFESSION_SKILL_PROFESSION_CLASS); if( (char_pskill <=0) || (char_pskill != profession_skill) ) { -// print("\n 改封包??职技的职业不正确!:%d:%d ", char_pskill, profession_skill); +// print("\n 鏀瑰皝鍖??鑱屾妧鐨勮亴涓氫笉姝g‘!:%d:%d ", char_pskill, profession_skill); return ret; } #endif - // 找寻对应 function + // 鎵惧瀵瑰簲 function func = PROFESSION_SKILL_getskillFuncPointer( PROFESSION_SKILL_getChar( Pskillid, PROFESSION_SKILL_FUNCNAME) ); - // 判断是否为人物 + // 鍒ゆ柇鏄惁涓轰汉鐗 if( CHAR_getInt( charaindex, CHAR_WHICHTYPE) != CHAR_TYPEPLAYER ) return ret; if( func ){ - // 人物技能等级 + // 浜虹墿鎶鑳界瓑绾 hskill = CHAR_getCharHaveSkill( charaindex, skill ); skill_level = SKILL_getInt( &hskill->skill, SKILL_LEVEL); - // 耗损 MP + // 鑰楁崯 MP if( PROFESSION_SKILL_DEC_COST_MP( charaindex, skill, Pskillid, skill_level ) != 1 ) { -// print("\n Error:职技MP:%d:%d:%d ", skill, Pskillid, skill_level); +// print("\n Error:鑱屾妧MP:%d:%d:%d ", skill, Pskillid, skill_level); return ret; } - // 使用职业技能 + // 浣跨敤鑱屼笟鎶鑳 ret = func( charaindex, toNo, Pskillid, data, skill_level ); if( ret == -1 ){ int rands = rand()%10; @@ -409,21 +409,21 @@ int PROFESSION_SKILL_Use( int charaindex, int skill, int toNo, char *data ) if( rands > 5 ) return ret; } - if( Pskillid == 57 //激怒宠物 选宠物才有经验值 + if( Pskillid == 57 //婵鎬掑疇鐗 閫夊疇鐗╂墠鏈夌粡楠屽 && CHAR_getInt( BATTLE_No2Index( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEINDEX ), toNo ), CHAR_WHICHTYPE) != CHAR_TYPEPET ) return ret; - // 一般技能升级 + // 涓鑸妧鑳藉崌绾 PROFESSION_NORMAL_SKILL_LEVLE_UP( &hskill->skill, Pskillid, charaindex ); } else { - //print("\n 错误!找不到职技func "); + //print("\n 閿欒!鎵句笉鍒拌亴鎶func "); } return ret; } -// 特殊技能升级 +// 鐗规畩鎶鑳藉崌绾 void PROFESSION_SKILL_LVEVEL_UP( int charaindex, char *name ) { int skill=-1; @@ -433,12 +433,12 @@ void PROFESSION_SKILL_LVEVEL_UP( int charaindex, char *name ) for( i=0; iskill, Pskillid, charaindex ); return; } -// 二刀流技能升级 +// 浜屽垁娴佹妧鑳藉崌绾 void PROFESSION_SKILL_DUAL_WEAPON_LVEVEL_UP( int charaindex, char *name ) { int skill=-1, arm = 0, shield = 0; @@ -470,7 +470,7 @@ void PROFESSION_SKILL_DUAL_WEAPON_LVEVEL_UP( int charaindex, char *name ) char *skill_name="\0"; CHAR_HaveSkill* hskill; - // 检查左右手装备 + // 妫鏌ュ乏鍙虫墜瑁呭 for( i = 0 ; i < CHAR_EQUIPPLACENUM ; i ++ ){ int id = CHAR_getItemIndex(charaindex,i); if( ITEM_CHECKINDEX(id) ){ @@ -483,12 +483,12 @@ void PROFESSION_SKILL_DUAL_WEAPON_LVEVEL_UP( int charaindex, char *name ) for( i=0; iskill, Pskillid, charaindex ); return; } -// 武器专精技能升级 +// 姝﹀櫒涓撶簿鎶鑳藉崌绾 void PROFESSION_SKILL_WEAPON_FOCUS_LVEVEL_UP( int charaindex, char *name ) { int skill = -1; @@ -523,39 +523,39 @@ void PROFESSION_SKILL_WEAPON_FOCUS_LVEVEL_UP( int charaindex, char *name ) CHAR_HaveSkill* hskill; memset( diff, -1, sizeof(diff) ); - // 装备武器 + // 瑁呭姝﹀櫒 WeaponType = BATTLE_GetWepon( charaindex ); switch( WeaponType ){ case ITEM_AXE: - sprintf( diff, "斧" ); break; + sprintf( diff, "鏂" ); break; case ITEM_CLUB: - sprintf( diff, "棍" ); break; + sprintf( diff, "妫" ); break; case ITEM_SPEAR: - sprintf( diff, "枪" ); break; + sprintf( diff, "鏋" ); break; case ITEM_BOW: - sprintf( diff, "弓" ); break; - case ITEM_BOOMERANG: // 回旋标 - sprintf( diff, "镖" ); break; - case ITEM_BOUNDTHROW: // 投掷斧头 - sprintf( diff, "投" ); break; - case ITEM_BREAKTHROW: // 投掷石 - sprintf( diff, "石" ); break; + sprintf( diff, "寮" ); break; + case ITEM_BOOMERANG: // 鍥炴棆鏍 + sprintf( diff, "闀" ); break; + case ITEM_BOUNDTHROW: // 鎶曟幏鏂уご + sprintf( diff, "鎶" ); break; + case ITEM_BREAKTHROW: // 鎶曟幏鐭 + sprintf( diff, "鐭" ); break; default: - sprintf( diff, "无" ); break; + sprintf( diff, "鏃" ); break; } for( i=0; iskill, Pskillid, charaindex ); return; } -// 耗损 MP +// 鑰楁崯 MP int PROFESSION_SKILL_DEC_COST_MP( int charaindex, int skill, int Pskillid, int skill_level ) { @@ -589,19 +589,19 @@ int PROFESSION_SKILL_DEC_COST_MP( int charaindex, int skill, int Pskillid, int s int dec_mp; int old_mp = CHAR_getInt( charaindex, CHAR_MP ); int mp=0; - // 取出耗损 MP + // 鍙栧嚭鑰楁崯 MP if( (dec_mp = PROFESSION_MAGIC_COST_MP( charaindex, skill )) == -1 ) dec_mp = PROFESSION_SKILL_getInt( Pskillid, PROFESSION_SKILL_COST_MP ); - // 检查 MP量 + // 妫鏌 MP閲 if( old_mp < dec_mp ) return -1; - // 嗜血成性 + // 鍡滆鎴愭 if( Pskillid != 11 #ifdef _PROFESSION_ADDSKILL - // && Pskillid != 2 //针针相对不扣 MP + // && Pskillid != 2 //閽堥拡鐩稿涓嶆墸 MP #endif ) if( dec_mp <= 0 ) return -1; - // 扣掉人物 MP + // 鎵f帀浜虹墿 MP mp = old_mp - dec_mp; if( mp < 0 ) mp = 0; CHAR_setInt( charaindex , CHAR_MP , mp ); @@ -613,33 +613,33 @@ int PROFESSION_SKILL_DEC_COST_MP( int charaindex, int skill, int Pskillid, int s -// 一般技能升级 +// 涓鑸妧鑳藉崌绾 void PROFESSION_NORMAL_SKILL_LEVLE_UP(Skill *skill, int Pskillid, int charaindex ) { int skill_level = 0, up_fix_value = 0; int rand_num = RAND( 0, 10000 ), rand_num2 = 0; - // 技能等级到达上限不升级 + // 鎶鑳界瓑绾у埌杈句笂闄愪笉鍗囩骇 skill_level = SKILL_getRealInt( skill, SKILL_LEVEL); if( skill_level >= PROFESSION_SKILL_MAX_LEVEL * 100 ) return; - // 升级修正数值 + // 鍗囩骇淇鏁板 up_fix_value = PROFESSION_SKILL_getInt( Pskillid, PROFESSION_SKILL_FIX_VALUE) * 100; rand_num2 = RAND( 0, up_fix_value); - // 升级检定 + // 鍗囩骇妫瀹 if( rand_num > skill_level + rand_num2){ - // 增加熟练度 + // 澧炲姞鐔熺粌搴 skill_level += PROFESSION_SKILL_ADD_POINT; SKILL_setInt( skill, SKILL_LEVEL, skill_level ); if( ( skill_level % 100 ) == 0 ){ char msg[256]; - sprintf( msg, "%s技能熟练度上升为%d", PROFESSION_SKILL_getChar( Pskillid, PROFESSION_SKILL_NAME), skill_level/100 ); + sprintf( msg, "%s鎶鑳界啛缁冨害涓婂崌涓%d", PROFESSION_SKILL_getChar( Pskillid, PROFESSION_SKILL_NAME), skill_level/100 ); CHAR_talkToCli( charaindex, -1, msg, CHAR_COLORYELLOW); CHAR_sendStatusString( charaindex , "S"); - // 职业经验值增加 + // 鑱屼笟缁忛獙鍊煎鍔 PROFESSION_LEVEL_CHECK_UP( charaindex ); } } @@ -654,18 +654,18 @@ void PROFESSION_LEVEL_CHECK_UP( int charaindex ) int next_level_need_point = 9999999; CHAR_HaveSkill* hskill; - // 下一级职业升级点数 + // 涓嬩竴绾ц亴涓氬崌绾х偣鏁 next_level_need_point = old_level * 70 * 100; for( i=0; iskill, SKILL_IDENTITY); if( skillID <= 0 ) continue; - // 共通技能熟练度 50 + // 鍏遍氭妧鑳界啛缁冨害 50 if( (skillID == 63) || (skillID == 64) || (skillID == 65) ){ skill_level_add = 50*100; }else{ @@ -675,15 +675,15 @@ void PROFESSION_LEVEL_CHECK_UP( int charaindex ) skill_level_sum += skill_level_add; } -// print("\n技能熟练度上升 ==> 当前熟练度点数(%d) 下一级熟练度升级点数(%d)", skill_level_sum, next_level_need_point ); +// print("\n鎶鑳界啛缁冨害涓婂崌 ==> 褰撳墠鐔熺粌搴︾偣鏁(%d) 涓嬩竴绾х啛缁冨害鍗囩骇鐐规暟(%d)", skill_level_sum, next_level_need_point ); - // 技能熟练度达到下一级职业升级点数时,职业等级增加 + // 鎶鑳界啛缁冨害杈惧埌涓嬩竴绾ц亴涓氬崌绾х偣鏁版椂锛岃亴涓氱瓑绾у鍔 if( skill_level_sum >= next_level_need_point ){ int old_skill_point = CHAR_getInt( charaindex, PROFESSION_SKILL_POINT ); int next_skill_point = old_skill_point+1; char msg[64]; -// print("\n职业等级上升 ==> 当前职业等级点数(%d) 下一级职业等级升级点数(%d)", old_skill_point, next_skill_point ); +// print("\n鑱屼笟绛夌骇涓婂崌 ==> 褰撳墠鑱屼笟绛夌骇鐐规暟(%d) 涓嬩竴绾ц亴涓氱瓑绾у崌绾х偣鏁(%d)", old_skill_point, next_skill_point ); CHAR_setInt( charaindex, PROFESSION_LEVEL, old_level + 1 ); CHAR_setInt( charaindex, PROFESSION_SKILL_POINT, next_skill_point ); @@ -691,12 +691,12 @@ void PROFESSION_LEVEL_CHECK_UP( int charaindex ) CHAR_sendCToArroundCharacter( CHAR_getWorkInt( charaindex , CHAR_WORKOBJINDEX )); - sprintf( msg, "职业等级上升为%d级,技能点数上升1点", old_level + 1 ); + sprintf( msg, "鑱屼笟绛夌骇涓婂崌涓%d绾э紝鎶鑳界偣鏁颁笂鍗囷紤鐐", old_level + 1 ); CHAR_talkToCli( charaindex, -1, msg, CHAR_COLORYELLOW); } } -// 增加技能 +// 澧炲姞鎶鑳 int PROFESSION_SKILL_ADDSK( int charaindex, int skill, int level ) { int i; @@ -712,7 +712,7 @@ int PROFESSION_SKILL_ADDSK( int charaindex, int skill, int level ) pSkil = CHAR_getCharHaveSkill( charaindex, i ); skill_id = SKILL_getInt( &pSkil->skill, SKILL_IDENTITY); if( skill == skill_id && skill_id != -1 ){ - CHAR_talkToCli(charaindex,-1, "你已经学习过此技能", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1, "浣犲凡缁忓涔犺繃姝ゆ妧鑳", CHAR_COLORYELLOW); return -1; } @@ -721,7 +721,7 @@ int PROFESSION_SKILL_ADDSK( int charaindex, int skill, int level ) break; } if( i >= CHAR_SKILLMAXHAVE ){ - CHAR_talkToCli(charaindex,-1, "技能数量已达上限", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1, "鎶鑳芥暟閲忓凡杈句笂闄", CHAR_COLORYELLOW); return -1; }else{ level *= 100; @@ -767,9 +767,9 @@ void profession_common_fun( int charaindex, int toNo, int skill_level, int array } /*----------------------------------------------------------------------*/ -// 以下为职业技能 +// 浠ヤ笅涓鸿亴涓氭妧鑳 -// 巫师技能-火山泉 +// 宸笀鎶鑳-鐏北娉 int PROFESSION_volcano_springs( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -778,7 +778,7 @@ int PROFESSION_volcano_springs( int charaindex, int toNo, int array, char *data, return TRUE; } -// 巫师技能-火星球 +// 宸笀鎶鑳-鐏槦鐞 int PROFESSION_fire_ball( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo<21) @@ -787,7 +787,7 @@ int PROFESSION_fire_ball( int charaindex, int toNo, int array, char *data, int s return TRUE; } -// 巫师技能-火龙枪 +// 宸笀鎶鑳-鐏緳鏋 int PROFESSION_fire_spear( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -796,7 +796,7 @@ int PROFESSION_fire_spear( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 巫师技能-召雷术 +// 宸笀鎶鑳-鍙浄鏈 int PROFESSION_summon_thunder( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -805,7 +805,7 @@ int PROFESSION_summon_thunder( int charaindex, int toNo, int array, char *data, return TRUE; } -// 巫师技能-电流术 +// 宸笀鎶鑳-鐢垫祦鏈 int PROFESSION_current( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo!=20 && toNo!=21) @@ -814,7 +814,7 @@ int PROFESSION_current( int charaindex, int toNo, int array, char *data, int ski return TRUE; } -// 巫师技能-暴风雨 +// 宸笀鎶鑳-鏆撮闆 int PROFESSION_storm( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo!=20 && toNo!=21) @@ -823,7 +823,7 @@ int PROFESSION_storm( int charaindex, int toNo, int array, char *data, int skill return TRUE; } -// 巫师技能-冰箭术 +// 宸笀鎶鑳-鍐扮鏈 int PROFESSION_ice_arrow( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -832,7 +832,7 @@ int PROFESSION_ice_arrow( int charaindex, int toNo, int array, char *data, int s return TRUE; } -// 巫师技能-冰爆术 +// 宸笀鎶鑳-鍐扮垎鏈 int PROFESSION_ice_crack( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -841,7 +841,7 @@ int PROFESSION_ice_crack( int charaindex, int toNo, int array, char *data, int s return TRUE; } -// 巫师技能-冰镜术 +// 宸笀鎶鑳-鍐伴暅鏈 int PROFESSION_ice_mirror( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -850,7 +850,7 @@ int PROFESSION_ice_mirror( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 巫师技能-世界末日 +// 宸笀鎶鑳-涓栫晫鏈棩 int PROFESSION_doom( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo!=20 && toNo!=21) @@ -859,7 +859,7 @@ int PROFESSION_doom( int charaindex, int toNo, int array, char *data, int skill_ return TRUE; } -// 巫师技能-嗜血成性 +// 宸笀鎶鑳-鍡滆鎴愭 int PROFESSION_blood( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -868,7 +868,7 @@ int PROFESSION_blood( int charaindex, int toNo, int array, char *data, int skill return TRUE; } -// 巫师技能-嗜血蛊 +// 宸笀鎶鑳-鍡滆铔 int PROFESSION_blood_worms( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -877,7 +877,7 @@ int PROFESSION_blood_worms( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 巫师技能-一针见血 +// 宸笀鎶鑳-涓閽堣琛 int PROFESSION_sign( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo!=20 && toNo!=21) @@ -886,7 +886,7 @@ int PROFESSION_sign( int charaindex, int toNo, int array, char *data, int skill_ return TRUE; } -// 巫师技能-火附体 +// 宸笀鎶鑳-鐏檮浣 int PROFESSION_fire_enclose( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -895,7 +895,7 @@ int PROFESSION_fire_enclose( int charaindex, int toNo, int array, char *data, in return TRUE; } -// 巫师技能-冰附体 +// 宸笀鎶鑳-鍐伴檮浣 int PROFESSION_ice_eclose( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -904,7 +904,7 @@ int PROFESSION_ice_eclose( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 巫师技能-雷附体 +// 宸笀鎶鑳-闆烽檮浣 int PROFESSION_thunder_enclose( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -913,25 +913,25 @@ int PROFESSION_thunder_enclose( int charaindex, int toNo, int array, char *data, return TRUE; } -// 巫师技能-火魔法熟练度 +// 宸笀鎶鑳-鐏瓟娉曠啛缁冨害 int PROFESSION_fire_practice( int charaindex, int toNo, int array, char *data, int skill_level ) { return TRUE; } -// 巫师技能-冰魔法熟练度 +// 宸笀鎶鑳-鍐伴瓟娉曠啛缁冨害 int PROFESSION_ice_practice( int charaindex, int toNo, int array, char *data, int skill_level ) { return TRUE; } -// 巫师技能-雷魔法熟练度 +// 宸笀鎶鑳-闆烽瓟娉曠啛缁冨害 int PROFESSION_thunder_practice( int charaindex, int toNo, int array, char *data, int skill_level ) { return TRUE; } -// 巫师技能-附身术 +// 宸笀鎶鑳-闄勮韩鏈 int PROFESSION_enclose( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -940,7 +940,7 @@ int PROFESSION_enclose( int charaindex, int toNo, int array, char *data, int ski return TRUE; } -// 巫师技能-移形换位 +// 宸笀鎶鑳-绉诲舰鎹綅 int PROFESSION_transpose( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -952,7 +952,7 @@ int PROFESSION_transpose( int charaindex, int toNo, int array, char *data, int s /*----------------------------------------------------------------------*/ -// 勇士技能-爆击 +// 鍕囧+鎶鑳-鐖嗗嚮 int PROFESSION_brust( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -961,7 +961,7 @@ int PROFESSION_brust( int charaindex, int toNo, int array, char *data, int skill return TRUE; } -// 勇士技能-连环攻击 +// 鍕囧+鎶鑳-杩炵幆鏀诲嚮 int PROFESSION_chain_atk( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -970,7 +970,7 @@ int PROFESSION_chain_atk( int charaindex, int toNo, int array, char *data, int s return TRUE; } -// 勇士技能-回避 +// 鍕囧+鎶鑳-鍥為伩 int PROFESSION_avoid( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -979,7 +979,7 @@ int PROFESSION_avoid( int charaindex, int toNo, int array, char *data, int skill return TRUE; } -// 勇士技能-补血 +// 鍕囧+鎶鑳-琛ヨ int PROFESSION_recovery( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -988,13 +988,13 @@ int PROFESSION_recovery( int charaindex, int toNo, int array, char *data, int sk return TRUE; } -// 勇士技能-武器专精 +// 鍕囧+鎶鑳-姝﹀櫒涓撶簿 int PROFESSION_weapon_focus( int charaindex, int toNo, int array, char *data, int skill_level ) { return TRUE; } -// 勇士技能-状态回复 +// 鍕囧+鎶鑳-鐘舵佸洖澶 int PROFESSION_reback( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1003,7 +1003,7 @@ int PROFESSION_reback( int charaindex, int toNo, int array, char *data, int skil return TRUE; } -// 勇士技能-双重攻击 +// 鍕囧+鎶鑳-鍙岄噸鏀诲嚮 int PROFESSION_chain_atk_2( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1012,7 +1012,7 @@ int PROFESSION_chain_atk_2( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 勇士技能-舍已为友 +// 鍕囧+鎶鑳-鑸嶅凡涓哄弸 int PROFESSION_scapegoat( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1021,7 +1021,7 @@ int PROFESSION_scapegoat( int charaindex, int toNo, int array, char *data, int s return TRUE; } -// 勇士技能-激化攻击 +// 鍕囧+鎶鑳-婵鍖栨敾鍑 int PROFESSION_enrage( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1030,7 +1030,7 @@ int PROFESSION_enrage( int charaindex, int toNo, int array, char *data, int skil return TRUE; } -// 勇士技能-能量聚集 +// 鍕囧+鎶鑳-鑳介噺鑱氶泦 int PROFESSION_energy_collect( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1039,7 +1039,7 @@ int PROFESSION_energy_collect( int charaindex, int toNo, int array, char *data, return TRUE; } -// 勇士技能-专注战斗 +// 鍕囧+鎶鑳-涓撴敞鎴樻枟 int PROFESSION_focus( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1048,7 +1048,7 @@ int PROFESSION_focus( int charaindex, int toNo, int array, char *data, int skill return TRUE; } -// 勇士技能-盾击 +// 鍕囧+鎶鑳-鐩惧嚮 int PROFESSION_shield_attack( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1057,13 +1057,13 @@ int PROFESSION_shield_attack( int charaindex, int toNo, int array, char *data, i return TRUE; } -// 勇士技能-二刀流 +// 鍕囧+鎶鑳-浜屽垁娴 int PROFESSION_dual_weapon( int charaindex, int toNo, int array, char *data, int skill_level ) { return TRUE; } -// 勇士技能-格档 +// 鍕囧+鎶鑳-鏍兼。 int PROFESSION_deflect( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1072,7 +1072,7 @@ int PROFESSION_deflect( int charaindex, int toNo, int array, char *data, int ski return TRUE; } -// 勇士技能-贯穿攻击 +// 鍕囧+鎶鑳-璐┛鏀诲嚮 int PROFESSION_through_attack( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1081,7 +1081,7 @@ int PROFESSION_through_attack( int charaindex, int toNo, int array, char *data, return TRUE; } -// 勇士技能-座骑攻击 +// 鍕囧+鎶鑳-搴ч獞鏀诲嚮 int PROFESSION_cavalry( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1090,7 +1090,7 @@ int PROFESSION_cavalry( int charaindex, int toNo, int array, char *data, int ski return TRUE; } -// 勇士技能-濒死攻击 +// 鍕囧+鎶鑳-婵掓鏀诲嚮 int PROFESSION_dead_attack( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1099,7 +1099,7 @@ int PROFESSION_dead_attack( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 勇士技能-回旋攻击 +// 鍕囧+鎶鑳-鍥炴棆鏀诲嚮 int PROFESSION_convolute( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo<21) @@ -1108,7 +1108,7 @@ int PROFESSION_convolute( int charaindex, int toNo, int array, char *data, int s return TRUE; } -// 勇士技能-混乱攻击 +// 鍕囧+鎶鑳-娣蜂贡鏀诲嚮 int PROFESSION_chaos( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1119,7 +1119,7 @@ int PROFESSION_chaos( int charaindex, int toNo, int array, char *data, int skill /*----------------------------------------------------------------------*/ -// 猎人技能-陷阱 +// 鐚庝汉鎶鑳-闄烽槺 int PROFESSION_trap( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1128,7 +1128,7 @@ int PROFESSION_trap( int charaindex, int toNo, int array, char *data, int skill_ return TRUE; } -// 猎人技能-驯伏宠物 +// 鐚庝汉鎶鑳-椹紡瀹犵墿 int PROFESSION_docile( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1137,7 +1137,7 @@ int PROFESSION_docile( int charaindex, int toNo, int array, char *data, int skil return TRUE; } -// 猎人技能-激怒宠物 +// 鐚庝汉鎶鑳-婵鎬掑疇鐗 int PROFESSION_enrage_pet( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1146,7 +1146,7 @@ int PROFESSION_enrage_pet( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 猎人技能-天罗地网 +// 鐚庝汉鎶鑳-澶╃綏鍦扮綉 int PROFESSION_dragnet( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1155,7 +1155,7 @@ int PROFESSION_dragnet( int charaindex, int toNo, int array, char *data, int ski return TRUE; } -// 猎人技能-树根缠绕 +// 鐚庝汉鎶鑳-鏍戞牴缂犵粫 int PROFESSION_entwine( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1164,13 +1164,13 @@ int PROFESSION_entwine( int charaindex, int toNo, int array, char *data, int ski return TRUE; } -// 猎人技能-自给自足 +// 鐚庝汉鎶鑳-鑷粰鑷冻 int PROFESSION_autarky( int charaindex, int toNo, int array, char *data, int skill_level ) { return TRUE; } -// 猎人技能-屍体掠夺 +// 鐚庝汉鎶鑳-灞嶄綋鎺犲ず int PROFESSION_plunder( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1179,7 +1179,7 @@ int PROFESSION_plunder( int charaindex, int toNo, int array, char *data, int ski return TRUE; } -// 猎人技能-毒素武器 +// 鐚庝汉鎶鑳-姣掔礌姝﹀櫒 int PROFESSION_toxin_weapon( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1188,7 +1188,7 @@ int PROFESSION_toxin_weapon( int charaindex, int toNo, int array, char *data, in return TRUE; } -// 猎人技能-火抗性提升 +// 鐚庝汉鎶鑳-鐏姉鎬ф彁鍗 int PROFESSION_resist_fire( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1197,7 +1197,7 @@ int PROFESSION_resist_fire( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 猎人技能-冰抗性提升 +// 鐚庝汉鎶鑳-鍐版姉鎬ф彁鍗 int PROFESSION_resist_ice( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1206,7 +1206,7 @@ int PROFESSION_resist_ice( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 猎人技能-雷抗性提升 +// 鐚庝汉鎶鑳-闆锋姉鎬ф彁鍗 int PROFESSION_resist_thunder( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1216,7 +1216,7 @@ int PROFESSION_resist_thunder( int charaindex, int toNo, int array, char *data, } #ifdef _PROFESSION_ADDSKILL -// 猎人技能-自然威能 +// 鐚庝汉鎶鑳-鑷劧濞佽兘 int PROFESSION_resist_f_i_t( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1224,7 +1224,7 @@ int PROFESSION_resist_f_i_t( int charaindex, int toNo, int array, char *data, in profession_common_fun( charaindex, toNo, skill_level, array, BATTLE_COM_S_RESIST_F_I_T ); return TRUE; } -// 猎人技能-号召自然 +// 鐚庝汉鎶鑳-鍙峰彫鑷劧 int PROFESSION_call_nature( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo!=20 && toNo!=21) @@ -1232,7 +1232,7 @@ int PROFESSION_call_nature( int charaindex, int toNo, int array, char *data, int profession_common_fun( charaindex, toNo, skill_level, array, BATTLE_COM_S_CALL_NATURE ); return TRUE; } -// 猎人技能-四属性结界 +// 鐚庝汉鎶鑳-鍥涘睘鎬х粨鐣 int PROFESSION_boundary( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo!=20 && toNo!=21) @@ -1242,7 +1242,7 @@ int PROFESSION_boundary( int charaindex, int toNo, int array, char *data, int sk } #endif -// 猎人技能-团体火抗性提升 +// 鐚庝汉鎶鑳-鍥綋鐏姉鎬ф彁鍗 int PROFESSION_g_resist_fire( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo!=20 && toNo!=21) @@ -1251,7 +1251,7 @@ int PROFESSION_g_resist_fire( int charaindex, int toNo, int array, char *data, i return TRUE; } -// 猎人技能-团体冰抗性提升 +// 鐚庝汉鎶鑳-鍥綋鍐版姉鎬ф彁鍗 int PROFESSION_g_resist_ice( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo!=20 && toNo!=21) @@ -1260,7 +1260,7 @@ int PROFESSION_g_resist_ice( int charaindex, int toNo, int array, char *data, in return TRUE; } -// 猎人技能-团体雷抗性提升 +// 鐚庝汉鎶鑳-鍥綋闆锋姉鎬ф彁鍗 int PROFESSION_g_resist_thunder( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo!=20 && toNo!=21) @@ -1269,7 +1269,7 @@ int PROFESSION_g_resist_thunder( int charaindex, int toNo, int array, char *data return TRUE; } -// 猎人技能-弱点攻击 +// 鐚庝汉鎶鑳-寮辩偣鏀诲嚮 int PROFESSION_attack_weak( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1278,7 +1278,7 @@ int PROFESSION_attack_weak( int charaindex, int toNo, int array, char *data, int return TRUE; } -// 猎人技能-挑拨 +// 鐚庝汉鎶鑳-鎸戞嫧 int PROFESSION_instigate( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1287,7 +1287,7 @@ int PROFESSION_instigate( int charaindex, int toNo, int array, char *data, int s return TRUE; } -// 猎人技能-遗忘 +// 鐚庝汉鎶鑳-閬楀繕 int PROFESSION_oblivion( int charaindex, int toNo, int array, char *data, int skill_level ) { if(toNo>19) @@ -1298,9 +1298,9 @@ int PROFESSION_oblivion( int charaindex, int toNo, int array, char *data, int sk /*----------------------------------------------------------------------*/ -// 非战斗技能 +// 闈炴垬鏂楁妧鑳 -// 猎人技能-追寻敌踪 +// 鐚庝汉鎶鑳-杩藉鏁岃釜 int PROFESSION_track( int charaindex, int toNo, int array, char *data, int skill_level ) { char *pszP = NULL, *pszOption = "\0", msg[20]; @@ -1311,18 +1311,18 @@ int PROFESSION_track( int charaindex, int toNo, int array, char *data, int skill ret = -1; } - // 技能的参数 + // 鎶鑳界殑鍙傛暟 pszOption = PROFESSION_SKILL_getChar( array, PROFESSION_SKILL_OPTION); - // 技能等级 rate - if( (pszP = strstr( pszOption, "倍%" ) ) != NULL ) sscanf( pszP+3, "%d", &rate ); + // 鎶鑳界瓑绾 rate + if( (pszP = strstr( pszOption, "鍊%" ) ) != NULL ) sscanf( pszP+3, "%d", &rate ); per = skill_level * rate; - // 准备期的动画 + // 鍑嗗鏈熺殑鍔ㄧ敾 img1 = PROFESSION_SKILL_getInt( array, PROFESSION_SKILL_IMG_1 ); CHAR_setWorkInt( charaindex, CHAR_ENCOUNT_FIX, per); - CHAR_talkToCli( charaindex, -1, "遇敌率上升", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "閬囨晫鐜囦笂鍗", CHAR_COLORRED); CHAR_setWorkInt( charaindex, CHAR_ENCOUNT_NUM, (int)time(NULL) + (60 * 3) ); sprintf( msg, "%d", img1); @@ -1331,7 +1331,7 @@ int PROFESSION_track( int charaindex, int toNo, int array, char *data, int skill return ret; } -// 猎人技能-回避战斗 +// 鐚庝汉鎶鑳-鍥為伩鎴樻枟 int PROFESSION_escape( int charaindex, int toNo, int array, char *data, int skill_level ) { char *pszP = NULL, *pszOption = "\0", msg[20]; @@ -1342,18 +1342,18 @@ int PROFESSION_escape( int charaindex, int toNo, int array, char *data, int skil ret = -1; } - // 技能的参数 + // 鎶鑳界殑鍙傛暟 pszOption = PROFESSION_SKILL_getChar( array, PROFESSION_SKILL_OPTION); - // 技能等级 rate - if( (pszP = strstr( pszOption, "倍%" ) ) != NULL ) sscanf( pszP+3, "%d", &rate ); + // 鎶鑳界瓑绾 rate + if( (pszP = strstr( pszOption, "鍊%" ) ) != NULL ) sscanf( pszP+3, "%d", &rate ); per = skill_level * rate; - // 准备期的动画 + // 鍑嗗鏈熺殑鍔ㄧ敾 img1 = PROFESSION_SKILL_getInt( array, PROFESSION_SKILL_IMG_1 ); CHAR_setWorkInt( charaindex, CHAR_ENCOUNT_FIX, (-1) * per); - CHAR_talkToCli( charaindex, -1, "遇敌率下降", CHAR_COLORGREEN); + CHAR_talkToCli( charaindex, -1, "閬囨晫鐜囦笅闄", CHAR_COLORGREEN); CHAR_setWorkInt( charaindex, CHAR_ENCOUNT_NUM, (int)time(NULL) + (60 * 3) ); @@ -1365,25 +1365,25 @@ int PROFESSION_escape( int charaindex, int toNo, int array, char *data, int skil -// 共同技能-气力充沛 +// 鍏卞悓鎶鑳-姘斿姏鍏呮矝 int PROFESSION_full_mp( int charaindex, int toNo, int array, char *data, int skill_level ) { return TRUE; } -// 共同技能-负重增加 +// 鍏卞悓鎶鑳-璐熼噸澧炲姞 int PROFESSION_strong_back( int charaindex, int toNo, int array, char *data, int skill_level ) { char *pszP = NULL, *pszOption = "\0"; int rate=0; - // 技能的参数 + // 鎶鑳界殑鍙傛暟 pszOption = PROFESSION_SKILL_getChar( array, PROFESSION_SKILL_OPTION); - if( (pszP = strstr( pszOption, "倍%" ) ) != NULL ) sscanf( pszP+3, "%d", &rate ); + if( (pszP = strstr( pszOption, "鍊%" ) ) != NULL ) sscanf( pszP+3, "%d", &rate ); int pile = CHAR_getWorkInt( charaindex, CHAR_WORKATTACHPILE); pile = pile * rate; CHAR_setWorkInt( charaindex, CHAR_WORKATTACHPILE,pile); return TRUE; } -// 共同技能-自我强化 +// 鍏卞悓鎶鑳-鑷垜寮哄寲 int PROFESSION_strengthen( int charaindex, int toNo, int array, char *data, int skill_level ) { return TRUE; diff --git a/char/addressbook.c b/char/addressbook.c index ea7530e..a1a34a5 100644 --- a/char/addressbook.c +++ b/char/addressbook.c @@ -21,56 +21,56 @@ #include "petmail.h" #include "log.h" -/*裔烂丢永本□斥及 赢赢今[票匹烂聒允月 侬 及赢今反 - 仇木动票卞允月仇午*/ +/*鍥哄畾銉°儍銈汇兗銈搞伄鏈闀烽暦銇曘備笅銇у畾缇┿仚銈嬫枃瀛楀垪銇暦銇曘伅 + 銇撱倢浠ヤ笅銇仚銈嬨亾銇*/ #define ADDRESSBOOK_FIXEDMESSAGE_MAXLEN 128 -/* 愤坌及蟆卞簿手中卅井匀凶及匹}失玉伊旦皮永弁卞馨笛匹五卅井匀凶 - 午五及裔烂丢永本□斥 */ -#define ADDRESSBOOK_CANTADD "那里没有任何人。" -#define ADDRESSBOOK_CANTADD2 "无法交换名片。" +/* 鎰ゅ潓鍙婅焼鍗炵翱鎵嬩腑鍗呬簳鍖鍑跺強鍖癸綕澶辩帀浼婃棪鐨案寮佸崬棣ㄧ瑳鍖逛簲鍗呬簳鍖鍑 + 鍗堜簲鍙婅鐑備涪姘告湰鈻℃枼 */ +#define ADDRESSBOOK_CANTADD "閭i噷娌℃湁浠讳綍浜恒" +#define ADDRESSBOOK_CANTADD2 "鏃犳硶浜ゆ崲鍚嶇墖銆" -/* 簿井毛笛尹月仇午互匹五凶午五}笛尹方丹午仄凶谛卞霜耨允月丢永本□斥*/ -#define ADDRESSBOOK_ADDED "和%s交换名片 。" +/* 绨夸簳姣涚瑳灏规湀浠囧崍浜掑尮浜斿嚩鍗堜簲锝濈瑳灏规柟涓瑰崍浠勫嚩璋涘崬闇滆ㄥ厑鏈堜涪姘告湰鈻℃枼*/ +#define ADDRESSBOOK_ADDED "鍜%s浜ゆ崲鍚嶇墖 銆" -/* 簿井卞涌毛创尹日木凶日 */ -#define ADDRESSBOOK_BEINGADDED "和%s交换名片 。" +/* 绨夸簳鍗炴秾姣涘垱灏规棩鏈ㄥ嚩鏃 */ +#define ADDRESSBOOK_BEINGADDED "鍜%s浜ゆ崲鍚嶇墖 銆" -/* 巨件玄伉互中匀天中分匀凶午五及丢永本□斥 */ -#define ADDRESSBOOK_MYTABLEFULL "名片匣已满。" +/* 宸ㄤ欢鐜勪級浜掍腑鍖澶╀腑鍒嗗寑鍑跺崍浜斿強涓㈡案鏈枴鏂 */ +#define ADDRESSBOOK_MYTABLEFULL "鍚嶇墖鍖e凡婊°" -/* 锹澎及巨件玄伉互中匀天中分匀凶午五及丢永本□斥 */ -#define ADDRESSBOOK_HISTABLEFULL "对方的名片匣已满。" +/* 閿规編鍙婂法浠剁巹浼変簰涓寑澶╀腑鍒嗗寑鍑跺崍浜斿強涓㈡案鏈枴鏂 */ +#define ADDRESSBOOK_HISTABLEFULL "瀵规柟鐨勫悕鐗囧專宸叉弧銆" -/* 丢永本□斥毛霜耨允月及卞岳 仄凶午五 */ -#define ADDRESSBOOK_SENT "送信给%s 。" +/* 涓㈡案鏈枴鏂ユ瘺闇滆ㄥ厑鏈堝強鍗炲渤 浠勫嚩鍗堜簲 */ +#define ADDRESSBOOK_SENT "閫佷俊缁%s 銆" -/* 丢永本□斥毛霜耨允月及卞撩 仄凶午五 */ -#define ADDRESSBOOK_UNSENT "无法送信给%s 。" +/* 涓㈡案鏈枴鏂ユ瘺闇滆ㄥ厑鏈堝強鍗炴挬 浠勫嚩鍗堜簲 */ +#define ADDRESSBOOK_UNSENT "鏃犳硶閫佷俊缁%s 銆" -/* 簿井毛创尹方丹午仄凶互}湃卞创尹化中凶 */ -#define ADDRESSBOOK_ALREADYADDED "已经和%s交换过名片了。 " +/* 绨夸簳姣涘垱灏规柟涓瑰崍浠勫嚩浜掞綕婀冨崬鍒涘肮鍖栦腑鍑 */ +#define ADDRESSBOOK_ALREADYADDED "宸茬粡鍜%s浜ゆ崲杩囧悕鐗囦簡銆 " -/* 铜毛域 读卞 丹橇谪 */ -#define ADDRESSBOOK_GIVEADDRESS "从%s得到名片。" +/* 閾滄瘺鍩 璇诲崬 涓规﹪璋 */ +#define ADDRESSBOOK_GIVEADDRESS "浠%s寰楀埌鍚嶇墖銆" -/* 铜毛域 读卞丐仆月橇谪 */ -#define ADDRESSBOOK_TAKEADDRESS1 "给%s自己的名片。" -/* 铜毛域 读卞丐仆月橇谪 */ -#define ADDRESSBOOK_TAKEADDRESS2 "因为%s想要名片,所以将名片给他了。" +/* 閾滄瘺鍩 璇诲崬涓愪粏鏈堟﹪璋 */ +#define ADDRESSBOOK_TAKEADDRESS1 "缁%s鑷繁鐨勫悕鐗囥" +/* 閾滄瘺鍩 璇诲崬涓愪粏鏈堟﹪璋 */ +#define ADDRESSBOOK_TAKEADDRESS2 "鍥犱负%s鎯宠鍚嶇墖锛屾墍浠ュ皢鍚嶇墖缁欎粬浜嗐" #define ADDRESSBOOK_RETURNED1 \ -"从%s寄来信件,但由於没有%s的名片又将信件退回。" +"浠%s瀵勬潵淇′欢锛屼絾鐢辨柤娌℃湁%s鐨勫悕鐗囧張灏嗕俊浠堕鍥炪" #define ADDRESSBOOK_RETURNED2 \ -"寄信件给%s,但由於%s 没有名片,所以信件又被退回来了。" +"瀵勪俊浠剁粰%s锛屼絾鐢辨柤%s 娌℃湁鍚嶇墖锛屾墍浠ヤ俊浠跺張琚鍥炴潵浜嗐" #define PETMAIL_RETURNED1 \ -"%s不在这个世界里,所以无法寄送信件给他。" +"%s涓嶅湪杩欎釜涓栫晫閲岋紝鎵浠ユ棤娉曞瘎閫佷俊浠剁粰浠栥" -/* static匹银丹迕[ 五中袄手*/ +/* static鍖归摱涓硅繒锛 浜斾腑琚勬墜*/ char ADDRESSBOOK_returnstring[25*128]; @@ -80,20 +80,20 @@ static BOOL ADDRESSBOOK_makeEntryFromCharaindex( int charaindex, ADDRESSBOOK_entry* ae); /*------------------------------------------------------------ - * 失玉伊旦皮永弁及丢永本□斥毛霜耨允月 - * MSG皿夫玄戊伙井日勾井歹木月[ + * 澶辩帀浼婃棪鐨案寮佸強涓㈡案鏈枴鏂ユ瘺闇滆ㄥ厑鏈 + * MSG鐨垮か鐜勬垔浼欎簳鏃ュ嬀浜曟鏈ㄦ湀锛 * - * 支月仇午反}connection井日cdkey匹腹绸仄化}平乓仿 手 - * 甲永玄仄凶日} MSG_send允月[公及午五卞}愤坌及树 互 - * 锹澎及伉旦玄卞卅井匀凶日窒手仄卅中午中丹仇午分[ - * 娄醒 - * cindex int 平乓仿及index - * aindex int 失玉伊旦皮永弁及index - * text char* 霜耨允月 侬 - * color int 缙 - * 忒曰袄 - * 左件仿奶件及平乓仿卞丢永本□斥毛霜耨仄凶日TRUE , - * 左白仿奶件卞瓒 仄凶日FALSE毛井尹允 + * 鏀湀浠囧崍鍙嶏綕connection浜曟棩cdkey鍖硅吂缁镐粍鍖栵綕骞充箵浠 鎵 + * 鐢叉案鐜勪粍鍑舵棩锝 MSG_send鍏佹湀锛诲叕鍙婂崍浜斿崬锝濇劋鍧屽強鏍 浜 + * 閿规編鍙婁級鏃︾巹鍗炲崊浜曞寑鍑舵棩绐掓墜浠勫崊涓崍涓腹浠囧崍鍒嗭蓟 + * 濞勯啋 + * cindex int 骞充箵浠垮強index + * aindex int 澶辩帀浼婃棪鐨案寮佸強index + * text char* 闇滆ㄥ厑鏈 渚 + * color int 缂 + * 蹇掓洶琚 + * 宸︿欢浠垮ザ浠跺強骞充箵浠垮崬涓㈡案鏈枴鏂ユ瘺闇滆ㄤ粍鍑舵棩TRUE , + * 宸︾櫧浠垮ザ浠跺崬鐡 浠勫嚩鏃ALSE姣涗簳灏瑰厑 ------------------------------------------------------------*/ BOOL ADDRESSBOOK_sendMessage( int cindex, int aindex, char* text , int color ) { @@ -124,16 +124,16 @@ BOOL ADDRESSBOOK_sendMessage( int cindex, int aindex, char* text , int color ) tm1.tm_mon +1, tm1.tm_mday, tm1.tm_hour, tm1.tm_min, text); - /* 扔□田□ 卞中月凛 */ + /* 鎵斺枴鐢扳枴 鍗炰腑鏈堝嚊 */ for( i = 0 ; i < playernum ; i ++){ if( CHAR_CHECKINDEX( i) && strcmp( CHAR_getChar( i, CHAR_CDKEY), ae->cdkey) == 0 && strcmp( CHAR_getChar( i, CHAR_NAME), ae->charname) == 0 ) { /* - * CDKEY 手 平乓仿 手域谯仄凶[公及平乓仿弁正及 - * 失玉伊旦皮永弁卞愤坌及树 互丐月井譬屯化} - * 绣箕仄凶日}MSG允月[ + * CDKEY 鎵 骞充箵浠 鎵嬪煙璋粍鍑讹蓟鍏強骞充箵浠垮紒姝e強 + * 澶辩帀浼婃棪鐨案寮佸崬鎰ゅ潓鍙婃爲 浜掍笎鏈堜簳璀悲鍖栵綕 + * 缁g畷浠勫嚩鏃ワ綕MSG鍏佹湀锛 */ int index_to_my_info = ADDRESSBOOK_getIndexInAddressbook( i , @@ -142,8 +142,8 @@ BOOL ADDRESSBOOK_sendMessage( int cindex, int aindex, char* text , int color ) int fd; if( index_to_my_info < 0 ){ /* - * 锹澎互愤坌毛坫壅仄化仄引匀化月[ - * 域杀 谛卞]丢□伙互 凶午分仃骚襞允月[ + * 閿规編浜掓劋鍧屾瘺鍧浠勫寲浠勫紩鍖鍖栨湀锛 + * 鍩熸潃 璋涘崬锛戒涪鈻′紮浜 鍑跺崍鍒嗕粌楠氳鍏佹湀锛 */ //snprintf( tmpmsg, sizeof( tmpmsg), // ADDRESSBOOK_RETURNED1, @@ -158,7 +158,7 @@ BOOL ADDRESSBOOK_sendMessage( int cindex, int aindex, char* text , int color ) CHAR_getChar( i, CHAR_NAME), CHAR_getChar( i, CHAR_NAME)); - /* 霜曰潜卞手丢永本□斥 */ + /* 闇滄洶娼滃崬鎵嬩涪姘告湰鈻℃枼 */ CHAR_talkToCli( cindex, -1, tmpmsg , CHAR_COLORYELLOW ); return FALSE; @@ -167,7 +167,7 @@ BOOL ADDRESSBOOK_sendMessage( int cindex, int aindex, char* text , int color ) fd = getfdFromCharaIndex( i); if( fd != -1 ) { lssproto_MSG_send( fd , index_to_my_info , textbuffer , color ); - /* 夫弘午曰 */ + /* 澶紭鍗堟洶 */ printl( LOG_TALK, "CD=%s\tNM=%s\tT=%s" , mycd, mycharaname, textbuffer ); } @@ -176,7 +176,7 @@ BOOL ADDRESSBOOK_sendMessage( int cindex, int aindex, char* text , int color ) ae->charname ); CHAR_talkToCli(cindex,-1, tmpmsg , color ); - // WON ADD 修正snprintf会导致当机的bug + // WON ADD 淇snprintf浼氬鑷村綋鏈虹殑bug { char tmp[1000]; sprintf( tmp , "ADDRESSBOOK_sendMessage:" @@ -190,7 +190,7 @@ BOOL ADDRESSBOOK_sendMessage( int cindex, int aindex, char* text , int color ) return TRUE; } } - /* 苇勾井日卅井匀凶凛反]失市它件玄扔□田□卞霜月 */ + /* 鑻囧嬀浜曟棩鍗呬簳鍖鍑跺嚊鍙嶏冀澶卞競瀹冧欢鐜勬墧鈻$敯鈻″崬闇滄湀 */ saacproto_Message_send( acfd, mycd, mycharaname, ae->cdkey, ae->charname, textbuffer, color); CHAR_setInt( cindex, CHAR_SENDMAILCOUNT, @@ -203,10 +203,10 @@ BOOL ADDRESSBOOK_sendMessage( int cindex, int aindex, char* text , int color ) return FALSE; } /*------------------------------------------------------------ - * 失玉伊旦皮永弁及丢永本□斥毛霜耨允月 - * saac 井日msg 毛熬仃午匀化弁仿奶失件玄卞禾旦玄允月[ + * 澶辩帀浼婃棪鐨案寮佸強涓㈡案鏈枴鏂ユ瘺闇滆ㄥ厑鏈 + * saac 浜曟棩msg 姣涚啲浠冨崍鍖鍖栧紒浠垮ザ澶变欢鐜勫崬绂炬棪鐜勫厑鏈堬蓟 * - * 忒曰袄 + * 蹇掓洶琚 ------------------------------------------------------------*/ BOOL ADDRESSBOOK_sendMessage_FromOther( char *fromcdkey, char *fromcharaname, char *tocdkey, char *tocharaname, @@ -218,7 +218,7 @@ BOOL ADDRESSBOOK_sendMessage_FromOther( char *fromcdkey, char *fromcharaname, char tmpmsg[256]; int playernum = CHAR_getPlayerMaxNum(); - /* 扔□田□ 毛腹绸允月 */ + /* 鎵斺枴鐢扳枴 姣涜吂缁稿厑鏈 */ for( i = 0 ; i < playernum ; i ++){ if( CHAR_CHECKINDEX( i) && strcmp( CHAR_getChar( i, CHAR_CDKEY), tocdkey) == 0 && @@ -226,16 +226,16 @@ BOOL ADDRESSBOOK_sendMessage_FromOther( char *fromcdkey, char *fromcharaname, { int index_to_my_info; /* - * CDKEY 手 平乓仿 手域谯仄凶[公及平乓仿弁正及 - * 失玉伊旦皮永弁卞愤坌及树 互丐月井譬屯化} - * 绣箕仄凶日}MSG允月[ + * CDKEY 鎵 骞充箵浠 鎵嬪煙璋粍鍑讹蓟鍏強骞充箵浠垮紒姝e強 + * 澶辩帀浼婃棪鐨案寮佸崬鎰ゅ潓鍙婃爲 浜掍笎鏈堜簳璀悲鍖栵綕 + * 缁g畷浠勫嚩鏃ワ綕MSG鍏佹湀锛 */ - /* 扑旦 丞丢永本□斥互窖匀化五凶 */ + /* 鎵戞棪 涓炰涪姘告湰鈻℃枼浜掔獤鍖鍖栦簲鍑 */ if( strcmp( fromcdkey, ADDRESSBOOK_SYSTEM) == 0 && strcmp( fromcharaname, ADDRESSBOOK_SYSTEM ) == 0 ) { - /* 扑旦 丞丢永本□斥毛龚仁 */ + /* 鎵戞棪 涓炰涪姘告湰鈻℃枼姣涢練浠 */ CHAR_talkToCli( i, -1, text , color ); break; } @@ -245,13 +245,13 @@ BOOL ADDRESSBOOK_sendMessage_FromOther( char *fromcdkey, char *fromcharaname, fromcdkey, fromcharaname); if( index_to_my_info < 0 ){ /* - * 锹澎互愤坌毛坫壅仄化仄引匀化月[ + * 閿规編浜掓劋鍧屾瘺鍧浠勫寲浠勫紩鍖鍖栨湀锛 */ snprintf( tmpmsg, sizeof( tmpmsg), ADDRESSBOOK_RETURNED2, tocharaname, tocharaname); - /* 霜曰潜卞手丢永本□斥 */ + /* 闇滄洶娼滃崬鎵嬩涪姘告湰鈻℃枼 */ saacproto_Message_send( acfd, ADDRESSBOOK_SYSTEM , ADDRESSBOOK_SYSTEM, fromcdkey, fromcharaname, tmpmsg, CHAR_COLORYELLOW); @@ -260,7 +260,7 @@ BOOL ADDRESSBOOK_sendMessage_FromOther( char *fromcdkey, char *fromcharaname, int fd = getfdFromCharaIndex( i); if( fd != -1 ) { lssproto_MSG_send( fd , index_to_my_info , text , color ); - /* 夫弘午曰 */ + /* 澶紭鍗堟洶 */ printl( LOG_TALK, "CD=%s\tNM=%s\tT=%s" , fromcdkey, fromcharaname, text ); } @@ -394,7 +394,7 @@ BOOL ADDRESSBOOK_addEntry( int meindex ) int strlength; char msgbuf[1024]; char escapebuf[2048]; - strcpy( msgbuf, "1\n和谁交换名片呢?\n"); + strcpy( msgbuf, "1\n鍜岃皝浜ゆ崲鍚嶇墖鍛紵\n"); strlength = strlen( msgbuf); for( i = 0; CONNECT_getTradecardcharaindex(fd,i) != -1 @@ -404,7 +404,7 @@ BOOL ADDRESSBOOK_addEntry( int meindex ) char buf[256]; snprintf( buf, sizeof( buf),"%s\n", a); if( strlength + strlen( buf) > arraysizeof( msgbuf)){ - print( "%s:%d视窗讯息buffer不足。\n", + print( "%s:%d瑙嗙獥璁伅buffer涓嶈冻銆俓n", __FILE__,__LINE__); break; } @@ -553,7 +553,7 @@ BOOL ADDRESSBOOK_sendAddressbookTable( int cindex ) char charname_escaped[CHARNAMELEN*2]; makeEscapeString( ae->charname, charname_escaped , sizeof(charname_escaped )); - /* 银迕白仿弘| 蟆|伊矛伙|仿奶白|白仿弘 */ + /* 閾惰繒鐧戒豢寮榺 锜唡浼婄煕浼檤浠垮ザ鐧絴鐧戒豢寮 */ snprintf( tmp , sizeof( tmp ), "%d|%s|%d|%d|%d|%d|%d|0|" , ae->use, @@ -568,7 +568,7 @@ BOOL ADDRESSBOOK_sendAddressbookTable( int cindex ) break; } }else{ - /*银匀化卅中犯□正手冲徇及心匹霜月 */ + /*閾跺寑鍖栧崊涓姱鈻℃鎵嬪啿寰囧強蹇冨尮闇滄湀 */ char tmp[32]; snprintf( tmp , sizeof( tmp ), "||||||||" ); strcpysafe ( ADDRESSBOOK_returnstring + stringlen , @@ -642,12 +642,12 @@ BOOL ADDRESSBOOK_sendAddressbookTableOne( int cindex, int num ) } /*------------------------------------------------------------ - * 夫午勾及失玉伊旦皮永弁巨件玄伉毛} 侬 卞卅云允[ - * 仇木反平乓仿忡绣迕卅及匹弁仿奶失件玄卞霜耨允月方曰手恳割 - * 卅手及匹丐月 邰互丐月[ - * 娄醒 - * a ADDRESSBOOK_entry* 侬 卞仄凶中厌瞻 尺及禾奶件正 - * 忒曰袄 + * 澶崍鍕惧強澶辩帀浼婃棪鐨案寮佸法浠剁巹浼夋瘺锝 渚 鍗炲崊浜戝厑锛 + * 浠囨湪鍙嶅钩涔撲豢蹇$唬杩曞崊鍙婂尮寮佷豢濂跺け浠剁巹鍗為湝鑰ㄥ厑鏈堟柟鏇版墜鎭冲壊 + * 鍗呮墜鍙婂尮涓愭湀 閭颁簰涓愭湀锛 + * 濞勯啋 + * a ADDRESSBOOK_entry* 渚 鍗炰粍鍑朵腑鍘岀灮 灏哄強绂惧ザ浠舵 + * 蹇掓洶琚 * char * ------------------------------------------------------------*/ char *ADDRESSBOOK_makeAddressbookString( ADDRESSBOOK_entry *a ) @@ -655,7 +655,7 @@ char *ADDRESSBOOK_makeAddressbookString( ADDRESSBOOK_entry *a ) char work1[256], work2[256]; if( a->use == 0 ){ - /* 坞巨件玄伉分匀凶日坞 侬 */ + /* 鍧炲法浠剁巹浼夊垎鍖鍑舵棩鍧 渚 */ ADDRESSBOOK_returnstring[0] = '\0'; return ADDRESSBOOK_returnstring; } @@ -672,13 +672,13 @@ char *ADDRESSBOOK_makeAddressbookString( ADDRESSBOOK_entry *a ) } /*------------------------------------------------------------ - * 侬 祭今木化中月失玉伊旦皮永弁巨件玄伉毛}厌瞻 卞卅云允[ - * 仇及瑛绊厌瞻 及use动陆及树 反敦僬卞卅月[ - * 娄醒 - * in char* 侬 - * a ADDRESSBOOK_entry* 犯□正毛璋户月赭 - * 忒曰袄 - * 勾友卞TRUE + * 渚 绁粖鏈ㄥ寲涓湀澶辩帀浼婃棪鐨案寮佸法浠剁巹浼夋瘺锝濆帉鐬 鍗炲崊浜戝厑锛 + * 浠囧強鐟涚粖鍘岀灮 鍙妘se鍔ㄩ檰鍙婃爲 鍙嶆暒鍍崬鍗呮湀锛 + * 濞勯啋 + * in char* 渚 + * a ADDRESSBOOK_entry* 鐘枴姝f瘺鐠嬫埛鏈堣淡 + * 蹇掓洶琚 + * 鍕惧弸鍗濼RUE ------------------------------------------------------------*/ BOOL ADDRESSBOOK_makeAddressbookEntry( char *in , ADDRESSBOOK_entry *a ) { @@ -886,7 +886,7 @@ BOOL ADDRESSBOOK_AutoaddAddressBook( int meindex, int toindex) //myblank = 79; //hisblank = 79; - if( hisblank < 0 || myblank < 0) { //"名片匣已满。" + if( hisblank < 0 || myblank < 0) { //"鍚嶇墖鍖e凡婊°" return FALSE; } diff --git a/char/char.c b/char/char.c index 73c6370..ea3cd70 100644 --- a/char/char.c +++ b/char/char.c @@ -45,10 +45,10 @@ #include "npc_checkman.h" #endif -#ifdef _CHAR_PROFESSION // WON ADD 人物职业栏位 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟鏍忎綅 #include "profession_skill.h" #endif -#ifdef _CHATROOMPROTOCOL // (不可开) Syu ADD 聊天室频道 +#ifdef _CHATROOMPROTOCOL // (涓嶅彲寮) Syu ADD 鑱婂ぉ瀹ら閬 #include "chatroom.h" #endif #ifdef _ALLBLUES_LUA @@ -76,26 +76,26 @@ extern void GOLD_DeleteTimeCheckOne( int objindex); extern int autopkstart; extern int playeronlinenum; extern int autopkcnt; -// WON ADD 修正道具的设定问题 +// WON ADD 淇閬撳叿鐨勮瀹氶棶棰 void fix_item_bug(int charaindex, int i); -/*====================平乓仿及综岳卞楮允月楮醒====================*/ +/*====================骞充箵浠垮強缁煎渤鍗炴ギ鍏佹湀妤啋====================*/ /*------------------------------------------------------------ - * 综岳允月凛及左皿扑亦件及袄毛涩烂仄方丹午允月[ - * 娄醒 - * ch Char* 涩烂燮及平乓仿及犯□正 - * option char* 弁仿奶失件玄井日仁月犯□正 - * 忒曰袄 - * 岳 TRUE - * 撩 FALSE + * 缁煎渤鍏佹湀鍑涘強宸︾毧鎵戜害浠跺強琚勬瘺娑╃儌浠勬柟涓瑰崍鍏佹湀锛 + * 濞勯啋 + * ch Char* 娑╃儌鐕強骞充箵浠垮強鐘枴姝 + * option char* 寮佷豢濂跺け浠剁巹浜曟棩浠佹湀鐘枴姝 + * 蹇掓洶琚 + * 宀 TRUE + * 鎾 FALSE ------------------------------------------------------------*/ static BOOL CHAR_makeCharFromOptionAtCreate( Char* ch , int vital, int str, int tgh, int dex, int earth, int water, int fire, int wind) { - /* 躲岭及腹据毛垫丹 */ + /* 韬插箔鍙婅吂鎹瘺鍨腹 */ int para[4]; int attr[4]; int i; @@ -116,15 +116,15 @@ static BOOL CHAR_makeCharFromOptionAtCreate( Char* ch , #define PKMAXPARAMETER 300 parasum = 0; /* - * 允屯化及犯□正及 卞 - 反丐匀化反卅日卅中仄 - * 瑕丐孔木及仪毛哔尹化云中化 及袄手译尹卅中 + * 鍏佸悲鍖栧強鐘枴姝e強 鍗 - 鍙嶄笎鍖鍖栧弽鍗呮棩鍗呬腑浠 + * 鐟曚笎瀛旀湪鍙婁华姣涘摂灏瑰寲浜戜腑鍖 鍙婅鎵嬭瘧灏瑰崊涓 */ for( i = 0; i < arraysizeof( para); i ++ ) { if( para[i] < 0 || para[i] > MAXPARAMETER )return FALSE; parasum += para[i]; } -#ifdef _NEW_PLAYER_CF //新手出生配置 +#ifdef _NEW_PLAYER_CF //鏂版墜鍑虹敓閰嶇疆 if( parasum > MAXPARAMETER ) return FALSE; #else if( parasum != MAXPARAMETER ) return FALSE; @@ -136,25 +136,25 @@ static BOOL CHAR_makeCharFromOptionAtCreate( Char* ch , #define MAXATTRIBUTE 10 cnt = 0; attrsum = 0; - /* 箪岭及民尼永弁毛允月 */ + /* 绠箔鍙婃皯灏兼案寮佹瘺鍏佹湀 */ for( i = 0; i < arraysizeof( para); i ++ ) { if( attr[i] < 0 || attr[i] > MAXATTRIBUTE )return FALSE; attrsum += attr[i]; if( attr[i] > 0 ) cnt ++; } - /* 宁煌袄反10 */ + /* 瀹佺厡琚勫弽10 */ if( attrsum != MAXATTRIBUTE ) return FALSE; - /* 2勾方曰聂仁喃曰癫化日木化中凶日蛲 */ + /* 2鍕炬柟鏇拌亗浠佸杻鏇扮櫕鍖栨棩鏈ㄥ寲涓嚩鏃ヨ洸 */ if( cnt > 2 ) return FALSE; - /* 菅箪岭反喃曰癫化日木卅中 */ + /* 鑿呯宀弽鍠冩洶鐧寲鏃ユ湪鍗呬腑 */ if( attr[0] > 0 && attr[2] > 0 ) return FALSE; if( attr[1] > 0 && attr[3] > 0 ) return FALSE; #undef MAXATTRIBUTE - /* 戊疋□ */ + /* 鎴婄枊鈻 */ ch->data[CHAR_VITAL] = vital*100; ch->data[CHAR_STR] = str*100; ch->data[CHAR_TOUGH] = tgh*100; @@ -170,7 +170,7 @@ static BOOL CHAR_makeCharFromOptionAtCreate( Char* ch , ch->data[CHAR_EXP] = 0; -#ifdef _NEW_PLAYER_CF //新手出生配置 +#ifdef _NEW_PLAYER_CF //鏂版墜鍑虹敓閰嶇疆 ch->data[CHAR_TRANSMIGRATION] = getNewplayertrans(); ch->data[CHAR_GOLD] = getNewplayergivegold();; ch->data[CHAR_LV] = getNewplayerlv(); @@ -206,7 +206,7 @@ void CHAR_loginAddItemForNew( int charindex ) emptyitemindexinchara = CHAR_findEmptyItemBox( charindex ); if( emptyitemindexinchara < 0 ){ - sprintf( msgbuf, "空间栏位不足。" ); + sprintf( msgbuf, "绌洪棿鏍忎綅涓嶈冻銆" ); CHAR_talkToCli( charindex, -1, msgbuf, CHAR_COLORYELLOW); return; @@ -238,7 +238,7 @@ void CHAR_createNewChar( int clifd, int dataplacenum, char* charname , int enemyarray; char szKey[256]; -#ifdef _NEW_PLAYER_CF //新手出生配置 +#ifdef _NEW_PLAYER_CF //鏂版墜鍑虹敓閰嶇疆 int add_pet[]={0,0,0,0,0}; #endif @@ -305,17 +305,17 @@ void CHAR_createNewChar( int clifd, int dataplacenum, char* charname , ch.data[CHAR_LOWRIDEPETS] = 0; #endif -#ifdef _PERSONAL_FAME // Arminius: 家族个人声望 +#ifdef _PERSONAL_FAME // Arminius: 瀹舵棌涓汉澹版湜 ch.data[CHAR_FAME] = 0; #endif #ifdef _NEW_MANOR_LAW - ch.data[CHAR_MOMENTUM] = 0; // 个人气势 + ch.data[CHAR_MOMENTUM] = 0; // 涓汉姘斿娍 #endif #ifdef _TEACHER_SYSTEM - ch.data[CHAR_TEACHER_FAME] = 0; // 导师领导声望 + ch.data[CHAR_TEACHER_FAME] = 0; // 瀵煎笀棰嗗澹版湜 #endif -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 ch.data[PROFESSION_CLASS] = 0; ch.data[PROFESSION_LEVEL] = 0; // ch.data[PROFESSION_EXP] = 0; @@ -345,7 +345,7 @@ void CHAR_createNewChar( int clifd, int dataplacenum, char* charname , time_t timep; struct tm *p; time(&timep); - p=localtime(&timep); /*取得当地时间*/ + p=localtime(&timep); /*鍙栧緱褰撳湴鏃堕棿*/ int mon=1+p->tm_mon; int date=p->tm_mday; char offbuf[64]; @@ -375,34 +375,34 @@ void CHAR_createNewChar( int clifd, int dataplacenum, char* charname , charaindex = CHAR_initCharOneArray( &ch ); if( charaindex == -1 ) { - lssproto_CreateNewChar_send( clifd ,FAILED, "在线人数已满,无法建立人物"); + lssproto_CreateNewChar_send( clifd ,FAILED, "鍦ㄧ嚎浜烘暟宸叉弧锛屾棤娉曞缓绔嬩汉鐗"); CONNECT_setState( clifd, NOTLOGIN ); return; } #ifdef _ALLBLUES_LUA_1_5 FreeCharCreate(charaindex); #endif -#ifdef _NEW_PLAYER_CF //新手出生配置 +#ifdef _NEW_PLAYER_CF //鏂版墜鍑虹敓閰嶇疆 int petNum=0; int k=0; int mylevel,level; if(getNewplayergivepet(0)==-1){ - if( CHAR_getInt( charaindex, CHAR_LASTTALKELDER) == 1 )//玛丽娜丝 + if( CHAR_getInt( charaindex, CHAR_LASTTALKELDER) == 1 )//鐜涗附濞滀笣 setNewplayergivepet(0,2); - else if( CHAR_getInt( charaindex, CHAR_LASTTALKELDER) == 2 )//加加 + else if( CHAR_getInt( charaindex, CHAR_LASTTALKELDER) == 2 )//鍔犲姞 setNewplayergivepet(0,3); - else if( CHAR_getInt( charaindex, CHAR_LASTTALKELDER) == 3 )//卡鲁它那 + else if( CHAR_getInt( charaindex, CHAR_LASTTALKELDER) == 3 )//鍗¢瞾瀹冮偅 setNewplayergivepet(0,4); else setNewplayergivepet(0,1); } #ifdef _NEW_PLAYER_RIDE - if(!strstr( getPlayerRide(), "不送配套骑宠")) + if(!strstr( getPlayerRide(), "涓嶉侀厤濂楅獞瀹")) CHAR_PlayerRide(charaindex); #endif for( petNum=0; petNum<5; petNum++) { if(getNewplayergivepet(petNum)==0)continue; - enemyarray = ENEMY_getEnemyArrayFromId( getNewplayergivepet(petNum)); //白虎 + enemyarray = ENEMY_getEnemyArrayFromId( getNewplayergivepet(petNum)); //鐧借檸 petindex = ENEMY_createPetFromEnemyIndex( charaindex, enemyarray); if( petindex == -1 ) { continue; @@ -411,7 +411,7 @@ void CHAR_createNewChar( int clifd, int dataplacenum, char* charname , mylevel = CHAR_getInt( petindex, CHAR_LV); level = getNewplayerpetlv()-mylevel; if(level<1)level=1; - for( k = 1; k < level; k ++ ){ //升级 + for( k = 1; k < level; k ++ ){ //鍗囩骇 CHAR_PetLevelUp( petindex ); CHAR_PetAddVariableAi( petindex, AI_FIX_PETLEVELUP ); CHAR_setInt( petindex, CHAR_LV, CHAR_getInt( petindex, CHAR_LV) +1 ); @@ -455,7 +455,7 @@ void CHAR_createNewChar( int clifd, int dataplacenum, char* charname , CHAR_endCharData(&ch); CHAR_endCharOneArray( charaindex); -#ifdef _NEW_PLAYER_CF //新手出生配置 +#ifdef _NEW_PLAYER_CF //鏂版墜鍑虹敓閰嶇疆 { int k=0; for( k=0;k=23228 && ID1<=23307){ - if(strstr(ITEM_getChar(itemindex,ITEM_EFFECTSTRING),"需更换")==NULL){ - ITEM_setChar(itemindex,ITEM_EFFECTSTRING,"[无属性,需更换]请到渔村村长家(13.5)找更换大师"); + if(strstr(ITEM_getChar(itemindex,ITEM_EFFECTSTRING),"闇鏇存崲")==NULL){ + ITEM_setChar(itemindex,ITEM_EFFECTSTRING,"[鏃犲睘鎬э紝闇鏇存崲]璇峰埌娓旀潙鏉戦暱瀹(13.5)鎵炬洿鎹㈠ぇ甯"); } } if(((ID1>=3000 && ID1<=11719) || (ID1>=14001 && ID1<=18530)) && ITEM_getInt( itemindex, ITEM_MAXDAMAGECRUSHE)<1){ @@ -591,7 +591,7 @@ void CHAR_loginCheckUserItem( int charaindex) CHAR_setItemIndex( charaindex , i, -1); } } -#ifdef _JK_CF_DELPETITEM //删除CF指定物品 +#ifdef _JK_CF_DELPETITEM //鍒犻櫎CF鎸囧畾鐗╁搧 for( j=1;j<=30;j++ ) { if(getStringFromIndexWithDelim(delbuf,",", j, delitembuf, sizeof(delitembuf)) == FALSE) break; @@ -599,14 +599,14 @@ void CHAR_loginCheckUserItem( int charaindex) if(ID2 == -1)break; if( ID1 == ID2){ CHAR_setItemIndex( charaindex , i, -1); - LogItem(CHAR_getChar( charaindex, CHAR_NAME ), //人物名 - CHAR_getChar( charaindex, CHAR_CDKEY ), //帐号 -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 + LogItem(CHAR_getChar( charaindex, CHAR_NAME ), //浜虹墿鍚 + CHAR_getChar( charaindex, CHAR_CDKEY ), //甯愬彿 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else ITEM_getInt( itemindex, ITEM_ID ), #endif - "CF设置清除物品", + "CF璁剧疆娓呴櫎鐗╁搧", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -614,7 +614,7 @@ void CHAR_loginCheckUserItem( int charaindex) ITEM_getChar( itemindex, ITEM_NAME), ITEM_getInt( itemindex, ITEM_ID) ); - CHAR_talkToCli( charaindex, -1, "系统清除你身上的道具", CHAR_COLORWHITE ); + CHAR_talkToCli( charaindex, -1, "绯荤粺娓呴櫎浣犺韩涓婄殑閬撳叿", CHAR_COLORWHITE ); } } #endif @@ -623,7 +623,7 @@ void CHAR_loginCheckUserItem( int charaindex) if( ITEM_getInt( itemindex, ITEM_ID) == ANGELITEM || ITEM_getInt( itemindex, ITEM_ID) == HEROITEM ) { int mindex, mission; - // 检查信物所有人是否任务中 + // 妫鏌ヤ俊鐗╂墍鏈変汉鏄惁浠诲姟涓 mindex = checkIfAngelByName( ITEM_getChar( itemindex, ITEM_ANGELINFO)); mission = atoi( ITEM_getChar( itemindex, ITEM_ANGELMISSION)); if( mindex < 0 || mission != missiontable[mindex].mission ) { @@ -636,7 +636,7 @@ void CHAR_loginCheckUserItem( int charaindex) if( ITEM_getInt( itemindex, ITEM_ID) == ANGELITEM ) { char nameinfo[128]; getMissionNameInfo( charaindex, nameinfo); - // 检查使者信物装备中 + // 妫鏌ヤ娇鑰呬俊鐗╄澶囦腑 if( !strcmp( ITEM_getChar( itemindex, ITEM_ANGELINFO), nameinfo) ) { //CHAR_setWorkInt( charaindex, CHAR_WORKANGELMODE, TRUE); CHAR_sendAngelMark( CHAR_getWorkInt( charaindex, CHAR_WORKOBJINDEX), 1); @@ -645,7 +645,7 @@ void CHAR_loginCheckUserItem( int charaindex) } #endif //Change fix 2004/07/05 - //与人物职业不合的道具拿下////////////////// + //涓庝汉鐗╄亴涓氫笉鍚堢殑閬撳叿鎷夸笅////////////////// if( ITEM_getInt( charaindex, ITEM_NEEDPROFESSION) != 0 ){ if( CHAR_getInt( charaindex, PROFESSION_CLASS ) != ITEM_getInt( itemindex, ITEM_NEEDPROFESSION) && ITEM_getInt( itemindex, ITEM_NEEDPROFESSION) > 0 ){ @@ -684,7 +684,7 @@ void CHAR_loginCheckUserItem( int charaindex) } } - for( i = CHAR_STARTITEMARRAY ; i < CHAR_MAXITEMHAVE ; i++ ){ //检查携带道具 + for( i = CHAR_STARTITEMARRAY ; i < CHAR_MAXITEMHAVE ; i++ ){ //妫鏌ユ惡甯﹂亾鍏 itemindex = CHAR_getItemIndex( charaindex , i ); if( !ITEM_CHECKINDEX( itemindex)) continue; ITEM_reChangeItemName( itemindex); @@ -695,8 +695,8 @@ void CHAR_loginCheckUserItem( int charaindex) ID1 = ITEM_getInt( itemindex, ITEM_ID); #ifdef _YUANGUSA if(ID1>=23228 && ID1<=23307){ - if(strstr(ITEM_getChar(itemindex,ITEM_EFFECTSTRING),"需更换")==NULL){ - ITEM_setChar(itemindex,ITEM_EFFECTSTRING,"[无属性,需更换]请到渔村村长家(13.5)找更换大师"); + if(strstr(ITEM_getChar(itemindex,ITEM_EFFECTSTRING),"闇鏇存崲")==NULL){ + ITEM_setChar(itemindex,ITEM_EFFECTSTRING,"[鏃犲睘鎬э紝闇鏇存崲]璇峰埌娓旀潙鏉戦暱瀹(13.5)鎵炬洿鎹㈠ぇ甯"); } } if(((ID1>=3000 && ID1<=11719) || (ID1>=14001 && ID1<=18530)) && ITEM_getInt( itemindex, ITEM_MAXDAMAGECRUSHE)<1){ @@ -718,7 +718,7 @@ void CHAR_loginCheckUserItem( int charaindex) CHAR_setItemIndex( charaindex , i, -1); } } -#ifdef _JK_CF_DELPETITEM //删除CF指定物品 +#ifdef _JK_CF_DELPETITEM //鍒犻櫎CF鎸囧畾鐗╁搧 for( j=1;j<=30;j++ ) { if(getStringFromIndexWithDelim(delbuf,",", j, delitembuf, sizeof(delitembuf)) == FALSE) break; @@ -726,14 +726,14 @@ void CHAR_loginCheckUserItem( int charaindex) if(ID2 == -1)break; if( ID1 == ID2){ CHAR_setItemIndex( charaindex , i, -1); - LogItem(CHAR_getChar( charaindex, CHAR_NAME ), //人物名 - CHAR_getChar( charaindex, CHAR_CDKEY ), //帐号 -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 + LogItem(CHAR_getChar( charaindex, CHAR_NAME ), //浜虹墿鍚 + CHAR_getChar( charaindex, CHAR_CDKEY ), //甯愬彿 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else ITEM_getInt( itemindex, ITEM_ID ), #endif - "CF设置清除物品", + "CF璁剧疆娓呴櫎鐗╁搧", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -741,7 +741,7 @@ void CHAR_loginCheckUserItem( int charaindex) ITEM_getChar( itemindex, ITEM_NAME), ITEM_getInt( itemindex, ITEM_ID) ); - CHAR_talkToCli( charaindex, -1, "系统清除你身上的道具", CHAR_COLORWHITE ); + CHAR_talkToCli( charaindex, -1, "绯荤粺娓呴櫎浣犺韩涓婄殑閬撳叿", CHAR_COLORWHITE ); } } #endif @@ -750,7 +750,7 @@ void CHAR_loginCheckUserItem( int charaindex) if( ITEM_getInt( itemindex, ITEM_ID) == ANGELITEM || ITEM_getInt( itemindex, ITEM_ID) == HEROITEM ) { int mindex, mission; - // 检查信物所有人是否任务中 + // 妫鏌ヤ俊鐗╂墍鏈変汉鏄惁浠诲姟涓 mindex = checkIfAngelByName( ITEM_getChar( itemindex, ITEM_ANGELINFO)); mission = atoi( ITEM_getChar( itemindex, ITEM_ANGELMISSION)); if( mindex < 0 || mission != missiontable[mindex].mission ) { @@ -764,7 +764,7 @@ void CHAR_loginCheckUserItem( int charaindex) ITEM_setItemUniCode( itemindex); } - //检查寄放店道具 + //妫鏌ュ瘎鏀惧簵閬撳叿 for( i = 0 ; i < CHAR_MAXPOOLITEMHAVE ; i++ ){ itemindex = CHAR_getPoolItemIndex( charaindex , i ); if( !ITEM_CHECKINDEX( itemindex) ) continue; @@ -777,8 +777,8 @@ void CHAR_loginCheckUserItem( int charaindex) ID1 = ITEM_getInt( itemindex, ITEM_ID); #ifdef _YUANGUSA if(ID1>=23228 && ID1<=23307){ - if(strstr(ITEM_getChar(itemindex,ITEM_EFFECTSTRING),"需更换")==NULL){ - ITEM_setChar(itemindex,ITEM_EFFECTSTRING,"[无属性,需更换]请到渔村村长家(13.5)找更换大师"); + if(strstr(ITEM_getChar(itemindex,ITEM_EFFECTSTRING),"闇鏇存崲")==NULL){ + ITEM_setChar(itemindex,ITEM_EFFECTSTRING,"[鏃犲睘鎬э紝闇鏇存崲]璇峰埌娓旀潙鏉戦暱瀹(13.5)鎵炬洿鎹㈠ぇ甯"); } } if(((ID1>=3000 && ID1<=11719) || (ID1>=14001 && ID1<=18530)) && ITEM_getInt( itemindex, ITEM_MAXDAMAGECRUSHE)<1){ @@ -800,7 +800,7 @@ void CHAR_loginCheckUserItem( int charaindex) CHAR_setPoolItemIndex( charaindex , i, -1); } } -#ifdef _JK_CF_DELPETITEM //删除CF指定物品 +#ifdef _JK_CF_DELPETITEM //鍒犻櫎CF鎸囧畾鐗╁搧 for( j=1;j<=30;j++ ) { if(getStringFromIndexWithDelim(delbuf,",", j, delitembuf, sizeof(delitembuf)) == FALSE) break; @@ -808,14 +808,14 @@ void CHAR_loginCheckUserItem( int charaindex) if(ID2 == -1)break; if( ID1 == ID2){ CHAR_setPoolItemIndex( charaindex , i, -1); - LogItem(CHAR_getChar( charaindex, CHAR_NAME ), //人物名 - CHAR_getChar( charaindex, CHAR_CDKEY ), //帐号 -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 + LogItem(CHAR_getChar( charaindex, CHAR_NAME ), //浜虹墿鍚 + CHAR_getChar( charaindex, CHAR_CDKEY ), //甯愬彿 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else ITEM_getInt( itemindex, ITEM_ID ), #endif - "CF设置清除物品", + "CF璁剧疆娓呴櫎鐗╁搧", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -823,7 +823,7 @@ void CHAR_loginCheckUserItem( int charaindex) ITEM_getChar( itemindex, ITEM_NAME), ITEM_getInt( itemindex, ITEM_ID) ); - CHAR_talkToCli( charaindex, -1, "系统清除你寄放店里的道具", CHAR_COLORWHITE ); + CHAR_talkToCli( charaindex, -1, "绯荤粺娓呴櫎浣犲瘎鏀惧簵閲岀殑閬撳叿", CHAR_COLORWHITE ); } } #endif @@ -832,7 +832,7 @@ void CHAR_loginCheckUserItem( int charaindex) if( ITEM_getInt( itemindex, ITEM_ID) == ANGELITEM || ITEM_getInt( itemindex, ITEM_ID) == HEROITEM ) { int mindex, mission; - // 检查信物所有人是否任务中 + // 妫鏌ヤ俊鐗╂墍鏈変汉鏄惁浠诲姟涓 mindex = checkIfAngelByName( ITEM_getChar( itemindex, ITEM_ANGELINFO)); mission = atoi( ITEM_getChar( itemindex, ITEM_ANGELMISSION)); if( mindex < 0 || mission != missiontable[mindex].mission ) { @@ -846,7 +846,7 @@ void CHAR_loginCheckUserItem( int charaindex) ITEM_setItemUniCode( itemindex); } - // WON ADD 修正道具的设定问题 + // WON ADD 淇閬撳叿鐨勮瀹氶棶棰 if(!NPC_EventCheckFlg( charaindex,134)){ for (i = 0; i < CHAR_MAXITEMHAVE; i ++) { itemindex = CHAR_getItemIndex(charaindex, i); @@ -897,7 +897,7 @@ void CHAR_LoginBesideSetWorkInt( int charaindex, int clifd) CHAR_setWorkInt( charaindex, CHAR_WORKTALKTIME, (int)NowTime.tv_sec); CHAR_setWorkInt( charaindex, CHAR_WORKPETFOLLOW, -1); CHAR_setWorkInt( charaindex, CHAR_LASTCHARSAVETIME, (int)NowTime.tv_sec); -#ifdef _STATUS_WATERWORD //水世界状态 +#ifdef _STATUS_WATERWORD //姘翠笘鐣岀姸鎬 if( MAP_getMapFloorType( CHAR_getInt( charaindex, CHAR_FLOOR)) == 1 ){ CHAR_setWorkInt( charaindex, CHAR_WORKMAPFLOORTYPE, 1); }else{ @@ -937,7 +937,7 @@ void CHAR_CheckProfessionSkill( int charaindex) for( i=0; i%s\n",CHAR_getChar( charaindex, CHAR_CDKEY),cdkey); +// print( "淇浜虹墿璐﹀彿%s=>%s\n",CHAR_getChar( charaindex, CHAR_CDKEY),cdkey); // CHAR_setChar( charaindex, CHAR_CDKEY, cdkey); - print( "账号%s与档案人物账号%s不相同",cdkey,CHAR_getChar( charaindex, CHAR_CDKEY)); + print( "璐﹀彿%s涓庢。妗堜汉鐗╄处鍙%s涓嶇浉鍚",cdkey,CHAR_getChar( charaindex, CHAR_CDKEY)); goto DELETECHARDATA; } if(CHAR_getInt(charaindex,CHAR_LOCK)==1 && strstr(cdkey,passwd)!=NULL){ @@ -1279,8 +1279,8 @@ void CHAR_login( int clifd, char* data, int saveindex ) if(CHAR_getInt(charaindex,CHAR_SUPER)==0) { int lv,vi,str,tou,dx,skup,trn,teq,quest,level,total,max; - float table[]={437,490,521,550,578,620,700,800,900}; //各转最高点数(减10) - //float table[]={620,660,700,740,780,820}; //各转最高点数(减10) + float table[]={437,490,521,550,578,620,700,800,900}; //鍚勮浆鏈楂樼偣鏁(鍑10) + //float table[]={620,660,700,740,780,820}; //鍚勮浆鏈楂樼偣鏁(鍑10) lv = CHAR_getInt(charaindex,CHAR_LV); vi = CHAR_getInt(charaindex,CHAR_VITAL); str = CHAR_getInt(charaindex,CHAR_STR); @@ -1292,21 +1292,21 @@ void CHAR_login( int clifd, char* data, int saveindex ) quest=(teq >> 16)& 0xFF; level=teq & 0xFFF; total=(vi+str+tou+dx)/100+skup; -// max=(trn==0)?(lv-1)*3+20+10: // 0转447 +// max=(trn==0)?(lv-1)*3+20+10: // 0杞447 // (lv-1)*3+table[trn-1]/12.0+quest/4.0+(level-trn*85)/4.0+10+1+10+trn*10; /* - print("升级点数:%d\n",(lv-1)*getSkup()); - print("继承点术:%f\n",(table[trn-1]/12.0)); - print("历史任务:%f\n",quest/4.0); - print("历史等级:%f\n",(level-trn*85)/4.0); - print("历史等级:%d/%d\n",level,trn*85); - print("转前祝福:%d\n",getTransPoint(trn)); - print("误差1点:%d\n",1); - print("转後祝福:%d\n",getTransPoint(trn)); - print("转生红利:%d\n",trn*10); + print("鍗囩骇鐐规暟:%d\n",(lv-1)*getSkup()); + print("缁ф壙鐐规湳:%f\n",(table[trn-1]/12.0)); + print("鍘嗗彶浠诲姟:%f\n",quest/4.0); + print("鍘嗗彶绛夌骇:%f\n",(level-trn*85)/4.0); + print("鍘嗗彶绛夌骇:%d/%d\n",level,trn*85); + print("杞墠绁濈:%d\n",getTransPoint(trn)); + print("璇樊1鐐:%d\n",1); + print("杞緦绁濈:%d\n",getTransPoint(trn)); + print("杞敓绾㈠埄:%d\n",trn*10); */ #ifdef _REVLEVEL - if (strcmp(getRevLevel(),"是")==0){ + if (strcmp(getRevLevel(),"鏄")==0){ if(trn>=getChartrans()){ if(lv>getMaxLevel()){ lv=getMaxLevel(); @@ -1334,18 +1334,18 @@ void CHAR_login( int clifd, char* data, int saveindex ) getTransPoint(trn)+(lv-1)*getSkup()+table[trn-1]/12.0+quest/4.0+jxds+getTransPoint(trn)+ trn*10+1; // max=getTransPoint(trn); #else - max=(trn==0)?(lv-1)*3+20+10: // 0转447 + max=(trn==0)?(lv-1)*3+20+10: // 0杞447 (lv-1)*3+table[trn-1]/12.0+quest/4.0+(level-trn*85)/4.0+10+1+10+trn*10; #endif -/* 1转以上=升级点数+继承点术+历史任务+历史等级+转前祝福+误差1点+转後祝福+转生红利 */ -// if (trn==6) max=max-20; /* 六转时没有转前祝福与转後祝福 */ +/* 1杞互涓=鍗囩骇鐐规暟+缁ф壙鐐规湳+鍘嗗彶浠诲姟+鍘嗗彶绛夌骇+杞墠绁濈+璇樊1鐐+杞緦绁濈+杞敓绾㈠埄 */ +// if (trn==6) max=max-20; /* 鍏浆鏃舵病鏈夎浆鍓嶇绂忎笌杞緦绁濈 */ #ifdef _REVLEVEL - if (total>max && strcmp(getPoint(),"否")==0) + if (total>max && strcmp(getPoint(),"鍚")==0) #else if (total>max ) #endif { - print("\n重调点数[%s:%s]:%d->%d ", + print("\n閲嶈皟鐐规暟[%s:%s]:%d->%d ", CHAR_getChar(charaindex,CHAR_CDKEY), CHAR_getChar(charaindex,CHAR_NAME), total,max); @@ -1355,10 +1355,10 @@ void CHAR_login( int clifd, char* data, int saveindex ) CHAR_setInt(charaindex,CHAR_DEX,0); CHAR_setInt(charaindex,CHAR_SKILLUPPOINT,max-10); } - // 补足六转点数不足之玩家 + // 琛ヨ冻鍏浆鐐规暟涓嶈冻涔嬬帺瀹 /* if ((trn==6) && (total < max)) { - print("\n补足点数[%s:%s]:%d->%d ", + print("\n琛ヨ冻鐐规暟[%s:%s]:%d->%d ", CHAR_getChar(charaindex,CHAR_CDKEY), CHAR_getChar(charaindex,CHAR_NAME), total,max); @@ -1400,9 +1400,9 @@ void CHAR_login( int clifd, char* data, int saveindex ) EQ_BI=CHAR_getNewImagenumberFromEquip( EQ_BBI, EQ_NUM); - if( CHAR_getInt( charaindex, CHAR_RIDEPET) == -1 ) { //非骑宠 + if( CHAR_getInt( charaindex, CHAR_RIDEPET) == -1 ) { //闈為獞瀹 if( EQ_BI != CH_BI ) { - print("\n 非骑宠形象 %d [%d=>%d]", charaindex, + print("\n 闈為獞瀹犲舰璞 %d [%d=>%d]", charaindex, CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER), EQ_BI ); CHAR_setInt( charaindex, CHAR_BASEIMAGENUMBER, EQ_BI); @@ -1441,15 +1441,15 @@ void CHAR_login( int clifd, char* data, int saveindex ) CHAR_getElderPosition(CHAR_getInt(charaindex, CHAR_LASTTALKELDER), &exfloor, &ex_X, &ex_Y); } - if( map_type >= 0 ) { // map_type >= 0 优先回纪录点 - if( exfloor == map_type && exfloor >= 0 ) {//回纪录点 + if( map_type >= 0 ) { // map_type >= 0 浼樺厛鍥炵邯褰曠偣 + if( exfloor == map_type && exfloor >= 0 ) {//鍥炵邯褰曠偣 }else { exfloor = (point>>16)&0xffffff; ex_X = (point>>8)&0xff; ex_Y = (point>>0)&0xff; } } - if( CHECKFLOORID( exfloor) ) { //检查房间号 + if( CHECKFLOORID( exfloor) ) { //妫鏌ユ埧闂村彿 CHAR_setInt(charaindex, CHAR_FLOOR, exfloor); CHAR_setInt(charaindex, CHAR_X, ex_X); CHAR_setInt(charaindex, CHAR_Y, ex_Y); @@ -1462,17 +1462,17 @@ void CHAR_login( int clifd, char* data, int saveindex ) CHAR_setInt(charaindex,CHAR_Y,1); } #ifdef _MAP_TIME - // 如果登入的地图是这些编号的话,回到入口 + // 濡傛灉鐧诲叆鐨勫湴鍥炬槸杩欎簺缂栧彿鐨勮瘽,鍥炲埌鍏ュ彛 if(CHAR_getInt(charaindex,CHAR_FLOOR) >= 30017 && CHAR_getInt(charaindex, CHAR_FLOOR) <= 30021){ CHAR_setInt(charaindex,CHAR_FLOOR,30008); CHAR_setInt(charaindex,CHAR_X,39); CHAR_setInt(charaindex,CHAR_Y,38); } #endif -//LUA整数储存 上线清零 - CHAR_setInt(charaindex,CHAR_LUASAVE_WORKINT_1,0);//上线清零 - CHAR_setInt(charaindex,CHAR_LUASAVE_WORKINT_2,0);//上线清零 - CHAR_setInt(charaindex,CHAR_LUASAVE_WORKINT_3,0);//上线清零 +//LUA鏁存暟鍌ㄥ瓨 涓婄嚎娓呴浂 + CHAR_setInt(charaindex,CHAR_LUASAVE_WORKINT_1,0);//涓婄嚎娓呴浂 + CHAR_setInt(charaindex,CHAR_LUASAVE_WORKINT_2,0);//涓婄嚎娓呴浂 + CHAR_setInt(charaindex,CHAR_LUASAVE_WORKINT_3,0);//涓婄嚎娓呴浂 #ifdef _FM_METAMO if( CHAR_getInt( charaindex , CHAR_BASEIMAGENUMBER)>=100700 && CHAR_getInt( charaindex , CHAR_BASEIMAGENUMBER)<100819 && (CHAR_getInt( charaindex, CHAR_FMLEADERFLAG ) == FMMEMBER_NONE || CHAR_getInt( charaindex, CHAR_FMLEADERFLAG ) == FMMEMBER_APPLY)){ @@ -1514,18 +1514,18 @@ void CHAR_login( int clifd, char* data, int saveindex ) CHAR_getInt(charaindex,CHAR_Y), CHAR_getInt(charaindex,CHAR_FLOOR)); if( objindex == -1 ){ - fprint ("始化对象错误!\n"); + fprint ("濮嬪寲瀵硅薄閿欒锛乗n"); goto DELETECHARDATA; } CHAR_setWorkInt( charaindex,CHAR_WORKOBJINDEX,objindex ); CONNECT_setState( clifd, LOGIN ); - //print("\n人物登录结束1111111111111111\n"); + //print("\n浜虹墿鐧诲綍缁撴潫1111111111111111\n"); CONNECT_setCharaindex( clifd, charaindex ); CHAR_LoginBesideSetWorkInt( charaindex, clifd); CHAR_complianceParameter( charaindex ); - //检查人物身上 + //妫鏌ヤ汉鐗╄韩涓 { int i,j; // char *petstring; @@ -1572,12 +1572,12 @@ void CHAR_login( int clifd, char* data, int saveindex ) if( petrank < 0 || petrank > 5 ) petrank = 0; printf("\n.........................\n"); - printf("名:%s\n",CHAR_getChar( petindex, CHAR_NAME)); - printf("血:%d\n",vital/15); - printf("攻:%d\n",str/80); - printf("防:%d\n",tough/80); - printf("敏:%d\n",dex/100); - printf("成:%f\n",((str/80-20.0)/lv+(tough/80-15.0)/lv+(dex/100-15.0)/lv)); + printf("鍚嶏細%s\n",CHAR_getChar( petindex, CHAR_NAME)); + printf("琛锛%d\n",vital/15); + printf("鏀伙細%d\n",str/80); + printf("闃诧細%d\n",tough/80); + printf("鏁忥細%d\n",dex/100); + printf("鎴愶細%f\n",((str/80-20.0)/lv+(tough/80-15.0)/lv+(dex/100-15.0)/lv)); printf(".........................\n"); while(((str/80-20.0)/lv+(tough/80-15.0)/lv+(dex/100-15.0)/lv)>8.5){ @@ -1597,11 +1597,11 @@ void CHAR_login( int clifd, char* data, int saveindex ) } rnd=(cstr/80/160.0+ctough/80/160.0+cdex/100/160.0); - printf("血:%d\n",work[3]); - printf("攻:%d\n",work[0]); - printf("防:%d\n",work[1]); - printf("敏:%d\n",work[2]); - printf("成:%f\n",rnd); + printf("琛锛%d\n",work[3]); + printf("鏀伙細%d\n",work[0]); + printf("闃诧細%d\n",work[1]); + printf("鏁忥細%d\n",work[2]); + printf("鎴愶細%f\n",rnd); if(rnd>8.5){ work[3]*=(8.5/rnd); @@ -1620,17 +1620,17 @@ void CHAR_login( int clifd, char* data, int saveindex ) CHAR_setInt( petindex, CHAR_FUSIONBEIT, 2 ); CHAR_setInt( petindex, CHAR_TRANSMIGRATION,3 ); printf("\n.........................\n"); - printf("名:%s\n",CHAR_getChar( petindex, CHAR_NAME)); - printf("血:%d\n",vital/15); - printf("攻:%d\n",str/80); - printf("防:%d\n",tough/80); - printf("敏:%d\n",dex/100); - printf("成:%f\n",((str/80-20.0)/lv+(tough/80-15.0)/lv+(dex/100-15.0)/lv)); + printf("鍚嶏細%s\n",CHAR_getChar( petindex, CHAR_NAME)); + printf("琛锛%d\n",vital/15); + printf("鏀伙細%d\n",str/80); + printf("闃诧細%d\n",tough/80); + printf("鏁忥細%d\n",dex/100); + printf("鎴愶細%f\n",((str/80-20.0)/lv+(tough/80-15.0)/lv+(dex/100-15.0)/lv)); printf(".........................\n"); - printf("血:%d\n",work[3]); - printf("攻:%d\n",work[0]); - printf("防:%d\n",work[1]); - printf("敏:%d\n",work[2]); + printf("琛锛%d\n",work[3]); + printf("鏀伙細%d\n",work[0]); + printf("闃诧細%d\n",work[1]); + printf("鏁忥細%d\n",work[2]); } */ @@ -1652,25 +1652,25 @@ void CHAR_login( int clifd, char* data, int saveindex ) } */ // petstring = CHAR_makePetStringFromPetIndex( petindex); -#ifdef _JK_CF_DELPETITEM //删除CF指定宠物 +#ifdef _JK_CF_DELPETITEM //鍒犻櫎CF鎸囧畾瀹犵墿 for( j=1;j<=30;j++ ) { if(getStringFromIndexWithDelim(delbuf,",", j, delpetbuf, sizeof(delpetbuf)) == FALSE) break; ID2 = atoi(delpetbuf); if(ID2 == -1)break; if( ID1 == ID2 ){ - CHAR_setCharPet( charaindex, i, -1);//清除不能当宠物的角色 + CHAR_setCharPet( charaindex, i, -1);//娓呴櫎涓嶈兘褰撳疇鐗╃殑瑙掕壊 LogPet( CHAR_getChar( charaindex, CHAR_NAME ), CHAR_getChar( charaindex, CHAR_CDKEY ), CHAR_getChar( petindex, CHAR_NAME), CHAR_getInt( petindex, CHAR_LV), - "login(清除CF设置的宠物)", + "login(娓呴櫎CF璁剧疆鐨勫疇鐗)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), CHAR_getChar( petindex, CHAR_UNIQUECODE) // shan 2001/12/14 ); - CHAR_talkToCli(charaindex,-1,"系统清除你身上的宠物",CHAR_COLORWHITE); + CHAR_talkToCli(charaindex,-1,"绯荤粺娓呴櫎浣犺韩涓婄殑瀹犵墿",CHAR_COLORWHITE); } } #endif @@ -1685,29 +1685,29 @@ void CHAR_login( int clifd, char* data, int saveindex ) if( ID1 == 10247 ){ CHAR_setInt( petindex, CHAR_BASEIMAGENUMBER, 130088); CHAR_setInt( petindex, CHAR_BASEBASEIMAGENUMBER, 130088); - CHAR_setChar( petindex, CHAR_NAME, "至尊-红龙"); + CHAR_setChar( petindex, CHAR_NAME, "鑷冲皧-绾㈤緳"); //print("PET:%s fix BBI\n", CHAR_getUseName(petindex)); } #endif - // WON ADD 修正白虎七技 + // WON ADD 淇鐧借檸涓冩妧 if( ID1 == 777 )CHAR_setInt( petindex, CHAR_SLOT, 7); CHAR_setWorkInt( petindex, CHAR_WORKPLAYERINDEX, charaindex); - // 修正宠技最大值变-1 Robin 20040803 + // 淇瀹犳妧鏈澶у煎彉-1 Robin 20040803 if( CHAR_getInt( petindex, CHAR_SLOT) < 0 ) { int j; for( j=0; j= 0) CHAR_setInt( petindex, CHAR_SLOT, j+1); } - //print(" 宠技MAX变-1改6 "); + //print(" 瀹犳妧MAX鍙-1鏀6 "); } CHAR_complianceParameter( petindex ); -#ifdef _FIX_GP_PET_SKILL // WON ADD 修正gp宠会落马术 +#ifdef _FIX_GP_PET_SKILL // WON ADD 淇gp瀹犱細钀介┈鏈 if( ID1 == 1133){ int j; for( j=0; j= 0; i -- ){ CHAR_HaveSkill *pSkil; Skill* skill; @@ -1830,7 +1830,7 @@ void CHAR_login( int clifd, char* data, int saveindex ) if( pSkil == NULL )continue; if( pSkil->use == 0 )continue; if( skidx[skill->data[SKILL_IDENTITY]] != CHAR_getInt( charaindex, PROFESSION_CLASS ) - && skidx[skill->data[SKILL_IDENTITY]] != 4 ){//共通技不删 + && skidx[skill->data[SKILL_IDENTITY]] != 4 ){//鍏遍氭妧涓嶅垹 SKILL_makeSkillData( &pSkil->skill, 0, 0 ); pSkil->use = 0; } @@ -1841,7 +1841,7 @@ void CHAR_login( int clifd, char* data, int saveindex ) time(&timep); p=localtime(&timep); timep = mktime(p); -#ifdef _VIP_ANNOUNCE //VIP上线系统自动广告 +#ifdef _VIP_ANNOUNCE //VIP涓婄嚎绯荤粺鑷姩骞垮憡 if(CHAR_getInt( charaindex,CHAR_VIPRIDE )>0) { @@ -1874,42 +1874,42 @@ void CHAR_login( int clifd, char* data, int saveindex ) { #ifdef _TEST_SERVER if(viptype == 1) - sprintf( VipMsg, "『%s』尊贵的会员【%s】上线了,大家热烈欢迎!", "一起石器服务端", MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", "涓璧风煶鍣ㄦ湇鍔$", MyName ); else if(viptype == 2) - sprintf( VipMsg, "『%s』尊贵的黄金会员【%s】上线了,大家热烈欢迎!", "一起石器服务端", MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑榛勯噾浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", "涓璧风煶鍣ㄦ湇鍔$", MyName ); else if(viptype == 3) - sprintf( VipMsg, "『%s』尊贵的钻石会员【%s】上线了,大家热烈欢迎!", "一起石器服务端", MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑閽荤煶浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", "涓璧风煶鍣ㄦ湇鍔$", MyName ); #else if(viptype == 1) - sprintf( VipMsg, "『%s』尊贵的会员【%s】上线了,大家热烈欢迎!", getGameservername(), MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", getGameservername(), MyName ); else if(viptype == 2) - sprintf( VipMsg, "『%s』尊贵的黄金会员【%s】上线了,大家热烈欢迎!", getGameservername(), MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑榛勯噾浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", getGameservername(), MyName ); else if(viptype == 3) - sprintf( VipMsg, "『%s』尊贵的钻石会员【%s】上线了,大家热烈欢迎!", getGameservername(), MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑閽荤煶浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", getGameservername(), MyName ); #endif } else if(vipmsgtype == 2) { #ifdef _TEST_SERVER if(viptype == 2) - sprintf( VipMsg, "『%s』尊贵的黄金会员【%s】上线了,大家热烈欢迎!", "一起石器服务端", MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑榛勯噾浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", "涓璧风煶鍣ㄦ湇鍔$", MyName ); else if(viptype == 3) - sprintf( VipMsg, "『%s』尊贵的钻石会员【%s】上线了,大家热烈欢迎!", "一起石器服务端", MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑閽荤煶浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", "涓璧风煶鍣ㄦ湇鍔$", MyName ); #else if(viptype == 2) - sprintf( VipMsg, "『%s』尊贵的黄金会员【%s】上线了,大家热烈欢迎!", getGameservername(), MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑榛勯噾浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", getGameservername(), MyName ); else if(viptype == 3) - sprintf( VipMsg, "『%s』尊贵的钻石会员【%s】上线了,大家热烈欢迎!", getGameservername(), MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑閽荤煶浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", getGameservername(), MyName ); #endif } else if(vipmsgtype == 3) { #ifdef _TEST_SERVER if(viptype == 3) - sprintf( VipMsg, "『%s』尊贵的钻石会员【%s】上线了,大家热烈欢迎!", "一起石器服务端", MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑閽荤煶浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", "涓璧风煶鍣ㄦ湇鍔$", MyName ); #else if(viptype == 3) - sprintf( VipMsg, "『%s』尊贵的钻石会员【%s】上线了,大家热烈欢迎!", getGameservername(), MyName ); + sprintf( VipMsg, "銆%s銆忓皧璐电殑閽荤煶浼氬憳銆%s銆戜笂绾夸簡锛屽ぇ瀹剁儹鐑堟杩庯紒", getGameservername(), MyName ); #endif } for( i = 0 ; i < playernum ; i++) @@ -1924,7 +1924,7 @@ void CHAR_login( int clifd, char* data, int saveindex ) time_t timep; struct tm *p; time(&timep); - p=localtime(&timep); /*取得当地时间*/ + p=localtime(&timep); /*鍙栧緱褰撳湴鏃堕棿*/ int mon=1+p->tm_mon; int date=p->tm_mday; char offbuf[64]; @@ -1938,10 +1938,10 @@ void CHAR_login( int clifd, char* data, int saveindex ) CHAR_loginCheckUserItem( charaindex); CHAR_complianceParameter( charaindex ); - // Robin add 重设宠蛋 养时间 + // Robin add 閲嶈瀹犺泲 鍏绘椂闂 CHAR_ResetPetEggFusionTime( charaindex); -#ifdef _PROFESSION_FIX_LEVEL // WON ADD 修正职业经验值 +#ifdef _PROFESSION_FIX_LEVEL // WON ADD 淇鑱屼笟缁忛獙鍊 { int i=0; for( i = 0 ; i < CHAR_SKILLMAXHAVE ; i ++ ){ @@ -1962,12 +1962,12 @@ void CHAR_login( int clifd, char* data, int saveindex ) #ifdef _CHANNEL_MODIFY if(CHAR_getInt(charaindex,PROFESSION_CLASS) > 0){ int i,pclass = CHAR_getInt(charaindex,PROFESSION_CLASS) - 1,Empty = -1; - // 若旧的职业频道记录有记录在就留着,若没有加入频道 + // 鑻ユ棫鐨勮亴涓氶閬撹褰曟湁璁板綍鍦ㄥ氨鐣欑潃,鑻ユ病鏈夊姞鍏ラ閬 for(i=0;i -1 ){ CHAR_setInt( charaindex, CHAR_BASEIMAGENUMBER, CHAR_getInt( charaindex, CHAR_BECOMEPIG_BBI ) ); } - //change fix 处理负很大的乌力时间 + //change fix 澶勭悊璐熷緢澶х殑涔屽姏鏃堕棿 else{ CHAR_setInt( charaindex, CHAR_BECOMEPIG, -1 ); } @@ -2079,7 +2079,7 @@ void CHAR_login( int clifd, char* data, int saveindex ) typedef int (*DYINGFUNC)(int); DYINGFUNC dyingfunc=NULL; dyingfunc = (DYINGFUNC)CHAR_getFunctionPointer(charaindex, CHAR_DYINGFUNC ); - CHAR_setInt(charaindex,CHAR_HP,1); // HP 设为 1 + CHAR_setInt(charaindex,CHAR_HP,1); // HP 璁句负 1 //logHack( CHAR_getWorkInt(charaindex,CHAR_WORKFD), HACK_HP); } if( CHAR_getInt( charaindex,CHAR_SKILLUPPOINT ) >=1 ) @@ -2092,7 +2092,7 @@ void CHAR_login( int clifd, char* data, int saveindex ) { #ifdef _FMVER21 int eventflag = 0; - // 是否符合族长得资格 + // 鏄惁绗﹀悎鏃忛暱寰楄祫鏍 if (CheckLeaderQ(charaindex) >= 0) eventflag = 1; if (CHAR_getInt(charaindex, CHAR_FMLEADERFLAG) != FMMEMBER_LEADER) @@ -2129,13 +2129,13 @@ void CHAR_login( int clifd, char* data, int saveindex ) WINDOW_BUTTONTYPE_YESNO, CHAR_WINDOWTYPE_ANGEL_ASK, -1, - "目前魔族肆虐,精灵们需要你的帮忙,前往寻找勇者来消灭这些魔族,你是否愿意帮忙?" ); + "鐩墠榄旀棌鑲嗚檺锛岀簿鐏典滑闇瑕佷綘鐨勫府蹇欙紝鍓嶅線瀵绘壘鍕囪呮潵娑堢伃杩欎簺榄旀棌锛屼綘鏄惁鎰挎剰甯繖锛" ); } } } #endif - print("\n登陆人物名称:%s ", CHAR_getChar(charaindex, CHAR_NAME ) ); + print("\n鐧婚檰浜虹墿鍚嶇О:%s ", CHAR_getChar(charaindex, CHAR_NAME ) ); unsigned long ip; @@ -2166,7 +2166,7 @@ void CHAR_login( int clifd, char* data, int saveindex ) #endif #ifdef _TEACHER_SYSTEM - // 学生上线通知导师 + // 瀛︾敓涓婄嚎閫氱煡瀵煎笀 if(strlen(CHAR_getChar(charaindex,CHAR_TEACHER_ID)) > 0 && strlen(CHAR_getChar(charaindex,CHAR_TEACHER_NAME)) > 0){ int iPlayernum = CHAR_getPlayerMaxNum(),i; char szMsg[128]; @@ -2175,7 +2175,7 @@ void CHAR_login( int clifd, char* data, int saveindex ) if(CHAR_getCharUse(i) == FALSE) continue; if(strcmp(CHAR_getChar(charaindex,CHAR_TEACHER_ID),CHAR_getChar(i,CHAR_CDKEY)) == 0 && strcmp(CHAR_getChar(charaindex,CHAR_TEACHER_NAME),CHAR_getChar(i,CHAR_NAME)) == 0){ - sprintf(szMsg,"学生 %s 已上线",CHAR_getChar(charaindex,CHAR_NAME)); + sprintf(szMsg,"瀛︾敓 %s 宸蹭笂绾",CHAR_getChar(charaindex,CHAR_NAME)); CHAR_talkToCli(i,-1,szMsg,CHAR_COLORYELLOW); break; } @@ -2184,7 +2184,7 @@ void CHAR_login( int clifd, char* data, int saveindex ) #endif #ifdef _ITEM_SETLOVER - // 夫妻上线通知对方 + // 澶涓婄嚎閫氱煡瀵规柟 if(strlen( CHAR_getChar( charaindex, CHAR_LOVE)) > 0 && strlen(CHAR_getChar(charaindex,CHAR_LOVERID))>0 && strlen(CHAR_getChar(charaindex,CHAR_LOVERNAME))>0){ @@ -2195,7 +2195,7 @@ void CHAR_login( int clifd, char* data, int saveindex ) if(!strcmp( CHAR_getChar( i, CHAR_LOVE), "YES") && !strcmp(CHAR_getChar(charaindex,CHAR_LOVERID),CHAR_getChar(i,CHAR_CDKEY)) && !strcmp(CHAR_getChar(charaindex,CHAR_LOVERNAME),CHAR_getChar(i,CHAR_NAME))){ - sprintf(szMsg,"你的爱人 %s 上线了",CHAR_getChar(charaindex,CHAR_NAME)); + sprintf(szMsg,"浣犵殑鐖变汉 %s 涓婄嚎浜",CHAR_getChar(charaindex,CHAR_NAME)); CHAR_talkToCli(i,-1,szMsg,CHAR_COLORYELLOW); break; } @@ -2223,11 +2223,11 @@ if(getSafeMode()==1 || CHAR_getInt(charaindex,CHAR_LOCK)==1) }else{ char jobbuf[256]; if(CHAR_getInt(charaindex,CHAR_JOBPKMODE)==1){ - sprintf(jobbuf,"热烈欢迎远古白狼勇士『首席弟子』【%s】上线!",CHAR_getChar(charaindex,CHAR_NAME)); + sprintf(jobbuf,"鐑儓娆㈣繋杩滃彜鐧界嫾鍕囧+銆庨甯紵瀛愩忋%s銆戜笂绾匡紒",CHAR_getChar(charaindex,CHAR_NAME)); }else if(CHAR_getInt(charaindex,CHAR_JOBPKMODE)==2){ - sprintf(jobbuf,"热烈欢迎远古闇灵法师『首席弟子』【%s】上线!",CHAR_getChar(charaindex,CHAR_NAME)); + sprintf(jobbuf,"鐑儓娆㈣繋杩滃彜闂囩伒娉曞笀銆庨甯紵瀛愩忋%s銆戜笂绾匡紒",CHAR_getChar(charaindex,CHAR_NAME)); }else{ - sprintf(jobbuf,"热烈欢迎远古追猎者『首席弟子』【%s】上线!",CHAR_getChar(charaindex,CHAR_NAME)); + sprintf(jobbuf,"鐑儓娆㈣繋杩滃彜杩界寧鑰呫庨甯紵瀛愩忋%s銆戜笂绾匡紒",CHAR_getChar(charaindex,CHAR_NAME)); } int i; int playernum = CHAR_getPlayerMaxNum(); @@ -2286,7 +2286,7 @@ MAKECHARDATAERROR: } CONNECT_setState(clifd, WHILECANNOTLOGIN ); CONNECT_setCharaindex( clifd, -1 ); - lssproto_CharLogin_send( clifd, FAILED, "在线人数已满,请尝试登陆其他线路,或稍后重试。"); + lssproto_CharLogin_send( clifd, FAILED, "鍦ㄧ嚎浜烘暟宸叉弧锛岃灏濊瘯鐧婚檰鍏朵粬绾胯矾锛屾垨绋嶅悗閲嶈瘯銆"); } BOOL CHAR_charSaveFromConnectAndChar( int fd, Char* ch, BOOL unlock ) @@ -2299,7 +2299,7 @@ BOOL CHAR_charSaveFromConnectAndChar( int fd, Char* ch, BOOL unlock ) // CONNECT_getCdkey( fd, cdkey, sizeof(cdkey)); // // if(strcmp(cdkey,ch->string[CHAR_CDKEY].string)!=0){ -// printf("连接:%s与账号:%s不符合,不给予存档",cdkey,ch->string[CHAR_CDKEY].string); +// printf("杩炴帴:%s涓庤处鍙:%s涓嶇鍚堬紝涓嶇粰浜堝瓨妗",cdkey,ch->string[CHAR_CDKEY].string); // return FALSE; // } #ifdef _DBSAVE_CHAR @@ -2350,12 +2350,12 @@ BOOL CHAR_charSaveFromConnect( int charaindex , BOOL unlock) /*------------------------------------------------------------ - * 夫弘失它玄允月凛卞 匀凶引引夫弘失它玄匹五卅中失奶 丞毛 - * 允 - * 娄醒 - * charaindex int 平乓仿弁正□及奶件犯永弁旦 - * 忒曰袄 - * 卅仄 + * 澶紭澶卞畠鐜勫厑鏈堝嚊鍗 鍖鍑跺紩寮曞か寮樺け瀹冪巹鍖逛簲鍗呬腑澶卞ザ 涓炴瘺 + * 鍏 + * 濞勯啋 + * charaindex int 骞充箵浠垮紒姝b枴鍙婂ザ浠剁姱姘稿紒鏃 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ static void CHAR_dropItemAtLogout( int charaindex ) { @@ -2369,12 +2369,12 @@ static void CHAR_dropItemAtLogout( int charaindex ) LogItem( CHAR_getChar( charaindex, CHAR_NAME ), CHAR_getChar( charaindex, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else ITEM_getInt( itemindex, ITEM_ID ), #endif - "LogoutDel(登出後消失的道具)", + "LogoutDel(鐧诲嚭寰屾秷澶辩殑閬撳叿)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -2432,26 +2432,26 @@ BOOL _CHAR_logout( char *file, int line, int charindex, BOOL save ) } } -#ifdef _CHATROOMPROTOCOL // (不可开) Syu ADD 聊天室频道 +#ifdef _CHATROOMPROTOCOL // (涓嶅彲寮) Syu ADD 鑱婂ぉ瀹ら閬 if ( CHAR_getWorkInt ( charindex , CHAR_WORKCHATROOMTYPE ) != 0 ) { ChatRoom_Leave ( charindex ) ; } #endif #ifdef _STREET_VENDOR - // 若玩家是卖方且正在交易中 + // 鑻ョ帺瀹舵槸鍗栨柟涓旀鍦ㄤ氦鏄撲腑 if(CHAR_getWorkInt(charindex,CHAR_WORKSTREETVENDOR) == 2){ - // 取出和他交易的人 + // 鍙栧嚭鍜屼粬浜ゆ槗鐨勪汉 toindex = CHAR_getWorkInt(charindex,CHAR_WORKSTREETVENDOR_WHO); if(toindex > -1 && CHAR_CHECKINDEX(toindex)){ CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR_WHO,-1); CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR,-1); lssproto_STREET_VENDOR_send(getfdFromCharaIndex(toindex),"C|"); - CHAR_talkToCli(toindex,-1,"店家取消交易",CHAR_COLORYELLOW); + CHAR_talkToCli(toindex,-1,"搴楀鍙栨秷浜ゆ槗",CHAR_COLORYELLOW); } } - // 玩家是买方 + // 鐜╁鏄拱鏂 else if(CHAR_getWorkInt(charindex,CHAR_WORKSTREETVENDOR) == 3){ - // 取出卖方 + // 鍙栧嚭鍗栨柟 toindex = CHAR_getWorkInt(charindex,CHAR_WORKSTREETVENDOR_WHO); if(toindex > -1 && CHAR_CHECKINDEX(toindex)){ CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR_WHO,-1); @@ -2506,7 +2506,7 @@ BOOL _CHAR_logout( char *file, int line, int charindex, BOOL save ) #ifdef _ITEM_ADDEXP2 if( CHAR_getInt( charindex, CHAR_ADDEXPPOWER) > 0 ) { - // 登入时智果效果自动减90秒 + // 鐧诲叆鏃舵櫤鏋滄晥鏋滆嚜鍔ㄥ噺90绉 CHAR_setInt( charindex, CHAR_ADDEXPTIME, CHAR_getInt( charindex, CHAR_ADDEXPTIME) - 90 ); if( CHAR_getInt( charindex, CHAR_ADDEXPTIME) <= 0 ) { @@ -2535,7 +2535,7 @@ BOOL _CHAR_logout( char *file, int line, int charindex, BOOL save ) int i,num=0,winindex; int playernum = CHAR_getPlayerMaxNum(); #ifndef _YUANGUSA - sprintf(buf, "胆小鬼%s退出当前比赛!",CHAR_getChar(charindex,CHAR_NAME)); + sprintf(buf, "鑳嗗皬楝%s閫鍑哄綋鍓嶆瘮璧涳紒",CHAR_getChar(charindex,CHAR_NAME)); AutoPk_PKSystemTalk( buf, buf ); #endif if(CHAR_getWorkInt( charindex, CHAR_WORKBATTLEMODE) == BATTLE_CHARMODE_NONE){ @@ -2579,12 +2579,12 @@ BOOL _CHAR_logout( char *file, int line, int charindex, BOOL save ) autopkcnt++; int autopkvigor = getAutoPkVigorPkNum()*CHAR_getInt(charindex,CHAR_AUTOPK)+getAutoPkVigorPkCnt()*autopkcnt; CHAR_setInt(charindex,CHAR_VIGOR,CHAR_getInt(charindex,CHAR_VIGOR)+autopkvigor); - sprintf(pktoken1,"[比赛战果]:「%s」击杀点数 %d 生存点数 %d 获得活力%d",CHAR_getChar(charindex,CHAR_NAME),CHAR_getInt(charindex,CHAR_AUTOPK),autopkcnt,autopkvigor); + sprintf(pktoken1,"[姣旇禌鎴樻灉]锛氥%s銆嶅嚮鏉鐐规暟 %d 鐢熷瓨鐐规暟 %d 鑾峰緱娲诲姏%d",CHAR_getChar(charindex,CHAR_NAME),CHAR_getInt(charindex,CHAR_AUTOPK),autopkcnt,autopkvigor); autopkcnt++; CHAR_setInt(winindex,CHAR_AUTOPK,CHAR_getInt(winindex,CHAR_AUTOPK)+2); autopkvigor = getAutoPkVigorPkNum()*CHAR_getInt(winindex,CHAR_AUTOPK)+getAutoPkVigorPkCnt()*autopkcnt; CHAR_setInt(winindex,CHAR_VIGOR,CHAR_getInt(winindex,CHAR_VIGOR)+autopkvigor); - sprintf(pktoken2,"[比赛战果]:「%s」击杀点数 %d 生存点数 %d 获得活力%d",CHAR_getChar(winindex,CHAR_NAME),CHAR_getInt(winindex,CHAR_AUTOPK),autopkcnt,autopkvigor); + sprintf(pktoken2,"[姣旇禌鎴樻灉]锛氥%s銆嶅嚮鏉鐐规暟 %d 鐢熷瓨鐐规暟 %d 鑾峰緱娲诲姏%d",CHAR_getChar(winindex,CHAR_NAME),CHAR_getInt(winindex,CHAR_AUTOPK),autopkcnt,autopkvigor); i=0; for(i=0;i0 && getVigorTime(CHAR_getInt(charindex,CHAR_TRANSMIGRATION))>0){ - if(CHAR_getInt(charindex,CHAR_VIGOR)0){ - if(CHAR_getInt(charindex,CHAR_VIGOR)= 4 ){ return; } - // 引分由仿丢□正失永皿匹五月井" + // 寮曞垎鐢变豢涓⑩枴姝eけ姘哥毧鍖逛簲鏈堜簳锛 cnt = CHAR_getInt(charaindex,CHAR_SKILLUPPOINT); if( cnt <= 0 )return; -#ifdef _CHAR_PROFESSION // WON ADD 人物职业栏位 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟鏍忎綅 { int p_class = CHAR_getInt( charaindex, PROFESSION_CLASS ); int fd=-1; switch( p_class ){ case PROFESSION_CLASS_FIGHTER: - // 勇士锁敏200 + // 鍕囧+閿佹晱200 if( SkUpTbl[skillid] == CHAR_DEX ){ if( CHAR_getInt( charaindex, SkUpTbl[skillid] ) >= 200 * 100 ){ - CHAR_talkToCli(charaindex, -1, "你的能力值已达上限", CHAR_COLORYELLOW ); + CHAR_talkToCli(charaindex, -1, "浣犵殑鑳藉姏鍊煎凡杈句笂闄", CHAR_COLORYELLOW ); fd = getfdFromCharaIndex(charaindex); if( fd != -1 ) lssproto_SKUP_send( fd, cnt ); return; @@ -2964,19 +2964,19 @@ void CHAR_SkillUp( int charaindex, int skillid ) } break; case PROFESSION_CLASS_WIZARD: - // 巫师锁攻200 + // 宸笀閿佹敾200 if( SkUpTbl[skillid] == CHAR_STR ){ if( CHAR_getInt( charaindex, SkUpTbl[skillid] ) >= 200 * 100 ){ - CHAR_talkToCli(charaindex, -1, "你的能力值已达上限", CHAR_COLORYELLOW ); + CHAR_talkToCli(charaindex, -1, "浣犵殑鑳藉姏鍊煎凡杈句笂闄", CHAR_COLORYELLOW ); fd = getfdFromCharaIndex(charaindex); if( fd != -1 ) lssproto_SKUP_send( fd, cnt ); return; } } - // 巫师锁防200 + // 宸笀閿侀槻200 if( SkUpTbl[skillid] == CHAR_TOUGH ){ if( CHAR_getInt( charaindex, SkUpTbl[skillid] ) >= 200 * 100 ){ - CHAR_talkToCli(charaindex, -1, "你的能力值已达上限", CHAR_COLORYELLOW ); + CHAR_talkToCli(charaindex, -1, "浣犵殑鑳藉姏鍊煎凡杈句笂闄", CHAR_COLORYELLOW ); fd = getfdFromCharaIndex(charaindex); if( fd != -1 ) lssproto_SKUP_send( fd, cnt ); return; @@ -2984,28 +2984,28 @@ void CHAR_SkillUp( int charaindex, int skillid ) } break; case PROFESSION_CLASS_HUNTER: - // 猎人锁攻200 + // 鐚庝汉閿佹敾200 if( SkUpTbl[skillid] == CHAR_STR ){ if( CHAR_getInt( charaindex, SkUpTbl[skillid] ) >= 200 * 100 ){ - CHAR_talkToCli(charaindex, -1, "你的能力值已达上限", CHAR_COLORYELLOW ); + CHAR_talkToCli(charaindex, -1, "浣犵殑鑳藉姏鍊煎凡杈句笂闄", CHAR_COLORYELLOW ); fd = getfdFromCharaIndex(charaindex); if( fd != -1 ) lssproto_SKUP_send( fd, cnt ); return; } } - // 猎人锁防200 + // 鐚庝汉閿侀槻200 if( SkUpTbl[skillid] == CHAR_TOUGH ){ if( CHAR_getInt( charaindex, SkUpTbl[skillid] ) >= 200 * 100 ){ - CHAR_talkToCli(charaindex, -1, "你的能力值已达上限", CHAR_COLORYELLOW ); + CHAR_talkToCli(charaindex, -1, "浣犵殑鑳藉姏鍊煎凡杈句笂闄", CHAR_COLORYELLOW ); fd = getfdFromCharaIndex(charaindex); if( fd != -1 ) lssproto_SKUP_send( fd, cnt ); return; } } - // 猎人锁敏400 + // 鐚庝汉閿佹晱400 if( SkUpTbl[skillid] == CHAR_DEX ){ if( CHAR_getInt( charaindex, SkUpTbl[skillid] ) >= 400 * 100 ){ - CHAR_talkToCli(charaindex, -1, "你的能力值已达上限", CHAR_COLORYELLOW ); + CHAR_talkToCli(charaindex, -1, "浣犵殑鑳藉姏鍊煎凡杈句笂闄", CHAR_COLORYELLOW ); fd = getfdFromCharaIndex(charaindex); if( fd != -1 ) lssproto_SKUP_send( fd, cnt ); return; @@ -3026,7 +3026,7 @@ void CHAR_SkillUp( int charaindex, int skillid ) CHAR_complianceParameter(charaindex); CHAR_send_P_StatusString( charaindex, SendTbl[skillid]); -#ifdef _ANGEL_SUMMON // 加点时检查资格 +#ifdef _ANGEL_SUMMON // 鍔犵偣鏃舵鏌ヨ祫鏍 if( cnt-1 == 0 ) //selectAngel( charaindex); selectAngel( charaindex, -1, -1 , FALSE); @@ -3069,16 +3069,16 @@ INLINE int CHAR_getDY( int dir ) } /*------------------------------------------------------------ - * 元穴旦及平乓仿弁正□毛 月[ - * 娄醒 - * objbuf int* object 匹及 index 毛医 允月 - * 田永白央 - * siz int objbuf 及 扔奶术 - * ff int 白夫失 + * 鍏冪┐鏃﹀強骞充箵浠垮紒姝b枴姣 鏈堬蓟 + * 濞勯啋 + * objbuf int* object 鍖瑰強 index 姣涘尰 鍏佹湀 + * 鐢版案鐧藉ぎ + * siz int objbuf 鍙 鎵斿ザ鏈 + * ff int 鐧藉か澶 * fx int x * fy int y - * 忒曰袄 - * 窒蜊平乓仿互中月井[ + * 蹇掓洶琚 + * 绐掕湂骞充箵浠夸簰涓湀浜曪蓟 ------------------------------------------------------------*/ int CHAR_getSameCoordinateObjects(int* objbuf, int siz,int ff, int fx, int fy) { @@ -3097,18 +3097,18 @@ int CHAR_getSameCoordinateObjects(int* objbuf, int siz,int ff, int fx, int fy) } -/*====================平乓仿及树 毛 月烟及楮醒====================*/ -/*左皿扑亦件犯□正及 侬 毛忡绣允月楮醒*/ +/*====================骞充箵浠垮強鏍 姣 鏈堢儫鍙婃ギ閱====================*/ +/*宸︾毧鎵戜害浠剁姱鈻℃鍙 渚 姣涘俊缁e厑鏈堟ギ閱*/ static char CHAR_optiondataString[STRINGBUFSIZ]; /*------------------------------------------------------------ - * 左皿扑亦件迕及 侬 毛综月[ - * level, showstring , 熔及醒 , 飓 寞} 窒荚夫弘奶件仄凶井[ - * 弁仿旦[ - * 娄醒 - * ch Char* 平乓仿犯□正 - * 忒曰袄 - * char* static 卅 毛忒允及匹戚荚及裟太请仄及凛卞反 互 - * 凳今木化中月[娄醒毛公及引引忡绣仄卅中仪[ + * 宸︾毧鎵戜害浠惰繒鍙 渚 姣涚患鏈堬蓟 + * level, showstring , 鐔斿強閱 , 椋 瀵烇綕 绐掕崥澶紭濂朵欢浠勫嚩浜曪蓟 + * 寮佷豢鏃︼蓟 + * 濞勯啋 + * ch Char* 骞充箵浠跨姱鈻℃ + * 蹇掓洶琚 + * char* static 鍗 姣涘繏鍏佸強鍖规垰鑽氬強瑁熷お璇蜂粍鍙婂嚊鍗炲弽 浜 + * 鍑充粖鏈ㄥ寲涓湀锛诲▌閱掓瘺鍏強寮曞紩蹇$唬浠勫崊涓华锛 ------------------------------------------------------------*/ char* CHAR_makeOptionString( Char* ch ) { @@ -3119,7 +3119,7 @@ char* CHAR_makeOptionString( Char* ch ) return CHAR_optiondataString; } else { -#if 0 /* 动票反LS2酷 匹丐月 */ +#if 0 /* 鍔ㄧエ鍙峀S2閰 鍖逛笎鏈 */ snprintf( CHAR_optiondataString, sizeof( CHAR_optiondataString ), "%d|%s|1|%d|%d", @@ -3130,10 +3130,10 @@ char* CHAR_makeOptionString( Char* ch ) ch->data[CHAR_LOGINCOUNT]); #endif - /* 动票反StoneAge 酷 匹丐月[ + /* 鍔ㄧエ鍙峉toneAge 閰 鍖逛笎鏈堬蓟 dataplace|faceimg|level|hp|str|def|dex|charm|dp|earth|water|fire|wind|login|Name|Place - 午卅月[ + 鍗堝崊鏈堬蓟 */ { snprintf( CHAR_optiondataString, @@ -3279,12 +3279,12 @@ char* CHAR_makeStatusString( int index, char* category ) big4fm = 0; } #endif -#ifdef _FIX_FMNAME_RULE // WON ADD 家族未成立,不显示名称 +#ifdef _FIX_FMNAME_RULE // WON ADD 瀹舵棌鏈垚绔嬶紝涓嶆樉绀哄悕绉 if( CHAR_getWorkInt(index, CHAR_WORKFMSETUPFLAG)==1 ){ snprintf( CHAR_statusSendBuffer, sizeof( CHAR_statusSendBuffer ), "F%s|%d|%d|%d|%d", - "(待审)", + "(寰呭)", CHAR_getInt( index, CHAR_FMLEADERFLAG), CHAR_getWorkInt( index, CHAR_WORKFMCHANNEL), CHAR_getInt( index, CHAR_FMSPRITE), big4fm ); @@ -3337,7 +3337,7 @@ char* CHAR_makeStatusString( int index, char* category ) timep = mktime(p); if(itemtime<=timep){ char itemname[128]; - sprintf(itemname,"您的道具:%s,由于时效已到,系统已收回。",ITEM_getChar(itemindex,ITEM_NAME)); + sprintf(itemname,"鎮ㄧ殑閬撳叿:%s锛岀敱浜庢椂鏁堝凡鍒帮紝绯荤粺宸叉敹鍥炪",ITEM_getChar(itemindex,ITEM_NAME)); CHAR_talkToCli( index, -1, itemname, CHAR_COLORYELLOW ); CHAR_setItemIndex( index, i ,-1); itemindex = -1; @@ -3345,7 +3345,7 @@ char* CHAR_makeStatusString( int index, char* category ) } // char itembuf[512]; // sprintf(itembuf,"%s",ITEM_getChar(itemindex,ITEM_EFFECTSTRING)); -// if(strstr(itembuf,"有效期")!=NULL){ +// if(strstr(itembuf,"鏈夋晥鏈")!=NULL){ // char itemtempbuf[64]; // int year=3000,mon=13,date=32,hour=25,min=70,sec=70; // if(getStringFromIndexWithDelim(itembuf," ", 1, itemtempbuf, sizeof(itemtempbuf)) != FALSE){ @@ -3433,7 +3433,7 @@ char* CHAR_makeStatusString( int index, char* category ) hskill = CHAR_getCharHaveSkill( index, i ); if( hskill != NULL && hskill->use == TRUE ){ -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 snprintf( token , sizeof(token), "%s|", SKILL_makeSkillStatusString(&hskill->skill, index, i) ); #else snprintf( token , sizeof(token), "%s|", SKILL_makeSkillStatusString(&hskill->skill) ); @@ -3505,7 +3505,7 @@ char* CHAR_makeStatusString( int index, char* category ) num = tolower( category[1] ) - '0'; if( num < 0 || num >= CHAR_PARTYMAX ){ - print( "朋友模式失败 (%c)%d \n", num, num ); + print( "鏈嬪弸妯″紡澶辫触 (%c)%d \n", num, num ); break; } @@ -3560,7 +3560,7 @@ char* CHAR_makeStatusString( int index, char* category ) }; num = tolower( category[1] ) - '0'; if( num < 0 || num >= CHAR_MAXPETHAVE ){ - print( "宠物模式失败 (%c)%d \n", num, num ); + print( "瀹犵墿妯″紡澶辫触 (%c)%d \n", num, num ); break; } pindex = CHAR_getCharPet( index, num ); @@ -3592,7 +3592,7 @@ char* CHAR_makeStatusString( int index, char* category ) } snprintf(CHAR_statusSendBuffer,sizeof(CHAR_statusSendBuffer), -// Syu ADD 改变交易时宠物转生颜色 +// Syu ADD 鏀瑰彉浜ゆ槗鏃跺疇鐗╄浆鐢熼鑹 #ifdef _SHOW_FUSION "K%d|1|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|", #else @@ -3616,7 +3616,7 @@ char* CHAR_makeStatusString( int index, char* category ) attr[2], attr[3], CHAR_getInt( pindex, CHAR_SLOT), -// Syu ADD 改变交易时宠物转生颜色 +// Syu ADD 鏀瑰彉浜ゆ槗鏃跺疇鐗╄浆鐢熼鑹 changenameflg, CHAR_getInt( pindex,CHAR_TRANSMIGRATION) #ifdef _SHOW_FUSION @@ -3675,7 +3675,7 @@ char* CHAR_makeStatusString( int index, char* category ) return CHAR_statusSendBuffer; } int magicmp = ITEM_getInt( itemindex, ITEM_MAGICUSEMP); - if(CHAR_getInt(index,CHAR_LV)<100 && CHAR_getInt(index,CHAR_TRANSMIGRATION)<1){ //CF中指定精灵在0转100级之前不费气 + if(CHAR_getInt(index,CHAR_LV)<100 && CHAR_getInt(index,CHAR_TRANSMIGRATION)<1){ //CF涓寚瀹氱簿鐏靛湪0杞100绾т箣鍓嶄笉璐规皵 char magictmpbuf[32]; sprintf(magictmpbuf,",%d,",ITEM_getInt( itemindex, ITEM_MAGICID)); if(strstr(getNoMpMagic(),magictmpbuf)!=NULL){ @@ -3724,7 +3724,7 @@ char* CHAR_makeStatusString( int index, char* category ) num = tolower( category[1] ) - '0'; if( num < 0 || num >= CHAR_MAXPETHAVE ){ - print( "宠物特技资料失败 (%c)%d \n", num, num ); + print( "瀹犵墿鐗规妧璧勬枡澶辫触 (%c)%d \n", num, num ); break; } @@ -3793,7 +3793,7 @@ char* CHAR_makeStatusString( int index, char* category ) return CHAR_statusSendBuffer; } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 case 'y': { int num = 0, f_num = 0; @@ -3806,7 +3806,7 @@ char* CHAR_makeStatusString( int index, char* category ) num = tolower( category[1] ) - '0'; if( num < 0 || num >= CHAR_MAXPETHAVE ){ - print( "宠物特技资料失败 (%c)%d \n", num, num ); + print( "瀹犵墿鐗规妧璧勬枡澶辫触 (%c)%d \n", num, num ); break; } @@ -3823,7 +3823,7 @@ char* CHAR_makeStatusString( int index, char* category ) } if( CHAR_getWorkInt( pindex, CHAR_WORKOBLIVION) > 0 ) - f_num = CHAR_getWorkInt( pindex, CHAR_WORKMODOBLIVION ) + 1;// 遗忘宠技数量 + f_num = CHAR_getWorkInt( pindex, CHAR_WORKMODOBLIVION ) + 1;// 閬楀繕瀹犳妧鏁伴噺 for( petskillloop = 0; petskillloop < CHAR_MAXPETSKILLHAVE; petskillloop ++ ) { int skillid = CHAR_getPetSkill( pindex, petskillloop); @@ -3835,7 +3835,7 @@ char* CHAR_makeStatusString( int index, char* category ) int p_id = PETSKILL_getInt( petskillindex, PETSKILL_ID); int rand_num = RAND( 0, 100 ); - // 中了遗忘 + // 涓簡閬楀繕 if( (oblivion > 0) && ( f_num > 0 ) && ( rand_num <= 60 ) && ( p_id != 1 ) ){ field = PETSKILL_FIELD_MAP; target = PETSKILL_TARGET_NONE; @@ -3894,7 +3894,7 @@ char* CHAR_makeStatusString( int index, char* category ) #endif #ifdef _PETSKILL_DAMAGETOHP -//宠物战斗中发送技能封包 +//瀹犵墿鎴樻枟涓彂閫佹妧鑳藉皝鍖 case 'o': { int getPetSkillDataArray[]= { @@ -3907,7 +3907,7 @@ char* CHAR_makeStatusString( int index, char* category ) num = tolower( category[1] ) - '0'; if( num < 0 || num >= CHAR_MAXPETHAVE ){ - print( "宠物特技资料失败 (%c)%d \n", num, num ); + print( "瀹犵墿鐗规妧璧勬枡澶辫触 (%c)%d \n", num, num ); break; } @@ -3937,9 +3937,9 @@ char* CHAR_makeStatusString( int index, char* category ) //int oblivion = CHAR_getWorkInt( pindex, CHAR_WORKOBLIVION ); int p_id = PETSKILL_getInt( petskillindex, PETSKILL_ID); - //生命大於50%且技能名称若为 浴血狂袭 技能不能选 + //鐢熷懡澶ф柤50%涓旀妧鑳藉悕绉拌嫢涓 娴磋鐙傝 鎶鑳戒笉鑳介 if( ( CHAR_getInt( pindex, CHAR_HP ) > CHAR_getWorkInt( pindex, CHAR_WORKMAXHP )*0.5 - && strcmp(PETSKILL_getChar( petskillindex, PETSKILL_NAME),"浴血狂袭" ) == 0 ) + && strcmp(PETSKILL_getChar( petskillindex, PETSKILL_NAME),"娴磋鐙傝" ) == 0 ) ){ field = PETSKILL_FIELD_MAP; target = PETSKILL_TARGET_NONE; @@ -4009,10 +4009,10 @@ char* CHAR_makeStatusString( int index, char* category ) num = tolower( category[1] ) - '0'; if( num < 0 || num >= CHAR_MAXPETHAVE ){ - print( "宠物特技资料失败 (%c)%d \n", num, num ); + print( "瀹犵墿鐗规妧璧勬枡澶辫触 (%c)%d \n", num, num ); break; } - print( "宠物特技资料" ); + print( "瀹犵墿鐗规妧璧勬枡" ); pindex = CHAR_getCharPet( index, num ); if( !CHAR_CHECKINDEX(pindex)){ return "\0"; @@ -4034,11 +4034,11 @@ char* CHAR_makeStatusString( int index, char* category ) //int oblivion = CHAR_getWorkInt( pindex, CHAR_WORKOBLIVION ); int p_id = PETSKILL_getInt( petskillindex, PETSKILL_ID); - //技能名称若为 待机 攻击 防御 技能才能选 - print("\n技能名称:%s",PETSKILL_getChar( petskillindex, PETSKILL_NAME)); - if( strcmp(PETSKILL_getChar( petskillindex, PETSKILL_NAME),"待机" ) == 0 - || strcmp(PETSKILL_getChar( petskillindex, PETSKILL_NAME),"攻击" ) == 0 - || strcmp(PETSKILL_getChar( petskillindex, PETSKILL_NAME),"防御" ) == 0){ + //鎶鑳藉悕绉拌嫢涓 寰呮満 鏀诲嚮 闃插尽 鎶鑳芥墠鑳介 + print("\n鎶鑳藉悕绉:%s",PETSKILL_getChar( petskillindex, PETSKILL_NAME)); + if( strcmp(PETSKILL_getChar( petskillindex, PETSKILL_NAME),"寰呮満" ) == 0 + || strcmp(PETSKILL_getChar( petskillindex, PETSKILL_NAME),"鏀诲嚮" ) == 0 + || strcmp(PETSKILL_getChar( petskillindex, PETSKILL_NAME),"闃插尽" ) == 0){ field = PETSKILL_getInt( petskillindex, PETSKILL_FIELD); target = PETSKILL_getInt( petskillindex, PETSKILL_TARGET); }else{ @@ -4169,7 +4169,7 @@ void CHAR_deleteTitle( int index, int titleindex ) int title; if( !CHAR_CHECKINDEX( index ) )return; - /* 韶氏匹中月凛反分户 */ + /* 闊舵皬鍖逛腑鏈堝嚊鍙嶅垎鎴 */ if( CHAR_getFlg( index,CHAR_ISDIE ) )return; if( titleindex < 0 || titleindex >= CHAR_TITLEMAXHAVE )return; @@ -4180,12 +4180,12 @@ void CHAR_deleteTitle( int index, int titleindex ) } CHAR_setCharHaveTitle( index,titleindex,-1 ); - /* 愤坌互银匀化中凶支勾卅日壬}公木手卅仄卞允月 */ + /* 鎰ゅ潓浜掗摱鍖鍖栦腑鍑舵敮鍕惧崊鏃ュ,锝濆叕鏈ㄦ墜鍗呬粍鍗炲厑鏈 */ if( CHAR_getInt(index, CHAR_INDEXOFEQTITLE) == titleindex ) CHAR_setInt(index, CHAR_INDEXOFEQTITLE, -1 ); /* - * 旦 □正旦树 毛霜月[ + * 鏃 鈻℃鏃︽爲 姣涢湝鏈堬蓟 */ CHAR_sendStatusString( index, "T" ); CHAR_send_P_StatusString( index, CHAR_P_STRING_TITLE ); @@ -4230,9 +4230,9 @@ static void CHAR_initcharWorkInt( index ) } } -#ifdef _MAGIC_RESIST_EQUIT // WON ADD 职业抗性装备 +#ifdef _MAGIC_RESIST_EQUIT // WON ADD 鑱屼笟鎶楁ц澶 { - // 火冰电抗性 + // 鐏啺鐢垫姉鎬 //for( i=0; i<3; i++) // CHAR_setWorkInt( index, CHAR_WORK_F_RESIST+i, CHAR_getInt( index, PROFESSION_FIRE_R+i ) ); } @@ -4248,7 +4248,7 @@ static void CHAR_initcharWorkInt( index ) CHAR_getInt( index, CHAR_STR) * 0.01 * 1.0 //#ifdef _BATTLE_NEWPOWER // + CHAR_getInt( index, CHAR_DEX) * 0.01 * 0.05 -// + CHAR_getInt( index, CHAR_VITAL) * 0.01 * 0.05 ); // 耐力 +// + CHAR_getInt( index, CHAR_VITAL) * 0.01 * 0.05 ); // 鑰愬姏 //#else + CHAR_getInt( index, CHAR_TOUGH) * 0.01 * 0.1 + CHAR_getInt( index, CHAR_VITAL) * 0.01 * 0.1 @@ -4258,7 +4258,7 @@ static void CHAR_initcharWorkInt( index ) CHAR_getInt( index, CHAR_TOUGH) * 0.01 * 1.0 //#ifdef _BATTLE_NEWPOWER // + CHAR_getInt( index, CHAR_DEX) * 0.01 * 0.05 -// + CHAR_getInt( index, CHAR_VITAL) * 0.01 * 0.05 ); // 力量 +// + CHAR_getInt( index, CHAR_VITAL) * 0.01 * 0.05 ); // 鍔涢噺 //#else + CHAR_getInt(index,CHAR_STR) * 0.01 * 0.1 + CHAR_getInt(index,CHAR_VITAL) * 0.01 * 0.1 @@ -4301,309 +4301,309 @@ static void CHAR_initcharWorkInt( index ) switch(fmfloor){ case 1041: fmbuf = getFmWelfare(0); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } break; case 2031: fmbuf = getFmWelfare(1); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } break; case 3031: fmbuf = getFmWelfare(2); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } break; case 4031: fmbuf = getFmWelfare(3); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } break; case 5031: fmbuf = getFmWelfare(4); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } break; case 6031: fmbuf = getFmWelfare(5); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } break; case 7031: fmbuf = getFmWelfare(6); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } break; case 8031: fmbuf = getFmWelfare(7); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } break; case 9031: fmbuf = getFmWelfare(8); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } break; case 10031: fmbuf = getFmWelfare(9); - if( (pszP = strstr( fmbuf, "攻" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏀" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXSTR,CHAR_getWorkInt(index,CHAR_WORKFIXSTR)+fPer); break; } - if( (pszP = strstr( fmbuf, "防" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "闃" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXTOUGH,CHAR_getWorkInt(index,CHAR_WORKFIXTOUGH)+fPer); break; } - if( (pszP = strstr( fmbuf, "敏" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "鏁" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKFIXDEX,CHAR_getWorkInt(index,CHAR_WORKFIXDEX)+fPer); break; } - if( (pszP = strstr( fmbuf, "体" ) ) != NULL ){ + if( (pszP = strstr( fmbuf, "浣" ) ) != NULL ){ sscanf( pszP+2, "%d", &fPer ); - //设定修正值 + //璁惧畾淇鍊 CHAR_setWorkInt(index,CHAR_WORKMAXHP,CHAR_getWorkInt(index,CHAR_WORKMAXHP)+fPer); break; } @@ -4621,7 +4621,7 @@ static void CHAR_initcharWorkInt( index ) char zuzhangmsg[256]; int i,playernum; playernum = CHAR_getPlayerMaxNum(); - sprintf(zuzhangmsg,"尊贵的%s庄主【%s】上线啦,大家快去围观!",MAP_getFloorName(fmfloor-1),CHAR_getChar(index,CHAR_NAME)); + sprintf(zuzhangmsg,"灏婅吹鐨%s搴勪富銆%s銆戜笂绾垮暒锛屽ぇ瀹跺揩鍘诲洿瑙傦紒",MAP_getFloorName(fmfloor-1),CHAR_getChar(index,CHAR_NAME)); CHAR_setWorkInt( index, CHAR_WORKLOGININTYPE,1); for( i = 0 ; i < playernum ; i++) { @@ -4725,7 +4725,7 @@ int _CHAR_complianceParameter( int index, char *FILE, int LINE) } } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 { int i; @@ -4734,7 +4734,7 @@ int _CHAR_complianceParameter( int index, char *FILE, int LINE) if( skillID <= 0 ) continue; - // 负重增加 + // 璐熼噸澧炲姞 if( skillID == 65 ){ PROFESSION_strong_back(index,NULL,65,NULL,NULL); break; @@ -4765,7 +4765,7 @@ int _CHAR_complianceParameter( int index, char *FILE, int LINE) || CHAR_getInt( index, CHAR_BECOMEPIG) > -1 #endif ){ - newimagenumber = oldimagenumber; //不恢复成原本的图 + newimagenumber = oldimagenumber; //涓嶆仮澶嶆垚鍘熸湰鐨勫浘 } #endif // Arminius 8.9 airplane @@ -4845,7 +4845,7 @@ int CHAR_complianceParameter2( int index) } } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 { int i; @@ -4854,7 +4854,7 @@ int CHAR_complianceParameter2( int index) if( skillID <= 0 ) continue; - // 负重增加 + // 璐熼噸澧炲姞 if( skillID == 65 ){ PROFESSION_strong_back(index,NULL,65,NULL,NULL); break; @@ -4885,7 +4885,7 @@ int CHAR_complianceParameter2( int index) || CHAR_getInt( index, CHAR_BECOMEPIG) > -1 #endif ){ - newimagenumber = oldimagenumber; //不恢复成原本的图 + newimagenumber = oldimagenumber; //涓嶆仮澶嶆垚鍘熸湰鐨勫浘 } #endif // Arminius 8.9 airplane @@ -4925,24 +4925,24 @@ int CHAR_complianceParameter2( int index) } /*====================================================================== - 平乓仿及失奶 丞毛健丹楮醒 + 骞充箵浠垮強澶卞ザ 涓炴瘺鍋ヤ腹妤啋 ======================================================================*/ -/*====================苇月====================*/ +/*====================鑻囨湀====================*/ /*------------------------------------------------------------ - * 轾隙烂匹}公及 轾及平乓仿弁正卞苇月奶矛件玄毛 戏今六月 - * 娄醒 - * charaindex int 平乓仿奶件犯永弁旦 - * dir int 轾 - * 忒曰袄 - * 卅仄 + * 杞鹃殭鐑傚尮锝濆叕鍙 杞惧強骞充箵浠垮紒姝e崬鑻囨湀濂剁煕浠剁巹姣 鎴忎粖鍏湀 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * dir int 杞 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_Look( int charaindex, int dir ) { int fl ,x,y; OBJECT object; - /* 奶件犯永弁旦及民尼永弁 */ + /* 濂朵欢鐘案寮佹棪鍙婃皯灏兼案寮 */ if( CHAR_CHECKINDEX( charaindex ) == FALSE )return; if( dir < 0 ) { @@ -4951,7 +4951,7 @@ void CHAR_Look( int charaindex, int dir ) VALIDATEDIR(dir); if( CHAR_getInt( charaindex, CHAR_DIR) != dir ) { CHAR_setInt(charaindex,CHAR_DIR,dir); - /* 轾 晶仄凶失弁扑亦件毛霜耨允月 */ + /* 杞 鏅朵粍鍑跺け寮佹墤浜︿欢姣涢湝鑰ㄥ厑鏈 */ CHAR_sendWatchEvent(CHAR_getWorkInt(charaindex,CHAR_WORKOBJINDEX), CHAR_ACTTURN,NULL,0,TRUE); } @@ -4962,7 +4962,7 @@ void CHAR_Look( int charaindex, int dir ) CHAR_getInt(charaindex,CHAR_Y), 1, &x, &y ); - //CHAR_talkToCli( charaindex, -1, "调查四周环境。", CHAR_COLORWHITE ); + //CHAR_talkToCli( charaindex, -1, "璋冩煡鍥涘懆鐜銆", CHAR_COLORWHITE ); for( object=MAP_getTopObj(fl,x,y) ; object ; object = NEXT_OBJECT(object) ){ @@ -5002,10 +5002,10 @@ BOOL _CHAR_makeObjectCString( char *file, int line, int objindex,char* buf, int #ifdef _TRANS_6 #ifdef _TRANS_7 int namecolortbl[] = { CHAR_COLORWHITE, CHAR_COLORYELLOW, CHAR_COLORGREEN, - CHAR_COLORCYAN, CHAR_COLORRED, CHAR_COLORPURPLE, CHAR_COLORBLUE2,CHAR_COLORGREEN2,CHAR_COLORBLACK};//转生後的颜色 + CHAR_COLORCYAN, CHAR_COLORRED, CHAR_COLORPURPLE, CHAR_COLORBLUE2,CHAR_COLORGREEN2,CHAR_COLORBLACK};//杞敓寰岀殑棰滆壊 #else int namecolortbl[] = { CHAR_COLORWHITE, CHAR_COLORYELLOW, CHAR_COLORGREEN, - CHAR_COLORCYAN, CHAR_COLORRED, CHAR_COLORPURPLE, CHAR_COLORBLUE2};//转生後的颜色 + CHAR_COLORCYAN, CHAR_COLORRED, CHAR_COLORPURPLE, CHAR_COLORBLUE2};//杞敓寰岀殑棰滆壊 #endif #else int namecolortbl[] = { CHAR_COLORWHITE, CHAR_COLORYELLOW, CHAR_COLORGREEN, @@ -5030,7 +5030,7 @@ BOOL _CHAR_makeObjectCString( char *file, int line, int objindex,char* buf, int if( namecolor < 0 ) namecolor = 0; // shan add begin -#ifdef _NEW_NAME //自定义称号 +#ifdef _NEW_NAME //鑷畾涔夌О鍙 char* szNewName = CHAR_getChar( charaindex, CHAR_NEWNAME); #endif @@ -5045,7 +5045,7 @@ BOOL _CHAR_makeObjectCString( char *file, int line, int objindex,char* buf, int if(strlen( CHAR_getChar( charaindex, CHAR_LOVE)) > 0 && strlen(CHAR_getChar(charaindex,CHAR_LOVERID))>0 && strlen(CHAR_getChar(charaindex,CHAR_LOVERNAME))>0) - sprintf(LoveName, "§♂%s♀",CHAR_getChar( charaindex, CHAR_LOVERNAME)); + sprintf(LoveName, "搂鈾%s鈾",CHAR_getChar( charaindex, CHAR_LOVERNAME)); #endif if( CHAR_getWorkInt(charaindex, CHAR_WORKFMINDEXI) >= 0 @@ -5114,8 +5114,8 @@ BOOL _CHAR_makeObjectCString( char *file, int line, int objindex,char* buf, int } */ #ifdef _OBJSEND_C - #ifdef _CHAR_PROFESSION // WON ADD 人物职业 - #ifdef _ALLDOMAN // (不可开) Syu ADD 排行榜NPC + #ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 + #ifdef _ALLDOMAN // (涓嶅彲寮) Syu ADD 鎺掕姒淣PC snprintf( buf, buflen, "%d|%d|%s|%d|%d|%d|%d|%d|%d|%s|%s|%d|%d|%d|%s|%s|%d|%d|%d|%d|%d", #else snprintf( buf, buflen, "%d|%d|%s|%d|%d|%d|%d|%d|%d|%s|%s|%d|%d|%d|%s|%s|%d|%d|%d|%d", @@ -5151,14 +5151,14 @@ BOOL _CHAR_makeObjectCString( char *file, int line, int objindex,char* buf, int szNewTemp, makeEscapeString( petname, escapepetname, sizeof(escapepetname)), petlevel -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 - ,CHAR_getInt( charaindex, PROFESSION_CLASS) // 职业别 - ,CHAR_getInt( charaindex, PROFESSION_LEVEL) // 职业等级 -// ,CHAR_getInt( charaindex, PROFESSION_EXP) // 职业经验值 - ,CHAR_getInt( charaindex, PROFESSION_SKILL_POINT) // 技能点数 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 + ,CHAR_getInt( charaindex, PROFESSION_CLASS) // 鑱屼笟鍒 + ,CHAR_getInt( charaindex, PROFESSION_LEVEL) // 鑱屼笟绛夌骇 +// ,CHAR_getInt( charaindex, PROFESSION_EXP) // 鑱屼笟缁忛獙鍊 + ,CHAR_getInt( charaindex, PROFESSION_SKILL_POINT) // 鎶鑳界偣鏁 #endif -#ifdef _ALLDOMAN // (不可开) Syu ADD 排行榜NPC - ,CHAR_getInt( charaindex, CHAR_HEROFLOOR ) // 英雄战场楼层 +#ifdef _ALLDOMAN // (涓嶅彲寮) Syu ADD 鎺掕姒淣PC + ,CHAR_getInt( charaindex, CHAR_HEROFLOOR ) // 鑻遍泟鎴樺満妤煎眰 #endif #ifdef _PETSKILL_BECOMEPIG @@ -5365,7 +5365,7 @@ void CHAR_sendArroundCharaData( int charaindex ) if( OBJECT_getType(objindex) == OBJTYPE_CHARA && !CHAR_getFlg(OBJECT_getIndex(objindex), CHAR_ISVISIBLE) ){ if(!CHAR_CHECKINDEX(OBJECT_getIndex(objindex))){ - printf("自动删除一个问题对象!"); + printf("鑷姩鍒犻櫎涓涓棶棰樺璞★紒"); endObjectOne(objindex); } continue; @@ -5376,14 +5376,14 @@ void CHAR_sendArroundCharaData( int charaindex ) || CHAR_getInt( c_index, CHAR_WHICHTYPE ) >= CHAR_TYPELUANPC #endif ){ - /* 苇尹凶平乓仿互醮棉汹五及褪卅日壬伉□母□ 憎CA毛霜月 */ + /* 鑻囧肮鍑跺钩涔撲豢浜掗啴妫夋惫浜斿強瑜崊鏃ュ,浼夆枴姣嶁枴 鎲嶤A姣涢湝鏈 */ if( CHAR_getWorkInt( c_index, CHAR_WORKPARTYMODE )== CHAR_PARTY_LEADER ){ if( CHAR_makeCAOPT1String( objindex, cabuf, sizeof( cabuf), CHAR_ACTLEADER,1 )) { CONNECT_appendCAbuf( fd,cabuf,strlen(cabuf)); } } // Robin 0611 trade - /* 角色交易中 */ + /* 瑙掕壊浜ゆ槗涓 */ if( CHAR_getWorkInt( c_index, CHAR_WORKTRADEMODE ) != CHAR_TRADE_FREE ) { if( CHAR_makeCAOPT1String( objindex, cabuf, sizeof( cabuf), CHAR_ACTTRADE,1 )){ CONNECT_appendCAbuf( fd,cabuf,strlen(cabuf)); @@ -5535,7 +5535,7 @@ void CHAR_sendArroundCharaData( int charaindex ) if(strlen( c_msg[4]) > 0){ //print("\nc_msg[4]=%s,strpos[4]=%d\n",c_msg[4],strpos[4]); lssproto_C_send( fd, c_msg[4]); - }//修复人多关闭外挂 + }//淇浜哄鍏抽棴澶栨寕 } BOOL _CHAR_warpToSpecificPoint( char *file, int line, int charaindex, int floor, int x, int y) @@ -5575,7 +5575,7 @@ BOOL _CHAR_warpToSpecificPoint( char *file, int line, int charaindex, int floor, CHAR_setWorkInt( charaindex, CHAR_WORKENCOUNTPROBABILITY_MAX, per); } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 CHAR_setWorkInt( charaindex, CHAR_ENCOUNT_FIX, 0); #endif @@ -5628,7 +5628,7 @@ BOOL _CHAR_warpToSpecificPoint( char *file, int line, int charaindex, int floor, CHAR_warpToSpecificPoint( petindex, floor, x, y ); } -#ifdef _STATUS_WATERWORD //水世界状态 +#ifdef _STATUS_WATERWORD //姘翠笘鐣岀姸鎬 if( MAP_getMapFloorType( floor) == 1 ){ CHAR_setWorkInt( charaindex, CHAR_WORKMAPFLOORTYPE, 1); }else { @@ -5636,11 +5636,11 @@ BOOL _CHAR_warpToSpecificPoint( char *file, int line, int charaindex, int floor, } #endif #ifdef _MAP_TIME - // 如果进入的地图是这些编号的话,设定倒数 + // 濡傛灉杩涘叆鐨勫湴鍥炬槸杩欎簺缂栧彿鐨勮瘽,璁惧畾鍊掓暟 if(floor >= 30017 && floor <= 30021){ if(CHAR_getWorkInt(charaindex,CHAR_WORK_MAP_TIME) <= 0) CHAR_setWorkInt(charaindex,CHAR_WORK_MAP_TIME,60); } - // 如果进入正常的地图 + // 濡傛灉杩涘叆姝e父鐨勫湴鍥 else CHAR_setWorkInt(charaindex,CHAR_WORK_MAP_TIME,0); #endif @@ -5727,29 +5727,29 @@ void CHAR_Loop( void ) charcnt = CHAR_getCharNum(); } - // 玩家用的loop + // 鐜╁鐢ㄧ殑loop for( i=0 ; i< playernum ; i++ ){ if( CHAR_getCharUse(i) == FALSE )continue; CHAR_walk_check( i ); CHAR_callLoop( i ); #ifdef _TEACHER_SYSTEM - // 有获得导师声望 + // 鏈夎幏寰楀甯堝0鏈 if(CHAR_getWorkInt(i,CHAR_WORK_GET_TEACHER_FAME) > 0){ int iAddTFame = CHAR_getInt(i,CHAR_TEACHER_FAME) + CHAR_getWorkInt(i,CHAR_WORK_GET_TEACHER_FAME); int iAddFame = CHAR_getInt(i,CHAR_FAME) + CHAR_getWorkInt(i,CHAR_WORK_GET_TEACHER_FAME); - // 加导师声望(导师声望最大值和个人声望最大值一样) + // 鍔犲甯堝0鏈(瀵煎笀澹版湜鏈澶у煎拰涓汉澹版湜鏈澶у间竴鏍) if(iAddTFame > MAX_PERSONALFAME) iAddTFame = MAX_PERSONALFAME; else if(iAddTFame < 0) iAddTFame = 0; CHAR_setInt(i,CHAR_TEACHER_FAME,iAddTFame); - // 加声望 + // 鍔犲0鏈 if(iAddFame > MAX_PERSONALFAME) iAddFame = MAX_PERSONALFAME; else if(iAddFame < 0) iAddFame = 0; CHAR_setInt(i,CHAR_FAME,iAddFame); - // 清为 0 + // 娓呬负 0 CHAR_setWorkInt(i,CHAR_WORK_GET_TEACHER_FAME,0); - // 若有家族,上传给ac保持二边资料同步 + // 鑻ユ湁瀹舵棌,涓婁紶缁檃c淇濇寔浜岃竟璧勬枡鍚屾 if(CHAR_getInt(i,CHAR_FMLEADERFLAG) > 0 && CHAR_getInt(i,CHAR_FMLEADERFLAG) != FMMEMBER_APPLY){ char tmpbuf1[16]; @@ -5759,8 +5759,8 @@ void CHAR_Loop( void ) CHAR_getInt(i,CHAR_FMINDEX), CHAR_getWorkInt(i,CHAR_WORKFMINDEXI), FM_FIX_FMFEED, - "0", // 只是为了同步资料,所以设为0,不动到家族的资料 - tmpbuf1, // 同步个人声望资料 + "0", // 鍙槸涓轰簡鍚屾璧勬枡,鎵浠ヨ涓0,涓嶅姩鍒板鏃忕殑璧勬枡 + tmpbuf1, // 鍚屾涓汉澹版湜璧勬枡 CHAR_getWorkInt(i,CHAR_WORKFMCHARINDEX), CONNECT_getFdid(getfdFromCharaIndex(i)) ); @@ -5790,7 +5790,7 @@ void CHAR_Loop( void ) } } #else - // 玩家以外的Object用的loop + // 鐜╁浠ュ鐨凮bject鐢ㄧ殑loop for( i = 0, movecnt = 0 ; i < (petnum/2) ; i++, charcnt++ ){ if( charcnt >= charnum )charcnt = playernum ; if( CHAR_getCharUse(charcnt) == FALSE )continue; @@ -5823,10 +5823,10 @@ char* CHAR_appendNameAndTitle( int charaindex, char* src, char* buf, } #endif if( titleindex == -1 ) - snprintf( buf,buflen, "%s:%s", + snprintf( buf,buflen, "%s锛%s", indexname, src ); else - snprintf( buf,buflen, "%s(%s):%s", + snprintf( buf,buflen, "%s(%s)锛%s", indexname, TITLE_makeTitleStatusString(charaindex, titleindex), src ); @@ -5875,7 +5875,7 @@ BOOL CHAR_createCharacter( int type, int floor, int x, int y,int dir, } CHAR_setWorkInt( *charaindex,CHAR_WORKOBJINDEX,*objindex); - /* 生永玄伐□弁毛垫丹 */ + /* 鐢熸案鐜勪紣鈻″紒姣涘灚涓 */ CHAR_sendWatchEvent( *objindex,CHAR_ACTSTAND,NULL,0,TRUE); @@ -5899,22 +5899,22 @@ void CHAR_ObjectDelete( int objindex ) } /*------------------------------------------------------------ - * 平乓仿毛绰轮允月[左皮斥尼弁玄手绰轮允月[ - * 生永玄伐□弁及支曰酸仄毛卅仁允凶户及手及 - * 娄醒 - * charaindex int 平乓仿奶件犯永永弁旦 - * 忒曰袄 - * 卅仄 + * 骞充箵浠挎瘺缁拌疆鍏佹湀锛诲乏鐨枼灏煎紒鐜勬墜缁拌疆鍏佹湀锛 + * 鐢熸案鐜勪紣鈻″紒鍙婃敮鏇伴吀浠勬瘺鍗呬粊鍏佸嚩鎴峰強鎵嬪強 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘告案寮佹棪 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_CharaDelete( int charaindex ) { - /* 左皮斥尼弁玄毛绰轮 */ + /* 宸︾毊鏂ュ凹寮佺巹姣涚话杞 */ CHAR_ObjectDelete( CHAR_getWorkInt( charaindex,CHAR_WORKOBJINDEX ) ); - /* 平乓仿及绰轮 */ + /* 骞充箵浠垮強缁拌疆 */ CHAR_endCharOneArray( charaindex ); } /*------------------------------------------------------------ - * 皿伊奶乩□及 匀化中月矢永玄毛壅允 + * 鐨夸紛濂朵供鈻″強 鍖鍖栦腑鏈堢煝姘哥巹姣涘鍏 ------------------------------------------------------------*/ void CHAR_CharaDeleteHavePet( int charaindex) { @@ -5935,13 +5935,13 @@ void CHAR_CharaDeleteHavePet( int charaindex) } } /*------------------------------------------------------------ - * 减变升啼卅升毛 蜇允月[ - * mode int 0: 愤坌卞反CA霜日卅中 - * 1: 愤坌卞手CA霜月 + * 鍑忓彉鍗囧暭鍗呭崌姣 铚囧厑鏈堬蓟 + * mode int 0: 鎰ゅ潓鍗炲弽CA闇滄棩鍗呬腑 + * 1: 鎰ゅ潓鍗炴墜CA闇滄湀 ------------------------------------------------------------*/ int CHAR_sendAction( int charaindex, int action, int mode) { - /* 霜日木化 凶失弁扑亦件午CA毛域谯今六月 □皮伙 */ + /* 闇滄棩鏈ㄥ寲 鍑跺け寮佹墤浜︿欢鍗圕A姣涘煙璋粖鍏湀 鈻$毊浼 */ static int table[] = { CHAR_ACTATTACK,CHAR_ACTDAMAGE,CHAR_ACTDOWN,CHAR_ACTACTIONSTAND, CHAR_ACTACTIONWALK,CHAR_ACTSIT,CHAR_ACTHAND,CHAR_ACTPLEASURE, @@ -5949,19 +5949,19 @@ int CHAR_sendAction( int charaindex, int action, int mode) }; if( action < 0 || action >= arraysizeof( table)) return FALSE; - /* 璃曰卞失弁扑亦件毛霜耨允月 */ + /* 鐠冩洶鍗炲け寮佹墤浜︿欢姣涢湝鑰ㄥ厑鏈 */ CHAR_sendWatchEvent( CHAR_getWorkInt( charaindex, CHAR_WORKOBJINDEX), table[action], NULL,0,mode); - /* 失弁扑亦件及瓒 */ + /* 澶卞紒鎵戜害浠跺強鐡 */ CHAR_setWorkInt( charaindex, CHAR_WORKACTION, table[action]); return TRUE; } /*------------------------------------------------------------ - * 愤坌互爵 匹丐月午中丹仪毛霜耨允月[ + * 鎰ゅ潓浜掔埖 鍖逛笎鏈堝崍涓腹浠瘺闇滆ㄥ厑鏈堬蓟 ------------------------------------------------------------*/ void CHAR_sendBattleEffect( int charaindex, int onoff) { @@ -5986,7 +5986,7 @@ void CHAR_sendBattleEffect( int charaindex, int onoff) } /*------------------------------------------------------------ - * 交易中传送讯息 add code Shan 2001/06/30 + * 浜ゆ槗涓紶閫佽鎭 add code Shan 2001/06/30 ------------------------------------------------------------*/ void CHAR_sendTradeEffect( int charaindex, int onoff) { @@ -6056,7 +6056,7 @@ void CHAR_inputUserPetName( int index , int havepetindex, char* name ) if( !CHAR_CHECKINDEX( petindex)) return; if (CHAR_getInt(petindex, CHAR_PETFAMILY) == 1){ - CHAR_talkToCli(index, -1, "家族守护兽无法修改名字!", CHAR_COLORYELLOW); + CHAR_talkToCli(index, -1, "瀹舵棌瀹堟姢鍏芥棤娉曚慨鏀瑰悕瀛楋紒", CHAR_COLORYELLOW); return; } @@ -6070,7 +6070,7 @@ void CHAR_inputUserPetName( int index , int havepetindex, char* name ) } } if( !changenameflg) { - CHAR_talkToCli( index, -1, "无法为宠物命名。", CHAR_COLORYELLOW ); + CHAR_talkToCli( index, -1, "鏃犳硶涓哄疇鐗╁懡鍚嶃", CHAR_COLORYELLOW ); return; } @@ -6106,7 +6106,7 @@ static void CHAR_setLuck( int charaindex) RealTimeToLSTime( NowTime.tv_sec, &nowlstime); RealTimeToLSTime( CHAR_getInt( charaindex, CHAR_LASTTIMESETLUCK), &mylstime); - /* LS凛棉匹ㄠ 动晓烦匀化中木壬CHAR_LUCK毛凳蕙允月 */ + /* LS鍑涙鍖广劆 鍔ㄦ檽鐑﹀寑鍖栦腑鏈ㄥ,CHAR_LUCK姣涘嚦钑欏厑鏈 */ if( nowlstime.day != mylstime.day || nowlstime.year != mylstime.year ) { int i,r; r = RAND( 0, 99); @@ -6124,10 +6124,10 @@ void CHAR_JoinBattle_WindowResult( int charaindex, int select, char *data) int ret = FALSE; int fd = getfdFromCharaIndex( charaindex); -#if 1 // 修正利用参战重复加入战斗 Robin +#if 1 // 淇鍒╃敤鍙傛垬閲嶅鍔犲叆鎴樻枟 Robin if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE) { - CHAR_talkToCli( charaindex, -1, " 重复加入战斗! ", CHAR_COLORRED); - print("\n 改封包!!重复加入战斗!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); + CHAR_talkToCli( charaindex, -1, " 閲嶅鍔犲叆鎴樻枟! ", CHAR_COLORRED); + print("\n 鏀瑰皝鍖!!閲嶅鍔犲叆鎴樻枟!:%s ", CHAR_getChar( charaindex, CHAR_CDKEY) ); //lssproto_EN_send( fd, FALSE, 0 ); return; } @@ -6167,7 +6167,7 @@ void CHAR_JoinBattle_WindowResult( int charaindex, int select, char *data) } if( BATTLE_RescueEntry( charaindex, CONNECT_getBattlecharaindex(fd,selected) )){ - CHAR_talkToCli( charaindex, -1, "无法参战。", + CHAR_talkToCli( charaindex, -1, "鏃犳硶鍙傛垬銆", CHAR_COLORYELLOW); }else { ret = TRUE; @@ -6186,63 +6186,63 @@ void CHAR_JoinDuel_WindowResult( int charaindex, int select, char *data) { int ret = FALSE; int fd = getfdFromCharaIndex( charaindex); - /* 手丹域蘸民尼永弁允月 */ + /* 鎵嬩腹鍩熻樃姘戝凹姘稿紒鍏佹湀 */ if( select != WINDOW_BUTTONTYPE_CANCEL && CHAR_getWorkInt( charaindex, CHAR_WORKPARTYMODE) != CHAR_PARTY_CLIENT ) { - /* 生旦玄互丹匀午云仄中及匹ㄠ蘸分仃伙□皿毛银丹 */ + /* 鐢熸棪鐜勪簰涓瑰寑鍗堜簯浠勪腑鍙婂尮銊犺樃鍒嗕粌浼欌枴鐨挎瘺閾朵腹 */ while( 1 ) { int selected; int enemyindex; if( fd == -1 ) break; selected = atoi( data)-1; - /* 躲卅index井 */ + /* 韬插崊index浜 */ if( !CHAR_CHECKINDEX( CONNECT_getDuelcharaindex(fd,selected)) ) { break; } - /* 爵 井升丹井 */ + /* 鐖 浜曞崌涓逛簳 */ if( CHAR_getWorkInt( CONNECT_getDuelcharaindex(fd,selected), CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE) { break; } - /* duel第井 */ + /* duel绗簳 */ if( !CHAR_getFlg( CONNECT_getDuelcharaindex(fd,selected), CHAR_ISDUEL)) { break; } - /* ㄠ汹动 卞中月井(它奴件玉它匹 中宁歹六仄化月棉卞 仃月啃) */ + /* 銊犳惫鍔 鍗炰腑鏈堜簳(瀹冨ゴ浠剁帀瀹冨尮 涓畞姝瑰叚浠勫寲鏈堟鍗 浠冩湀鍟) */ if(NPC_Util_CharDistance( charaindex, CONNECT_getDuelcharaindex(fd,selected) ) > 1) { break; } - // 及蟆及平乓仿及奶件犯永弁旦 + // 鍙婅焼鍙婂钩涔撲豢鍙婂ザ浠剁姱姘稿紒鏃 enemyindex = CONNECT_getDuelcharaindex( fd,selected); print("\nenemyindex=%d\n",enemyindex); - // 锹澎互褪卅日公及引引巨件市它件玄今六月互 - // 阂间卅日褪毛裟氏匹仁月 + // 閿规編浜掕お鍗呮棩鍏強寮曞紩宸ㄤ欢甯傚畠浠剁巹浠婂叚鏈堜簰 + // 闃傞棿鍗呮棩瑜瘺瑁熸皬鍖逛粊鏈 if( CHAR_getWorkInt( enemyindex, CHAR_WORKPARTYMODE ) == CHAR_PARTY_CLIENT ) { enemyindex = CHAR_getWorkInt( enemyindex, CHAR_WORKPARTYINDEX1 ); - // 卅兮井褪互中卅中 + // 鍗呭叜浜曡お浜掍腑鍗呬腑 if( enemyindex < 0 ){ break; } } - /* 锹澎互皿伊奶乩□匹卅中仪手丐月 */ + /* 閿规編浜掔毧浼婂ザ涔┾枴鍖瑰崊涓华鎵嬩笎鏈 */ if( CHAR_getInt( enemyindex, CHAR_WHICHTYPE) != CHAR_TYPEPLAYER){ break; } ret = BATTLE_CreateVsPlayer( charaindex, enemyindex ); if( ret != 0 ){ CHAR_talkToCli( charaindex, -1, - "遭遇失败!", CHAR_COLORYELLOW); + "閬亣澶辫触锛", CHAR_COLORYELLOW); ret = FALSE; } else { @@ -6252,7 +6252,7 @@ void CHAR_JoinDuel_WindowResult( int charaindex, int select, char *data) } } if( ret == FALSE ) { - /* 瑛绊霜耨 */ + /* 鐟涚粖闇滆 */ if( fd != -1 ) { lssproto_EN_send( fd, FALSE, 0 ); } @@ -6296,12 +6296,12 @@ void CHAR_JoinParty_WindowResult( int charaindex , int select, char *data) { int ret = FALSE; int fd = getfdFromCharaIndex( charaindex); - /* 手丹域蘸民尼永弁允月 */ + /* 鎵嬩腹鍩熻樃姘戝凹姘稿紒鍏佹湀 */ if( select != WINDOW_BUTTONTYPE_CANCEL && - /* 愤坌互由□ 奴赚氏匹凶日蛲 */ + /* 鎰ゅ潓浜掔敱鈻 濂磋禋姘忓尮鍑舵棩铔 */ CHAR_getWorkInt( charaindex, CHAR_WORKPARTYMODE) == CHAR_PARTY_NONE ) { - /* 生旦玄互丹匀午云仄中及匹ㄠ蘸分仃伙□皿毛银丹 */ + /* 鐢熸棪鐜勪簰涓瑰寑鍗堜簯浠勪腑鍙婂尮銊犺樃鍒嗕粌浼欌枴鐨挎瘺閾朵腹 */ while( 1 ) { int parray; int selected; @@ -6309,15 +6309,15 @@ void CHAR_JoinParty_WindowResult( int charaindex , int select, char *data) if( fd == -1 ) break; selected = atoi( data)-1; - /* 躲卅index井 - * (褐邰“它奴件玉它匹 中宁歹六仄化月棉卞 - * 躲卅index卞卅月第 岭互丐月) + /* 韬插崊index浜 + * (瑜愰偘鈥滃畠濂翠欢鐜夊畠鍖 涓畞姝瑰叚浠勫寲鏈堟鍗 + * 韬插崊index鍗炲崊鏈堢 宀簰涓愭湀) */ if( !CHAR_CHECKINDEX( CONNECT_getJoinpartycharaindex(fd,selected))) { break; } - /* 褪互中凶日娄匀舰曰请允 */ + /* 瑜簰涓嚩鏃ュ▌鍖鑸版洶璇峰厑 */ if( CHAR_getWorkInt( CONNECT_getJoinpartycharaindex( fd,selected), CHAR_WORKPARTYMODE) == CHAR_PARTY_NONE ) @@ -6332,35 +6332,35 @@ void CHAR_JoinParty_WindowResult( int charaindex , int select, char *data) break; } } - /* ㄠ汹动 卞中月井(它奴件玉它匹 中宁歹六仄化月棉卞 仃月啃) */ + /* 銊犳惫鍔 鍗炰腑鏈堜簳(瀹冨ゴ浠剁帀瀹冨尮 涓畞姝瑰叚浠勫寲鏈堟鍗 浠冩湀鍟) */ if( NPC_Util_CharDistance( charaindex, toindex ) > 1) { break; } - /* 爵 反分户 */ + /* 鐖 鍙嶅垎鎴 */ if( CHAR_getWorkInt( toindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE) { break; } - /* 醮棉袱第乒□玉井 */ + /* 閱琚辩涔掆枴鐜変簳 */ if( !CHAR_getFlg( toindex, CHAR_ISPARTY)) { break; } - /* 锹澎由□ 奴及谛醒反 井" */ + /* 閿规編鐢扁枴 濂村強璋涢啋鍙 浜曪紓 */ parray = CHAR_getEmptyPartyArray( toindex) ; if( parray == -1 ) break; - /* 由□ 奴卞 日六月 */ + /* 鐢扁枴 濂村崬 鏃ュ叚鏈 */ CHAR_JoinParty_Main( charaindex, toindex); ret = TRUE; break; } } if( ret == FALSE ) { - CHAR_talkToCli( charaindex, -1, "无法加入团队。", + CHAR_talkToCli( charaindex, -1, "鏃犳硶鍔犲叆鍥㈤槦銆", CHAR_COLORYELLOW); } - /* 瑛绊霜耨 */ + /* 鐟涚粖闇滆 */ if( fd != -1 ) { lssproto_PR_send( fd, 1, ret); } @@ -6369,29 +6369,29 @@ void CHAR_JoinBattleWatch_WindowResult( int charaindex, int select, char *data) { int ret = FALSE; int fd = getfdFromCharaIndex( charaindex); - /* 手丹域蘸民尼永弁允月 */ + /* 鎵嬩腹鍩熻樃姘戝凹姘稿紒鍏佹湀 */ if( select != WINDOW_BUTTONTYPE_CANCEL ) { - /* 生旦玄互丹匀午云仄中及匹ㄠ蘸分仃伙□皿毛银丹 */ + /* 鐢熸棪鐜勪簰涓瑰寑鍗堜簯浠勪腑鍙婂尮銊犺樃鍒嗕粌浼欌枴鐨挎瘺閾朵腹 */ while( 1 ) { int selected; if( fd == -1 ) break; selected = atoi( data)-1; - /* 躲卅index井 - * (褐邰“它奴件玉它匹 中宁歹六仄化月棉卞 - * 躲卅index卞卅月第 岭互丐月) + /* 韬插崊index浜 + * (瑜愰偘鈥滃畠濂翠欢鐜夊畠鍖 涓畞姝瑰叚浠勫寲鏈堟鍗 + * 韬插崊index鍗炲崊鏈堢 宀簰涓愭湀) */ if( !CHAR_CHECKINDEX( CONNECT_getBattlecharaindex(fd,selected))) { break; } - /* 爵 井升丹井 */ + /* 鐖 浜曞崌涓逛簳 */ if( CHAR_getWorkInt( CONNECT_getBattlecharaindex(fd,selected), CHAR_WORKBATTLEMODE) == BATTLE_CHARMODE_NONE) { break; } - /* ㄠ汹动 卞中月井(它奴件玉它匹 中宁歹六仄化月棉卞 仃月啃) */ + /* 銊犳惫鍔 鍗炰腑鏈堜簳(瀹冨ゴ浠剁帀瀹冨尮 涓畞姝瑰叚浠勫寲鏈堟鍗 浠冩湀鍟) */ if(NPC_Util_CharDistance( charaindex, CONNECT_getBattlecharaindex( fd,selected) ) @@ -6399,12 +6399,12 @@ void CHAR_JoinBattleWatch_WindowResult( int charaindex, int select, char *data) { break; } - /* 巨件玄伉□今六月 */ + /* 宸ㄤ欢鐜勪級鈻′粖鍏湀 */ if( BATTLE_WatchEntry( charaindex, CONNECT_getBattlecharaindex(fd,selected) )) { - CHAR_talkToCli( charaindex, -1, "无法观战。", + CHAR_talkToCli( charaindex, -1, "鏃犳硶瑙傛垬銆", CHAR_COLORYELLOW); } else { @@ -6415,7 +6415,7 @@ void CHAR_JoinBattleWatch_WindowResult( int charaindex, int select, char *data) } } if( ret == FALSE ) { - /* 瑛绊霜耨 */ + /* 鐟涚粖闇滆 */ if( fd != -1 ) { lssproto_EN_send( fd, FALSE, 0 ); } @@ -6472,12 +6472,12 @@ void CHAR_processWindow(int charaindex, int seqno, int select, else if( seqno == CHAR_WINDOWTYPE_NULL_CHECK ){ int value=atoi(data); if(value<0){ - CHAR_talkToCli( charaindex, -1, "支票面值不能小于零,如有再犯,装清空你身上所有积分!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "鏀エ闈㈠间笉鑳藉皬浜庨浂,濡傛湁鍐嶇姱,瑁呮竻绌轰綘韬笂鎵鏈夌Н鍒!", CHAR_COLORYELLOW ); return; } if(CHAR_getInt( charaindex , CHAR_AMPOINT)= CHAR_TYPELUANPC) @@ -6742,7 +6742,7 @@ static void CHAR_setMyPosition_sendData( int charaindex,int prev_x, int prev_y, != BATTLE_CHARMODE_NONE ) #endif { - /* 棋爵CA */ + /* 妫嬬埖CA */ if( CHAR_getWorkInt( c_index, CHAR_WORKBATTLEWATCH) == TRUE ) { if( CHAR_makeCAOPT1String( CurrentObjCollection[i], cabuf, sizeof( cabuf), @@ -6761,7 +6761,7 @@ static void CHAR_setMyPosition_sendData( int charaindex,int prev_x, int prev_y, CHAR_WORKBATTLEINDEX)].Side[ CHAR_getWorkInt( c_index, CHAR_WORKBATTLESIDE)].flg & BSIDE_FLG_HELP_OK) ? TRUE:FALSE; - /* HelpNo = 1 反移 */ + /* HelpNo = 1 鍙嶇Щ */ if( CHAR_makeCAOPT3String( CurrentObjCollection[i], cabuf, sizeof( cabuf), CHAR_ACTBATTLE, battleno,sideno,helpno @@ -6771,7 +6771,7 @@ static void CHAR_setMyPosition_sendData( int charaindex,int prev_x, int prev_y, } } } - /* 苇尹凶平乓仿互窒井及失弁扑亦件毛仄化中木壬霜月[ */ + /* 鑻囧肮鍑跺钩涔撲豢浜掔獟浜曞強澶卞紒鎵戜害浠舵瘺浠勫寲涓湪澹湝鏈堬蓟 */ if( ( CHAR_getInt( c_index, CHAR_WHICHTYPE ) == CHAR_TYPEPLAYER || CHAR_getInt( c_index, CHAR_WHICHTYPE ) == CHAR_TYPEPET ) && CHAR_getWorkInt( c_index, CHAR_WORKACTION ) != -1 ) @@ -6790,13 +6790,13 @@ static void CHAR_setMyPosition_sendData( int charaindex,int prev_x, int prev_y, lssproto_C_send( fd, c_msg); } - /* 愤坌及CD综岳 */ + /* 鎰ゅ潓鍙奀D缁煎渤 */ cnv10to62( objindex,cd_msg, sizeof(cd_msg)); for( i = 0 ; i < prevcnt; i ++ ) { int findflg = FALSE; - /* 蟆及匏 卞中月左皮斥尼弁玄匹]蜇箕及甄 卞中卅中 - * 左皮斥尼弁玄卅日壅允屯五左皮斥尼弁玄分 + /* 锜嗗強鍖 鍗炰腑鏈堝乏鐨枼灏煎紒鐜勫尮锛借渿绠曞強鐢 鍗炰腑鍗呬腑 + * 宸︾毊鏂ュ凹寮佺巹鍗呮棩澹呭厑灞簲宸︾毊鏂ュ凹寮佺巹鍒 */ for( j = 0; j < curcnt; j ++ ) { if( PrevObjCollection[i] == CurrentObjCollection[j] ) { @@ -6808,7 +6808,7 @@ static void CHAR_setMyPosition_sendData( int charaindex,int prev_x, int prev_y, cnv10to62( PrevObjCollection[i], buf, sizeof( buf)); CONNECT_appendCDbuf( fd, buf, strlen( buf)); - /* 锹澎卞手 霜月 */ + /* 閿规編鍗炴墜 闇滄湀 */ if( OBJECT_getType( PrevObjCollection[i]) == OBJTYPE_CHARA ) { int tocharaindex = OBJECT_getIndex( PrevObjCollection[i]); if( CHAR_getInt( tocharaindex, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER) { @@ -7047,7 +7047,7 @@ static char *CHAR_make_P_StatusString( int charaindex, unsigned int indextable ) } } if( !found) { - print( "找不到指定的参数[%d]\n",indextable); + print( "鎵句笉鍒版寚瀹氱殑鍙傛暟[%d]\n",indextable); }else { strcpysafe( &CHAR_P_statusSendBuffer[ strlength], sizeof( CHAR_P_statusSendBuffer) - strlength, @@ -7157,7 +7157,7 @@ static char *CHAR_make_P_StatusString_Point( int charaindex, unsigned int indext } } if( !found) { - print( "找不到指定的参数[%d]\n",indextable); + print( "鎵句笉鍒版寚瀹氱殑鍙傛暟[%d]\n",indextable); }else { strcpysafe( &CHAR_P_statusSendBuffer[ strlength], sizeof( CHAR_P_statusSendBuffer) - strlength, @@ -7266,7 +7266,7 @@ static char *CHAR_make_P_StatusString_Fame( int charaindex, unsigned int indexta } } if( !found) { - print( "找不到指定的参数[%d]\n",indextable); + print( "鎵句笉鍒版寚瀹氱殑鍙傛暟[%d]\n",indextable); }else { strcpysafe( &CHAR_P_statusSendBuffer[ strlength], sizeof( CHAR_P_statusSendBuffer) - strlength, @@ -7376,7 +7376,7 @@ static char *CHAR_make_P_StatusString_AMPOINT( int charaindex, unsigned int inde } } if( !found) { - print( "找不到指定的参数[%d]\n",indextable); + print( "鎵句笉鍒版寚瀹氱殑鍙傛暟[%d]\n",indextable); }else { strcpysafe( &CHAR_P_statusSendBuffer[ strlength], sizeof( CHAR_P_statusSendBuffer) - strlength, @@ -7482,7 +7482,7 @@ static char *CHAR_make_P_StatusString_VIGOR( int charaindex, unsigned int indext } } if( !found) { - print( "找不到指定的参数[%d]\n",indextable); + print( "鎵句笉鍒版寚瀹氱殑鍙傛暟[%d]\n",indextable); }else { strcpysafe( &CHAR_P_statusSendBuffer[ strlength], sizeof( CHAR_P_statusSendBuffer) - strlength, @@ -7633,10 +7633,10 @@ BOOL CHAR_send_P_StatusString_VIGOR( int charaindex, unsigned int indextable ) #endif static char CHAR_N_statusSendBuffer[STRINGBUFSIZ]; /*------------------------------------------------------------ - * 弁仿奶失件玄卞霜月 { 及 侬 毛综岳允月[ - * 娄醒 - * charaindex int 平乓仿奶件犯弁永旦 - * indextable int P 毛霜月由仿丢□正及螂宁 [ + * 寮佷豢濂跺け浠剁巹鍗為湝鏈 锝 鍙 渚 姣涚患宀冲厑鏈堬蓟 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱寮佹案鏃 + * indextable int P 姣涢湝鏈堢敱浠夸涪鈻℃鍙婅瀭瀹 锛 *------------------------------------------------------------*/ static char *CHAR_make_N_StatusString( int charaindex, int num, unsigned int indextable ) { @@ -7659,17 +7659,17 @@ static char *CHAR_make_N_StatusString( int charaindex, int num, unsigned int ind }; - /* 醮棉旦 □正旦犯□正 */ - /* 凝民尼永弁 */ + /* 閱鏃 鈻℃鏃︾姱鈻℃ */ + /* 鍑濇皯灏兼案寮 */ if( num < 0 || num >= CHAR_PARTYMAX ){ - print( "朋友模式失败 (%c)%d \n", num, num ); + print( "鏈嬪弸妯″紡澶辫触 (%c)%d \n", num, num ); return "\0"; } - /* 醮棉及奶件犯永弁旦毛潸 */ + /* 閱鍙婂ザ浠剁姱姘稿紒鏃︽瘺娼 */ nindex = CHAR_getPartyIndex( charaindex, num); if( nindex == -1 ){ - /* 鬼支仃升 snprintf 允月 */ + /* 楝兼敮浠冨崌 snprintf 鍏佹湀 */ snprintf( CHAR_N_statusSendBuffer,sizeof(CHAR_N_statusSendBuffer), "N%d|0|", num ); return CHAR_N_statusSendBuffer; @@ -7679,16 +7679,16 @@ static char *CHAR_make_N_StatusString( int charaindex, int num, unsigned int ind "N%d|%s|", num,cnv10to62( indextable, buf,sizeof(buf))); strlength = strlen( CHAR_N_statusSendBuffer ); - /* indextable及 匹 匀化中月申永玄毛赐 卞譬屯月 */ + /* indextable鍙 鍖 鍖鍖栦腑鏈堢敵姘哥巹姣涜祼 鍗炶灞湀 */ for( i = 1; i < sizeof( int) * 8; i ++ ){ if( indextable & (1 << i) ) { char tmp[256]; BOOL found = FALSE; - /* 匀化中月申永玄午]chk卞甲永玄允月井譬屯月 */ + /* 鍖鍖栦腑鏈堢敵姘哥巹鍗堬冀chk鍗炵敳姘哥巹鍏佹湀浜曡灞湀 */ for( j = 0; j < arraysizeof( chk); j ++ ) { if( chk[j].kind == 1 << i ) { - /* 域谯仄凶及匹袄毛潸 允月 */ - /* 醒袄烟及犯□正 */ + /* 鍩熻隘浠勫嚩鍙婂尮琚勬瘺娼 鍏佹湀 */ + /* 閱掕鐑熷強鐘枴姝 */ if( chk[j].gettype == 0 ) { ret = CHAR_getInt( nindex,chk[j].intdataindex); snprintf( tmp, sizeof( tmp), "%d|", ret); @@ -7706,7 +7706,7 @@ static char *CHAR_make_N_StatusString( int charaindex, int num, unsigned int ind if( ret < 0) ret = 0; snprintf( tmp, sizeof( tmp), "%d|", ret); } - /* 侬 烟及犯□正 */ + /* 渚 鐑熷強鐘枴姝 */ else if( chk[j].gettype == 2 ) { char escapebuffer[128]; char *a = CHAR_getChar( nindex, chk[j].intdataindex); @@ -7721,12 +7721,12 @@ static char *CHAR_make_N_StatusString( int charaindex, int num, unsigned int ind break; } } - /* 职及正奶皿及犯□正井手仄木卅中 */ + /* 鑱屽強姝eザ鐨垮強鐘枴姝d簳鎵嬩粍鏈ㄥ崊涓 */ if( !found) { - /* 仇仇井日反ㄠ勾ㄠ勾 */ + /* 浠囦粐浜曟棩鍙嶃劆鍕俱劆鍕 */ } if( !found) { - print( "找不到指定的参数[%d]\n",indextable); + print( "鎵句笉鍒版寚瀹氱殑鍙傛暟[%d]\n",indextable); } else { strcpysafe( &CHAR_N_statusSendBuffer[ strlength], @@ -7743,14 +7743,14 @@ static char *CHAR_make_N_StatusString( int charaindex, int num, unsigned int ind return CHAR_N_statusSendBuffer; } /*------------------------------------------------------------ - * S P 旦 □正旦毛霜月[民尼永弁允月及匹}晓匹反民尼永弁仄卅仁化方中[ - * 娄醒 - * charaindex int 平乓仿奶件犯弁永旦 - * num int 醮棉 寞 - * indextable int P 毛霜月由仿丢□正及螂宁 [ - * 忒曰袄 - * 霜匀凶[TRUE(1) - * 霜木卅井匀凶[FALSE(0) + * S P 鏃 鈻℃鏃︽瘺闇滄湀锛绘皯灏兼案寮佸厑鏈堝強鍖癸綕鏅撳尮鍙嶆皯灏兼案寮佷粍鍗呬粊鍖栨柟涓蓟 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱寮佹案鏃 + * num int 閱 瀵 + * indextable int P 姣涢湝鏈堢敱浠夸涪鈻℃鍙婅瀭瀹 锛 + * 蹇掓洶琚 + * 闇滃寑鍑讹蓟TRUE(1) + * 闇滄湪鍗呬簳鍖鍑讹蓟FALSE(0) *------------------------------------------------------------*/ BOOL CHAR_send_N_StatusString( int charaindex, int num, unsigned int indextable ) { @@ -7809,15 +7809,15 @@ static char *CHAR_make_K_StatusString( int charaindex, int num, unsigned int ind { CHAR_K_STRING_USERPETNAME, CHAR_USERPETNAME, 2 }, }; - /* 凝民尼永弁 */ + /* 鍑濇皯灏兼案寮 */ if( num < 0 || num >= CHAR_MAXPETHAVE ){ - print( "宠物模式失败 (%c)%d \n", num, num ); + print( "瀹犵墿妯″紡澶辫触 (%c)%d \n", num, num ); return "\0"; } - /* 矢永玄及奶件犯永弁旦毛潸 */ + /* 鐭㈡案鐜勫強濂朵欢鐘案寮佹棪姣涙礁 */ pindex = CHAR_getCharPet( charaindex, num ); if( pindex == -1 ){ - /* 鬼支仃升 snprintf 允月 */ + /* 楝兼敮浠冨崌 snprintf 鍏佹湀 */ snprintf(CHAR_K_statusSendBuffer,sizeof(CHAR_K_statusSendBuffer), "K%d|0|", num ); return CHAR_K_statusSendBuffer; @@ -7850,7 +7850,7 @@ static char *CHAR_make_K_StatusString( int charaindex, int num, unsigned int ind if( ret < 0) ret = 0; snprintf( tmp, sizeof( tmp), "%d|", ret); } - /* 侬 烟及犯□正 */ + /* 渚 鐑熷強鐘枴姝 */ else if( chk[j].gettype == 2 ) { char escapebuffer[128]; char *a = CHAR_getChar( pindex, chk[j].intdataindex); @@ -7891,7 +7891,7 @@ static char *CHAR_make_K_StatusString( int charaindex, int num, unsigned int ind } } if( !found) { - print( "找不到指定的参数[%d]\n",indextable); + print( "鎵句笉鍒版寚瀹氱殑鍙傛暟[%d]\n",indextable); }else { strcpysafe( &CHAR_K_statusSendBuffer[ strlength], sizeof( CHAR_K_statusSendBuffer) - strlength, @@ -7907,13 +7907,13 @@ static char *CHAR_make_K_StatusString( int charaindex, int num, unsigned int ind return CHAR_K_statusSendBuffer; } /*------------------------------------------------------------ - * S K 旦 □正旦毛霜月[民尼永弁允月及匹}晓匹反民尼永弁仄卅仁化方中[ - * 娄醒 - * charaindex int 平乓仿奶件犯弁永旦 - * indextable int P 毛霜月由仿丢□正及螂宁 [ - * 忒曰袄 - * 霜匀凶[TRUE(1) - * 霜木卅井匀凶[FALSE(0) + * S K 鏃 鈻℃鏃︽瘺闇滄湀锛绘皯灏兼案寮佸厑鏈堝強鍖癸綕鏅撳尮鍙嶆皯灏兼案寮佷粍鍗呬粊鍖栨柟涓蓟 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱寮佹案鏃 + * indextable int P 姣涢湝鏈堢敱浠夸涪鈻℃鍙婅瀭瀹 锛 + * 蹇掓洶琚 + * 闇滃寑鍑讹蓟TRUE(1) + * 闇滄湪鍗呬簳鍖鍑讹蓟FALSE(0) *------------------------------------------------------------*/ BOOL CHAR_send_K_StatusString( int charaindex, int num, unsigned int indextable ) { @@ -7942,19 +7942,19 @@ BOOL CHAR_send_K_StatusString( int charaindex, int num, unsigned int indextable //------------------------------------------------------------ -// 皿伊奶乩□及 毛笛遥 +// 鐨夸紛濂朵供鈻″強 姣涚瑳閬 //------------------------------------------------------------ void CHAR_AddCharm( int charaindex, int iValue ) { int iWork; iWork = CHAR_getInt( charaindex, CHAR_CHARM ) + iValue; - iWork = max( 0, iWork ); // 凝ㄟ - iWork = min( 100, iWork ); // ㄠㄟㄟ + iWork = max( 0, iWork ); // 鍑濄劅 + iWork = min( 100, iWork ); // 銊犮劅銊 CHAR_setInt( charaindex, CHAR_CHARM, iWork ); } //------------------------------------------------------------ -// 矢永玄及镝擦蘸 祭袄毛笛遥允月[ +// 鐭㈡案鐜勫強闀濇摝铇 绁姣涚瑳閬ュ厑鏈堬蓟 //------------------------------------------------------------ void CHAR_PetAddVariableAi( int petindex, int iValue ) { @@ -7967,7 +7967,7 @@ void CHAR_PetAddVariableAi( int petindex, int iValue ) } //------------------------------------------------------------ -// 犯□正矛□旦卞瓒 允月平□ 蟆 毛综岳允月[ +// 鐘枴姝g煕鈻℃棪鍗炵搾 鍏佹湀骞斥枴 锜 姣涚患宀冲厑鏈堬蓟 //------------------------------------------------------------ int CHAR_makeDBKey( int charaindex, char *pszBuffer, int size ){ @@ -7975,12 +7975,12 @@ int CHAR_makeDBKey( int charaindex, char *pszBuffer, int size ){ char buff[512]; char escapebuf[1024]; - pszBuffer[0] = 0; // 赓渝祭 + pszBuffer[0] = 0; // 璧撴笣绁 cdkey = CHAR_getChar( charaindex, CHAR_CDKEY); - if( cdkey == "\0" )return FALSE; // 瓒 匹五卅中 + if( cdkey == "\0" )return FALSE; // 鐡 鍖逛簲鍗呬腑 if( CHAR_CHECKINDEX( charaindex ) == FALSE )return FALSE; - // 平□反 cdkey_ 蟆 + // 骞斥枴鍙 cdkey_ 锜 snprintf( buff, sizeof(buff), "%s_%s", cdkey, CHAR_getChar( charaindex, CHAR_NAME ) ); makeEscapeString( buff, escapebuf, sizeof(escapebuf)); @@ -7992,9 +7992,9 @@ int CHAR_makeDBKey( int charaindex, char *pszBuffer, int size ){ //------------------------------------------------------------ // -// 犯□正矛□旦及嫩 毛凳蕙 +// 鐘枴姝g煕鈻℃棪鍙婂 姣涘嚦钑 // -// DuelPoint 及 DBUpdateEntry毛霜月 +// DuelPoint 鍙 DBUpdateEntry姣涢湝鏈 //------------------------------------------------------------ BOOL CHAR_send_DpDBUpdate( int charaindex ) { @@ -8008,7 +8008,7 @@ BOOL CHAR_send_DpDBUpdate( int charaindex ) if( fd != -1 ) { char info[512]; //char escapebuff[1024]; - /* "等级|几战|几胜|几败|几连胜|最高连胜数" */ + /* "绛夌骇锝滃嚑鎴橈綔鍑犺儨锝滃嚑璐ワ綔鍑犺繛鑳滐綔鏈楂樿繛鑳滄暟" */ snprintf( info, sizeof( info), "%d,%d,%d,%d,%d,%d", CHAR_getInt( charaindex, CHAR_LV), @@ -8046,7 +8046,7 @@ char *CHAR_getUseName( int charaindex ) char *CHAR_getUseID( int charaindex ) { char *pName; - // 矢永玄分匀凶日白伉□生□丞卞允月 + // 鐭㈡案鐜勫垎鍖鍑舵棩鐧戒級鈻$敓鈻′笧鍗炲厑鏈 if( CHAR_getInt( charaindex, CHAR_WHICHTYPE ) == CHAR_TYPEPET ){ pName = "NO_USER"; }else{ @@ -8095,11 +8095,11 @@ void CHAR_sendBattleWatch( int objindex, int onoff) CHAR_sendWatchEvent( objindex,CHAR_ACTBATTLEWATCH,opt,1,TRUE); } /*------------------------------------------------------------ - * 隙烂今木凶 毛莫曰及谛卞矢永玄丢□伙及梢请毛允月[ - * 娄醒 - * charaindex int chara 匹及奶件犯弁永旦 - * 忒曰袄 - * 卅仄 + * 闅欑儌浠婃湪鍑 姣涜帿鏇板強璋涘崬鐭㈡案鐜勪涪鈻′紮鍙婃ⅱ璇锋瘺鍏佹湀锛 + * 濞勯啋 + * charaindex int chara 鍖瑰強濂朵欢鐘紒姘告棪 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_sendPMEToArroundCharacterFLXY( int petindex, int fl, int x, int y, int dir, int flg, int no ) @@ -8143,11 +8143,11 @@ void CHAR_sendPMEToArroundCharacterFLXY( int petindex, int fl, int x, int y, } } /*------------------------------------------------------------ - * charaindex 匹隙烂今木凶 毛莫曰及谛卞矢永玄丢□伙及梢请毛允月[ - * 娄醒 - * charaindex int chara 匹及奶件犯弁永旦 - * 忒曰袄 - * 卅仄 + * charaindex 鍖归殭鐑備粖鏈ㄥ嚩 姣涜帿鏇板強璋涘崬鐭㈡案鐜勪涪鈻′紮鍙婃ⅱ璇锋瘺鍏佹湀锛 + * 濞勯啋 + * charaindex int chara 鍖瑰強濂朵欢鐘紒姘告棪 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_sendPMEToArroundCharacter( int charaindex, int petindex, int flg, int no ) { @@ -8167,16 +8167,16 @@ void CHAR_sendPMEToArroundCharacter( int charaindex, int petindex, int flg, int fl = CHAR_getInt( charaindex,CHAR_FLOOR ); dir = CHAR_getInt( charaindex, CHAR_DIR); - /* 仁 轾潸 */ + /* 浠 杞炬礁 */ for( i = 0 ; i < 9 ; i ++ ){ int x = CHAR_getInt( charaindex, CHAR_X) + dirx[i]; int y = CHAR_getInt( charaindex, CHAR_Y) + diry[i]; - /* 矢永玄毛 仃月桦赭井譬屯月 */ + /* 鐭㈡案鐜勬瘺 浠冩湀妗﹁淡浜曡灞湀 */ if( PET_isPutPoint( fl, x, y ) == TRUE ) { break; } } - /* 卅仃木壬箫葭 */ + /* 鍗呬粌鏈ㄥ,绠懎 */ if( i == 9 ) i = 1; x = CHAR_getInt(charaindex,CHAR_X)+dirx[i]; @@ -8186,12 +8186,12 @@ void CHAR_sendPMEToArroundCharacter( int charaindex, int petindex, int flg, int fl, x, y, dir, flg, no); } /*------------------------------------------------------------ - * SE毛 日允[ - * 耨葭毛 艘卞]苇尹月 区坌霜耨允月 - * 娄醒 - * fl,x,y 耨葭及甄 - * senumber 及 寞[sndcnf.h毛辅寰及仇午[ - * sw 日允井鞅户月井 0 : 鞅户月 1 : 日允 + * SE姣 鏃ュ厑锛 + * 鑰ㄨ懎姣 鑹樺崬锛借媷灏规湀 鍖哄潓闇滆ㄥ厑鏈 + * 濞勯啋 + * fl,x,y 鑰ㄨ懎鍙婄攧 + * senumber 鍙 瀵烇蓟sndcnf.h姣涜緟瀵板強浠囧崍锛 + * sw 鏃ュ厑浜曢瀰鎴锋湀浜 0 : 闉呮埛鏈 1 : 鏃ュ厑 ------------------------------------------------------------*/ void CHAR_sendSEoArroundCharacter( int fl, int x, int y, int senumber, int sw ) { @@ -8222,23 +8222,23 @@ void CHAR_sendSEoArroundCharacter( int fl, int x, int y, int senumber, int sw ) } } } -/*====================梢请涩烂====================*/ +/*====================姊㈣娑╃儌====================*/ -#ifndef _SEND_EFFECT // WON ADD AC送下雪、下雨等特效 +#ifndef _SEND_EFFECT // WON ADD AC閫佷笅闆佷笅闆ㄧ瓑鐗规晥 #define CHAR_EFFECT_SETTINGBUFFER 256 typedef struct tagCHAR_effectsetting { - int floor; // 白夫失 - int effect; // 梢请 寞 - int level; // 梢请及伊矛伙[ 蜇及雄今[ - int sendflg; // 憎巨白尼弁玄毛霜匀凶井升丹井[ - char month[CHAR_EFFECT_SETTINGBUFFER]; // 垫允月畸 - char day[CHAR_EFFECT_SETTINGBUFFER]; // 垫允月 - char hour[CHAR_EFFECT_SETTINGBUFFER]; // 垫允月凛棉 - char min[CHAR_EFFECT_SETTINGBUFFER]; // 垫允月坌 - char expire[CHAR_EFFECT_SETTINGBUFFER]; // 垫仄化中月赢今[( + int floor; // 鐧藉か澶 + int effect; // 姊㈣ 瀵 + int level; // 姊㈣鍙婁紛鐭涗紮锛 铚囧強闆勪粖锛 + int sendflg; // 鎲庡法鐧藉凹寮佺巹姣涢湝鍖鍑朵簳鍗囦腹浜曪蓟 + char month[CHAR_EFFECT_SETTINGBUFFER]; // 鍨厑鏈堢暩 + char day[CHAR_EFFECT_SETTINGBUFFER]; // 鍨厑鏈 + char hour[CHAR_EFFECT_SETTINGBUFFER]; // 鍨厑鏈堝嚊妫 + char min[CHAR_EFFECT_SETTINGBUFFER]; // 鍨厑鏈堝潓 + char expire[CHAR_EFFECT_SETTINGBUFFER]; // 鍨粍鍖栦腑鏈堣耽浠婏蓟( }CHAR_effectsetting; @@ -8250,12 +8250,12 @@ int CHAR_effectnum; /*------------------------------------------------------------ - * 梢请涩烂及赓渝祭毛允月[ - * 娄醒 - * filename char* 涩烂白央奶伙 - * 忒曰袄 - * 岳 TRUE(1) - * 撩 FALSE(0) + * 姊㈣娑╃儌鍙婅祿娓濈キ姣涘厑鏈堬蓟 + * 濞勯啋 + * filename char* 娑╃儌鐧藉ぎ濂朵紮 + * 蹇掓洶琚 + * 宀 TRUE(1) + * 鎾 FALSE(0) *------------------------------------------------------------*/ BOOL CHAR_initEffectSetting( char* filename ) { @@ -8273,7 +8273,7 @@ BOOL CHAR_initEffectSetting( char* filename ) CHAR_effectnum=0; - /* 引内 躲卅垫互窒垫丐月井升丹井譬屯月 */ + /* 寮曞唴 韬插崊鍨簰绐掑灚涓愭湀浜曞崌涓逛簳璀悲鏈 */ while( fgets( line, sizeof( line ), f ) ){ linenum ++; if( line[0] == '#' )continue; /* comment */ @@ -8297,7 +8297,7 @@ BOOL CHAR_initEffectSetting( char* filename ) fclose( f ); return FALSE; } - /* 赓渝祭 */ + /* 璧撴笣绁 */ { int i; for( i = 0; i < CHAR_effectnum; i ++ ) { @@ -8314,7 +8314,7 @@ BOOL CHAR_initEffectSetting( char* filename ) } } - /* 引凶 心 允 */ + /* 寮曞嚩 蹇 鍏 */ linenum = 0; while( fgets( line, sizeof( line ), f ) ){ linenum ++; @@ -8322,98 +8322,98 @@ BOOL CHAR_initEffectSetting( char* filename ) if( line[0] == '\n' )continue; /* none */ chomp( line ); - /* 垫毛帮溥允月 */ - /* 引内 tab 毛 " " 卞 五晶尹月 */ + /* 鍨瘺甯亥鍏佹湀 */ + /* 寮曞唴 tab 姣 " " 鍗 浜旀櫠灏规湀 */ replaceString( line, '\t' , ' ' ); - /* 粮仄凶 " " 毛夫午勾卞允月 */ + /* 绮粍鍑 " " 姣涘か鍗堝嬀鍗炲厑鏈 */ deleteSequentChar( line, " " ); - /* 仇仇引匹帮溥仄化}燮 互 旦矢□旦分匀凶日 */ - /* 引卅中 */ + /* 浠囦粐寮曞尮甯亥浠勫寲锝濈嚠 浜 鏃︾煝鈻℃棪鍒嗗寑鍑舵棩 */ + /* 寮曞崊涓 */ if( line[0] == ' ' )continue; { char token[256]; int ret; - /* 夫午勾户及玄□弁件毛苇月 */ + /* 澶崍鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line," ",1,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件秩序错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢绉╁簭閿欒:%s 绗%d琛孿n",filename,linenum); continue; } CHAR_effect[effectreadlen].floor = atoi(token); - /* 2勾户及玄□弁件毛苇月 */ + /* 2鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line," ",2,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件秩序错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢绉╁簭閿欒:%s 绗%d琛孿n",filename,linenum); continue; } CHAR_effect[effectreadlen].effect = atoi( token ); - /* 3勾户及玄□弁件毛苇月 */ + /* 3鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line," ",3,token, sizeof(token)); if( ret ==FALSE){ - fprint("文件秩序错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢绉╁簭閿欒:%s 绗%d琛孿n",filename,linenum); continue; } CHAR_effect[effectreadlen].level = atoi( token ); - /* 4勾户及玄□弁件毛苇月 */ + /* 4鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line," ",4,token, sizeof(token)); if( ret ==FALSE){ - fprint("文件秩序错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢绉╁簭閿欒:%s 绗%d琛孿n",filename,linenum); continue; } strcpysafe( CHAR_effect[effectreadlen].month, sizeof( CHAR_effect[effectreadlen].month), token); - /* 5勾户及玄□弁件毛苇月 */ + /* 5鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line," ",5,token, sizeof(token)); if( ret ==FALSE){ - fprint("文件秩序错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢绉╁簭閿欒:%s 绗%d琛孿n",filename,linenum); continue; } strcpysafe( CHAR_effect[effectreadlen].day, sizeof( CHAR_effect[effectreadlen].day), token); - /* 6勾户及玄□弁件毛苇月 */ + /* 6鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line," ",6,token, sizeof(token)); if( ret ==FALSE){ - fprint("文件秩序错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢绉╁簭閿欒:%s 绗%d琛孿n",filename,linenum); continue; } strcpysafe( CHAR_effect[effectreadlen].hour, sizeof( CHAR_effect[effectreadlen].hour), token); - /* 7勾户及玄□弁件毛苇月 */ + /* 7鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line," ",7,token, sizeof(token)); if( ret ==FALSE){ - fprint("文件秩序错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢绉╁簭閿欒:%s 绗%d琛孿n",filename,linenum); continue; } strcpysafe( CHAR_effect[effectreadlen].min, sizeof( CHAR_effect[effectreadlen].min), token); - /* 8勾户及玄□弁件毛苇月 */ + /* 8鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line," ",8,token, sizeof(token)); if( ret ==FALSE){ - fprint("文件秩序错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢绉╁簭閿欒:%s 绗%d琛孿n",filename,linenum); continue; } strcpysafe( CHAR_effect[effectreadlen].expire, @@ -8427,7 +8427,7 @@ BOOL CHAR_initEffectSetting( char* filename ) CHAR_effectnum = effectreadlen; - print( "有效设置总数 %d...", CHAR_effectnum ); + print( "鏈夋晥璁剧疆鎬绘暟 %d...", CHAR_effectnum ); #ifdef DEBUG { @@ -8449,8 +8449,8 @@ BOOL CHAR_initEffectSetting( char* filename ) } //------------------------------------------------------------------------- -// 蜇箕凛对互]隙烂及椭瘀卞穴永民仄化中月井毛譬屯引允[ -// 宁匀化中木壬TRUE毛忒允[ +// 铚囩畷鍑涘浜掞冀闅欑儌鍙婃き鐦鍗炵┐姘告皯浠勫寲涓湀浜曟瘺璀悲寮曞厑锛 +// 瀹佸寑鍖栦腑鏈ㄥ,TRUE姣涘繏鍏侊蓟 //------------------------------------------------------------------------- static BOOL CHAR_checkEffectTime( int num) { @@ -8464,9 +8464,9 @@ static BOOL CHAR_checkEffectTime( int num) int ret; char token[256]; - // "*"反]蝈化毛隙允[ + // "*"鍙嶏冀铦堝寲姣涢殭鍏侊蓟 - // 畸互域谯仄化中月井 + // 鐣镐簰鍩熻隘浠勫寲涓湀浜 if( strcmp( CHAR_effect[num].month, "*" ) != 0 ) { BOOL flg = FALSE; for( i = 1; ; i ++) { @@ -8474,7 +8474,7 @@ static BOOL CHAR_checkEffectTime( int num) ",", i, token, sizeof( token)); if( ret == FALSE ) break; - // ㄠ勾匹手域谯仄化中木壬公木匹中中 + // 銊犲嬀鍖规墜鍩熻隘浠勫寲涓湪澹叕鏈ㄥ尮涓腑 if( t.tm_mon +1 == atoi( token)) { flg = TRUE; break; @@ -8483,7 +8483,7 @@ static BOOL CHAR_checkEffectTime( int num) if( !flg ) break; } - // 互域谯仄化中月井 + // 浜掑煙璋粍鍖栦腑鏈堜簳 if( strcmp( CHAR_effect[num].day, "*" ) != 0 ) { BOOL flg = FALSE; for( i = 1; ; i ++) { @@ -8491,7 +8491,7 @@ static BOOL CHAR_checkEffectTime( int num) ",", i, token, sizeof( token)); if( ret == FALSE ) break; - // ㄠ勾匹手域谯仄化中木壬公木匹中中 + // 銊犲嬀鍖规墜鍩熻隘浠勫寲涓湪澹叕鏈ㄥ尮涓腑 if( t.tm_mday == atoi( token)) { flg = TRUE; break; @@ -8499,7 +8499,7 @@ static BOOL CHAR_checkEffectTime( int num) } if( !flg ) break; } - // 凛棉互域谯仄化中月井 + // 鍑涙浜掑煙璋粍鍖栦腑鏈堜簳 if( strcmp( CHAR_effect[num].hour, "*" ) != 0 ) { BOOL flg = FALSE; for( i = 1; ; i ++) { @@ -8507,7 +8507,7 @@ static BOOL CHAR_checkEffectTime( int num) ",", i, token, sizeof( token)); if( ret == FALSE ) break; - // ㄠ勾匹手域谯仄化中木壬公木匹中中 + // 銊犲嬀鍖规墜鍩熻隘浠勫寲涓湪澹叕鏈ㄥ尮涓腑 if( t.tm_hour == atoi( token)) { flg = TRUE; break; @@ -8515,10 +8515,10 @@ static BOOL CHAR_checkEffectTime( int num) } if( !flg ) break; } - // 坌互域谯仄化中月井 - // 切斤匀午分仃 溃质 + // 鍧屼簰鍩熻隘浠勫寲涓湀浜 + // 鍒囨枻鍖鍗堝垎浠 婧冭川 if( strcmp( CHAR_effect[num].min, "*" ) != 0 ) { - // 渝棉互←卅日手丹OK + // 娓濇浜掆啇鍗呮棩鎵嬩腹OK if( strcmp( CHAR_effect[num].expire, "*" ) != 0 ) { BOOL flg = FALSE; for( i = 1; ; i ++) { @@ -8528,9 +8528,9 @@ static BOOL CHAR_checkEffectTime( int num) ",", i, token, sizeof( token)); if( ret == FALSE ) break; - // ㄠ勾匹手域谯仄化中木壬公木匹中中 + // 銊犲嬀鍖规墜鍩熻隘浠勫寲涓湪澹叕鏈ㄥ尮涓腑 - // 涩烂仄凶坌井日] 躲渝棉及 区卞 匀化中月井" + // 娑╃儌浠勫嚩鍧屼簳鏃ワ冀 韬叉笣妫夊強 鍖哄崬 鍖鍖栦腑鏈堜簳锛 tm_work = t; tm_work.tm_sec = 0; tm_work.tm_min = atoi( token); @@ -8544,7 +8544,7 @@ static BOOL CHAR_checkEffectTime( int num) if( !flg ) break; } } - // 坌互隙烂 仄分匀凶日手丹OK + // 鍧屼簰闅欑儌 浠勫垎鍖鍑舵棩鎵嬩腹OK returnflg = TRUE; break; @@ -8552,8 +8552,8 @@ static BOOL CHAR_checkEffectTime( int num) return returnflg; } //------------------------------------------------------------------------- -// 平乓仿弁正□及匏 午凛棉毛葭卞] -// 巨白尼弁玄毛霜月 邰互丐木壬霜月 +// 骞充箵浠垮紒姝b枴鍙婂審 鍗堝嚊妫夋瘺钁崬锛 +// 宸ㄧ櫧灏煎紒鐜勬瘺闇滄湀 閭颁簰涓愭湪澹湝鏈 //------------------------------------------------------------------------- void CHAR_checkEffect( int charaindex) { @@ -8561,16 +8561,16 @@ void CHAR_checkEffect( int charaindex) int fl = CHAR_getInt( charaindex, CHAR_FLOOR); int fd = getfdFromCharaIndex( charaindex); - // 巨白尼弁玄域绎壅允 + // 宸ㄧ櫧灏煎紒鐜勫煙缁庡鍏 lssproto_EF_send( fd, 0, 0, ""); CHAR_setWorkInt( charaindex, CHAR_WORKEFFECT, 0); for( i = 0; i < CHAR_effectnum; i ++){ - // 白夫失互域谯仄凶凛分仃 + // 鐧藉か澶变簰鍩熻隘浠勫嚩鍑涘垎浠 if( CHAR_effect[i].floor == fl) { - // 椭瘀毛譬屯引允[ + // 妞榾姣涜灞紩鍏侊蓟 if( CHAR_checkEffectTime( i)){ - // 巨白尼弁玄毛霜月 + // 宸ㄧ櫧灏煎紒鐜勬瘺闇滄湀 lssproto_EF_send( fd, CHAR_effect[i].effect, CHAR_effect[i].level, ""); if( CHAR_effect[i].level == 0 ) { CHAR_setWorkInt( charaindex, CHAR_WORKEFFECT, @@ -8751,7 +8751,7 @@ int storeCharaData( void ){ char outbuff[CHARDATASIZE]; Char* ch; - print("\n保存运行中的数据"); + print("\n淇濆瓨杩愯涓殑鏁版嵁"); pLtime = localtime( &NowTime.tv_sec ); @@ -8769,7 +8769,7 @@ int storeCharaData( void ){ print("."); strcpy( charId, CHAR_getChar( i, CHAR_CDKEY ) ); -// print("账号:%s", charId); +// print("璐﹀彿:%s", charId); hash = 0; for( j=0; j 1){ - // 检查别人有没有摆摊 + // 妫鏌ュ埆浜烘湁娌℃湁鎽嗘憡 for(i=0;i 0){ if(CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR) == 1){ - // 修改内容中设成未摆摊 + // 淇敼鍐呭涓鎴愭湭鎽嗘憡 CHAR_setWorkInt(charaindex,CHAR_WORKSTREETVENDOR,-1); CHAR_sendStreetVendorDataToCli(charaindex,charaindex); } - // 已在交易中但要改内容,关闭对方视窗 + // 宸插湪浜ゆ槗涓絾瑕佹敼鍐呭,鍏抽棴瀵规柟瑙嗙獥 else if(CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR) == 2){ int toindex = CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR_WHO); @@ -9208,9 +9208,9 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR,-1); CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR_WHO,-1); lssproto_STREET_VENDOR_send(getfdFromCharaIndex(toindex),"C|"); - CHAR_talkToCli(toindex,-1,"店家取消交易",CHAR_COLORYELLOW); + CHAR_talkToCli(toindex,-1,"搴楀鍙栨秷浜ゆ槗",CHAR_COLORYELLOW); CHAR_setWorkInt(charaindex,CHAR_WORKSTREETVENDOR_WHO,-1); - // 清除交易图示 + // 娓呴櫎浜ゆ槗鍥剧ず CHAR_send_P_StatusString(charaindex,CHAR_P_STRING_GOLD); CHAR_send_P_StatusString(toindex,CHAR_P_STRING_GOLD); CHAR_sendTradeEffect(charaindex,0); @@ -9219,60 +9219,60 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_setWorkInt(toindex,CHAR_LOOKSTREETTIME,0); #endif } - // 修改内容中,设成未摆摊 + // 淇敼鍐呭涓,璁炬垚鏈憜鎽 CHAR_setWorkInt(charaindex,CHAR_WORKSTREETVENDOR,-1); CHAR_sendStreetVendorDataToCli(charaindex,charaindex); } return; } - // 检查对方是否卖完 + // 妫鏌ュ鏂规槸鍚﹀崠瀹 for(j=0;j 0){ if(CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR) == 1){ - // 修改内容中设成未摆摊 + // 淇敼鍐呭涓鎴愭湭鎽嗘憡 CHAR_setWorkInt(charaindex,CHAR_WORKSTREETVENDOR,-1); CHAR_sendStreetVendorDataToCli(charaindex,charaindex); } - // 已在交易中但要改内容,关闭对方视窗 + // 宸插湪浜ゆ槗涓絾瑕佹敼鍐呭,鍏抽棴瀵规柟瑙嗙獥 else if(CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR) == 2){ int toindex = CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR_WHO); @@ -9300,9 +9300,9 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR,-1); CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR_WHO,-1); lssproto_STREET_VENDOR_send(getfdFromCharaIndex(toindex),"C|"); - CHAR_talkToCli(toindex,-1,"店家取消交易",CHAR_COLORYELLOW); + CHAR_talkToCli(toindex,-1,"搴楀鍙栨秷浜ゆ槗",CHAR_COLORYELLOW); CHAR_setWorkInt(charaindex,CHAR_WORKSTREETVENDOR_WHO,-1); - // 清除交易图示 + // 娓呴櫎浜ゆ槗鍥剧ず CHAR_send_P_StatusString(toindex,CHAR_P_STRING_GOLD); CHAR_sendTradeEffect(charaindex,0); CHAR_sendTradeEffect(toindex,0); @@ -9310,12 +9310,12 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_setWorkInt(toindex,CHAR_LOOKSTREETTIME,0); #endif } - // 修改内容中,设成未摆摊 + // 淇敼鍐呭涓,璁炬垚鏈憜鎽 CHAR_setWorkInt(charaindex,CHAR_WORKSTREETVENDOR,-1); CHAR_sendStreetVendorDataToCli(charaindex,charaindex); } } - // 设定成摆摊 + // 璁惧畾鎴愭憜鎽 else{ #ifdef _LOOK_STREET_TIME if(CHAR_getWorkInt(toindex,CHAR_WORKSTREETVENDOR) == 2){ @@ -9332,12 +9332,12 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_setWorkInt(buyindex,CHAR_WORKSTREETVENDOR_WHO,-1); lssproto_STREET_VENDOR_send(getfdFromCharaIndex(buyindex),"C|"); CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR_WHO,-1); - // 清除交易图示 + // 娓呴櫎浜ゆ槗鍥剧ず CHAR_send_P_StatusString(buyindex,CHAR_P_STRING_GOLD); CHAR_sendTradeEffect(toindex,0); CHAR_sendTradeEffect(buyindex,0); CHAR_setWorkInt(buyindex,CHAR_LOOKSTREETTIME,0); - CHAR_talkToCli(buyindex,-1,"由于您长时间未进行购买操作,让个机会给其他人吧。",CHAR_COLORRED); + CHAR_talkToCli(buyindex,-1,"鐢变簬鎮ㄩ暱鏃堕棿鏈繘琛岃喘涔版搷浣滐紝璁╀釜鏈轰細缁欏叾浠栦汉鍚с",CHAR_COLORRED); CHAR_sendStreetVendor(charaindex,"O|"); return; } @@ -9347,20 +9347,20 @@ void CHAR_sendStreetVendor(int charaindex,char *message) #ifdef _NO_DAOLUAN if(CHAR_getInt(charaindex,CHAR_TRANSMIGRATION)1){ CHAR_setItemIndex( charaindex , CHAR_getStreetVendor(charaindex,i,SV_INDEX), -1); CHAR_sendItemDataOne(charaindex,CHAR_getStreetVendor(charaindex,i,SV_INDEX)); - CHAR_talkToCli(charaindex,-1,"非法道具自动删除,该选项取消",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"闈炴硶閬撳叿鑷姩鍒犻櫎锛岃閫夐」鍙栨秷",CHAR_COLORYELLOW); continue; } if(ITEM_getInt(iItemIndex,ITEM_TIME) > 0){ CHAR_clearStreetVendor(charaindex,i); - CHAR_talkToCli(charaindex,-1,"限时道具不可贩卖,该选项取消",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"闄愭椂閬撳叿涓嶅彲璐╁崠锛岃閫夐」鍙栨秷",CHAR_COLORYELLOW); continue; } #ifdef _LOCK_PET_ITEM char *arg = ITEM_getChar(iItemIndex, ITEM_NAME); if(arg[0] == '*'){ CHAR_clearStreetVendor(charaindex,i); - CHAR_talkToCli( charaindex, -1, "绑定的物品不可贩卖,该选项取消", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "缁戝畾鐨勭墿鍝佷笉鍙穿鍗栵紝璇ラ夐」鍙栨秷", CHAR_COLORYELLOW ); continue; } #endif @@ -9476,7 +9476,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) if(strstr(ITEM_getChar(iItemIndex,ITEM_NAME),getStreetItemUnName(streeti))!=NULL){ //CHAR_clearStreetVendor(charaindex,i); char tmpbuff[128]; - sprintf(tmpbuff,"%s不可摆摊,自动取消上架。",ITEM_getChar(iItemIndex,ITEM_NAME)); + sprintf(tmpbuff,"%s涓嶅彲鎽嗘憡锛岃嚜鍔ㄥ彇娑堜笂鏋躲",ITEM_getChar(iItemIndex,ITEM_NAME)); CHAR_talkToCli(charaindex,-1,tmpbuff,CHAR_COLORYELLOW); streety = 1; break; @@ -9488,7 +9488,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) continue; } #ifdef _ZHIPIAO_SYSTEM - if(strstr(ITEM_getChar(iItemIndex,ITEM_NAME),"支票")!=NULL && strstr(ITEM_getChar(iItemIndex,ITEM_NAME),"DP支票")==NULL){ + if(strstr(ITEM_getChar(iItemIndex,ITEM_NAME),"鏀エ")!=NULL && strstr(ITEM_getChar(iItemIndex,ITEM_NAME),"DP鏀エ")==NULL){ int zhipiaoindex=atoi(ITEM_getChar(iItemIndex,ITEM_ARGUMENT)); if(zhipiaoindex>0){ time_t timep; @@ -9498,17 +9498,17 @@ void CHAR_sendStreetVendor(int charaindex,char *message) timep = mktime(p); if(timep>zhipiaoindex){ CHAR_clearStreetVendor(charaindex,i); - CHAR_talkToCli(charaindex, -1, "该支票已经过期,无法交易,请尽快使用!", CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "璇ユ敮绁ㄥ凡缁忚繃鏈燂紝鏃犳硶浜ゆ槗锛岃灏藉揩浣跨敤锛", CHAR_COLORRED); continue; } } } #endif -//如果是绑定的道具则不可以用于贩卖 +//濡傛灉鏄粦瀹氱殑閬撳叿鍒欎笉鍙互鐢ㄤ簬璐╁崠 #ifdef _PETITEM__AMOI_E if(ITEM_NOT_STREETVANDOR & ITEM_getInt(iItemIndex, ITEM_TYPEOFITEM)){ char buf[128]; - sprintf(buf,"%s不可贩卖,该选项取消!~",ITEM_getChar(iItemIndex,ITEM_NAME)); + sprintf(buf,"%s涓嶅彲璐╁崠锛岃閫夐」鍙栨秷!~",ITEM_getChar(iItemIndex,ITEM_NAME)); CHAR_talkToCli(charaindex,-1,buf,CHAR_COLORYELLOW); CHAR_clearStreetVendor(charaindex,i); continue; @@ -9517,22 +9517,22 @@ void CHAR_sendStreetVendor(int charaindex,char *message) iPileNum = ITEM_getInt(iItemIndex,ITEM_USEPILENUMS); CHAR_setStreetVendor(charaindex,i,SV_PILE,iPileNum); } - // 若是宠物 + // 鑻ユ槸瀹犵墿 else if(CHAR_getStreetVendor(charaindex,i,SV_KIND) == 1){ iPetIndex = CHAR_getCharPet(charaindex,CHAR_getStreetVendor(charaindex,i,SV_INDEX)); - // 宠物不存在 + // 瀹犵墿涓嶅瓨鍦 if(!CHAR_CHECKINDEX(iPetIndex)){ CHAR_clearStreetVendor(charaindex,i); - printf("\nCHAR_sendStreetVendor(S):找不到宠物!!!!!!!\n"); + printf("\nCHAR_sendStreetVendor(S):鎵句笉鍒板疇鐗!!!!!!!\n"); continue; } if(CHAR_getInt(iPetIndex,CHAR_PETFAMILY) == 1){ - CHAR_talkToCli(charaindex,-1,"家族守护兽无法贩卖,该选项取消",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"瀹舵棌瀹堟姢鍏芥棤娉曡穿鍗栵紝璇ラ夐」鍙栨秷",CHAR_COLORYELLOW); CHAR_clearStreetVendor(charaindex,i); continue; } if(CHAR_getInt(charaindex,CHAR_RIDEPET) == CHAR_getStreetVendor(charaindex,i,SV_INDEX)){ - CHAR_talkToCli(charaindex,-1,"骑乘中的宠物无法贩卖,该选项取消",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"楠戜箻涓殑瀹犵墿鏃犳硶璐╁崠锛岃閫夐」鍙栨秷",CHAR_COLORYELLOW); CHAR_clearStreetVendor(charaindex,i); continue; } @@ -9542,26 +9542,26 @@ void CHAR_sendStreetVendor(int charaindex,char *message) // ||PET_NOT_TradeAndStreetVandor == EVOLUTION_getPetENABLETRADE( CHAR_getInt( iPetIndex, CHAR_PETID))){ if( ( PET_NOT_STREETVANDOR ) & EVOLUTION_getPetENABLETRADE( CHAR_getInt( iPetIndex, CHAR_PETID))){ char buf[128]; - sprintf(buf,"%s不可贩卖,该选项取消!~",CHAR_getInt( iPetIndex, CHAR_NAME)); + sprintf(buf,"%s涓嶅彲璐╁崠锛岃閫夐」鍙栨秷!~",CHAR_getInt( iPetIndex, CHAR_NAME)); CHAR_talkToCli(charaindex,-1,buf,CHAR_COLORRED); CHAR_clearStreetVendor(charaindex,i); continue; } #endif if(strstr(CHAR_getChar(iPetIndex,CHAR_USERPETNAME),"|") != NULL){ - CHAR_talkToCli(charaindex,-1,"您的宠物名字非法,无法摆摊!",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"鎮ㄧ殑瀹犵墿鍚嶅瓧闈炴硶锛屾棤娉曟憜鎽婏紒",CHAR_COLORYELLOW); CHAR_clearStreetVendor(charaindex,i); continue; } #ifdef _PET_BUG if(CHAR_getInt(iPetIndex,CHAR_VITAL)>=getPetPoint(0)*20 || CHAR_getInt(iPetIndex,CHAR_STR)>=getPetPoint(1)*80 || CHAR_getInt(iPetIndex,CHAR_TOUGH)>=getPetPoint(2)*80 || CHAR_getInt(iPetIndex,CHAR_DEX)>=getPetPoint(3)*100){ - CHAR_talkToCli(charaindex,-1,"宠物属性过高,该选项取消",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"瀹犵墿灞炴ц繃楂橈紝璇ラ夐」鍙栨秷",CHAR_COLORYELLOW); CHAR_clearStreetVendor(charaindex,i); continue; } #endif if(strlen(CHAR_getChar(iPetIndex,CHAR_USERPETNAME))>0 && strstr(CHAR_getChar(iPetIndex,CHAR_USERPETNAME),"*")!=NULL){ - CHAR_talkToCli(charaindex, -1, "宠物自定义名称中含有(*),无法丢弃、卖店、交易、摆摊,请修改后操作。", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "瀹犵墿鑷畾涔夊悕绉颁腑鍚湁(*)锛屾棤娉曚涪寮冦佸崠搴椼佷氦鏄撱佹憜鎽婏紝璇蜂慨鏀瑰悗鎿嶄綔銆", CHAR_COLORYELLOW); CHAR_clearStreetVendor(charaindex,i); continue; } @@ -9572,8 +9572,8 @@ void CHAR_sendStreetVendor(int charaindex,char *message) skillid=CHAR_getPetSkill(iPetIndex,pi); skillarray = PETSKILL_getPetskillArray( skillid); if( PETSKILL_CHECKINDEX( skillarray) == FALSE ) continue; - if(strstr(PETSKILL_getChar( skillarray, PETSKILL_NAME),"★")){ - CHAR_talkToCli(charaindex, -1, "此宠物为绑定宠物,无法摆摊", CHAR_COLORRED); + if(strstr(PETSKILL_getChar( skillarray, PETSKILL_NAME),"鈽")){ + CHAR_talkToCli(charaindex, -1, "姝ゅ疇鐗╀负缁戝畾瀹犵墿锛屾棤娉曟憜鎽", CHAR_COLORRED); psk=1; break; } @@ -9585,17 +9585,17 @@ void CHAR_sendStreetVendor(int charaindex,char *message) #endif #ifdef _PET_BINDING if(strstr(CHAR_getChar(iPetIndex,CHAR_NAME),"*") || strstr(CHAR_getChar(iPetIndex,CHAR_NAME),"+")){ - CHAR_talkToCli(charaindex, -1, "此宠物为绑定宠物,无法摆摊", CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "姝ゅ疇鐗╀负缁戝畾瀹犵墿锛屾棤娉曟憜鎽", CHAR_COLORRED); CHAR_clearStreetVendor(charaindex,i); continue; } #endif CHAR_setStreetVendor(charaindex,i,SV_PILE,1); } - // 错的内容 + // 閿欑殑鍐呭 else{ CHAR_clearStreetVendor(charaindex,i); - printf("\nCHAR_sendStreetVendor(S):错的内容!!!!!!!\n"); + printf("\nCHAR_sendStreetVendor(S):閿欑殑鍐呭!!!!!!!\n"); } } } @@ -9605,29 +9605,29 @@ void CHAR_sendStreetVendor(int charaindex,char *message) char TRADENAME[21]; if(CHAR_getWorkInt(charaindex,CHAR_WORKTRADETYPE)==0) { - sprintf(TRADENAME,"【石币】%s",szTemp); - CHAR_talkToCli(charaindex,-1,"您是以【石币】方式摆摊!",CHAR_COLORRED); + sprintf(TRADENAME,"銆愮煶甯併%s",szTemp); + CHAR_talkToCli(charaindex,-1,"鎮ㄦ槸浠ャ愮煶甯併戞柟寮忔憜鎽婏紒",CHAR_COLORRED); } else if(CHAR_getWorkInt(charaindex,CHAR_WORKTRADETYPE)==1) { - sprintf(TRADENAME,"【声望】%s",szTemp); - CHAR_talkToCli(charaindex,-1,"您是以【声望】方式摆摊!",CHAR_COLORRED); + sprintf(TRADENAME,"銆愬0鏈涖%s",szTemp); + CHAR_talkToCli(charaindex,-1,"鎮ㄦ槸浠ャ愬0鏈涖戞柟寮忔憜鎽婏紒",CHAR_COLORRED); } else if(CHAR_getWorkInt(charaindex,CHAR_WORKTRADETYPE)==2) { - sprintf(TRADENAME,"【点数】%s",szTemp); - CHAR_talkToCli(charaindex,-1,"您是以【会员点】方式摆摊!",CHAR_COLORRED); + sprintf(TRADENAME,"銆愮偣鏁般%s",szTemp); + CHAR_talkToCli(charaindex,-1,"鎮ㄦ槸浠ャ愪細鍛樼偣銆戞柟寮忔憜鎽婏紒",CHAR_COLORRED); } else if(CHAR_getWorkInt(charaindex,CHAR_WORKTRADETYPE)==3) { - sprintf(TRADENAME,"【积分】%s",szTemp); - CHAR_talkToCli(charaindex,-1,"您是以【积分】方式摆摊!",CHAR_COLORRED); + sprintf(TRADENAME,"銆愮Н鍒嗐%s",szTemp); + CHAR_talkToCli(charaindex,-1,"鎮ㄦ槸浠ャ愮Н鍒嗐戞柟寮忔憜鎽婏紒",CHAR_COLORRED); } #ifdef _VIGOR_SYS else if(CHAR_getWorkInt(charaindex,CHAR_WORKTRADETYPE)==4) { - sprintf(TRADENAME,"【活力】%s",szTemp); - CHAR_talkToCli(charaindex,-1,"您是以【活力】方式摆摊!",CHAR_COLORRED); + sprintf(TRADENAME,"銆愭椿鍔涖%s",szTemp); + CHAR_talkToCli(charaindex,-1,"鎮ㄦ槸浠ャ愭椿鍔涖戞柟寮忔憜鎽婏紒",CHAR_COLORRED); } #endif CHAR_setWorkChar(charaindex,CHAR_STREETVENDOR_NAME,TRADENAME); @@ -9636,24 +9636,24 @@ void CHAR_sendStreetVendor(int charaindex,char *message) #ifdef _STREET_FAX if(getStreetFax(CHAR_getWorkInt(charaindex,CHAR_WORKTRADETYPE))>0){ char streetfaxmsg[256]; - sprintf(streetfaxmsg,"目前税率为百分之%d!",getStreetFax(CHAR_getWorkInt(charaindex,CHAR_WORKTRADETYPE))); + sprintf(streetfaxmsg,"鐩墠绋庣巼涓虹櫨鍒嗕箣%d锛",getStreetFax(CHAR_getWorkInt(charaindex,CHAR_WORKTRADETYPE))); CHAR_talkToCli(charaindex,-1,streetfaxmsg,CHAR_COLORRED); } #endif } - // 收摊 + // 鏀舵憡 else if(szAction[0] == 'E'){ int toindex = CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR_WHO); - // 收摊时若有人正在买,通知取消 + // 鏀舵憡鏃惰嫢鏈変汉姝e湪涔,閫氱煡鍙栨秷 if(toindex != -1 && CHAR_CHECKINDEX(toindex)){ CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR,-1); CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR_WHO,-1); lssproto_STREET_VENDOR_send(getfdFromCharaIndex(toindex),"C|"); - CHAR_talkToCli(toindex,-1,"店家取消交易",CHAR_COLORYELLOW); + CHAR_talkToCli(toindex,-1,"搴楀鍙栨秷浜ゆ槗",CHAR_COLORYELLOW); CHAR_setWorkInt(charaindex,CHAR_WORKSTREETVENDOR_WHO,-1); - // 清除交易图示 + // 娓呴櫎浜ゆ槗鍥剧ず CHAR_send_P_StatusString(toindex,CHAR_P_STRING_GOLD); CHAR_sendTradeEffect(charaindex,0); CHAR_sendTradeEffect(toindex,0); @@ -9666,18 +9666,18 @@ void CHAR_sendStreetVendor(int charaindex,char *message) for(i=0;i CHAR_getMaxHaveGold(toindex)){ - // 身上不够放,存入个人银行 + // 韬笂涓嶅鏀,瀛樺叆涓汉閾惰 if(CHAR_getInt(toindex,CHAR_BANKGOLD) + iPrice > CHAR_MAXBANKGOLDHAVE){ - CHAR_talkToCli(charaindex,-1,"店家放不下石币了,交易取消。",CHAR_COLORRED); - CHAR_talkToCli(toindex,-1,"你身上及个人银行存款已满",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"搴楀鏀句笉涓嬬煶甯佷簡锛屼氦鏄撳彇娑堛",CHAR_COLORRED); + CHAR_talkToCli(toindex,-1,"浣犺韩涓婂強涓汉閾惰瀛樻宸叉弧",CHAR_COLORRED); break; } - CHAR_talkToCli(toindex,-1,"贩卖所得已存入个人银行",CHAR_COLORRED); + CHAR_talkToCli(toindex,-1,"璐╁崠鎵寰楀凡瀛樺叆涓汉閾惰",CHAR_COLORRED); bPutToBank = TRUE; } } @@ -9744,13 +9744,13 @@ void CHAR_sendStreetVendor(int charaindex,char *message) { if(CHAR_getInt(charaindex,CHAR_FAME) < iPrice*100) { - CHAR_talkToCli(charaindex,-1,"你身上声望不够。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"浣犺韩涓婂0鏈涗笉澶熴",CHAR_COLORRED); break; } if(CHAR_getInt(toindex,CHAR_FAME) + iPrice > 100000000) { - CHAR_talkToCli(charaindex,-1,"店家的个人声望已经超过限制。",CHAR_COLORRED); - CHAR_talkToCli(toindex,-1,"你的个人声望已经超过限制。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"搴楀鐨勪釜浜哄0鏈涘凡缁忚秴杩囬檺鍒躲",CHAR_COLORRED); + CHAR_talkToCli(toindex,-1,"浣犵殑涓汉澹版湜宸茬粡瓒呰繃闄愬埗銆",CHAR_COLORRED); break; } } @@ -9758,7 +9758,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) { if(sasql_vippoint(CHAR_getUseID(charaindex),0,0) < iPrice) { - CHAR_talkToCli(charaindex,-1,"你身上会员点不够。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"浣犺韩涓婁細鍛樼偣涓嶅銆",CHAR_COLORRED); break; } } @@ -9766,7 +9766,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) { if(sasql_ampoint(CHAR_getUseID(charaindex),0,0) < iPrice) { - CHAR_talkToCli(charaindex,-1,"你身上积分不够。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"浣犺韩涓婄Н鍒嗕笉澶熴",CHAR_COLORRED); break; } } @@ -9775,31 +9775,31 @@ void CHAR_sendStreetVendor(int charaindex,char *message) { if(CHAR_getInt(charaindex,CHAR_VIGOR) < iPrice) { - CHAR_talkToCli(charaindex,-1,"你身上活力不够。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"浣犺韩涓婃椿鍔涗笉澶熴",CHAR_COLORRED); break; } if(CHAR_getInt(toindex,CHAR_VIGOR) + iPrice > getVigorMax()) { - CHAR_talkToCli(charaindex,-1,"店家的活力已经超过限制。",CHAR_COLORRED); - CHAR_talkToCli(toindex,-1,"你的活力已经超过限制。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"搴楀鐨勬椿鍔涘凡缁忚秴杩囬檺鍒躲",CHAR_COLORRED); + CHAR_talkToCli(toindex,-1,"浣犵殑娲诲姏宸茬粡瓒呰繃闄愬埗銆",CHAR_COLORRED); break; } } #endif - // 若是道具 + // 鑻ユ槸閬撳叿 if(iKind == 0){ iItemIndex = CHAR_getItemIndex(toindex,iFieldIndex); - // 道具不存在 + // 閬撳叿涓嶅瓨鍦 if(!ITEM_CHECKINDEX(iItemIndex)){ CHAR_clearStreetVendor(toindex,iBuyIndex); - printf("\nCHAR_sendStreetVendor(B):找不到道具!!!!!!!\n"); + printf("\nCHAR_sendStreetVendor(B):鎵句笉鍒伴亾鍏!!!!!!!\n"); continue; } - // 丢在地上会消失的道具不可贩卖 + // 涓㈠湪鍦颁笂浼氭秷澶辩殑閬撳叿涓嶅彲璐╁崠 if(ITEM_getInt(iItemIndex,ITEM_VANISHATDROP) == 1){ CHAR_clearStreetVendor(toindex,iBuyIndex); - CHAR_talkToCli(charaindex,-1,"丢在地上会消失的道具不可贩卖,该选项取消",CHAR_COLORYELLOW); - CHAR_talkToCli(toindex,-1,"侦测到有丢在地上会消失的道具在贩卖,帐号已记录!",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"涓㈠湪鍦颁笂浼氭秷澶辩殑閬撳叿涓嶅彲璐╁崠锛岃閫夐」鍙栨秷",CHAR_COLORYELLOW); + CHAR_talkToCli(toindex,-1,"渚︽祴鍒版湁涓㈠湪鍦颁笂浼氭秷澶辩殑閬撳叿鍦ㄨ穿鍗栵紝甯愬彿宸茶褰曪紒",CHAR_COLORRED); LogStreetVendor( CHAR_getUseName(toindex), CHAR_getUseID(toindex), @@ -9808,7 +9808,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) ITEM_getChar(iItemIndex,ITEM_NAME), -1, iPrice, - "StreetVendor(卖方改封包)", + "StreetVendor(鍗栨柟鏀瑰皝鍖)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -9820,8 +9820,8 @@ void CHAR_sendStreetVendor(int charaindex,char *message) } if(ITEM_getInt(iItemIndex,ITEM_TIME) > 0){ CHAR_clearStreetVendor(toindex,iBuyIndex); - CHAR_talkToCli(charaindex,-1,"限时道具不可贩卖,该选项取消",CHAR_COLORYELLOW); - CHAR_talkToCli(toindex,-1,"限时道具在贩卖,帐号已记录!",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"闄愭椂閬撳叿涓嶅彲璐╁崠锛岃閫夐」鍙栨秷",CHAR_COLORYELLOW); + CHAR_talkToCli(toindex,-1,"闄愭椂閬撳叿鍦ㄨ穿鍗栵紝甯愬彿宸茶褰曪紒",CHAR_COLORRED); LogStreetVendor( CHAR_getUseName(toindex), CHAR_getUseID(toindex), @@ -9830,7 +9830,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) ITEM_getChar(iItemIndex,ITEM_NAME), -1, iPrice, - "StreetVendor(卖方改封包)", + "StreetVendor(鍗栨柟鏀瑰皝鍖)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -9844,7 +9844,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) char *arg = ITEM_getChar(iItemIndex, ITEM_NAME); if(arg[0] == '*'){ CHAR_clearStreetVendor(toindex,iBuyIndex); - CHAR_talkToCli( charaindex, -1, "绑定的物品不可贩卖,该选项取消", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "缁戝畾鐨勭墿鍝佷笉鍙穿鍗栵紝璇ラ夐」鍙栨秷", CHAR_COLORYELLOW ); LogStreetVendor( CHAR_getUseName(toindex), CHAR_getUseID(toindex), @@ -9853,7 +9853,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) ITEM_getChar(iItemIndex,ITEM_NAME), -1, iPrice, - "StreetVendor(卖方改封包)", + "StreetVendor(鍗栨柟鏀瑰皝鍖)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -9865,7 +9865,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) } #endif #ifdef _ZHIPIAO_SYSTEM - if(strstr(ITEM_getChar(iItemIndex,ITEM_NAME),"支票")!=NULL && strstr(ITEM_getChar(iItemIndex,ITEM_NAME),"DP支票")==NULL){ + if(strstr(ITEM_getChar(iItemIndex,ITEM_NAME),"鏀エ")!=NULL && strstr(ITEM_getChar(iItemIndex,ITEM_NAME),"DP鏀エ")==NULL){ int zhipiaoindex=atoi(ITEM_getChar(iItemIndex,ITEM_ARGUMENT)); if(zhipiaoindex>0){ time_t timep; @@ -9875,14 +9875,14 @@ void CHAR_sendStreetVendor(int charaindex,char *message) timep = mktime(p); if(timep>zhipiaoindex){ CHAR_clearStreetVendor(toindex,iBuyIndex); - CHAR_talkToCli(charaindex,-1,"该支票已经过期,该选项取消",CHAR_COLORYELLOW); - CHAR_talkToCli(toindex,-1,"该支票已经过期,该选项取消,请尽快使用!",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"璇ユ敮绁ㄥ凡缁忚繃鏈燂紝璇ラ夐」鍙栨秷",CHAR_COLORYELLOW); + CHAR_talkToCli(toindex,-1,"璇ユ敮绁ㄥ凡缁忚繃鏈燂紝璇ラ夐」鍙栨秷锛岃灏藉揩浣跨敤锛",CHAR_COLORRED); continue; } } } #endif - // 议价物品不能卖 + // 璁环鐗╁搧涓嶈兘鍗 if(iPrice == 0){ LogStreetVendor( CHAR_getUseName(toindex), @@ -9892,7 +9892,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) ITEM_getChar(iItemIndex,ITEM_NAME), -1, iPrice, - "StreetVendor(买方改封包)", + "StreetVendor(涔版柟鏀瑰皝鍖)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -9904,30 +9904,30 @@ void CHAR_sendStreetVendor(int charaindex,char *message) ); continue; } - // 检查物品堆叠 + // 妫鏌ョ墿鍝佸爢鍙 iPileNum = ITEM_getInt(iItemIndex,ITEM_USEPILENUMS); - // 买方最大堆叠数 + // 涔版柟鏈澶у爢鍙犳暟 iMaxPileNum = CHAR_getMyMaxPilenum(charaindex); - // 若物品的堆叠数比身上的最大堆叠数少,把卖方的物品清掉,把物品新增至买方 + // 鑻ョ墿鍝佺殑鍫嗗彔鏁版瘮韬笂鐨勬渶澶у爢鍙犳暟灏,鎶婂崠鏂圭殑鐗╁搧娓呮帀,鎶婄墿鍝佹柊澧炶嚦涔版柟 if(iPileNum - iMaxPileNum <= 0){ if(!ITEM_CHECKINDEX(iItemIndex)){ - CHAR_talkToCli(charaindex,-1,"交易失败(1)。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"浜ゆ槗澶辫触(1)銆",CHAR_COLORRED); break; } #ifdef _ITEM_PILENUMS - // 道具数量为0 + // 閬撳叿鏁伴噺涓0 if(ITEM_getInt(iItemIndex,ITEM_USEPILENUMS) <= 0){ - CHAR_talkToCli(charaindex,-1,"交易失败(2)。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"浜ゆ槗澶辫触(2)銆",CHAR_COLORRED); break; } #endif - // 新增买方的 + // 鏂板涔版柟鐨 if((iRet = CHAR_addItemSpecificItemIndex(charaindex,iItemIndex)) >= CHAR_MAXITEMHAVE){ - CHAR_talkToCli(charaindex,-1,"道具栏满了。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"閬撳叿鏍忔弧浜嗐",CHAR_COLORRED); break; } CHAR_sendItemDataOne(charaindex,iRet); - // 清掉卖方的 + // 娓呮帀鍗栨柟鐨 CHAR_setItemIndex(toindex,iFieldIndex,-1); CHAR_sendItemDataOne(toindex,iFieldIndex); CHAR_clearStreetVendor(toindex,iBuyIndex); @@ -9941,10 +9941,10 @@ void CHAR_sendStreetVendor(int charaindex,char *message) #endif if(CHAR_getWorkInt(toindex,CHAR_WORKTRADETYPE)==0) { - // 扣钱 + // 鎵i挶 CHAR_setInt(charaindex,CHAR_GOLD,CHAR_getInt(charaindex,CHAR_GOLD) - iPrice); CHAR_send_P_StatusString(charaindex,CHAR_P_STRING_GOLD); - // 加钱 + // 鍔犻挶 if(bPutToBank) CHAR_setInt(toindex,CHAR_BANKGOLD,CHAR_getInt(toindex,CHAR_BANKGOLD) + sellprice); else CHAR_setInt(toindex,CHAR_GOLD,CHAR_getInt(toindex,CHAR_GOLD) + sellprice); CHAR_send_P_StatusString(toindex,CHAR_P_STRING_GOLD); @@ -10006,12 +10006,12 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_setInt(toindex,CHAR_VIGOR,CHAR_getInt(toindex,CHAR_VIGOR) + sellprice); } #endif - char streettypemsg[5][10] = {"石币","声望","会员点","积分","活力"}; - sprintf(szMsg,"与 %s 道具 %s 交易完成",CHAR_getUseName(toindex),ITEM_getChar(iItemIndex,ITEM_NAME)); + char streettypemsg[5][10] = {"鐭冲竵","澹版湜","浼氬憳鐐","绉垎","娲诲姏"}; + sprintf(szMsg,"涓 %s 閬撳叿 %s 浜ゆ槗瀹屾垚",CHAR_getUseName(toindex),ITEM_getChar(iItemIndex,ITEM_NAME)); CHAR_talkToCli(charaindex,-1,szMsg,CHAR_COLORWHITE); - sprintf(szMsg,"%s 买走道具 %s",CHAR_getUseName(charaindex),ITEM_getChar(iItemIndex,ITEM_NAME)); + sprintf(szMsg,"%s 涔拌蛋閬撳叿 %s",CHAR_getUseName(charaindex),ITEM_getChar(iItemIndex,ITEM_NAME)); CHAR_talkToCli(toindex,-1,szMsg,CHAR_COLORWHITE); - sprintf(szMsg,"本次成交金额:%d (%s)",iPrice,streettypemsg[CHAR_getWorkInt(toindex,CHAR_WORKTRADETYPE)]); + sprintf(szMsg,"鏈鎴愪氦閲戦锛%d (%s)",iPrice,streettypemsg[CHAR_getWorkInt(toindex,CHAR_WORKTRADETYPE)]); CHAR_talkToCli(toindex,-1,szMsg,CHAR_COLORWHITE); CHAR_talkToCli(charaindex,-1,szMsg,CHAR_COLORWHITE); // int mfd,tfd; @@ -10019,8 +10019,8 @@ void CHAR_sendStreetVendor(int charaindex,char *message) // tfd=getfdFromCharaIndex( toindex); CHAR_charSaveFromConnect(charaindex, FALSE); CHAR_charSaveFromConnect(toindex, FALSE); - CHAR_talkToCli(charaindex, -1, "系统为你自动存档!", CHAR_COLORRED); - CHAR_talkToCli(toindex, -1, "系统为你自动存档!", CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "绯荤粺涓轰綘鑷姩瀛樻。锛", CHAR_COLORRED); + CHAR_talkToCli(toindex, -1, "绯荤粺涓轰綘鑷姩瀛樻。锛", CHAR_COLORRED); LogStreetVendor( CHAR_getUseName(toindex), CHAR_getUseID(toindex), @@ -10029,7 +10029,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) ITEM_getChar(iItemIndex,ITEM_NAME), -1, iPrice, - "StreetVendor(道具)", + "StreetVendor(閬撳叿)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -10040,21 +10040,21 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_getWorkInt(toindex,CHAR_WORKTRADETYPE) ); } - else CHAR_talkToCli(charaindex,-1,"身上堆叠数上限不足。",CHAR_COLORRED); + else CHAR_talkToCli(charaindex,-1,"韬笂鍫嗗彔鏁颁笂闄愪笉瓒炽",CHAR_COLORRED); } - // 若是宠物 + // 鑻ユ槸瀹犵墿 else if(iKind == 1){ int iEmptyPetField; iPetIndex = CHAR_getCharPet(toindex,iFieldIndex); - // 宠物不存在 + // 瀹犵墿涓嶅瓨鍦 if(!CHAR_CHECKINDEX(iPetIndex)){ CHAR_clearStreetVendor(toindex,iBuyIndex); - printf("\nCHAR_sendStreetVendor(B):找不到宠物!!!!!!!\n"); + printf("\nCHAR_sendStreetVendor(B):鎵句笉鍒板疇鐗!!!!!!!\n"); continue; } if(CHAR_getInt(iPetIndex,CHAR_PETFAMILY) == 1){ - CHAR_talkToCli(charaindex,-1,"家族守护兽无法贩卖,该选项取消",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"瀹舵棌瀹堟姢鍏芥棤娉曡穿鍗栵紝璇ラ夐」鍙栨秷",CHAR_COLORYELLOW); CHAR_clearStreetVendor(toindex,iBuyIndex); LogStreetVendor( CHAR_getUseName(toindex), @@ -10064,7 +10064,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_getChar(iPetIndex,CHAR_NAME), -1, iPrice, - "StreetVendor(卖方改封包)", + "StreetVendor(鍗栨柟鏀瑰皝鍖)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -10075,7 +10075,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) continue; } if(CHAR_getInt(toindex,CHAR_RIDEPET) == CHAR_getStreetVendor(toindex,iBuyIndex,SV_INDEX)){ - CHAR_talkToCli(charaindex,-1,"骑乘中的宠物无法贩卖,该选项取消",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"楠戜箻涓殑瀹犵墿鏃犳硶璐╁崠锛岃閫夐」鍙栨秷",CHAR_COLORYELLOW); CHAR_clearStreetVendor(toindex,iBuyIndex); LogStreetVendor( CHAR_getUseName(toindex), @@ -10085,7 +10085,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_getChar(iPetIndex,CHAR_NAME), -1, iPrice, - "StreetVendor(卖方改封包)", + "StreetVendor(鍗栨柟鏀瑰皝鍖)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -10097,7 +10097,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) } #ifdef _PET_BUG if(CHAR_getInt(iPetIndex,CHAR_VITAL)>=getPetPoint(0)*20 || CHAR_getInt(iPetIndex,CHAR_STR)>=getPetPoint(1)*80 || CHAR_getInt(iPetIndex,CHAR_TOUGH)>=getPetPoint(2)*80 || CHAR_getInt(iPetIndex,CHAR_DEX)>=getPetPoint(3)*100){ - CHAR_talkToCli(charaindex,-1,"宠物属性过高,该选项取消",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"瀹犵墿灞炴ц繃楂橈紝璇ラ夐」鍙栨秷",CHAR_COLORYELLOW); CHAR_clearStreetVendor(toindex,iBuyIndex); LogStreetVendor( CHAR_getUseName(toindex), @@ -10107,7 +10107,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_getChar(iPetIndex,CHAR_NAME), -1, iPrice, - "StreetVendor(卖方改封包)", + "StreetVendor(鍗栨柟鏀瑰皝鍖)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -10119,7 +10119,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) } #endif if(strstr(CHAR_getChar(iPetIndex,CHAR_USERPETNAME),"|")){ - CHAR_talkToCli(charaindex,-1,"您的宠物名字非法,无法摆摊!",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"鎮ㄧ殑瀹犵墿鍚嶅瓧闈炴硶锛屾棤娉曟憜鎽婏紒",CHAR_COLORYELLOW); CHAR_clearStreetVendor(toindex,iBuyIndex); LogStreetVendor( CHAR_getUseName(toindex), @@ -10129,7 +10129,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_getChar(iPetIndex,CHAR_NAME), -1, iPrice, - "StreetVendor(卖方改封包)", + "StreetVendor(鍗栨柟鏀瑰皝鍖)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -10139,7 +10139,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) ); continue; } - // 议价物品不能卖 + // 璁环鐗╁搧涓嶈兘鍗 if(iPrice == 0){ LogStreetVendor( CHAR_getUseName(toindex), @@ -10149,7 +10149,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_getChar(iPetIndex,CHAR_NAME), -1, iPrice, - "StreetVendor(买方改封包)", + "StreetVendor(涔版柟鏀瑰皝鍖)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -10161,7 +10161,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) ); continue; } -//如果是绑定的宠物则不可用于贩卖 +//濡傛灉鏄粦瀹氱殑瀹犵墿鍒欎笉鍙敤浜庤穿鍗 #ifdef _PET_AMOI__E //if( PET_NOT_DropTradeStreetVandor == EVOLUTION_getPetENABLETRADE( CHAR_getInt( iPetIndex, CHAR_PETID)) // ||PET_NOT_StreetVandor == EVOLUTION_getPetENABLETRADE( CHAR_getInt( iPetIndex, CHAR_PETID)) @@ -10169,25 +10169,25 @@ void CHAR_sendStreetVendor(int charaindex,char *message) if( ( PET_NOT_STREETVANDOR ) & EVOLUTION_getPetENABLETRADE( CHAR_getInt( iPetIndex, CHAR_PETID))){ char buf[128]; - sprintf(buf,"%s不可贩卖,该选项取消!~",CHAR_getInt( iPetIndex, CHAR_NAME)); + sprintf(buf,"%s涓嶅彲璐╁崠锛岃閫夐」鍙栨秷!~",CHAR_getInt( iPetIndex, CHAR_NAME)); CHAR_talkToCli(charaindex,-1,buf,CHAR_COLORRED); continue; } #endif - // 检查玩家有无装备驯兽戒指,检查玩家有没有转生过 + // 妫鏌ョ帺瀹舵湁鏃犺澶囬┋鍏芥垝鎸,妫鏌ョ帺瀹舵湁娌℃湁杞敓杩 if(CHAR_getWorkInt(charaindex,CHAR_PickAllPet) == FALSE && CHAR_getInt(charaindex,CHAR_TRANSMIGRATION) < 1){ - // 检查玩家等级有没有比宠物高 + // 妫鏌ョ帺瀹剁瓑绾ф湁娌℃湁姣斿疇鐗╅珮 if(CHAR_getInt(iPetIndex,CHAR_LV) > (CHAR_getInt(charaindex,CHAR_LV) + 5)){ - CHAR_talkToCli(charaindex,-1,"你无法照顾该宠物。",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"浣犳棤娉曠収椤捐瀹犵墿銆",CHAR_COLORRED); continue; } } - // 以下是宠物交换 + // 浠ヤ笅鏄疇鐗╀氦鎹 iEmptyPetField = CHAR_getCharPetElement(charaindex); - // 身上有空栏位 + // 韬笂鏈夌┖鏍忎綅 if(iEmptyPetField > -1){ - // 清卖方 + // 娓呭崠鏂 CHAR_setCharPet(toindex,iFieldIndex,-1); CHAR_clearStreetVendor(toindex,iBuyIndex); if( iFieldIndex == CHAR_getInt( toindex, CHAR_DEFAULTPET)) { @@ -10198,7 +10198,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) } sprintf(szMsg,"K%d",iFieldIndex); CHAR_sendStatusString(toindex,szMsg); - // 设定买方 + // 璁惧畾涔版柟 CHAR_setCharPet(charaindex,iEmptyPetField,iPetIndex); CHAR_setWorkInt(iPetIndex,CHAR_WORKPLAYERINDEX,charaindex); CHAR_setChar(iPetIndex,CHAR_OWNERCDKEY,CHAR_getChar(charaindex,CHAR_CDKEY)); @@ -10218,10 +10218,10 @@ void CHAR_sendStreetVendor(int charaindex,char *message) #endif if(CHAR_getWorkInt(toindex,CHAR_WORKTRADETYPE)==0) { - // 扣钱 + // 鎵i挶 CHAR_setInt(charaindex,CHAR_GOLD,CHAR_getInt(charaindex,CHAR_GOLD) - iPrice); CHAR_send_P_StatusString(charaindex,CHAR_P_STRING_GOLD); - // 加钱 + // 鍔犻挶 if(bPutToBank) CHAR_setInt(toindex,CHAR_BANKGOLD,CHAR_getInt(toindex,CHAR_BANKGOLD) + sellprice); else CHAR_setInt(toindex,CHAR_GOLD,CHAR_getInt(toindex,CHAR_GOLD) + sellprice); CHAR_send_P_StatusString(toindex,CHAR_P_STRING_GOLD); @@ -10283,12 +10283,12 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_setInt(toindex,CHAR_VIGOR,CHAR_getInt(toindex,CHAR_VIGOR) + sellprice); } #endif - char streettypemsg[5][10] = {"石币","声望","会员点","积分","活力"}; - sprintf(szMsg,"与 %s 宠物 %s 交易完成!",CHAR_getUseName(toindex),CHAR_getChar(iPetIndex,CHAR_NAME)); + char streettypemsg[5][10] = {"鐭冲竵","澹版湜","浼氬憳鐐","绉垎","娲诲姏"}; + sprintf(szMsg,"涓 %s 瀹犵墿 %s 浜ゆ槗瀹屾垚锛",CHAR_getUseName(toindex),CHAR_getChar(iPetIndex,CHAR_NAME)); CHAR_talkToCli(charaindex,-1,szMsg,CHAR_COLORWHITE); - sprintf(szMsg,"%s 买走宠物 %s",CHAR_getUseName(charaindex),CHAR_getChar(iPetIndex,CHAR_NAME)); + sprintf(szMsg,"%s 涔拌蛋瀹犵墿 %s",CHAR_getUseName(charaindex),CHAR_getChar(iPetIndex,CHAR_NAME)); CHAR_talkToCli(toindex,-1,szMsg,CHAR_COLORWHITE); - sprintf(szMsg,"本次成交金额:%d (%s)",iPrice,streettypemsg[CHAR_getWorkInt(toindex,CHAR_WORKTRADETYPE)]); + sprintf(szMsg,"鏈鎴愪氦閲戦锛%d (%s)",iPrice,streettypemsg[CHAR_getWorkInt(toindex,CHAR_WORKTRADETYPE)]); CHAR_talkToCli(toindex,-1,szMsg,CHAR_COLORWHITE); CHAR_talkToCli(charaindex,-1,szMsg,CHAR_COLORWHITE); // int mfd,tfd; @@ -10296,8 +10296,8 @@ void CHAR_sendStreetVendor(int charaindex,char *message) // tfd=getfdFromCharaIndex( toindex); CHAR_charSaveFromConnect(charaindex, FALSE); CHAR_charSaveFromConnect(toindex, FALSE); - CHAR_talkToCli(charaindex, -1, "系统为你自动存档!", CHAR_COLORRED); - CHAR_talkToCli(toindex, -1, "系统为你自动存档!", CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "绯荤粺涓轰綘鑷姩瀛樻。锛", CHAR_COLORRED); + CHAR_talkToCli(toindex, -1, "绯荤粺涓轰綘鑷姩瀛樻。锛", CHAR_COLORRED); LogStreetVendor( CHAR_getUseName(toindex), CHAR_getUseID(toindex), @@ -10306,7 +10306,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_getChar(iPetIndex,CHAR_NAME), CHAR_getInt(iPetIndex,CHAR_LV), iPrice, - "StreetVendor(宠物)", + "StreetVendor(瀹犵墿)", CHAR_getInt(toindex,CHAR_FLOOR), CHAR_getInt(toindex,CHAR_X), CHAR_getInt(toindex,CHAR_Y), @@ -10317,19 +10317,19 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_getWorkInt(toindex,CHAR_WORKTRADETYPE) ); } - // 玩家宠物栏位满了 - else CHAR_talkToCli(charaindex,-1,"身上宠物栏栏位不足!",CHAR_COLORRED); + // 鐜╁瀹犵墿鏍忎綅婊′簡 + else CHAR_talkToCli(charaindex,-1,"韬笂瀹犵墿鏍忔爮浣嶄笉瓒筹紒",CHAR_COLORRED); } - // 错的内容 + // 閿欑殑鍐呭 else{ CHAR_clearStreetVendor(toindex,iBuyIndex); - printf("\nCHAR_sendStreetVendor(B):错的内容!!!!!!!\n"); + printf("\nCHAR_sendStreetVendor(B):閿欑殑鍐呭!!!!!!!\n"); } } - // 卖方设定为摆摊,清除买方状态 + // 鍗栨柟璁惧畾涓烘憜鎽,娓呴櫎涔版柟鐘舵 CHAR_setWorkInt(charaindex,CHAR_WORKSTREETVENDOR,-1); CHAR_setWorkInt(toindex,CHAR_WORKSTREETVENDOR,1); - // 清除交易图示 + // 娓呴櫎浜ゆ槗鍥剧ず CHAR_sendTradeEffect(charaindex,0); CHAR_sendTradeEffect(toindex,0); CHAR_send_P_StatusString(charaindex,CHAR_P_STRING_GOLD); @@ -10340,7 +10340,7 @@ void CHAR_sendStreetVendor(int charaindex,char *message) CHAR_setWorkInt(charaindex,CHAR_LOOKSTREETTIME,0); #endif } - else printf("StreetVendor交易找不到对方(%s)\n",CHAR_getChar(charaindex,CHAR_NAME)); + else printf("StreetVendor浜ゆ槗鎵句笉鍒板鏂(%s)\n",CHAR_getChar(charaindex,CHAR_NAME)); } } @@ -10348,7 +10348,7 @@ void CHAR_sendStreetVendorDataToCli(int charaindex,int toindex) { int i,count = 0; - // 送贩卖内容给玩家自己,要修改贩卖内容 + // 閫佽穿鍗栧唴瀹圭粰鐜╁鑷繁,瑕佷慨鏀硅穿鍗栧唴瀹 if(charaindex == toindex){ char szMsg[512],szTemp[512],szTemp1[16]; @@ -10366,7 +10366,7 @@ void CHAR_sendStreetVendorDataToCli(int charaindex,int toindex) sprintf(szMsg,"S|%d|%s",count,szTemp); lssproto_STREET_VENDOR_send(getfdFromCharaIndex(charaindex),szMsg); } - // 送贩卖大项和第一个贩卖物的细项内容给买家 + // 閫佽穿鍗栧ぇ椤瑰拰绗竴涓穿鍗栫墿鐨勭粏椤瑰唴瀹圭粰涔板 else{ int kind,index,itempetindex,firstindex = -1; char szName[32],szFreeName[32]; @@ -10377,38 +10377,38 @@ void CHAR_sendStreetVendorDataToCli(int charaindex,int toindex) if(CHAR_getStreetVendor(toindex,i,SV_USAGE) == TRUE){ kind = CHAR_getStreetVendor(toindex,i,SV_KIND); index = CHAR_getStreetVendor(toindex,i,SV_INDEX); - // 若是道具 + // 鑻ユ槸閬撳叿 if(kind == 0){ itempetindex = CHAR_getItemIndex(toindex,index); - // 道具不存在 + // 閬撳叿涓嶅瓨鍦 if(!ITEM_CHECKINDEX(itempetindex)){ CHAR_clearStreetVendor(toindex,i); - printf("\nCHAR_sendStreetVendorDataToCli():找不到道具!!!!!!!\n"); + printf("\nCHAR_sendStreetVendorDataToCli():鎵句笉鍒伴亾鍏!!!!!!!\n"); continue; } - if(strstr(ITEM_getChar(itempetindex,ITEM_NAME),"经验搜集丹")!=NULL) + if(strstr(ITEM_getChar(itempetindex,ITEM_NAME),"缁忛獙鎼滈泦涓")!=NULL) sprintf(szName,"%s",ITEM_getChar(itempetindex,ITEM_SECRETNAME)); else sprintf(szName,"%s",ITEM_getChar(itempetindex,ITEM_NAME)); - // szFreeName 在道具时是用来存贩卖的数量 + // szFreeName 鍦ㄩ亾鍏锋椂鏄敤鏉ュ瓨璐╁崠鐨勬暟閲 sprintf(szFreeName,"%d",CHAR_getStreetVendor(toindex,i,SV_PILE)); } - // 宠物 + // 瀹犵墿 else if(kind == 1){ itempetindex = CHAR_getCharPet(toindex,index); - // 宠物不存在 + // 瀹犵墿涓嶅瓨鍦 if(!CHAR_CHECKINDEX(itempetindex)){ CHAR_clearStreetVendor(toindex,i); - printf("\nCHAR_sendStreetVendorDataToCli():找不到宠物!!!!!!!\n"); + printf("\nCHAR_sendStreetVendorDataToCli():鎵句笉鍒板疇鐗!!!!!!!\n"); continue; } sprintf(szName,"%s",CHAR_getChar(itempetindex,CHAR_NAME)); sprintf(szFreeName,"%s",CHAR_getChar(itempetindex,CHAR_USERPETNAME)); } - // 错的内容 + // 閿欑殑鍐呭 else{ CHAR_clearStreetVendor(toindex,i); - printf("\nCHAR_sendStreetVendorDataToCli():错误内容!!!!!!!\n"); + printf("\nCHAR_sendStreetVendorDataToCli():閿欒鍐呭!!!!!!!\n"); continue; } if(firstindex == -1) firstindex = i; @@ -10436,15 +10436,15 @@ void CHAR_sendStreetVendorOneDataToCli(int charaindex,int toindex,int sendindex) memset(szTemp,0,sizeof(szTemp)); memset(szTemp1,0,sizeof(szTemp1)); - // 若是道具 + // 鑻ユ槸閬撳叿 if(kind == 0){ int crushe,maxcrushe,itemcolor; itempetindex = CHAR_getItemIndex(toindex,index); if(ITEM_CHECKINDEX(itempetindex)){ - // 说明 + // 璇存槑 #ifdef _TRADE_ITEM_FIX - if(getTradeItemFix()==1 && ( ITEM_getInt(itempetindex,ITEM_MERGEFLG)==TRUE || strstr(ITEM_getChar(itempetindex,ITEM_NAME),"合成")!=NULL ) ){ + if(getTradeItemFix()==1 && ( ITEM_getInt(itempetindex,ITEM_MERGEFLG)==TRUE || strstr(ITEM_getChar(itempetindex,ITEM_NAME),"鍚堟垚")!=NULL ) ){ sprintf(szTemp1," "); char attnum[16]; sprintf(attnum,""); @@ -10457,23 +10457,23 @@ void CHAR_sendStreetVendorOneDataToCli(int charaindex,int toindex,int sendindex) } } if(strcmp(szTemp1," ")==0){ - sprintf(szTemp1,"攻%s%d%s ",(ITEM_getInt(itempetindex,ITEM_MODIFYATTACK)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYATTACK),attnum); + sprintf(szTemp1,"鏀%s%d%s ",(ITEM_getInt(itempetindex,ITEM_MODIFYATTACK)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYATTACK),attnum); }else{ - sprintf(szTemp1,"%s攻%s%d%s ",szTemp1,(ITEM_getInt(itempetindex,ITEM_MODIFYATTACK)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYATTACK),attnum); + sprintf(szTemp1,"%s鏀%s%d%s ",szTemp1,(ITEM_getInt(itempetindex,ITEM_MODIFYATTACK)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYATTACK),attnum); } } if(ITEM_getInt(itempetindex,ITEM_MODIFYDEFENCE)!=0){ if(strcmp(szTemp1," ")==0){ - sprintf(szTemp1,"防%s%d ",(ITEM_getInt(itempetindex,ITEM_MODIFYDEFENCE)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYDEFENCE)); + sprintf(szTemp1,"闃%s%d ",(ITEM_getInt(itempetindex,ITEM_MODIFYDEFENCE)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYDEFENCE)); }else{ - sprintf(szTemp1,"%s防%s%d ",szTemp1,(ITEM_getInt(itempetindex,ITEM_MODIFYDEFENCE)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYDEFENCE)); + sprintf(szTemp1,"%s闃%s%d ",szTemp1,(ITEM_getInt(itempetindex,ITEM_MODIFYDEFENCE)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYDEFENCE)); } } if(ITEM_getInt(itempetindex,ITEM_MODIFYQUICK)!=0){ if(strcmp(szTemp1," ")==0){ - sprintf(szTemp1,"敏%s%d ",(ITEM_getInt(itempetindex,ITEM_MODIFYQUICK)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYQUICK)); + sprintf(szTemp1,"鏁%s%d ",(ITEM_getInt(itempetindex,ITEM_MODIFYQUICK)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYQUICK)); }else{ - sprintf(szTemp1,"%s敏%s%d ",szTemp1,(ITEM_getInt(itempetindex,ITEM_MODIFYQUICK)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYQUICK)); + sprintf(szTemp1,"%s鏁%s%d ",szTemp1,(ITEM_getInt(itempetindex,ITEM_MODIFYQUICK)>=0)?"+":"",ITEM_getInt(itempetindex,ITEM_MODIFYQUICK)); } } if(ITEM_getInt(itempetindex,ITEM_MAGICID)>0){ @@ -10497,12 +10497,12 @@ void CHAR_sendStreetVendorOneDataToCli(int charaindex,int toindex,int sendindex) sprintf(szTemp1,"%s|",ITEM_getChar(itempetindex,ITEM_EFFECTSTRING)); strcat(szTemp,szTemp1); - // 耐久度 + // 鑰愪箙搴 crushe = ITEM_getInt(itempetindex,ITEM_DAMAGECRUSHE); maxcrushe = ITEM_getInt(itempetindex,ITEM_MAXDAMAGECRUSHE); if(crushe < 1) crushe = 1; - if(maxcrushe < 1) sprintf(szTemp1,"不会损坏|"); //不会损坏 + if(maxcrushe < 1) sprintf(szTemp1,"涓嶄細鎹熷潖|"); //涓嶄細鎹熷潖 else{ maxcrushe = maxcrushe/1000; crushe = crushe/1000; @@ -10510,30 +10510,30 @@ void CHAR_sendStreetVendorOneDataToCli(int charaindex,int toindex,int sendindex) sprintf(szTemp1,"%d%%|",(int)((crushe*100)/maxcrushe)); } strcat(szTemp,szTemp1); - // 文字颜色 + // 鏂囧瓧棰滆壊 itemcolor = CHAR_COLORWHITE; if(strlen(ITEM_getChar(itempetindex,ITEM_CDKEY)) != 0) itemcolor = CHAR_COLORGREEN; else if(ITEM_getInt(itempetindex,ITEM_MERGEFLG)) itemcolor = CHAR_COLORYELLOW; sprintf(szTemp1,"%d|",itemcolor); strcat(szTemp,szTemp1); - // 图号 + // 鍥惧彿 sprintf(szTemp1,"%d|",ITEM_getInt(itempetindex,ITEM_BASEIMAGENUMBER)); strcat(szTemp,szTemp1); } - // 找不到道具 + // 鎵句笉鍒伴亾鍏 else{ CHAR_clearStreetVendor(toindex,sendindex); - printf("\nCHAR_sendStreetVendorOneDataToCli():找不到道具!!!!!!!\n"); + printf("\nCHAR_sendStreetVendorOneDataToCli():鎵句笉鍒伴亾鍏!!!!!!!\n"); return; } } - // 宠物 + // 瀹犵墿 else if(kind == 1){ int skillid,petskillindex; itempetindex = CHAR_getCharPet(toindex,index); if(CHAR_CHECKINDEX(itempetindex)){ - // 宠技 + // 瀹犳妧 for(i=0;i5)){ - CHAR_talkToCli(charaindex,-1,"已经超过拜师条件!",CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"宸茬粡瓒呰繃鎷滃笀鏉′欢锛",CHAR_COLORRED); break; } #endif CHAR_setChar(charaindex,CHAR_TEACHER_ID,CHAR_getChar(index,CHAR_CDKEY)); CHAR_setChar(charaindex,CHAR_TEACHER_NAME,CHAR_getChar(index,CHAR_NAME)); - sprintf(szMsg,"%s 已成为你的学生!",CHAR_getChar(charaindex,CHAR_NAME)); + sprintf(szMsg,"%s 宸叉垚涓轰綘鐨勫鐢燂紒",CHAR_getChar(charaindex,CHAR_NAME)); CHAR_talkToCli(index,-1,szMsg,CHAR_COLORWHITE); - sprintf(szMsg,"%s 已成为你的导师!",CHAR_getChar(index,CHAR_NAME)); + sprintf(szMsg,"%s 宸叉垚涓轰綘鐨勫甯堬紒",CHAR_getChar(index,CHAR_NAME)); CHAR_talkToCli(charaindex,-1,szMsg,CHAR_COLORWHITE); } break; - // 取消导师资格 已经出师 + // 鍙栨秷瀵煎笀璧勬牸 宸茬粡鍑哄笀 case 'C': { if((CHAR_getInt(charaindex,CHAR_TRANSMIGRATION)==6 && CHAR_getInt(charaindex,CHAR_LV)==160)){ @@ -10873,9 +10873,9 @@ void CHAR_Teacher_system(int charaindex,char *data) CHAR_setChar(charaindex,CHAR_TEACHER_NAME,""); #ifdef _STU_SYS CHAR_setInt(j,CHAR_STUNUM,CHAR_getInt(j,CHAR_STUNUM)+1); - sprintf(szMsg,"你的学生<%s>已经成功出师,你目前为止成功使%d名学生学业有成,加油!",CHAR_getChar(charaindex,CHAR_NAME),CHAR_getInt(j,CHAR_STUNUM)); + sprintf(szMsg,"浣犵殑瀛︾敓<%s>宸茬粡鎴愬姛鍑哄笀锛屼綘鐩墠涓烘鎴愬姛浣%d鍚嶅鐢熷涓氭湁鎴愶紝鍔犳补锛",CHAR_getChar(charaindex,CHAR_NAME),CHAR_getInt(j,CHAR_STUNUM)); CHAR_talkToCli(j,-1,szMsg,CHAR_COLORYELLOW); - CHAR_talkToCli(charaindex,-1,"你已经成功出师!",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"浣犲凡缁忔垚鍔熷嚭甯堬紒",CHAR_COLORYELLOW); return; #endif } @@ -10885,7 +10885,7 @@ void CHAR_Teacher_system(int charaindex,char *data) CHAR_setChar(charaindex,CHAR_TEACHER_ID,""); CHAR_setChar(charaindex,CHAR_TEACHER_NAME,""); - // 扣魅力值 + // 鎵i瓍鍔涘 CHAR_setInt(charaindex,CHAR_CHARM,iCharm < 0 ? 0:iCharm); CHAR_setWorkInt(charaindex,CHAR_WORKFIXCHARM,iCharm < 0 ? 0:iCharm); CHAR_send_P_StatusString(charaindex,CHAR_P_STRING_CHARM); @@ -10899,7 +10899,7 @@ void CHAR_Teacher_system_View(int charaindex,int iOnLine,char *data) { char szMsg[1024]; - // V|导师姓名|在不在线上|所在星系 + // V|瀵煎笀濮撳悕|鍦ㄤ笉鍦ㄧ嚎涓妡鎵鍦ㄦ槦绯 sprintf(szMsg,"V|%s|%d|%s",CHAR_getChar(charaindex,CHAR_TEACHER_NAME),iOnLine,data); lssproto_TEACHER_SYSTEM_send(getfdFromCharaIndex(charaindex),szMsg); } @@ -10936,33 +10936,33 @@ void check_TimeTicket() } tickettime = CHAR_getWorkInt( i, CHAR_WORKTICKETTIME); - // 刚入场 + // 鍒氬叆鍦 /*if( tickettime == 0 ) { - //CHAR_talkToCli( i, -1, "请在10秒内使用门票。", CHAR_COLORYELLOW); + //CHAR_talkToCli( i, -1, "璇峰湪锛戯紣绉掑唴浣跨敤闂ㄧエ銆", CHAR_COLORYELLOW); //CHAR_setWorkInt( i, CHAR_WORKTICKETTIME, nowtime+10); } else */ - // 时限20秒以上 + // 鏃堕檺20绉掍互涓 if( tickettime > 0 && tickettime > nowtime+20 ) { continue; } - // 时限不到20秒 + // 鏃堕檺涓嶅埌20绉 else if( tickettime < nowtime+20 && tickettime >= nowtime ) { - sprintf( msg, "时间票剩余时间%d秒。", tickettime - nowtime); + sprintf( msg, "鏃堕棿绁ㄥ墿浣欐椂闂%d绉掋", tickettime - nowtime); CHAR_talkToCli( i, -1, msg, CHAR_COLORYELLOW); } - // 超过时限 + // 瓒呰繃鏃堕檺 else if( tickettime < nowtime ) { // int floor, x, y; int totaltime; char msg[1024]; if( CHAR_getWorkInt( i, CHAR_WORKBATTLEMODE) == BATTLE_CHARMODE_NONE) { - CHAR_talkToCli( i, -1, "时间已到,谢谢光顾。", CHAR_COLORYELLOW); + CHAR_talkToCli( i, -1, "鏃堕棿宸插埌锛岃阿璋㈠厜椤俱", CHAR_COLORYELLOW); if( CHAR_getWorkInt( i, CHAR_WORKTICKETTIMESTART) > 0 ) { totaltime = nowtime - CHAR_getWorkInt( i, CHAR_WORKTICKETTIMESTART); - sprintf( msg, "总入场时间%d分%d秒。", totaltime/60, totaltime%60); + sprintf( msg, "鎬诲叆鍦烘椂闂%d鍒%d绉掋", totaltime/60, totaltime%60); CHAR_talkToCli( i, -1, msg, CHAR_COLORYELLOW); } CHAR_setWorkInt( i, CHAR_WORKTICKETTIME, 0); @@ -10978,8 +10978,8 @@ void check_TimeTicket() CHAR_warpToSpecificPoint( i, 2006, 20, 17); } else { - CHAR_talkToCli( i, -1, "时间已到,将於战斗结束时离开。", CHAR_COLORYELLOW); - // 移至 BATTLE_Exit() 处理 + CHAR_talkToCli( i, -1, "鏃堕棿宸插埌锛屽皢鏂兼垬鏂楃粨鏉熸椂绂诲紑銆", CHAR_COLORYELLOW); + // 绉昏嚦 BATTLE_Exit() 澶勭悊 } } } @@ -10994,7 +10994,7 @@ int CharaData( int sockfd, Char* ch ){ char outbuff[CHARDATASIZE]; // Char* ch; int charaindex=CONNECT_getCharaindex(sockfd); -// print("\n保存运行中的数据\n"); +// print("\n淇濆瓨杩愯涓殑鏁版嵁\n"); pLtime = localtime( &NowTime.tv_sec ); @@ -11004,7 +11004,7 @@ int CharaData( int sockfd, Char* ch ){ // strcpy( charId, CHAR_getChar( charaindex, CHAR_CDKEY ) ); CONNECT_getCdkey( sockfd, charId, sizeof(charId)); - print("账号:%s", charId); + print("璐﹀彿:%s", charId); hash = 0; for( j=0; j2) - print(" 升级异常 CHAR_setInt 等级:%d.%s :%s-%d\n", data, CHAR_getChar( index, CHAR_CDKEY),file, line); + print(" 鍗囩骇寮傚父 CHAR_setInt 绛夌骇:%d.%s :%s-%d\n", data, CHAR_getChar( index, CHAR_CDKEY),file, line); }*/ buf = CHAR_chara[index].data[element]; @@ -1489,7 +1489,7 @@ INLINE int CHAR_setWorkInt( int index ,CHAR_WORKDATAINT element, int data) return -1; } -// if(CHAR_getInt(index,CHAR_WHICHTYPE)==CHAR_TYPEPLAYER && element == CHAR_WORKOBJINDEX && CONNECT_getState(getfdFromCharaIndex(index))==LOGIN){ //修复OBJ错乱导致NPC和地图跳转点问题 +// if(CHAR_getInt(index,CHAR_WHICHTYPE)==CHAR_TYPEPLAYER && element == CHAR_WORKOBJINDEX && CONNECT_getState(getfdFromCharaIndex(index))==LOGIN){ //淇OBJ閿欎贡瀵艰嚧NPC鍜屽湴鍥捐烦杞偣闂 // if(CHECKOBJECTUSE( data )==TRUE){ // //print("\nobj=%d\n",data); // return -1; @@ -1623,7 +1623,7 @@ INLINE BOOL _CHAR_setFlg( char *file, int line, int index , CHAR_DATACHAR elemen elementnum = element / (sizeof( char )*8); bitnum = element % (sizeof( char )*8); - /* 樯及袄毛转 */ + /* 妯強琚勬瘺杞 */ buf = CHAR_chara[index].flg[elementnum] & CHAR_flgbitmaskpattern[bitnum]; @@ -1782,7 +1782,7 @@ INLINE CHAR_HaveSkill* CHAR_getCharHaveSkill( int index,int sindex ) return &CHAR_chara[index].haveSkill[sindex]; } //------------------------------------------------------------------------ -//人物index 技能位置 索引 +//浜虹墿index 鎶鑳戒綅缃 绱㈠紩 INLINE int _CHAR_getIntPSkill( char *file, int line, int index, int skillti, SKILL_DATAINT ti) { if( !CHAR_CHECKINDEX( index) ) return -1; @@ -1794,7 +1794,7 @@ INLINE int _CHAR_getIntPSkill( char *file, int line, int index, int skillti, SKI if( CHAR_chara[index].haveSkill[skillti].skill.data[ti] <= 0 ) return -1; return CHAR_chara[index].haveSkill[skillti].skill.data[ti]; } -//人物index 技能位置 索引 欲设定值 +//浜虹墿index 鎶鑳戒綅缃 绱㈠紩 娆茶瀹氬 INLINE void _CHAR_setIntPSkill( char *file, int line, int index, int skillti, SKILL_DATAINT ti, int data) { if( !CHAR_CHECKINDEX( index) ) return; @@ -1808,7 +1808,7 @@ INLINE void _CHAR_setIntPSkill( char *file, int line, int index, int skillti, SK } //------------------------------------------------------------------------ -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 int CHAR_getCharSkill( int index,int sindex ) { CHAR_HaveSkill* hskill; @@ -2084,11 +2084,11 @@ BOOL CHAR_initCharArray( int pnum, int petnum,int onum ) CHAR_charanum = pnum + petnum +onum; CHAR_chara = allocateMemory( sizeof( Char ) * CHAR_charanum ); if( CHAR_chara == NULL ){ - print("无法分配内存 !!\n"); + print("鏃犳硶鍒嗛厤鍐呭瓨 !!\n"); return FALSE; } //andy_log - print("分配 %4.2f MB 空间...", ((float)sizeof( Char )*CHAR_charanum)/1024/1024); + print("鍒嗛厤 %4.2f MB 绌洪棿...", ((float)sizeof( Char )*CHAR_charanum)/1024/1024); for( i = 0 ; i < CHAR_charanum ; i ++ ){ memset( &CHAR_chara[i], 0 , sizeof( Char )); @@ -2556,16 +2556,16 @@ BOOL CHAR_makeCharFromStringToArg( char* data, Char* one) char *sp2 = strstr( data, "ownt="); if( sp && sp2 ){ snprintf( name, sp2-sp-5, "%s", sp+5 ); - print("\n开始登陆人物名称:%s ", name ); + print("\n寮濮嬬櫥闄嗕汉鐗╁悕绉:%s ", name ); }else - print("\n开始登陆人物名称错误! "); + print("\n寮濮嬬櫥闄嗕汉鐗╁悕绉伴敊璇! "); if( data[strlen(data)-2] != '\n' ){ - print("\n 登陆错误!:%s ",data+strlen(data)-20 ); + print("\n 鐧婚檰閿欒!:%s ",data+strlen(data)-20 ); } if( strlen(name) > 16 ){ - print("人物名称过长!! 人物名称:%s 长度:%d ", name ,strlen(name) ); + print("浜虹墿鍚嶇О杩囬暱!! 浜虹墿鍚嶇О:%s 闀垮害:%d ", name ,strlen(name) ); } } @@ -2734,14 +2734,14 @@ BOOL CHAR_makeCharFromStringToArg( char* data, Char* one) if( ret == TRUE ){ int petindex = PET_initCharOneArray( &ch ); if( petindex < 0 ){ - print( "宠物制作失败。\n"); + print( "瀹犵墿鍒朵綔澶辫触銆俓n"); } one->unionTable.indexOfPet[petnumber] = petindex; goto NEXT; }else{ - LodBadPetString( data, "错误总计", petnumber); + LodBadPetString( data, "閿欒鎬昏", petnumber); - fprint( "错误 宠物字符串 无法作成\n"); + fprint( "閿欒 瀹犵墿瀛楃涓 鏃犳硶浣滄垚\n"); return FALSE; } } @@ -2755,13 +2755,13 @@ BOOL CHAR_makeCharFromStringToArg( char* data, Char* one) if( ret == TRUE ) { int petindex = PET_initCharOneArray( &ch ); if( petindex < 0 ) { - fprint( "错误 宠物 无法作成\n"); + fprint( "閿欒 瀹犵墿 鏃犳硶浣滄垚\n"); } one->indexOfPoolPet[petnumber] = petindex; goto NEXT; }else{ LodBadPetString( data, "err *total", petnumber); - fprint( "错误 合成宠物字符串 无法作成\n"); + fprint( "閿欒 鍚堟垚瀹犵墿瀛楃涓 鏃犳硶浣滄垚\n"); return FALSE; } } @@ -2784,13 +2784,13 @@ BOOL CHAR_makeCharFromStringToArg( char* data, Char* one) char *sp2 = strstr( data, "ownt="); if( sp && sp2 ){ snprintf( name, sp2-sp-5, "%s", sp+5 ); - print("\n登陆成功 人物名称:%s ", name ); + print("\n鐧婚檰鎴愬姛 浜虹墿鍚嶇О:%s ", name ); } else - print("\n登陆成功 人物名称错误! "); + print("\n鐧婚檰鎴愬姛 浜虹墿鍚嶇О閿欒! "); if( data[strlen(data)-2] != '\n' ){ - print("\n玩家登陆出错! "); + print("\n鐜╁鐧婚檰鍑洪敊! "); return FALSE; } } @@ -2845,7 +2845,7 @@ char* CHAR_makePetStringFromPetIndex( int petindex) linedata ); strlength += strlen( linedata ); if( strlength > sizeof( CHAR_petdataString ) ) { - fprint( "错误 宠物数据缓冲不足\n"); + fprint( "閿欒 瀹犵墿鏁版嵁缂撳啿涓嶈冻\n"); return "\0"; } } @@ -2861,7 +2861,7 @@ char* CHAR_makePetStringFromPetIndex( int petindex) sizeof( CHAR_petdataString ) - strlength, linedata ); strlength += strlen( linedata ); if( strlength > sizeof( CHAR_petdataString ) ) { - fprint( "错误 宠物数据缓冲不足\n"); + fprint( "閿欒 瀹犵墿鏁版嵁缂撳啿涓嶈冻\n"); return "\0"; } } @@ -2878,7 +2878,7 @@ char* CHAR_makePetStringFromPetIndex( int petindex) strlength += strlen( linedata ); if( strlength > sizeof( CHAR_petdataString ) ) { - fprint( "错误 宠物数据缓冲不足\n"); + fprint( "閿欒 瀹犵墿鏁版嵁缂撳啿涓嶈冻\n"); return "\0"; } } @@ -3012,7 +3012,7 @@ int CHAR_makePetFromStringToArg( char *src, Char *ch, int ti) return TRUE; } -#ifdef _PERSONAL_FAME // Arminius 8.30: 家族个人声望 +#ifdef _PERSONAL_FAME // Arminius 8.30: 瀹舵棌涓汉澹版湜 void CHAR_earnFame(int index, int fame) { @@ -3075,12 +3075,12 @@ void CHAR_DetainSameItem( int charaindex, int itemindex) LogItem( CHAR_getChar( charaindex, CHAR_NAME), CHAR_getChar( charaindex, CHAR_CDKEY), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else ITEM_getInt( itemindex, ITEM_ID), #endif - "SysDeleteSame(系统删除重覆道具)", + "SysDeleteSame(绯荤粺鍒犻櫎閲嶈閬撳叿)", CHAR_getInt( charaindex, CHAR_FLOOR), CHAR_getInt( charaindex, CHAR_X), CHAR_getInt( charaindex, CHAR_Y), @@ -3102,7 +3102,7 @@ void CHAR_DetainSamePet( int charaindex, int petindex) CHAR_getChar( charaindex, CHAR_CDKEY), CHAR_getChar( petindex, CHAR_NAME), CHAR_getInt( petindex, CHAR_LV), - "SysDeleteSame(删除重覆宠物)", + "SysDeleteSame(鍒犻櫎閲嶈瀹犵墿)", CHAR_getInt( charaindex, CHAR_FLOOR), CHAR_getInt( charaindex, CHAR_X), CHAR_getInt( charaindex, CHAR_Y), @@ -3180,7 +3180,7 @@ void CHAR_DetainSameUCodePoolItem( int charaindex, int itemindex, int Ti) } #endif -// Arminius 12.15 判断是否是男士 +// Arminius 12.15 鍒ゆ柇鏄惁鏄敺澹 int IsMale(int charindex) { int bbi=CHAR_getInt(charindex, CHAR_BASEBASEIMAGENUMBER); @@ -3197,7 +3197,7 @@ int IsMale(int charindex) { return 0; } -// Arminius 12.15 判断是否是女士 +// Arminius 12.15 鍒ゆ柇鏄惁鏄コ澹 int IsFemale(int charindex) { int bbi=CHAR_getInt(charindex, CHAR_BASEBASEIMAGENUMBER); @@ -3222,7 +3222,7 @@ BOOL CHAR_CanCureFlg( int charaindex, char *arg) if( getToxication( fd) == 1 ){ if( strstr( arg, "FALSE") == 0 ) { char buf[256]; - sprintf( buf,"因中毒无法补%s。", arg); + sprintf( buf,"鍥犱腑姣掓棤娉曡ˉ%s銆", arg); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORYELLOW); } return FALSE; @@ -3366,7 +3366,7 @@ INLINE int _CHAR_DelItem( char *file, int line, int charaindex, int ti, int num, #endif /* if( flg == 1 ){ - sprintf( token, "交出%s。", ITEM_getChar( itemindex, ITEM_NAME)); + sprintf( token, "浜ゅ嚭%s銆", ITEM_getChar( itemindex, ITEM_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); } */ @@ -3383,7 +3383,7 @@ INLINE int _CHAR_DelItem( char *file, int line, int charaindex, int ti, int num, int CHAR_getMaxHaveGold( int charaindex) { int MaxGold; -#ifdef _FIX_MAX_GOLD // WON ADD 增加人物金钱上限 +#ifdef _FIX_MAX_GOLD // WON ADD 澧炲姞浜虹墿閲戦挶涓婇檺 int trans = CHAR_getInt( charaindex, CHAR_TRANSMIGRATION); switch(trans){ case 0: @@ -3421,7 +3421,7 @@ INLINE int _CHAR_AddGold( char *file, int line, int charaindex, int gold) MyGold = CHAR_getInt( charaindex, CHAR_GOLD); MyGold = (MyGold>MaxGold)?MaxGold:MyGold; gold = (gold>MaxGold)?MaxGold:gold; - sprintf( token, "得到%d石币", gold); + sprintf( token, "寰楀埌%d鐭冲竵", gold); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); MyGold += gold; @@ -3432,11 +3432,11 @@ INLINE int _CHAR_AddGold( char *file, int line, int charaindex, int gold) MyGBGold += reGolds; MyGBGold = (MyGBGold > CHAR_MAXPERSONAGOLD)?CHAR_MAXPERSONAGOLD:MyGBGold; CHAR_setInt( charaindex, CHAR_PERSONAGOLD, MyGBGold); - sprintf( token,"存款:%d ,银行剩余:%d 。", reGolds, CHAR_getInt( charaindex, CHAR_PERSONAGOLD )); + sprintf( token,"瀛樻锛%d 锛岄摱琛屽墿浣欙細%d 銆", reGolds, CHAR_getInt( charaindex, CHAR_PERSONAGOLD )); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); LogBankStone( CHAR_getChar( charaindex, CHAR_NAME ), CHAR_getChar( charaindex, CHAR_CDKEY ), charaindex, reGolds, - "GB_Bank_save(宝箱)", + "GB_Bank_save(瀹濈)", CHAR_getInt( charaindex, CHAR_FLOOR), CHAR_getInt( charaindex, CHAR_X ), CHAR_getInt( charaindex, CHAR_Y ), CHAR_getInt( charaindex, CHAR_GOLD ), @@ -3461,7 +3461,7 @@ INLINE int _CHAR_DelGold( char *file, int line, int charaindex, int gold) gold = (gold>MaxGold)?MaxGold:gold; if( MyGold < gold ){ - sprintf( token, "没有足够的石币!(%d石币)", gold); + sprintf( token, "娌℃湁瓒冲鐨勭煶甯侊紒(%d鐭冲竵)", gold); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); return 0; } @@ -3525,7 +3525,7 @@ void CHAR_removeDepotItem( int charaindex) int i,itemindex; Char* ch = NULL; if( !CHAR_CHECKINDEX( charaindex) ) return; - if( !CHAR_CheckDepotItem( charaindex) ) return; //仓库未存在 + if( !CHAR_CheckDepotItem( charaindex) ) return; //浠撳簱鏈瓨鍦 ch = CHAR_getCharPointer( charaindex); if( ch == NULL ){ print( "removeDepotItem err ch == NULL :%d\n", charaindex); @@ -3673,7 +3673,7 @@ BOOL CHAR_SaveDepotItem( int charaindex) if( !CHAR_CHECKINDEX( charaindex) ) return FALSE; fd = getfdFromCharaIndex( charaindex); - if( !CHAR_CheckDepotItem( charaindex) ) return FALSE; //仓库未存在 + if( !CHAR_CheckDepotItem( charaindex) ) return FALSE; //浠撳簱鏈瓨鍦 if( (CdKey=CHAR_getChar( charaindex, CHAR_CDKEY)) == "\0" ) return FALSE; if( (databuf = CHAR_makeDepotItemFromCharIndex( charaindex)) == "\0" ){ CHAR_removeDepotItem( charaindex); @@ -3692,10 +3692,10 @@ BOOL CHAR_GetDepotItem( int meindex, int charaindex) if( !CHAR_CHECKINDEX( charaindex) ) return FALSE; fd = getfdFromCharaIndex( charaindex); - if( CHAR_CheckDepotItem( charaindex) ) return FALSE;//仓库已存在 + if( CHAR_CheckDepotItem( charaindex) ) return FALSE;//浠撳簱宸插瓨鍦 if( (CdKey=CHAR_getChar( charaindex, CHAR_CDKEY)) == "\0" ) return FALSE; - //向AC要仓库资料 + //鍚慉C瑕佷粨搴撹祫鏂 saacproto_ACCharGetPoolItem_send( acfd, meindex, charaindex, CONNECT_getFdid(fd), CdKey); return TRUE; } @@ -3764,7 +3764,7 @@ void CHAR_removeDepotPet( int charaindex) int i,petindex; Char* ch = NULL; if( !CHAR_CHECKINDEX( charaindex) ) return; - if( !CHAR_CheckDepotPet( charaindex) ) return; //仓库未存在 + if( !CHAR_CheckDepotPet( charaindex) ) return; //浠撳簱鏈瓨鍦 ch = CHAR_getCharPointer( charaindex); if( ch == NULL ){ print( "removeDepotPet err ch == NULL :%d\n", charaindex); @@ -3914,7 +3914,7 @@ BOOL CHAR_SaveDepotPet( int charaindex) if( !CHAR_CHECKINDEX( charaindex) ) return FALSE; fd = getfdFromCharaIndex( charaindex); - if( !CHAR_CheckDepotPet( charaindex) ) return FALSE; //仓库未存在 + if( !CHAR_CheckDepotPet( charaindex) ) return FALSE; //浠撳簱鏈瓨鍦 if( (CdKey=CHAR_getChar( charaindex, CHAR_CDKEY)) == "\0" ) return FALSE; if( (databuf = CHAR_makeDepotPetFromCharIndex( charaindex)) == "\0" ){ CHAR_removeDepotPet( charaindex); @@ -3933,10 +3933,10 @@ BOOL CHAR_GetDepotPet( int meindex, int charaindex) if( !CHAR_CHECKINDEX( charaindex) ) return FALSE; fd = getfdFromCharaIndex( charaindex); - if( CHAR_CheckDepotPet( charaindex) ) return FALSE;//仓库已存在 + if( CHAR_CheckDepotPet( charaindex) ) return FALSE;//浠撳簱宸插瓨鍦 if( (CdKey=CHAR_getChar( charaindex, CHAR_CDKEY)) == "\0" ) return FALSE; - //向AC要仓库资料 + //鍚慉C瑕佷粨搴撹祫鏂 saacproto_ACCharGetPoolPet_send( acfd, meindex, charaindex, CONNECT_getFdid(fd), CdKey); return TRUE; } @@ -4032,7 +4032,7 @@ int CHAR_Ride_CF_init() fp = fopen("data/ride.txt", "r"); if (fp == NULL) { - print("无法打开文件\n"); + print("鏃犳硶鎵撳紑鏂囦欢\n"); return FALSE; } BOOL ride=FALSE; @@ -4042,7 +4042,7 @@ int CHAR_Ride_CF_init() chop(line); if(line[0]=='#')continue; getStringFromIndexWithDelim(line,",", 1, buf, sizeof(buf)); - if(!strcmp(buf, "骑 宠")){ + if(!strcmp(buf, "楠 瀹")){ for(i=0;i arraysizeof(CHAR_eqimagetbl[0]) ) return -1; for( i=0 ; i 5 ) petrank = 0; - // 潸 + // 娼 vital = (float)(( LevelUpPoint >> 24 ) & 0xFF); str = (float)(( LevelUpPoint >> 16 ) & 0xFF); tgh = (float)(( LevelUpPoint >> 8 ) & 0xFF); dex = (float)(( LevelUpPoint >> 0 ) & 0xFF); - // ㄠㄟ荚ㄣ 扔奶戊夫毛蕊匀化备嫩 卞ㄠ箫允 + // 銊犮劅鑽氥劊 鎵斿ザ鎴婂か姣涜晩鍖鍖栧瀚 鍗炪劆绠厑 for( i = 0; i < 10; i ++ ){ Param[RAND( 0, 3 )] += 1.0; } - // 仿件弁卞方月 区及仿件母丞 + // 浠夸欢寮佸崬鏂规湀 鍖哄強浠夸欢姣嶄笧 fRand = (float)RAND( RankRandTbl[petrank].min, RankRandTbl[petrank].max ) * 0.01; - // 喃曰蕊曰禾奶件玄方曰煌遥 + // 鍠冩洶钑婃洶绂惧ザ浠剁巹鏂规洶鐓岄仴 vital = (float)vital * fRand + Param[0] * fRand; str = (float)str * fRand + Param[1] * fRand; tgh = (float)tgh * fRand + Param[2] * fRand; dex = (float)dex * fRand + Param[3] * fRand; - // 煌遥 + // 鐓岄仴 CHAR_setInt( petindex, CHAR_VITAL, CHAR_getInt( petindex, CHAR_VITAL ) + (int)vital ); CHAR_setInt( petindex, CHAR_STR, @@ -1433,7 +1433,7 @@ int CHAR_PetLevelUp( int petindex ) CHAR_setInt( petindex, CHAR_DEX, CHAR_getInt( petindex, CHAR_DEX ) + (int)dex ); - // CoolFish: 饲育家族声望更新 + // CoolFish: 楗茶偛瀹舵棌澹版湜鏇存柊 { int level = CHAR_getInt(petindex, CHAR_LV); int exp1 = 0, exp2 = 0; @@ -1453,8 +1453,8 @@ int CHAR_PetLevelUp( int petindex ) exp1 = CHAR_GetLevelExp( petindex, level); exp2 = CHAR_GetLevelExp( petindex, level - 1); -//#ifdef _PERSONAL_FAME // Arminius 8.30: 家族个人声望 -// feedpoint = (exp1 - exp2) / 20000; // 减半 +//#ifdef _PERSONAL_FAME // Arminius 8.30: 瀹舵棌涓汉澹版湜 +// feedpoint = (exp1 - exp2) / 20000; // 鍑忓崐 //#else // feedpoint = (exp1 - exp2) / 10000; //#endif @@ -1462,7 +1462,7 @@ int CHAR_PetLevelUp( int petindex ) int feedpoint; // CoolFish: 2001/10/03 int fd = getfdFromCharaIndex(ownerindex); -#ifdef _PERSONAL_FAME // Arminius 8.30: 家族个人声望 +#ifdef _PERSONAL_FAME // Arminius 8.30: 瀹舵棌涓汉澹版湜 #ifdef _PETUP_GET_EXP if(getPetUpGetExp()==1){ if(level>=131){ @@ -1483,8 +1483,8 @@ int CHAR_PetLevelUp( int petindex ) CHAR_earnFame(ownerindex, exp2 / 20000); sprintf(tmpbuf, "%d", exp2 / 20000); }else{ - CHAR_earnFame(ownerindex, 0); //个人声望 - sprintf(tmpbuf, "%d", 0); //家族获得声望 + CHAR_earnFame(ownerindex, 0); //涓汉澹版湜 + sprintf(tmpbuf, "%d", 0); //瀹舵棌鑾峰緱澹版湜 } #else CHAR_earnFame(ownerindex, exp2 / 20000); @@ -1536,7 +1536,7 @@ int CHAR_PetLevelUp( int petindex ) { int i; for(i=0;i 0){ - // 检查有没有导师 + // 妫鏌ユ湁娌℃湁瀵煎笀 if(strlen(CHAR_getChar(ownerindex,CHAR_TEACHER_ID)) > 0 && strlen(CHAR_getChar(ownerindex,CHAR_TEACHER_NAME)) > 0){ int iPlayernum = CHAR_getPlayerMaxNum(),i; char szMsg[128]; - // 检查导师在不在线上 + // 妫鏌ュ甯堝湪涓嶅湪绾夸笂 for(i=0;i 0 )return 0;//检查是否为融合宠 + CHAR_getInt( Subindex1, CHAR_FUSIONRAISE) > 0 )return 0;//妫鏌ユ槸鍚︿负铻嶅悎瀹 for( i=0; i<4; i++) { work[i] = 0; } if( PET_getBaseAndSkill( charaindex, Subindex1, base, petskill, 0) == FALSE ) return 0; - if( CHAR_getInt( Subindex1, CHAR_LV) < 80 ){//等级销弱 + if( CHAR_getInt( Subindex1, CHAR_LV) < 80 ){//绛夌骇閿寮 for( i=0; i<4; i++) { base[i] = base[i]*0.8; } @@ -1633,11 +1633,11 @@ int PETFUSION_FusionPetSub( int charaindex, int Subindex1, int Subindex2, int *w } if( CHAR_getInt( Subindex2, CHAR_FUSIONBEIT) == 1 || - CHAR_getInt( Subindex2, CHAR_FUSIONRAISE) > 0 )return 0;//检查是否为融合宠 + CHAR_getInt( Subindex2, CHAR_FUSIONRAISE) > 0 )return 0;//妫鏌ユ槸鍚︿负铻嶅悎瀹 if( PET_getBaseAndSkill( charaindex, Subindex2, base, NULL, 0) == FALSE ) return 0; - if( CHAR_getInt( Subindex2, CHAR_LV) < 80 ){//等级销弱 + if( CHAR_getInt( Subindex2, CHAR_LV) < 80 ){//绛夌骇閿寮 for( i=0; i<4; i++) { base[i] = base[i]*0.8; } @@ -1658,11 +1658,11 @@ BOOL PETFUSION_FusionPetMain( int charaindex, int Mainindex, int *work, int *ski return 0; } if( CHAR_getInt( Mainindex, CHAR_FUSIONBEIT) == 1 || - CHAR_getInt( Mainindex, CHAR_FUSIONRAISE) > 0 )return FALSE;//检查是否为融合宠 + CHAR_getInt( Mainindex, CHAR_FUSIONRAISE) > 0 )return FALSE;//妫鏌ユ槸鍚︿负铻嶅悎瀹 if( PET_getBaseAndSkill( charaindex, Mainindex, base, petskill, 0) == FALSE ) return -1; - if( CHAR_getInt( Mainindex, CHAR_LV) < 80 ){//等级销弱 + if( CHAR_getInt( Mainindex, CHAR_LV) < 80 ){//绛夌骇閿寮 for( i=0; i<4; i++) { base[i] = base[i]*0.8; } @@ -1704,7 +1704,7 @@ BOOL PETFUSION_DelPet( int toindex, int Mainindex, int Subindex1, int Subindex2, snprintf( szPet, sizeof( szPet ), "K%d", j); CHAR_sendStatusString( toindex, szPet ); - snprintf( msgbuf,sizeof( msgbuf), "交出%s。", CHAR_getChar( petindex[i], CHAR_NAME)); + snprintf( msgbuf,sizeof( msgbuf), "浜ゅ嚭%s銆", CHAR_getChar( petindex[i], CHAR_NAME)); CHAR_talkToCli( toindex, -1, msgbuf, CHAR_COLORYELLOW); LogPet( CHAR_getChar( toindex, CHAR_NAME ), @@ -1732,13 +1732,13 @@ int PETFUSION_Evolution( int charaindex, int petindex) int newindex=-1; CHAR_setInt( petindex, CHAR_FUSIONTIMELIMIT, -1); - sprintf( buf, "蛋〈%s〉孵化成", CHAR_getChar( petindex, CHAR_NAME)); + sprintf( buf, "铔嬨%s銆夊鍖栨垚", CHAR_getChar( petindex, CHAR_NAME)); newindex = EVOLUTION_createPetFromEnemyIndex( charaindex, petindex, 0); if( !CHAR_CHECKINDEX( newindex) ){ - CHAR_talkToCli( charaindex, -1, "宠物孵化发生错误。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "瀹犵墿瀛靛寲鍙戠敓閿欒銆", CHAR_COLORYELLOW); return -1; } - sprintf( buf1, "〈%s〉。", CHAR_getChar( newindex, CHAR_NAME)); + sprintf( buf1, "銆%s銆夈", CHAR_getChar( newindex, CHAR_NAME)); strcat( buf, buf1); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORYELLOW); @@ -1797,11 +1797,11 @@ int NPC_PetTransManGetAns( int total1, int total2, int LV, int rank ) #else if( LV > 140 ) LV = 140; #endif - total = ( (float)total1/100 ); // 玛蕾最高 total1=200 + total = ( (float)total1/100 ); // 鐜涜暰鏈楂 total1=200 total = total*total*total*total*total; if( total < 1 ) total = 0; - else total= total*1.3; // 所以total最大=41.6 最小=0 - Fx = (int)((5-rank)*1.2)+5; // rank=0~6 所以 Fx最大=11(rank=0)最小=4(rank=6) + else total= total*1.3; // 鎵浠otal鏈澶=41.6 鏈灏=0 + Fx = (int)((5-rank)*1.2)+5; // rank=0~6 鎵浠 Fx鏈澶=11(rank=0)鏈灏=4(rank=6) ans = (int)total + total2 + ((LV-TransLV)/Fx); //42+150+30/11=194 #ifdef _PET_2TRANS @@ -1929,7 +1929,7 @@ void CHAR_AutoChikulaStone( int charaindex, int Dflg) } #endif -#ifdef _STATUS_WATERWORD //水世界状态 +#ifdef _STATUS_WATERWORD //姘翠笘鐣岀姸鎬 void CHAR_CheckWaterStatus( int charaindex) { if( !CHAR_CHECKINDEX( charaindex) ) return; @@ -1943,7 +1943,7 @@ void CHAR_CheckWaterStatus( int charaindex) if( CHAR_getWorkInt( charaindex, CHAR_WORKSTATUSWATER) != 0 && CHAR_getWorkInt( charaindex, CHAR_WORKSTATUSWATER)%10 == 0 ){ char buf1[256]; - sprintf( buf1, "水中呼吸时间剩余%d分。", + sprintf( buf1, "姘翠腑鍛煎惛鏃堕棿鍓╀綑%d鍒嗐", CHAR_getWorkInt( charaindex, CHAR_WORKSTATUSWATER)); CHAR_talkToCli( charaindex, -1, buf1, CHAR_COLORYELLOW); } @@ -1953,7 +1953,7 @@ void CHAR_CheckWaterStatus( int charaindex) return; } if( CHAR_getWorkInt( charaindex, CHAR_WORKMAPFLOORTYPE) == 1 && - CHAR_getWorkInt( charaindex, CHAR_WORKSTATUSWATER) <= 0 ){//水世界 + CHAR_getWorkInt( charaindex, CHAR_WORKSTATUSWATER) <= 0 ){//姘翠笘鐣 char token[256]; int defhp=0; int maxhp = CHAR_getWorkInt( charaindex, CHAR_WORKMAXHP); @@ -1961,7 +1961,7 @@ void CHAR_CheckWaterStatus( int charaindex) defhp = (maxhp*0.033); if( defhp <= 0 ) defhp = 1; myhp = myhp - defhp; - sprintf( token, "因无法呼吸,扣%d HP。", defhp); + sprintf( token, "鍥犳棤娉曞懠鍚革紝鎵%d HP銆", defhp); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); if( myhp <= 0 ){ @@ -2016,22 +2016,22 @@ void CHAR_PlayerRide( int charaindex ) { int i,j; int MetamoList[5][13]={ - /*{ 小矮子 赛亚人 辫子男孩 酷哥 熊皮男 大个 小矮妹 熊皮妹 帽子妹 短发夹妹 手套女 辣妹 虎}, 此行为说明行 */ - { 100000, 100025, 100055, 100060, 100095, 100100, 100135, 100145, 100165, 100190, 100200, 100230, 309}, //红 - { 100005, 100030, 100050, 100065, 100085, 100115, 100120, 100140, 100170, 100195, 100210, 100225, 307}, //绿 - { 100010, 100035, 100045, 100070, 100090, 100110, 100125, 100150, 100160, 100185, 100215, 100220, 310}, //黄 - { 100015, 100020, 100040, 100075, 100080, 100105, 100130, 100155, 100175, 100180, 100205, 100235, 308}, //灰 - { 331 , 483 , 330 , 332 , 483 , 332 , 333 , 333 , 331 , 330 , 332 , 483 , 0 }, //雷 + /*{ 灏忕煯瀛 璧涗簹浜 杈瓙鐢峰 閰峰摜 鐔婄毊鐢 澶т釜 灏忕煯濡 鐔婄毊濡 甯藉瓙濡 鐭彂澶瑰 鎵嬪濂 杈e 铏巬, 姝よ涓鸿鏄庤 */ + { 100000, 100025, 100055, 100060, 100095, 100100, 100135, 100145, 100165, 100190, 100200, 100230, 309}, //绾 + { 100005, 100030, 100050, 100065, 100085, 100115, 100120, 100140, 100170, 100195, 100210, 100225, 307}, //缁 + { 100010, 100035, 100045, 100070, 100090, 100110, 100125, 100150, 100160, 100185, 100215, 100220, 310}, //榛 + { 100015, 100020, 100040, 100075, 100080, 100105, 100130, 100155, 100175, 100180, 100205, 100235, 308}, //鐏 + { 331 , 483 , 330 , 332 , 483 , 332 , 333 , 333 , 331 , 330 , 332 , 483 , 0 }, //闆 }; for(i=0;i<4;i++) for(j=0;j<12;j++) if(CHAR_getInt( charaindex, CHAR_BASEIMAGENUMBER) == MetamoList[i][j]){ - if(strstr( getPlayerRide(), "配套送虎加雷")){ + if(strstr( getPlayerRide(), "閰嶅閫佽檸鍔犻浄")){ setNewplayergivepet(3,MetamoList[i][12]); setNewplayergivepet(4,MetamoList[4][j]); - }else if(strstr( getPlayerRide(), "配套送雷")){ + }else if(strstr( getPlayerRide(), "閰嶅閫侀浄")){ setNewplayergivepet(4,MetamoList[4][j]); - }else if(strstr( getPlayerRide(), "配套送虎")){ + }else if(strstr( getPlayerRide(), "閰嶅閫佽檸")){ setNewplayergivepet(4,MetamoList[i][12]); } break; diff --git a/char/char_event.c b/char/char_event.c index 7a15e66..ab19da1 100644 --- a/char/char_event.c +++ b/char/char_event.c @@ -54,7 +54,7 @@ void CHAR_allpostwalk( int index ) BOOL CHAR_makeCADefaultString( int objindex,char* buf,int buflen, int act ) { char objindexbuf[64]; - /* 民尼永弁 */ + /* 姘戝凹姘稿紒 */ if( CHECKOBJECT(objindex) == FALSE ) return FALSE; if( OBJECT_getType(objindex) != OBJTYPE_CHARA ) return FALSE; snprintf( buf,buflen,"%s|%d|%d|%d|%d", @@ -260,8 +260,8 @@ void CHAR_sendWallDamage( int charaindex,int x, int y, int damage ) static struct ParamShow { - int paramindex; /* 由仿丢□正及奶件犯永弁旦 */ - char* offmessage; /* 匀凶凛及丢永本□斥 侬 */ + int paramindex; /* 鐢变豢涓⑩枴姝e強濂朵欢鐘案寮佹棪 */ + char* offmessage; /* 鍖鍑跺嚊鍙婁涪姘告湰鈻℃枼 渚 */ }pShow[]={ {CHAR_PARALYSIS, CHAR_RECOVERPARALYSISSTRING}, {CHAR_SLEEP, CHAR_RECOVERSILENCESTRING}, @@ -513,9 +513,9 @@ void CHAR_playerTalkedfunc( int charaindex, int talkindex,char* message, int col if( (channel>-1) && (fmindex>0) ){ if( channel == 0 ){ #ifndef _CHANNEL_MODIFY - snprintf( lastbuf,sizeof(lastbuf),"P|[族]%s", + snprintf( lastbuf,sizeof(lastbuf),"P|[鏃廬%s", #else - snprintf( lastbuf,sizeof(lastbuf),"P|F|[族]%s", + snprintf( lastbuf,sizeof(lastbuf),"P|F|[鏃廬%s", #endif makeEscapeString( CHAR_appendNameAndTitle(talkindex, message, mesgbuf,sizeof(mesgbuf)), escapebuf,sizeof(escapebuf) )); @@ -526,9 +526,9 @@ void CHAR_playerTalkedfunc( int charaindex, int talkindex,char* message, int col else if( channel == FAMILY_MAXCHANNEL && CHAR_getInt( talkindex, CHAR_FMLEADERFLAG ) == 1 ){ #endif #ifndef _CHANNEL_MODIFY - snprintf( lastbuf,sizeof(lastbuf),"P|[族长广播]%s", + snprintf( lastbuf,sizeof(lastbuf),"P|[鏃忛暱骞挎挱]%s", #else - snprintf( lastbuf,sizeof(lastbuf),"P|F|[族长广播]%s", + snprintf( lastbuf,sizeof(lastbuf),"P|F|[鏃忛暱骞挎挱]%s", #endif makeEscapeString(CHAR_appendNameAndTitle(talkindex, message,mesgbuf,sizeof(mesgbuf)), escapebuf,sizeof(escapebuf) )); @@ -540,7 +540,7 @@ void CHAR_playerTalkedfunc( int charaindex, int talkindex,char* message, int col }else{ #ifdef _CHANNEL_MODIFY if(CHAR_getFlg(talkindex,CHAR_ISPARTYCHAT) && (CHAR_getWorkInt(talkindex,CHAR_WORKPARTYMODE) != CHAR_PARTY_NONE)) - snprintf( lastbuf,sizeof(lastbuf),"P|T|[队]%s", + snprintf( lastbuf,sizeof(lastbuf),"P|T|[闃焆%s", makeEscapeString(CHAR_appendNameAndTitle(talkindex, message,mesgbuf,sizeof(mesgbuf)), escapebuf,sizeof(escapebuf) )); else diff --git a/char/char_item.c b/char/char_item.c index 1964a9f..abb2fb8 100644 --- a/char/char_item.c +++ b/char/char_item.c @@ -25,131 +25,131 @@ extern struct MissionTable missiontable[MAXMISSIONTABLE]; extern int itemLine; #ifdef _DROPSTAKENEW -#define CASINOTOKENID 20121 // 游乐场彩券代号 -#define MAXCASINOMAPNUM 150 // 游乐场地图上限 -#define MAXACCUMULATION 1000000 // 积分上限 +#define CASINOTOKENID 20121 // 娓镐箰鍦哄僵鍒镐唬鍙 +#define MAXCASINOMAPNUM 150 // 娓镐箰鍦哄湴鍥句笂闄 +#define MAXACCUMULATION 1000000 // 绉垎涓婇檺 typedef struct tagCasinoMapTable { - int casinofl; // 游乐场图层 - int casinox; // 游乐场X座标 - int casinoy; // 游乐场Y座标 - int casinotype; // 赌注类型 - int dropflag; // 是否可下注 flag - char casinoinfo[64]; // 赌注类型说明 - int accumulation; // 积分 - int stakenum; // 彩券数量 + int casinofl; // 娓镐箰鍦哄浘灞 + int casinox; // 娓镐箰鍦猴几搴ф爣 + int casinoy; // 娓镐箰鍦猴脊搴ф爣 + int casinotype; // 璧屾敞绫诲瀷 + int dropflag; // 鏄惁鍙笅娉 flag + char casinoinfo[64]; // 璧屾敞绫诲瀷璇存槑 + int accumulation; // 绉垎 + int stakenum; // 褰╁埜鏁伴噺 }CasinoMapTable; CasinoMapTable casinomap[MAXCASINOMAPNUM] = { - { 7008, 13, 13, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 14, 13, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 15, 13, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 16, 13, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 17, 13, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 13, 14, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 14, 14, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 15, 14, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 16, 14, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 17, 14, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 13, 15, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 14, 15, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 15, 15, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 16, 15, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 17, 15, DICE_BIG, 1, "骰子-大", 1, 0}, - { 7008, 8, 13, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 9, 13, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 10, 13, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 11, 13, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 12, 13, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 8, 14, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 9, 14, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 10, 14, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 11, 14, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 12, 14, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 8, 15, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 9, 15, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 10, 15, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 11, 15, DICE_SMALL, 1, "骰子-小", 1, 0}, - { 7008, 12, 15, DICE_SMALL, 1, "骰子-小", 1, 0}, + { 7008, 13, 13, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 14, 13, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 15, 13, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 16, 13, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 17, 13, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 13, 14, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 14, 14, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 15, 14, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 16, 14, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 17, 14, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 13, 15, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 14, 15, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 15, 15, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 16, 15, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 17, 15, DICE_BIG, 1, "楠板瓙锛嶅ぇ", 1, 0}, + { 7008, 8, 13, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 9, 13, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 10, 13, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 11, 13, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 12, 13, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 8, 14, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 9, 14, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 10, 14, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 11, 14, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 12, 14, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 8, 15, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 9, 15, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 10, 15, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 11, 15, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, + { 7008, 12, 15, DICE_SMALL, 1, "楠板瓙锛嶅皬", 1, 0}, - { 7005, 22, 21, PET_RACE1, 1, "竞速场-宠物1", 2, 0}, - { 7005, 23, 21, PET_RACE1, 1, "竞速场-宠物1", 2, 0}, - { 7005, 24, 21, PET_RACE1, 1, "竞速场-宠物1", 2, 0}, - { 7005, 25, 21, PET_RACE1, 1, "竞速场-宠物1", 2, 0}, - { 7005, 26, 21, PET_RACE1, 1, "竞速场-宠物1", 2, 0}, - { 7005, 27, 21, PET_RACE1, 1, "竞速场-宠物1", 2, 0}, - { 7005, 28, 21, PET_RACE1, 1, "竞速场-宠物1", 2, 0}, - { 7005, 22, 24, PET_RACE2, 1, "竞速场-宠物2", 2, 0}, - { 7005, 23, 24, PET_RACE2, 1, "竞速场-宠物2", 2, 0}, - { 7005, 24, 24, PET_RACE2, 1, "竞速场-宠物2", 2, 0}, - { 7005, 25, 24, PET_RACE2, 1, "竞速场-宠物2", 2, 0}, - { 7005, 26, 24, PET_RACE2, 1, "竞速场-宠物2", 2, 0}, - { 7005, 27, 24, PET_RACE2, 1, "竞速场-宠物2", 2, 0}, - { 7005, 28, 24, PET_RACE2, 1, "竞速场-宠物2", 2, 0}, - { 7005, 22, 27, PET_RACE3, 1, "竞速场-宠物3", 2, 0}, - { 7005, 23, 27, PET_RACE3, 1, "竞速场-宠物3", 2, 0}, - { 7005, 24, 27, PET_RACE3, 1, "竞速场-宠物3", 2, 0}, - { 7005, 25, 27, PET_RACE3, 1, "竞速场-宠物3", 2, 0}, - { 7005, 26, 27, PET_RACE3, 1, "竞速场-宠物3", 2, 0}, - { 7005, 27, 27, PET_RACE3, 1, "竞速场-宠物3", 2, 0}, - { 7005, 28, 27, PET_RACE3, 1, "竞速场-宠物3", 2, 0}, + { 7005, 22, 21, PET_RACE1, 1, "绔為熷満锛嶅疇鐗╋紤", 2, 0}, + { 7005, 23, 21, PET_RACE1, 1, "绔為熷満锛嶅疇鐗╋紤", 2, 0}, + { 7005, 24, 21, PET_RACE1, 1, "绔為熷満锛嶅疇鐗╋紤", 2, 0}, + { 7005, 25, 21, PET_RACE1, 1, "绔為熷満锛嶅疇鐗╋紤", 2, 0}, + { 7005, 26, 21, PET_RACE1, 1, "绔為熷満锛嶅疇鐗╋紤", 2, 0}, + { 7005, 27, 21, PET_RACE1, 1, "绔為熷満锛嶅疇鐗╋紤", 2, 0}, + { 7005, 28, 21, PET_RACE1, 1, "绔為熷満锛嶅疇鐗╋紤", 2, 0}, + { 7005, 22, 24, PET_RACE2, 1, "绔為熷満锛嶅疇鐗╋紥", 2, 0}, + { 7005, 23, 24, PET_RACE2, 1, "绔為熷満锛嶅疇鐗╋紥", 2, 0}, + { 7005, 24, 24, PET_RACE2, 1, "绔為熷満锛嶅疇鐗╋紥", 2, 0}, + { 7005, 25, 24, PET_RACE2, 1, "绔為熷満锛嶅疇鐗╋紥", 2, 0}, + { 7005, 26, 24, PET_RACE2, 1, "绔為熷満锛嶅疇鐗╋紥", 2, 0}, + { 7005, 27, 24, PET_RACE2, 1, "绔為熷満锛嶅疇鐗╋紥", 2, 0}, + { 7005, 28, 24, PET_RACE2, 1, "绔為熷満锛嶅疇鐗╋紥", 2, 0}, + { 7005, 22, 27, PET_RACE3, 1, "绔為熷満锛嶅疇鐗╋紦", 2, 0}, + { 7005, 23, 27, PET_RACE3, 1, "绔為熷満锛嶅疇鐗╋紦", 2, 0}, + { 7005, 24, 27, PET_RACE3, 1, "绔為熷満锛嶅疇鐗╋紦", 2, 0}, + { 7005, 25, 27, PET_RACE3, 1, "绔為熷満锛嶅疇鐗╋紦", 2, 0}, + { 7005, 26, 27, PET_RACE3, 1, "绔為熷満锛嶅疇鐗╋紦", 2, 0}, + { 7005, 27, 27, PET_RACE3, 1, "绔為熷満锛嶅疇鐗╋紦", 2, 0}, + { 7005, 28, 27, PET_RACE3, 1, "绔為熷満锛嶅疇鐗╋紦", 2, 0}, - { 7003, 21, 15, ROULETTE1, 1, "轮盘红1", 1, 0}, { 7003, 17, 15, ROULETTE3, 1, "轮盘红3", 1, 0}, - { 7003, 13, 15, ROULETTE5, 1, "轮盘红5", 1, 0}, { 7003, 21, 21, ROULETTE6, 1, "轮盘红6", 1, 0}, - { 7003, 17, 21, ROULETTE8, 1, "轮盘红8", 1, 0}, { 7003, 15, 21, ROULETTE9, 1, "轮盘红9", 1, 0}, - { 7003, 13, 21, ROULETTE10, 1, "轮盘红10", 1, 0}, { 7003, 13, 18, ROULETTE13, 1, "轮盘红13", 1, 0}, - { 7003, 9, 21, ROULETTE17, 1, "轮盘红17", 1, 0}, { 7003, 21, 18, ROULETTE18, 1, "轮盘红18", 1, 0}, + { 7003, 21, 15, ROULETTE1, 1, "杞洏绾紤", 1, 0}, { 7003, 17, 15, ROULETTE3, 1, "杞洏绾紦", 1, 0}, + { 7003, 13, 15, ROULETTE5, 1, "杞洏绾紩", 1, 0}, { 7003, 21, 21, ROULETTE6, 1, "杞洏绾紪", 1, 0}, + { 7003, 17, 21, ROULETTE8, 1, "杞洏绾紭", 1, 0}, { 7003, 15, 21, ROULETTE9, 1, "杞洏绾紮", 1, 0}, + { 7003, 13, 21, ROULETTE10, 1, "杞洏绾紤锛", 1, 0}, { 7003, 13, 18, ROULETTE13, 1, "杞洏绾紤锛", 1, 0}, + { 7003, 9, 21, ROULETTE17, 1, "杞洏绾紤锛", 1, 0}, { 7003, 21, 18, ROULETTE18, 1, "杞洏绾紤锛", 1, 0}, - { 7003, 19, 15, ROULETTE22, 1, "轮盘绿2", 1, 0}, { 7003, 15, 15, ROULETTE24, 1, "轮盘绿4", 1, 0}, - { 7003, 19, 21, ROULETTE27, 1, "轮盘绿7", 1, 0}, { 7003, 11, 15, ROULETTE31, 1, "轮盘绿11", 1, 0}, - { 7003, 9, 15, ROULETTE32, 1, "轮盘绿12", 1, 0}, { 7003, 11, 18, ROULETTE34, 1, "轮盘绿14", 1, 0}, - { 7003, 9, 18, ROULETTE35, 1, "轮盘绿15", 1, 0}, { 7003, 11, 21, ROULETTE36, 1, "轮盘绿16", 1, 0}, - { 7003, 19, 18, ROULETTE39, 1, "轮盘绿19", 1, 0}, { 7003, 17, 18, ROULETTE40, 1, "轮盘绿20", 1, 0}, - { 7003, 17, 24, ROULETTE41, 1, "轮盘红", 1, 0}, { 7003, 16, 24, ROULETTE41, 1, "轮盘红", 1, 0}, - { 7003, 17, 25, ROULETTE41, 1, "轮盘红", 1, 0}, { 7003, 16, 25, ROULETTE41, 1, "轮盘红", 1, 0}, - { 7003, 14, 24, ROULETTE42, 1, "轮盘绿", 1, 0}, { 7003, 13, 24, ROULETTE42, 1, "轮盘绿", 1, 0}, - { 7003, 14, 25, ROULETTE42, 1, "轮盘绿", 1, 0}, { 7003, 13, 25, ROULETTE42, 1, "轮盘绿", 1, 0}, + { 7003, 19, 15, ROULETTE22, 1, "杞洏缁匡紥", 1, 0}, { 7003, 15, 15, ROULETTE24, 1, "杞洏缁匡紨", 1, 0}, + { 7003, 19, 21, ROULETTE27, 1, "杞洏缁匡紬", 1, 0}, { 7003, 11, 15, ROULETTE31, 1, "杞洏缁匡紤锛", 1, 0}, + { 7003, 9, 15, ROULETTE32, 1, "杞洏缁匡紤锛", 1, 0}, { 7003, 11, 18, ROULETTE34, 1, "杞洏缁匡紤锛", 1, 0}, + { 7003, 9, 18, ROULETTE35, 1, "杞洏缁匡紤锛", 1, 0}, { 7003, 11, 21, ROULETTE36, 1, "杞洏缁匡紤锛", 1, 0}, + { 7003, 19, 18, ROULETTE39, 1, "杞洏缁匡紤锛", 1, 0}, { 7003, 17, 18, ROULETTE40, 1, "杞洏缁匡紥锛", 1, 0}, + { 7003, 17, 24, ROULETTE41, 1, "杞洏绾", 1, 0}, { 7003, 16, 24, ROULETTE41, 1, "杞洏绾", 1, 0}, + { 7003, 17, 25, ROULETTE41, 1, "杞洏绾", 1, 0}, { 7003, 16, 25, ROULETTE41, 1, "杞洏绾", 1, 0}, + { 7003, 14, 24, ROULETTE42, 1, "杞洏缁", 1, 0}, { 7003, 13, 24, ROULETTE42, 1, "杞洏缁", 1, 0}, + { 7003, 14, 25, ROULETTE42, 1, "杞洏缁", 1, 0}, { 7003, 13, 25, ROULETTE42, 1, "杞洏缁", 1, 0}, - // WON ADD 修正地图上单双的错误 - { 7003, 11, 24, ROULETTE43, 1, "轮盘单", 1, 0}, { 7003, 10, 24, ROULETTE43, 1, "轮盘单", 1, 0}, - { 7003, 11, 25, ROULETTE43, 1, "轮盘单", 1, 0}, { 7003, 10, 25, ROULETTE43, 1, "轮盘单", 1, 0}, - { 7003, 20, 24, ROULETTE44, 1, "轮盘双", 1, 0}, { 7003, 19, 24, ROULETTE44, 1, "轮盘双", 1, 0}, - { 7003, 20, 25, ROULETTE44, 1, "轮盘双", 1, 0}, { 7003, 19, 25, ROULETTE44, 1, "轮盘双", 1, 0}, + // WON ADD 淇鍦板浘涓婂崟鍙岀殑閿欒 + { 7003, 11, 24, ROULETTE43, 1, "杞洏鍗", 1, 0}, { 7003, 10, 24, ROULETTE43, 1, "杞洏鍗", 1, 0}, + { 7003, 11, 25, ROULETTE43, 1, "杞洏鍗", 1, 0}, { 7003, 10, 25, ROULETTE43, 1, "杞洏鍗", 1, 0}, + { 7003, 20, 24, ROULETTE44, 1, "杞洏鍙", 1, 0}, { 7003, 19, 24, ROULETTE44, 1, "杞洏鍙", 1, 0}, + { 7003, 20, 25, ROULETTE44, 1, "杞洏鍙", 1, 0}, { 7003, 19, 25, ROULETTE44, 1, "杞洏鍙", 1, 0}, - { 7003, 20, 15, (ROULETTE1<<16)+ROULETTE22, 1, "双号红1绿2", 1, 0}, - { 7003, 18, 15, (ROULETTE3<<16)+ROULETTE22, 1, "双号红3绿2", 1, 0}, - { 7003, 16, 15, (ROULETTE3<<16)+ROULETTE24, 1, "双号红3绿4", 1, 0}, - { 7003, 14, 15, (ROULETTE5<<16)+ROULETTE24, 1, "双号红5绿4", 1, 0}, - { 7003, 12, 15, (ROULETTE5<<16)+ROULETTE31, 1, "双号红5绿11", 1, 0}, - { 7003, 10, 15, (ROULETTE32<<16)+ROULETTE31, 1, "双号绿12绿11", 1, 0}, + { 7003, 20, 15, (ROULETTE1<<16)+ROULETTE22, 1, "鍙屽彿绾紤缁匡紥", 1, 0}, + { 7003, 18, 15, (ROULETTE3<<16)+ROULETTE22, 1, "鍙屽彿绾紦缁匡紥", 1, 0}, + { 7003, 16, 15, (ROULETTE3<<16)+ROULETTE24, 1, "鍙屽彿绾紦缁匡紨", 1, 0}, + { 7003, 14, 15, (ROULETTE5<<16)+ROULETTE24, 1, "鍙屽彿绾紩缁匡紨", 1, 0}, + { 7003, 12, 15, (ROULETTE5<<16)+ROULETTE31, 1, "鍙屽彿绾紩缁匡紤锛", 1, 0}, + { 7003, 10, 15, (ROULETTE32<<16)+ROULETTE31, 1, "鍙屽彿缁匡紤锛掔豢锛戯紤", 1, 0}, - { 7003, 20, 18, (ROULETTE18<<16)+ROULETTE39, 1, "双号红18绿19", 1, 0}, - { 7003, 18, 18, (ROULETTE40<<16)+ROULETTE39, 1, "双号绿20绿19", 1, 0}, - { 7003, 16, 18, (ROULETTE40<<16)+ROULETTE45, 1, "双号绿20黑00", 1, 0}, - { 7003, 14, 18, (ROULETTE13<<16)+ROULETTE45, 1, "双号红13黑00", 1, 0}, - { 7003, 12, 18, (ROULETTE13<<16)+ROULETTE34, 1, "双号红13绿14", 1, 0}, - { 7003, 10, 18, (ROULETTE35<<16)+ROULETTE34, 1, "双号绿15绿14", 1, 0}, + { 7003, 20, 18, (ROULETTE18<<16)+ROULETTE39, 1, "鍙屽彿绾紤锛樼豢锛戯紮", 1, 0}, + { 7003, 18, 18, (ROULETTE40<<16)+ROULETTE39, 1, "鍙屽彿缁匡紥锛愮豢锛戯紮", 1, 0}, + { 7003, 16, 18, (ROULETTE40<<16)+ROULETTE45, 1, "鍙屽彿缁匡紥锛愰粦锛愶紣", 1, 0}, + { 7003, 14, 18, (ROULETTE13<<16)+ROULETTE45, 1, "鍙屽彿绾紤锛撻粦锛愶紣", 1, 0}, + { 7003, 12, 18, (ROULETTE13<<16)+ROULETTE34, 1, "鍙屽彿绾紤锛撶豢锛戯紨", 1, 0}, + { 7003, 10, 18, (ROULETTE35<<16)+ROULETTE34, 1, "鍙屽彿缁匡紤锛曠豢锛戯紨", 1, 0}, - { 7003, 20, 21, (ROULETTE6<<16) +ROULETTE27, 1, "双号红6绿7", 1, 0}, - { 7003, 18, 21, (ROULETTE8<<16) +ROULETTE27, 1, "双号红8绿7", 1, 0}, - { 7003, 16, 21, (ROULETTE8<<16) + ROULETTE9, 1, "双号红8红9", 1, 0}, - { 7003, 14, 21, (ROULETTE10<<16)+ ROULETTE9, 1, "双号红10红9", 1, 0}, - { 7003, 12, 21, (ROULETTE10<<16)+ROULETTE36, 1, "双号红10绿16", 1, 0}, - { 7003, 10, 21, (ROULETTE17<<16)+ROULETTE36, 1, "双号红17绿16", 1, 0}, - { 7003, 8, 15, ROULETTE51, 1, "横列1", 1, 0}, //横列 - { 7003, 8, 18, ROULETTE52, 1, "横列2", 1, 0}, - { 7003, 8, 21, ROULETTE53, 1, "横列3", 1, 0}, - { 7003, 6, 15, ROULETTE61, 1, "号码1-10", 1, 0}, //1到10 - { 7003, 5, 15, ROULETTE61, 1, "号码1-10", 1, 0}, - { 7003, 6, 16, ROULETTE61, 1, "号码1-10", 1, 0}, - { 7003, 5, 16, ROULETTE61, 1, "号码1-10", 1, 0}, - { 7003, 24, 15, ROULETTE62, 1, "号码11-20", 1, 0}, //10到11 - { 7003, 23, 15, ROULETTE62, 1, "号码11-20", 1, 0}, - { 7003, 24, 16, ROULETTE62, 1, "号码11-20", 1, 0}, - { 7003, 23, 16, ROULETTE62, 1, "号码11-20", 1, 0}, - { 7003, 15, 18, ROULETTE45, 1, "轮盘(00)", 1, 0}, + { 7003, 20, 21, (ROULETTE6<<16) +ROULETTE27, 1, "鍙屽彿绾紪缁匡紬", 1, 0}, + { 7003, 18, 21, (ROULETTE8<<16) +ROULETTE27, 1, "鍙屽彿绾紭缁匡紬", 1, 0}, + { 7003, 16, 21, (ROULETTE8<<16) + ROULETTE9, 1, "鍙屽彿绾紭绾紮", 1, 0}, + { 7003, 14, 21, (ROULETTE10<<16)+ ROULETTE9, 1, "鍙屽彿绾紤锛愮孩锛", 1, 0}, + { 7003, 12, 21, (ROULETTE10<<16)+ROULETTE36, 1, "鍙屽彿绾紤锛愮豢锛戯紪", 1, 0}, + { 7003, 10, 21, (ROULETTE17<<16)+ROULETTE36, 1, "鍙屽彿绾紤锛楃豢锛戯紪", 1, 0}, + { 7003, 8, 15, ROULETTE51, 1, "妯垪锛", 1, 0}, //妯垪 + { 7003, 8, 18, ROULETTE52, 1, "妯垪锛", 1, 0}, + { 7003, 8, 21, ROULETTE53, 1, "妯垪锛", 1, 0}, + { 7003, 6, 15, ROULETTE61, 1, "鍙风爜锛戯紞锛戯紣", 1, 0}, //1鍒10 + { 7003, 5, 15, ROULETTE61, 1, "鍙风爜锛戯紞锛戯紣", 1, 0}, + { 7003, 6, 16, ROULETTE61, 1, "鍙风爜锛戯紞锛戯紣", 1, 0}, + { 7003, 5, 16, ROULETTE61, 1, "鍙风爜锛戯紞锛戯紣", 1, 0}, + { 7003, 24, 15, ROULETTE62, 1, "鍙风爜锛戯紤锛嶏紥锛", 1, 0}, //10鍒11 + { 7003, 23, 15, ROULETTE62, 1, "鍙风爜锛戯紤锛嶏紥锛", 1, 0}, + { 7003, 24, 16, ROULETTE62, 1, "鍙风爜锛戯紤锛嶏紥锛", 1, 0}, + { 7003, 23, 16, ROULETTE62, 1, "鍙风爜锛戯紤锛嶏紥锛", 1, 0}, + { 7003, 15, 18, ROULETTE45, 1, "杞洏(锛愶紣)", 1, 0}, }; #endif @@ -211,17 +211,17 @@ static void CHAR_sendItemDetachEvent( int charaindex,int itemid ) { char mesg[256]; - snprintf( mesg, sizeof( mesg), "卸下%s ", ITEM_getAppropriateName(itemid) ); + snprintf( mesg, sizeof( mesg), "鍗镐笅%s ", ITEM_getAppropriateName(itemid) ); CHAR_talkToCli(charaindex,-1,mesg,CHAR_COLORWHITE); #ifdef _ITEM_METAMO if( ITEM_getEquipPlace( charaindex, itemid) == CHAR_BODY && CHAR_getWorkInt( charaindex, CHAR_WORKITEMMETAMO) != 0 ) { CHAR_setWorkInt( charaindex, CHAR_WORKITEMMETAMO, 0); - CHAR_setWorkInt( charaindex, CHAR_WORKNPCMETAMO, 0 ); //与npc对话後的变身也要变回来 + CHAR_setWorkInt( charaindex, CHAR_WORKNPCMETAMO, 0 ); //涓巒pc瀵硅瘽寰岀殑鍙樿韩涔熻鍙樺洖鏉 CHAR_complianceParameter( charaindex); CHAR_sendCToArroundCharacter( CHAR_getWorkInt( charaindex , CHAR_WORKOBJINDEX )); CHAR_send_P_StatusString( charaindex , CHAR_P_STRING_BASEBASEIMAGENUMBER); - CHAR_talkToCli( charaindex, -1, "变身失效了!", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍙樿韩澶辨晥浜嗭紒", CHAR_COLORWHITE); } #endif #ifdef _ITEM_RIDE @@ -258,7 +258,7 @@ static void CHAR_sendItemDetachEvent( int charaindex,int itemid ) static void CHAR_sendItemAttachEvent( int charaindex,int itemid ) { char mesg[256]; - snprintf( mesg, sizeof( mesg), "装备%s ", + snprintf( mesg, sizeof( mesg), "瑁呭%s ", ITEM_getAppropriateName(itemid) ); CHAR_talkToCli(charaindex,-1,mesg,CHAR_COLORWHITE); { @@ -336,11 +336,11 @@ int CHAR_findEmptyItemBox( int index ) } -#define LACKOFCLASS {CHAR_talkToCli(index,-1,"能力不足无法装备。",CHAR_COLORWHITE);} -#define CANNOTEQUIP {CHAR_talkToCli(index,-1,"无法装备该项物品。",CHAR_COLORWHITE);} -#define CANNOTEQUIP2 {CHAR_talkToCli(index,-1,"无法同时装备两项同种类的物品。",CHAR_COLORWHITE);} -#define CANNOTEXCHANGE {CHAR_talkToCli(index,-1,"无法交换此两项物品。",CHAR_COLORWHITE);} -#define CANNOTMOVE {CHAR_talkToCli(index,-1,"无法移动该项物品。",CHAR_COLORWHITE);} +#define LACKOFCLASS {CHAR_talkToCli(index,-1,"鑳藉姏涓嶈冻鏃犳硶瑁呭銆",CHAR_COLORWHITE);} +#define CANNOTEQUIP {CHAR_talkToCli(index,-1,"鏃犳硶瑁呭璇ラ」鐗╁搧銆",CHAR_COLORWHITE);} +#define CANNOTEQUIP2 {CHAR_talkToCli(index,-1,"鏃犳硶鍚屾椂瑁呭涓ら」鍚岀绫荤殑鐗╁搧銆",CHAR_COLORWHITE);} +#define CANNOTEXCHANGE {CHAR_talkToCli(index,-1,"鏃犳硶浜ゆ崲姝や袱椤圭墿鍝併",CHAR_COLORWHITE);} +#define CANNOTMOVE {CHAR_talkToCli(index,-1,"鏃犳硶绉诲姩璇ラ」鐗╁搧銆",CHAR_COLORWHITE);} static BOOL CHAR_sendSIToCli( int charindex , int from , int to ) { @@ -376,7 +376,7 @@ static BOOL CHAR_moveItemFromItemBoxToEquip( int index, int fromindex, if( CHAR_getInt( index, CHAR_STR) < ITEM_getInt( fromid, ITEM_NEEDSTR) ) return FALSE; if( CHAR_getInt( index, CHAR_DEX) < ITEM_getInt( fromid, ITEM_NEEDDEX) ) return FALSE; if( CHAR_getInt( index, CHAR_TRANSMIGRATION) < ITEM_getInt( fromid, ITEM_NEEDTRANS) ) return FALSE; -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 if( ITEM_getInt( fromid, ITEM_NEEDPROFESSION) != 0 ){ if( CHAR_getInt( index, PROFESSION_CLASS ) != ITEM_getInt( fromid, ITEM_NEEDPROFESSION) ) return FALSE; @@ -388,13 +388,13 @@ static BOOL CHAR_moveItemFromItemBoxToEquip( int index, int fromindex, { if( CHAR_getWorkInt( index, CHAR_WORKITEMMETAMO) > 0 || CHAR_getWorkInt( index, CHAR_WORKNPCMETAMO) > 0 - || CHAR_getWorkInt( index, CHAR_WORKFOXROUND ) != -1){ //若是变成小狐狸 + || CHAR_getWorkInt( index, CHAR_WORKFOXROUND ) != -1){ //鑻ユ槸鍙樻垚灏忕嫄鐙 int armtype = ITEM_getInt( fromid, ITEM_TYPE ); if( armtype == ITEM_BOW || armtype == ITEM_BOUNDTHROW || armtype == ITEM_BREAKTHROW || armtype == ITEM_BOOMERANG) { - CHAR_talkToCli( index, -1, "变身无法使用远距离武器!", CHAR_COLORYELLOW ); + CHAR_talkToCli( index, -1, "鍙樿韩鏃犳硶浣跨敤杩滆窛绂绘鍣紒", CHAR_COLORYELLOW ); return FALSE; } } @@ -414,7 +414,7 @@ static BOOL CHAR_moveItemFromItemBoxToEquip( int index, int fromindex, strcmp( ITEM_getChar( fromid, ITEM_HEROINFO), missiontable[mindex].heroinfo) || strcmp( ITEM_getChar( fromid, ITEM_ANGELINFO), nameinfo) ) { - CHAR_talkToCli( index, -1, "这并不是属於你的信物,无法装备。", CHAR_COLORYELLOW ); + CHAR_talkToCli( index, -1, "杩欏苟涓嶆槸灞炴柤浣犵殑淇$墿锛屾棤娉曡澶囥", CHAR_COLORYELLOW ); return FALSE; } } @@ -511,7 +511,7 @@ int CHAR_getMyMaxPilenum( int charaindex) } /* -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 maxpile += CHAR_getInt( charaindex, ATTACHPILE ); #endif */ @@ -582,7 +582,7 @@ static BOOL CHAR_moveItemFromItemBoxToItemBox( int index, int fromindex, int toi int resetpoint = sasql_itemreset_query(itemid); if(resetpoint>=0){ char resetmsg[256]; - sprintf(resetmsg,"\n您确定需要还原【%s】么?\n\n还原此物品需要【%d】点\n\n确定的话请点击【OK】\n",ITEM_getChar(toid,ITEM_NAME),resetpoint); + sprintf(resetmsg,"\n鎮ㄧ‘瀹氶渶瑕佽繕鍘熴%s銆戜箞锛焅n\n杩樺師姝ょ墿鍝侀渶瑕併%d銆戠偣\n\n纭畾鐨勮瘽璇风偣鍑汇怬K銆慭n",ITEM_getChar(toid,ITEM_NAME),resetpoint); lssproto_WN_send( playfd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OKCANCEL, CHAR_WINDOWTYPE_RESETITEM, @@ -597,7 +597,7 @@ static BOOL CHAR_moveItemFromItemBoxToItemBox( int index, int fromindex, int toi WINDOW_BUTTONTYPE_CANCEL, -1, -1, - "此道具不能还原!"); + "姝ら亾鍏蜂笉鑳借繕鍘燂紒"); } } }else if(strcmp(itemarg,"ITEMDEL")==0){ @@ -605,7 +605,7 @@ static BOOL CHAR_moveItemFromItemBoxToItemBox( int index, int fromindex, int toi int resetpoint = sasql_itemdel_query(itemid); if(resetpoint>=0){ char resetmsg[256]; - sprintf(resetmsg,"\n您确定需要回收【%s】么?\n\n此物品回收可得【%d】点\n\n确定的话请点击【OK】\n",ITEM_getChar(toid,ITEM_NAME),resetpoint); + sprintf(resetmsg,"\n鎮ㄧ‘瀹氶渶瑕佸洖鏀躲%s銆戜箞锛焅n\n姝ょ墿鍝佸洖鏀跺彲寰椼%d銆戠偣\n\n纭畾鐨勮瘽璇风偣鍑汇怬K銆慭n",ITEM_getChar(toid,ITEM_NAME),resetpoint); lssproto_WN_send( playfd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OKCANCEL, CHAR_WINDOWTYPE_DELITEM, @@ -620,7 +620,7 @@ static BOOL CHAR_moveItemFromItemBoxToItemBox( int index, int fromindex, int toi WINDOW_BUTTONTYPE_CANCEL, -1, -1, - "此道具不能回收!"); + "姝ら亾鍏蜂笉鑳藉洖鏀讹紒"); } } } @@ -639,7 +639,7 @@ void CHAR_moveEquipItem( int index, int fromindex, int toindex ) #define MOVEITEM_ITEMTOEQUIP 1 << 1 #define MOVEITEM_ITEMTOITEM 1 << 2 - int fromid; /* item 匹及奶件犯永弁旦 */ + int fromid; /* item 鍖瑰強濂朵欢鐘案寮佹棪 */ unsigned int moved_any = 0; @@ -765,17 +765,17 @@ void CHAR_ItemUse( int charaindex, int to_charaindex, int haveitemindex ) int myviptype = CHAR_getInt(charaindex,CHAR_VIPRIDE); if(myviptype==0){ if(strstr(ITEM_getChar(itemindex,ITEM_NAME),"[VIP")!=NULL){ - CHAR_talkToCli( charaindex, -1, "会员等级不够,无法使用此装备。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浼氬憳绛夌骇涓嶅锛屾棤娉曚娇鐢ㄦ瑁呭銆", CHAR_COLORYELLOW ); return; } }else if(myviptype==1){ if(strstr(ITEM_getChar(itemindex,ITEM_NAME),"[VIP2]")!=NULL || strstr(ITEM_getChar(itemindex,ITEM_NAME),"[VIP3]")!=NULL){ - CHAR_talkToCli( charaindex, -1, "会员等级不够,无法使用此装备。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浼氬憳绛夌骇涓嶅锛屾棤娉曚娇鐢ㄦ瑁呭銆", CHAR_COLORYELLOW ); return; } }else if(myviptype==2){ if(strstr(ITEM_getChar(itemindex,ITEM_NAME),"[VIP3]")!=NULL){ - CHAR_talkToCli( charaindex, -1, "会员等级不够,无法使用此装备。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浼氬憳绛夌骇涓嶅锛屾棤娉曚娇鐢ㄦ瑁呭銆", CHAR_COLORYELLOW ); return; } } @@ -784,7 +784,7 @@ void CHAR_ItemUse( int charaindex, int to_charaindex, int haveitemindex ) return; } #ifdef _STREET_VENDOR - // 摆摊中不可使用道具 + // 鎽嗘憡涓笉鍙娇鐢ㄩ亾鍏 if(CHAR_getWorkInt(charaindex,CHAR_WORKSTREETVENDOR) > -1){ print("StreetVendor use item charaindex=%d,name=%s\n",charaindex,CHAR_getChar(charaindex,CHAR_NAME)); return; @@ -798,7 +798,7 @@ void CHAR_ItemUse( int charaindex, int to_charaindex, int haveitemindex ) } } } - //不等於料理 和 其他 + //涓嶇瓑鏂兼枡鐞 鍜 鍏朵粬 if( ITEM_getInt( itemindex,ITEM_TYPE) != ITEM_OTHER && ITEM_getInt( itemindex,ITEM_TYPE) != ITEM_DISH ) { CHAR_EquipPlace ep; @@ -839,14 +839,14 @@ void CHAR_ItemUse( int charaindex, int to_charaindex, int haveitemindex ) if( usefunc ){ { LogItem( - CHAR_getChar( charaindex, CHAR_NAME ), /* 平乓仿抩 */ + CHAR_getChar( charaindex, CHAR_NAME ), /* 骞充箵浠挎姪 */ CHAR_getChar( charaindex, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else - ITEM_getInt( itemindex, ITEM_ID ), /* 失奶泛丞?寞 */ + ITEM_getInt( itemindex, ITEM_ID ), /* 澶卞ザ娉涗笧?瀵 */ #endif - "Use(使用道具)", + "Use(浣跨敤閬撳叿)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -863,7 +863,7 @@ void CHAR_ItemUse( int charaindex, int to_charaindex, int haveitemindex ) { char ansmsg[256]; strcpysafe( ansmsg, sizeof(ansmsg), - "什麽也没有发生。"); + "浠楹戒篃娌℃湁鍙戠敓銆"); CHAR_talkToCli( charaindex, -1, ansmsg, CHAR_COLORWHITE ); } } @@ -941,17 +941,17 @@ BOOL CHAR_DropItemFXY( int charaindex, int itemcharaindex, int fl, return -3; { char tmpbuf[256]; - sprintf(tmpbuf,"丢弃 %s (道具消失时间%d秒)。",ITEM_getChar( itemindex, ITEM_NAME),getItemdeletetime()); + sprintf(tmpbuf,"涓㈠純 %s (閬撳叿娑堝け鏃堕棿%d绉)銆",ITEM_getChar( itemindex, ITEM_NAME),getItemdeletetime()); CHAR_talkToCli( charaindex, -1, tmpbuf, CHAR_COLORYELLOW ); LogItem( - CHAR_getChar( charaindex, CHAR_NAME ), /* 平乓仿 */ + CHAR_getChar( charaindex, CHAR_NAME ), /* 骞充箵浠 */ CHAR_getChar( charaindex, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else - ITEM_getInt( itemindex, ITEM_ID ), /* 失奶 丞 寞 */ + ITEM_getInt( itemindex, ITEM_ID ), /* 澶卞ザ 涓 瀵 */ #endif - "Drop(丢出道具)", + "Drop(涓㈠嚭閬撳叿)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -980,7 +980,7 @@ void CHAR_SendDropItem_Stats( int charaindex, int itemindex, int itemcharaindex, } if( 0 <= itemcharaindex && itemcharaindex < CHAR_STARTITEMARRAY && - CHAR_getInt( charaindex, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER ){ //如果丢弃物为装备 + CHAR_getInt( charaindex, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER ){ //濡傛灉涓㈠純鐗╀负瑁呭 if( ITEM_CHECKINDEX( itemindex) ) CHAR_sendItemDetachEvent( charaindex, itemindex ); @@ -1001,7 +1001,7 @@ void CHAR_DropStakeByDropItem( int charaindex, int itemcharaindex, int itemindex char tmpbuf[256]; dropflag = CHAR_getWorkInt( charaindex, CHAR_WORKSTAKEFLAG); if( dropflag >= MAXSTAKENUM){ - snprintf( tmpbuf, sizeof( tmpbuf), "你已经下注五次了,无法再下注!"); + snprintf( tmpbuf, sizeof( tmpbuf), "浣犲凡缁忎笅娉ㄤ簲娆′簡锛屾棤娉曞啀涓嬫敞锛"); CHAR_talkToCli(charaindex, -1, tmpbuf, CHAR_COLORYELLOW); return; } @@ -1009,7 +1009,7 @@ void CHAR_DropStakeByDropItem( int charaindex, int itemcharaindex, int itemindex if( CHAR_getInt( charaindex, CHAR_FLOOR) != casinomap[j].casinofl ) continue; if( x != casinomap[j].casinox || y != casinomap[j].casinoy ) continue; if( casinomap[j].dropflag == 0 ){ - CHAR_talkToCli( charaindex, -1, "现在无法下注!", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鐜板湪鏃犳硶涓嬫敞锛", CHAR_COLORYELLOW); return; }else{ int objindex; @@ -1018,8 +1018,8 @@ void CHAR_DropStakeByDropItem( int charaindex, int itemcharaindex, int itemindex ITEM_setInt( itemindex, ITEM_PUTTIME, NowTime.tv_sec+30*60); CHAR_sendWatchEvent( objindex, CHAR_ACTSTAND, NULL, 0, TRUE); casinoflag = 1; - snprintf(tmpbuf, sizeof(tmpbuf), "你在 %s 下注了一张彩券", casinomap[j].casinoinfo); - for(k = 0; k < MAXSTAKENUM; k++){//下注设定 + snprintf(tmpbuf, sizeof(tmpbuf), "浣犲湪 %s 涓嬫敞浜嗕竴寮犲僵鍒", casinomap[j].casinoinfo); + for(k = 0; k < MAXSTAKENUM; k++){//涓嬫敞璁惧畾 if(CHAR_getWorkInt(charaindex, CHAR_WORKSTAKETYPE1 + k) != 0) continue; CHAR_setWorkInt(charaindex, CHAR_WORKSTAKETYPE1 + k, casinomap[j].casinotype); dropflag++; @@ -1027,7 +1027,7 @@ void CHAR_DropStakeByDropItem( int charaindex, int itemcharaindex, int itemindex } CHAR_talkToCli(charaindex, -1, tmpbuf, CHAR_COLORYELLOW); #ifdef _FIX_GAMBLENUM - if (dropflag <= MAXSTAKENUM){ //做扣点的动作 + if (dropflag <= MAXSTAKENUM){ //鍋氭墸鐐圭殑鍔ㄤ綔 int nAcc = CHAR_getInt(charaindex, CHAR_GAMBLENUM); nAcc -= casinomap[j].accumulation; CHAR_setInt(charaindex, CHAR_GAMBLENUM, nAcc); @@ -1042,12 +1042,12 @@ void CHAR_DropStakeByDropItem( int charaindex, int itemcharaindex, int itemindex if( casinoflag == 0) return; LogItem(CHAR_getChar(charaindex, CHAR_NAME), CHAR_getChar(charaindex, CHAR_CDKEY), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else ITEM_getInt(itemindex, ITEM_ID), #endif - "StakeDrop(丢出彩券)", + "StakeDrop(涓㈠嚭褰╁埜)", CHAR_getInt(charaindex,CHAR_FLOOR), CHAR_getInt(charaindex,CHAR_X), CHAR_getInt(charaindex,CHAR_Y), @@ -1109,12 +1109,12 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) int fd = getfdFromCharaIndex( charaindex); if( fd == - 1 ) return; if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE ) != BATTLE_CHARMODE_NONE ){ - CHAR_talkToCli( charaindex, -1, "战斗状态中无法丢道具装备。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "鎴樻枟鐘舵佷腑鏃犳硶涓㈤亾鍏疯澶囥", CHAR_COLORYELLOW ); return; } -#ifdef _AVID_TRADETRYBUG //丢道具装备 +#ifdef _AVID_TRADETRYBUG //涓㈤亾鍏疯澶 if( CHAR_getWorkInt(charaindex, CHAR_WORKTRADEMODE) != CHAR_TRADE_FREE){ - CHAR_talkToCli( charaindex, -1, "交易状态中无法丢道具装备。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浜ゆ槗鐘舵佷腑鏃犳硶涓㈤亾鍏疯澶囥", CHAR_COLORYELLOW ); return; } #endif @@ -1124,15 +1124,15 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) #ifdef _LOCK_PET_ITEM char *arg = ITEM_getChar(itemindex, ITEM_NAME); if(arg[0] == '*'){ - CHAR_talkToCli( charaindex, -1, "绑定的物品不能丢弃!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "缁戝畾鐨勭墿鍝佷笉鑳戒涪寮冿紒", CHAR_COLORYELLOW ); return; } #endif #ifdef _NO_DROPITEM - if( strstr(ITEM_getChar(itemindex,ITEM_EFFECTSTRING),"绑定")){ + if( strstr(ITEM_getChar(itemindex,ITEM_EFFECTSTRING),"缁戝畾")){ if(CHAR_getWorkInt(charaindex,CHAR_DROPITEMCHARAINDEX)!=itemcharaindex){ char dropmsg[256]; - sprintf(dropmsg,"\n【%s】为绑定物品\n\n丢弃会直接消失!\n\n你确定要丢弃么?确定请按[OK]\n",ITEM_getChar(itemindex,ITEM_NAME)); + sprintf(dropmsg,"\n銆%s銆戜负缁戝畾鐗╁搧\n\n涓㈠純浼氱洿鎺ユ秷澶憋紒\n\n浣犵‘瀹氳涓㈠純涔堬紵纭畾璇锋寜[OK]\n",ITEM_getChar(itemindex,ITEM_NAME)); lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OKCANCEL, CHAR_WINDOWTYPE_DROPITEM, @@ -1148,7 +1148,7 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) if(ITEM_getInt(itemindex,ITEM_TIME)>0){ if(CHAR_getWorkInt(charaindex,CHAR_DROPITEMCHARAINDEX)!=itemcharaindex){ char dropmsg[256]; - sprintf(dropmsg,"\n【%s】为限时物品\n\n丢弃会直接消失!\n\n你确定要丢弃么?确定请按[OK]\n",ITEM_getChar(itemindex,ITEM_NAME)); + sprintf(dropmsg,"\n銆%s銆戜负闄愭椂鐗╁搧\n\n涓㈠純浼氱洿鎺ユ秷澶憋紒\n\n浣犵‘瀹氳涓㈠純涔堬紵纭畾璇锋寜[OK]\n",ITEM_getChar(itemindex,ITEM_NAME)); lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OKCANCEL, CHAR_WINDOWTYPE_DROPITEM, @@ -1176,14 +1176,14 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) //print ("\n%d,%d,%d\n",ITEM_NOT_DROP,ITEM_getInt(itemindex, ITEM_TYPEOFITEM),ITEM_NOT_DROP & ITEM_getInt(itemindex, ITEM_TYPEOFITEM)); if(ITEM_NOT_DROP & ITEM_getInt(itemindex, ITEM_TYPEOFITEM)){ char buf[256]; - sprintf( buf, "%s无法丢弃。", ITEM_getChar( itemindex, ITEM_NAME) ); + sprintf( buf, "%s鏃犳硶涓㈠純銆", ITEM_getChar( itemindex, ITEM_NAME) ); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORRED); return ; } #endif - //找出周围空间 + //鎵惧嚭鍛ㄥ洿绌洪棿 if( CHAR_FindAroundUsabilitySpace( charaindex, itemindex, &fl, &x, &y) == FALSE ){ - CHAR_talkToCli( charaindex, -1, "周围的地面已经满了。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "鍛ㄥ洿鐨勫湴闈㈠凡缁忔弧浜嗐", CHAR_COLORYELLOW ); return; } @@ -1199,9 +1199,9 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) beDropOne = 0; } #endif - //找到空间 + //鎵惧埌绌洪棿 ret = ITEM_eventDrop( itemindex, charaindex, itemcharaindex ); - if( ret == 1 || ITEM_getInt(itemindex,ITEM_TIME)>0){ //-1 物品不存在 1 消失 0 一般物品 + if( ret == 1 || ITEM_getInt(itemindex,ITEM_TIME)>0){ //-1 鐗╁搧涓嶅瓨鍦 1 娑堝け 0 涓鑸墿鍝 CHAR_SendDropItem_Stats( charaindex, itemindex, itemcharaindex, beDropOne); return; }else { @@ -1215,17 +1215,17 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) #endif { char tmpbuf[256]; - sprintf(tmpbuf,"丢弃 %s (道具消失时间%d秒)。",ITEM_getChar( itemindex, ITEM_NAME),getItemdeletetime()); + sprintf(tmpbuf,"涓㈠純 %s (閬撳叿娑堝け鏃堕棿%d绉)銆",ITEM_getChar( itemindex, ITEM_NAME),getItemdeletetime()); CHAR_talkToCli( charaindex, -1, tmpbuf, CHAR_COLORYELLOW ); LogItem( - CHAR_getChar( charaindex, CHAR_NAME ), /* 平乓仿 */ + CHAR_getChar( charaindex, CHAR_NAME ), /* 骞充箵浠 */ CHAR_getChar( charaindex, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else - ITEM_getInt( itemindex, ITEM_ID ), /* 失奶 丞 寞 */ + ITEM_getInt( itemindex, ITEM_ID ), /* 澶卞ザ 涓 瀵 */ #endif - "Drop(丢出道具)", + "Drop(涓㈠嚭閬撳叿)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -1251,9 +1251,9 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) if( !CHAR_CHECKINDEX( charaindex ) ) return; if( !ITEM_CHECKINDEX( itemindex) ) return; -#ifdef _AVID_TRADETRYBUG //丢道具装备 +#ifdef _AVID_TRADETRYBUG //涓㈤亾鍏疯澶 if( CHAR_getWorkInt(charaindex, CHAR_WORKTRADEMODE) != CHAR_TRADE_FREE){ - CHAR_talkToCli( charaindex, -1, "交易状态中无法丢道具装备。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浜ゆ槗鐘舵佷腑鏃犳硶涓㈤亾鍏疯澶囥", CHAR_COLORYELLOW ); return; } #endif @@ -1295,7 +1295,7 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) if(casinodropflag == 0){ #endif if( count_item > 80 || count_chara > 80 ) { - CHAR_talkToCli( charaindex, -1, "这里的物品已经太多了,不能再丢了。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "杩欓噷鐨勭墿鍝佸凡缁忓お澶氫簡锛屼笉鑳藉啀涓簡銆", CHAR_COLORYELLOW ); return; } #ifdef _DROPSTAKENEW @@ -1316,11 +1316,11 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) floor = CHAR_getInt( charaindex,CHAR_FLOOR ); { int ret; - if( 0 <= itemcharaindex && itemcharaindex < CHAR_STARTITEMARRAY ){ //如果丢弃物为装备 + if( 0 <= itemcharaindex && itemcharaindex < CHAR_STARTITEMARRAY ){ //濡傛灉涓㈠純鐗╀负瑁呭 CHAR_sendItemDetachEvent( charaindex, itemindex ); } ret = ITEM_eventDrop( itemindex, charaindex, itemcharaindex ); - if( ret == 1 ){ //-1 物品不存在 1 消失 0 一般物品 + if( ret == 1 ){ //-1 鐗╁搧涓嶅瓨鍦 1 娑堝け 0 涓鑸墿鍝 itemindex = -1; goto END; }else if( ret == -1 ){ @@ -1336,7 +1336,7 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) int x=CHAR_getInt(charaindex,CHAR_X)+dirx[i]; int y=CHAR_getInt(charaindex,CHAR_Y)+diry[i]; #ifdef _DROPSTAKENEW - // 判断物品是否为彩券 + // 鍒ゆ柇鐗╁搧鏄惁涓哄僵鍒 if(ITEM_getInt(itemindex, ITEM_ID) == CASINOTOKENID){ int j = 0, k = 0; int bdropstake = 0; @@ -1348,12 +1348,12 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) int dropflag = CHAR_getWorkInt(charaindex, CHAR_WORKSTAKEFLAG); casinoflag = 1; if(casinomap[j].dropflag == 0){ - CHAR_talkToCli(charaindex, -1, "现在无法下注!", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "鐜板湪鏃犳硶涓嬫敞锛", CHAR_COLORYELLOW); return; }else{ - snprintf(tmpbuf, sizeof(tmpbuf), "你在 %s 下注了一张彩券", casinomap[j].casinoinfo); + snprintf(tmpbuf, sizeof(tmpbuf), "浣犲湪 %s 涓嬫敞浜嗕竴寮犲僵鍒", casinomap[j].casinoinfo); if(dropflag >= MAXSTAKENUM){ - snprintf(tmpbuf, sizeof(tmpbuf), "你已经下注五次了,无法再下注!"); + snprintf(tmpbuf, sizeof(tmpbuf), "浣犲凡缁忎笅娉ㄤ簲娆′簡锛屾棤娉曞啀涓嬫敞锛"); CHAR_talkToCli(charaindex, -1, tmpbuf, CHAR_COLORYELLOW); return; } @@ -1372,7 +1372,7 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) } CHAR_talkToCli(charaindex, -1, tmpbuf, CHAR_COLORYELLOW); #ifdef _FIX_GAMBLENUM - //做扣点的动作 + //鍋氭墸鐐圭殑鍔ㄤ綔 if (dropflag <= MAXSTAKENUM){ int nAcc = CHAR_getInt(charaindex, CHAR_GAMBLENUM); nAcc -= casinomap[j].accumulation; @@ -1394,18 +1394,18 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) } } - // 此地方的彩券数量超过一张以上 + // 姝ゅ湴鏂圭殑褰╁埜鏁伴噺瓒呰繃涓寮犱互涓 if(bdropstake == 0 && casinoflag != 0){ CHAR_setItemIndex(charaindex, itemcharaindex ,-1); CHAR_sendItemDataOne(charaindex, itemcharaindex); LogItem(CHAR_getChar(charaindex, CHAR_NAME), CHAR_getChar(charaindex, CHAR_CDKEY), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else ITEM_getInt(itemindex, ITEM_ID), #endif - "StakeDrop(丢出彩券)", + "StakeDrop(涓㈠嚭褰╁埜)", CHAR_getInt(charaindex,CHAR_FLOOR), CHAR_getInt(charaindex,CHAR_X), CHAR_getInt(charaindex,CHAR_Y), @@ -1449,7 +1449,7 @@ void CHAR_DropItem( int charaindex, int itemcharaindex ) } #ifdef _DROPCHECK if( droped != 1 ) { - CHAR_talkToCli( charaindex, -1, "周围的地面已经满了。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "鍛ㄥ洿鐨勫湴闈㈠凡缁忔弧浜嗐", CHAR_COLORYELLOW ); return; } #endif @@ -1537,7 +1537,7 @@ static int CHAR_PickUpItemFXY( int charaindex, int fl ,int x , int y , } #endif #ifdef _DROPSTAKENEW - // 判断物品是否为彩券 + // 鍒ゆ柇鐗╁搧鏄惁涓哄僵鍒 if(ITEM_getInt(itemindex, ITEM_ID) == CASINOTOKENID){ int i = 0; int bdropstake = 0, casinoflag = 0, emptyitemindexinchara = -1; @@ -1548,12 +1548,12 @@ static int CHAR_PickUpItemFXY( int charaindex, int fl ,int x , int y , int pickupflag = 0; casinoflag = 1; if(casinomap[i].dropflag == 0){ - CHAR_talkToCli(charaindex, -1, "现在已经无法取回下注彩券了!", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "鐜板湪宸茬粡鏃犳硶鍙栧洖涓嬫敞褰╁埜浜嗭紒", CHAR_COLORYELLOW); return -1; } stakeflag = CHAR_getWorkInt(charaindex, CHAR_WORKSTAKEFLAG); if(stakeflag == 0){ - CHAR_talkToCli(charaindex, -1, "您并没有下注,所以无法取回彩券!", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "鎮ㄥ苟娌℃湁涓嬫敞锛屾墍浠ユ棤娉曞彇鍥炲僵鍒革紒", CHAR_COLORYELLOW); return -1; } for(j = 0; j < MAXSTAKENUM; j++){ @@ -1565,7 +1565,7 @@ static int CHAR_PickUpItemFXY( int charaindex, int fl ,int x , int y , stakeflag--; pickupflag = 1; #ifdef _FIX_GAMBLENUM - //做加点的动作 + //鍋氬姞鐐圭殑鍔ㄤ綔 { int nAcc = CHAR_getInt(charaindex, CHAR_GAMBLENUM); nAcc += casinomap[i].accumulation; @@ -1589,14 +1589,14 @@ static int CHAR_PickUpItemFXY( int charaindex, int fl ,int x , int y , }else CHAR_setWorkInt(charaindex, CHAR_WORKSTAKEFLAG, stakeflag); if(pickupflag == 0){ - CHAR_talkToCli(charaindex, -1, "您没有在此下注,所以无法取回彩券!", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "鎮ㄦ病鏈夊湪姝や笅娉紝鎵浠ユ棤娉曞彇鍥炲僵鍒革紒", CHAR_COLORYELLOW); return -1; } } } } - if(bdropstake == 0 && casinoflag != 0){// 此地方的彩券数量超过一张以上 + if(bdropstake == 0 && casinoflag != 0){// 姝ゅ湴鏂圭殑褰╁埜鏁伴噺瓒呰繃涓寮犱互涓 char tmpbuf[256]; if(emptyitemindexinchara != -1){ int itemid=-1, ret=-1; @@ -1609,18 +1609,18 @@ static int CHAR_PickUpItemFXY( int charaindex, int fl ,int x , int y , } } CHAR_sendItemDataOne(charaindex, emptyitemindexinchara); - snprintf(tmpbuf, sizeof(tmpbuf), "拾回%s,已将下注取消!", + snprintf(tmpbuf, sizeof(tmpbuf), "鎷惧洖%s锛屽凡灏嗕笅娉ㄥ彇娑堬紒", ITEM_getChar(itemindex, ITEM_NAME)); CHAR_talkToCli(charaindex, -1, tmpbuf, CHAR_COLORWHITE); - // 记录捡回记录 + // 璁板綍鎹″洖璁板綍 LogItem(CHAR_getChar(charaindex, CHAR_NAME), CHAR_getChar(charaindex, CHAR_CDKEY), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else ITEM_getInt(itemindex, ITEM_ID), #endif - "StakePickUp(捡起彩券)", + "StakePickUp(鎹¤捣褰╁埜)", CHAR_getInt(charaindex,CHAR_FLOOR), CHAR_getInt(charaindex,CHAR_X), CHAR_getInt(charaindex,CHAR_Y), @@ -1638,7 +1638,7 @@ static int CHAR_PickUpItemFXY( int charaindex, int fl ,int x , int y , sprintf(pickupchar,",%d,",ITEM_getInt(itemindex,ITEM_ID)); if(ITEM_getChar(itemindex,ITEM_FROMCDKEY)!=NULL && strstr(getPickItemId(),pickupchar)==NULL){ if(strcmp(CHAR_getChar(charaindex,CHAR_CDKEY),ITEM_getChar(itemindex,ITEM_FROMCDKEY))!=0){ - CHAR_talkToCli(charaindex, -1, "此道具不属于您所有,无法拾取。", CHAR_COLORWHITE); + CHAR_talkToCli(charaindex, -1, "姝ら亾鍏蜂笉灞炰簬鎮ㄦ墍鏈夛紝鏃犳硶鎷惧彇銆", CHAR_COLORWHITE); return -1; } } @@ -1731,7 +1731,7 @@ static int CHAR_PickUpItemFXY( int charaindex, int fl ,int x , int y , Char *ch; CHAR_setInt( pindex, CHAR_MAILMODE, CHAR_PETMAIL_NONE); CHAR_setInt( pindex, CHAR_PETMAILIDLETIME, 0); - PETMAIL_delPetMailTotalnums( 1); //手动捡起mail PET + PETMAIL_delPetMailTotalnums( 1); //鎵嬪姩鎹¤捣mail PET ch = CHAR_getCharPointer( pindex); if( ch != NULL ) { strcpysafe( ch->charfunctable[CHAR_LOOPFUNC].string, @@ -1833,11 +1833,11 @@ void CHAR_PickUpItem( int charaindex, int dir ) } } if(ITEM_getInt(contents, ITEM_ID) == CASINOTOKENID && dropflag == 1) - snprintf( mesg,sizeof(mesg), "拾回%s,已将下注取消!", + snprintf( mesg,sizeof(mesg), "鎷惧洖%s锛屽凡灏嗕笅娉ㄥ彇娑堬紒", ITEM_getAppropriateName(contents)); else #endif - snprintf( mesg,sizeof(mesg), "拾获 %s", + snprintf( mesg,sizeof(mesg), "鎷捐幏 %s", ITEM_getAppropriateName(contents) ); CHAR_talkToCli(charaindex,-1,mesg,CHAR_COLORWHITE); } @@ -1846,12 +1846,12 @@ void CHAR_PickUpItem( int charaindex, int dir ) LogItem( CHAR_getChar( charaindex, CHAR_NAME ), CHAR_getChar( charaindex, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О contents, #else ITEM_getInt(contents, ITEM_ID), #endif - "PickUp(捡起道具)", + "PickUp(鎹¤捣閬撳叿)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -1874,9 +1874,9 @@ void CHAR_PickUpItem( int charaindex, int dir ) { char mesg[256]; if( contents == 0 ) { - snprintf( mesg,sizeof(mesg), "无法再拾获Stone了。" ); + snprintf( mesg,sizeof(mesg), "鏃犳硶鍐嶆嬀鑾稴tone浜嗐" ); }else { - snprintf( mesg,sizeof(mesg), "拾获 %d Stone",contents ); + snprintf( mesg,sizeof(mesg), "鎷捐幏 %d Stone",contents ); } CHAR_talkToCli(charaindex,-1,mesg,CHAR_COLORWHITE); } @@ -1887,7 +1887,7 @@ void CHAR_PickUpItem( int charaindex, int dir ) CHAR_getChar( charaindex, CHAR_CDKEY ), contents, CHAR_getInt( charaindex, CHAR_GOLD ), - "PickUp(拾获金钱)", + "PickUp(鎷捐幏閲戦挶)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ) @@ -1895,7 +1895,7 @@ void CHAR_PickUpItem( int charaindex, int dir ) } return; break; - case 2: //宠物 + case 2: //瀹犵墿 CHAR_ObjectDelete(objindex); CHAR_setWorkInt( contents, CHAR_WORKOBJINDEX, -1); { @@ -1906,16 +1906,16 @@ void CHAR_PickUpItem( int charaindex, int dir ) p = CHAR_getChar( contents, CHAR_NAME); } - snprintf( mesg,sizeof(mesg), "拾获 %s", p); + snprintf( mesg,sizeof(mesg), "鎷捐幏 %s", p); CHAR_talkToCli(charaindex,-1,mesg,CHAR_COLORWHITE); } - // 矢永玄毛胶匀凶夫弘 + // 鐭㈡案鐜勬瘺鑳跺寑鍑跺か寮 LogPet( - CHAR_getChar( charaindex, CHAR_NAME ), /* 平乓仿 */ + CHAR_getChar( charaindex, CHAR_NAME ), /* 骞充箵浠 */ CHAR_getChar( charaindex, CHAR_CDKEY ), CHAR_getChar( contents, CHAR_NAME), CHAR_getInt( contents, CHAR_LV), - "PickUp(捡宠)", + "PickUp(鎹″疇)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -1926,7 +1926,7 @@ void CHAR_PickUpItem( int charaindex, int dir ) // Robin 0701 petFollow case 3: - /* 引歹曰卞仇木毛壅六午中丹 */ + /* 寮曟鏇板崬浠囨湪姣涘鍏崍涓腹 */ CHAR_ObjectDelete(objindex); CHAR_setWorkInt( contents, CHAR_WORKOBJINDEX, -1); { @@ -1937,16 +1937,16 @@ void CHAR_PickUpItem( int charaindex, int dir ) p = CHAR_getChar( contents, CHAR_NAME); } - snprintf( mesg,sizeof(mesg), "拾回 %s", p); + snprintf( mesg,sizeof(mesg), "鎷惧洖 %s", p); CHAR_talkToCli(charaindex,-1,mesg,CHAR_COLORWHITE); } - // 矢永玄毛胶匀凶夫弘 + // 鐭㈡案鐜勬瘺鑳跺寑鍑跺か寮 LogPet( - CHAR_getChar( charaindex, CHAR_NAME ), /* 平乓仿 */ + CHAR_getChar( charaindex, CHAR_NAME ), /* 骞充箵浠 */ CHAR_getChar( charaindex, CHAR_CDKEY ), CHAR_getChar( contents, CHAR_NAME), CHAR_getInt( contents, CHAR_LV), - "FollowPickUp(收回溜宠)", + "FollowPickUp(鏀跺洖婧滃疇)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -1958,19 +1958,19 @@ void CHAR_PickUpItem( int charaindex, int dir ) case -1: break; case -2: - CHAR_talkToCli( charaindex,-1,"道具栏已满。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex,-1,"閬撳叿鏍忓凡婊°", CHAR_COLORYELLOW); break; case -3: - CHAR_talkToCli( charaindex,-1,"宠物数已满。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex,-1,"瀹犵墿鏁板凡婊°", CHAR_COLORYELLOW); break; case -4: - CHAR_talkToCli( charaindex,-1,"无法照顾该宠物。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex,-1,"鏃犳硶鐓ч【璇ュ疇鐗┿", CHAR_COLORYELLOW); break; case -5: - CHAR_talkToCli( charaindex,-1,"无法拾获该宠物。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex,-1,"鏃犳硶鎷捐幏璇ュ疇鐗┿", CHAR_COLORYELLOW); break; case -6: - CHAR_talkToCli( charaindex,-1,"无法拾获该道具。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex,-1,"鏃犳硶鎷捐幏璇ラ亾鍏枫", CHAR_COLORYELLOW); break; default: return; @@ -1980,23 +1980,23 @@ void CHAR_PickUpItem( int charaindex, int dir ) } /*------------------------------------------------------------ - * 云嗯毛甄 隙烂匹 公丹午允月[CHAR_DropMoney井日及心匹银丹仪[ - * 娄醒 - * charaindex int 平乓仿奶件犯永弁旦 - * itemindex int 失奶 丞奶件犯永弁旦(平乓仿犯□正及 匹及) - * fl int 白夫失 + * 浜戝棷姣涚攧 闅欑儌鍖 鍏腹鍗堝厑鏈堬蓟CHAR_DropMoney浜曟棩鍙婂績鍖归摱涓逛华锛 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * itemindex int 澶卞ザ 涓炲ザ浠剁姱姘稿紒鏃(骞充箵浠跨姱鈻℃鍙 鍖瑰強) + * fl int 鐧藉か澶 * x int x * y int y - * force BOOL 仇及袄互恳分午 泫 允 - * objindex int* 中凶失奶 丞及 Object 匹及奶件犯弁永旦 - * 忒曰袄 - * 撩 (公氏卅卞云嗯毛 匀化中卅中) -1 - * 撩 (哗溥读卞分户) -2 - * 公木动陆及撩 -3 - * 撩 (公仇卞反公及汹及云嗯反聂允亢月) -4 - * 允匹卞职及失奶 丞互 切化中月 -5 - * 汹互 匹 [ -6 - * 岳 0 + * force BOOL 浠囧強琚勪簰鎭冲垎鍗 娉 鍏 + * objindex int* 涓嚩澶卞ザ 涓炲強 Object 鍖瑰強濂朵欢鐘紒姘告棪 + * 蹇掓洶琚 + * 鎾 (鍏皬鍗呭崬浜戝棷姣 鍖鍖栦腑鍗呬腑) -1 + * 鎾 (鍝楁亥璇诲崬鍒嗘埛) -2 + * 鍏湪鍔ㄩ檰鍙婃挬 -3 + * 鎾 (鍏粐鍗炲弽鍏強姹瑰強浜戝棷鍙嶈亗鍏佷孩鏈) -4 + * 鍏佸尮鍗炶亴鍙婂け濂 涓炰簰 鍒囧寲涓湀 -5 + * 姹逛簰 鍖 锛 -6 + * 宀 0 ------------------------------------------------------------*/ static BOOL CHAR_DropMoneyFXY( int charaindex, int amount, int fl , int x, int y, BOOL force, int* objindex ) @@ -2031,12 +2031,12 @@ static BOOL CHAR_DropMoneyFXY( int charaindex, int amount, int fl , int x, #ifdef _DEL_DROP_GOLD OBJECT_setTime( index, NowTime.tv_sec); #endif - if( amount >= 100 ){ /* 云嗯毛 中凶夫弘 */ - LogStone(-1,CHAR_getChar( charaindex, CHAR_NAME ), /* 平乓仿 */ - CHAR_getChar( charaindex, CHAR_CDKEY ), /* 交□扒□ID */ - amount, /* 嗯喊 */ + if( amount >= 100 ){ /* 浜戝棷姣 涓嚩澶紭 */ + LogStone(-1,CHAR_getChar( charaindex, CHAR_NAME ), /* 骞充箵浠 */ + CHAR_getChar( charaindex, CHAR_CDKEY ), /* 浜も枴鎵掆枴ID */ + amount, /* 鍡枈 */ CHAR_getInt( charaindex, CHAR_GOLD ), - "Drop(放置金钱)", + "Drop(鏀剧疆閲戦挶)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ) @@ -2047,12 +2047,12 @@ static BOOL CHAR_DropMoneyFXY( int charaindex, int amount, int fl , int x, if( force==TRUE ) continue; else - /* 允匹卞失奶 丞互丐月及匹分户 */ + /* 鍏佸尮鍗炲け濂 涓炰簰涓愭湀鍙婂尮鍒嗘埛 */ return -5; } } - /* 仇仇引匹谗琼允月午中丹仪反蕙筋瓒 允月 */ + /* 浠囦粐寮曞尮璋楃惣鍏佹湀鍗堜腑涓逛华鍙嶈暀绛嬬搾 鍏佹湀 */ { Object one; one.type = OBJTYPE_GOLD; @@ -2065,24 +2065,24 @@ static BOOL CHAR_DropMoneyFXY( int charaindex, int amount, int fl , int x, one.index = amount; *objindex = initObjectOne( &one ); - /* 左皮斥尼弁玄瓒 允月 */ + /* 宸︾毊鏂ュ凹寮佺巹鐡 鍏佹湀 */ if( *objindex == -1 ) - /* 瓒 撩 */ + /* 鐡 鎾 */ return -3; - /*云嗯毛蛹日允*/ + /*浜戝棷姣涜浌鏃ュ厑*/ CHAR_setInt(charaindex,CHAR_GOLD, (unsigned int)CHAR_getInt(charaindex,CHAR_GOLD ) - amount ); #ifdef _DEL_DROP_GOLD OBJECT_setTime( *objindex, NowTime.tv_sec); #endif - if( amount >= 100 ){ /* 云嗯毛 中凶夫弘 */ - LogStone(-1,CHAR_getChar( charaindex, CHAR_NAME ), /* 平乓仿 */ - CHAR_getChar( charaindex, CHAR_CDKEY ), /* 交□扒□ID */ - amount, /* 嗯喊 */ + if( amount >= 100 ){ /* 浜戝棷姣 涓嚩澶紭 */ + LogStone(-1,CHAR_getChar( charaindex, CHAR_NAME ), /* 骞充箵浠 */ + CHAR_getChar( charaindex, CHAR_CDKEY ), /* 浜も枴鎵掆枴ID */ + amount, /* 鍡枈 */ CHAR_getInt( charaindex, CHAR_GOLD ), - "Drop(放置金钱)", + "Drop(鏀剧疆閲戦挶)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ) @@ -2093,13 +2093,13 @@ static BOOL CHAR_DropMoneyFXY( int charaindex, int amount, int fl , int x, } /*------------------------------------------------------------ - * 云嗯毛 允楮醒[ 及蟆井日 允[ - * 娄醒 - * charaindex int 平乓仿奶件犯永弁旦 - * amount int 云嗯及汹 + * 浜戝棷姣 鍏佹ギ閱掞蓟 鍙婅焼浜曟棩 鍏侊蓟 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * amount int 浜戝棷鍙婃惫 * - * 忒曰袄 - * 卅仄 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_DropMoney( int charaindex, int amount ) { @@ -2119,9 +2119,9 @@ void CHAR_DropMoney( int charaindex, int amount ) if( !CHAR_CHECKINDEX( charaindex ) )return; -#ifdef _AVID_TRADETRYBUG //丢出石币 +#ifdef _AVID_TRADETRYBUG //涓㈠嚭鐭冲竵 if( CHAR_getWorkInt( charaindex, CHAR_WORKTRADEMODE) == CHAR_TRADE_TRADING ){ - CHAR_talkToCli( charaindex, -1, "交易状态中无法丢出石币。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浜ゆ槗鐘舵佷腑鏃犳硶涓㈠嚭鐭冲竵銆", CHAR_COLORYELLOW ); return; } #endif @@ -2164,7 +2164,7 @@ void CHAR_DropMoney( int charaindex, int amount ) int x = CHAR_getInt(charaindex,CHAR_X) + dirx[i]; int y = CHAR_getInt(charaindex,CHAR_Y) + diry[i]; -// CoolFish 2002/04/06 下注处不可丢置石币 +// CoolFish 2002/04/06 涓嬫敞澶勪笉鍙涪缃煶甯 #ifdef _DROPSTAKENEW { int j = 0; @@ -2174,7 +2174,7 @@ void CHAR_DropMoney( int charaindex, int amount ) { if (x == casinomap[j].casinox && y == casinomap[j].casinoy) { - CHAR_talkToCli(charaindex, -1, "这里不能放置石币!", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "杩欓噷涓嶈兘鏀剧疆鐭冲竵锛", CHAR_COLORYELLOW); return; } } @@ -2303,7 +2303,7 @@ int CHAR_pickupFollowPet( int charaindex, int pickupindex ) havepetindex = CHAR_getCharPetElement( charaindex); if( havepetindex == -1 ) { - CHAR_talkToCli(charaindex,-1,"宠物栏已满!无法拾回!",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"瀹犵墿鏍忓凡婊★紒鏃犳硶鎷惧洖锛",CHAR_COLORYELLOW); return FALSE; } @@ -2313,7 +2313,7 @@ int CHAR_pickupFollowPet( int charaindex, int pickupindex ) if( (pickupindex == -1) || (pickupindex == CHAR_getWorkInt( charaindex, CHAR_WORKPETFOLLOW ) ) ) CHAR_setWorkInt( charaindex, CHAR_WORKPETFOLLOW, -1 ); - /* CDKEY 午平乓仿 互域谯仄卅中午五反胶尹卅中 */ + /* CDKEY 鍗堝钩涔撲豢 浜掑煙璋粍鍗呬腑鍗堜簲鍙嶈兌灏瑰崊涓 */ if( strcmp( CHAR_getChar( petindex, CHAR_OWNERCDKEY), CHAR_getChar( charaindex, CHAR_CDKEY)) != 0 || strcmp( CHAR_getChar( petindex, CHAR_OWNERCHARANAME), CHAR_getChar( charaindex, CHAR_NAME)) != 0 ) { @@ -2363,16 +2363,16 @@ int CHAR_pickupFollowPet( int charaindex, int pickupindex ) if( strlen( p) == 0 ) { p = CHAR_getChar( petindex, CHAR_NAME); } - snprintf( mesg,sizeof(mesg), "拾回 %s", p); + snprintf( mesg,sizeof(mesg), "鎷惧洖 %s", p); CHAR_talkToCli(charaindex,-1,mesg,CHAR_COLORYELLOW); } - // 矢永玄毛胶匀凶夫弘 + // 鐭㈡案鐜勬瘺鑳跺寑鍑跺か寮 LogPet( - CHAR_getChar( charaindex, CHAR_NAME ), /* 平乓仿 */ + CHAR_getChar( charaindex, CHAR_NAME ), /* 骞充箵浠 */ CHAR_getChar( charaindex, CHAR_CDKEY ), CHAR_getChar( petindex, CHAR_NAME), CHAR_getInt( petindex, CHAR_LV), - "FollowPickUp(收回溜宠)", + "FollowPickUp(鏀跺洖婧滃疇)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -2406,7 +2406,7 @@ int NPC_MAPCLEANGOLD( int meindex , int floor) if(ITEM_getInt(itemindex, ITEM_ID) == CASINOTOKENID) { ITEM_endExistItemsOne( itemindex); OBJECT_setIndex( index, 0); - CHAR_ObjectDelete(index); //清除 + CHAR_ObjectDelete(index); //娓呴櫎 print(" clean( %d )", index ); } break; @@ -2419,8 +2419,8 @@ int NPC_MAPCLEANGOLD( int meindex , int floor) #endif #ifdef _DROPSTAKENEW -// casinotype : flg = 0 不分type,针对整层type做设定;扩充参数 -// mapdropflag : TRUE = 可以下注; +// casinotype : flg = 0 涓嶅垎type锛岄拡瀵规暣灞倀ype鍋氳瀹氾紱鎵╁厖鍙傛暟 +// mapdropflag : TRUE = 鍙互涓嬫敞; int SetCasinoMap(int npcindex, int casinotype, int mapdropflag) { int npcfloor = CHAR_getInt(npcindex, CHAR_FLOOR); @@ -2443,7 +2443,7 @@ int SetCasinoMap(int npcindex, int casinotype, int mapdropflag) return 1; } -// 计算积分 +// 璁$畻绉垎 int CasinoAccumulation(int charindex, int npcindex, int floor, int wincasinotype) { int i = 0; @@ -2459,7 +2459,7 @@ int CasinoAccumulation(int charindex, int npcindex, int floor, int wincasinotype if (casinomap[j].casinotype == wincasinotype) { #ifdef _FIX_GAMBLENUM - // 加 原本积分及WIN积分 + // 鍔 鍘熸湰绉垎鍙奧IN绉垎 accumulation = accumulation + casinomap[j].accumulation * 2; #else accumulation += casinomap[j].accumulation; @@ -2492,7 +2492,7 @@ int CasinoAccumulation(int charindex, int npcindex, int floor, int wincasinotype else if (accumulation > MAXACCUMULATION) accumulation = MAXACCUMULATION; CHAR_setInt(charindex, CHAR_GAMBLENUM, accumulation); - snprintf(tmpbuf, sizeof(tmpbuf), "您现在总共有%4d点游乐场积分", accumulation); + snprintf(tmpbuf, sizeof(tmpbuf), "鎮ㄧ幇鍦ㄦ诲叡鏈%4d鐐规父涔愬満绉垎", accumulation); CHAR_talkToCli(charindex, npcindex, tmpbuf, CHAR_COLORWHITE); return 1; } @@ -2509,14 +2509,14 @@ int CasinoPay(int npcindex, int wincasinotype) if (!CHAR_CHECKINDEX(i)) continue; if (CHAR_getInt(i, CHAR_FLOOR) == npcfloor) { - // 查询玩家是否有下注 + // 鏌ヨ鐜╁鏄惁鏈変笅娉 if (CHAR_getWorkInt(i, CHAR_WORKSTAKEFLAG) == 0) continue; - // 计算积分 + // 璁$畻绉垎 CasinoAccumulation(i, npcindex, npcfloor, wincasinotype); } } - // 清除此层地面彩券 + // 娓呴櫎姝ゅ眰鍦伴潰褰╁埜 for (i = 0; i < arraysizeof(casinomap); i++) { OBJECT object; @@ -2581,7 +2581,7 @@ void CHAR_movePetItem( int charaindex, int petid, int fromindex, int toindex ) toindex=ITEM_getInt( itemindex, ITEM_TYPE)-ITEM_PET_HEAD; }else if(toindex == -2){ if(fromindex=0 && toindex< CHAR_MAXPETITEMHAVE){//如果toindex 是到宠身上则 - //CHAR_talkToCli( charaindex, -1, "无法装备该项物品。", CHAR_COLORWHITE ); + if ( toindex>=0 && toindex< CHAR_MAXPETITEMHAVE){//濡傛灉toindex 鏄埌瀹犺韩涓婂垯 + //CHAR_talkToCli( charaindex, -1, "鏃犳硶瑁呭璇ラ」鐗╁搧銆", CHAR_COLORWHITE ); //return; INT_petfesion = 28;// } - //增加能脱下的模块 + //澧炲姞鑳借劚涓嬬殑妯″潡 /* int itemindexi;// - itemindexi = CHAR_getItemIndex( charaindex , toindex );//取出装备的内在索引 + itemindexi = CHAR_getItemIndex( charaindex , toindex );//鍙栧嚭瑁呭鐨勫唴鍦ㄧ储寮 if(itemindexi >= 0){ - CHAR_talkToCli( charaindex, -1, "无法装备该项物品。", CHAR_COLORWHITE ); + CHAR_talkToCli( charaindex, -1, "鏃犳硶瑁呭璇ラ」鐗╁搧銆", CHAR_COLORWHITE ); return; }*/ } //print("\nINT_petfesion %d = \n", INT_petfesion ); - allowpetitemtype = ITEM_getChar(itemindex,ITEM_PETEQUITALLOW);//允许装备 - forbitpetitemtype= ITEM_getChar(itemindex,ITEM_PETEQUITFORBIT);//不允许装备 + allowpetitemtype = ITEM_getChar(itemindex,ITEM_PETEQUITALLOW);//鍏佽瑁呭 + forbitpetitemtype= ITEM_getChar(itemindex,ITEM_PETEQUITFORBIT);//涓嶅厑璁歌澶 //print("\allowpetitemtype len %d = \n", arraysizeof(allowpetitemtype) ); //print("\forbitpetitemtype len %d = \n", arraysizeof(forbitpetitemtype) ); - { //允许装备 + { //鍏佽瑁呭 int tokenNo = 1 ; char tokenBuf[3]; BOOL ISCATFLG = FALSE; @@ -2643,14 +2643,14 @@ void CHAR_movePetItem( int charaindex, int petid, int fromindex, int toindex ) } tokenNo++; } - if(UseFisrtTokenFlg){//如果是使用限定表 - if(!FindFisrtTokenFlg){//如果发现可以使用 + if(UseFisrtTokenFlg){//濡傛灉鏄娇鐢ㄩ檺瀹氳〃 + if(!FindFisrtTokenFlg){//濡傛灉鍙戠幇鍙互浣跨敤 //if(!getStringFromIndexWithDelim(allowpetitemtype," ",tokenNo,tokenBuf,sizeof(tokenBuf))){ - CHAR_talkToCli( charaindex, -1, "无法装备该项物品。", CHAR_COLORWHITE ); + CHAR_talkToCli( charaindex, -1, "鏃犳硶瑁呭璇ラ」鐗╁搧銆", CHAR_COLORWHITE ); return; //} } - }else{//如果是使用排除表 + }else{//濡傛灉鏄娇鐢ㄦ帓闄よ〃 FindFisrtTokenFlg = FALSE; tokenNo = 1; while( getStringFromIndexWithDelim(forbitpetitemtype," ",tokenNo,tokenBuf,sizeof(tokenBuf))){ @@ -2665,8 +2665,8 @@ void CHAR_movePetItem( int charaindex, int petid, int fromindex, int toindex ) tokenNo++; } if(UseSecondTokenFlg){ - if(FindFisrtTokenFlg){//如果发现不可以使用 - CHAR_talkToCli( charaindex, -1, "无法装备该项物品3。", CHAR_COLORWHITE ); + if(FindFisrtTokenFlg){//濡傛灉鍙戠幇涓嶅彲浠ヤ娇鐢 + CHAR_talkToCli( charaindex, -1, "鏃犳硶瑁呭璇ラ」鐗╁搧3銆", CHAR_COLORWHITE ); return; } } @@ -2682,22 +2682,22 @@ void CHAR_movePetItem( int charaindex, int petid, int fromindex, int toindex ) int petitemindex = CHAR_getItemIndex( petindex, toindex ); int type=ITEM_getInt( charitemindex, ITEM_TYPE); if(CHAR_getInt(petindex, CHAR_VARIABLEAI) < 100){ - CHAR_talkToCli( charaindex, -1, "无法训服宠物装备该物品。", CHAR_COLORRED ); + CHAR_talkToCli( charaindex, -1, "鏃犳硶璁湇瀹犵墿瑁呭璇ョ墿鍝併", CHAR_COLORRED ); return; } if(typeITEM_PET_FEET || (type-ITEM_PET_HEAD) != toindex){ - CHAR_talkToCli( charaindex, -1, "无法装备该项物品。", CHAR_COLORWHITE ); + CHAR_talkToCli( charaindex, -1, "鏃犳硶瑁呭璇ラ」鐗╁搧銆", CHAR_COLORWHITE ); return; } if( CHAR_getInt( petindex, CHAR_LV) < ITEM_getInt( charitemindex, ITEM_LEVEL)){ - CHAR_talkToCli( charaindex, -1, "宠物等级尚未到达装备该项物品!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "瀹犵墿绛夌骇灏氭湭鍒拌揪瑁呭璇ラ」鐗╁搧锛", CHAR_COLORYELLOW ); return; } if( ITEM_CHECKINDEX( petitemindex)){ - sprintf( token, "宠物%s 卸下%s", CHAR_getChar( petindex, CHAR_NAME), ITEM_getChar( petitemindex, ITEM_NAME)); + sprintf( token, "瀹犵墿%s 鍗镐笅%s", CHAR_getChar( petindex, CHAR_NAME), ITEM_getChar( petitemindex, ITEM_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE ); } - sprintf( token, "宠物%s 装备%s", CHAR_getChar( petindex, CHAR_NAME), ITEM_getChar( charitemindex, ITEM_NAME)); + sprintf( token, "瀹犵墿%s 瑁呭%s", CHAR_getChar( petindex, CHAR_NAME), ITEM_getChar( charitemindex, ITEM_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE ); CHAR_setItemIndex( charaindex, fromindex, petitemindex ); CHAR_setItemIndex( petindex, toindex, charitemindex ); @@ -2707,22 +2707,22 @@ void CHAR_movePetItem( int charaindex, int petid, int fromindex, int toindex ) int charitemindex = CHAR_getItemIndex( charaindex, toindex ); int petitemindex = CHAR_getItemIndex( petindex, fromindex ); int type=ITEM_getInt( charitemindex, ITEM_TYPE); - sprintf( token, "宠物%s 卸下%s", CHAR_getChar( petindex, CHAR_NAME), ITEM_getChar( petitemindex, ITEM_NAME)); + sprintf( token, "瀹犵墿%s 鍗镐笅%s", CHAR_getChar( petindex, CHAR_NAME), ITEM_getChar( petitemindex, ITEM_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE ); if( ITEM_CHECKINDEX( charitemindex)){ if(CHAR_getInt(petindex, CHAR_VARIABLEAI) < 100){ - CHAR_talkToCli( charaindex, -1, "无法训服宠物装备该物品。", CHAR_COLORRED ); + CHAR_talkToCli( charaindex, -1, "鏃犳硶璁湇瀹犵墿瑁呭璇ョ墿鍝併", CHAR_COLORRED ); return; } if(typeITEM_PET_FEET || (type-ITEM_PET_HEAD) != toindex){ - CHAR_talkToCli( charaindex, -1, "无法装备该项物品。", CHAR_COLORWHITE ); + CHAR_talkToCli( charaindex, -1, "鏃犳硶瑁呭璇ラ」鐗╁搧銆", CHAR_COLORWHITE ); return; } if( CHAR_getInt( petindex, CHAR_LV) < ITEM_getInt( charitemindex, ITEM_LEVEL)){ - CHAR_talkToCli( charaindex, -1, "宠物等级尚未到达装备该项物品!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "瀹犵墿绛夌骇灏氭湭鍒拌揪瑁呭璇ラ」鐗╁搧锛", CHAR_COLORYELLOW ); return; } - sprintf( token, "宠物%s 装备%s", CHAR_getChar( petindex, CHAR_NAME), ITEM_getChar( charitemindex, ITEM_NAME)); + sprintf( token, "瀹犵墿%s 瑁呭%s", CHAR_getChar( petindex, CHAR_NAME), ITEM_getChar( charitemindex, ITEM_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE ); } CHAR_setItemIndex( charaindex, toindex, petitemindex ); @@ -2761,7 +2761,7 @@ void CHAR_CheckItemTime( int charaindex ){ timep = mktime(p); if(itemtime<=timep){ char itemname[128]; - sprintf(itemname,"您的道具:%s,由于时效已到,系统已收回。",ITEM_getChar(itemindex,ITEM_NAME)); + sprintf(itemname,"鎮ㄧ殑閬撳叿:%s锛岀敱浜庢椂鏁堝凡鍒帮紝绯荤粺宸叉敹鍥炪",ITEM_getChar(itemindex,ITEM_NAME)); CHAR_talkToCli( charaindex, -1, itemname, CHAR_COLORYELLOW ); CHAR_setItemIndex( charaindex, i ,-1); CHAR_sendItemDataOne( charaindex, i); diff --git a/char/char_party.c b/char/char_party.c index 412426b..f6d8db8 100644 --- a/char/char_party.c +++ b/char/char_party.c @@ -22,12 +22,12 @@ extern struct FM_PKFLOOR fmpkflnum[FAMILY_FMPKFLOOR]; /*------------------------------------------------------------ - * 由□ 奴楮 及末□旦 + * 鐢扁枴 濂存ギ 鍙婃湯鈻℃棪 ------------------------------------------------------------*/ /*------------------------------------------------------------ - * 坞中化中月由□ 奴 毛茧允 - * 卅仃木壬-1毛忒允[ + * 鍧炰腑鍖栦腑鏈堢敱鈻 濂 姣涜導鍏 + * 鍗呬粌鏈ㄥ,-1姣涘繏鍏侊蓟 ------------------------------------------------------------*/ int CHAR_getEmptyPartyArray( int charaindex) { @@ -73,10 +73,10 @@ int CHAR_getPartyNum( int charaindex) return i; } /*------------------------------------------------------------ - * 端卞由□ 奴卞 月质 + * 绔崬鐢扁枴 濂村崬 鏈堣川 * - * charaindex int 愤坌 - * targetindex int 月锹澎及谛 + * charaindex int 鎰ゅ潓 + * targetindex int 鏈堥敼婢庡強璋 ------------------------------------------------------------*/ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) { @@ -87,7 +87,7 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) int toindex; int parray; - /* 褪互中凶日娄匀舰曰请允 */ + /* 瑜簰涓嚩鏃ュ▌鍖鑸版洶璇峰厑 */ if( CHAR_getWorkInt( targetindex, CHAR_WORKPARTYMODE) == CHAR_PARTY_NONE ) { toindex = targetindex; } @@ -104,19 +104,19 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) return FALSE; } #endif - /* 锹澎由□ 奴及谛醒反 井" */ + /* 閿规編鐢扁枴 濂村強璋涢啋鍙 浜曪紓 */ parray = CHAR_getEmptyPartyArray( toindex) ; if( parray == -1 ) { print( "%s : %d err\n", __FILE__,__LINE__); return; } - //组队BUG + //缁勯槦BUG int pi; for( pi = 0; pi < CHAR_PARTYMAX; pi ++ ) { int index = CHAR_getWorkInt( toindex, pi + CHAR_WORKPARTYINDEX1); if( CHAR_CHECKINDEX(index)) { - if(index == charaindex) return; //组队BUG + if(index == charaindex) return; //缁勯槦BUG } } #ifdef _WARNPC_CTRL @@ -143,7 +143,7 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) if(ip==toip){ ipcnt++; if(ipcnt>sameipnum){ - CHAR_talkToCli( charaindex, -1, "此地图允许的单IP组队已达上限,无法加入。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "姝ゅ湴鍥惧厑璁哥殑鍗旾P缁勯槦宸茶揪涓婇檺锛屾棤娉曞姞鍏ャ", CHAR_COLORYELLOW); return; } else @@ -158,7 +158,7 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) if(ip==toip){ ipcnt++; if(ipcnt>sameipnum){ - CHAR_talkToCli( charaindex, -1, "此地图允许的单IP组队已达上限,无法加入。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "姝ゅ湴鍥惧厑璁哥殑鍗旾P缁勯槦宸茶揪涓婇檺锛屾棤娉曞姞鍏ャ", CHAR_COLORYELLOW); return; } } @@ -176,7 +176,7 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) time_t timep; struct tm *p; time(&timep); - p=localtime(&timep); /*取得当地时间*/ + p=localtime(&timep); /*鍙栧緱褰撳湴鏃堕棿*/ int day=p->tm_wday; int hour=p->tm_hour; if(hour < 2) day = day - 1; @@ -185,7 +185,7 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) if( CHAR_getWorkInt( toindex, CHAR_WORKPARTYMODE) == CHAR_PARTY_NONE ) { partycnt++; if(partycnt>day){ - CHAR_talkToCli( charaindex, -1, "本地图限制组队人数已达上限,周一为1人,周二为2人,周三为3人,周四为4人,其余无限制。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鏈湴鍥鹃檺鍒剁粍闃熶汉鏁板凡杈句笂闄愶紝鍛ㄤ竴涓1浜猴紝鍛ㄤ簩涓2浜猴紝鍛ㄤ笁涓3浜猴紝鍛ㄥ洓涓4浜猴紝鍏朵綑鏃犻檺鍒躲", CHAR_COLORYELLOW); return; } else @@ -196,7 +196,7 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) if( CHAR_CHECKINDEX(index)) { partycnt++; if(partycnt>day){ - CHAR_talkToCli( charaindex, -1, "本地图限制组队人数已达上限,周一为1人,周二为2人,周三为3人,周四为4人,其余无限制。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鏈湴鍥鹃檺鍒剁粍闃熶汉鏁板凡杈句笂闄愶紝鍛ㄤ竴涓1浜猴紝鍛ㄤ簩涓2浜猴紝鍛ㄤ笁涓3浜猴紝鍛ㄥ洓涓4浜猴紝鍏朵綑鏃犻檺鍒躲", CHAR_COLORYELLOW); return; } } @@ -205,11 +205,11 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) } } #endif - /* 窒手 仄 褪及凛反褪卞卅匀凶CA毛霜耨允月 */ + /* 绐掓墜 浠 瑜強鍑涘弽瑜崬鍗呭寑鍑禖A姣涢湝鑰ㄥ厑鏈 */ if( CHAR_getWorkInt( toindex, CHAR_WORKPARTYMODE) == CHAR_PARTY_NONE ) { CHAR_sendLeader( CHAR_getWorkInt( toindex, CHAR_WORKOBJINDEX), 1); - /* 锹澎及橇谪及踏五晶尹 */ - /* 褪卞卅月 */ + /* 閿规編鍙婃﹪璋強韪忎簲鏅跺肮 */ + /* 瑜崬鍗呮湀 */ CHAR_setWorkInt( toindex, CHAR_WORKPARTYMODE, 1); CHAR_setWorkInt( toindex, CHAR_WORKPARTYINDEX1, toindex); firstflg = TRUE; @@ -235,7 +235,7 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) } } - snprintf( buf,sizeof( buf), "%s 加入团队!", + snprintf( buf,sizeof( buf), "%s 鍔犲叆鍥㈤槦锛", CHAR_getChar( charaindex, CHAR_NAME)); for( i = 0; i < CHAR_PARTYMAX; i ++ ) { @@ -247,13 +247,13 @@ BOOL CHAR_JoinParty_Main( int charaindex, int targetindex) CHAR_talkToCli( index, -1, buf, CHAR_COLORYELLOW); } else { - CHAR_talkToCli( index, -1, "加入团队!", CHAR_COLORYELLOW); + CHAR_talkToCli( index, -1, "鍔犲叆鍥㈤槦锛", CHAR_COLORYELLOW); } } } } /*------------------------------------------------------------ - * 由□ 奴卞 欠丹午允月[ + * 鐢扁枴 濂村崬 娆犱腹鍗堝厑鏈堬蓟 ------------------------------------------------------------*/ BOOL CHAR_JoinParty( int charaindex ) { @@ -272,25 +272,25 @@ BOOL CHAR_JoinParty( int charaindex ) return FALSE; } - /* 愤坌互由□ 奴赚氏匹凶日蛲 */ + /* 鎰ゅ潓浜掔敱鈻 濂磋禋姘忓尮鍑舵棩铔 */ if( CHAR_getWorkInt( charaindex, CHAR_WORKPARTYMODE) != CHAR_PARTY_NONE ) { lssproto_PR_send( fd, 1, FALSE); return FALSE; } - /* 及蟆及甄 毛 月 */ + /* 鍙婅焼鍙婄攧 姣 鏈 */ CHAR_getCoordinationDir( CHAR_getInt( charaindex, CHAR_DIR ) , CHAR_getInt( charaindex , CHAR_X ), CHAR_getInt( charaindex , CHAR_Y ) , 1 , &x , &y ); - /* 赓渝祭允月 */ + /* 璧撴笣绁厑鏈 */ for( i = 0; i < CONNECT_WINDOWBUFSIZE; i ++ ) { CONNECT_setJoinpartycharaindex(fd,i,-1); } cnt = 0; - /*愤坌及 及蟆及平乓仿毛潸 允月 */ + /*鎰ゅ潓鍙 鍙婅焼鍙婂钩涔撲豢姣涙礁 鍏佹湀 */ for( object = MAP_getTopObj( CHAR_getInt( charaindex, CHAR_FLOOR),x,y) ; object ; @@ -301,7 +301,7 @@ BOOL CHAR_JoinParty( int charaindex ) int objindex = GET_OBJINDEX(object); int targetindex = -1; - /* 平乓仿弁正□元扎卅中 */ + /* 骞充箵浠垮紒姝b枴鍏冩墡鍗呬腑 */ if( OBJECT_getType( objindex) != OBJTYPE_CHARA) continue; toindex = OBJECT_getIndex( objindex); @@ -317,10 +317,10 @@ BOOL CHAR_JoinParty( int charaindex ) } // shan end - /* 皿伊奶乩□及凛 */ + /* 鐨夸紛濂朵供鈻″強鍑 */ if( CHAR_getInt( toindex, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER || CHAR_getInt(toindex, CHAR_WHICHTYPE) == CHAR_TYPEPLAYERNPC){ found = TRUE; - /* 锹澎互阂分匀凶日褪毛娄匀舰曰请允 */ + /* 閿规編浜掗槀鍒嗗寑鍑舵棩瑜瘺濞勫寑鑸版洶璇峰厑 */ if( CHAR_getWorkInt( toindex, CHAR_WORKPARTYMODE) == CHAR_PARTY_CLIENT ) { targetindex = CHAR_getWorkInt( toindex, CHAR_WORKPARTYINDEX1); if( !CHAR_CHECKINDEX( targetindex) ) { @@ -335,32 +335,32 @@ BOOL CHAR_JoinParty( int charaindex ) targetindex = toindex; } - /* 褪午 ㄠ汹动 卞中月井 */ + /* 瑜崍 銊犳惫鍔 鍗炰腑鏈堜簳 */ if( NPC_Util_CharDistance( charaindex, targetindex ) > 1) { continue; } - /* 爵 反匹卅中仪[*/ + /* 鐖 鍙嶅尮鍗呬腑浠蓟*/ if( CHAR_getWorkInt( targetindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE ){ continue; } - /* 醮棉袱第乒□玉井 */ + /* 閱琚辩涔掆枴鐜変簳 */ if( !CHAR_getFlg( targetindex, CHAR_ISPARTY) ) continue; #ifdef _ANGEL_SUMMON if( CHAR_getWorkInt( targetindex, CHAR_WORKANGELMODE) == TRUE) { - CHAR_talkToCli( charaindex, -1, "使者不可以当领队。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "浣胯呬笉鍙互褰撻闃熴", CHAR_COLORYELLOW); continue; } #endif } - /* 穴件乒旦田旦互中月凛反]谛棉方曰穸燮允月[ */ + /* 绌翠欢涔掓棪鐢版棪浜掍腑鏈堝嚊鍙嶏冀璋涙鏂规洶绌哥嚠鍏佹湀锛 */ else if( CHAR_getInt( toindex, CHAR_WHICHTYPE) == CHAR_TYPEBUS ) { targetindex = toindex; cnt = 0; if( !NPC_BusCheckJoinParty( toindex, charaindex, TRUE)) { - /* 椭瘀毛 凶今卅井匀凶[醮棉 月及反蔽歹月[谛棉及质 手仄卅中[ - * 支支仇仄中及匹[ + /* 妞榾姣 鍑朵粖鍗呬簳鍖鍑讹蓟閱 鏈堝強鍙嶈斀姝规湀锛昏皼妫夊強璐 鎵嬩粍鍗呬腑锛 + * 鏀敮浠囦粍涓強鍖癸蓟 */ break; } @@ -386,34 +386,34 @@ BOOL CHAR_JoinParty( int charaindex ) } } } - /* 皿伊奶乩□坭反穴件乒旦田旦动陆反 骰允月 */ + /* 鐨夸紛濂朵供鈻″澀鍙嶇┐浠朵箳鏃︾敯鏃﹀姩闄嗗弽 楠板厑鏈 */ else { continue; } - /* 锹澎由□ 奴及谛醒反 井" */ + /* 閿规編鐢扁枴 濂村強璋涢啋鍙 浜曪紓 */ parray = CHAR_getEmptyPartyArray( targetindex) ; if( parray == -1 ) continue; - /* 仇仇引匹仁木壬 */ + /* 浠囦粐寮曞尮浠佹湪澹 */ CONNECT_setJoinpartycharaindex( fd,cnt,toindex); cnt++; if( cnt == CONNECT_WINDOWBUFSIZE ) break; - /* 穴件乒旦田旦 苇仄分中]伙□皿毛 仃月[ */ + /* 绌翠欢涔掓棪鐢版棪 鑻囦粍鍒嗕腑锛戒紮鈻$毧姣 浠冩湀锛 */ if( CHAR_getInt( targetindex, CHAR_WHICHTYPE) == CHAR_TYPEBUS ) break; } if( cnt == 0 ) { if( found == TRUE) { - CHAR_talkToCli( charaindex, -1, "无法加入团队。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鏃犳硶鍔犲叆鍥㈤槦銆", CHAR_COLORYELLOW); } result = FALSE; }else if( cnt == 1 ) { #ifdef _AUTO_PK if(CHAR_getInt(charaindex,CHAR_FLOOR)==20000){ - CHAR_talkToCli( charaindex, -1, "单P系统禁止组队!", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍗昉绯荤粺绂佹缁勯槦!", CHAR_COLORYELLOW); result = FALSE; }else #endif @@ -425,7 +425,7 @@ BOOL CHAR_JoinParty( int charaindex ) int strlength; char msgbuf[1024]; char escapebuf[2048]; - strcpy( msgbuf, "1\n和谁组成团队呢?\n"); + strcpy( msgbuf, "1\n鍜岃皝缁勬垚鍥㈤槦鍛紵\n"); strlength = strlen( msgbuf); for( i = 0; CONNECT_getJoinpartycharaindex( fd,i ) != -1 @@ -436,7 +436,7 @@ BOOL CHAR_JoinParty( int charaindex ) char buf[256]; snprintf( buf, sizeof( buf),"%s\n", a); if( strlength + strlen( buf) > arraysizeof( msgbuf)){ - print( "%s:%d视窗讯息buffer不足。\n", + print( "%s:%d瑙嗙獥璁伅buffer涓嶈冻銆俓n", __FILE__,__LINE__); break; } @@ -490,15 +490,15 @@ static BOOL CHAR_DischargePartySub( int charaindex, int msgflg) CHAR_setWorkInt( pindex, CHAR_WORKPARTYINDEX1, -1); CHAR_setWorkInt( pindex, CHAR_WORKPARTYMODE, CHAR_PARTY_NONE); if( msgflg ){ - CHAR_talkToCli( pindex, -1, "团队已解散!", CHAR_COLORYELLOW); + CHAR_talkToCli( pindex, -1, "鍥㈤槦宸茶В鏁o紒", CHAR_COLORYELLOW); #ifdef _ITEM_QUITPARTY // won fix for( j=0;j <数值>]"}, - // 设定家族拥有庄园 - { "庄园",CHAR_CHAT_DEBUG_set_manor_owner,TRUE,0,2,"[庄园 <庄园id> <0 or 1> <家族名 or 家族ID>]"}, - // 设定庄园挑战时间,设定的时间为目前每个挑战时期的经过时间(单位:分),ex:现在是休战期,共需要经过五天才会进 - // 入挑战期,则下指令设定为 5 ,则会由五天的等待期变成了只等五分钟 - { "庄园挑战时间",CHAR_CHAT_DEBUG_set_schedule_time,TRUE,0,2,"[set_schedule_time ]"}, + // 璁惧畾涓汉姘斿娍 + { "涓汉姘斿娍",CHAR_CHAT_DEBUG_set_momentum,TRUE,0,2,"[涓汉姘斿娍 <鍚嶇О> <鏁板>]"}, + // 璁惧畾瀹舵棌鎷ユ湁搴勫洯 + { "搴勫洯",CHAR_CHAT_DEBUG_set_manor_owner,TRUE,0,2,"[搴勫洯 <搴勫洯id> <0 or 1> <瀹舵棌鍚 or 瀹舵棌ID>]"}, + // 璁惧畾搴勫洯鎸戞垬鏃堕棿,璁惧畾鐨勬椂闂翠负鐩墠姣忎釜鎸戞垬鏃舵湡鐨勭粡杩囨椂闂(鍗曚綅:鍒),ex:鐜板湪鏄紤鎴樻湡,鍏遍渶瑕佺粡杩囦簲澶╂墠浼氳繘 + // 鍏ユ寫鎴樻湡,鍒欎笅鎸囦护璁惧畾涓 5 ,鍒欎細鐢变簲澶╃殑绛夊緟鏈熷彉鎴愪簡鍙瓑浜斿垎閽 + { "搴勫洯鎸戞垬鏃堕棿",CHAR_CHAT_DEBUG_set_schedule_time,TRUE,0,2,"[set_schedule_time ]"}, #endif #ifdef _ANGEL_SUMMON - { "精灵召唤", CHAR_CHAT_DEBUG_angelinfo, TRUE, 0, 2, ""}, - { "清除精灵召唤", CHAR_CHAT_DEBUG_angelclean, TRUE, 0, 2, "任务编号"}, - { "创建精灵召唤", CHAR_CHAT_DEBUG_angelcreate, TRUE, 0, 2, "使者账号 勇者账号 任务编号"}, - { "重读使者任务", CHAR_CHAT_DEBUG_missionreload, TRUE, 0, 2, ""}, + { "绮剧伒鍙敜", CHAR_CHAT_DEBUG_angelinfo, TRUE, 0, 2, ""}, + { "娓呴櫎绮剧伒鍙敜", CHAR_CHAT_DEBUG_angelclean, TRUE, 0, 2, "浠诲姟缂栧彿"}, + { "鍒涘缓绮剧伒鍙敜", CHAR_CHAT_DEBUG_angelcreate, TRUE, 0, 2, "浣胯呰处鍙 鍕囪呰处鍙 浠诲姟缂栧彿"}, + { "閲嶈浣胯呬换鍔", CHAR_CHAT_DEBUG_missionreload, TRUE, 0, 2, ""}, #endif - { "读取物品", CHAR_CHAT_DEBUG_itemreload, TRUE, 0, 2, ""}, + { "璇诲彇鐗╁搧", CHAR_CHAT_DEBUG_itemreload, TRUE, 0, 2, ""}, - { "天行者", CHAR_CHAT_DEBUG_skywalker, TRUE, 0, 1, ""}, + { "澶╄鑰", CHAR_CHAT_DEBUG_skywalker, TRUE, 0, 1, ""}, #ifdef _ITEM_ADDEXP - { "读取经验物品", CHAR_CHAT_DEBUG_itemaddexp, TRUE, 0, 1, ""}, + { "璇诲彇缁忛獙鐗╁搧", CHAR_CHAT_DEBUG_itemaddexp, TRUE, 0, 1, ""}, #endif #ifdef _DEF_GETYOU - { "获取账号", CHAR_CHAT_DEBUG_getyou, TRUE, 0, 1, "格数 1~3"}, + { "鑾峰彇璐﹀彿", CHAR_CHAT_DEBUG_getyou, TRUE, 0, 1, "鏍兼暟 1~3"}, #endif #ifdef _DEF_NEWSEND - { "传送玩家", CHAR_CHAT_DEBUG_newsend, TRUE, 0, 1, "地图编号 x y 帐号 无/要说的话"}, + { "浼犻佺帺瀹", CHAR_CHAT_DEBUG_newsend, TRUE, 0, 1, "鍦板浘缂栧彿 x y 甯愬彿 鏃/瑕佽鐨勮瘽"}, #endif #ifdef _DEF_SUPERSEND - { "群体传送", CHAR_CHAT_DEBUG_supersend, TRUE, 0, 3, "地图编号 x y 格数 无/要说的话"}, + { "缇や綋浼犻", CHAR_CHAT_DEBUG_supersend, TRUE, 0, 3, "鍦板浘缂栧彿 x y 鏍兼暟 鏃/瑕佽鐨勮瘽"}, #endif #ifdef _FONT_SIZE - { "字体大小", CHAR_CHAT_DEBUG_fsize, TRUE, 0, 1, "字号"}, + { "瀛椾綋澶у皬", CHAR_CHAT_DEBUG_fsize, TRUE, 0, 1, "瀛楀彿"}, #endif #ifdef _JOBDAILY - { "重新日志", CHAR_CHAT_DEBUG_rejobdaily, TRUE, 0, 3, "无"}, + { "閲嶆柊鏃ュ織", CHAR_CHAT_DEBUG_rejobdaily, TRUE, 0, 3, "鏃"}, #endif //#ifdef _GM_ITEM -// { "权限", CHAR_CHAT_DEBUG_GMFUNCTION, TRUE, 0, 3, "命令 次数 (账号)"}, +// { "鏉冮檺", CHAR_CHAT_DEBUG_GMFUNCTION, TRUE, 0, 3, "鍛戒护 娆℃暟 (璐﹀彿)"}, //#endif #ifdef _GM_RIDE - { "设置骑乘", CHAR_CHAT_DEBUG_SETRIDE, TRUE, 0, 3, "骑宠号 (账号)"}, - { "移除骑乘", CHAR_CHAT_DEBUG_MVRIDE, TRUE, 0, 3, "骑宠号 (账号)"}, + { "璁剧疆楠戜箻", CHAR_CHAT_DEBUG_SETRIDE, TRUE, 0, 3, "楠戝疇鍙 (璐﹀彿)"}, + { "绉婚櫎楠戜箻", CHAR_CHAT_DEBUG_MVRIDE, TRUE, 0, 3, "楠戝疇鍙 (璐﹀彿)"}, #endif #ifdef _LOCK_IP - { "锁定", CHAR_CHAT_DEBUG_ADD_LOCK, TRUE, 0, 3, "flag 账号/IP IP"}, - { "解除锁定", CHAR_CHAT_DEBUG_DEL_LOCK, TRUE, 0, 3, "flag 账号/IP IP"}, - { "显示玩家IP", CHAR_CHAT_DEBUG_SHOWIP, TRUE, 0, 3, "账号"}, + { "閿佸畾", CHAR_CHAT_DEBUG_ADD_LOCK, TRUE, 0, 3, "flag 璐﹀彿/IP IP"}, + { "瑙i櫎閿佸畾", CHAR_CHAT_DEBUG_DEL_LOCK, TRUE, 0, 3, "flag 璐﹀彿/IP IP"}, + { "鏄剧ず鐜╁IP", CHAR_CHAT_DEBUG_SHOWIP, TRUE, 0, 3, "璐﹀彿"}, #endif - { "声望", CHAR_CHAT_DEBUG_SET_FAME, TRUE, 0, 3, "账号 声望值"}, + { "澹版湜", CHAR_CHAT_DEBUG_SET_FAME, TRUE, 0, 3, "璐﹀彿 澹版湜鍊"}, #ifdef _AUTO_PK - { "pk时间", CHAR_CHAT_DEBUG_SET_AUTOPK, TRUE, 0, 3, "分钟"}, + { "pk鏃堕棿", CHAR_CHAT_DEBUG_SET_AUTOPK, TRUE, 0, 3, "鍒嗛挓"}, #endif #ifdef _PLAYER_NUM - { "玩家数", CHAR_CHAT_DEBUG_SET_PLAYERNUM, TRUE, 0, 3, "人数"}, + { "鐜╁鏁", CHAR_CHAT_DEBUG_SET_PLAYERNUM, TRUE, 0, 3, "浜烘暟"}, #endif #ifdef _RELOAD_CF - { "读取设置", CHAR_CHAT_DEBUG_SET_RELOADCF, TRUE, 0, 3, ""}, + { "璇诲彇璁剧疆", CHAR_CHAT_DEBUG_SET_RELOADCF, TRUE, 0, 3, ""}, #endif #ifdef _TRANS - { "高级转生", CHAR_CHAT_DEBUG_Trans, TRUE, 0, 3, "(账号)"}, + { "楂樼骇杞敓", CHAR_CHAT_DEBUG_Trans, TRUE, 0, 3, "(璐﹀彿)"}, #endif #ifdef _FUSIONBEIT_FIX - { "融合宠", CHAR_CHAT_DEBUG_fusionbeit, TRUE, 0, 3, "宠物栏号 (账号)"}, + { "铻嶅悎瀹", CHAR_CHAT_DEBUG_fusionbeit, TRUE, 0, 3, "瀹犵墿鏍忓彿 (璐﹀彿)"}, #endif #ifdef _MAKE_PET_CF - { "宠物成长", CHAR_CHAT_DEBUG_petmakecf, TRUE, 0, 3, "宠物编号 转物/等级/成长"}, + { "瀹犵墿鎴愰暱", CHAR_CHAT_DEBUG_petmakecf, TRUE, 0, 3, "瀹犵墿缂栧彿 杞墿/绛夌骇/鎴愰暱"}, #endif #ifdef _ALLBLUES_LUA { "reloadlua", CHAR_CHAT_DEBUG_ReLoadLua, TRUE, 0, 3, "" }, { "newloadlua", CHAR_CHAT_DEBUG_NewLoadLua, TRUE, 0, 3, "" }, #endif #ifdef _CARD_PRODUCTION - { "card", CHAR_CHAT_DEBUG_card, TRUE, 0, 3, "制作点卡 数量/金额"}, + { "card", CHAR_CHAT_DEBUG_card, TRUE, 0, 3, "鍒朵綔鐐瑰崱 鏁伴噺/閲戦"}, #endif #ifdef _CAX_GM_RERIDE - { "reride", CHAR_CHAT_DEBUG_reride, TRUE, 0, 3, "无"}, + { "reride", CHAR_CHAT_DEBUG_reride, TRUE, 0, 3, "鏃"}, #endif #ifdef _CAX_GM_RESKILLCODE - { "reskillcode", CHAR_CHAT_DEBUG_reskillcode, TRUE, 0, 3, "无"}, + { "reskillcode", CHAR_CHAT_DEBUG_reskillcode, TRUE, 0, 3, "鏃"}, #endif #ifdef _CAX_GM_RELEADERRIDE - { "rereleaderride", CHAR_CHAT_DEBUG_releaderride, TRUE, 0, 3, "无"}, + { "rereleaderride", CHAR_CHAT_DEBUG_releaderride, TRUE, 0, 3, "鏃"}, #endif #ifdef _GM_SAVE_ALL_CHAR { "GmSaveAllChar", CHAR_CHAT_DEBUG_GmSaveAllChar, TRUE, 0, 3, "" }, @@ -574,9 +574,9 @@ void CHAR_initDebugChatCdkey( void) } } /*------------------------------------------------------------ - * 民乓永玄 芊及甩永扑亘袄毛综月[ - * 娄醒}忒曰袄 - * 卅仄 + * 姘戜箵姘哥巹 鑺婂強鐢╂案鎵戜簶琚勬瘺缁兼湀锛 + * 濞勯啋锝濆繏鏇拌 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_initChatMagic(void) { @@ -714,13 +714,13 @@ BOOL MAGIC_getLUAListFunction( char *luafuncname, int gmlevel, int charaindex, c #endif /*------------------------------------------------------------ - * 民乓永玄 芊 - * 娄醒 - * charaindex int 平乓仿奶件犯永弁旦 - * message char* 丢永本□斥 - * isDebug BOOL 犯田永弘民乓永玄 芊井升丹井 - * 忒曰袄 - * 卅仄 + * 姘戜箵姘哥巹 鑺 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * message char* 涓㈡案鏈枴鏂 + * isDebug BOOL 鐘敯姘稿紭姘戜箵姘哥巹 鑺婁簳鍗囦腹浜 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ static BOOL CHAR_useChatMagic( int charaindex, char* data, BOOL isDebug) { @@ -741,7 +741,7 @@ static BOOL CHAR_useChatMagic( int charaindex, char* data, BOOL isDebug) return FALSE; } - if( getChatMagicCDKeyCheck() == 1 ){ //第一次确认GM帐号 + if( getChatMagicCDKeyCheck() == 1 ){ //绗竴娆$‘璁M甯愬彿 if( CHAR_getWorkInt( charaindex, CHAR_WORKFLG) & WORKFLG_DEBUGMODE ) { gmLevel = CHAR_getWorkInt( charaindex, CHAR_WORKGMLEVEL); }else{ @@ -802,11 +802,11 @@ static BOOL CHAR_useChatMagic( int charaindex, char* data, BOOL isDebug) } /*------------------------------------------------------------ - * 祥汹井日汔毛菲户月 - * 娄醒 - * volume int 祥汹 - * 忒曰袄 - * 穴永皿匹及穴旦 + * 绁ユ惫浜曟棩姹旀瘺鑿叉埛鏈 + * 濞勯啋 + * volume int 绁ユ惫 + * 蹇掓洶琚 + * 绌存案鐨垮尮鍙婄┐鏃 ------------------------------------------------------------*/ static int CHAR_getRangeFromVolume( int volume ) { @@ -821,13 +821,13 @@ static int CHAR_getRangeFromVolume( int volume ) return chatvol[volume]; } /*------------------------------------------------------------ - * 擘及示伉亘□丞毛茧月[条卅中支曰井凶[ - * 娄醒 - * mesg char* 仄扎屯月蜕邯 - * 忒曰袄 - * -1 及午五反仇公仇公 - * 0 及午五反孔勾丹 - * 1 方曰云云五中午}仃勾卞勾中化中月 ! 及醒 + * 鎿樺強绀轰級浜樷枴涓炴瘺鑼ф湀锛绘潯鍗呬腑鏀洶浜曞嚩锛 + * 濞勯啋 + * mesg char* 浠勬墡灞湀铚曢偗 + * 蹇掓洶琚 + * -1 鍙婂崍浜斿弽浠囧叕浠囧叕 + * 0 鍙婂崍浜斿弽瀛斿嬀涓 + * 1 鏂规洶浜戜簯浜斾腑鍗堬綕浠冨嬀鍗炲嬀涓寲涓湀 ! 鍙婇啋 ------------------------------------------------------------*/ static int CHAR_getVolume( char* mesg ) { @@ -850,16 +850,16 @@ static int CHAR_getVolume( char* mesg ) else return 0; }else{ - /* 3动晓 */ + /* 3鍔ㄦ檽 */ if( mesg[stringlen-1] == '.' ){ - /* 仇公仇公及第 岭丐曰 */ + /* 浠囧叕浠囧叕鍙婄 宀笎鏇 */ if( mesg[stringlen-2] == '.' && mesg[stringlen-3] == '.' ){ - /* 仇公仇公 */ + /* 浠囧叕浠囧叕 */ return -1; } return 0; }else{ - /* 仇仇井日 ! 毛醒尹月*/ + /* 浠囦粐浜曟棩 ! 姣涢啋灏规湀*/ int exnum=0; int i; for( i=stringlen-1; i>=0 ; i-- ){ @@ -874,20 +874,20 @@ static int CHAR_getVolume( char* mesg ) } /*------------------------------------------------------------ - * 丢永本□斥及 井日丢永本□斥及 坌毛潸曰请允 - * 娄醒 - * message char* 丢永本□斥 - * kind char* p or s or i卅及丢永本□斥 - * kindlen int kind 及赢今 - * body char** 丢永本□斥 及禾奶件正□及伞 桦赭 - * 忒曰袄 - * 卅仄 + * 涓㈡案鏈枴鏂ュ強 浜曟棩涓㈡案鏈枴鏂ュ強 鍧屾瘺娼告洶璇峰厑 + * 濞勯啋 + * message char* 涓㈡案鏈枴鏂 + * kind char* p or s or i鍗呭強涓㈡案鏈枴鏂 + * kindlen int kind 鍙婅耽浠 + * body char** 涓㈡案鏈枴鏂 鍙婄濂朵欢姝b枴鍙婁紴 妗﹁淡 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_getMessageBody(char* message,char* kind,int kindlen,char** body) { int firstchar; - /* 1 侬 毛切之匀仁[1 侬匹丐月仇午反lssproto.html互忡据 */ + /* 1 渚 姣涘垏涔嬪寑浠侊蓟1 渚尮涓愭湀浠囧崍鍙峫ssproto.html浜掑俊鎹 */ // Nuke +1: For invalid message attack *body = 0; firstchar = message[0]; @@ -984,7 +984,7 @@ static BOOL CHAR_Talk_check( int talkerindex, int talkedindex, int micflg ) MyBattleMode = CHAR_getWorkInt( talkerindex, CHAR_WORKBATTLEMODE); ToBattleMode = CHAR_getWorkInt( talkedindex, CHAR_WORKBATTLEMODE); - /* 爵 及凛 */ + /* 鐖 鍙婂嚊 */ if( MyBattleMode == BATTLE_CHARMODE_NONE ) { if( ToBattleMode == BATTLE_CHARMODE_NONE ) { return TRUE; @@ -993,13 +993,13 @@ static BOOL CHAR_Talk_check( int talkerindex, int talkedindex, int micflg ) return FALSE; } } - /* 爵 及凛 */ + /* 鐖 鍙婂嚊 */ else { - /* 爵 仄化中卅中谛卞反霜日卅中[ */ + /* 鐖 浠勫寲涓崊涓皼鍗炲弽闇滄棩鍗呬腑锛 */ if( ToBattleMode == BATTLE_CHARMODE_NONE) { return FALSE; } - /* 元爵 匹 元扔奶玉及谛卞仄井霜耨请 卅中 */ + /* 鍏冪埖 鍖 鍏冩墧濂剁帀鍙婅皼鍗炰粍浜曢湝鑰ㄨ 鍗呬腑 */ if( CHAR_getWorkInt( talkerindex, CHAR_WORKBATTLEINDEX) == CHAR_getWorkInt( talkedindex, CHAR_WORKBATTLEINDEX) && CHAR_getWorkInt( talkerindex, CHAR_WORKBATTLESIDE) @@ -1014,7 +1014,7 @@ static BOOL CHAR_Talk_check( int talkerindex, int talkedindex, int micflg ) return FALSE; #endif } -#ifdef _TELLCHANNEL // (不可开) Syu ADD 密语频道 +#ifdef _TELLCHANNEL // (涓嶅彲寮) Syu ADD 瀵嗚棰戦亾 static int TalkCount = 0 ; void OneByOneTkChannel ( int fd , char *tmp1 , char *tmp2 , int color ) { @@ -1050,25 +1050,25 @@ void OneByOneTkChannel ( int fd , char *tmp1 , char *tmp2 , int color ) return; #ifdef _CHANNEL_MODIFY if(CHAR_getFlg(IndexList[0],CHAR_ISTELL) == FALSE){ - snprintf(buf,sizeof(buf) - 1,"%s 关闭了此频道" ,tmp1); + snprintf(buf,sizeof(buf) - 1,"%s 鍏抽棴浜嗘棰戦亾" ,tmp1); CHAR_talkToCli(myindex,-1,buf,color); return; } #endif #ifndef _CHANNEL_MODIFY - snprintf( buf, sizeof( buf)-1, "你告诉%s:%s" , tmp1 , tmp2 ) ; + snprintf( buf, sizeof( buf)-1, "浣犲憡璇%s锛%s" , tmp1 , tmp2 ) ; CHAR_talkToCli( myindex, -1, buf , color); - snprintf( buf , sizeof( buf)-1,"%s告诉你:%s" , CHAR_getChar ( myindex , CHAR_NAME ) , tmp2 ) ; + snprintf( buf , sizeof( buf)-1,"%s鍛婅瘔浣狅細%s" , CHAR_getChar ( myindex , CHAR_NAME ) , tmp2 ) ; CHAR_talkToCli( IndexList[0] , -1, buf , color); #else - snprintf(buf,sizeof(buf) - 1,"P|M|你告诉%s:%s",tmp1,tmp2); + snprintf(buf,sizeof(buf) - 1,"P|M|浣犲憡璇%s锛%s",tmp1,tmp2); lssproto_TK_send(fd,CHAR_getWorkInt(myindex,CHAR_WORKOBJINDEX),buf,color); - snprintf(buf,sizeof(buf) - 1,"P|M|%s告诉你:%s",CHAR_getChar(myindex,CHAR_NAME),tmp2); + snprintf(buf,sizeof(buf) - 1,"P|M|%s鍛婅瘔浣狅細%s",CHAR_getChar(myindex,CHAR_NAME),tmp2); lssproto_TK_send(getfdFromCharaIndex(IndexList[0]),CHAR_getWorkInt(IndexList[0],CHAR_WORKOBJINDEX),buf,color); #endif TalkCount ++ ; }else if ( IndexCount > 1 && IndexCount < 10 ) { - print( "\nSyu log 进入同名Func" ); + print( "\nSyu log 杩涘叆鍚屽悕Func" ); if ( ( addr = strstr ( tmp2 , "/T" ) ) != NULL ) { addr = addr + 2 ; target = atoi ( addr ) ; @@ -1082,20 +1082,20 @@ void OneByOneTkChannel ( int fd , char *tmp1 , char *tmp2 , int color ) return ; #ifdef _CHANNEL_MODIFY if(CHAR_getFlg(IndexList[target],CHAR_ISTELL) == FALSE){ - snprintf(buf,sizeof(buf) - 1,"%s 关闭了此频道" ,tmp1); + snprintf(buf,sizeof(buf) - 1,"%s 鍏抽棴浜嗘棰戦亾" ,tmp1); CHAR_talkToCli(myindex,-1,buf,color); return; } #endif #ifndef _CHANNEL_MODIFY - snprintf( buf , sizeof( buf)-1, "你告诉%s:%s" , tmp1 , addr ) ; + snprintf( buf , sizeof( buf)-1, "浣犲憡璇%s锛%s" , tmp1 , addr ) ; CHAR_talkToCli( myindex, -1, buf , color); - snprintf( buf , sizeof( buf)-1, "%s告诉你:%s" , CHAR_getChar ( myindex , CHAR_NAME ) , addr ) ; + snprintf( buf , sizeof( buf)-1, "%s鍛婅瘔浣狅細%s" , CHAR_getChar ( myindex , CHAR_NAME ) , addr ) ; CHAR_talkToCli( IndexList[ target ] , -1, buf , color); #else - snprintf(buf,sizeof(buf) - 1,"P|M|你告诉%s:%s",tmp1,addr); + snprintf(buf,sizeof(buf) - 1,"P|M|浣犲憡璇%s锛%s",tmp1,addr); lssproto_TK_send(fd,CHAR_getWorkInt(myindex,CHAR_WORKOBJINDEX),buf,color); - snprintf(buf,sizeof(buf) - 1,"P|M|%s告诉你:%s",CHAR_getChar(myindex,CHAR_NAME),addr); + snprintf(buf,sizeof(buf) - 1,"P|M|%s鍛婅瘔浣狅細%s",CHAR_getChar(myindex,CHAR_NAME),addr); lssproto_TK_send(getfdFromCharaIndex(IndexList[target]),CHAR_getWorkInt(IndexList[target],CHAR_WORKOBJINDEX),buf,color); #endif TalkCount ++ ; @@ -1136,7 +1136,7 @@ void OneByOneTkChannel ( int fd , char *tmp1 , char *tmp2 , int color ) #endif } }else if ( IndexCount == 0 ) { - sprintf( buf , "没有这个人或不位於这个星球" ) ; + sprintf( buf , "娌℃湁杩欎釜浜烘垨涓嶄綅鏂艰繖涓槦鐞" ) ; CHAR_talkToCli( myindex, -1, buf , color); } // print ( "\nSyu log TkChannel use ratio : %d " , TalkCount ) ; @@ -1154,7 +1154,7 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) int fl,x,y; int stringlen; int micflg = 0; -#ifdef _TELLCHANNEL // (不可开) Syu ADD 密语频道 +#ifdef _TELLCHANNEL // (涓嶅彲寮) Syu ADD 瀵嗚棰戦亾 char tmp1[128] ; char *tmp2; #endif @@ -1203,7 +1203,7 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) return; } #endif -#ifdef _TELLCHANNEL // (不可开) Syu ADD 密语频道 +#ifdef _TELLCHANNEL // (涓嶅彲寮) Syu ADD 瀵嗚棰戦亾 if (messageeraseescape[0]== '/' && messageeraseescape[1]== 't' && messageeraseescape[2]== 'e' && messageeraseescape[3]== 'l' && messageeraseescape[4]== 'l'){ @@ -1220,13 +1220,13 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) #endif #ifdef _CHANNEL_MODIFY - // 家族频道 + // 瀹舵棌棰戦亾 if(messageeraseescape[0] == '/' && messageeraseescape[1] == 'F' && messageeraseescape[2] == 'M'){ sprintf(messageeraseescape,"%s",messageeraseescape + 3); } else channel = -1; - // 职业频道 + // 鑱屼笟棰戦亾 if(messageeraseescape[0] == '/' && messageeraseescape[1] == 'O' && messageeraseescape[2] == 'C' && messageeraseescape[3] == 'C'){ int i,pclass = CHAR_getInt(index,PROFESSION_CLASS) - 1,TalkTo; @@ -1236,11 +1236,11 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) for(i=0;i -1){ - // 如果对方有开频道 + // 濡傛灉瀵规柟鏈夊紑棰戦亾 if(CHAR_getFlg(TalkTo,CHAR_ISOCC) == TRUE){ char escapebuf[2048]; - //snprintf(buf,sizeof(buf) - 1,"P|O|[职]%s",messageeraseescape); - snprintf(buf,sizeof(buf) - 1,"P|O|[职]%s", makeEscapeString( messageeraseescape, escapebuf, sizeof(escapebuf)) ); + //snprintf(buf,sizeof(buf) - 1,"P|O|[鑱宂%s",messageeraseescape); + snprintf(buf,sizeof(buf) - 1,"P|O|[鑱宂%s", makeEscapeString( messageeraseescape, escapebuf, sizeof(escapebuf)) ); lssproto_TK_send(getfdFromCharaIndex(TalkTo),CHAR_getWorkInt(TalkTo,CHAR_WORKOBJINDEX),buf,color); } } @@ -1264,27 +1264,27 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) d=(ip % 0x100); //andy_log -#ifdef _kr_ip // WON ADD 不锁gm指令ip +#ifdef _kr_ip // WON ADD 涓嶉攣gm鎸囦护ip ck=1; #else ck= ( ( (a==218) && (b==12) && (c==166) ) - || ( (a==218) && (b==12) ) // 研发内网 + || ( (a==218) && (b==12) ) // 鐮斿彂鍐呯綉 || (a==218) - || ( (a==218) && (b==12) && (c==166) && (d==8) ) // 台北wayi + || ( (a==218) && (b==12) && (c==166) && (d==8) ) // 鍙板寳wayi || ( (a==61) ) || ( (a==221) ) || ( (a==218) && (b==12) ) || ( (a==60) && (b==10) ) || ( (a==60) ) - || ( (a==10) && (b==64) && (c==97) && (d==249) ) // 客服 + || ( (a==10) && (b==64) && (c==97) && (d==249) ) // 瀹㈡湇 || ( (a==10) && (b==220) && (c==189) && (d==234) ) - || ( (a==203) && (b==126) && (c==114) && (d==204) ) // 新加坡 - || ( (a==203) && (b==126) && (c==114) && (d==205) ) // 新加坡 - || ( (a==211) && (b==106) && (c==116) && (d==71) ) // 韩国 - || ( (a==211) && (b==106) && (c==116) && (d==72) ) // 韩国 - || ( (a==211) && (b==106) && (c==116) && (d==74) ) // 韩国 - || ( (a==211) && (b==106) && (c==110) && (d==12) ) // 韩国 - || ( (a==211) && (b==106) && (c==110) && (d==13) ) // 韩国 + || ( (a==203) && (b==126) && (c==114) && (d==204) ) // 鏂板姞鍧 + || ( (a==203) && (b==126) && (c==114) && (d==205) ) // 鏂板姞鍧 + || ( (a==211) && (b==106) && (c==116) && (d==71) ) // 闊╁浗 + || ( (a==211) && (b==106) && (c==116) && (d==72) ) // 闊╁浗 + || ( (a==211) && (b==106) && (c==116) && (d==74) ) // 闊╁浗 + || ( (a==211) && (b==106) && (c==110) && (d==12) ) // 闊╁浗 + || ( (a==211) && (b==106) && (c==110) && (d==13) ) // 闊╁浗 ); #endif char gm[128]; @@ -1293,17 +1293,17 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) if(CHAR_useChatMagic( index,messageeraseescape + 1 + strlen(getChatMagicPasswd()) + 1, TRUE)){ - print( "\n账号:%s 名字:%s\n来自ip:%d.%d.%d.%d\n使用GM命令%s]\n",CHAR_getChar( index, CHAR_CDKEY), + print( "\n璐﹀彿:%s 鍚嶅瓧:%s\n鏉ヨ嚜ip:%d.%d.%d.%d\n浣跨敤GM鍛戒护%s]\n",CHAR_getChar( index, CHAR_CDKEY), CHAR_getChar( index, CHAR_NAME), a, b, c, d,messageeraseescape); - sprintf( gm, "您使用GM命令%s]已成功", messageeraseescape); + sprintf( gm, "鎮ㄤ娇鐢℅M鍛戒护%s]宸叉垚鍔", messageeraseescape); CHAR_talkToCli( index, -1,gm, CHAR_COLORYELLOW ); } }else{ if( CHAR_getWorkInt( index, CHAR_WORKFLG ) & WORKFLG_DEBUGMODE ) { if(CHAR_useChatMagic( index,messageeraseescape + 1,TRUE)){ - print( "\n账号:%s 名字:%s\n来自ip:%d.%d.%d.%d\n使用GM命令%s]\n",CHAR_getChar( index, CHAR_CDKEY), + print( "\n璐﹀彿:%s 鍚嶅瓧:%s\n鏉ヨ嚜ip:%d.%d.%d.%d\n浣跨敤GM鍛戒护%s]\n",CHAR_getChar( index, CHAR_CDKEY), CHAR_getChar( index, CHAR_NAME), a, b, c, d,messageeraseescape); - sprintf( gm, "您使用GM命令%s]已成功", messageeraseescape); + sprintf( gm, "鎮ㄤ娇鐢℅M鍛戒护%s]宸叉垚鍔", messageeraseescape); CHAR_talkToCli( index, -1,gm, CHAR_COLORYELLOW ); } }else{ @@ -1316,21 +1316,21 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) if(strcmp( CHAR_getChar( index, CHAR_GMFUNCTION), "petlevelup")!=0 && strcmp( CHAR_getChar( index, CHAR_GMFUNCTION), "MM")!=0 && strcmp( CHAR_getChar( index, CHAR_GMFUNCTION), "angelcreate")!=0) return; player_useChatMagic( index,messageeraseescape + 1,TRUE); - print( "\n账号:%s 名字:%s\n来自ip:%d.%d.%d.%d\n使用物品命令%s]次数剩下%d\n", CHAR_getChar( index, CHAR_CDKEY), + print( "\n璐﹀彿:%s 鍚嶅瓧:%s\n鏉ヨ嚜ip:%d.%d.%d.%d\n浣跨敤鐗╁搧鍛戒护%s]娆℃暟鍓╀笅%d\n", CHAR_getChar( index, CHAR_CDKEY), CHAR_getChar( index, CHAR_NAME), a, b, c, d,messageeraseescape, CHAR_getInt( index, CHAR_GMTIME) - 1); CHAR_setInt( index , CHAR_GMTIME, CHAR_getInt( index, CHAR_GMTIME) - 1 ); if(CHAR_getInt( index, CHAR_GMTIME) > 0){ - sprintf( token, "你还能使用%s权限%d次!", CHAR_getChar( index, CHAR_GMFUNCTION),CHAR_getInt( index, CHAR_GMTIME)); + sprintf( token, "浣犺繕鑳戒娇鐢%s鏉冮檺%d娆!", CHAR_getChar( index, CHAR_GMFUNCTION),CHAR_getInt( index, CHAR_GMTIME)); CHAR_talkToCli( index, -1,token, CHAR_COLORRED ); }else{ - sprintf( token, "你已经没有使用%s权限了!", CHAR_getChar( index, CHAR_GMFUNCTION)); + sprintf( token, "浣犲凡缁忔病鏈変娇鐢%s鏉冮檺浜!", CHAR_getChar( index, CHAR_GMFUNCTION)); CHAR_talkToCli( index, -1,token, CHAR_COLORRED ); } - }else if(!strcmp( "help", magicname) || !strcmp( "帮助", magicname)){ + }else if(!strcmp( "help", magicname) || !strcmp( "甯姪", magicname)){ getStringFromIndexWithDelim( messageeraseescape + 1, " ", 2, magicname, sizeof( magicname)); if(!strcmp( CHAR_getChar( index, CHAR_GMFUNCTION), magicname)){ player_useChatMagic( index,messageeraseescape + 1,TRUE); - print( "\n账号:%s 名字:%s\n来自ip:%d.%d.%d.%d\n使用帮助命令%s]\n", CHAR_getChar( index, CHAR_CDKEY), + print( "\n璐﹀彿:%s 鍚嶅瓧:%s\n鏉ヨ嚜ip:%d.%d.%d.%d\n浣跨敤甯姪鍛戒护%s]\n", CHAR_getChar( index, CHAR_CDKEY), CHAR_getChar( index, CHAR_NAME), a, b, c, d,messageeraseescape); } } @@ -1363,7 +1363,7 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) CHAR_warpToSpecificPoint( index, CHAR_getInt( index, CHAR_FLOOR), atoi(x), atoi(y) ); sasql_vippoint(id, -getPMove(), 1); }else - CHAR_talkToCli( index, -1,"你已经没有足够的会员点数顺移了!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"浣犲凡缁忔病鏈夎冻澶熺殑浼氬憳鐐规暟椤虹Щ浜嗭紒", CHAR_COLORRED ); return; } } @@ -1375,11 +1375,11 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) int fd = getfdFromCharaIndex( index); if( fd == - 1 ) return; if(getOfflineCf()<1){ - CHAR_talkToCli( index, -1,"该条线路不支持离线状态!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"璇ユ潯绾胯矾涓嶆敮鎸佺绾跨姸鎬侊紒", CHAR_COLORRED ); return; } if(getOfflineCf()==1 && CHAR_getInt(index,CHAR_OFFTIME)<3600 && CHAR_getWorkInt(index,CHAR_WORKSTREETVENDOR)!=1){ - CHAR_talkToCli( index, -1,"离线时间不足,请超过60分钟后再使用。", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"绂荤嚎鏃堕棿涓嶈冻锛岃瓒呰繃60鍒嗛挓鍚庡啀浣跨敤銆", CHAR_COLORRED ); return; } time_t curtime; @@ -1388,19 +1388,19 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) p=localtime(&curtime); curtime = mktime(p); if(curtime - CHAR_getWorkInt(index,CHAR_WORKOFFLINETIME)<30){ - CHAR_talkToCli( index, -1,"离线命令30秒内只可以使用一次,请稍后再使用!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"绂荤嚎鍛戒护30绉掑唴鍙彲浠ヤ娇鐢ㄤ竴娆★紝璇风◢鍚庡啀浣跨敤锛", CHAR_COLORRED ); return; } CHAR_setWorkInt(index,CHAR_WORKOFFLINETIME,curtime); if(getOfflineMaxNum()>0 && sasql_offlinenum(sasql_ip(CHAR_getChar(index,CHAR_CDKEY)))>=getOfflineMaxNum()){ char tmpbuf[256]; - sprintf(tmpbuf,"对不起,该线一个IP只允许离线%d个ID。",getOfflineMaxNum()); + sprintf(tmpbuf,"瀵逛笉璧凤紝璇ョ嚎涓涓狪P鍙厑璁哥绾%d涓狪D銆",getOfflineMaxNum()); CHAR_talkToCli( index, -1,tmpbuf, CHAR_COLORRED ); return; } if(getOfflineJqmMaxNum()>0 && sasql_offlinejqmnum(CHAR_getChar(index,CHAR_CDKEY))>=getOfflineJqmMaxNum()){ char tmpbuf[256]; - sprintf(tmpbuf,"对不起,该线一台电脑只允许离线%d个ID。",getOfflineJqmMaxNum()); + sprintf(tmpbuf,"瀵逛笉璧凤紝璇ョ嚎涓鍙扮數鑴戝彧鍏佽绂荤嚎%d涓狪D銆",getOfflineJqmMaxNum()); CHAR_talkToCli( index, -1,tmpbuf, CHAR_COLORRED ); return; } @@ -1411,7 +1411,7 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) } CHAR_setWorkInt(index,CHAR_WORK_OFFLINE,1); - CHAR_talkToCli( index, -1,"您已成功进入离线状态!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鎮ㄥ凡鎴愬姛杩涘叆绂荤嚎鐘舵侊紒", CHAR_COLORRED ); playeronlinenum++; sasql_online(CHAR_getChar(index,CHAR_CDKEY),NULL,NULL,NULL,NULL,5); CONNECT_endOne_debug(fd); @@ -1424,7 +1424,7 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) int x,y,charaindex; charaindex = CONNECT_getCharaindex( fd ); - // CHAR_talkToCli( charaindex, -1,"进入观战", CHAR_COLORRED ); + // CHAR_talkToCli( charaindex, -1,"杩涘叆瑙傛垬", CHAR_COLORRED ); { int ix,iy; ix=CHAR_getInt(charaindex, CHAR_X); @@ -1457,12 +1457,12 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) easyGetTokenFromString( messageeraseescape , 2 , buff, sizeof(buff)); for( i = 0 ; i < playernum ; i++) { if( CHAR_getCharUse(i) != FALSE ) - sprintf( xlbmsg, "<小喇叭>%s说:%s", MyName, buff); + sprintf( xlbmsg, "<灏忓枃鍙>%s璇达細%s", MyName, buff); CHAR_talkToCli( i, -1, xlbmsg, CHAR_COLORGREEN); } sasql_vippoint(id, -getPAnnounce(), 1); }else - CHAR_talkToCli( index, -1,"你已经没有足够的会员点数小喇叭了!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"浣犲凡缁忔病鏈夎冻澶熺殑浼氬憳鐐规暟灏忓枃鍙簡锛", CHAR_COLORRED ); return; } } @@ -1473,7 +1473,7 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) if(getAllTalkPoint()>0){ char* id = CHAR_getChar(index, CHAR_CDKEY); if(CHAR_getInt(index,CHAR_TRANSMIGRATION)<5 || CHAR_getInt(index,CHAR_LV)<140){ - CHAR_talkToCli( index, -1,"您的级别没有达到5转140级,无法使用大喇叭。", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鎮ㄧ殑绾у埆娌℃湁杈惧埌5杞140绾э紝鏃犳硶浣跨敤澶у枃鍙", CHAR_COLORRED ); return; } int point=sasql_vippoint( id , 0,0); @@ -1485,17 +1485,17 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) player_all_talk(index,buff); return; }else{ - CHAR_talkToCli( index, -1,"您身上的点数不足以使用大喇叭。", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鎮ㄨ韩涓婄殑鐐规暟涓嶈冻浠ヤ娇鐢ㄥぇ鍠囧彮銆", CHAR_COLORRED ); return; } }else{ - CHAR_talkToCli( index, -1,"目前本线没有开启全服大喇叭功能,请去其他线路尝试。", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鐩墠鏈嚎娌℃湁寮鍚叏鏈嶅ぇ鍠囧彮鍔熻兘锛岃鍘诲叾浠栫嚎璺皾璇曘", CHAR_COLORRED ); return; } } -#ifdef _ALL_TALK //世界频道 +#ifdef _ALL_TALK //涓栫晫棰戦亾 if(messageeraseescape[0] == '/' && messageeraseescape[1] == 'W' && messageeraseescape[2] == 'D'){ #ifndef _8018_SA CONNECT_setCloseRequest( getfdFromCharaIndex(index) , 1 ); @@ -1515,18 +1515,18 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) time_t timep; struct tm *p; time(&timep); - p=localtime(&timep); /*取得当地时间*/ + p=localtime(&timep); /*鍙栧緱褰撳湴鏃堕棿*/ timep = mktime(p); int SmallTime = timep - MyTime; easyGetTokenFromString( messageeraseescape , 2 , buff, sizeof(buff)); if(strcmp(buff,"on")==0){ CHAR_setWorkInt( index , CHAR_WORKALLTALKTYPE, 0); - CHAR_talkToCli( index, -1, "你已经打开世界频道!", CHAR_COLORRED); + CHAR_talkToCli( index, -1, "浣犲凡缁忔墦寮涓栫晫棰戦亾!", CHAR_COLORRED); return; }else if(strcmp(buff,"off")==0){ CHAR_setWorkInt( index , CHAR_WORKALLTALKTYPE, 1); - CHAR_talkToCli( index, -1, "你已经关闭世界频道!", CHAR_COLORRED); + CHAR_talkToCli( index, -1, "浣犲凡缁忓叧闂笘鐣岄閬!", CHAR_COLORRED); return; } if(CHAR_getWorkInt(index,CHAR_WORKALLTALKTYPE)==1){ @@ -1541,10 +1541,10 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) if( CHAR_getCharUse(i) != FALSE ) { if(CHAR_getWorkInt(i,CHAR_WORKALLTALKTYPE)==0){ if(strlen(buff)>80){ - CHAR_talkToCli( index, -1,"您的世界喊话字数超出限制,目前世界喊话字数限制为40个。", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鎮ㄧ殑涓栫晫鍠婅瘽瀛楁暟瓒呭嚭闄愬埗锛岀洰鍓嶄笘鐣屽枈璇濆瓧鏁伴檺鍒朵负40涓", CHAR_COLORRED ); return; } - sprintf( AllMsg, "[世界]%s:%s", MyName, buff); + sprintf( AllMsg, "[涓栫晫]%s锛%s", MyName, buff); CHAR_talkToCli( i, -1, AllMsg, color); } } @@ -1561,15 +1561,15 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) } return; }else{ - CHAR_talkToCli( index, -1,"你的说话时间间隔太短,请等等再说吧!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"浣犵殑璇磋瘽鏃堕棿闂撮殧澶煭,璇风瓑绛夊啀璇村惂!", CHAR_COLORRED ); return; } }else{ - CHAR_talkToCli( index, -1,"对不起,您今日的世界喊话次数已达上限,喊话失败。", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"瀵逛笉璧凤紝鎮ㄤ粖鏃ョ殑涓栫晫鍠婅瘽娆℃暟宸茶揪涓婇檺锛屽枈璇濆け璐ャ", CHAR_COLORRED ); return; } }else{ - CHAR_talkToCli( index, -1,"你的转数不够或者声望不够,无法使用此功能!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"浣犵殑杞暟涓嶅鎴栬呭0鏈涗笉澶,鏃犳硶浣跨敤姝ゅ姛鑳!", CHAR_COLORRED ); return; } } @@ -1589,18 +1589,18 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) time_t timep; struct tm *p; time(&timep); - p=localtime(&timep); /*取得当地时间*/ + p=localtime(&timep); /*鍙栧緱褰撳湴鏃堕棿*/ timep = mktime(p); int SmallTime = timep - MyTime; easyGetTokenFromString( messageeraseescape , 2 , buff, sizeof(buff)); if(strcmp(buff,"on")==0){ CHAR_setWorkInt( index , CHAR_WORKALLTALKTYPE, 0); - CHAR_talkToCli( index, -1, "你已经打开世界频道!", CHAR_COLORRED); + CHAR_talkToCli( index, -1, "浣犲凡缁忔墦寮涓栫晫棰戦亾!", CHAR_COLORRED); return; }else if(strcmp(buff,"off")==0){ CHAR_setWorkInt( index , CHAR_WORKALLTALKTYPE, 1); - CHAR_talkToCli( index, -1, "你已经关闭世界频道!", CHAR_COLORRED); + CHAR_talkToCli( index, -1, "浣犲凡缁忓叧闂笘鐣岄閬!", CHAR_COLORRED); return; } if(CHAR_getWorkInt(index,CHAR_WORKALLTALKTYPE)==1){ @@ -1615,10 +1615,10 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) if( CHAR_getCharUse(i) != FALSE ) { if(CHAR_getWorkInt(i,CHAR_WORKALLTALKTYPE)==0){ if(strlen(buff)>80){ - CHAR_talkToCli( index, -1,"您的世界喊话字数超出限制,目前世界喊话字数限制为40个。", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鎮ㄧ殑涓栫晫鍠婅瘽瀛楁暟瓒呭嚭闄愬埗锛岀洰鍓嶄笘鐣屽枈璇濆瓧鏁伴檺鍒朵负40涓", CHAR_COLORRED ); return; } - sprintf( AllMsg, "[世界]%s:%s", MyName, buff); + sprintf( AllMsg, "[涓栫晫]%s锛%s", MyName, buff); CHAR_talkToCli( i, -1, AllMsg, color); } } @@ -1635,15 +1635,15 @@ void CHAR_Talk( int fd, int index,char* message,int color, int area ) } return; }else{ - CHAR_talkToCli( index, -1,"你的说话时间间隔太短,请等等再说吧!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"浣犵殑璇磋瘽鏃堕棿闂撮殧澶煭,璇风瓑绛夊啀璇村惂!", CHAR_COLORRED ); return; } }else{ - CHAR_talkToCli( index, -1,"对不起,您今日的世界喊话次数已达上限,喊话失败。", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"瀵逛笉璧凤紝鎮ㄤ粖鏃ョ殑涓栫晫鍠婅瘽娆℃暟宸茶揪涓婇檺锛屽枈璇濆け璐ャ", CHAR_COLORRED ); return; } }else{ - CHAR_talkToCli( index, -1,"你的转数不够或者声望不够,无法使用此功能!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"浣犵殑杞暟涓嶅鎴栬呭0鏈涗笉澶,鏃犳硶浣跨敤姝ゅ姛鑳!", CHAR_COLORRED ); return; } } @@ -1655,7 +1655,7 @@ if (messageeraseescape[0]== '/' && messageeraseescape[1]== 'I' && CONNECT_setCloseRequest( getfdFromCharaIndex(index) , 1 ); return; #endif - CHAR_talkToCli( index, -1,"请通过其他方式联系在线GM,谢谢!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"璇烽氳繃鍏朵粬鏂瑰紡鑱旂郴鍦ㄧ嚎GM锛岃阿璋紒", CHAR_COLORRED ); return; } @@ -1663,11 +1663,11 @@ if (messageeraseescape[0]== '/' && messageeraseescape[1]== 'I' && if (messageeraseescape[0]== '/' && messageeraseescape[1]== 'q' && messageeraseescape[2]== 't'){ if(CHAR_getWorkInt(index,CHAR_WORKQUESTIONFLG)!=1){ - CHAR_talkToCli( index, -1,"您已关闭在线问答功能,您将不会收到在线问题!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鎮ㄥ凡鍏抽棴鍦ㄧ嚎闂瓟鍔熻兘锛屾偍灏嗕笉浼氭敹鍒板湪绾块棶棰橈紒", CHAR_COLORRED ); CHAR_setWorkInt(index,CHAR_WORKQUESTIONFLG,1); return; }else{ - CHAR_talkToCli( index, -1,"您已开启在线问答功能,您将会收到在线问题!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鎮ㄥ凡寮鍚湪绾块棶绛斿姛鑳斤紝鎮ㄥ皢浼氭敹鍒板湪绾块棶棰橈紒", CHAR_COLORRED ); CHAR_setWorkInt(index,CHAR_WORKQUESTIONFLG,0); return; } @@ -1681,13 +1681,13 @@ if (messageeraseescape[0]== '/' && messageeraseescape[1]== 'q' && easyGetTokenFromString( messageeraseescape , 2 , token, sizeof(token)); suit = atoi(token); if(suit < 1 || suit > CHAR_EQUIPPLACENUM){ - sprintf(token, "请输入1 ~ %d之间!", CHAR_EQUIPPLACENUM); + sprintf(token, "璇疯緭鍏1 ~ %d涔嬮棿锛", CHAR_EQUIPPLACENUM); CHAR_talkToCli( index, -1, token, CHAR_COLORRED ); return; } int itemindex = CHAR_getItemIndex( index, suit-1); if( !ITEM_CHECKINDEX( itemindex) ){ - CHAR_talkToCli( index, -1, "你输入的位置上没有套装装备!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1, "浣犺緭鍏ョ殑浣嶇疆涓婃病鏈夊瑁呰澶囷紒", CHAR_COLORRED ); return; } int i, num=0; @@ -1706,7 +1706,7 @@ if (messageeraseescape[0]== '/' && messageeraseescape[1]== 'q' && if( ITEM_WarpForAny(index, ff, fx, fy, 0) == FALSE )return; } }else{ - sprintf(token, "您的套装数不足%d件,无法使用该功能!", 5); + sprintf(token, "鎮ㄧ殑濂楄鏁颁笉瓒%d浠讹紝鏃犳硶浣跨敤璇ュ姛鑳斤紒", 5); CHAR_talkToCli( index, -1, token, CHAR_COLORRED ); } return; @@ -1726,18 +1726,18 @@ if (messageeraseescape[0]== '/' && messageeraseescape[1]== 's' && { if(sasql_query_safepasswd(cdkey, buff)==1){ CHAR_setWorkInt( index, CHAR_WORKSAFEMODE, 1); - CHAR_talkToCli( index, -1,"您已经成功解锁!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鎮ㄥ凡缁忔垚鍔熻В閿侊紒", CHAR_COLORRED ); } return; } else { - CHAR_talkToCli( index, -1, "您输入的安全码小于6位或大于12位,请重新输入!", CHAR_COLORRED); + CHAR_talkToCli( index, -1, "鎮ㄨ緭鍏ョ殑瀹夊叏鐮佸皬浜6浣嶆垨澶т簬12浣嶏紝璇烽噸鏂拌緭鍏ワ紒", CHAR_COLORRED); return; } }else{ CHAR_setWorkInt( index, CHAR_WORKSAFEMODE, 0); - CHAR_talkToCli( index, -1,"您已锁上安全锁,您将无法丢出道具及宠物!", CHAR_COLORRED ); + CHAR_talkToCli( index, -1,"鎮ㄥ凡閿佷笂瀹夊叏閿侊紝鎮ㄥ皢鏃犳硶涓㈠嚭閬撳叿鍙婂疇鐗╋紒", CHAR_COLORRED ); return; } } @@ -1750,7 +1750,7 @@ if (messageeraseescape[0]== '/' && messageeraseescape[1]== 's' && // && messageeraseescape[4] == 'N' || messageeraseescape[4] == 'n'){ // // CHAR_setWorkInt( index , CHAR_WORKALLTALKTYPE, 0); -// CHAR_talkToCli( index, -1, "你已经打开世界频道!", CHAR_COLORRED); +// CHAR_talkToCli( index, -1, "浣犲凡缁忔墦寮涓栫晫棰戦亾!", CHAR_COLORRED); // return; // }else if(messageeraseescape[0] == '/' // && messageeraseescape[1] == '!' @@ -1759,7 +1759,7 @@ if (messageeraseescape[0]== '/' && messageeraseescape[1]== 's' && // && messageeraseescape[4] == 'F' || messageeraseescape[4] == 'f' // && messageeraseescape[5] == 'F' || messageeraseescape[5] == 'f'){ // CHAR_setWorkInt( index , CHAR_WORKALLTALKTYPE, 1); -// CHAR_talkToCli( index, -1, "你已经关闭世界频道!", CHAR_COLORRED); +// CHAR_talkToCli( index, -1, "浣犲凡缁忓叧闂笘鐣岄閬!", CHAR_COLORRED); // return; // } //#endif @@ -1850,7 +1850,7 @@ if (messageeraseescape[0]== '/' && messageeraseescape[1]== 's' && //int lastTalkTime = CHAR_getWorkInt(index, CHAR_WORKNOTALKTRNTIME ); //if((int)NowTime.tv_sec - lastTalkTime >= 600 ){ char notalktrnmsg[256]; - sprintf(notalktrnmsg,"您的人物处于新人阶段(%d级以下),无法正常喊话,请努力提升实力哦。",getTalkLv()); + sprintf(notalktrnmsg,"鎮ㄧ殑浜虹墿澶勪簬鏂颁汉闃舵锛%d绾т互涓嬶級锛屾棤娉曟甯稿枈璇濓紝璇峰姫鍔涙彁鍗囧疄鍔涘摝銆",getTalkLv()); CHAR_talkToCli(index,-1,notalktrnmsg,CHAR_COLORYELLOW); //CHAR_setWorkInt(index, CHAR_WORKNOTALKTRNTIME,(int)NowTime.tv_sec ); //} @@ -1960,7 +1960,7 @@ if (messageeraseescape[0]== '/' && messageeraseescape[1]== 's' && #endif { char buf[512]; - sprintf(buf, "[族长广播]%s: %s", CHAR_getChar( index, CHAR_NAME ), messageeraseescape); + sprintf(buf, "[鏃忛暱骞挎挱]%s: %s", CHAR_getChar( index, CHAR_NAME ), messageeraseescape); saacproto_ACFMAnnounce_send( acfd, CHAR_getChar( index, CHAR_FMNAME), CHAR_getInt( index, CHAR_FMINDEX), @@ -2153,7 +2153,7 @@ void CHAR_talkToFloor(int floor, int talkindex, char* message, CHAR_COLOR color) #endif #ifdef _CHANNEL_MODIFY -// 初始化职业频道 +// 鍒濆鍖栬亴涓氶閬 int InitOccChannel(void) { if(piOccChannelMember == NULL){ @@ -2177,11 +2177,11 @@ void TalkAction(int charaindex, char *message) int action; }tagTlakAction; tagTlakAction TlakAction[13]={ - { "坐下", 11},{ "挥手", 12},{ "点头", 18}, - { "高兴", 13},{ "生气", 14},{ "悲伤", 15}, - { "站立", 19},{ "走动", 17},{ "晕倒", 10}, - { "攻击", 2 },{ "防御", 16},{ "受伤", 4 }, - { "投掷", 3 } + { "鍧愪笅", 11},{ "鎸ユ墜", 12},{ "鐐瑰ご", 18}, + { "楂樺叴", 13},{ "鐢熸皵", 14},{ "鎮蹭激", 15}, + { "绔欑珛", 19},{ "璧板姩", 17},{ "鏅曞", 10}, + { "鏀诲嚮", 2 },{ "闃插尽", 16},{ "鍙椾激", 4 }, + { "鎶曟幏", 3 } }; for(i=0;i<13;i++) if(strstr(message,TlakAction[i].talk)) @@ -2246,7 +2246,7 @@ int re_gm_command() } if (fp == NULL) { - print("无法打开文件\n"); + print("鏃犳硶鎵撳紑鏂囦欢\n"); return FALSE; } int i; diff --git a/char/char_walk.c b/char/char_walk.c index 5783fbc..20e043f 100644 --- a/char/char_walk.c +++ b/char/char_walk.c @@ -72,23 +72,23 @@ static CHAR_WALKRET CHAR_walk_turn( int index, int dir ) /*------------------------------------------------------------ - * n 汹 汹中凶map毛霜月 - * 娄醒 - * index int 平乓仿及奶件犯永弁旦 - * fl int 白夫失ID - * ox int 蟆及橇谪及x - * oy int 蟆及橇谪及y - * fx int 汹中凶 及x - * fy int 汹中凶 及y - * 忒曰袄 - * 卅仄 + * n 姹 姹逛腑鍑秏ap姣涢湝鏈 + * 濞勯啋 + * index int 骞充箵浠垮強濂朵欢鐘案寮佹棪 + * fl int 鐧藉か澶盜D + * ox int 锜嗗強姗囪蔼鍙妜 + * oy int 锜嗗強姗囪蔼鍙妝 + * fx int 姹逛腑鍑 鍙妜 + * fy int 姹逛腑鍑 鍙妝 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ static void CHAR_sendMapAtWalk( int index, int fl ,int ox ,int oy, int fx, int fy ) { /* - * 蜇箕及袄午}蟆引匹及袄及犒毛苇月 - * 仇丹允月午}伐□皿NPC手棵签分[ + * 铚囩畷鍙婅鍗堬綕锜嗗紩鍖瑰強琚勫強鐘掓瘺鑻囨湀 + * 浠囦腹鍏佹湀鍗堬綕浼愨枴鐨縉PC鎵嬫5绛惧垎锛 */ int vx,vy; const int seesiz = MAP_CHAR_DEFAULTSEESIZ; @@ -98,8 +98,8 @@ static void CHAR_sendMapAtWalk( int index, int fl ,int ox ,int oy, vx = fx - ox; vy = fy - oy; - if( ABS(vx) >= seesiz/2 || /* 犒互 五中 */ - ABS(vy) >= seesiz/2 ){ /* 犒互 五中 */ + if( ABS(vx) >= seesiz/2 || /* 鐘掍簰 浜斾腑 */ + ABS(vy) >= seesiz/2 ){ /* 鐘掍簰 浜斾腑 */ return; }else{ @@ -110,12 +110,12 @@ static void CHAR_sendMapAtWalk( int index, int fl ,int ox ,int oy, int absx = ABS(vx); int absy = ABS(vy); /* - * 夫午勾聂户卞旦正□玄毛潸月及午}vx , vy 井日1夫仁及互禾奶件玄 - * 蟆午井今卅日卅中方丹卞} - * clipRect 反 w,h 0 毛心午户化中月 + * 澶崍鍕捐亗鎴峰崬鏃︽鈻$巹姣涙礁鏈堝強鍗堬綕vx , vy 浜曟棩1澶粊鍙婁簰绂惧ザ浠剁巹 + * 锜嗗崍浜曚粖鍗呮棩鍗呬腑鏂逛腹鍗烇綕 + * clipRect 鍙 w,h 0 姣涘績鍗堟埛鍖栦腑鏈 */ - /* == 0 及凛反霜日卅仁化方中 */ + /* == 0 鍙婂嚊鍙嶉湝鏃ュ崊浠佸寲鏂逛腑 */ if( vx != 0 ){ if( vx > 0 ){ send.x = oldlux + seesiz; @@ -150,7 +150,7 @@ static void CHAR_sendMapAtWalk( int index, int fl ,int ox ,int oy, } } - /* == 0 及凛反霜日卅仁化方中 */ + /* == 0 鍙婂嚊鍙嶉湝鏃ュ崊浠佸寲鏂逛腑 */ if( vy != 0 ){ if( vy > 0 ){ send.y = oldluy + seesiz; @@ -189,11 +189,11 @@ static void CHAR_sendMapAtWalk( int index, int fl ,int ox ,int oy, } static CHAR_WALKRET CHAR_walk_move( int charaindex, int dir ); /*------------------------------------------------------------ - * 啖 允月[ - * 娄醒 - * index int 平乓仿及奶件犯永弁旦 - * dir int 轾 - * 忒曰袄 + * 鍟 鍏佹湀锛 + * 濞勯啋 + * index int 骞充箵浠垮強濂朵欢鐘案寮佹棪 + * dir int 杞 + * 蹇掓洶琚 * CHAR_WALKRET ------------------------------------------------------------*/ static CHAR_WALKRET CHAR_walk_move( int charaindex, int dir ) @@ -317,7 +317,7 @@ static CHAR_WALKRET CHAR_walk_move( int charaindex, int dir ) #endif if( !CHAR_getFlg( OBJECT_getIndex(objindex),CHAR_ISOVERED) ){ if(!CHAR_CHECKINDEX(OBJECT_getIndex(objindex))){ - printf("自动删除一个问题对象!"); + printf("鑷姩鍒犻櫎涓涓棶棰樺璞★紒"); endObjectOne(objindex); break; } @@ -380,7 +380,7 @@ static CHAR_WALKRET CHAR_walk_move( int charaindex, int dir ) ox = OBJECT_setX(objindex,CHAR_getInt(charaindex,CHAR_X)); oy = OBJECT_setY(objindex,CHAR_getInt(charaindex,CHAR_Y)); if( !MAP_objmove( objindex, of,ox,oy,ff,fx,fy ) ){ - /* 仇氏卅氏升丹仄方丹手卅中 */ + /* 浠囨皬鍗呮皬鍗囦腹浠勬柟涓规墜鍗呬腑 */ fprint( "ERROR MAP_OBJMOVE objindex=%d(%s)\n",objindex, CHAR_getUseName( charaindex ) ); } @@ -427,10 +427,10 @@ static CHAR_WALKRET CHAR_walk_move( int charaindex, int dir ) ofunc = (OFFFUNC)CHAR_getFunctionPointer( OBJECT_getIndex(objindex), CHAR_OFFFUNC); break; case OBJTYPE_ITEM: - /* 卞窒手仄卅中 */ + /* 鍗炵獟鎵嬩粍鍗呬腑 */ break; case OBJTYPE_GOLD: - /* 卞窒手仄卅中 */ + /* 鍗炵獟鎵嬩粍鍗呬腑 */ break; default: break; @@ -478,7 +478,7 @@ CHAR_AFTERWALK: if( count > 0 ) { CHAR_setWorkInt( charaindex, CHAR_WORK_TOHELOS_COUNT, count -1); if( count -1 == 0 ) { - CHAR_talkToCli( charaindex, -1, "道具的效力已到。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "閬撳叿鐨勬晥鍔涘凡鍒般", CHAR_COLORWHITE); } } par = ENCOUNT_getEncountPercentMin( charaindex, of,ox,oy); @@ -539,12 +539,12 @@ CHAR_AFTERWALK: int minep = CHAR_getWorkInt(charaindex, CHAR_WORKENCOUNTPROBABILITY_MIN); int cep = CONNECT_get_CEP(enfd); -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 int temp=0; int p_cep = CHAR_getWorkInt(charaindex, CHAR_ENCOUNT_FIX); if( p_cep != 0 ){ if( CHAR_getWorkInt( charaindex, CHAR_ENCOUNT_NUM) < (int)time(NULL) ){ - CHAR_talkToCli( charaindex, -1, "技能效用结束。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鎶鑳芥晥鐢ㄧ粨鏉熴", CHAR_COLORYELLOW); CHAR_setWorkInt( charaindex, CHAR_ENCOUNT_FIX, 0); CHAR_setWorkInt( charaindex, CHAR_ENCOUNT_NUM, 0); } @@ -586,7 +586,7 @@ CHAR_AFTERWALK: } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 #ifdef _ENEMY_ACTION if( rand()%(120*getEnemyAction()) < temp ){ #else @@ -666,12 +666,12 @@ CHAR_AFTERWALK: } /*------------------------------------------------------------ - * 平乓仿互汹仁[ - * 娄醒 - * index int Char匹及index - * dir int 轾 - * mode int 0卅日汹仁[1卅日 轾鳖晶[ - * 忒曰袄 + * 骞充箵浠夸簰姹逛粊锛 + * 濞勯啋 + * index int Char鍖瑰強index + * dir int 杞 + * mode int 0鍗呮棩姹逛粊锛1鍗呮棩 杞鹃硸鏅讹蓟 + * 蹇掓洶琚 * CHAR_WALKRET ------------------------------------------------------------*/ CHAR_WALKRET CHAR_walk( int index, int dir, int mode) @@ -737,11 +737,11 @@ CHAR_WALKRET CHAR_walk_jjc( int index, int floor, int ox, int oy, int dir) } #endif /*------------------------------------------------------------ - * 汹井六月蟆赏 [ - * 娄醒 - * index int 平乓仿奶件犯永弁旦 - * 忒曰袄 - * 卅仄 + * 姹逛簳鍏湀锜嗚祻 锛 + * 濞勯啋 + * index int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_walkcall( int index ) { @@ -756,8 +756,8 @@ void CHAR_walkcall( int index ) CHAR_getWorkChar(index,CHAR_WORKWALKARRAY)); CHAR_ctodirmode( tmp[0], &dir ,&mode ); - /* 褪卅日仪蟆卞桦赭毛筏盛仄化云仁 - * 褪及 仁蟆及桦赭毛 卞阂互啖 允月啃 + /* 瑜崊鏃ヤ华锜嗗崬妗﹁淡姣涚瓘鐩涗粍鍖栦簯浠 + * 瑜強 浠佽焼鍙婃ˇ璧瘺 鍗為槀浜掑晼 鍏佹湀鍟 */ if( CHAR_getInt( index, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER ) { if( CHAR_getWorkInt( index, CHAR_WORKPARTYMODE ) == CHAR_PARTY_LEADER ) { @@ -766,11 +766,11 @@ void CHAR_walkcall( int index ) } } - /* 汹仁 */ + /* 姹逛粊 */ ret = CHAR_walk( index , dir ,mode ); if( mode == 0 && ret == CHAR_WALKSUCCESSED ) { - /* 愤坌互褪卅日醮棉毛汹井六月 */ + /* 鎰ゅ潓浜掕お鍗呮棩閱姣涙惫浜曞叚鏈 */ if( CHAR_getInt( index, CHAR_WHICHTYPE) == CHAR_TYPEPLAYER ) { @@ -780,13 +780,13 @@ void CHAR_walkcall( int index ) int toindex = CHAR_getWorkInt( index, i + CHAR_WORKPARTYINDEX1); if( CHAR_CHECKINDEX(toindex) ) { int parent_dir; - /* 阂及匏 午]褪及汹五蟆及匏 井日 轾毛菲户月 */ - /* 汹仁 */ + /* 闃傚強鍖 鍗堬冀瑜強姹逛簲锜嗗強鍖 浜曟棩 杞炬瘺鑿叉埛鏈 */ + /* 姹逛粊 */ start.x = CHAR_getInt( toindex, CHAR_X); start.y = CHAR_getInt( toindex, CHAR_Y); parent_dir = NPC_Util_getDirFromTwoPoint( &start,&end ); - /* 弘仿犯奴它旦左皿扑亦件汹五毛 蜇允月啃卞] - * 戚及阂反蟆及阂及 毛馨丹方丹卞允月 + /* 寮樹豢鐘ゴ瀹冩棪宸︾毧鎵戜害浠舵惫浜旀瘺 铚囧厑鏈堝晝鍗烇冀 + * 鎴氬強闃傚弽锜嗗強闃傚強 姣涢Θ涓规柟涓瑰崬鍏佹湀 */ end = start; if( parent_dir != -1 ) { @@ -798,8 +798,8 @@ void CHAR_walkcall( int index ) int petindex = CHAR_getWorkInt( toindex, CHAR_WORKPETFOLLOW); if( CHAR_CHECKINDEX(petindex) ) { int parent_dir; - /* 阂及匏 午]褪及汹五蟆及匏 井日 轾毛菲户月 */ - /* 汹仁 */ + /* 闃傚強鍖 鍗堬冀瑜強姹逛簲锜嗗強鍖 浜曟棩 杞炬瘺鑿叉埛鏈 */ + /* 姹逛粊 */ end.x = CHAR_getInt( toindex, CHAR_X); end.y = CHAR_getInt( toindex, CHAR_Y); start.x = CHAR_getInt( petindex, CHAR_X); @@ -834,7 +834,7 @@ void CHAR_walkcall( int index ) } } else { - /* 赓渝祭仄卅云允 */ + /* 璧撴笣绁粍鍗呬簯鍏 */ CHAR_setWorkInt( index, i+CHAR_WORKPARTYINDEX1, -1); } } @@ -845,8 +845,8 @@ void CHAR_walkcall( int index ) int petindex = CHAR_getWorkInt( index, CHAR_WORKPETFOLLOW); if( CHAR_CHECKINDEX(petindex) ) { int parent_dir; - /* 阂及匏 午]褪及汹五蟆及匏 井日 轾毛菲户月 */ - /* 汹仁 */ + /* 闃傚強鍖 鍗堬冀瑜強姹逛簲锜嗗強鍖 浜曟棩 杞炬瘺鑿叉埛鏈 */ + /* 姹逛粊 */ end.x = CHAR_getInt( index, CHAR_X); end.y = CHAR_getInt( index, CHAR_Y); start.x = CHAR_getInt( petindex, CHAR_X); @@ -862,8 +862,8 @@ void CHAR_walkcall( int index ) //if( (end.x == start.x) && (end.x == start.y) ) // parent_dir = -1; - /* 弘仿犯奴它旦左皿扑亦件汹五毛 蜇允月啃卞] - * 戚及阂反蟆及阂及 毛馨丹方丹卞允月 + /* 寮樹豢鐘ゴ瀹冩棪宸︾毧鎵戜害浠舵惫浜旀瘺 铚囧厑鏈堝晝鍗烇冀 + * 鎴氬強闃傚弽锜嗗強闃傚強 姣涢Θ涓规柟涓瑰崬鍏佹湀 */ //print(" pdir:%d sx:%d sy:%d ex:%d ey:%d ", // parent_dir, start.x, start.y, end.x, end.y ); @@ -887,7 +887,7 @@ void CHAR_walkcall( int index ) } } else { - /* 赓渝祭仄卅云允 */ + /* 璧撴笣绁粍鍗呬簯鍏 */ CHAR_setWorkInt( index, CHAR_WORKPETFOLLOW, -1); } @@ -899,8 +899,8 @@ void CHAR_walkcall( int index ) } /* 99/03/09 By Kawata */ - /* walk及瑛绊}WALKARRAY互弁伉失今木化中月桦宁互丐月及匹 - * 潸曰 仄化戊疋月 + /* walk鍙婄憶缁婏綕WALKARRAY浜掑紒浼夊け浠婃湪鍖栦腑鏈堟ˇ瀹佷簰涓愭湀鍙婂尮 + * 娼告洶 浠勫寲鎴婄枊鏈 */ strcpysafe( tmp ,sizeof(tmp), CHAR_getWorkChar(index,CHAR_WORKWALKARRAY)); @@ -908,7 +908,7 @@ void CHAR_walkcall( int index ) CHAR_setWorkChar(index,CHAR_WORKWALKARRAY,&tmp[1]); } - /* 凛棉毛褡户月 */ + /* 鍑涙姣涜ぁ鎴锋湀 */ CHAR_setWorkInt( index, CHAR_WORKWALKSTARTSEC , NowTime.tv_sec ); CHAR_setWorkInt( index, CHAR_WORKWALKSTARTMSEC , NowTime.tv_usec ); } @@ -916,13 +916,13 @@ void CHAR_walkcall( int index ) /*------------------------------------------------------------ - * 汹五铵户毛瓒 允月[ - * 娄醒 - * index int 平乓仿 匹及奶件犯永弁旦 - * dir char* 轾 侬 + * 姹逛簲閾垫埛姣涚搾 鍏佹湀锛 + * 濞勯啋 + * index int 骞充箵浠 鍖瑰強濂朵欢鐘案寮佹棪 + * dir char* 杞 渚 * id int ID - * 忒曰袄 - * 卅仄 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_walk_start(int index, int x, int y, char* dir, BOOL mapsendmode ) { @@ -937,7 +937,7 @@ void CHAR_walk_start(int index, int x, int y, char* dir, BOOL mapsendmode ) ox = CHAR_getInt(index,CHAR_X); oy = CHAR_getInt(index,CHAR_Y); if ( ABS(x - ox) > seesiz || ABS(y - oy) > seesiz ) { - CHAR_talkToCli(index, -1, "因座标错误而断线。", CHAR_COLORYELLOW); + CHAR_talkToCli(index, -1, "鍥犲骇鏍囬敊璇屾柇绾裤", CHAR_COLORYELLOW); CONNECT_setCloseRequest_debug(getfdFromCharaIndex(index) , 1); return; } @@ -985,13 +985,13 @@ void CHAR_walk_start(int index, int x, int y, char* dir, BOOL mapsendmode ) if( strlen( dir ) >= 1 ) CHAR_walkcall( index ); } /*------------------------------------------------------------ - * 汹五及 赓 - * 娄醒 - * index int 平乓仿 匹及奶件犯永弁旦 - * dir char* 轾 侬 + * 姹逛簲鍙 璧 + * 濞勯啋 + * index int 骞充箵浠 鍖瑰強濂朵欢鐘案寮佹棪 + * dir char* 杞 渚 * id int ID - * 忒曰袄 - * 卅仄 + * 蹇掓洶琚 + * 鍗呬粍 ------------------------------------------------------------*/ void CHAR_walk_init( int fd, int x, int y, char *direction, BOOL mapsendmode) { @@ -1015,7 +1015,7 @@ void CHAR_walk_init( int fd, int x, int y, char *direction, BOOL mapsendmode) int dir, mode; CHAR_ctodirmode( direction[0], &dir ,&mode ); if( mode == 0 ) { - //print( "玩家并非领队也非单人玩家。\n"); + //print( "鐜╁骞堕潪棰嗛槦涔熼潪鍗曚汉鐜╁銆俓n"); }else { CHAR_walk_start( CONNECT_getCharaindex(fd), x,y,direction, FALSE ); @@ -1153,7 +1153,7 @@ void CHAR_sendCharaAtWalk( int charaindex, int of,int ox,int oy,int xflg, int y //print(" %s[%d]: BATTLE_CHECKINDEX( %d) err!!\n", __FILE__, __LINE__, battleno); }else { helpno = (BattleArray[ battleno].Side[ sideno].flg & BSIDE_FLG_HELP_OK) ? TRUE:FALSE; - /* HelpNo = 1 反移 */ + /* HelpNo = 1 鍙嶇Щ */ if( CHAR_makeCAOPT3String( objindex, cabuf, sizeof( cabuf), CHAR_ACTBATTLE, battleno,sideno,helpno )){ CONNECT_appendCAbuf( fd,cabuf,strlen(cabuf)); @@ -1213,7 +1213,7 @@ void CHAR_sendCharaAtWalk( int charaindex, int of,int ox,int oy,int xflg, int y if( OBJECT_getType(objindex) == OBJTYPE_CHARA && !CHAR_getFlg(OBJECT_getIndex(objindex), CHAR_ISVISIBLE) ){ if(!CHAR_CHECKINDEX(OBJECT_getIndex(objindex))){ - printf("自动删除一个问题对象!"); + printf("鑷姩鍒犻櫎涓涓棶棰樺璞★紒"); endObjectOne(objindex); } continue; @@ -1362,7 +1362,7 @@ void CHAR_sendCharaAtWalk( int charaindex, int of,int ox,int oy,int xflg, int y if(strlen( c_msg[4]) > 0){ //print("\nc_msg[4]=%s,strpos[4]=%d\n",c_msg[4],strpos[4]); lssproto_C_send( fd, c_msg[4]); - }//修复人多关闭外挂 + }//淇浜哄鍏抽棴澶栨寕 } static void CHAR_sendCDCharaAtWalk( int charaindex, int of, int ox, int oy, int xflg, int yflg ){ @@ -1381,9 +1381,9 @@ static void CHAR_sendCDCharaAtWalk( int charaindex, int of, int ox, int oy, int x = CHAR_getInt( charaindex, CHAR_X); y = CHAR_getInt( charaindex, CHAR_Y); - if( of != fl || /* 白夫失互啜丹 */ - ABS(x - ox) > seesiz/2 || /* 犒互 五中 */ - ABS(y - oy) > seesiz/2 ) /* 犒互 五中 */ + if( of != fl || /* 鐧藉か澶变簰鍟滀腹 */ + ABS(x - ox) > seesiz/2 || /* 鐘掍簰 浜斾腑 */ + ABS(y - oy) > seesiz/2 ) /* 鐘掍簰 浜斾腑 */ return; fd = getfdFromCharaIndex( charaindex ); @@ -1401,7 +1401,7 @@ static void CHAR_sendCDCharaAtWalk( int charaindex, int of, int ox, int oy, int if( OBJECT_getType(objindex) == OBJTYPE_CHARA && !CHAR_getFlg(OBJECT_getIndex(objindex), CHAR_ISVISIBLE) ){ if(!CHAR_CHECKINDEX(OBJECT_getIndex(objindex))){ - printf("自动删除一个问题对象!"); + printf("鑷姩鍒犻櫎涓涓棶棰樺璞★紒"); endObjectOne(objindex); } continue; @@ -1564,7 +1564,7 @@ CHAR_WALKRET CHAR_walk_jc( int charaindex, int of, int ox, int oy, int dir ) case OBJTYPE_CHARA: if( !CHAR_getFlg( OBJECT_getIndex(objindex),CHAR_ISOVERED) ){ if(!CHAR_CHECKINDEX(OBJECT_getIndex(objindex))){ - printf("自动删除一个问题对象!"); + printf("鑷姩鍒犻櫎涓涓棶棰樺璞★紒"); endObjectOne(objindex); break; } @@ -1623,7 +1623,7 @@ CHAR_WALKRET CHAR_walk_jc( int charaindex, int of, int ox, int oy, int dir ) ox = OBJECT_setX(objindex,CHAR_getInt(charaindex,CHAR_X)); oy = OBJECT_setY(objindex,CHAR_getInt(charaindex,CHAR_Y)); if( !MAP_objmove( objindex, of,ox,oy,ff,fx,fy ) ){ - /* 仇氏卅氏升丹仄方丹手卅中 */ + /* 浠囨皬鍗呮皬鍗囦腹浠勬柟涓规墜鍗呬腑 */ fprint( "ERROR MAP_OBJMOVE objindex=%d(%s)\n",objindex, CHAR_getUseName( charaindex ) ); } @@ -1665,10 +1665,10 @@ CHAR_WALKRET CHAR_walk_jc( int charaindex, int of, int ox, int oy, int dir ) ofunc = (OFFFUNC)CHAR_getFunctionPointer( OBJECT_getIndex(objindex), CHAR_OFFFUNC); break; case OBJTYPE_ITEM: - /* 卞窒手仄卅中 */ + /* 鍗炵獟鎵嬩粍鍗呬腑 */ break; case OBJTYPE_GOLD: - /* 卞窒手仄卅中 */ + /* 鍗炵獟鎵嬩粍鍗呬腑 */ break; default: break; @@ -1712,11 +1712,11 @@ CHAR_AFTERWALK: CHAR_getInt( charaindex, CHAR_X), CHAR_getInt( charaindex, CHAR_Y)); } - count = CHAR_getWorkInt( charaindex, CHAR_WORK_TOHELOS_COUNT);//什么道具的效力 + count = CHAR_getWorkInt( charaindex, CHAR_WORK_TOHELOS_COUNT);//浠涔堥亾鍏风殑鏁堝姏 if( count > 0 ) { CHAR_setWorkInt( charaindex, CHAR_WORK_TOHELOS_COUNT, count -1); if( count -1 == 0 ) { - //CHAR_talkToCli( charaindex, -1, "道具的效力已到。", CHAR_COLORWHITE); + //CHAR_talkToCli( charaindex, -1, "閬撳叿鐨勬晥鍔涘凡鍒般", CHAR_COLORWHITE); } } par = ENCOUNT_getEncountPercentMin( charaindex, of,ox,oy); @@ -1777,12 +1777,12 @@ CHAR_AFTERWALK: int minep = CHAR_getWorkInt(charaindex, CHAR_WORKENCOUNTPROBABILITY_MIN); int cep = CONNECT_get_CEP(enfd); -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 int temp=0; int p_cep = CHAR_getWorkInt(charaindex, CHAR_ENCOUNT_FIX); if( p_cep != 0 ){ if( CHAR_getWorkInt( charaindex, CHAR_ENCOUNT_NUM) < (int)time(NULL) ){ - CHAR_talkToCli( charaindex, -1, "技能效用结束。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鎶鑳芥晥鐢ㄧ粨鏉熴", CHAR_COLORYELLOW); CHAR_setWorkInt( charaindex, CHAR_ENCOUNT_FIX, 0); CHAR_setWorkInt( charaindex, CHAR_ENCOUNT_NUM, 0); } @@ -1824,7 +1824,7 @@ CHAR_AFTERWALK: } -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 #ifdef _ENEMY_ACTION if( rand()%(120*getEnemyAction()) < temp ){ #else diff --git a/char/chatmagic.c b/char/chatmagic.c index 34c4285..4c3f25c 100644 --- a/char/chatmagic.c +++ b/char/chatmagic.c @@ -40,12 +40,12 @@ #include "trade.h" #include "npccreate.h" -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 #include "profession_skill.h" #endif #include "char_talk.h" -// WON ADD 修正族长问题 +// WON ADD 淇鏃忛暱闂 #include "family.h" #include "petmail.h" @@ -56,7 +56,7 @@ #ifdef _ALLBLUES_LUA #include "mylua/ablua.h" #endif -// WON ADD 重新读取ITEMSET.TXT +// WON ADD 閲嶆柊璇诲彇ITEMSET.TXT #include "item.h" #include "sasql.h" @@ -114,23 +114,23 @@ void CHAR_CHAT_DEBUG_setmp( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt( i , CHAR_MAXMP, atoi( setmp ) ); CHAR_setInt( i , CHAR_MP, atoi( setmp ) ); CHAR_complianceParameter( i ); CHAR_send_P_StatusString( i , CHAR_P_STRING_MP); - sprintf( token, "[GM]%s把你的MP设置为%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(setmp)/100); + sprintf( token, "[GM]%s鎶婁綘鐨凪P璁剧疆涓%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(setmp)/100); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的MP的设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(setmp)/100); + sprintf( token, "鐜╁%s鐨凪P鐨勮缃负%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(setmp)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt( charindex , CHAR_MAXMP, atoi( setmp ) ); CHAR_setInt( charindex , CHAR_MP, atoi( setmp ) ); CHAR_complianceParameter( charindex ); CHAR_send_P_StatusString( charindex , CHAR_P_STRING_MP); - sprintf( token, "MP设置为%d!",(int)atoi(setmp)/100); + sprintf( token, "MP璁剧疆涓%d!",(int)atoi(setmp)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -168,23 +168,23 @@ void CHAR_CHAT_DEBUG_str( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt( i , CHAR_STR,atoi( str ) ); CHAR_complianceParameter( i ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( i ,CHAR_P_STRING_STR|CHAR_P_STRING_MAXHP|CHAR_P_STRING_ATK); - sprintf( token, "[GM]%s把你的腕力设置为%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(str)/100); + sprintf( token, "[GM]%s鎶婁綘鐨勮厱鍔涜缃负%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(str)/100); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的腕力设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(str)/100); + sprintf( token, "鐜╁%s鐨勮厱鍔涜缃负%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(str)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt( charindex , CHAR_STR,atoi( str ) ); CHAR_complianceParameter( charindex ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( charindex ,CHAR_P_STRING_STR|CHAR_P_STRING_MAXHP|CHAR_P_STRING_ATK); - sprintf( token, "腕力设置为%d!",(int)atoi(str)/100); + sprintf( token, "鑵曞姏璁剧疆涓%d!",(int)atoi(str)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -208,23 +208,23 @@ void CHAR_CHAT_DEBUG_tgh( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt( i , CHAR_TOUGH,atoi( tgh ) ); CHAR_complianceParameter( i ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( i ,CHAR_P_STRING_TOUGH|CHAR_P_STRING_MAXHP|CHAR_P_STRING_DEF); - sprintf( token, "[GM]%s把你的耐力设置为%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(tgh)/100); + sprintf( token, "[GM]%s鎶婁綘鐨勮愬姏璁剧疆涓%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(tgh)/100); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的耐力设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(tgh)/100); + sprintf( token, "鐜╁%s鐨勮愬姏璁剧疆涓%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(tgh)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt( charindex , CHAR_TOUGH,atoi( tgh ) ); CHAR_complianceParameter( charindex ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( charindex ,CHAR_P_STRING_TOUGH|CHAR_P_STRING_MAXHP|CHAR_P_STRING_DEF); - sprintf( token, "耐力设置为%d!",(int)atoi(tgh)/100); + sprintf( token, "鑰愬姏璁剧疆涓%d!",(int)atoi(tgh)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -249,23 +249,23 @@ void CHAR_CHAT_DEBUG_dex( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt( i , CHAR_DEX,atoi( dex ) ); CHAR_complianceParameter( i ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( i ,CHAR_P_STRING_DEX|CHAR_P_STRING_MAXHP|CHAR_P_STRING_ATK|CHAR_P_STRING_QUICK); - sprintf( token, "[GM]%s把你的敏捷设置为%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(dex)/100); + sprintf( token, "[GM]%s鎶婁綘鐨勬晱鎹疯缃负%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(dex)/100); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的敏捷设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(dex)/100); + sprintf( token, "鐜╁%s鐨勬晱鎹疯缃负%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(dex)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt( charindex , CHAR_DEX,atoi( dex ) ); CHAR_complianceParameter( charindex ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( charindex ,CHAR_P_STRING_DEX|CHAR_P_STRING_MAXHP|CHAR_P_STRING_ATK|CHAR_P_STRING_QUICK); - sprintf( token, "敏捷设置为%d!",(int)atoi(dex)/100); + sprintf( token, "鏁忔嵎璁剧疆涓%d!",(int)atoi(dex)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -288,23 +288,23 @@ void CHAR_CHAT_DEBUG_vital( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt( i , CHAR_VITAL,atoi( vital ) ); CHAR_complianceParameter( i ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( i ,CHAR_P_STRING_VITAL|CHAR_P_STRING_MAXHP|CHAR_P_STRING_DEF); - sprintf( token, "[GM]%s把你的体力设置为%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(vital)/100); + sprintf( token, "[GM]%s鎶婁綘鐨勪綋鍔涜缃负%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(vital)/100); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的体力设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(vital)/100); + sprintf( token, "鐜╁%s鐨勪綋鍔涜缃负%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(vital)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt( charindex , CHAR_VITAL,atoi( vital ) ); CHAR_complianceParameter( charindex ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( charindex ,CHAR_P_STRING_VITAL|CHAR_P_STRING_MAXHP|CHAR_P_STRING_DEF); - sprintf( token, "体力设置为%d!",(int)atoi(vital)/100); + sprintf( token, "浣撳姏璁剧疆涓%d!",(int)atoi(vital)/100); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -333,23 +333,23 @@ void CHAR_CHAT_DEBUG_luck( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt( i , CHAR_LUCK,luck); CHAR_complianceParameter( i ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( i , CHAR_P_STRING_LUCK); - sprintf( token, "[GM]%s把你的运气设置为%d!", CHAR_getChar( charindex, CHAR_NAME),luck); + sprintf( token, "[GM]%s鎶婁綘鐨勮繍姘旇缃负%d!", CHAR_getChar( charindex, CHAR_NAME),luck); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的运气设置为%d!", CHAR_getChar( i, CHAR_NAME),luck); + sprintf( token, "鐜╁%s鐨勮繍姘旇缃负%d!", CHAR_getChar( i, CHAR_NAME),luck); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt( charindex , CHAR_LUCK,luck); CHAR_complianceParameter( charindex ); //CHAR_sendStatusString( charindex , "P"); CHAR_send_P_StatusString( charindex , CHAR_P_STRING_LUCK); - sprintf( token, "运气设置为%d!",luck); + sprintf( token, "杩愭皵璁剧疆涓%d!",luck); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -377,21 +377,21 @@ void CHAR_CHAT_DEBUG_gold( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt( i , CHAR_GOLD , money ); CHAR_complianceParameter( i ); CHAR_send_P_StatusString( i , CHAR_P_STRING_GOLD); - sprintf( token, "[GM]%s把你的金钱设置为%d!", CHAR_getChar( charindex, CHAR_NAME),money); + sprintf( token, "[GM]%s鎶婁綘鐨勯噾閽辫缃负%d!", CHAR_getChar( charindex, CHAR_NAME),money); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的金钱设置为%d!", CHAR_getChar( i, CHAR_NAME),money); + sprintf( token, "鐜╁%s鐨勯噾閽辫缃负%d!", CHAR_getChar( i, CHAR_NAME),money); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt( charindex , CHAR_GOLD , money ); CHAR_complianceParameter( charindex ); CHAR_send_P_StatusString( charindex , CHAR_P_STRING_GOLD); - sprintf( token, "金钱设置为%d!",money); + sprintf( token, "閲戦挶璁剧疆涓%d!",money); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -435,7 +435,7 @@ void CHAR_CHAT_DEBUG_dropmypet( int charindex, char *message ) CHAR_talkToCli( charindex, -1, "err Can't Drop", CHAR_COLORYELLOW); return; } - for( k = 1; k < cLeve; k ++ ){ //升级 + for( k = 1; k < cLeve; k ++ ){ //鍗囩骇 CHAR_PetLevelUp( petindex ); CHAR_PetAddVariableAi( petindex, AI_FIX_PETLEVELUP ); CHAR_setInt( petindex, CHAR_LV, CHAR_getInt( petindex, CHAR_LV) +1 ); @@ -454,7 +454,7 @@ void CHAR_CHAT_DEBUG_dropmypet( int charindex, char *message ) count++; } } - sprintf( buf, "总共丢掷 %d只宠物。", count); + sprintf( buf, "鎬诲叡涓㈡幏 %d鍙疇鐗┿", count); CHAR_talkToCli( charindex, -1, buf, CHAR_COLORYELLOW); @@ -507,7 +507,7 @@ void CHAR_CHAT_DEBUG_dropmyitem( int charindex, char *message ) if( (ret = CHAR_DropItemFXY( charindex, emptyitemindexinchara, floor, i, j, &objindex )) != 0 ){ char buf[256]; - sprintf( buf, "错误%d", ret); + sprintf( buf, "閿欒%d", ret); CHAR_talkToCli( charindex, -1, buf, CHAR_COLORYELLOW); } ITEM_setInt(itemindex,ITEM_PUTTIME,NowTime.tv_sec); @@ -519,7 +519,7 @@ void CHAR_CHAT_DEBUG_dropmyitem( int charindex, char *message ) } { char buf[256]; - sprintf( buf, "最後ID%d", itemID-1); + sprintf( buf, "鏈寰孖D%d", itemID-1); CHAR_talkToCli( charindex, -1, buf, CHAR_COLORYELLOW); } } @@ -556,16 +556,16 @@ void CHAR_CHAT_DEBUG_additem( int charindex , char *message ) } if (j>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } for( i = 0; i < num; i ++ ) { emptyitemindexinchara = CHAR_findEmptyItemBox( j ); if( emptyitemindexinchara < 0 ){ - sprintf( msgbuf, "玩家%s物品栏位不足。", CHAR_getChar( j, CHAR_NAME )); + sprintf( msgbuf, "鐜╁%s鐗╁搧鏍忎綅涓嶈冻銆", CHAR_getChar( j, CHAR_NAME )); CHAR_talkToCli( charindex, -1, msgbuf, CHAR_COLORYELLOW); - sprintf( msgbuf, "你的%s物品栏位不足。", CHAR_getChar( j, CHAR_NAME )); + sprintf( msgbuf, "浣犵殑%s鐗╁搧鏍忎綅涓嶈冻銆", CHAR_getChar( j, CHAR_NAME )); CHAR_talkToCli( j, -1, msgbuf, CHAR_COLORYELLOW); return; } @@ -580,12 +580,12 @@ void CHAR_CHAT_DEBUG_additem( int charindex , char *message ) LogItem( CHAR_getChar( charindex, CHAR_NAME ), CHAR_getChar( charindex, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else atoi( message), #endif - "AddItem(制作道具GM)", + "AddItem(鍒朵綔閬撳叿GM)", CHAR_getInt( charindex,CHAR_FLOOR), CHAR_getInt( charindex,CHAR_X ), CHAR_getInt( charindex,CHAR_Y ), @@ -594,14 +594,14 @@ void CHAR_CHAT_DEBUG_additem( int charindex , char *message ) ITEM_getInt( itemindex, ITEM_ID) ); - snprintf( msgbuf,sizeof( msgbuf),"[GM]%s给你制作%s成功。", + snprintf( msgbuf,sizeof( msgbuf),"[GM]%s缁欎綘鍒朵綔%s鎴愬姛銆", CHAR_getChar( charindex, CHAR_NAME ),ITEM_getChar( itemindex, ITEM_NAME)); CHAR_talkToCli( j, -1,msgbuf, CHAR_COLORYELLOW); - snprintf( msgbuf, sizeof( msgbuf), "成功为%s制作 %s。", + snprintf( msgbuf, sizeof( msgbuf), "鎴愬姛涓%s鍒朵綔 %s銆", CHAR_getChar( j, CHAR_NAME ),ITEM_getChar( itemindex, ITEM_NAME)); CHAR_talkToCli( charindex, -1,msgbuf, CHAR_COLORYELLOW); }else{ - sprintf( msgbuf, "制作道具失败。" ); + sprintf( msgbuf, "鍒朵綔閬撳叿澶辫触銆" ); CHAR_talkToCli( charindex, -1,msgbuf, CHAR_COLORYELLOW); } } @@ -610,7 +610,7 @@ void CHAR_CHAT_DEBUG_additem( int charindex , char *message ) emptyitemindexinchara = CHAR_findEmptyItemBox( charindex ); if( emptyitemindexinchara < 0 ){ - sprintf( msgbuf, "物品栏位不足。" ); + sprintf( msgbuf, "鐗╁搧鏍忎綅涓嶈冻銆" ); CHAR_talkToCli( charindex, -1, msgbuf, CHAR_COLORYELLOW); @@ -627,12 +627,12 @@ void CHAR_CHAT_DEBUG_additem( int charindex , char *message ) LogItem( CHAR_getChar( charindex, CHAR_NAME ), CHAR_getChar( charindex, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else atoi( message), #endif - "AddItem(制作道具GM)", + "AddItem(鍒朵綔閬撳叿GM)", CHAR_getInt( charindex,CHAR_FLOOR), CHAR_getInt( charindex,CHAR_X ), CHAR_getInt( charindex,CHAR_Y ), @@ -641,11 +641,11 @@ void CHAR_CHAT_DEBUG_additem( int charindex , char *message ) ITEM_getInt( itemindex, ITEM_ID) ); - snprintf( msgbuf, sizeof( msgbuf), "制作%s成功。", + snprintf( msgbuf, sizeof( msgbuf), "鍒朵綔%s鎴愬姛銆", ITEM_getChar( itemindex, ITEM_NAME)); CHAR_talkToCli( charindex, -1,msgbuf, CHAR_COLORYELLOW); }else{ - sprintf( msgbuf, "制作道具失败。" ); + sprintf( msgbuf, "鍒朵綔閬撳叿澶辫触銆" ); CHAR_talkToCli( charindex, -1, msgbuf, CHAR_COLORYELLOW); } } @@ -677,7 +677,7 @@ void CHAR_CHAT_DEBUG_metamo( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt( i , CHAR_BASEIMAGENUMBER , atoi( metamoid ) ); @@ -686,9 +686,9 @@ void CHAR_CHAT_DEBUG_metamo( int charindex , char *message ) CHAR_complianceParameter( i ); CHAR_sendCToArroundCharacter( CHAR_getWorkInt( i , CHAR_WORKOBJINDEX )); CHAR_send_P_StatusString( i , CHAR_P_STRING_BASEBASEIMAGENUMBER); - sprintf( token, "[GM]%s把你的人物形象设置为%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(metamoid)); + sprintf( token, "[GM]%s鎶婁綘鐨勪汉鐗╁舰璞¤缃负%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(metamoid)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的人物形象设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(metamoid)); + sprintf( token, "鐜╁%s鐨勪汉鐗╁舰璞¤缃负%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(metamoid)); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt( charindex , CHAR_BASEIMAGENUMBER , atoi( metamoid ) ); @@ -697,7 +697,7 @@ void CHAR_CHAT_DEBUG_metamo( int charindex , char *message ) CHAR_complianceParameter( charindex ); CHAR_sendCToArroundCharacter( CHAR_getWorkInt( charindex , CHAR_WORKOBJINDEX )); CHAR_send_P_StatusString( charindex , CHAR_P_STRING_BASEBASEIMAGENUMBER); - sprintf( token, "人物形象设置为%d!",(int)atoi(metamoid)); + sprintf( token, "浜虹墿褰㈣薄璁剧疆涓%d!",(int)atoi(metamoid)); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -714,7 +714,7 @@ void CHAR_CHAT_DEBUG_info( int charindex , char *message ) index = charindex; } if( !CHAR_CHECKINDEX( index)) { - CHAR_talkToCli( charindex, -1 , "该index无法使用。" , CHAR_COLORWHITE ); + CHAR_talkToCli( charindex, -1 , "璇ndex鏃犳硶浣跨敤銆" , CHAR_COLORWHITE ); return; } @@ -741,7 +741,7 @@ void CHAR_CHAT_DEBUG_info( int charindex , char *message ) if( CHAR_getInt( index, CHAR_WHICHTYPE ) == CHAR_TYPEPET ){ snprintf( line, sizeof(line), - "体:%d 力:%d 丈:%d 早:%d 耐:%d 攻:%d 守:%d 敏:%d 忠修:%d 忠变:%.2f 编码:%s", + "浣:%d 鍔:%d 涓:%d 鏃:%d 鑰:%d 鏀:%d 瀹:%d 鏁:%d 蹇犱慨:%d 蹇犲彉:%.2f 缂栫爜:%s", CHAR_getInt( index, CHAR_VITAL )/100, CHAR_getInt( index, CHAR_STR )/100, CHAR_getInt( index, CHAR_TOUGH )/100, @@ -755,7 +755,7 @@ void CHAR_CHAT_DEBUG_info( int charindex , char *message ) CHAR_getChar( index, CHAR_UNIQUECODE) ); }else{ snprintf( line, sizeof(line), - "体:%d 力:%d 丈:%d 早:%d 耐:%d 攻:%d 守:%d 魅:%d 运:%d", + "浣:%d 鍔:%d 涓:%d 鏃:%d 鑰:%d 鏀:%d 瀹:%d 榄:%d 杩:%d", CHAR_getInt( index, CHAR_VITAL )/100, CHAR_getInt( index, CHAR_STR )/100, CHAR_getInt( index, CHAR_TOUGH )/100, @@ -770,7 +770,7 @@ void CHAR_CHAT_DEBUG_info( int charindex , char *message ) snprintf( line, sizeof(line), - "土:%d 水:%d 火:%d 风:%d", + "鍦:%d 姘:%d 鐏:%d 椋:%d", CHAR_getWorkInt( index, CHAR_WORKFIXEARTHAT ), CHAR_getWorkInt( index, CHAR_WORKFIXWATERAT ), CHAR_getWorkInt( index, CHAR_WORKFIXFIREAT ), @@ -786,7 +786,7 @@ void CHAR_CHAT_DEBUG_info( int charindex , char *message ) snprintf( line, sizeof( line), - "Status 毒:%d 麻:%d 默:%d 石:%d 暗:%d 乱:%d" , + "Status 姣:%d 楹:%d 榛:%d 鐭:%d 鏆:%d 涔:%d" , CHAR_getInt( index , CHAR_POISON ), CHAR_getInt( index , CHAR_PARALYSIS ), CHAR_getInt( index , CHAR_SLEEP ), @@ -795,7 +795,7 @@ void CHAR_CHAT_DEBUG_info( int charindex , char *message ) CHAR_getInt( index , CHAR_CONFUSION ) ); CHAR_talkToCli( charindex, -1 , line , CHAR_COLORWHITE ); -#ifdef _PERSONAL_FAME // Arminius: 家族个人声望 +#ifdef _PERSONAL_FAME // Arminius: 瀹舵棌涓汉澹版湜 snprintf( line, sizeof( line), #ifdef _NEW_MANOR_LAW "TitInd:%d FL:%d X:%d Y:%d DIR:%d FAME:%d MOMENTUM:%d" , @@ -875,7 +875,7 @@ void CHAR_CHAT_DEBUG_info( int charindex , char *message ) } snprintf( line, sizeof( line), - "levelup [%d], 累积 %d 赌场积分[%d]" , + "levelup [%d], 绱Н %d 璧屽満绉垎[%d]" , CHAR_getInt( index, CHAR_LEVELUPPOINT), CHAR_getWorkInt( index, CHAR_WORKULTIMATE), CHAR_getInt( index, CHAR_GAMBLENUM) ); @@ -951,7 +951,7 @@ void CHAR_CHAT_DEBUG_sysinfo( int charindex , char *message ) ss=(int) new_t; snprintf( msg, sizeof( msg ) , - "start: %d days %d hours %d min %d sec。",dd,hh,mm,ss); + "start: %d days %d hours %d min %d sec銆",dd,hh,mm,ss); CHAR_talkToCli( charindex, -1, msg, CHAR_COLORYELLOW ); { @@ -959,7 +959,7 @@ void CHAR_CHAT_DEBUG_sysinfo( int charindex , char *message ) CHAR_talkToCli( charindex, -1, msg, CHAR_COLORYELLOW); } snprintf( msg, sizeof( msg ) , - "NPC_createnum:%d。",NPC_createnum); + "NPC_createnum:%d銆",NPC_createnum); CHAR_talkToCli( charindex, -1, msg, CHAR_COLORYELLOW ); } @@ -971,7 +971,7 @@ void CHAR_CHAT_DEBUG_announce(int charindex , char *message ) int playernum = CHAR_getPlayerMaxNum(); #ifdef _CAX_DENGON_GG char token[256]; - sprintf(token, "≮%s服务器公告≯ %s", getGameservername(), message); + sprintf(token, "鈮%s鏈嶅姟鍣ㄥ叕鍛娾壇 %s", getGameservername(), message); #endif for( i = 0 ; i < playernum ; i++) { if( CHAR_getCharUse(i) != FALSE ) { @@ -986,7 +986,7 @@ void CHAR_CHAT_DEBUG_announce(int charindex , char *message ) } } -void CHAR_CHAT_DEBUG_laba(int charindex , char *message ) //紫云 小喇叭 +void CHAR_CHAT_DEBUG_laba(int charindex , char *message ) //绱簯 灏忓枃鍙 { int i; int playernum = CHAR_getPlayerMaxNum(); @@ -994,17 +994,17 @@ void CHAR_CHAT_DEBUG_laba(int charindex , char *message ) // char *MyName = CHAR_getChar( charindex,CHAR_NAME ); for( i = 0 ; i < playernum ; i++) { if( CHAR_getCharUse(i) != FALSE ) { - sprintf( labamsg, "<小喇叭>%s玩家说:%s", MyName, message); + sprintf( labamsg, "<灏忓枃鍙>%s鐜╁璇达細%s", MyName, message); CHAR_talkToCli( i, -1, labamsg, CHAR_COLORGREEN); } } } -void CHAR_CHAT_DEBUG_dalaba(int charindex , char *message ) //紫云 大喇叭 +void CHAR_CHAT_DEBUG_dalaba(int charindex , char *message ) //绱簯 澶у枃鍙 { if(strlen(message)<1) return; char dalababuf[512]; - sprintf(dalababuf,"【全服公告】:%s",message); + sprintf(dalababuf,"銆愬叏鏈嶅叕鍛娿戯細%s",message); system_all_talk(dalababuf); } @@ -1028,19 +1028,19 @@ void CHAR_CHAT_DEBUG_level( int charaindex, char* message ) } if (i>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt(i,CHAR_LV, atoi( message )); CHAR_send_P_StatusString( i , CHAR_P_STRING_LV|CHAR_P_STRING_NEXTEXP); - sprintf( token, "[GM]%s把你的等级设置为%d!", CHAR_getChar( charaindex, CHAR_NAME),level); + sprintf( token, "[GM]%s鎶婁綘鐨勭瓑绾ц缃负%d!", CHAR_getChar( charaindex, CHAR_NAME),level); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的等级设置为%d!", CHAR_getChar( i, CHAR_NAME),level); + sprintf( token, "鐜╁%s鐨勭瓑绾ц缃负%d!", CHAR_getChar( i, CHAR_NAME),level); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt(charaindex,CHAR_LV, atoi( message )); CHAR_send_P_StatusString( charaindex , CHAR_P_STRING_LV|CHAR_P_STRING_NEXTEXP); - sprintf( token, "等级设置为%d!",level); + sprintf( token, "绛夌骇璁剧疆涓%d!",level); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); } @@ -1066,19 +1066,19 @@ void CHAR_CHAT_DEBUG_exp( int charaindex, char* message ) } if (i>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setMaxExp( i, atoi( exp )); CHAR_send_P_StatusString( i , CHAR_P_STRING_EXP); - sprintf( token, "[GM]%s把你的经验设置为%d!", CHAR_getChar( charaindex, CHAR_NAME),(int)atoi(exp)); + sprintf( token, "[GM]%s鎶婁綘鐨勭粡楠岃缃负%d!", CHAR_getChar( charaindex, CHAR_NAME),(int)atoi(exp)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的经验设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(exp)); + sprintf( token, "鐜╁%s鐨勭粡楠岃缃负%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(exp)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setMaxExp( charaindex, atoi( exp )); CHAR_send_P_StatusString( charaindex , CHAR_P_STRING_EXP); - sprintf( token, "经验设置为%d!",(int)atoi(exp)/100); + sprintf( token, "缁忛獙璁剧疆涓%d!",(int)atoi(exp)/100); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); } } @@ -1096,12 +1096,12 @@ void CHAR_CHAT_DEBUG_delitem( int charindex , char *message ) LogItem( CHAR_getChar( charindex, CHAR_NAME ), CHAR_getChar( charindex, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemid, #else ITEM_getInt( itemid, ITEM_ID ), #endif - "DelItem(删除道具GM)", + "DelItem(鍒犻櫎閬撳叿GM)", CHAR_getInt( charindex,CHAR_FLOOR), CHAR_getInt( charindex,CHAR_X ), CHAR_getInt( charindex,CHAR_Y ), @@ -1117,7 +1117,7 @@ void CHAR_CHAT_DEBUG_delitem( int charindex , char *message ) int equipplace; equipplace = atoi( message); if( equipplace < CHAR_STARTITEMARRAY || equipplace > CHAR_MAXITEMHAVE -1 ) { - CHAR_talkToCli( charindex, -1, "号码不正确。", CHAR_COLORWHITE); + CHAR_talkToCli( charindex, -1, "鍙风爜涓嶆纭", CHAR_COLORWHITE); return; } itemid = CHAR_getItemIndex(charindex, equipplace); @@ -1126,12 +1126,12 @@ void CHAR_CHAT_DEBUG_delitem( int charindex , char *message ) LogItem( CHAR_getChar( charindex, CHAR_NAME ), CHAR_getChar( charindex, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemid, #else ITEM_getInt( itemid, ITEM_ID ), #endif - "DelItem(删除道具GM)", + "DelItem(鍒犻櫎閬撳叿GM)", CHAR_getInt( charindex,CHAR_FLOOR), CHAR_getInt( charindex,CHAR_X ), CHAR_getInt( charindex,CHAR_Y ), @@ -1144,7 +1144,7 @@ void CHAR_CHAT_DEBUG_delitem( int charindex , char *message ) } } -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 void CHAR_CHAT_DEBUG_addsk( int charaindex, char* message ) { @@ -1160,7 +1160,7 @@ void CHAR_CHAT_DEBUG_addsk( int charaindex, char* message ) level = atoi(msg2); if( level > 100 ){ - CHAR_talkToCli( charaindex, -1, "等级不正确", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "绛夌骇涓嶆纭", CHAR_COLORWHITE); return; } if( level < 1 ) level = 1; @@ -1171,7 +1171,7 @@ void CHAR_CHAT_DEBUG_addsk( int charaindex, char* message ) pSkil = CHAR_getCharHaveSkill( charaindex, i ); skill_id = SKILL_getInt( &pSkil->skill, SKILL_IDENTITY); if( skill == skill_id && skill_id != -1 ){ - CHAR_talkToCli(charaindex,-1, "你已经学习过此技能", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1, "浣犲凡缁忓涔犺繃姝ゆ妧鑳", CHAR_COLORYELLOW); return; } @@ -1182,7 +1182,7 @@ void CHAR_CHAT_DEBUG_addsk( int charaindex, char* message ) } if( i >= CHAR_SKILLMAXHAVE ){ - CHAR_talkToCli(charaindex,-1, "技能数量已达上限", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1, "鎶鑳芥暟閲忓凡杈句笂闄", CHAR_COLORYELLOW); return; }else{ level *= 100; @@ -1201,7 +1201,7 @@ void CHAR_CHAT_DEBUG_delsk( int charaindex, char* message ) CHAR_HaveSkill *pSkil; if( strcmp( message, "all" ) == 0 ){ - CHAR_talkToCli( charaindex, -1, "清除所有技能", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "娓呴櫎鎵鏈夋妧鑳", CHAR_COLORWHITE); for( i = CHAR_SKILLMAXHAVE-1; i >= 0; i -- ){ pSkil = CHAR_getCharHaveSkill( charaindex, i ); if( pSkil == NULL )continue; @@ -1220,7 +1220,7 @@ void CHAR_CHAT_DEBUG_delsk( int charaindex, char* message ) } if( i < 0 ){ - CHAR_talkToCli( charaindex, -1, "已无法再削减了。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "宸叉棤娉曞啀鍓婂噺浜嗐", CHAR_COLORWHITE); ;; }else{ SKILL_makeSkillData( &pSkil->skill, 0, 0 ); @@ -1273,7 +1273,7 @@ void CHAR_CHAT_GetMap( int charaindex, char* message ){ { char szBuffer[64]; - snprintf( szBuffer, sizeof( szBuffer ), "图片= %d; 对象= %d", + snprintf( szBuffer, sizeof( szBuffer ), "鍥剧墖= %d; 瀵硅薄= %d", tile, obj ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORWHITE); } @@ -1302,9 +1302,9 @@ void CHAR_CHAT_Map( int charaindex, char* message ){ { char szBuffer[64]; - snprintf( szBuffer, sizeof( szBuffer ), "图片:%d => %d", tile, fixtile ); + snprintf( szBuffer, sizeof( szBuffer ), "鍥剧墖锛%d => %d", tile, fixtile ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORWHITE); - snprintf( szBuffer, sizeof( szBuffer ), "对象:%d => %d", obj, fixobj ); + snprintf( szBuffer, sizeof( szBuffer ), "瀵硅薄锛%d => %d", obj, fixobj ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORWHITE); } @@ -1353,9 +1353,9 @@ void CHAR_CHAT_Fixtile( int charaindex, char* message ){ { char szBuffer[64]; - snprintf( szBuffer, sizeof( szBuffer ), "图片:%d => %d", tile, fixtile ); + snprintf( szBuffer, sizeof( szBuffer ), "鍥剧墖锛%d => %d", tile, fixtile ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORWHITE); - snprintf( szBuffer, sizeof( szBuffer ), "对象:%d => %d", obj, obj ); + snprintf( szBuffer, sizeof( szBuffer ), "瀵硅薄锛%d => %d", obj, obj ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORWHITE); } @@ -1404,9 +1404,9 @@ void CHAR_CHAT_Fixobj( int charaindex, char* message ){ { char szBuffer[64]; - snprintf( szBuffer, sizeof( szBuffer ), "图片:%d => %d", tile, tile ); + snprintf( szBuffer, sizeof( szBuffer ), "鍥剧墖锛%d => %d", tile, tile ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORWHITE); - snprintf( szBuffer, sizeof( szBuffer ), "对象:%d => %d", obj, fixobj ); + snprintf( szBuffer, sizeof( szBuffer ), "瀵硅薄锛%d => %d", obj, fixobj ); CHAR_talkToCli( charaindex, -1, szBuffer, CHAR_COLORWHITE); } @@ -1445,7 +1445,7 @@ void CHAR_CHAT_Fukuwa( int charaindex, char* message ){ stringlen = strlen( message ); if( message[0] == '[' && message[stringlen-1] == ']' ){ - CHAR_talkToCli( charaindex, -1, "语言没有转换。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "璇█娌℃湁杞崲銆", CHAR_COLORWHITE); return ; } @@ -1495,7 +1495,7 @@ void CHAR_CHAT_DEBUG_superman( int charaindex, char* message ) } if (i>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt(charaindex,CHAR_SKILLUPPOINT, 0); @@ -1515,9 +1515,9 @@ void CHAR_CHAT_DEBUG_superman( int charaindex, char* message ) CHAR_complianceParameter( charaindex ); CHAR_sendStatusString( charaindex , "P"); - sprintf( token, "[GM]%s把你为超人状态!", CHAR_getChar( charaindex, CHAR_NAME)); + sprintf( token, "[GM]%s鎶婁綘涓鸿秴浜虹姸鎬!", CHAR_getChar( charaindex, CHAR_NAME)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s设置为超人状态!", CHAR_getChar( i, CHAR_NAME)); + sprintf( token, "鐜╁%s璁剧疆涓鸿秴浜虹姸鎬!", CHAR_getChar( i, CHAR_NAME)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt(charaindex,CHAR_SKILLUPPOINT, 0); @@ -1537,7 +1537,7 @@ void CHAR_CHAT_DEBUG_superman( int charaindex, char* message ) CHAR_complianceParameter( charaindex ); CHAR_sendStatusString( charaindex , "P"); - CHAR_talkToCli( charaindex, -1,"设置超人状态!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1,"璁剧疆瓒呬汉鐘舵!", CHAR_COLORYELLOW ); } #undef CHAT_CHAT_DEBUG_SUPERMAN_PARAMDEF @@ -1548,7 +1548,7 @@ void CHAR_CHAT_printcount( int charaindex, char* message ) char msgbuf[512]; snprintf( msgbuf,sizeof( msgbuf), - "你说了 %d 次话,走了 %d 步路,死了 %d 次", + "浣犺浜 %d 娆¤瘽,璧颁簡 %d 姝ヨ矾,姝讳簡 %d 娆", CHAR_getInt( charaindex, CHAR_TALKCOUNT), CHAR_getInt( charaindex, CHAR_WALKCOUNT), CHAR_getInt( charaindex, CHAR_DEADCOUNT) @@ -1599,7 +1599,7 @@ void CHAR_CHAT_DEBUG_petmake( int charaindex, char* message ) } if (j>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } enemynum = ENEMY_getEnemyNum(); @@ -1613,9 +1613,9 @@ void CHAR_CHAT_DEBUG_petmake( int charaindex, char* message ) ret = ENEMY_createPetFromEnemyIndex( j, i); if( !CHAR_CHECKINDEX( ret))return; - sprintf( token, "[GM]%s制作了%s给你!", CHAR_getChar( charaindex, CHAR_NAME),ENEMY_getChar( i, ENEMY_NAME)); + sprintf( token, "[GM]%s鍒朵綔浜%s缁欎綘!", CHAR_getChar( charaindex, CHAR_NAME),ENEMY_getChar( i, ENEMY_NAME)); CHAR_talkToCli( j, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "给玩家%s的%s制作成功!", CHAR_getChar( j, CHAR_NAME),ENEMY_getChar( i, ENEMY_NAME)); + sprintf( token, "缁欑帺瀹%s鐨%s鍒朵綔鎴愬姛!", CHAR_getChar( j, CHAR_NAME),ENEMY_getChar( i, ENEMY_NAME)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); for( i = 0; i < CHAR_MAXPETHAVE; i ++ ){ if( CHAR_getCharPet( j, i ) == ret )break; @@ -1636,7 +1636,7 @@ void CHAR_CHAT_DEBUG_petmake( int charaindex, char* message ) level = level - CHAR_getInt( ret, CHAR_LV ); if( level > 0 ){ int k; - for( k = 1; k <= level; k ++ ){ //升级 + for( k = 1; k <= level; k ++ ){ //鍗囩骇 CHAR_PetLevelUp( ret ); CHAR_PetAddVariableAi( ret, AI_FIX_PETLEVELUP ); CHAR_setInt( ret, CHAR_LV, CHAR_getInt( ret, CHAR_LV) +1 ); @@ -1661,7 +1661,7 @@ void CHAR_CHAT_DEBUG_petmake( int charaindex, char* message ) ret = ENEMY_createPetFromEnemyIndex(charaindex, i); if( !CHAR_CHECKINDEX( ret))return; - snprintf( token,sizeof( token), "%s制作成功!",ENEMY_getChar( i, ENEMY_NAME)); + snprintf( token,sizeof( token), "%s鍒朵綔鎴愬姛!",ENEMY_getChar( i, ENEMY_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); for( i = 0; i < CHAR_MAXPETHAVE; i ++ ){ @@ -1679,7 +1679,7 @@ void CHAR_CHAT_DEBUG_petmake( int charaindex, char* message ) level = level - CHAR_getInt( ret, CHAR_LV ); if( level > 0 ){ int k; - for( k = 1; k <= level; k ++ ){ //升级 + for( k = 1; k <= level; k ++ ){ //鍗囩骇 CHAR_PetLevelUp( ret ); CHAR_PetAddVariableAi( ret, AI_FIX_PETLEVELUP ); CHAR_setInt( ret, CHAR_LV, CHAR_getInt( ret, CHAR_LV) +1 ); @@ -1718,7 +1718,7 @@ void CHAR_CHAT_DEBUG_deletepet( int charaindex, char* message ) } } - CHAR_talkToCli( charaindex, -1, "清除身上所有宠物。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "娓呴櫎韬笂鎵鏈夊疇鐗┿", CHAR_COLORWHITE); } @@ -1735,36 +1735,36 @@ void CHAR_CHAT_DEBUG_reset( int charaindex, char* message ) break; } if( i >= MAXMESS_LISTNUM ){ - CHAR_talkToCli( charaindex, -1, "指令错误", CHAR_COLORRED);//CHAR_COLORYELLOW + CHAR_talkToCli( charaindex, -1, "鎸囦护閿欒", CHAR_COLORRED);//CHAR_COLORYELLOW return; } switch( i){ case ALLRESET: case 0: if( !ENEMYTEMP_reinitEnemy() || !ENEMY_reinitEnemy() ){ - CHAR_talkToCli( charaindex, -1, "重新读取敌人基本资料失败。", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "閲嶆柊璇诲彇鏁屼汉鍩烘湰璧勬枡澶辫触銆", CHAR_COLORRED); return; } if( i != ALLRESET ) break; case 1: if( !GROUP_reinitGroup() || !ENCOUNT_reinitEncount() ){ - CHAR_talkToCli( charaindex, -1, "重新读取遭遇团队资料失败。", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "閲嶆柊璇诲彇閬亣鍥㈤槦璧勬枡澶辫触銆", CHAR_COLORRED); } if( i != ALLRESET ) break; case 2: if( !MAGIC_reinitMagic() || !ATTMAGIC_reinitMagic() ) { - CHAR_talkToCli( charaindex, -1, "重新读取咒术资料失败。", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "閲嶆柊璇诲彇鍜掓湳璧勬枡澶辫触銆", CHAR_COLORRED); } if( i != ALLRESET ) break; case 3: MAPPOINT_resetMapWarpPoint( 1); if( !MAPPOINT_loadMapWarpPoint() ){ - CHAR_talkToCli( charaindex, -1, "重新读取跳跃点资料失败。", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "閲嶆柊璇诲彇璺宠穬鐐硅祫鏂欏け璐ャ", CHAR_COLORRED); } if( i != ALLRESET ) break; case 4: if( !PETSKILL_reinitPetskill() ) { - CHAR_talkToCli( charaindex, -1, "重新读取宠物技能资料失败。", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "閲嶆柊璇诲彇瀹犵墿鎶鑳借祫鏂欏け璐ャ", CHAR_COLORRED); } if( i != ALLRESET ) break; case 5: @@ -1773,62 +1773,62 @@ void CHAR_CHAT_DEBUG_reset( int charaindex, char* message ) break; case 6: if( !NPC_reloadNPC() ) { - CHAR_talkToCli( charaindex, -1, "重新NPC资料失败。", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "閲嶆柊NPC璧勬枡澶辫触銆", CHAR_COLORRED); } if( i != ALLRESET ) break; break; } - CHAR_talkToCli( charaindex, -1, "重新读取游戏资料。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "閲嶆柊璇诲彇娓告垙璧勬枡銆", CHAR_COLORYELLOW); } void CHAR_CHAT_DEBUG_enemyrestart( int charaindex, char* message ) { if( ENEMYTEMP_reinitEnemy()) { - CHAR_talkToCli( charaindex, -1, "再次读取敌人基本资料。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇鏁屼汉鍩烘湰璧勬枡銆", CHAR_COLORWHITE); }else { - CHAR_talkToCli( charaindex, -1, "再次读取敌人基本资料失败。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇鏁屼汉鍩烘湰璧勬枡澶辫触銆", CHAR_COLORWHITE); } if( ENEMY_reinitEnemy()) { - CHAR_talkToCli( charaindex, -1, "再次读取敌人资料。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇鏁屼汉璧勬枡銆", CHAR_COLORWHITE); }else { - CHAR_talkToCli( charaindex, -1, "再次读取敌人基本资料失败。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇鏁屼汉鍩烘湰璧勬枡澶辫触銆", CHAR_COLORWHITE); } if( GROUP_reinitGroup()) { - CHAR_talkToCli( charaindex, -1, "再次读取团队资料。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇鍥㈤槦璧勬枡銆", CHAR_COLORWHITE); }else { - CHAR_talkToCli( charaindex, -1, "再次读取团队资料失败。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇鍥㈤槦璧勬枡澶辫触銆", CHAR_COLORWHITE); } if( ENCOUNT_reinitEncount()) { - CHAR_talkToCli( charaindex, -1, "再次读取遭遇资料。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇閬亣璧勬枡銆", CHAR_COLORWHITE); } else { - CHAR_talkToCli( charaindex, -1, "再次读取遭遇资料失败。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇閬亣璧勬枡澶辫触銆", CHAR_COLORWHITE); } if( MAGIC_reinitMagic()) { - CHAR_talkToCli( charaindex, -1, "再次读取咒术资料。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇鍜掓湳璧勬枡銆", CHAR_COLORWHITE); } else { - CHAR_talkToCli( charaindex, -1, "再次读取咒术资料失败。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇鍜掓湳璧勬枡澶辫触銆", CHAR_COLORWHITE); } #ifdef _ATTACK_MAGIC if( ATTMAGIC_reinitMagic() ) - CHAR_talkToCli( charaindex , -1 , "再次读取咒术资料。" , CHAR_COLORWHITE ); + CHAR_talkToCli( charaindex , -1 , "鍐嶆璇诲彇鍜掓湳璧勬枡銆" , CHAR_COLORWHITE ); else - CHAR_talkToCli( charaindex , -1 , "再次读取咒术资料失败。" , CHAR_COLORWHITE ); + CHAR_talkToCli( charaindex , -1 , "鍐嶆璇诲彇鍜掓湳璧勬枡澶辫触銆" , CHAR_COLORWHITE ); #endif if( PETSKILL_reinitPetskill()) { - CHAR_talkToCli( charaindex, -1, "再次读取宠物技能资料。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇瀹犵墿鎶鑳借祫鏂欍", CHAR_COLORWHITE); } else { - CHAR_talkToCli( charaindex, -1, "再次读取宠物技能资料失败。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇瀹犵墿鎶鑳借祫鏂欏け璐ャ", CHAR_COLORWHITE); } LoadPetTalk(); // Arminius 8.15 pet talk - CHAR_talkToCli( charaindex, -1, "再次读取宠物讲话资料。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇瀹犵墿璁茶瘽璧勬枡銆", CHAR_COLORWHITE); } @@ -1842,10 +1842,10 @@ void CHAR_CHAT_DEBUG_battlewatch( int charaindex, char* message ) } } -// shan 2001/12/18 Begin 由於改变过多,故将原先的function注掉 +// shan 2001/12/18 Begin 鐢辨柤鏀瑰彉杩囧锛屾晠灏嗗師鍏堢殑function娉ㄦ帀 void CHAR_CHAT_DEBUG_eventclean( int charaindex, char* message ) { -#ifdef _ADD_NEWEVENT // WON 多增任务旗标 +#ifdef _ADD_NEWEVENT // WON 澶氬浠诲姟鏃楁爣 int event_num = 8; #else int event_num = 6; @@ -1875,7 +1875,7 @@ void CHAR_CHAT_DEBUG_eventclean( int charaindex, char* message ) find=TRUE; }else{ if( shiftbit==-1 || strlen(token_cdkey)==0 || strlen(token_name)==0 ){ - sprintf( token, "%s", "参数不正确。正确格式:[eventsetend 任务旗标 帐号 人物名称]"); + sprintf( token, "%s", "鍙傛暟涓嶆纭傛纭牸寮忥細[eventsetend 浠诲姟鏃楁爣 甯愬彿 浜虹墿鍚嶇О]"); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); return; } @@ -1913,7 +1913,7 @@ void CHAR_CHAT_DEBUG_eventclean( int charaindex, char* message ) CHAR_setInt( charaindex_tmp, CHAR_NOWEVENT5, 0); CHAR_setInt( charaindex_tmp, CHAR_NOWEVENT6, 0); #endif -#ifdef _ADD_NEWEVENT // WON 多增任务旗标 +#ifdef _ADD_NEWEVENT // WON 澶氬浠诲姟鏃楁爣 CHAR_setInt( charaindex_tmp, CHAR_ENDEVENT7, 0); CHAR_setInt( charaindex_tmp, CHAR_NOWEVENT7, 0); CHAR_setInt( charaindex_tmp, CHAR_ENDEVENT8, 0); @@ -1935,7 +1935,7 @@ void CHAR_CHAT_DEBUG_eventclean( int charaindex, char* message ) CHAR_setInt( charaindex_tmp, CHAR_ENDEVENT16, 0); CHAR_setInt( charaindex_tmp, CHAR_NOWEVENT16, 0); #endif - sprintf( token, "削除全部的事件旗。" ); + sprintf( token, "鍓婇櫎鍏ㄩ儴鐨勪簨浠舵棗銆" ); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORWHITE); return ; } @@ -1946,7 +1946,7 @@ void CHAR_CHAT_DEBUG_eventclean( int charaindex, char* message ) shift = shiftbit % 32; if( array>=event_num ){ - sprintf( token, "错误!!你所设的任务旗标编号已超过 围(0~%d)。",32*event_num-1); + sprintf( token, "閿欒锛侊紒浣犳墍璁剧殑浠诲姟鏃楁爣缂栧彿宸茶秴杩 鍥(0~%d)銆",32*event_num-1); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); return; } @@ -1962,7 +1962,7 @@ void CHAR_CHAT_DEBUG_eventclean( int charaindex, char* message ) shift = (shiftbit-255) % 32; if( array>=event_num ){ - sprintf( token, "错误!!你所设的任务旗标编号已超过 围(0~%d)。",32*event_num-1); + sprintf( token, "閿欒锛侊紒浣犳墍璁剧殑浠诲姟鏃楁爣缂栧彿宸茶秴杩 鍥(0~%d)銆",32*event_num-1); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); return; } @@ -1982,18 +1982,18 @@ void CHAR_CHAT_DEBUG_eventclean( int charaindex, char* message ) sprintf( token, "%s %s", token_cdkey, token_name); //CHAR_CHAT_DEBUG_watchevent( charaindex, token ); }else{ - sprintf( token,"%s\n","失败!!帐号与人物名称无法相符。"); + sprintf( token,"%s\n","澶辫触锛侊紒甯愬彿涓庝汉鐗╁悕绉版棤娉曠浉绗︺"); CHAR_talkToCli(charaindex, -1, token, CHAR_COLORWHITE); } } // shan 2001/12/15 End -// shan 2001/12/18 Begin 由於改变过多,故将原先的function注掉 +// shan 2001/12/18 Begin 鐢辨柤鏀瑰彉杩囧锛屾晠灏嗗師鍏堢殑function娉ㄦ帀 void CHAR_CHAT_DEBUG_eventsetnow( int charaindex, char* message ) { -#ifdef _ADD_NEWEVENT // WON 多增任务旗标 +#ifdef _ADD_NEWEVENT // WON 澶氬浠诲姟鏃楁爣 int event_num = 8; #else int event_num = 6; @@ -2024,7 +2024,7 @@ void CHAR_CHAT_DEBUG_eventsetnow( int charaindex, char* message ) } else{ if( shiftbit==-1 || strlen(token_cdkey)==0 || strlen(token_name)==0 ){ - sprintf( token, "%s", "参数不正确。正确格式:[eventsetend 任务旗标 帐号 人物名称]"); + sprintf( token, "%s", "鍙傛暟涓嶆纭傛纭牸寮忥細[eventsetend 浠诲姟鏃楁爣 甯愬彿 浜虹墿鍚嶇О]"); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); return; } @@ -2054,7 +2054,7 @@ void CHAR_CHAT_DEBUG_eventsetnow( int charaindex, char* message ) CHAR_setInt( charaindex_tmp, CHAR_NOWEVENT5, -1); CHAR_setInt( charaindex_tmp, CHAR_NOWEVENT6, -1); #endif -#ifdef _ADD_NEWEVENT // WON 多增任务旗标 +#ifdef _ADD_NEWEVENT // WON 澶氬浠诲姟鏃楁爣 CHAR_setInt( charaindex_tmp, CHAR_NOWEVENT7, -1); CHAR_setInt( charaindex_tmp, CHAR_NOWEVENT8, -1); CHAR_setInt( charaindex_tmp, CHAR_NOWEVENT9, -1); @@ -2077,7 +2077,7 @@ void CHAR_CHAT_DEBUG_eventsetnow( int charaindex, char* message ) shift = shiftbit % 32; if( array>=event_num ){ - sprintf( token, "错误!!你所设的任务旗标编号已超过范围(0~%d)。",32*event_num-1); + sprintf( token, "閿欒锛侊紒浣犳墍璁剧殑浠诲姟鏃楁爣缂栧彿宸茶秴杩囪寖鍥(0~%d)銆",32*event_num-1); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); return; } @@ -2090,7 +2090,7 @@ void CHAR_CHAT_DEBUG_eventsetnow( int charaindex, char* message ) shift = (shiftbit-255) % 32; if( array>=event_num ){ - sprintf( token, "错误!!你所设的任务旗标编号已超过范围(0~%d)。",32*event_num-1); + sprintf( token, "閿欒锛侊紒浣犳墍璁剧殑浠诲姟鏃楁爣缂栧彿宸茶秴杩囪寖鍥(0~%d)銆",32*event_num-1); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); return; } @@ -2107,7 +2107,7 @@ void CHAR_CHAT_DEBUG_eventsetnow( int charaindex, char* message ) sprintf( token, "%s %s", token_cdkey, token_name); CHAR_CHAT_DEBUG_watchevent( charaindex, token ); }else{ - sprintf( token,"%s\n","失败!!帐号与人物名称无法相符。"); + sprintf( token,"%s\n","澶辫触锛侊紒甯愬彿涓庝汉鐗╁悕绉版棤娉曠浉绗︺"); CHAR_talkToCli(charaindex, -1, token, CHAR_COLORWHITE); } } @@ -2123,7 +2123,7 @@ void CHAR_CHAT_DEBUG_eventsetnow( int charaindex, char* message ) shiftbit=atoi(message); eventno=atoi(message); - // -1反白仿弘卞楮溢互卅中奶矛件玄 + // -1鍙嶇櫧浠垮紭鍗炴ギ婧簰鍗呬腑濂剁煕浠剁巹 if(shiftbit==-1) return; array = shiftbit / 32; @@ -2133,16 +2133,16 @@ void CHAR_CHAT_DEBUG_eventsetnow( int charaindex, char* message ) point = point | (1 << shift); CHAR_setInt(charaindex,CHAR_NOWEVENT+array,point); - sprintf( token, "设定事件中%d号旗。",eventno); + sprintf( token, "璁惧畾浜嬩欢涓%d鍙锋棗銆",eventno); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORWHITE); }*/ // shan 2001/12/18 End -// shan 2001/12/15 Begin 由於改变过多,故将原先的function注掉 +// shan 2001/12/15 Begin 鐢辨柤鏀瑰彉杩囧锛屾晠灏嗗師鍏堢殑function娉ㄦ帀 void CHAR_CHAT_DEBUG_eventsetend( int charaindex, char* message ) { -#ifdef _ADD_NEWEVENT // WON 多增任务旗标 +#ifdef _ADD_NEWEVENT // WON 澶氬浠诲姟鏃楁爣 int event_num = 8; #else int event_num = 6; @@ -2172,7 +2172,7 @@ void CHAR_CHAT_DEBUG_eventsetend( int charaindex, char* message ) } else{ if( shiftbit==-1 || strlen(token_cdkey)==0 || strlen(token_name)==0 ){ - sprintf( token, "%s", "参数不正确。正确格式:[eventsetend 任务旗标 帐号 人物名称]"); + sprintf( token, "%s", "鍙傛暟涓嶆纭傛纭牸寮忥細[eventsetend 浠诲姟鏃楁爣 甯愬彿 浜虹墿鍚嶇О]"); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); return; } @@ -2202,7 +2202,7 @@ void CHAR_CHAT_DEBUG_eventsetend( int charaindex, char* message ) CHAR_setInt( charaindex_tmp, CHAR_ENDEVENT5, -1); CHAR_setInt( charaindex_tmp, CHAR_ENDEVENT6, -1); #endif -#ifdef _ADD_NEWEVENT // WON 多增任务旗标 +#ifdef _ADD_NEWEVENT // WON 澶氬浠诲姟鏃楁爣 CHAR_setInt( charaindex_tmp, CHAR_ENDEVENT7, -1); CHAR_setInt( charaindex_tmp, CHAR_ENDEVENT8, -1); CHAR_setInt( charaindex_tmp, CHAR_ENDEVENT9, -1); @@ -2225,7 +2225,7 @@ void CHAR_CHAT_DEBUG_eventsetend( int charaindex, char* message ) shift = shiftbit % 32; if( array>=event_num ){ - sprintf( token, "错误!!你所设的任务旗标编号已超过 围(0~%d)。",32*event_num-1); + sprintf( token, "閿欒锛侊紒浣犳墍璁剧殑浠诲姟鏃楁爣缂栧彿宸茶秴杩 鍥(0~%d)銆",32*event_num-1); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); return; } @@ -2238,7 +2238,7 @@ void CHAR_CHAT_DEBUG_eventsetend( int charaindex, char* message ) shift = (shiftbit-255) % 32; if( array>=event_num ){ - sprintf( token, "错误!!你所设的任务旗标编号已超过 围(0~%d)。",32*event_num-1); + sprintf( token, "閿欒锛侊紒浣犳墍璁剧殑浠诲姟鏃楁爣缂栧彿宸茶秴杩 鍥(0~%d)銆",32*event_num-1); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); return; } @@ -2255,7 +2255,7 @@ void CHAR_CHAT_DEBUG_eventsetend( int charaindex, char* message ) sprintf( token, "%s %s", token_cdkey, token_name); CHAR_CHAT_DEBUG_watchevent( charaindex, token ); }else{ - sprintf( token,"%s\n","失败!!帐号与人物名称无法相符。"); + sprintf( token,"%s\n","澶辫触锛侊紒甯愬彿涓庝汉鐗╁悕绉版棤娉曠浉绗︺"); CHAR_talkToCli(charaindex, -1, token, CHAR_COLORYELLOW); } @@ -2275,7 +2275,7 @@ void CHAR_CHAT_DEBUG_debug( int charaindex, char* message ) CHAR_setWorkInt( charaindex, CHAR_WORKDEBUGMODE, FALSE); } CHAR_send_P_StatusString( charaindex, CHAR_P_STRING_DEBUGMODE); - snprintf( msgbuf, sizeof( msgbuf), "已设定除错模式为%s。", + snprintf( msgbuf, sizeof( msgbuf), "宸茶瀹氶櫎閿欐ā寮忎负%s銆", ( flg == TRUE) ? "ON" : "OFF"); CHAR_talkToCli( charaindex, -1, msgbuf, CHAR_COLORYELLOW); @@ -2301,19 +2301,19 @@ void CHAR_CHAT_DEBUG_dp( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt( i , CHAR_DUELPOINT, atoi( dp ) ); CHAR_send_P_StatusString( i ,CHAR_P_STRING_DUELPOINT ); - sprintf( token, "[GM]%s把你的DP设置为%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(dp)); + sprintf( token, "[GM]%s鎶婁綘鐨凞P璁剧疆涓%d!", CHAR_getChar( charindex, CHAR_NAME),(int)atoi(dp)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的DP设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(dp)); + sprintf( token, "鐜╁%s鐨凞P璁剧疆涓%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(dp)); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt( charindex , CHAR_DUELPOINT, atoi( dp ) ); CHAR_send_P_StatusString( charindex ,CHAR_P_STRING_DUELPOINT ); - sprintf( token, "DP设置为%d!",(int)atoi(dp)); + sprintf( token, "DP璁剧疆涓%d!",(int)atoi(dp)); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -2323,7 +2323,7 @@ void CHAR_CHAT_DEBUG_arrange( int charindex , char *message ) { CHAR_setWorkInt( charindex, CHAR_WORKFIXARRANGE, atoi( message) ); CHAR_complianceParameter( charindex ); - CHAR_talkToCli( charindex, -1, "设定挡格", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "璁惧畾鎸℃牸", CHAR_COLORYELLOW); } #endif @@ -2333,7 +2333,7 @@ void CHAR_CHAT_DEBUG_sequence( int charindex , char *message ) { CHAR_setWorkInt( charindex, CHAR_WORKFIXSEQUENCE, atoi( message) ); CHAR_complianceParameter( charindex ); - CHAR_talkToCli( charindex, -1, "设定顺序", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "璁惧畾椤哄簭", CHAR_COLORYELLOW); } #endif @@ -2346,17 +2346,17 @@ void CHAR_CHAT_DEBUG_setmerge_main( int charaindex, char* message, int mode ) int itemindex; if( !CHAR_CHECKITEMINDEX( charaindex, haveitemindex) ){ - CHAR_talkToCli( charaindex, -1, "号码很奇怪。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍙风爜寰堝鎬", CHAR_COLORWHITE); return; } itemindex = CHAR_getItemIndex( charaindex, haveitemindex); if( !ITEM_CHECKINDEX( itemindex)) { - CHAR_talkToCli( charaindex, -1, "该处是否没有任何道具,情报亦很奇怪。", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "璇ュ鏄惁娌℃湁浠讳綍閬撳叿,鎯呮姤浜﹀緢濂囨", CHAR_COLORWHITE); return; } ITEM_setInt( itemindex, ITEM_MERGEFLG, mode); - CHAR_talkToCli( charaindex, -1, "宁岳白仿弘及丑综毛仄引仄凶[", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "瀹佸渤鐧戒豢寮樺強涓戠患姣涗粍寮曚粍鍑讹蓟", CHAR_COLORWHITE); CHAR_sendItemDataOne( charaindex, haveitemindex); } @@ -2432,21 +2432,21 @@ void CHAR_CHAT_DEBUG_setTrans( int charaindex, char *message) } if (i>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setInt(i, CHAR_TRANSEQUATION, 0); CHAR_setInt(i, CHAR_TRANSMIGRATION, atoi( setTrans )); CHAR_sendCToArroundCharacter( CHAR_getWorkInt( i, CHAR_WORKOBJINDEX )); - sprintf( token, "[GM]%s把你转生设置为%d转!", CHAR_getChar( charaindex, CHAR_NAME),(int)atoi(setTrans)); + sprintf( token, "[GM]%s鎶婁綘杞敓璁剧疆涓%d杞!", CHAR_getChar( charaindex, CHAR_NAME),(int)atoi(setTrans)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s转生设置为%d转!", CHAR_getChar( i, CHAR_NAME),(int)atoi(setTrans)); + sprintf( token, "鐜╁%s杞敓璁剧疆涓%d杞!", CHAR_getChar( i, CHAR_NAME),(int)atoi(setTrans)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setInt(charaindex, CHAR_TRANSEQUATION, 0); CHAR_setInt(charaindex, CHAR_TRANSMIGRATION, atoi( setTrans )); CHAR_sendCToArroundCharacter( CHAR_getWorkInt( charaindex, CHAR_WORKOBJINDEX )); - sprintf( token, "转生设置为%d转!",(int)atoi(setTrans)); + sprintf( token, "杞敓璁剧疆涓%d杞!",(int)atoi(setTrans)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); } } @@ -2463,12 +2463,12 @@ void CHAR_CHAT_DEBUG_shutup(int charindex ,char *message) easyGetTokenFromString( message , 1 , token, sizeof(token)); easyGetTokenFromString( message , 2 , token1, sizeof(token1)); if( strlen(message)==0){ - sprintf(buf,"%s","参数不正确"); + sprintf(buf,"%s","鍙傛暟涓嶆纭"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORYELLOW); return; } if( strlen(token1)==0){ - sprintf(buf,"%s","参数不正确--> ON OFF"); + sprintf(buf,"%s","鍙傛暟涓嶆纭--> ON OFF"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORYELLOW); return; } @@ -2485,7 +2485,7 @@ void CHAR_CHAT_DEBUG_shutup(int charindex ,char *message) CONNECT_set_shutup(i,TRUE); //print("\n 帐号"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-> 甯愬彿"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } easyGetTokenFromString( message , 1 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确"); + sprintf(buf,"%s","鍙傛暟涓嶆纭"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } @@ -2609,8 +2609,8 @@ void CHAR_CHAT_DEBUG_waeikick( int charindex, char* message ) }else #endif { - sprintf(kcmsg,"%s挤出服务器。",szName); - CHAR_talkToCli(i, -1, "因做坏事而断线。", CHAR_COLORYELLOW); + sprintf(kcmsg,"%s鎸ゅ嚭鏈嶅姟鍣ㄣ",szName); + CHAR_talkToCli(i, -1, "鍥犲仛鍧忎簨鑰屾柇绾裤", CHAR_COLORYELLOW); CONNECT_setCloseRequest( getfdFromCharaIndex(i) , 1 ); //print( "\nWAEIKICK cdkey=%s", cdkey); } @@ -2628,13 +2628,13 @@ void CHAR_CHAT_DEBUG_waeikickall( int charindex, char* message ) char token[256]; int tlv=0; if( strlen(message)==0){ - sprintf(buf,"%s","参数不正确-> 等级"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-> 绛夌骇"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } easyGetTokenFromString( message , 1 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确"); + sprintf(buf,"%s","鍙傛暟涓嶆纭"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } @@ -2666,13 +2666,13 @@ void CHAR_CHAT_DEBUG_jail( int charindex, char* message ) Char *chwk; if( strlen(message)==0){ - sprintf(buf,"%s","参数不正确-> 帐号"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-> 甯愬彿"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } easyGetTokenFromString( message , 1 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确"); + sprintf(buf,"%s","鍙傛暟涓嶆纭"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } @@ -2687,8 +2687,8 @@ void CHAR_CHAT_DEBUG_jail( int charindex, char* message ) fd_charaindex = i; strcpy(szName,CHAR_getChar(i,CHAR_NAME)); //CONNECT_getCharname( i, szName, sizeof( szName ) ); - sprintf(kcmsg,"%s抓入地窖。",szName); - CHAR_talkToCli(fd_charaindex, -1, "因长相太差而入狱。", CHAR_COLORYELLOW); + sprintf(kcmsg,"%s鎶撳叆鍦扮獤銆",szName); + CHAR_talkToCli(fd_charaindex, -1, "鍥犻暱鐩稿お宸屽叆鐙便", CHAR_COLORYELLOW); CHAR_setInt(fd_charaindex,CHAR_FLOOR,117); CHAR_setInt(fd_charaindex,CHAR_X,225); CHAR_setInt(fd_charaindex,CHAR_Y,13); @@ -2715,9 +2715,9 @@ void CHAR_CHAT_DEBUG_jail( int charindex, char* message ) }//for i if(find){ #ifdef _GM_KING - sprintf(kctalk,"%s大魔王施展超无敌抓奶手「抓抓抓抓抓抓.......把」",CHAR_getChar(charindex,CHAR_NAME)); + sprintf(kctalk,"%s澶ч瓟鐜嬫柦灞曡秴鏃犳晫鎶撳ザ鎵嬨屾姄鎶撴姄鎶撴姄鎶擄紟锛庯紟锛庯紟锛庯紟鎶娿",CHAR_getChar(charindex,CHAR_NAME)); #else - sprintf(kctalk,"极度大魔王施展超无敌抓奶手「抓抓抓抓抓抓.......把」"); + sprintf(kctalk,"鏋佸害澶ч瓟鐜嬫柦灞曡秴鏃犳晫鎶撳ザ鎵嬨屾姄鎶撴姄鎶撴姄鎶擄紟锛庯紟锛庯紟锛庯紟鎶娿"); #endif // for(i=0;i FLOOR X Y 帐号"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-> FLOOR X Y 甯愬彿"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } easyGetTokenFromString( message , 1 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->地图编号"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->鍦板浘缂栧彿"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } fl=atoi( token ); easyGetTokenFromString( message , 2 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->X座标 "); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->X搴ф爣 "); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } x = atoi( token ); easyGetTokenFromString( message , 3 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->Y座标 "); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->Y搴ф爣 "); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } @@ -2815,10 +2815,10 @@ void CHAR_CHAT_DEBUG_send(int charindex ,char *message) fd_charaindex = CONNECT_getCharaindex( i ); CHAR_warpToSpecificPoint(fd_charaindex, fl, x, y); snprintf( line, sizeof( line), - "把名称:%s 账号:%s 传送到 FL=%d X=%d Y=%d", + "鎶婂悕绉:%s 璐﹀彿:%s 浼犻佸埌 FL=%d X=%d Y=%d", szName,cdkey,fl,x,y); CHAR_talkToCli( charindex, -1 , line , CHAR_COLORWHITE ); - CHAR_talkToCli( fd_charaindex, -1 ,"*.*被极度大魔王传送", CHAR_COLORWHITE ); + CHAR_talkToCli( fd_charaindex, -1 ,"锛.锛婅鏋佸害澶ч瓟鐜嬩紶閫", CHAR_COLORWHITE ); } } } @@ -2835,8 +2835,8 @@ void CHAR_CHAT_DEBUG_noenemy( int charaindex, char* message ) int fd=CHAR_getWorkInt( charaindex, CHAR_WORKFD); setEqNoenemy(fd, 0); } - snprintf( msgbuf, sizeof( msgbuf), "不遇敌模式%s。", - ( flg == TRUE) ? "开启" : "关闭"); + snprintf( msgbuf, sizeof( msgbuf), "涓嶉亣鏁屾ā寮%s銆", + ( flg == TRUE) ? "寮鍚" : "鍏抽棴"); CHAR_talkToCli( charaindex, -1, msgbuf, CHAR_COLORWHITE); } @@ -2852,7 +2852,7 @@ void CHAR_CHAT_DEBUG_loginannounce( int charaindex, char* message ) if (message == NULL) return; if( strlen(message)==0){ - sprintf(buf,"%s","参数不正确-> clear/add/send 请用小写"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-> clear/add/send 璇风敤灏忓啓"); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); return; } @@ -2860,7 +2860,7 @@ void CHAR_CHAT_DEBUG_loginannounce( int charaindex, char* message ) if (strcmp(cmd,"clear")==0) { FILE *f=fopen(ANNOUNCEFILE,"w"); - strcpy(buf, "石器时代公告\n"); + strcpy(buf, "鐭冲櫒鏃朵唬鍏憡\n"); fwrite(buf, strlen(buf), 1, f); fclose(f); LoadAnnounce(); @@ -2870,14 +2870,14 @@ void CHAR_CHAT_DEBUG_loginannounce( int charaindex, char* message ) easyGetTokenFromString(message, 2, say, sizeof(say)); if (strlen(say)==0) { - sprintf(buf,"%s","参数不正确"); + sprintf(buf,"%s","鍙傛暟涓嶆纭"); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); return; } if (!(f=fopen(ANNOUNCEFILE,"a+"))) { f=fopen(ANNOUNCEFILE,"w"); - strcpy(buf, "石器时代公告\n"); + strcpy(buf, "鐭冲櫒鏃朵唬鍏憡\n"); fwrite(buf, strlen(buf), 1, f); } fwrite(say, strlen(say), 1, f); @@ -2894,7 +2894,7 @@ void CHAR_CHAT_DEBUG_loginannounce( int charaindex, char* message ) LoadAnnounce(); CHAR_talkToCli(charaindex, -1, "OK, loginannounce loaded.", CHAR_COLORWHITE); } else { - sprintf(buf,"%s","参数不正确-> clear/add/send (请用小写)"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-> clear/add/send (璇风敤灏忓啓)"); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); return; } @@ -2904,7 +2904,7 @@ void CHAR_CHAT_DEBUG_checklock( int charaindex, char* message ) { char cmd[256]; if( strlen(message)==0){ - CHAR_talkToCli(charaindex, -1, "参数不正确", CHAR_COLORWHITE); + CHAR_talkToCli(charaindex, -1, "鍙傛暟涓嶆纭", CHAR_COLORWHITE); return; } easyGetTokenFromString( message, 1, cmd, sizeof(cmd)); @@ -2919,7 +2919,7 @@ void CHAR_CHAT_DEBUG_unlock( int charaindex, char* message ) #endif if( strlen(message)==0){ - CHAR_talkToCli(charaindex, -1, "参数不正确", CHAR_COLORWHITE); + CHAR_talkToCli(charaindex, -1, "鍙傛暟涓嶆纭", CHAR_COLORWHITE); return; } easyGetTokenFromString(message, 1, cmd, sizeof(cmd)); @@ -2935,7 +2935,7 @@ void CHAR_CHAT_DEBUG_unlockserver( int charaindex, char* message ) char cmd[256]; if( strlen(message)==0){ - CHAR_talkToCli(charaindex, -1, "参数不正确", CHAR_COLORWHITE); + CHAR_talkToCli(charaindex, -1, "鍙傛暟涓嶆纭", CHAR_COLORWHITE); return; } easyGetTokenFromString(message, 1, cmd, sizeof(cmd)); @@ -2948,24 +2948,24 @@ void CHAR_CHAT_DEBUG_fixfmdata(int charaindex, char *message) int i,index = -1,charindex = -1,iPlayerNum = CHAR_getPlayerMaxNum(); if(message == NULL || getStringFromIndexWithDelim(message," ",1,szFamilyID,sizeof(szFamilyID)) == FALSE){ - CHAR_talkToCli(charaindex, -1, "参数不正确 [fixfmdata <家族ID> <帐号(or -1)> ]",CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "鍙傛暟涓嶆纭 [fixfmdata <瀹舵棌ID> <甯愬彿(or -1)> ]",CHAR_COLORRED); return; } if(message == NULL || getStringFromIndexWithDelim(message," ",2,szID,sizeof(szID)) == FALSE){ - CHAR_talkToCli(charaindex, -1, "参数不正确 [fixfmdata <家族ID> <帐号(or -1)> ]",CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "鍙傛暟涓嶆纭 [fixfmdata <瀹舵棌ID> <甯愬彿(or -1)> ]",CHAR_COLORRED); return; } if(message == NULL || getStringFromIndexWithDelim(message," ",3,szCmd,sizeof(szCmd)) == FALSE){ - CHAR_talkToCli(charaindex, -1, "参数不正确 [fixfmdata <家族ID> <帐号(or -1)> ]",CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "鍙傛暟涓嶆纭 [fixfmdata <瀹舵棌ID> <甯愬彿(or -1)> ]",CHAR_COLORRED); return; } if(message == NULL || getStringFromIndexWithDelim(message," ",4,szData,sizeof(szData)) == FALSE){ - CHAR_talkToCli(charaindex, -1, "参数不正确 [fixfmdata <家族ID> <帐号(or -1)> ]",CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "鍙傛暟涓嶆纭 [fixfmdata <瀹舵棌ID> <甯愬彿(or -1)> ]",CHAR_COLORRED); return; } index = atoi(szFamilyID); if(index < 1 || index > 1000){ - CHAR_talkToCli(charaindex,-1,"id 值错误", CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"id 鍊奸敊璇", CHAR_COLORRED); return; } index -= 1; @@ -2979,16 +2979,16 @@ void CHAR_CHAT_DEBUG_fixfmdata(int charaindex, char *message) } } if(charindex == -1){ - CHAR_talkToCli(charaindex,-1,"找不到此帐号的人物", CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"鎵句笉鍒版甯愬彿鐨勪汉鐗", CHAR_COLORRED); return; } if(CHAR_getInt(charindex,CHAR_FMINDEX) == -1){ - CHAR_talkToCli(charaindex,-1,"此帐号的人物没有家族", CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"姝ゅ笎鍙风殑浜虹墿娌℃湁瀹舵棌", CHAR_COLORRED); return; } else{ if(CHAR_getWorkInt(charindex,CHAR_WORKFMINDEXI) != index){ - CHAR_talkToCli(charaindex,-1,"此帐号的人物家族ID与输入的家族ID不符", CHAR_COLORRED); + CHAR_talkToCli(charaindex,-1,"姝ゅ笎鍙风殑浜虹墿瀹舵棌ID涓庤緭鍏ョ殑瀹舵棌ID涓嶇", CHAR_COLORRED); return; } } @@ -2998,7 +2998,7 @@ void CHAR_CHAT_DEBUG_fixfmdata(int charaindex, char *message) saacproto_ACGMFixFMData_send(acfd,index,szID,szCmd,szData,getFdidFromCharaIndex(charaindex)); } -// WON ADD 修正族长问题 +// WON ADD 淇鏃忛暱闂 void CHAR_CHAT_DEBUG_fixfmleader(int charaindex, char *message) { char token[256], cmd[256], id[16]; @@ -3007,7 +3007,7 @@ void CHAR_CHAT_DEBUG_fixfmleader(int charaindex, char *message) if (strlen(message) == 0) { - CHAR_talkToCli(charaindex, -1, "参数不正确 [fixfmleader 帐号 1]", CHAR_COLORWHITE); + CHAR_talkToCli(charaindex, -1, "鍙傛暟涓嶆纭 [fixfmleader 甯愬彿 1]", CHAR_COLORWHITE); return; } @@ -3015,7 +3015,7 @@ void CHAR_CHAT_DEBUG_fixfmleader(int charaindex, char *message) sprintf(id, token); // id easyGetTokenFromString(message, 2, token, sizeof(token)); - flag = atoi(token); // flag 执行旗标,输入 1 就行了 + flag = atoi(token); // flag 鎵ц鏃楁爣锛岃緭鍏 1 灏辫浜 for(i=0;i id]"); + sprintf(buf,"%s","鍙傛暟涓嶆纭 [manorpk id]"); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); return; } @@ -3107,7 +3107,7 @@ void CHAR_CHAT_DEBUG_manorpk(int charaindex, char *message) easyGetTokenFromString(message, 2, cmd, sizeof(cmd)); manorid=atoi(cmd); if ((manorid<1)||(manorid>MANORNUM)) { - sprintf(buf,"%s","参数不正确。 id 必须在 1~10 之间。"); + sprintf(buf,"%s","鍙傛暟涓嶆纭 id 蹇呴』鍦 1~10 涔嬮棿銆"); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); return; } @@ -3120,7 +3120,7 @@ void CHAR_CHAT_DEBUG_manorpk(int charaindex, char *message) #ifdef _NEW_MANOR_LAW CHAR_setWorkInt(i,CHAR_NPCWORKINT6,tm1.tm_mday); #endif - sprintf(buf,"%d peace。", CHAR_getWorkInt(i, CHAR_NPCWORKINT2)); + sprintf(buf,"%d peace銆", CHAR_getWorkInt(i, CHAR_NPCWORKINT2)); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); } } @@ -3134,7 +3134,7 @@ void CHAR_CHAT_DEBUG_manorpk(int charaindex, char *message) easyGetTokenFromString(message, 2, cmd, sizeof(cmd)); manorid=atoi(cmd); if ((manorid<1)||(manorid>MANORNUM)) { - sprintf(buf,"%s","参数不正确。 id 必须在 1~9 之间。"); + sprintf(buf,"%s","鍙傛暟涓嶆纭 id 蹇呴』鍦 1~9 涔嬮棿銆"); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); return; } @@ -3164,7 +3164,7 @@ void CHAR_CHAT_DEBUG_manorpk(int charaindex, char *message) data = atoi( cmd); saacproto_ACreLoadFmData_send( acfd, type, data); }else { - sprintf(buf,"%s","参数不正确。 [manorpk id]"); + sprintf(buf,"%s","鍙傛暟涓嶆纭 [manorpk id]"); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); } } @@ -3180,7 +3180,7 @@ void CHAR_CHAT_DEBUG_shutdown(int charindex , char *message ) void CHAR_CHAT_DEBUG_watchevent( int charaindex, char* message ) { -#ifdef _ADD_NEWEVENT // WON 多增任务旗标 +#ifdef _ADD_NEWEVENT // WON 澶氬浠诲姟鏃楁爣 int event_num = 8; #else int event_num = 6; @@ -3200,7 +3200,7 @@ void CHAR_CHAT_DEBUG_watchevent( int charaindex, char* message ) getStringFromIndexWithDelim( message, " ", 1, token_cdkey, sizeof( token_cdkey)); getStringFromIndexWithDelim( message, " ", 2, token_name, sizeof( token_name)); if( strlen(token_cdkey)==0 || strlen(token_name)==0 ){ - sprintf(buf,"%s","参数不正确。正确格式:[wahctevent 帐号 人物名称]"); + sprintf(buf,"%s","鍙傛暟涓嶆纭傛纭牸寮忥細[wahctevent 甯愬彿 浜虹墿鍚嶇О]"); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORWHITE); return; } @@ -3260,7 +3260,7 @@ void CHAR_CHAT_DEBUG_watchevent( int charaindex, char* message ) } CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); }else{ - sprintf(buf,"%s\n","失败!!帐号与人物名称无法相符。"); + sprintf(buf,"%s\n","澶辫触锛侊紒甯愬彿涓庝汉鐗╁悕绉版棤娉曠浉绗︺"); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); } } @@ -3277,7 +3277,7 @@ void CHAR_CHAT_DEBUG_gmreload( int charaindex, char* message ) if (message == NULL) return; if (strlen(message) == 0) { - sprintf(buf,"%s","参数不正确,[gmreload all] 或 [gmreload id level(1~3)] level 3:工程师,2:组长级,1:一般gm"); + sprintf(buf,"%s","鍙傛暟涓嶆纭紝[gmreload all] 鎴 [gmreload id level(1~3)] level 3:宸ョ▼甯,2:缁勯暱绾,1:涓鑸琯m"); CHAR_talkToCli(charaindex, -1, buf, CHAR_COLORWHITE); return; } @@ -3295,13 +3295,13 @@ void CHAR_CHAT_DEBUG_gmreload( int charaindex, char* message ) { if (charlevel != 3) { - CHAR_talkToCli( charaindex, -1, "你没有修改GM等级的权限!", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "浣犳病鏈変慨鏀癸姬锛瓑绾х殑鏉冮檺锛", CHAR_COLORWHITE); return; } if (LoadGMSet(getGMSetfile())) - CHAR_talkToCli( charaindex, -1, "再次读取GM基本设定OK!", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇锛э辑鍩烘湰璁惧畾锛极锛", CHAR_COLORWHITE); else - CHAR_talkToCli( charaindex, -1, "再次读取GM基本设定失败!", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "鍐嶆璇诲彇锛э辑鍩烘湰璁惧畾澶辫触锛", CHAR_COLORRED); } else { @@ -3311,7 +3311,7 @@ void CHAR_CHAT_DEBUG_gmreload( int charaindex, char* message ) level = atoi(clevel); if (level > 4 || level < 1 || level > gminfo[i].level) { - CHAR_talkToCli( charaindex, -1, "修改失败,无法将此帐号等级修改的比自己等级高!level(1~3)", CHAR_COLORWHITE); + CHAR_talkToCli( charaindex, -1, "淇敼澶辫触锛屾棤娉曞皢姝ゅ笎鍙风瓑绾т慨鏀圭殑姣旇嚜宸辩瓑绾ч珮锛乴evel(1~3)", CHAR_COLORWHITE); return; } for (i = 0; i < GMMAXNUM; i++) @@ -3320,12 +3320,12 @@ void CHAR_CHAT_DEBUG_gmreload( int charaindex, char* message ) { if (gminfo[i].level > charlevel) { - snprintf(tmpbuf, sizeof(tmpbuf), "修改失败,无法修改等级比自己高的帐号!"); + snprintf(tmpbuf, sizeof(tmpbuf), "淇敼澶辫触锛屾棤娉曚慨鏀圭瓑绾ф瘮鑷繁楂樼殑甯愬彿锛"); CHAR_talkToCli(charaindex, -1, tmpbuf, CHAR_COLORWHITE); return; } gminfo[i].level = level; - snprintf(tmpbuf, sizeof(tmpbuf), "修改%s等级为%dOK!", gminfo[i].cdkey, gminfo[i].level); + snprintf(tmpbuf, sizeof(tmpbuf), "淇敼%s绛夌骇涓%d锛极锛", gminfo[i].cdkey, gminfo[i].level); CHAR_talkToCli(charaindex, -1, tmpbuf, CHAR_COLORWHITE); changeflag = 1; break; @@ -3333,7 +3333,7 @@ void CHAR_CHAT_DEBUG_gmreload( int charaindex, char* message ) } if (changeflag == 0) { - snprintf(tmpbuf, sizeof(tmpbuf), "GM列表中查无此帐号,修改失败!"); + snprintf(tmpbuf, sizeof(tmpbuf), "锛э辑鍒楄〃涓煡鏃犳甯愬彿锛屼慨鏀瑰け璐ワ紒"); CHAR_talkToCli(charaindex, -1, tmpbuf, CHAR_COLORWHITE); } } @@ -3375,7 +3375,7 @@ void CHAR_CHAT_DEBUG_cleanfloor( int charaindex, char *message) goldnum++; } } - sprintf( buf, "清除 宠物:%d只,道具:%d个,石币:%d个。", petnum, itemnum, goldnum); + sprintf( buf, "娓呴櫎 瀹犵墿:%d鍙紝閬撳叿:%d涓紝鐭冲竵:%d涓", petnum, itemnum, goldnum); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORYELLOW); return; } @@ -3417,7 +3417,7 @@ void CHAR_CHAT_DEBUG_setgamblenum( int charaindex, char *message ) if( set_num > 10000) set_num = 10000; CHAR_setInt( charaindex, CHAR_GAMBLENUM, set_num); - sprintf( buf,"个人游乐场积分设为%d点。", CHAR_getInt( charaindex, CHAR_GAMBLENUM)); + sprintf( buf,"涓汉娓镐箰鍦虹Н鍒嗚涓%d鐐广", CHAR_getInt( charaindex, CHAR_GAMBLENUM)); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORYELLOW); return; } @@ -3452,28 +3452,28 @@ void CHAR_CHAT_DEBUG_petlevelup( int charaindex, char* message ) } if (i>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } petindex = CHAR_getCharPet( i, petid); if( !CHAR_CHECKINDEX( petindex) ){ - sprintf( token, "玩家%s宠物栏%d上没宠物!", CHAR_getChar( i, CHAR_NAME),petid+1); + sprintf( token, "鐜╁%s瀹犵墿鏍%d涓婃病瀹犵墿!", CHAR_getChar( i, CHAR_NAME),petid+1); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); return; } mylevel = CHAR_getInt( petindex, CHAR_LV); level = level-mylevel; - for( j = 1; j <= level; j ++ ){ //升级 + for( j = 1; j <= level; j ++ ){ //鍗囩骇 CHAR_PetLevelUp( petindex ); CHAR_PetAddVariableAi( petindex, AI_FIX_PETLEVELUP ); CHAR_setInt( petindex, CHAR_LV, CHAR_getInt( petindex, CHAR_LV) +1 ); } CHAR_complianceParameter( petindex ); CHAR_setInt( petindex , CHAR_HP , CHAR_getWorkInt( petindex , CHAR_WORKMAXHP ) ); - sprintf( token, "[GM]%s把你宠物栏%d的宠物设为%d级!", CHAR_getChar( charaindex, CHAR_NAME), + sprintf( token, "[GM]%s鎶婁綘瀹犵墿鏍%d鐨勫疇鐗╄涓%d绾!", CHAR_getChar( charaindex, CHAR_NAME), petid+1, CHAR_getInt( petindex, CHAR_LV)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的宠物栏%d的宠物设为%d级!", CHAR_getChar( i, CHAR_NAME), + sprintf( token, "鐜╁%s鐨勫疇鐗╂爮%d鐨勫疇鐗╄涓%d绾!", CHAR_getChar( i, CHAR_NAME), petid+1, CHAR_getInt( petindex, CHAR_LV)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); snprintf( token, sizeof( token ), "K%d", petid ); @@ -3490,19 +3490,19 @@ void CHAR_CHAT_DEBUG_petlevelup( int charaindex, char* message ) }else{ petindex = CHAR_getCharPet( charaindex, petid); if( !CHAR_CHECKINDEX( petindex) ){ - sprintf( token, "你的宠物栏%d上没宠物!", petid+1); + sprintf( token, "浣犵殑瀹犵墿鏍%d涓婃病瀹犵墿!", petid+1); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); return; } mylevel = CHAR_getInt( petindex, CHAR_LV); level = level-mylevel; - for( j = 1; j <= level; j ++ ){ //升级 + for( j = 1; j <= level; j ++ ){ //鍗囩骇 CHAR_PetLevelUp( petindex ); CHAR_PetAddVariableAi( petindex, AI_FIX_PETLEVELUP ); CHAR_setInt( petindex, CHAR_LV, CHAR_getInt( petindex, CHAR_LV) +1 ); } CHAR_setInt( petindex , CHAR_HP , CHAR_getWorkInt( petindex , CHAR_WORKMAXHP ) ); - sprintf( token, "把宠物栏%d的宠物设为%d级!", petid+1, CHAR_getInt( petindex, CHAR_LV)); + sprintf( token, "鎶婂疇鐗╂爮%d鐨勫疇鐗╄涓%d绾!", petid+1, CHAR_getInt( petindex, CHAR_LV)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); CHAR_complianceParameter( petindex ); snprintf( token, sizeof( token ), "K%d", petid ); @@ -3542,31 +3542,31 @@ void CHAR_CHAT_DEBUG_petexpup( int charaindex, char* message ) } if (i>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } petindex = CHAR_getCharPet( i, petid); if( !CHAR_CHECKINDEX( petindex) ){ - sprintf( token, "玩家%s宠物栏%d上没宠物!", CHAR_getChar( i, CHAR_NAME),petid+1); + sprintf( token, "鐜╁%s瀹犵墿鏍%d涓婃病瀹犵墿!", CHAR_getChar( i, CHAR_NAME),petid+1); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); return; } CHAR_setMaxExp( petindex, atoi( exp )); CHAR_send_P_StatusString( i , CHAR_P_STRING_EXP); - sprintf( token, "[GM]%s把你的经验设置为%d!", CHAR_getChar( charaindex, CHAR_NAME),(int)atoi(exp)); + sprintf( token, "[GM]%s鎶婁綘鐨勭粡楠岃缃负%d!", CHAR_getChar( charaindex, CHAR_NAME),(int)atoi(exp)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的经验设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(exp)); + sprintf( token, "鐜╁%s鐨勭粡楠岃缃负%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(exp)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); }else{ petindex = CHAR_getCharPet( charaindex, petid); if( !CHAR_CHECKINDEX( petindex) ){ - sprintf( token, "玩家%s宠物栏%d上没宠物!", CHAR_getChar( i, CHAR_NAME),petid+1); + sprintf( token, "鐜╁%s瀹犵墿鏍%d涓婃病瀹犵墿!", CHAR_getChar( i, CHAR_NAME),petid+1); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); return; } CHAR_setMaxExp( petindex, atoi( exp )); CHAR_send_P_StatusString( charaindex , CHAR_P_STRING_EXP); - sprintf( token, "经验设置为%d!",(int)atoi(exp)/100); + sprintf( token, "缁忛獙璁剧疆涓%d!",(int)atoi(exp)/100); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); } } @@ -3610,14 +3610,14 @@ void CHAR_CHAT_DEBUG_engineer( int charindex, char *message) } j=0; for( petNum=0; petNum= arraysizeof( gmset) ) { - CHAR_talkToCli(charindex, -1, "参数不正确", CHAR_COLORYELLOW); + CHAR_talkToCli(charindex, -1, "鍙傛暟涓嶆纭", CHAR_COLORYELLOW); return; } act = i; // WON FIX 5 --> 6 if( act < 0 || act > 6 ){ - CHAR_talkToCli(charindex, -1, "参数不正确", CHAR_COLORYELLOW); + CHAR_talkToCli(charindex, -1, "鍙傛暟涓嶆纭", CHAR_COLORYELLOW); return; } } saacproto_ACKick_send( acfd, cdkey, getFdidFromCharaIndex( charindex), act); } #endif -// WON ADD 当机指令 +// WON ADD 褰撴満鎸囦护 void CHAR_CHAT_DEBUG_crash(int charaindex , char *message) { int fd; @@ -3740,7 +3740,7 @@ void CHAR_CHAT_DEBUG_Toxication( int charaindex, char *message) { int fd = getfdFromCharaIndex( charaindex ); if( strstr( message, "TRUE") != 0){ - CHAR_talkToCli( charaindex, -1, "中毒", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "涓瘨", CHAR_COLORYELLOW); setToxication( fd, 1); }else { setToxication( fd, 0); @@ -3753,14 +3753,14 @@ void CHAR_CHAT_DEBUG_Toxication( int charaindex, char *message) void CHAR_CHAT_DEBUG_saveditem(int charaindex, char *message) { if( CHAR_SaveDepotItem( charaindex) == FALSE ){ - CHAR_talkToCli( charaindex, -1, "储存失败!", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍌ㄥ瓨澶辫触锛", CHAR_COLORYELLOW); } } void CHAR_CHAT_DEBUG_insertditem(int charaindex, char *message) { if( CHAR_GetDepotItem( -1, charaindex) == FALSE ){ - CHAR_talkToCli( charaindex, -1, "读取失败!", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "璇诲彇澶辫触锛", CHAR_COLORYELLOW); } } @@ -3768,7 +3768,7 @@ void CHAR_CHAT_DEBUG_ShowMyDepotItems( int charaindex, char *message ) { if( !CHAR_CheckDepotItem( charaindex) ){ char token[256]; - sprintf( token, "尚未取得仓库。"); + sprintf( token, "灏氭湭鍙栧緱浠撳簱銆"); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); return; } @@ -3781,7 +3781,7 @@ void CHAR_CHAT_DEBUG_InSideMyDepotItems( int charaindex, char *message ) char token[256]; if( !CHAR_CheckDepotItem( charaindex) ){ - sprintf( token, "尚未取得仓库。"); + sprintf( token, "灏氭湭鍙栧緱浠撳簱銆"); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); return; } @@ -3798,7 +3798,7 @@ void CHAR_CHAT_DEBUG_InSideMyDepotItems( int charaindex, char *message ) break; } } - sprintf( token, "转换%d个道具。", count); + sprintf( token, "杞崲%d涓亾鍏枫", count); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); } #endif @@ -3808,14 +3808,14 @@ void CHAR_CHAT_DEBUG_InSideMyDepotItems( int charaindex, char *message ) void CHAR_CHAT_DEBUG_savedpet(int charaindex, char *message) { if( CHAR_SaveDepotPet( charaindex) == FALSE ){ - CHAR_talkToCli( charaindex, -1, "储存失败!", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "鍌ㄥ瓨澶辫触锛", CHAR_COLORYELLOW); } } void CHAR_CHAT_DEBUG_insertdpet(int charaindex, char *message) { if( CHAR_GetDepotPet( -1, charaindex) == FALSE ){ - CHAR_talkToCli( charaindex, -1, "读取失败!", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "璇诲彇澶辫触锛", CHAR_COLORYELLOW); } } @@ -3823,7 +3823,7 @@ void CHAR_CHAT_DEBUG_ShowMyDepotPets( int charaindex, char *message ) { if( !CHAR_CheckDepotPet( charaindex) ){ char token[256]; - sprintf( token, "尚未取得仓库。"); + sprintf( token, "灏氭湭鍙栧緱浠撳簱銆"); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); return; } @@ -3836,7 +3836,7 @@ void CHAR_CHAT_DEBUG_InSideMyDepotPets( int charaindex, char *message ) char token[256]; if( !CHAR_CheckDepotPet( charaindex) ){ - sprintf( token, "尚未取得仓库。"); + sprintf( token, "灏氭湭鍙栧緱浠撳簱銆"); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); return; } @@ -3858,7 +3858,7 @@ void CHAR_CHAT_DEBUG_InSideMyDepotPets( int charaindex, char *message ) break; } } - sprintf( token, "转换%d个宠物。", count); + sprintf( token, "杞崲%d涓疇鐗┿", count); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW); } #endif @@ -3885,12 +3885,12 @@ void CHAR_CHAT_DEBUG_cleanfreepet(int charaindex, char *message) } if( delobjnum > 0 ){ char buf[256]; - sprintf( buf, "清除%d 置宠物。", delobjnum); + sprintf( buf, "娓呴櫎%d 缃疇鐗┿", delobjnum); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORRED); } } -#ifdef _SEND_EFFECT // WON ADD AC送下雪、下雨等特效 +#ifdef _SEND_EFFECT // WON ADD AC閫佷笅闆佷笅闆ㄧ瓑鐗规晥 void CHAR_CHAT_DEBUG_sendeffect( int charaindex, char *message) { int i, j, effect, level; @@ -3993,14 +3993,14 @@ void CHAR_CHAT_DEBUG_checktime( int charaindex, char *message) { time_t newsec; char buf[256]; - char WKday[7][32]={"日","一","二","三","四","五","六"}; + char WKday[7][32]={"鏃","涓","浜","涓","鍥","浜","鍏"}; struct tm *p; newsec = time( NULL); p = localtime( &newsec); // newsec = localtime( &newsec); - sprintf( buf, "今天:%d年%d月%d日 %s %d:%d:%d ...newsec:%ld。", + sprintf( buf, "浠婂ぉ锛%d骞%d鏈%d鏃 %s %d:%d:%d ...newsec:%ld銆", (1900+p->tm_year), (1+p->tm_mon), p->tm_mday, WKday[p->tm_wday], p->tm_hour, p->tm_min, p->tm_sec, newsec ); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORRED); @@ -4026,13 +4026,13 @@ void CHAR_CHAT_DEBUG_checktime( int charaindex, char *message) p->tm_sec = atoi( buf); newsec = mktime( p); - sprintf( buf, "确认1:%d年%d月%d日 %s %d:%d:%d ...newsec:%ld。", + sprintf( buf, "纭1锛%d骞%d鏈%d鏃 %s %d:%d:%d ...newsec:%ld銆", (1900+p->tm_year), (1+p->tm_mon), p->tm_mday, WKday[p->tm_wday], p->tm_hour, p->tm_min, p->tm_sec, newsec ); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORRED); p = localtime( &newsec); - sprintf( buf, "确认2:%d年%d月%d日 %s %d:%d:%d ...newsec:%ld..time:%d。", + sprintf( buf, "纭2锛%d骞%d鏈%d鏃 %s %d:%d:%d ...newsec:%ld..time:%d銆", (1900+p->tm_year), (1+p->tm_mon), p->tm_mday, WKday[p->tm_wday], p->tm_hour, p->tm_min, p->tm_sec, newsec, (int)time(NULL)); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORRED); @@ -4082,12 +4082,12 @@ void CHAR_CHAT_DEBUG_playerspread( int charaindex, char *message) } -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 void CHAR_CHAT_DEBUG_set_regist( int charaindex, char*message ) { -#ifdef _MAGIC_RESIST_EQUIT // WON ADD 职业抗性装备 +#ifdef _MAGIC_RESIST_EQUIT // WON ADD 鑱屼笟鎶楁ц澶 char temp[128] = {0}, msg[128] = {0}; int f = 0, i = 0, t = 0; @@ -4102,7 +4102,7 @@ void CHAR_CHAT_DEBUG_set_regist( int charaindex, char*message ) CHAR_setWorkInt( charaindex, CHAR_WORK_I_SUIT, i ); CHAR_setWorkInt( charaindex, CHAR_WORK_T_SUIT, t ); - sprintf(msg, "火抗性(%d) 水抗性(%d) 电抗性(%d)", + sprintf(msg, "鐏姉鎬(%d) 姘存姉鎬(%d) 鐢垫姉鎬(%d)", CHAR_getWorkInt( charaindex, CHAR_WORK_F_SUIT), CHAR_getWorkInt( charaindex, CHAR_WORK_I_SUIT), CHAR_getWorkInt( charaindex, CHAR_WORK_T_SUIT) @@ -4127,10 +4127,10 @@ void CHAR_CHAT_DEBUG_show_profession( int charaindex, char*message ) getStringFromIndexWithDelim( message, " ", 2, worker, sizeof(worker) ); getStringFromIndexWithDelim( message, " ", 3, value, sizeof(value) ); - if( strcmp(type, "restart") == 0 ){ // 重读 profession.txt - CHAR_talkToCli( charaindex, -1, "重读 profession.txt", CHAR_COLORRED); + if( strcmp(type, "restart") == 0 ){ // 閲嶈 profession.txt + CHAR_talkToCli( charaindex, -1, "閲嶈 profession.txt", CHAR_COLORRED); rePROFESSION_initSkill(); - }else if( strcmp(type, "") != 0 ){ // 修改职业属性 + }else if( strcmp(type, "") != 0 ){ // 淇敼鑱屼笟灞炴 if( strcmp(worker, "") != 0 ){ if( strcmp(value, "") != 0 ){ CHAR_setInt(charaindex, PROFESSION_CLASS+atoi(worker), atoi(value) ); @@ -4146,14 +4146,14 @@ void CHAR_CHAT_DEBUG_show_profession( int charaindex, char*message ) } #endif }else - CHAR_talkToCli( charaindex, -1, "请输入数值", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "璇疯緭鍏ユ暟鍊", CHAR_COLORRED); }else - CHAR_talkToCli( charaindex, -1, "请输入修改项目:1(职业别) 2(职业等级) 3(职业经验值) 4(剩馀点数)", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "璇疯緭鍏ヤ慨鏀归」鐩細1(鑱屼笟鍒) 2(鑱屼笟绛夌骇) 3(鑱屼笟缁忛獙鍊) 4(鍓╅鐐规暟)", CHAR_COLORRED); } if( strcmp(type, "1") != 0 ){ memset(msg, 0, sizeof(msg)); - sprintf(msg, "职业别(%d) 职业等级(%d) 剩余点数(%d)", + sprintf(msg, "鑱屼笟鍒(%d) 鑱屼笟绛夌骇(%d) 鍓╀綑鐐规暟(%d)", CHAR_getInt(charaindex, PROFESSION_CLASS), CHAR_getInt(charaindex, PROFESSION_LEVEL), CHAR_getInt(charaindex, PROFESSION_SKILL_POINT) @@ -4201,7 +4201,7 @@ void CHAR_CHAT_DEBUG_samecode( int charaindex, char *message) } } if( j >= 3 ){ - CHAR_talkToCli( charaindex, -1, "参数错误!", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "鍙傛暟閿欒锛", CHAR_COLORRED); return; } @@ -4270,7 +4270,7 @@ void CHAR_CHAT_DEBUG_silent(int charindex ,char *message) easyGetTokenFromString( message , 1 , token, sizeof(token)); easyGetTokenFromString( message , 2 , token1, sizeof(token1)); if( (strlen(message)==0) || (strlen(token1)==0) ){ - sprintf(buf,"%s","参数不正确--> 帐号 分钟"); + sprintf(buf,"%s","鍙傛暟涓嶆纭--> 甯愬彿 鍒嗛挓"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } @@ -4300,12 +4300,12 @@ void CHAR_CHAT_DEBUG_silent(int charindex ,char *message) //print("\n= 220 ){ CHAR_talkToCli( charindex, -1, token, CHAR_COLORYELLOW); - strcpy( token, "可用GM指令:"); + strcpy( token, "鍙敤GM鎸囦护:"); } strcat( token, buf2); continue; }else{ if( strstr( buf1, buf) != NULL || strstr( buf2, buf) != NULL ){ - sprintf( token, "GM指令:[%s %s]", buf1, buf2); + sprintf( token, "GM鎸囦护:[%s %s]", buf1, buf2); CHAR_talkToCli( charindex, -1, token, CHAR_COLORYELLOW); } continue; @@ -4381,11 +4381,11 @@ void CHAR_CHAT_DEBUG_set_momentum( int charaindex, char* message ) } } if(i >= iPlayerNum){ - CHAR_talkToCli(charaindex,-1,"找不到这名玩家",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"鎵句笉鍒拌繖鍚嶇帺瀹",CHAR_COLORYELLOW); return; } CHAR_setInt(i,CHAR_MOMENTUM,id); - sprintf(szMsg,"目前气势值: %d",CHAR_getInt(i,CHAR_MOMENTUM)/100); + sprintf(szMsg,"鐩墠姘斿娍鍊: %d",CHAR_getInt(i,CHAR_MOMENTUM)/100); CHAR_talkToCli(charaindex,-1,szMsg,CHAR_COLORYELLOW); sprintf(buf,"%d",id); fd = getfdFromCharaIndex(i); @@ -4401,32 +4401,32 @@ void CHAR_CHAT_DEBUG_set_manor_owner( int charindex, char* message ) char szId[8],szUseFlag[2],szFamilyNameOrID[64],szToken[4096],szFamilyIndex[8],szGetFamilyName[64]; if(message == NULL || getStringFromIndexWithDelim(message," ",1,szId,sizeof(szId)) == FALSE){ - CHAR_talkToCli(charindex,-1, "参数不正确 [set_manor_owner 庄园id(1~10) 使用旗标(0:名称 1:id) 家族名称或id]", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1, "鍙傛暟涓嶆纭 [set_manor_owner 搴勫洯id(1~10) 浣跨敤鏃楁爣(0:鍚嶇О 1:id) 瀹舵棌鍚嶇О鎴杋d]", CHAR_COLORRED); return; } if(atoi(szId) < 1 || atoi(szId) > MANORNUM){ - CHAR_talkToCli(charindex,-1, "庄园ID值不正确(1~10)", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1, "搴勫洯ID鍊间笉姝g‘(1~10)", CHAR_COLORRED); return; } if(getStringFromIndexWithDelim(message," ",2,szUseFlag,sizeof(szUseFlag)) == FALSE){ - CHAR_talkToCli(charindex,-1, "参数不正确 [set_manor_owner 庄园id(1~10) 使用旗标(0:名称 1:id) 家族名称或id]", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1, "鍙傛暟涓嶆纭 [set_manor_owner 搴勫洯id(1~10) 浣跨敤鏃楁爣(0:鍚嶇О 1:id) 瀹舵棌鍚嶇О鎴杋d]", CHAR_COLORRED); return; } iUseFlag = atoi(szUseFlag); if(iUseFlag < 0 || iUseFlag > 1){ - CHAR_talkToCli(charindex,-1, "使用旗标值不正确(0:名称 1:id)", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1, "浣跨敤鏃楁爣鍊间笉姝g‘(0:鍚嶇О 1:id)", CHAR_COLORRED); return; } if(getStringFromIndexWithDelim(message," ",3,szFamilyNameOrID,sizeof(szFamilyNameOrID)) == FALSE){ - CHAR_talkToCli(charindex,-1, "参数不正确 [set_manor_owner 庄园id(1~10) 使用旗标(0:名称 1:id) 家族名称或id]", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1, "鍙傛暟涓嶆纭 [set_manor_owner 搴勫洯id(1~10) 浣跨敤鏃楁爣(0:鍚嶇О 1:id) 瀹舵棌鍚嶇О鎴杋d]", CHAR_COLORRED); return; } if(iUseFlag == 1){ - // 检查是否都是数字 + // 妫鏌ユ槸鍚﹂兘鏄暟瀛 for(i=0;i '9' || szFamilyNameOrID[i] < '0'){ - CHAR_talkToCli(charindex,-1, "家族id格式错误", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1, "瀹舵棌id鏍煎紡閿欒", CHAR_COLORRED); return; } } @@ -4443,10 +4443,10 @@ void CHAR_CHAT_DEBUG_set_manor_owner( int charindex, char* message ) else break; } if(index == -1){ - CHAR_talkToCli(charindex,-1,"找不到此家族资料", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1,"鎵句笉鍒版瀹舵棌璧勬枡", CHAR_COLORRED); return; } - sprintf(szToken,"庄园 %s 设定给 %s 家族",szId,szGetFamilyName); + sprintf(szToken,"搴勫洯 %s 璁惧畾缁 %s 瀹舵棌",szId,szGetFamilyName); saacproto_ACFixFMPoint_send(acfd,szGetFamilyName,index+1,index,szGetFamilyName,index+1,index,atoi(szId)); } else{ @@ -4464,10 +4464,10 @@ void CHAR_CHAT_DEBUG_set_manor_owner( int charindex, char* message ) } if(index == -1){ - CHAR_talkToCli(charindex,-1,"找不到此家族资料", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1,"鎵句笉鍒版瀹舵棌璧勬枡", CHAR_COLORRED); return; } - sprintf(szToken,"庄园 %s 设定给 %s 家族",szId,szFamilyNameOrID); + sprintf(szToken,"搴勫洯 %s 璁惧畾缁 %s 瀹舵棌",szId,szFamilyNameOrID); saacproto_ACFixFMPoint_send(acfd,szFamilyNameOrID,index+1,index,szFamilyNameOrID,index+1,index,atoi(szId)); } CHAR_talkToCli(charindex,-1,szToken,CHAR_COLORRED); @@ -4480,15 +4480,15 @@ void CHAR_CHAT_DEBUG_set_schedule_time( int charindex, char* message ) char szId[8],szTime[12],szMsg[128]; if(message == NULL || getStringFromIndexWithDelim(message," ",1,szId,sizeof(szId)) == FALSE){ - CHAR_talkToCli(charindex,-1, "参数不正确 [set_schedule_time 庄园id(1~9) 时间(分)]", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1, "鍙傛暟涓嶆纭 [set_schedule_time 搴勫洯id(1~9) 鏃堕棿(鍒)]", CHAR_COLORRED); return; } if(atoi(szId) < 1 || atoi(szId) > MANORNUM){ - CHAR_talkToCli(charindex,-1, "庄园ID值不正确", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1, "搴勫洯ID鍊间笉姝g‘", CHAR_COLORRED); return; } if(getStringFromIndexWithDelim(message," ",2,szTime,sizeof(szTime)) == FALSE){ - CHAR_talkToCli(charindex,-1, "参数不正确 [set_schedule_time 庄园id(1~9) 时间(分)]", CHAR_COLORRED); + CHAR_talkToCli(charindex,-1, "鍙傛暟涓嶆纭 [set_schedule_time 搴勫洯id(1~9) 鏃堕棿(鍒)]", CHAR_COLORRED); return; } for(i=0;i=MAXMISSIONTABLE) { - CHAR_talkToCli( charindex, -1, "编号不正确", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "缂栧彿涓嶆纭", CHAR_COLORYELLOW); return; } if( missiontable[mindex].flag == MISSION_NONE ) { - CHAR_talkToCli( charindex, -1, "无此资料", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "鏃犳璧勬枡", CHAR_COLORYELLOW); return; } saacproto_ACMissionTable_send( acfd, mindex, 3, "", ""); - sprintf( msg, " GM指令 清除任务资料 i:%d 使者:%s 勇者:%s m:%d flg:%d time:%d lt:%d ", + sprintf( msg, " GM鎸囦护 娓呴櫎浠诲姟璧勬枡 i:%d 浣胯:%s 鍕囪:%s m:%d flg:%d time:%d lt:%d ", mindex, missiontable[mindex].angelinfo, missiontable[mindex].heroinfo, missiontable[mindex].mission, missiontable[mindex].flag, missiontable[mindex].time, missiontable[mindex].limittime ); @@ -4588,7 +4588,7 @@ void CHAR_CHAT_DEBUG_angelclean(int charindex ,char *message) // LogAngel( msg); } -void CHAR_CHAT_DEBUG_angelcreate(int charindex ,char *message) // 制造使者与勇者配对 +void CHAR_CHAT_DEBUG_angelcreate(int charindex ,char *message) // 鍒堕犱娇鑰呬笌鍕囪呴厤瀵 { char angelid[256], heroid[256], buf[256]; int i; @@ -4596,21 +4596,21 @@ void CHAR_CHAT_DEBUG_angelcreate(int charindex ,char *message) // int angelindex =-1, heroindex =-1, mission =-1; if( getStringFromIndexWithDelim( message, " ", 1, angelid, sizeof(angelid) ) == FALSE ){ - CHAR_talkToCli( charindex, -1, "参数不正确 [angelcreate 使者帐号 勇者帐号 任务编号]", CHAR_COLORRED); + CHAR_talkToCli( charindex, -1, "鍙傛暟涓嶆纭 [angelcreate 浣胯呭笎鍙 鍕囪呭笎鍙 浠诲姟缂栧彿]", CHAR_COLORRED); return; } if( getStringFromIndexWithDelim( message, " ", 2, heroid, sizeof(heroid) ) == FALSE ){ - CHAR_talkToCli( charindex, -1, "参数不正确 [angelcreate 使者帐号 勇者帐号 任务编号]", CHAR_COLORRED); + CHAR_talkToCli( charindex, -1, "鍙傛暟涓嶆纭 [angelcreate 浣胯呭笎鍙 鍕囪呭笎鍙 浠诲姟缂栧彿]", CHAR_COLORRED); return; } if( getStringFromIndexWithDelim( message, " ", 3, buf, sizeof(buf) ) == FALSE ){ - CHAR_talkToCli( charindex, -1, "参数不正确 [angelcreate 使者帐号 勇者帐号 任务编号]", CHAR_COLORRED); + CHAR_talkToCli( charindex, -1, "鍙傛暟涓嶆纭 [angelcreate 浣胯呭笎鍙 鍕囪呭笎鍙 浠诲姟缂栧彿]", CHAR_COLORRED); return; } mission = atoi( buf); //if( mission <= 0 || mission >= MAXMISSION || missionlist[mission].id <= 0) { if( mission >= MAXMISSION ) { - CHAR_talkToCli( charindex, -1, "任务编号不正确", CHAR_COLORRED); + CHAR_talkToCli( charindex, -1, "浠诲姟缂栧彿涓嶆纭", CHAR_COLORRED); return; } @@ -4627,12 +4627,12 @@ void CHAR_CHAT_DEBUG_angelcreate(int charindex ,char *message) // break; } if( angelindex == -1 || heroindex == -1 ) { - CHAR_talkToCli( charindex, -1, "找不到使者或勇者", CHAR_COLORRED); + CHAR_talkToCli( charindex, -1, "鎵句笉鍒颁娇鑰呮垨鍕囪", CHAR_COLORRED); return; } if( checkIfAngel( angelindex) != -1 || checkIfAngel( heroindex) != -1 ) { - CHAR_talkToCli( charindex, -1, "使者或勇者已经有任务了", CHAR_COLORRED); + CHAR_talkToCli( charindex, -1, "浣胯呮垨鍕囪呭凡缁忔湁浠诲姟浜", CHAR_COLORRED); return; } @@ -4642,14 +4642,14 @@ void CHAR_CHAT_DEBUG_angelcreate(int charindex ,char *message) // void CHAR_CHAT_DEBUG_missionreload(int charindex ,char *message) { print("Reading MissionList File..."); - CHAR_talkToCli( charindex, -1, "重新读取使者任务列表...", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "閲嶆柊璇诲彇浣胯呬换鍔″垪琛...", CHAR_COLORYELLOW); if( !LoadMissionList() ) { - CHAR_talkToCli( charindex, -1, "读取失败", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "璇诲彇澶辫触", CHAR_COLORYELLOW); print("fail!!\n"); return; } print("done\n"); - CHAR_talkToCli( charindex, -1, "读取完成", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "璇诲彇瀹屾垚", CHAR_COLORYELLOW); } @@ -4658,13 +4658,13 @@ void CHAR_CHAT_DEBUG_missionreload(int charindex ,char *message) void CHAR_CHAT_DEBUG_itemreload(int charindex ,char *message) { print("Reading itemset File..."); - CHAR_talkToCli( charindex, -1, "重新道具资料...", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "閲嶆柊閬撳叿璧勬枡...", CHAR_COLORYELLOW); if(!ITEM_readItemConfFile( getItemfile()) ) { - CHAR_talkToCli( charindex, -1, "读取失败", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "璇诲彇澶辫触", CHAR_COLORYELLOW); } print("done\n"); - CHAR_talkToCli( charindex, -1, "读取完成", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "璇诲彇瀹屾垚", CHAR_COLORYELLOW); } @@ -4674,18 +4674,18 @@ void CHAR_CHAT_DEBUG_skywalker(int charaindex ,char *message) return; if( strstr( message, "on") != NULL ) { - CHAR_talkToCli( charaindex, -1, "天行者模式启动", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "澶╄鑰呮ā寮忓惎鍔", CHAR_COLORYELLOW); CHAR_setWorkInt( charaindex, CHAR_WORKSKYWALKER, TRUE); } if( strstr( message, "off") != NULL ) { - CHAR_talkToCli( charaindex, -1, "天行者模式关闭", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "澶╄鑰呮ā寮忓叧闂", CHAR_COLORYELLOW); CHAR_setWorkInt( charaindex, CHAR_WORKSKYWALKER, FALSE); } CHAR_send_P_StatusString( charaindex, CHAR_P_STRING_SKYWALKER); } -#ifdef _ITEM_ADDEXP // 显示智果效果 +#ifdef _ITEM_ADDEXP // 鏄剧ず鏅烘灉鏁堟灉 void CHAR_CHAT_DEBUG_itemaddexp(int charaindex ,char *message) { char msg[1024]; @@ -4710,12 +4710,12 @@ void CHAR_CHAT_DEBUG_itemaddexp(int charaindex ,char *message) } } if( toindex == -1 ) { - CHAR_talkToCli( charaindex,-1, "查无此人", CHAR_COLORRED); + CHAR_talkToCli( charaindex,-1, "鏌ユ棤姝や汉", CHAR_COLORRED); return; } } - sprintf( msg, "智慧之果效果 %s 目前分数%d %d% 时间%d分。", + sprintf( msg, "鏅烘収涔嬫灉鏁堟灉 %s銆鐩墠鍒嗘暟%d %d锛 鏃堕棿%d鍒嗐", CHAR_getChar( toindex, CHAR_NAME), CHAR_getInt( toindex, CHAR_ADDEXPPOWER) * (int)(CHAR_getInt( toindex, CHAR_ADDEXPTIME)/60), @@ -4740,7 +4740,7 @@ void CHAR_CHAT_DEBUG_getyou(int charaindex,char *message) getStringFromIndexWithDelim( message, " ", 1, areabuf , sizeof( areabuf )); area = atoi(areabuf); if( area <= 0 || area > 3 ){ - sprintf(buf,"%s","没有输入 围或 围超出限制,请输入1~3"); + sprintf(buf,"%s","娌℃湁杈撳叆 鍥存垨 鍥磋秴鍑洪檺鍒讹紝璇疯緭鍏1~3"); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORYELLOW); return; } @@ -4754,21 +4754,21 @@ void CHAR_CHAT_DEBUG_getyou(int charaindex,char *message) if( OBJECT_getType(o) == OBJTYPE_CHARA ){ chara_index=OBJECT_getIndex(o); if( CHAR_getInt( chara_index, CHAR_WHICHTYPE) != CHAR_TYPEPLAYER ) continue; - if( chara_index == charaindex ) continue; //找到自己了 + if( chara_index == charaindex ) continue; //鎵惧埌鑷繁浜 if( CHAR_CHECKINDEX(chara_index)){ getnum++; - strcpy(szName,CHAR_getChar(chara_index,CHAR_NAME)); //人物名称 - strcpy(cdkey,CHAR_getChar(chara_index,CHAR_CDKEY)); //帐号 + strcpy(szName,CHAR_getChar(chara_index,CHAR_NAME)); //浜虹墿鍚嶇О + strcpy(cdkey,CHAR_getChar(chara_index,CHAR_CDKEY)); //甯愬彿 //CHAR_getChar( chara_index, CHAR_NAME); - snprintf( line, sizeof( line), "第%d个找到[%s]的帐号是[%s]",getnum,szName,cdkey); + snprintf( line, sizeof( line), "绗%d涓壘鍒癧%s]鐨勫笎鍙锋槸[%s]",getnum,szName,cdkey); CHAR_talkToCli( charaindex, -1,line, CHAR_COLORRED); - print("第%d个找到[%s]的帐号是[%s]\n",getnum,szName,cdkey); + print("绗%d涓壘鍒癧%s]鐨勫笎鍙锋槸[%s]\n",getnum,szName,cdkey); } } } } } - if(!getnum) CHAR_talkToCli( charaindex, -1, " 围内没有人", CHAR_COLORYELLOW); + if(!getnum) CHAR_talkToCli( charaindex, -1, " 鍥村唴娌℃湁浜", CHAR_COLORYELLOW); } #endif @@ -4785,34 +4785,34 @@ void CHAR_CHAT_DEBUG_newsend(int charindex ,char *message) unsigned int MAX_USER=0; MAX_USER=getFdnum(); if( strlen(message)==0){ - sprintf(buf,"%s","参数不正确-> FLOOR X Y 无/要说的话"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-> FLOOR X Y 鏃/瑕佽鐨勮瘽"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } easyGetTokenFromString( message , 1 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->地图编号"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->鍦板浘缂栧彿"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } fl=atoi( token ); easyGetTokenFromString( message , 2 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->X座标 "); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->X搴ф爣 "); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } x = atoi( token ); easyGetTokenFromString( message , 3 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->Y座标 "); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->Y搴ф爣 "); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } y = atoi( token ); easyGetTokenFromString( message , 4 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->帐号"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->甯愬彿"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } @@ -4828,7 +4828,7 @@ void CHAR_CHAT_DEBUG_newsend(int charindex ,char *message) fd_charaindex = CONNECT_getCharaindex( i ); CHAR_warpToSpecificPoint(fd_charaindex, fl, x, y); snprintf( line, sizeof( line), - "把 name:%s account=%s 传送到 FL=%d X=%d Y=%d say:%s", + "鎶 name:%s account=%s 浼犻佸埌 FL=%d X=%d Y=%d say:%s", szName,cdkey,fl,x,y,say); CHAR_talkToCli( charindex, -1 , line , CHAR_COLORWHITE ); if(strlen(say)){ @@ -4851,52 +4851,52 @@ void CHAR_CHAT_DEBUG_supersend(int charaindex ,char *message) char say[128]; int tofl,toX,toY,i,j,k,area; OBJECT object; - int fl,x,y,fd,fd_charaindex; //帐号所在位置 + int fl,x,y,fd,fd_charaindex; //甯愬彿鎵鍦ㄤ綅缃 unsigned int MAX_USER=0; int sendnum = 0; int o,chara_index; if( strlen(message)==0){ - sprintf(buf,"%s","参数不正确-> FLOOR X Y 帐号 格数 无/要说的话"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-> FLOOR X Y 甯愬彿 鏍兼暟 鏃/瑕佽鐨勮瘽"); CHAR_talkToCli( charaindex, -1,buf, CHAR_COLORWHITE); return; } easyGetTokenFromString( message , 1 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->地图编号"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->鍦板浘缂栧彿"); CHAR_talkToCli( charaindex, -1,buf, CHAR_COLORWHITE); return; } tofl=atoi( token ); easyGetTokenFromString( message , 2 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->X座标 "); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->X搴ф爣 "); CHAR_talkToCli( charaindex, -1,buf, CHAR_COLORWHITE); return; } toX = atoi( token ); easyGetTokenFromString( message , 3 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确-->Y座标 "); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->Y搴ф爣 "); CHAR_talkToCli( charaindex, -1,buf, CHAR_COLORWHITE); return; } toY = atoi( token ); easyGetTokenFromString( message , 4 , cdkeytoken , sizeof(cdkeytoken)); if( strlen(cdkeytoken)==0){ - sprintf(buf,"%s","参数不正确-->帐号"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->甯愬彿"); CHAR_talkToCli( charaindex, -1,buf, CHAR_COLORWHITE); return; } easyGetTokenFromString( message , 5 , token, sizeof(token)); area = atoi( token ); if( strlen(token)==0 || area <= 0 || area > 3 ){ - sprintf(buf,"%s","参数不正确-->格数(1~3)"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-->鏍兼暟(1~3)"); CHAR_talkToCli( charaindex, -1,buf, CHAR_COLORWHITE); return; } - easyGetTokenFromString( message , 6 , say , sizeof(say)); //说话 + easyGetTokenFromString( message , 6 , say , sizeof(say)); //璇磋瘽 MAX_USER=getFdnum(); for(k=0;k=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setWorkInt( i, CHAR_WORKFONTSIZE, atoi( fsize )); //CHAR_send_P_StatusString( charaindex , CHAR_P_STRING_LV); - sprintf( token, "[GM]%s把你的字体设置为%d!", CHAR_getChar( charaindex, CHAR_NAME),atoi(fsize)); + sprintf( token, "[GM]%s鎶婁綘鐨勫瓧浣撹缃负%d!", CHAR_getChar( charaindex, CHAR_NAME),atoi(fsize)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "玩家%s的字体设置为%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(fsize)); + sprintf( token, "鐜╁%s鐨勫瓧浣撹缃负%d!", CHAR_getChar( i, CHAR_NAME),(int)atoi(fsize)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setWorkInt( charaindex, CHAR_WORKFONTSIZE, atoi( fsize )); - sprintf( token, "字体设置为%d!",(int)atoi(fsize)); + sprintf( token, "瀛椾綋璁剧疆涓%d!",(int)atoi(fsize)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); } } @@ -4988,14 +4988,14 @@ void CHAR_CHAT_DEBUG_fsize( int charaindex, char* message ) void CHAR_CHAT_DEBUG_rejobdaily(int charaindex ,char *message) { print("Reading Jobdaily File..."); - CHAR_talkToCli( charaindex, -1, "重新读取任务日志列表...", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "閲嶆柊璇诲彇浠诲姟鏃ュ織鍒楄〃...", CHAR_COLORYELLOW); if(!LoadJobdailyfile()){ - CHAR_talkToCli( charaindex, -1, "读取失败", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "璇诲彇澶辫触", CHAR_COLORYELLOW); print("fail!!\n"); return; } print("done\n"); - CHAR_talkToCli( charaindex, -1, "读取完成", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1, "璇诲彇瀹屾垚", CHAR_COLORYELLOW); } #endif @@ -5019,7 +5019,7 @@ void CHAR_CHAT_DEBUG_MM( int charaindex , char *message ) if(index==1)enemyid=1479; else if(index==2)enemyid=2547; else{ - CHAR_talkToCli( charaindex, -1, "目前只能制作1/2代玛蕾菲雅!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "鐩墠鍙兘鍒朵綔1/2浠g帥钑捐彶闆!", CHAR_COLORYELLOW ); return;} // if(strlen(cdkey)>0){ @@ -5032,7 +5032,7 @@ void CHAR_CHAT_DEBUG_MM( int charaindex , char *message ) // } // if (j>=playernum) // { -// CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); +// CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); // return; // } // enemynum = ENEMY_getEnemyNum(); @@ -5045,11 +5045,11 @@ void CHAR_CHAT_DEBUG_MM( int charaindex , char *message ) // // ret = ENEMY_createPetFromEnemyIndex( j, i); // if( !CHAR_CHECKINDEX( ret))return; -// snprintf( token,sizeof( token), "制作极品%d代玛蕾菲雅成功!",index); +// snprintf( token,sizeof( token), "鍒朵綔鏋佸搧%d浠g帥钑捐彶闆呮垚鍔!",index); // CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); -// sprintf( token, "[GM]%s制作了只极品%d代玛蕾菲雅给你!", CHAR_getChar( charaindex, CHAR_NAME),index); +// sprintf( token, "[GM]%s鍒朵綔浜嗗彧鏋佸搧%d浠g帥钑捐彶闆呯粰浣!", CHAR_getChar( charaindex, CHAR_NAME),index); // CHAR_talkToCli( j, -1, token, CHAR_COLORYELLOW ); -// sprintf( token, "给玩家%s制作了只极品%d代玛蕾菲雅!", CHAR_getChar( j, CHAR_NAME),index); +// sprintf( token, "缁欑帺瀹%s鍒朵綔浜嗗彧鏋佸搧%d浠g帥钑捐彶闆!", CHAR_getChar( j, CHAR_NAME),index); // CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); // for( i = 0; i < CHAR_MAXPETHAVE; i ++ ){ // if( CHAR_getCharPet( j, i ) == ret )break; @@ -5064,7 +5064,7 @@ void CHAR_CHAT_DEBUG_MM( int charaindex , char *message ) // int k; // LevelUpPoint = ( work[3]<< 24) + ( work[0]<< 16) + ( work[1]<< 8) + ( work[2]<< 0); // CHAR_setInt( ret, CHAR_ALLOCPOINT, LevelUpPoint); -// for( k = 1; k < 79; k ++ ){ //升级 +// for( k = 1; k < 79; k ++ ){ //鍗囩骇 // LevelUpPoint = ( work[3]<< 24) + ( work[0]<< 16) + ( work[1]<< 8) + ( work[2]<< 0); // CHAR_setInt( ret, CHAR_ALLOCPOINT, LevelUpPoint); // CHAR_PetLevelUp( ret ); @@ -5096,7 +5096,7 @@ void CHAR_CHAT_DEBUG_MM( int charaindex , char *message ) ret = ENEMY_createPetFromEnemyIndex(charaindex, i); if( !CHAR_CHECKINDEX( ret))return; - snprintf( token,sizeof( token), "制作极品%d代玛蕾菲雅成功!",index); + snprintf( token,sizeof( token), "鍒朵綔鏋佸搧%d浠g帥钑捐彶闆呮垚鍔!",index); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); for( i = 0; i < CHAR_MAXPETHAVE; i ++ ){ @@ -5108,7 +5108,7 @@ void CHAR_CHAT_DEBUG_MM( int charaindex , char *message ) int k; LevelUpPoint = ( work[3]<< 24) + ( work[0]<< 16) + ( work[1]<< 8) + ( work[2]<< 0); CHAR_setInt( ret, CHAR_ALLOCPOINT, LevelUpPoint); - for( k = 1; k < 79; k ++ ){ //升级 + for( k = 1; k < 79; k ++ ){ //鍗囩骇 LevelUpPoint = ( work[3]<< 24) + ( work[0]<< 16) + ( work[1]<< 8) + ( work[2]<< 0); CHAR_setInt( ret, CHAR_ALLOCPOINT, LevelUpPoint); CHAR_PetLevelUp( ret ); @@ -5151,12 +5151,12 @@ void CHAR_CHAT_DEBUG_Sendto( int charaindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } if(!strcmp(CHAR_getChar(i,CHAR_CDKEY),cdkey)) { - CHAR_DischargePartyNoMsg( charaindex);//解散团队 + CHAR_DischargePartyNoMsg( charaindex);//瑙f暎鍥㈤槦 int floor, x, y; char token[256]; floor = CHAR_getInt( i, CHAR_FLOOR); @@ -5164,7 +5164,7 @@ void CHAR_CHAT_DEBUG_Sendto( int charaindex , char *message ) y = CHAR_getInt( i, CHAR_Y); CHAR_warpToSpecificPoint( charaindex, floor, x, y ); - sprintf( token, "已传送到玩家%s身边!", CHAR_getChar( i, CHAR_NAME)); + sprintf( token, "宸蹭紶閫佸埌鐜╁%s韬竟锛", CHAR_getChar( i, CHAR_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW ); return; } @@ -5194,21 +5194,21 @@ void CHAR_CHAT_DEBUG_GMFUNCTION( int charindex , char *message ) } if (i>=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } CHAR_setChar( i , CHAR_GMFUNCTION, gmfunction ); CHAR_setInt( i , CHAR_GMTIME, atoi( gmtime ) ); - sprintf( token, "[GM]%s给你使用%s权限%d次!",CHAR_getChar( charindex, CHAR_NAME), gmfunction, atoi( gmtime )); + sprintf( token, "[GM]%s缁欎綘浣跨敤%s鏉冮檺%d娆!",CHAR_getChar( charindex, CHAR_NAME), gmfunction, atoi( gmtime )); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "相关使用请查看[help %s]无需GM密码!",CHAR_getChar( charindex, CHAR_GMFUNCTION)); + sprintf( token, "鐩稿叧浣跨敤璇锋煡鐪媅help %s]鏃犻渶GM瀵嗙爜!",CHAR_getChar( charindex, CHAR_GMFUNCTION)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "给玩家%s使用%s权限%d次!", CHAR_getChar( i, CHAR_NAME), gmfunction, atoi( gmtime )); + sprintf( token, "缁欑帺瀹%s浣跨敤%s鏉冮檺%d娆!", CHAR_getChar( i, CHAR_NAME), gmfunction, atoi( gmtime )); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ CHAR_setChar( charindex , CHAR_GMFUNCTION, gmfunction ); CHAR_setInt( charindex , CHAR_GMTIME, atoi( gmtime ) ); - sprintf( token, "设置使用%s权限%d次!", gmfunction,atoi( gmtime )); + sprintf( token, "璁剧疆浣跨敤%s鏉冮檺%d娆!", gmfunction,atoi( gmtime )); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -5227,7 +5227,7 @@ void CHAR_CHAT_DEBUG_SETRIDE( int charindex , char *message ) easyGetTokenFromString( message , 2 , cdkey, sizeof(cdkey)); if(rideindex<1 || rideindex>12) { - CHAR_talkToCli( charindex, -1,"骑宠编号必须为1~12", CHAR_COLORRED ); + CHAR_talkToCli( charindex, -1,"楠戝疇缂栧彿蹇呴』涓1~12", CHAR_COLORRED ); return; } typedef struct{ @@ -5235,18 +5235,18 @@ void CHAR_CHAT_DEBUG_SETRIDE( int charindex , char *message ) int Code; }tagNewRideCode; tagNewRideCode NewRides[12]={ - { "帖拉所伊朵", RIDE_PET0}, - { "玛恩摩洛斯", RIDE_PET1}, - { "朵拉比斯", RIDE_PET2}, - { "拉奇鲁哥", RIDE_PET3}, - { "扬奇洛斯", RIDE_PET4}, - { "卡达鲁卡斯", RIDE_PET5}, - { "卡卡金宝", RIDE_PET6}, - { "格尔格", RIDE_PET7}, - { "左迪洛斯", RIDE_PET8}, - { "巴朵兰恩", RIDE_PET9}, - { "史卡鲁", RIDE_PET10}, - { "罗多克雷", RIDE_PET11} + { "甯栨媺鎵浼婃湹", RIDE_PET0}, + { "鐜涙仼鎽╂礇鏂", RIDE_PET1}, + { "鏈垫媺姣旀柉", RIDE_PET2}, + { "鎷夊椴佸摜", RIDE_PET3}, + { "鎵娲涙柉", RIDE_PET4}, + { "鍗¤揪椴佸崱鏂", RIDE_PET5}, + { "鍗″崱閲戝疂", RIDE_PET6}, + { "鏍煎皵鏍", RIDE_PET7}, + { "宸﹁开娲涙柉", RIDE_PET8}, + { "宸存湹鍏版仼", RIDE_PET9}, + { "鍙插崱椴", RIDE_PET10}, + { "缃楀鍏嬮浄", RIDE_PET11} }; if(strlen(cdkey)>0){ for(i=0;i=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } int LRCode = CHAR_getInt( i, CHAR_LOWRIDEPETS); @@ -5266,16 +5266,16 @@ void CHAR_CHAT_DEBUG_SETRIDE( int charindex , char *message ) LRCode = LRCode|NewRides[rideindex-1].Code; CHAR_setInt( i, CHAR_LOWRIDEPETS, LRCode); - sprintf( token, "[GM]%s给你骑乘骑宠%s的资格!",CHAR_getChar( charindex, CHAR_NAME), NewRides[rideindex-1].name); + sprintf( token, "[GM]%s缁欎綘楠戜箻楠戝疇%s鐨勮祫鏍!",CHAR_getChar( charindex, CHAR_NAME), NewRides[rideindex-1].name); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "给玩家%s骑乘骑宠%s的资格!", CHAR_getChar( i, CHAR_NAME), NewRides[rideindex-1].name); + sprintf( token, "缁欑帺瀹%s楠戜箻楠戝疇%s鐨勮祫鏍!", CHAR_getChar( i, CHAR_NAME), NewRides[rideindex-1].name); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ int LRCode = CHAR_getInt( charindex, CHAR_LOWRIDEPETS); LRCode = LRCode|NewRides[rideindex-1].Code; CHAR_setInt( charindex, CHAR_LOWRIDEPETS, LRCode); - sprintf( token, "设置骑乘骑宠%s的资格!", NewRides[rideindex-1].name); + sprintf( token, "璁剧疆楠戜箻楠戝疇%s鐨勮祫鏍!", NewRides[rideindex-1].name); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } CHAR_sendStatusString( charindex, "x"); @@ -5293,7 +5293,7 @@ void CHAR_CHAT_DEBUG_MVRIDE( int charindex , char *message ) easyGetTokenFromString( message , 2 , cdkey, sizeof(cdkey)); if(rideindex<1 || rideindex>12) { - CHAR_talkToCli( charindex, -1,"骑宠编号必须为1~12", CHAR_COLORRED ); + CHAR_talkToCli( charindex, -1,"楠戝疇缂栧彿蹇呴』涓1~12", CHAR_COLORRED ); return; } typedef struct{ @@ -5301,18 +5301,18 @@ void CHAR_CHAT_DEBUG_MVRIDE( int charindex , char *message ) int Code; }tagNewRideCode; tagNewRideCode NewRides[]={ - { "帖拉所伊朵", RIDE_PET0}, - { "玛恩摩洛斯", RIDE_PET1}, - { "朵拉比斯", RIDE_PET2}, - { "拉奇鲁哥", RIDE_PET3}, - { "扬奇洛斯", RIDE_PET4}, - { "卡达鲁卡斯", RIDE_PET5}, - { "卡卡金宝", RIDE_PET6}, - { "格尔格", RIDE_PET7}, - { "左迪洛斯", RIDE_PET8}, - { "巴朵兰恩", RIDE_PET9}, - { "史卡鲁", RIDE_PET10}, - { "罗多克雷", RIDE_PET11} + { "甯栨媺鎵浼婃湹", RIDE_PET0}, + { "鐜涙仼鎽╂礇鏂", RIDE_PET1}, + { "鏈垫媺姣旀柉", RIDE_PET2}, + { "鎷夊椴佸摜", RIDE_PET3}, + { "鎵娲涙柉", RIDE_PET4}, + { "鍗¤揪椴佸崱鏂", RIDE_PET5}, + { "鍗″崱閲戝疂", RIDE_PET6}, + { "鏍煎皵鏍", RIDE_PET7}, + { "宸﹁开娲涙柉", RIDE_PET8}, + { "宸存湹鍏版仼", RIDE_PET9}, + { "鍙插崱椴", RIDE_PET10}, + { "缃楀鍏嬮浄", RIDE_PET11} }; if(strlen(cdkey)>0){ for(i=0;i=playernum) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } int LRCode = CHAR_getInt( i, CHAR_LOWRIDEPETS); @@ -5332,16 +5332,16 @@ void CHAR_CHAT_DEBUG_MVRIDE( int charindex , char *message ) LRCode = LRCode^NewRides[rideindex-1].Code; CHAR_setInt( i, CHAR_LOWRIDEPETS, LRCode); - sprintf( token, "[GM]%s移除你骑乘骑宠%s的资格!",CHAR_getChar( charindex, CHAR_NAME), NewRides[rideindex-1].name); + sprintf( token, "[GM]%s绉婚櫎浣犻獞涔橀獞瀹%s鐨勮祫鏍!",CHAR_getChar( charindex, CHAR_NAME), NewRides[rideindex-1].name); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "移除玩家%s骑乘骑宠%s的资格!!", CHAR_getChar( i, CHAR_NAME), NewRides[rideindex-1].name); + sprintf( token, "绉婚櫎鐜╁%s楠戜箻楠戝疇%s鐨勮祫鏍!!", CHAR_getChar( i, CHAR_NAME), NewRides[rideindex-1].name); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); }else{ int LRCode = CHAR_getInt( charindex, CHAR_LOWRIDEPETS); LRCode = LRCode^NewRides[rideindex-1].Code; CHAR_setInt( charindex, CHAR_LOWRIDEPETS, LRCode); - sprintf( token, "移除骑乘骑宠%s的资格!", NewRides[rideindex-1].name); + sprintf( token, "绉婚櫎楠戜箻楠戝疇%s鐨勮祫鏍!", NewRides[rideindex-1].name); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } CHAR_sendStatusString( charindex, "x"); @@ -5379,7 +5379,7 @@ void CHAR_CHAT_DEBUG_SHOWIP( int charindex , char *message ) } if (i>=MAX_USER) { - CHAR_talkToCli( charindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } @@ -5392,7 +5392,7 @@ void CHAR_CHAT_DEBUG_SHOWIP( int charindex , char *message ) b=(ip % 0x100); ip=ip / 0x100; c=(ip % 0x100); ip=ip / 0x100; d=(ip % 0x100); - sprintf( token, "账号%s的IP是 %d.%d.%d.%d",message, a,b,c,d); + sprintf( token, "璐﹀彿%s鐨処P鏄 %d.%d.%d.%d",message, a,b,c,d); CHAR_talkToCli( charindex, -1,token, CHAR_COLORYELLOW ); } } @@ -5412,11 +5412,11 @@ void CHAR_CHAT_DEBUG_SET_FAME( int charaindex, char* message ) } } if(i >= iPlayerNum){ - CHAR_talkToCli(charaindex,-1,"找不到这名玩家",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"鎵句笉鍒拌繖鍚嶇帺瀹",CHAR_COLORYELLOW); return; } CHAR_setInt(i,CHAR_FAME,id); - sprintf(szMsg,"目前声望值: %d",CHAR_getInt(i,CHAR_FAME)/100); + sprintf(szMsg,"鐩墠澹版湜鍊: %d",CHAR_getInt(i,CHAR_FAME)/100); CHAR_talkToCli(charaindex,-1,szMsg,CHAR_COLORYELLOW); sprintf(buf,"%d",id); fd = getfdFromCharaIndex(i); @@ -5436,12 +5436,12 @@ void CHAR_CHAT_DEBUG_SET_AUTOPK( int charaindex, char* message ) easyGetTokenFromString( message , 1 , buf1, sizeof(buf1)); easyGetTokenFromString( message , 2 , buf2, sizeof(buf2)); jobautopk = atoi(buf1); - sprintf(szMsg,"已设置PK时间为%d分钟!",atoi(buf2)); + sprintf(szMsg,"宸茶缃甈K鏃堕棿涓%d鍒嗛挓!",atoi(buf2)); CHAR_talkToCli(charaindex,-1,szMsg,CHAR_COLORYELLOW); AutoPk_PKTimeSet(atoi(buf2)); AutoPk_GetAwardStr(); #else - sprintf(szMsg,"已设置PK时间为%d分钟!",atoi(message)); + sprintf(szMsg,"宸茶缃甈K鏃堕棿涓%d鍒嗛挓!",atoi(message)); CHAR_talkToCli(charaindex,-1,szMsg,CHAR_COLORYELLOW); AutoPk_PKTimeSet(atoi(message)); AutoPk_GetAwardStr(); @@ -5489,39 +5489,39 @@ void CHAR_CHAT_DEBUG_Trans( int charaindex, char *message) } if (i>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } Trans=CHAR_getInt(i,CHAR_TRANSMIGRATION)+1; if(Trans>7 || CHAR_getInt(i,CHAR_LV)<80){ - sprintf( token, "由于你已七转或等级小于80级,所以[GM]%s为你转生失败!", CHAR_getChar( charaindex, CHAR_NAME)); + sprintf( token, "鐢变簬浣犲凡涓冭浆鎴栫瓑绾у皬浜80绾э紝鎵浠GM]%s涓轰綘杞敓澶辫触!", CHAR_getChar( charaindex, CHAR_NAME)); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "由于玩家%s已七转或等级小于80级,所以%d转生失败!", CHAR_getChar( i, CHAR_NAME),Trans); + sprintf( token, "鐢变簬鐜╁%s宸蹭竷杞垨绛夌骇灏忎簬80绾э紝鎵浠%d杞敓澶辫触!", CHAR_getChar( i, CHAR_NAME),Trans); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); return; }else{ CHAR_sendCToArroundCharacter( CHAR_getWorkInt( i, CHAR_WORKOBJINDEX )); - sprintf( token, "[GM]%s为你转生%d转!", CHAR_getChar( charaindex, CHAR_NAME),Trans); + sprintf( token, "[GM]%s涓轰綘杞敓%d杞!", CHAR_getChar( charaindex, CHAR_NAME),Trans); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "为玩家%s转生为%d转!", CHAR_getChar( i, CHAR_NAME),Trans); + sprintf( token, "涓虹帺瀹%s杞敓涓%d杞!", CHAR_getChar( i, CHAR_NAME),Trans); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); charaindex=i; } }else{ Trans=CHAR_getInt(charaindex,CHAR_TRANSMIGRATION)+1; if(Trans>7 || CHAR_getInt(charaindex,CHAR_LV)<80){ - sprintf( token, "由于你已七转或等级小于80级,所以转生失败!", CHAR_getChar( charaindex, CHAR_NAME)); + sprintf( token, "鐢变簬浣犲凡涓冭浆鎴栫瓑绾у皬浜80绾э紝鎵浠ヨ浆鐢熷け璐!", CHAR_getChar( charaindex, CHAR_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORYELLOW ); return; }else{ CHAR_sendCToArroundCharacter( CHAR_getWorkInt( charaindex, CHAR_WORKOBJINDEX )); - sprintf( token, "为自己转生为%d转!",Trans); + sprintf( token, "涓鸿嚜宸辫浆鐢熶负%d杞!",Trans); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); } } -#ifdef _ADD_POOL_ITEM // WON ADD 增加可寄放的道具 - int tran_pool_item[5] = { 4, 4, 4, 4, 4 }; // 增加的道具寄放数 - int tran_pool_pet[5] = { 2, 2, 2, 2, 2}; // 增加的宠物寄放数 +#ifdef _ADD_POOL_ITEM // WON ADD 澧炲姞鍙瘎鏀剧殑閬撳叿 + int tran_pool_item[5] = { 4, 4, 4, 4, 4 }; // 澧炲姞鐨勯亾鍏峰瘎鏀炬暟 + int tran_pool_pet[5] = { 2, 2, 2, 2, 2}; // 澧炲姞鐨勫疇鐗╁瘎鏀炬暟 int j,item_sum=0, pet_sum=0; for(j=0; j<5 ;j++){ @@ -5529,8 +5529,8 @@ void CHAR_CHAT_DEBUG_Trans( int charaindex, char *message) pet_sum += tran_pool_pet[j]; } - item_sum += 10; // 限制最大的寄道具数 - pet_sum += 5; // 限制最大的寄宠数 + item_sum += 10; // 闄愬埗鏈澶х殑瀵勯亾鍏锋暟 + pet_sum += 5; // 闄愬埗鏈澶х殑瀵勫疇鏁 #endif NPC_TransmigrationStatus(charaindex, charaindex, work); @@ -5567,19 +5567,19 @@ void CHAR_CHAT_DEBUG_fusionbeit( int charaindex, char* message ) } if (i>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } petindex = CHAR_getCharPet( i, petid); if( !CHAR_CHECKINDEX( petindex) ){ - sprintf( token, "玩家%s宠物栏%d上没宠物!", CHAR_getChar( i, CHAR_NAME),petid+1); + sprintf( token, "鐜╁%s瀹犵墿鏍%d涓婃病瀹犵墿!", CHAR_getChar( i, CHAR_NAME),petid+1); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); return; } CHAR_setInt( petindex, CHAR_FUSIONBEIT ,0); - sprintf( token, "[GM]%s为你身上的第%d只宠去掉融合宠限制!", CHAR_getChar( charaindex, CHAR_NAME),petid+1); + sprintf( token, "[GM]%s涓轰綘韬笂鐨勭%d鍙疇鍘绘帀铻嶅悎瀹犻檺鍒!", CHAR_getChar( charaindex, CHAR_NAME),petid+1); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "为玩家%s身上的第%d只宠去掉融合宠限制!", CHAR_getChar( i, CHAR_NAME),petid+1); + sprintf( token, "涓虹帺瀹%s韬笂鐨勭%d鍙疇鍘绘帀铻嶅悎瀹犻檺鍒!", CHAR_getChar( i, CHAR_NAME),petid+1); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); snprintf( token, sizeof( token ), "K%d", petid ); CHAR_sendStatusString( i, token ); @@ -5589,12 +5589,12 @@ void CHAR_CHAT_DEBUG_fusionbeit( int charaindex, char* message ) }else{ petindex = CHAR_getCharPet( charaindex, petid); if( !CHAR_CHECKINDEX( petindex) ){ - sprintf( token, "你的宠物栏%d上没宠物!", petid+1); + sprintf( token, "浣犵殑瀹犵墿鏍%d涓婃病瀹犵墿!", petid+1); CHAR_talkToCli( i, -1, token, CHAR_COLORYELLOW ); return; } CHAR_setInt( petindex, CHAR_FUSIONBEIT ,0); - sprintf( token, "将身上的第%d只宠去掉融合宠限制!", petid+1); + sprintf( token, "灏嗚韩涓婄殑绗%d鍙疇鍘绘帀铻嶅悎瀹犻檺鍒!", petid+1); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); CHAR_complianceParameter( petindex ); snprintf( token, sizeof( token ), "K%d", petid ); @@ -5640,7 +5640,7 @@ void CHAR_CHAT_DEBUG_petmakecf( int charaindex, char* message ) } if (j>=playernum) { - CHAR_talkToCli( charaindex, -1, "此账号不在线~", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "姝よ处鍙蜂笉鍦ㄧ嚎~", CHAR_COLORYELLOW ); return; } enemynum = ENEMY_getEnemyNum(); @@ -5654,9 +5654,9 @@ void CHAR_CHAT_DEBUG_petmakecf( int charaindex, char* message ) int petindex = ENEMY_createPetFromEnemyIndex( j, i); if( !CHAR_CHECKINDEX( petindex))return; CHAR_setInt(petindex,CHAR_VARIABLEAI,10000); - sprintf( token, "[GM]%s制作了%s给你!", CHAR_getChar( charaindex, CHAR_NAME),ENEMY_getChar( i, ENEMY_NAME)); + sprintf( token, "[GM]%s鍒朵綔浜%s缁欎綘!", CHAR_getChar( charaindex, CHAR_NAME),ENEMY_getChar( i, ENEMY_NAME)); CHAR_talkToCli( j, -1, token, CHAR_COLORYELLOW ); - sprintf( token, "给玩家%s的%s制作成功!", CHAR_getChar( j, CHAR_NAME),ENEMY_getChar( i, ENEMY_NAME)); + sprintf( token, "缁欑帺瀹%s鐨%s鍒朵綔鎴愬姛!", CHAR_getChar( j, CHAR_NAME),ENEMY_getChar( i, ENEMY_NAME)); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORYELLOW ); for( i = 0; i < CHAR_MAXPETHAVE; i ++ ){ if( CHAR_getCharPet( j, i ) == petindex )break; @@ -5734,7 +5734,7 @@ void CHAR_CHAT_DEBUG_petmakecf( int charaindex, char* message ) level = level - CHAR_getInt( petindex, CHAR_LV ); if( level > 0 ){ int k; - for( k = 1; k <= level; k ++ ){ //升级 + for( k = 1; k <= level; k ++ ){ //鍗囩骇 CHAR_PetLevelUp( petindex ); CHAR_PetAddVariableAi( petindex, AI_FIX_PETLEVELUP ); CHAR_setInt( petindex, CHAR_LV, CHAR_getInt( petindex, CHAR_LV) +1 ); @@ -5759,7 +5759,7 @@ void CHAR_CHAT_DEBUG_petmakecf( int charaindex, char* message ) int petindex = ENEMY_createPetFromEnemyIndex(charaindex, i); if( !CHAR_CHECKINDEX( petindex))return; CHAR_setInt(petindex,CHAR_VARIABLEAI,10000); - snprintf( token,sizeof( token), "%s制作成功!",ENEMY_getChar( i, ENEMY_NAME)); + snprintf( token,sizeof( token), "%s鍒朵綔鎴愬姛!",ENEMY_getChar( i, ENEMY_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); for( i = 0; i < CHAR_MAXPETHAVE; i ++ ){ @@ -5834,7 +5834,7 @@ void CHAR_CHAT_DEBUG_petmakecf( int charaindex, char* message ) level = level - CHAR_getInt( petindex, CHAR_LV ); if( level > 0 ){ int k; - for( k = 1; k <= level; k ++ ){ //升级 + for( k = 1; k <= level; k ++ ){ //鍗囩骇 CHAR_PetLevelUp( petindex ); CHAR_PetAddVariableAi( petindex, AI_FIX_PETLEVELUP ); CHAR_setInt( petindex, CHAR_LV, CHAR_getInt( petindex, CHAR_LV) +1 ); @@ -5907,7 +5907,7 @@ void CHAR_CHAT_DEBUG_petmakeabi( int charaindex, char* message ) ret = ENEMY_createPetFromEnemyIndex(charaindex, i); if( !CHAR_CHECKINDEX( ret))return; - snprintf( token,sizeof( token), "%s制作成功!",ENEMY_getChar( i, ENEMY_NAME)); + snprintf( token,sizeof( token), "%s鍒朵綔鎴愬姛!",ENEMY_getChar( i, ENEMY_NAME)); CHAR_talkToCli( charaindex, -1, token, CHAR_COLORWHITE); for( i = 0; i < CHAR_MAXPETHAVE; i ++ ){ @@ -5967,9 +5967,9 @@ void CHAR_CHAT_DEBUG_LUA_CLOSE( int charaindex, char* message ) void CHAR_CHAT_UnTextReload( int charaindex, char* message ) { if(LoadUnText()==TRUE){ - CHAR_talkToCli( charaindex, -1, "重新读取说话禁止关键字成功!", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "閲嶆柊璇诲彇璇磋瘽绂佹鍏抽敭瀛楁垚鍔燂紒", CHAR_COLORRED); }else{ - CHAR_talkToCli( charaindex, -1, "重新读取说话禁止关键字失败!", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "閲嶆柊璇诲彇璇磋瘽绂佹鍏抽敭瀛楀け璐ワ紒", CHAR_COLORRED); } } #endif @@ -6042,13 +6042,13 @@ void CHAR_CHAT_DEBUG_jilu( int charindex, char* message ) unsigned int MAX_USER=0; int fd_charaindex; if( strlen(message)==0){ - sprintf(buf,"%s","参数不正确-> 帐号"); + sprintf(buf,"%s","鍙傛暟涓嶆纭-> 甯愬彿"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } easyGetTokenFromString( message , 1 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确"); + sprintf(buf,"%s","鍙傛暟涓嶆纭"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } @@ -6061,7 +6061,7 @@ void CHAR_CHAT_DEBUG_jilu( int charindex, char* message ) if(strcmp(cdkey,token)==0){ fd_charaindex = CONNECT_getCharaindex( i ); CHAR_setWorkInt(fd_charaindex,CHAR_WORKJILU,1); - sprintf(kcmsg,"%s 已记录封包。",cdkey); + sprintf(kcmsg,"%s 宸茶褰曞皝鍖呫",cdkey); CHAR_talkToCli( charindex, -1,kcmsg, CHAR_COLORWHITE); find=TRUE; break; @@ -6080,14 +6080,14 @@ void CHAR_CHAT_DEBUG_setfmpk( int charindex, char* message ) int fmid; easyGetTokenFromString( message , 1 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确"); + sprintf(buf,"%s","鍙傛暟涓嶆纭"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } fmid = atoi(token); easyGetTokenFromString( message , 2 , token, sizeof(token)); if( strlen(token)==0){ - sprintf(buf,"%s","参数不正确"); + sprintf(buf,"%s","鍙傛暟涓嶆纭"); CHAR_talkToCli( charindex, -1,buf, CHAR_COLORWHITE); return; } @@ -6103,7 +6103,7 @@ void CHAR_CHAT_DEBUG_MMCDKEY( int charaindex, char* message ) char cdkey[CDKEYLEN]; if(strlen(message)<1){ for(i=0;i<10;i++){ - sprintf(token,"第%d个账号:%s",i+1,mmcdkey[i]); + sprintf(token,"绗%d涓处鍙凤細%s",i+1,mmcdkey[i]); CHAR_talkToCli(charaindex,-1,token,CHAR_COLORYELLOW); } }else{ @@ -6133,7 +6133,7 @@ void CHAR_CHAT_DEBUG_MMCDKEY( int charaindex, char* message ) if(getStringFromIndexWithDelim(randtypetime,"-", 1, tempbuff, sizeof(tempbuff))== TRUE) wrongnum = atoi(tempbuff); } - sprintf(token,"玩家 %s 距上次答题时间为%d秒,当前错误次数是%d。",CHAR_getChar(fd_charaindex,CHAR_NAME),mmtime,wrongnum); + sprintf(token,"鐜╁ %s 璺濅笂娆$瓟棰樻椂闂翠负%d绉掞紝褰撳墠閿欒娆℃暟鏄%d銆",CHAR_getChar(fd_charaindex,CHAR_NAME),mmtime,wrongnum); CHAR_talkToCli( charaindex, -1,token, CHAR_COLORRED); break; } @@ -6145,9 +6145,9 @@ void CHAR_CHAT_DEBUG_MMCDKEY( int charaindex, char* message ) void CHAR_CHAT_DEBUG_RELOADRIDE( int charaindex, char* message ) { if(CHAR_Ride_CF_init()==TRUE){ - CHAR_talkToCli( charaindex, -1,"重读RIDE成功。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1,"閲嶈RIDE鎴愬姛銆", CHAR_COLORYELLOW); }else{ - CHAR_talkToCli( charaindex, -1,"重读RIDE失败。", CHAR_COLORYELLOW); + CHAR_talkToCli( charaindex, -1,"閲嶈RIDE澶辫触銆", CHAR_COLORYELLOW); } } @@ -6157,19 +6157,19 @@ void CHAR_CHAT_DEBUG_RELOADRIDE( int charaindex, char* message ) void CHAR_CHAT_DEBUG_ReLoadLua( int charaindex, char* message ) { ReLoadAllbluesLUA(message); - CHAR_talkToCli( charaindex, -1, "更新LUA完毕~", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "鏇存柊LUA瀹屾瘯~", CHAR_COLORRED); } void CHAR_CHAT_DEBUG_NewLoadLua( int charaindex, char* message ) { NewLoadAllbluesLUA(message); - CHAR_talkToCli( charaindex, -1, "添加LUA完毕~", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "娣诲姞LUA瀹屾瘯~", CHAR_COLORRED); } #endif #ifdef _CARD_PRODUCTION /** - * 点卡制作 + * 鐐瑰崱鍒朵綔 */ void CHAR_CHAT_DEBUG_card(int charindex ,char *message) { @@ -6180,15 +6180,15 @@ void CHAR_CHAT_DEBUG_card(int charindex ,char *message) number = atoi(num); cos = atoi(costval); if(number <= 0 ) { - CHAR_talkToCli( charindex, -1, "充值卡数量不能小于0", CHAR_COLORRED); + CHAR_talkToCli( charindex, -1, "鍏呭煎崱鏁伴噺涓嶈兘灏忎簬0", CHAR_COLORRED); return; } if(cos <= 0 ) { - CHAR_talkToCli( charindex, -1, "充值卡面值不能小于0", CHAR_COLORRED); + CHAR_talkToCli( charindex, -1, "鍏呭煎崱闈㈠间笉鑳藉皬浜0", CHAR_COLORRED); return; } sasql_OnlineCost_add(cos, number); - sprintf(msg,"成功添加%d张面值%d的会员点充值卡",number,cos); + sprintf(msg,"鎴愬姛娣诲姞%d寮犻潰鍊%d鐨勪細鍛樼偣鍏呭煎崱",number,cos); CHAR_talkToCli( charindex, -1,msg, CHAR_COLORRED); } #endif @@ -6196,14 +6196,14 @@ void CHAR_CHAT_DEBUG_card(int charindex ,char *message) #ifdef _CAX_GM_RERIDE void CHAR_CHAT_DEBUG_reride(int charindex ,char *message) { - CHAR_talkToCli( charindex, -1, "重新读取自定义骑宠列表...", CHAR_COLORYELLOW); - print("GM 重读ride.txt文件..."); + CHAR_talkToCli( charindex, -1, "閲嶆柊璇诲彇鑷畾涔夐獞瀹犲垪琛...", CHAR_COLORYELLOW); + print("GM 閲嶈ride.txt鏂囦欢..."); if(CHAR_Ride_CF_init()){ - print("完成\n"); - CHAR_talkToCli( charindex, -1, "读取完成", CHAR_COLORYELLOW); + print("瀹屾垚\n"); + CHAR_talkToCli( charindex, -1, "璇诲彇瀹屾垚", CHAR_COLORYELLOW); return; } - CHAR_talkToCli( charindex, -1, "读取失败", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "璇诲彇澶辫触", CHAR_COLORYELLOW); } #endif @@ -6212,30 +6212,30 @@ void CHAR_CHAT_DEBUG_reskillcode(int charindex ,char *message) { int ret; ret = CHAR_FmLeaderRide_init(); - CHAR_talkToCli( charindex, -1, "重新读取宠物技能限制文件...", CHAR_COLORYELLOW); - print("GM 重读skillcode.txt文件..."); + CHAR_talkToCli( charindex, -1, "閲嶆柊璇诲彇瀹犵墿鎶鑳介檺鍒舵枃浠...", CHAR_COLORYELLOW); + print("GM 閲嶈skillcode.txt鏂囦欢..."); if( ret) { - print("完成\n"); - CHAR_talkToCli( charindex, -1, "读取完成", CHAR_COLORYELLOW); + print("瀹屾垚\n"); + CHAR_talkToCli( charindex, -1, "璇诲彇瀹屾垚", CHAR_COLORYELLOW); return; } - CHAR_talkToCli( charindex, -1, "读取失败", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "璇诲彇澶辫触", CHAR_COLORYELLOW); } #endif #ifdef _CAX_GM_RELEADERRIDE void CHAR_CHAT_DEBUG_releaderride(int charindex ,char *message) { - CHAR_talkToCli( charindex, -1, "重新读取庄园骑宠文件...", CHAR_COLORYELLOW); - print("GM 重读leaderride.txt文件..."); + CHAR_talkToCli( charindex, -1, "閲嶆柊璇诲彇搴勫洯楠戝疇鏂囦欢...", CHAR_COLORYELLOW); + print("GM 閲嶈leaderride.txt鏂囦欢..."); if( CHAR_FmLeaderRide_init()) { - print("完成\n"); - CHAR_talkToCli( charindex, -1, "读取完成", CHAR_COLORYELLOW); + print("瀹屾垚\n"); + CHAR_talkToCli( charindex, -1, "璇诲彇瀹屾垚", CHAR_COLORYELLOW); return; } - CHAR_talkToCli( charindex, -1, "读取失败", CHAR_COLORYELLOW); + CHAR_talkToCli( charindex, -1, "璇诲彇澶辫触", CHAR_COLORYELLOW); } #endif @@ -6243,13 +6243,13 @@ void CHAR_CHAT_DEBUG_releaderride(int charindex ,char *message) void CHAR_CHAT_DEBUG_GmSaveAllChar( int charaindex, char* message ) { int i; - CHAR_talkToCli( charaindex, -1, "正在保存数据,请稍后~", CHAR_COLORRED); + CHAR_talkToCli( charaindex, -1, "姝e湪淇濆瓨鏁版嵁,璇风◢鍚巭", CHAR_COLORRED); for( i=0; i= 1 ) { CHAR_setWorkInt ( myindex , CHAR_WORKCHATROOMTYPE , 2 ) ; CHAR_setWorkInt ( toindex , CHAR_WORKCHATROOMTYPE , 1 ) ; - CHAR_talkToCli ( toindex , -1 , "你现在是聊天室的室长!" , CHAR_COLORRED ) ; + CHAR_talkToCli ( toindex , -1 , "浣犵幇鍦ㄦ槸鑱婂ぉ瀹ょ殑瀹ら暱锛" , CHAR_COLORRED ) ; ChatRoom[ Num ].Maker = toindex ; } else { - CHAR_talkToCli ( myindex , -1 , "您选择的继任人物等级不足以担任室长!" , CHAR_COLORRED ) ; + CHAR_talkToCli ( myindex , -1 , "鎮ㄩ夋嫨鐨勭户浠讳汉鐗╃瓑绾т笉瓒充互鎷呬换瀹ら暱锛" , CHAR_COLORRED ) ; } } ChatRoom_Refresh ( Num ) ; @@ -285,7 +285,7 @@ void ChatRoom_Join ( int myindex , int num ) fd = getfdFromCharaIndex( ChatRoom[ num ].Maker ); lssproto_CHATROOM_send ( fd , buf ); }else if ( ChatRoom[ num ].NowPeople >= MAX_PPLINROOM ) - CHAR_talkToCli ( myindex , -1 , "聊天室人数已满!" , CHAR_COLORRED ) ; + CHAR_talkToCli ( myindex , -1 , "鑱婂ぉ瀹や汉鏁板凡婊★紒" , CHAR_COLORRED ) ; } @@ -310,10 +310,10 @@ void ChatRoom_Agree ( int myindex , int toindex , int YesNo ) { } } }else if ( YesNo == 0 ) { - CHAR_talkToCli ( toindex , -1 , "您申请的聊天室室长拒绝您的加入!" , CHAR_COLORRED ) ; + CHAR_talkToCli ( toindex , -1 , "鎮ㄧ敵璇风殑鑱婂ぉ瀹ゅ闀挎嫆缁濇偍鐨勫姞鍏ワ紒" , CHAR_COLORRED ) ; }else if ( ChatRoom[ Num ].NowPeople >= MAX_PPLINROOM ) { - CHAR_talkToCli ( toindex , -1 , "您申请的聊天室人数已满!" , CHAR_COLORRED ) ; - CHAR_talkToCli ( myindex , -1 , "聊天室人数已满!" , CHAR_COLORRED ) ; + CHAR_talkToCli ( toindex , -1 , "鎮ㄧ敵璇风殑鑱婂ぉ瀹や汉鏁板凡婊★紒" , CHAR_COLORRED ) ; + CHAR_talkToCli ( myindex , -1 , "鑱婂ぉ瀹や汉鏁板凡婊★紒" , CHAR_COLORRED ) ; } } ChatRoom_Refresh ( Num ) ; @@ -326,7 +326,7 @@ void ChatRoom_List ( int fd ) char token[2048] = "B|"; for ( i = 0 ; i < MAX_CHATROOM ; i ++ ) { if ( ChatRoom[ i ].useFlag == TRUE ) { - sprintf ( buf , "聊天室%2d资讯:室名=>%20s , 室长=>%16s , 人数=>%2d" , + sprintf ( buf , "鑱婂ぉ瀹%2d璧勮锛氬鍚=>%20s , 瀹ら暱=>%16s , 浜烘暟=>%2d" , i , ChatRoom[ i ].RoomName , CHAR_getChar ( ChatRoom[ i ].Maker , CHAR_NAME ) , @@ -391,31 +391,31 @@ void ChatRoom_recvall ( int fd , char *data ) getStringFromIndexWithDelim( data , "|", 1, Head, sizeof(Head)); getStringFromIndexWithDelim( data , "|", 2, message, sizeof(message)); - if ( strcmp ( Head , "C" ) == 0 ) { // 成立频道 + if ( strcmp ( Head , "C" ) == 0 ) { // 鎴愮珛棰戦亾 if ( !ChatRoom_Create ( myindex , message ) ) print("\nSyu log Create Channel Error" ); - }else if ( strcmp ( Head , "D" ) == 0 ) { // 删除频道 + }else if ( strcmp ( Head , "D" ) == 0 ) { // 鍒犻櫎棰戦亾 if ( !ChatRoom_Destroy ( myindex ) ) print("\nSyu log Destroy Channel Error" ) ; - }else if ( strcmp ( Head , "A" ) == 0 ) {// 同意加入频道 + }else if ( strcmp ( Head , "A" ) == 0 ) {// 鍚屾剰鍔犲叆棰戦亾 getStringFromIndexWithDelim( data , "|", 2, message, sizeof(message)); getStringFromIndexWithDelim( data , "|", 3, buf, sizeof(buf)); ChatRoom_Agree ( myindex , atoi( message ) , atoi( buf ) ) ; - }else if ( strcmp ( Head , "J" ) == 0 ) {// 申请频道 + }else if ( strcmp ( Head , "J" ) == 0 ) {// 鐢宠棰戦亾 getStringFromIndexWithDelim( data , "|", 2, message, sizeof(message)); ChatRoom_Join ( myindex , atoi( message ) ) ; - }else if ( strcmp ( Head , "L" ) == 0 ) {// 离开频道 + }else if ( strcmp ( Head , "L" ) == 0 ) {// 绂诲紑棰戦亾 ChatRoom_Leave ( myindex ) ; - }else if ( strcmp ( Head , "K" ) == 0 ) {//踢出频道 + }else if ( strcmp ( Head , "K" ) == 0 ) {//韪㈠嚭棰戦亾 getStringFromIndexWithDelim( data , "|", 2, message, sizeof(message)); ChatRoom_Kick ( myindex , atoi( message ) ); - }else if ( strcmp ( Head , "M" ) == 0 ) { // 更换室长 + }else if ( strcmp ( Head , "M" ) == 0 ) { // 鏇存崲瀹ら暱 getStringFromIndexWithDelim( data , "|", 2, message, sizeof(message)); ChatRoom_Make ( myindex , atoi( message ) ); - }else if ( strcmp ( Head , "T" ) == 0 ) {// 频道讯息 + }else if ( strcmp ( Head , "T" ) == 0 ) {// 棰戦亾璁伅 getStringFromIndexWithDelim( data , "|", 2, message, sizeof(message)); ChatRoom_Message ( myindex , message ) ; - }else if ( strcmp ( Head , "B" ) == 0 ) {// 聊天室清单 + }else if ( strcmp ( Head , "B" ) == 0 ) {// 鑱婂ぉ瀹ゆ竻鍗 ChatRoom_List ( fd ); }else print("\nSyu log None"); diff --git a/char/defaultGroundEnemy.h b/char/defaultGroundEnemy.h index 8dba339..510700d 100644 --- a/char/defaultGroundEnemy.h +++ b/char/defaultGroundEnemy.h @@ -1,7 +1,7 @@ #if 0 static Char slime= { - FALSE, /* use どうでもいい*/ + FALSE, /* use 銇┿亞銇с倐銇勩亜*/ /* data */ { @@ -12,7 +12,7 @@ static Char slime= 0, /* CHAR_FLOOR */ 0, /* CHAR_X */ 0, /* CHAR_Y */ - 0, /* CHAR_DIR 12箕を0に箕纷件りに */ + 0, /* CHAR_DIR 12绠曘倰0銇畷绾蜂欢銈娿伀 */ 0, /* CHAR_LV */ 0, /* CHAR_GOLD */ 1, /* CHAR_HP */ @@ -27,10 +27,10 @@ static Char slime= 0, /* CHAR_CHARM */ 0, /* CHAR_LUCK */ - 0, /* 孟掳拉 */ - 0, /* 垮掳拉 */ - 0, /* 残掳拉 */ - 0, /* 慎掳拉 */ + 0, /* 瀛熸幊鎷 */ + 0, /* 鍨幊鎷 */ + 0, /* 娈嬫幊鎷 */ + 0, /* 鎱庢幊鎷 */ 0, /* CHAR_SLOT */ 0, /* CHAR_CRITIAL */ diff --git a/char/defaultPlayer.h b/char/defaultPlayer.h index 703c4f5..7f23b5f 100644 --- a/char/defaultPlayer.h +++ b/char/defaultPlayer.h @@ -2,7 +2,7 @@ static Char player= { - FALSE, /* use どうでもいい*/ + FALSE, /* use 銇┿亞銇с倐銇勩亜*/ { 0, /* CHAR_DATAPLACENUMBER */ 0, /* CHAR_BASEIMAGENUMBER */ @@ -11,7 +11,7 @@ static Char player= 0, /* CHAR_FLOOR */ 0, /* CHAR_X */ 0, /* CHAR_Y */ - 5, /* CHAR_DIR 12箕を0に箕纷件りに */ + 5, /* CHAR_DIR 12绠曘倰0銇畷绾蜂欢銈娿伀 */ 1, /* CHAR_LV */ 0, /* CHAR_GOLD */ 1, /* CHAR_HP */ @@ -26,10 +26,10 @@ static Char player= 0, /* CHAR_CHARM */ 0, /* CHAR_LUCK */ - 0, /* 孟掳拉 */ - 0, /* 垮掳拉 */ - 0, /* 残掳拉 */ - 0, /* 慎掳拉 */ + 0, /* 瀛熸幊鎷 */ + 0, /* 鍨幊鎷 */ + 0, /* 娈嬫幊鎷 */ + 0, /* 鎱庢幊鎷 */ 0, /* CHAR_SLOT*/ 0, /* CHAR_CRITIAL */ @@ -111,19 +111,19 @@ static Char player= //#endif 0, //CHAR_SILENT, /* char shutup time */ - 0, // CHAR_FMINDEX, // 產壁 index + 0, // CHAR_FMINDEX, // 鐢㈠ index 0, // CHAR_FMLEADERFLAG, - /* 產壁Θ贺摸 - * FMMEMBER_NONE :⊿Τヴ產壁 - * FMMEMBER_APPLY :ビ叫產壁い - * FMMEMBER_LEADER :壁 - * FMMEMBER_MEMBER :Θ - * FMMEMBER_ELDER :ρ - * FMMEMBER_INVITE :步 // 既ぃノ - * FMMEMBER_BAILEE :癩叭 // 既ぃノ - * FMMEMBER_VICELEADER :捌壁 // 既ぃノ + /* 鐢㈠螛顓磋春鎽 + * FMMEMBER_NONE :鈯课ゎ櫋顥般兇顬栫敘澹 + * FMMEMBER_APPLY :銉撳彨顧☆棸鐢㈠銇 + * FMMEMBER_LEADER :澹侇仐 + * FMMEMBER_MEMBER :顥︻垹螛顓 + * FMMEMBER_ELDER :顏椣 + * FMMEMBER_INVITE :姝ヮ櫡 // 鏃㈩啝銇冦儙 + * FMMEMBER_BAILEE :鐧╁彮顏 // 鏃㈩啝銇冦儙 + * FMMEMBER_VICELEADER :鎹屽顏 // 鏃㈩啝銇冦儙 */ - 0, // CHAR_FMSPRITE, // 產壁臔弘艶 + 0, // CHAR_FMSPRITE, // 鐢㈠顩涜嚁寮樿壎 0, // CHAR_BANKGOLD, 0, // CHAR_RIDEPET, @@ -133,13 +133,13 @@ static Char player= #endif 0, // CHAR_LIMITLEVEL, #ifdef _PET_FUSION - 0, // CHAR_FUSIONCODE, //贺絪絏 - 0, // CHAR_FUSIONINDEX, //瑰て胐絪腹 - 0, // CHAR_FUSIONRAISE, //笼緄Ω计 - 0, // CHAR_FUSIONBEIT, //胐矹篨夹 - 0, // CHAR_FUSIONTIMELIMIT, //笼緄丁 + 0, // CHAR_FUSIONCODE, //顎婅春绲祻 + 0, // CHAR_FUSIONINDEX, //鐟般仸鑳愵婄氮鑵 + 0, // CHAR_FUSIONRAISE, //绗肩穭惟璁 + 0, // CHAR_FUSIONBEIT, //鑳愮煿绡ㄥす + 0, // CHAR_FUSIONTIMELIMIT, //绗肩穭顔犱竵 #endif -#ifdef _PERSONAL_FAME // Arminius 8.30: 產壁羘辨 +#ifdef _PERSONAL_FAME // Arminius 8.30: 鐢㈠顓岊棶缇樿鲸 0, // CHAR_FAME, #endif @@ -148,32 +148,32 @@ static Char player= #endif #ifdef _ATTACK_MAGIC - 0, // CHAR_EARTH_EXP, // 產臸猭剪絤 - 0, // CHAR_WATER_EXP, // 產臸猭剪絤 - 0, // CHAR_FIRE_EXP, // 產臸猭剪絤 - 0, // CHAR_WIND_EXP, // 產臸猭剪絤 - 0, // CHAR_EARTH_RESIST, // 產臸猭к┦ - 0, // CHAR_WATER_RESIST, // 產臸猭к┦ - 0, // CHAR_FIRE_RESIST, // 產臸猭к┦ - 0, // CHAR_WIND_RESIST, // 產臸猭к┦ - 0, // CHAR_EARTH_ATTMAGIC_EXP, // 產臸猭剪絤竒喷 - 0, // CHAR_WATER_ATTMAGIC_EXP, // 產臸猭剪絤竒喷 - 0, // CHAR_FIRE_ATTMAGIC_EXP, // 產臸猭剪絤竒喷 - 0, // CHAR_WIND_ATTMAGIC_EXP, // 產臸猭剪絤竒喷 - 0, // CHAR_EARTH_DEFMAGIC_EXP, // 產臸猭к┦竒喷 - 0, // CHAR_WATER_DEFMAGIC_EXP, // 產臸猭к┦竒喷 - 0, // CHAR_FIRE_DEFMAGIC_EXP, // 產臸猭к┦竒喷 - 0, // CHAR_WIND_DEFMAGIC_EXP, // 產臸猭к┦竒喷 + 0, // CHAR_EARTH_EXP, // 顎愮敘顎欘泧鑷哥尛鍓丹顐 + 0, // CHAR_WATER_EXP, // 顎愮敘顎欘澆鑷哥尛鍓丹顐 + 0, // CHAR_FIRE_EXP, // 顎愮敘顎欘澇鑷哥尛鍓丹顐 + 0, // CHAR_WIND_EXP, // 顎愮敘顎欘劙鑷哥尛鍓丹顐 + 0, // CHAR_EARTH_RESIST, // 顎愮敘顎欘泧鑷哥尛泻鈹 + 0, // CHAR_WATER_RESIST, // 顎愮敘顎欘澆鑷哥尛泻鈹 + 0, // CHAR_FIRE_RESIST, // 顎愮敘顎欘澇鑷哥尛泻鈹 + 0, // CHAR_WIND_RESIST, // 顎愮敘顎欘劙鑷哥尛泻鈹 + 0, // CHAR_EARTH_ATTMAGIC_EXP, // 顎愮敘顎欘泧鑷哥尛鍓丹顐旂珤鍠奉厑 + 0, // CHAR_WATER_ATTMAGIC_EXP, // 顎愮敘顎欘澆鑷哥尛鍓丹顐旂珤鍠奉厑 + 0, // CHAR_FIRE_ATTMAGIC_EXP, // 顎愮敘顎欘澇鑷哥尛鍓丹顐旂珤鍠奉厑 + 0, // CHAR_WIND_ATTMAGIC_EXP, // 顎愮敘顎欘劙鑷哥尛鍓丹顐旂珤鍠奉厑 + 0, // CHAR_EARTH_DEFMAGIC_EXP, // 顎愮敘顎欘泧鑷哥尛泻鈹︾珤鍠奉厑 + 0, // CHAR_WATER_DEFMAGIC_EXP, // 顎愮敘顎欘澆鑷哥尛泻鈹︾珤鍠奉厑 + 0, // CHAR_FIRE_DEFMAGIC_EXP, // 顎愮敘顎欘澇鑷哥尛泻鈹︾珤鍠奉厑 + 0, // CHAR_WIND_DEFMAGIC_EXP, // 顎愮敘顎欘劙鑷哥尛泻鈹︾珤鍠奉厑 #endif #ifdef _GAMBLE_BANK - 0, // CHAR_PERSONAGOLD, //戒初蝗︽ + 0, // CHAR_PERSONAGOLD, //鎴掑垵顓岊棶铦楋附 #endif #ifdef _DROPSTAKENEW - 0, // CHAR_GAMBLENUM, //戒初縩だ + 0, // CHAR_GAMBLENUM, //鎴掑垵绺┿仩 #endif -#ifdef _ADD_ACTION //npc笆 +#ifdef _ADD_ACTION //npc绗嗩渾 0, // CHAR_ACTIONSTYLE, #endif #ifdef _PET_EVOLUTION @@ -187,27 +187,27 @@ static Char player= 0, // CHAR_FMTIMELIMIT, #endif -#ifdef _CHAR_PROFESSION // WON ADD 戮穨 - 0, // PROFESSION_CLASS, // 戮穨 - 0, // PROFESSION_LEVEL, // 戮穨单 -// 0, // PROFESSION_EXP, // 戮穨竒喷 - 0, // PROFESSION_SKILL_POINT, // м翴计 - 0, // ATTACHPILE, // 糤帮舼 - 0, // PROFESSION_FIRE_P, // 剪絤 - 0, // PROFESSION_ICE_P, // 剪絤 - 0, // PROFESSION_THUNDER_P, // 筽剪絤 - 0, // PROFESSION_FIRE_R, // к┦ - 0, // PROFESSION_ICE_R, // к┦ - 0, // PROFESSION_THUNDER_R, // 筽к┦ +#ifdef _CHAR_PROFESSION // WON ADD 顥婃埉绌 + 0, // PROFESSION_CLASS, // 鎴┄顪 + 0, // PROFESSION_LEVEL, // 鎴┄鍗曨嚭 +// 0, // PROFESSION_EXP, // 鎴┄绔掑柗顓 + 0, // PROFESSION_SKILL_POINT, // 屑顖曠看璁 + 0, // ATTACHPILE, // 绯ゎ櫋甯埣 + 0, // PROFESSION_FIRE_P, // 顫冲壀绲ゎ倲 + 0, // PROFESSION_ICE_P, // 顨ㄥ壀绲ゎ倲 + 0, // PROFESSION_THUNDER_P, // 绛藉壀绲ゎ倲 + 0, // PROFESSION_FIRE_R, // 顫承衡敠 + 0, // PROFESSION_ICE_R, // 顨ㄐ衡敠 + 0, // PROFESSION_THUNDER_R, // 绛叫衡敠 #endif -#ifdef _ALLDOMAN // (ぃ秨) Syu ADD 逼︽篯NPC +#ifdef _ALLDOMAN // (銇冾櫙绉) Syu ADD 閫硷附绡疦PC 0, // CHAR_HEROFLOOR, #endif #ifdef _PETSKILL_BECOMEPIG -1, // CHAR_BECOMEPIG, 100250, //CHAR_BECOMEPIG_BBI #endif - 0, // CHAR_LASTLEAVETIME, // Robin add 程瞒絬丁 + 0, // CHAR_LASTLEAVETIME, // Robin add 绋嬵倿鐬掔惮顔犱竵 #ifdef _NEW_MANOR_LAW 0, // CHAR_MOMENTUM, @@ -224,21 +224,21 @@ static Char player= #endif #ifdef _ANGEL_SUMMON - 0, // CHAR_HEROCNT, // ЧΘ玦ヴ叭Ω计 + 0, // CHAR_HEROCNT, // 效螛鐜︻兇鍙櫸╄ #endif #ifdef _TEACHER_SYSTEM - 0, // CHAR_TEACHER_FAME, // 导师领导声望 + 0, // CHAR_TEACHER_FAME, // 瀵煎笀棰嗗澹版湜 #endif #ifdef _GM_ITEM - 0, // 玩家GM命令次数 + 0, // 鐜╁GM鍛戒护娆℃暟 #endif #ifdef _VIP_SERVER - 0, // 会员点数 + 0, // 浼氬憳鐐规暟 #endif #ifdef _VIP_RIDE - 0, // 会员骑黑鸡 + 0, // 浼氬憳楠戦粦楦 #endif #ifdef _CAMEO_MONEY 0, @@ -273,10 +273,10 @@ static Char player= 0, //CHAR_LUASAVE_INT_2 0, //CHAR_LUASAVE_INT_3 #ifdef _CAX_ESC_REPORT - 0, //CHAR_REPORT 每日签到 + 0, //CHAR_REPORT 姣忔棩绛惧埌 #endif #ifdef _CAX_Mercenary - 0, //CHAR_MERCENARY 佣兵字段 + 0, //CHAR_MERCENARY 浣e叺瀛楁 #endif }, diff --git a/char/encount.c b/char/encount.c index ff1b987..9906dc6 100644 --- a/char/encount.c +++ b/char/encount.c @@ -15,23 +15,23 @@ #include "encount.h" #include "enemy.h" -#ifdef _ADD_ENCOUNT // WON ADD 增加敌遭遇触发修件 +#ifdef _ADD_ENCOUNT // WON ADD 澧炲姞鏁岄伃閬囪Е鍙戜慨浠 #include "encount.h" #endif -/* 巨件市它件玄楮 及末□旦 */ +/* 宸ㄤ欢甯傚畠浠剁巹妤 鍙婃湯鈻℃棪 */ -#ifndef _ADD_ENCOUNT // WON ADD 增加敌遭遇触发修件 +#ifndef _ADD_ENCOUNT // WON ADD 澧炲姞鏁岄伃閬囪Е鍙戜慨浠 typedef struct tagENCOUNT_Table { int index; int floor; - int encountprob_min; /* 巨件市它件玄割 */ - int encountprob_max; /* 巨件市它件玄割 */ - int enemymaxnum; /* 升木分仃衬毛综月井 */ + int encountprob_min; /* 宸ㄤ欢甯傚畠浠剁巹鍓 */ + int encountprob_max; /* 宸ㄤ欢甯傚畠浠剁巹鍓 */ + int enemymaxnum; /* 鍗囨湪鍒嗕粌琛瘺缁兼湀浜 */ int zorder; - int groupid[ENCOUNT_GROUPMAXNUM]; /* 弘伙□皿No */ - int createprob[ENCOUNT_GROUPMAXNUM]; /* 公及弘伙□皿及请蜇 */ + int groupid[ENCOUNT_GROUPMAXNUM]; /* 寮樹紮鈻$毧No */ + int createprob[ENCOUNT_GROUPMAXNUM]; /* 鍏強寮樹紮鈻$毧鍙婅铚 */ RECT rect; }ENCOUNT_Table; ENCOUNT_Table *ENCOUNT_table; @@ -47,12 +47,12 @@ static INLINE BOOL ENCOUNT_CHECKENCOUNTTABLEARRAY( int array) } /*------------------------------------------------------------ - * 巨件市它件玄涩烂及赓渝祭毛允月[ - * 娄醒 - * filename char* 涩烂白央奶伙 - * 忒曰袄 - * 岳 TRUE(1) - * 撩 FALSE(0) + * 宸ㄤ欢甯傚畠浠剁巹娑╃儌鍙婅祿娓濈キ姣涘厑鏈堬蓟 + * 濞勯啋 + * filename char* 娑╃儌鐧藉ぎ濂朵紮 + * 蹇掓洶琚 + * 宀 TRUE(1) + * 鎾 FALSE(0) *------------------------------------------------------------*/ BOOL ENCOUNT_initEncount( char* filename ) { @@ -69,7 +69,7 @@ BOOL ENCOUNT_initEncount( char* filename ) ENCOUNT_encountnum=0; - /* 引内 躲卅垫互窒垫丐月井升丹井譬屯月 */ + /* 寮曞唴 韬插崊鍨簰绐掑灚涓愭湀浜曞崌涓逛簳璀悲鏈 */ while( fgets( line, sizeof( line ), f ) ){ linenum ++; if( line[0] == '#' )continue; /* comment */ @@ -80,7 +80,7 @@ BOOL ENCOUNT_initEncount( char* filename ) } if( fseek( f, 0, SEEK_SET ) == -1 ){ - fprint( "寻找错误\n" ); + fprint( "瀵绘壘閿欒\n" ); fclose(f); return FALSE; } @@ -88,13 +88,13 @@ BOOL ENCOUNT_initEncount( char* filename ) ENCOUNT_table = allocateMemory( sizeof(struct tagENCOUNT_Table) * ENCOUNT_encountnum ); if( ENCOUNT_table == NULL ){ - fprint( "无法分配内存 %d\n" , + fprint( "鏃犳硶鍒嗛厤鍐呭瓨 %d\n" , sizeof(ENCOUNT_table)*ENCOUNT_encountnum); fclose( f ); return FALSE; } - /* 赓渝祭 */ + /* 璧撴笣绁 */ { int i,j; for( i = 0; i < ENCOUNT_encountnum; i ++ ) { @@ -112,7 +112,7 @@ BOOL ENCOUNT_initEncount( char* filename ) ENCOUNT_table[i].groupid[j] = -1; ENCOUNT_table[i].createprob[j] = -1; } -#ifdef _ADD_ENCOUNT // WON ADD 增加敌遭遇触发修件 +#ifdef _ADD_ENCOUNT // WON ADD 澧炲姞鏁岄伃閬囪Е鍙戜慨浠 ENCOUNT_table[i].event_now = -1; ENCOUNT_table[i].event_end = -1; ENCOUNT_table[i].enemy_group = -1; @@ -120,7 +120,7 @@ BOOL ENCOUNT_initEncount( char* filename ) } } - /* 引凶 心 允 */ + /* 寮曞嚩 蹇 鍏 */ linenum = 0; while( fgets( line, sizeof( line ), f ) ){ linenum ++; @@ -128,10 +128,10 @@ BOOL ENCOUNT_initEncount( char* filename ) if( line[0] == '\n' )continue; /* none */ chomp( line ); - /* 垫毛帮溥允月 */ - /* 引内 tab 毛 " " 卞 五晶尹月 */ + /* 鍨瘺甯亥鍏佹湀 */ + /* 寮曞唴 tab 姣 " " 鍗 浜旀櫠灏规湀 */ replaceString( line, '\t' , ' ' ); - /* 燮 及旦矢□旦毛潸月[*/ + /* 鐕 鍙婃棪鐭⑩枴鏃︽瘺娼告湀锛*/ { int i; char buf[256]; @@ -151,7 +151,7 @@ BOOL ENCOUNT_initEncount( char* filename ) int x1,x2,y1,y2; int j; - /* 蘸户及伙□皿卞 匀凶凛及啃及赓渝祭 */ + /* 铇告埛鍙婁紮鈻$毧鍗 鍖鍑跺嚊鍙婂晝鍙婅祿娓濈キ */ ENCOUNT_table[encount_readlen].index = -1; ENCOUNT_table[encount_readlen].floor = 0; ENCOUNT_table[encount_readlen].encountprob_min = 1; @@ -166,64 +166,64 @@ BOOL ENCOUNT_initEncount( char* filename ) ENCOUNT_table[encount_readlen].groupid[j] = -1; ENCOUNT_table[encount_readlen].createprob[j] = -1; } -#ifdef _ADD_ENCOUNT // WON ADD 增加敌遭遇触发修件 +#ifdef _ADD_ENCOUNT // WON ADD 澧炲姞鏁岄伃閬囪Е鍙戜慨浠 ENCOUNT_table[encount_readlen].event_now = -1; ENCOUNT_table[encount_readlen].event_end = -1; ENCOUNT_table[encount_readlen].enemy_group = -1; #endif - /* 夫午勾户及玄□弁件毛苇月 */ + /* 澶崍鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",1,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENCOUNT_table[encount_readlen].index = atoi(token); - /* 2勾户及玄□弁件毛苇月 */ + /* 2鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",2,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENCOUNT_table[encount_readlen].floor = atoi(token); - /* 3勾户及玄□弁件毛苇月 */ + /* 3鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",3,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } x1 = atoi(token); - /* 4勾户及玄□弁件毛苇月 */ + /* 4鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",4,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } y1= atoi(token); - /* 5勾户及玄□弁件毛苇月 */ + /* 5鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",5,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } x2 = atoi(token); - /* 6勾户及玄□弁件毛苇月 */ + /* 6鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",6,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } y2= atoi(token); @@ -233,20 +233,20 @@ BOOL ENCOUNT_initEncount( char* filename ) ENCOUNT_table[encount_readlen].rect.y = min(y1,y2); ENCOUNT_table[encount_readlen].rect.height = max(y1,y2) - min(y1,y2); - /* 7户及玄□弁件毛苇月 */ + /* 7鎴峰強鐜勨枴寮佷欢姣涜媷鏈 */ ret = getStringFromIndexWithDelim( line,",",7,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENCOUNT_table[encount_readlen].encountprob_min = atoi(token); - /* 8户及玄□弁件毛苇月 */ + /* 8鎴峰強鐜勨枴寮佷欢姣涜媷鏈 */ ret = getStringFromIndexWithDelim( line,",",8,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENCOUNT_table[encount_readlen].encountprob_max = atoi(token); @@ -255,39 +255,39 @@ BOOL ENCOUNT_initEncount( char* filename ) int a,b; a = ENCOUNT_table[encount_readlen].encountprob_min; b = ENCOUNT_table[encount_readlen].encountprob_max; - /* 凝及譬帮 */ + /* 鍑濆強璀府 */ ENCOUNT_table[encount_readlen].encountprob_min = min( a,b); ENCOUNT_table[encount_readlen].encountprob_max = max( a,b); } - /* 9勾户及玄□弁件毛苇月 */ + /* 9鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",9,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } { int maxnum = atoi( token); - /* 醒及恳癫岭及民尼永弁 */ + /* 閱掑強鎭崇櫕宀強姘戝凹姘稿紒 */ if( maxnum < 1 || maxnum > ENCOUNT_ENEMYMAXCREATENUM ) { - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENCOUNT_table[encount_readlen].enemymaxnum = maxnum; } - /* 10户及玄□弁件毛苇月 */ + /* 10鎴峰強鐜勨枴寮佷欢姣涜媷鏈 */ ret = getStringFromIndexWithDelim( line,",",10,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENCOUNT_table[encount_readlen].zorder = atoi(token); #define CREATEPROB_TOKEN 11 - /* 11 31户及玄□弁件毛苇月 */ + /* 11 31鎴峰強鐜勨枴寮佷欢姣涜媷鏈 */ { int i; @@ -295,7 +295,7 @@ BOOL ENCOUNT_initEncount( char* filename ) ret = getStringFromIndexWithDelim( line,",",i,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } if( strlen( token) != 0 ) { @@ -310,22 +310,22 @@ BOOL ENCOUNT_initEncount( char* filename ) } } - /* 褐 民尼永弁 */ + /* 瑜 姘戝凹姘稿紒 */ if( checkRedundancy( ENCOUNT_table[encount_readlen].groupid, arraysizeof( ENCOUNT_table[encount_readlen].groupid))) { - fprint( "文件语法错误:%s 第%d行\n", + fprint( "鏂囦欢璇硶閿欒:%s 绗%d琛孿n", filename,linenum); continue; } } -#ifdef _ADD_ENCOUNT // WON ADD 增加敌遭遇触发修件 +#ifdef _ADD_ENCOUNT // WON ADD 澧炲姞鏁岄伃閬囪Е鍙戜慨浠 ret = getStringFromIndexWithDelim( line,",",31,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENCOUNT_table[encount_readlen].event_now = atoi(token); @@ -333,7 +333,7 @@ BOOL ENCOUNT_initEncount( char* filename ) ret = getStringFromIndexWithDelim( line,",",32,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENCOUNT_table[encount_readlen].event_end = atoi(token); @@ -341,7 +341,7 @@ BOOL ENCOUNT_initEncount( char* filename ) ret = getStringFromIndexWithDelim( line,",",33,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENCOUNT_table[encount_readlen].enemy_group = atoi(token); @@ -354,12 +354,12 @@ BOOL ENCOUNT_initEncount( char* filename ) ENCOUNT_encountnum = encount_readlen; - print( "有效的遇敌坐标数是 %d..", ENCOUNT_encountnum ); + print( "鏈夋晥鐨勯亣鏁屽潗鏍囨暟鏄 %d..", ENCOUNT_encountnum ); return TRUE; } /*------------------------------------------------------------------------ - * 巨件市它件玄涩烂白央奶伙 心 仄 + * 宸ㄤ欢甯傚畠浠剁巹娑╃儌鐧藉ぎ濂朵紮 蹇 浠 *-----------------------------------------------------------------------*/ BOOL ENCOUNT_reinitEncount( void ) { @@ -368,15 +368,15 @@ BOOL ENCOUNT_reinitEncount( void ) } /*------------------------------------------------------------ - * 隙烂今木凶甄 及ENCOUNT_table及骄侬毛譬屯月[ - * zorder及醒侬毛苇化穸燮赐匏及嫖中 毛潸 允月[ - * 娄醒 - * floor int 白夫失ID - * x int x甄 - * y int y甄 - * 忒曰袄 - * 恳橘 骄侬 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑剁攧 鍙奅NCOUNT_table鍙婇獎渚瘺璀悲鏈堬蓟 + * zorder鍙婇啋渚瘺鑻囧寲绌哥嚠璧愬審鍙婂珫涓 姣涙礁 鍏佹湀锛 + * 濞勯啋 + * floor int 鐧藉か澶盜D + * x int x鐢 + * y int y鐢 + * 蹇掓洶琚 + * 鎭虫 楠勪粳 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getEncountAreaArray( int floor, int x, int y) { @@ -388,8 +388,8 @@ int ENCOUNT_getEncountAreaArray( int floor, int x, int y) int curZorder = ENCOUNT_getZorderFromArray(i); if( curZorder >0) { if( index != -1 ) { - /* 穸燮赐匏毛譬屯月 */ - /* 五中 穸燮 */ + /* 绌哥嚠璧愬審姣涜灞湀 */ + /* 浜斾腑 绌哥嚠 */ if( curZorder > ENCOUNT_getZorderFromArray(index)) { index = i; } @@ -405,14 +405,14 @@ int ENCOUNT_getEncountAreaArray( int floor, int x, int y) } /*------------------------------------------------------------ - * 隙烂今木凶甄 及巨件市它件玄割 毛譬屯月[ - * 娄醒 - * floor int 白夫失ID - * x int x甄 - * y int y甄 - * 忒曰袄 - * 恳橘 ㄟ动晓及割 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑剁攧 鍙婂法浠跺競瀹冧欢鐜勫壊 姣涜灞湀锛 + * 濞勯啋 + * floor int 鐧藉か澶盜D + * x int x鐢 + * y int y鐢 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅撳強鍓 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getEncountPercentMin( int charaindex, int floor , int x, int y ) { @@ -421,7 +421,7 @@ int ENCOUNT_getEncountPercentMin( int charaindex, int floor , int x, int y ) ret = ENCOUNT_getEncountAreaArray( floor, x, y); if( ret != -1 ) { ret = ENCOUNT_table[ret].encountprob_min; - /* 玄目夫旦躲绊毛勾仃月 */ + /* 鐜勭洰澶棪韬茬粖姣涘嬀浠冩湀 */ if( CHAR_getWorkInt( charaindex, CHAR_WORK_TOHELOS_COUNT) > 0 ) { ret = ceil( ret * ((100 + CHAR_getWorkInt( charaindex, CHAR_WORK_TOHELOS_CUTRATE)) @@ -433,14 +433,14 @@ int ENCOUNT_getEncountPercentMin( int charaindex, int floor , int x, int y ) return ret; } /*------------------------------------------------------------ - * 隙烂今木凶甄 及巨件市它件玄割 毛譬屯月[ - * 娄醒 - * floor int 白夫失ID - * x int x甄 - * y int y甄 - * 忒曰袄 - * 恳橘 ㄟ动晓及割 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑剁攧 鍙婂法浠跺競瀹冧欢鐜勫壊 姣涜灞湀锛 + * 濞勯啋 + * floor int 鐧藉か澶盜D + * x int x鐢 + * y int y鐢 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅撳強鍓 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getEncountPercentMax( int charaindex, int floor , int x, int y ) { @@ -449,7 +449,7 @@ int ENCOUNT_getEncountPercentMax( int charaindex, int floor , int x, int y ) ret = ENCOUNT_getEncountAreaArray( floor, x, y); if( ret != -1 ) { ret = ENCOUNT_table[ret].encountprob_max; - /* 玄目夫旦躲绊毛勾仃月 */ + /* 鐜勭洰澶棪韬茬粖姣涘嬀浠冩湀 */ if( CHAR_getWorkInt( charaindex, CHAR_WORK_TOHELOS_COUNT) > 0 ) { ret = ceil( ret * ((100 + CHAR_getWorkInt( charaindex, CHAR_WORK_TOHELOS_CUTRATE)) @@ -461,14 +461,14 @@ int ENCOUNT_getEncountPercentMax( int charaindex, int floor , int x, int y ) return ret; } /*------------------------------------------------------------ - * 隙烂今木凶甄 及衬戏岳MAX醒毛譬屯月[ - * 娄醒 - * floor int 白夫失ID - * x int x甄 - * y int y甄 - * 忒曰袄 - * 恳橘 ㄟ动晓及割 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑剁攧 鍙婅‖鎴忓渤MAX閱掓瘺璀悲鏈堬蓟 + * 濞勯啋 + * floor int 鐧藉か澶盜D + * x int x鐢 + * y int y鐢 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅撳強鍓 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getCreateEnemyMaxNum( int floor , int x, int y ) { @@ -481,14 +481,14 @@ int ENCOUNT_getCreateEnemyMaxNum( int floor , int x, int y ) return ret; } /*------------------------------------------------------------ - * 隙烂今木凶甄 及巨件市它件玄白奴□伙玉及index毛譬屯月[ - * 娄醒 - * floor int 白夫失ID - * x int x甄 - * y int y甄 - * 忒曰袄 - * 恳橘 ㄟ动晓 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑剁攧 鍙婂法浠跺競瀹冧欢鐜勭櫧濂粹枴浼欑帀鍙奿ndex姣涜灞湀锛 + * 濞勯啋 + * floor int 鐧藉か澶盜D + * x int x鐢 + * y int y鐢 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getEncountIndex( int floor , int x, int y ) { @@ -501,12 +501,12 @@ int ENCOUNT_getEncountIndex( int floor , int x, int y ) return ret; } /*------------------------------------------------------------ - * 隙烂今木凶甄 及巨件市它件玄白奴□伙玉及index毛譬屯月[ - * 娄醒 - * array int ENCOUNTTABLE及骄侬 - * 忒曰袄 - * 恳橘 ㄟ动晓 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑剁攧 鍙婂法浠跺競瀹冧欢鐜勭櫧濂粹枴浼欑帀鍙奿ndex姣涜灞湀锛 + * 濞勯啋 + * array int ENCOUNTTABLE鍙婇獎渚 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getEncountIndexFromArray( int array ) { @@ -514,12 +514,12 @@ int ENCOUNT_getEncountIndexFromArray( int array ) return ENCOUNT_table[array].index; } /*------------------------------------------------------------ - * 隙烂今木凶甄 及巨件市它件玄割 毛譬屯月[ - * 娄醒 - * array int ENCOUNTTABLE及骄侬 - * 忒曰袄 - * 恳橘 ㄟ动晓 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑剁攧 鍙婂法浠跺競瀹冧欢鐜勫壊 姣涜灞湀锛 + * 濞勯啋 + * array int ENCOUNTTABLE鍙婇獎渚 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getEncountPercentFromArray( int array ) { @@ -527,12 +527,12 @@ int ENCOUNT_getEncountPercentFromArray( int array ) return ENCOUNT_table[array].encountprob_min; } /*------------------------------------------------------------ - * 隙烂今木凶甄 及衬戏岳MAX醒毛譬屯月[ - * 娄醒 - * array int ENCOUNTTABLE及骄侬 - * 忒曰袄 - * 恳橘 ㄟ动晓 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑剁攧 鍙婅‖鎴忓渤MAX閱掓瘺璀悲鏈堬蓟 + * 濞勯啋 + * array int ENCOUNTTABLE鍙婇獎渚 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getCreateEnemyMaxNumFromArray( int array ) { @@ -540,12 +540,12 @@ int ENCOUNT_getCreateEnemyMaxNumFromArray( int array ) return ENCOUNT_table[array].enemymaxnum; } /*------------------------------------------------------------ - * 隙烂今木凶骄侬及弘伙□皿 寞毛譬屯月[ - * 娄醒 - * array int ENCOUNTTABLE及骄侬 - * 忒曰袄 - * 恳橘 ㄟ动晓 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑堕獎渚強寮樹紮鈻$毧 瀵炴瘺璀悲鏈堬蓟 + * 濞勯啋 + * array int ENCOUNTTABLE鍙婇獎渚 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getGroupIdFromArray( int array, int grouparray ) { @@ -553,12 +553,12 @@ int ENCOUNT_getGroupIdFromArray( int array, int grouparray ) return ENCOUNT_table[array].groupid[grouparray]; } /*------------------------------------------------------------ - * 隙烂今木凶骄侬及弘伙□皿及请蜇 毛譬屯月[ - * 娄醒 - * array int ENCOUNTTABLE及骄侬 - * 忒曰袄 - * 恳橘 ㄟ动晓 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑堕獎渚強寮樹紮鈻$毧鍙婅铚 姣涜灞湀锛 + * 濞勯啋 + * array int ENCOUNTTABLE鍙婇獎渚 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getGroupProbFromArray( int array, int grouparray ) { @@ -566,12 +566,12 @@ int ENCOUNT_getGroupProbFromArray( int array, int grouparray ) return ENCOUNT_table[array].createprob[grouparray]; } /*------------------------------------------------------------ - * 隙烂今木凶骄侬及穸燮赐匏毛譬屯月[ - * 娄醒 - * array int ENCOUNTTABLE及骄侬 - * 忒曰袄 - * 恳橘 ㄟ动晓 - * 潸 撩 -1 + * 闅欑儌浠婃湪鍑堕獎渚強绌哥嚠璧愬審姣涜灞湀锛 + * 濞勯啋 + * array int ENCOUNTTABLE鍙婇獎渚 + * 蹇掓洶琚 + * 鎭虫 銊熷姩鏅 + * 娼 鎾 -1 ------------------------------------------------------------*/ int ENCOUNT_getZorderFromArray( int array ) { diff --git a/char/enemy.c b/char/enemy.c index a32c106..6787067 100644 --- a/char/enemy.c +++ b/char/enemy.c @@ -1,4 +1,4 @@ -/* 衬涩烂楮 */ +/* 琛订鐑傛ギ */ #include "version.h" #include #include @@ -18,7 +18,7 @@ #include "anim_tbl.h" #include "log.h" -#ifdef _ADD_ENCOUNT // WON ADD 增加敌遭遇触发修件 +#ifdef _ADD_ENCOUNT // WON ADD 澧炲姞鏁岄伃閬囪Е鍙戜慨浠 #include "encount.h" #include "npcutil.h" #endif @@ -215,13 +215,13 @@ BOOL ENEMYTEMP_initEnemy( char* filename ) int i,j; f = fopen(filename,"r"); if( f == NULL ){ - print( "文件打开失败\n"); + print( "鏂囦欢鎵撳紑澶辫触\n"); return FALSE; } ENEMYTEMP_enemynum=0; - /* 引内 躲卅垫互窒垫丐月井升丹井譬屯月 */ + /* 寮曞唴 韬插崊鍨簰绐掑灚涓愭湀浜曞崌涓逛簳璀悲鏈 */ while( fgets( line, sizeof( line ), f ) ){ linenum ++; if( line[0] == '#' )continue; /* comment */ @@ -239,13 +239,13 @@ BOOL ENEMYTEMP_initEnemy( char* filename ) ENEMYTEMP_enemy = allocateMemory( sizeof(struct tagENEMYTEMP_Table) * ENEMYTEMP_enemynum ); if( ENEMYTEMP_enemy == NULL ){ - fprint( "无法分配内存 %d\n" , + fprint( "鏃犳硶鍒嗛厤鍐呭瓨 %d\n" , sizeof(struct tagENEMYTEMP_Table)*ENEMYTEMP_enemynum); fclose( f ); return FALSE; } - /* 赓渝祭 */ + /* 璧撴笣绁 */ for( i = 0; i < ENEMYTEMP_enemynum; i ++ ) { for( j = 0; j < E_T_DATAINTNUM; j ++ ) { ENEMYTEMP_setInt( i,j,-1); @@ -277,7 +277,7 @@ BOOL ENEMYTEMP_initEnemy( char* filename ) ret = getStringFromIndexWithDelim( line,",",i+1,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENEMYTEMP_setChar( enemytemp_readlen, E_T_NAME + i, token); @@ -288,7 +288,7 @@ BOOL ENEMYTEMP_initEnemy( char* filename ) ret = getStringFromIndexWithDelim( line,",",i,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); break; } if( strlen( token) != 0 ) { @@ -305,7 +305,7 @@ BOOL ENEMYTEMP_initEnemy( char* filename ) ENEMYTEMP_enemynum = enemytemp_readlen; - print( "有效宠物基本状态数是 %d...", ENEMYTEMP_enemynum ); + print( "鏈夋晥瀹犵墿鍩烘湰鐘舵佹暟鏄 %d...", ENEMYTEMP_enemynum ); return TRUE; } @@ -353,7 +353,7 @@ BOOL ENEMY_initEnemy( char* filename ) int i,j; f = fopen(filename,"r"); if( f == NULL ){ - print( "文件打开失败\n"); + print( "鏂囦欢鎵撳紑澶辫触\n"); return FALSE; } @@ -368,7 +368,7 @@ BOOL ENEMY_initEnemy( char* filename ) } if( fseek( f, 0, SEEK_SET ) == -1 ){ - fprint( "寻找失败\n" ); + fprint( "瀵绘壘澶辫触\n" ); fclose(f); return FALSE; } @@ -376,7 +376,7 @@ BOOL ENEMY_initEnemy( char* filename ) ENEMY_enemy = allocateMemory( sizeof(struct tagENEMY_EnemyTable) * ENEMY_enemynum ); if( ENEMY_enemy == NULL ){ - fprint( "无法分配内存 %d\n" , + fprint( "鏃犳硶鍒嗛厤鍐呭瓨 %d\n" , sizeof(struct tagENEMY_EnemyTable)*ENEMY_enemynum); fclose( f ); return FALSE; @@ -411,20 +411,20 @@ BOOL ENEMY_initEnemy( char* filename ) ret = getStringFromIndexWithDelim( line,",",1,token,sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENEMY_setChar( enemy_readlen, ENEMY_NAME, token); ret = getStringFromIndexWithDelim( line,",",2,token,sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENEMY_setChar( enemy_readlen, ENEMY_TACTICSOPTION, token); #ifdef _BATTLENPC_WARP_PLAYER ret = getStringFromIndexWithDelim( line, ",", 3, token, sizeof(token)); if(ret==FALSE){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENEMY_setChar( enemy_readlen, ENEMY_ACT_CONDITION, token); @@ -439,7 +439,7 @@ BOOL ENEMY_initEnemy( char* filename ) for( i = ENEMY_STARTINTNUM; i < ENEMY_DATAINTNUM+ENEMY_STARTINTNUM; i ++ ) { ret = getStringFromIndexWithDelim( line,",",i,token,sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); break; } ENEMY_setInt( enemy_readlen, i - ENEMY_STARTINTNUM, atoi( token)); @@ -451,7 +451,7 @@ BOOL ENEMY_initEnemy( char* filename ) } } if( i == ENEMYTEMP_enemynum) { - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } ENEMY_enemy[enemy_readlen].enemytemparray = i; @@ -470,12 +470,12 @@ BOOL ENEMY_initEnemy( char* filename ) } fclose(f); ENEMY_enemynum = enemy_readlen; - print( "有效宠物数是 %d..", ENEMY_enemynum ); + print( "鏈夋晥瀹犵墿鏁版槸 %d..", ENEMY_enemynum ); return TRUE; } /*------------------------------------------------------------------------ - * ENEMY_enemy及涩烂白央奶伙 心 仄 + * ENEMY_enemy鍙婃订鐑傜櫧澶ザ浼 蹇 浠 *-----------------------------------------------------------------------*/ BOOL ENEMY_reinitEnemy( void ) { @@ -484,7 +484,7 @@ BOOL ENEMY_reinitEnemy( void ) } /*------------------------------------------------------------------------ - ENEMY_Enemy及骄侬毛襞月 + ENEMY_Enemy鍙婇獎渚瘺瑗炴湀 *-----------------------------------------------------------------------*/ int ENEMY_getEnemyArrayFromIndex( int groupindex, int index) { @@ -493,7 +493,7 @@ int ENEMY_getEnemyArrayFromIndex( int groupindex, int index) return GROUP_group[groupindex].enemyarray[index]; } /*------------------------------------------------------------------------ - * ENEMY_ID 井日ENEMY_Enemy及骄侬毛襞月 + * ENEMY_ID 浜曟棩ENEMY_Enemy鍙婇獎渚瘺瑗炴湀 *-----------------------------------------------------------------------*/ int ENEMY_getEnemyArrayFromId( int EnemyId) { @@ -540,7 +540,7 @@ int ENEMY_getEnemyTempNoFromId( int EnemyId) } /*------------------------------------------------------------------------ - * 弘伙□皿涩烂白央奶伙毛 戈 + * 寮樹紮鈻$毧娑╃儌鐧藉ぎ濂朵紮姣 鎴 *-----------------------------------------------------------------------*/ BOOL GROUP_initGroup( char* filename ) { @@ -552,13 +552,13 @@ BOOL GROUP_initGroup( char* filename ) f = fopen(filename,"r"); if( f == NULL ){ - print( "文件打开失败\n"); + print( "鏂囦欢鎵撳紑澶辫触\n"); return FALSE; } GROUP_groupnum=0; - /* 引内 躲卅垫互窒垫丐月井升丹井譬屯月 */ + /* 寮曞唴 韬插崊鍨簰绐掑灚涓愭湀浜曞崌涓逛簳璀悲鏈 */ while( fgets( line, sizeof( line ), f ) ){ linenum ++; if( line[0] == '#' )continue; /* comment */ @@ -569,7 +569,7 @@ BOOL GROUP_initGroup( char* filename ) } if( fseek( f, 0, SEEK_SET ) == -1 ){ - fprint( "寻找失败\n" ); + fprint( "瀵绘壘澶辫触\n" ); fclose(f); return FALSE; } @@ -577,12 +577,12 @@ BOOL GROUP_initGroup( char* filename ) GROUP_group = allocateMemory( sizeof(struct tagGROUP_Table) * GROUP_groupnum ); if( GROUP_group == NULL ){ - fprint( "无法分配内存 %d\n" , + fprint( "鏃犳硶鍒嗛厤鍐呭瓨 %d\n" , sizeof(struct tagGROUP_Table)*GROUP_groupnum); fclose( f ); return FALSE; } - /* 赓渝祭 */ + /* 璧撴笣绁 */ for( i = 0; i < GROUP_groupnum; i ++ ) { for( j = 0; j < GROUP_DATAINTNUM; j ++ ) { GROUP_setInt( i,j,-1); @@ -592,7 +592,7 @@ BOOL GROUP_initGroup( char* filename ) } } - /* 引凶 心 允 */ + /* 寮曞嚩 蹇 鍏 */ linenum = 0; while( fgets( line, sizeof( line ), f ) ){ linenum ++; @@ -600,10 +600,10 @@ BOOL GROUP_initGroup( char* filename ) if( line[0] == '\n' )continue; /* none */ chomp( line ); - /* 垫毛帮溥允月 */ - /* 引内 tab 毛 " " 卞 五晶尹月 */ + /* 鍨瘺甯亥鍏佹湀 */ + /* 寮曞唴 tab 姣 " " 鍗 浜旀櫠灏规湀 */ replaceString( line, '\t' , ' ' ); - /* 燮 及旦矢□旦毛潸月[*/ + /* 鐕 鍙婃棪鐭⑩枴鏃︽瘺娼告湀锛*/ { char buf[256]; for( i = 0; i < strlen( line); i ++) { @@ -621,7 +621,7 @@ BOOL GROUP_initGroup( char* filename ) int ret; int loop; - /* 手仄手ㄡ蘸户及伙□皿卞 匀凶凛及凶户卞赓渝祭仄化云仁 */ + /* 鎵嬩粍鎵嬨劇铇告埛鍙婁紮鈻$毧鍗 鍖鍑跺嚊鍙婂嚩鎴峰崬璧撴笣绁粍鍖栦簯浠 */ for( j = 0; j < GROUP_DATAINTNUM; j ++ ) { GROUP_setInt( group_readlen,j,-1); } @@ -629,22 +629,22 @@ BOOL GROUP_initGroup( char* filename ) GROUP_group[group_readlen].enemyarray[j] = -1; } - /* 夫午勾户及玄□弁件毛苇月 */ + /* 澶崍鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",1,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } GROUP_setChar( group_readlen, GROUP_NAME, token); - /* 2勾 动嫦反醒袄犯□正 */ + /* 2鍕 鍔ㄥ鍙嶉啋琚勭姱鈻℃ */ #define GROUP_STARTINTNUM 2 for( i = GROUP_STARTINTNUM; i < GROUP_DATAINTNUM+GROUP_STARTINTNUM; i ++ ) { ret = getStringFromIndexWithDelim( line,",",i,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); break; } if( strlen( token) != 0 ) { @@ -675,13 +675,13 @@ BOOL GROUP_initGroup( char* filename ) } } if( enemycnt == 0 ) { - fprint("团队设定中敌人尚未设定 文件:%s 第%d行\n",filename,linenum); + fprint("鍥㈤槦璁惧畾涓晫浜哄皻鏈瀹 鏂囦欢:%s 绗%d琛孿n",filename,linenum); continue;; } if( checkRedundancy( &GROUP_group[group_readlen].intdata[ENEMY_ID1], CREATEPROB1 - ENEMY_ID1)) { - fprint("团队设定中敌人重复设定 文件:%s 第%d行\n",filename,linenum); + fprint("鍥㈤槦璁惧畾涓晫浜洪噸澶嶈瀹 鏂囦欢:%s 绗%d琛孿n",filename,linenum); continue;; } @@ -695,12 +695,12 @@ BOOL GROUP_initGroup( char* filename ) GROUP_groupnum = group_readlen; - print( "有效遇敌组群数是 %d...", GROUP_groupnum ); + print( "鏈夋晥閬囨晫缁勭兢鏁版槸 %d...", GROUP_groupnum ); return TRUE; } /*------------------------------------------------------------------------ - * 弘伙□皿及涩烂白央奶伙 心 仄 + * 寮樹紮鈻$毧鍙婃订鐑傜櫧澶ザ浼 蹇 浠 *-----------------------------------------------------------------------*/ BOOL GROUP_reinitGroup( void ) { @@ -708,7 +708,7 @@ BOOL GROUP_reinitGroup( void ) return( GROUP_initGroup( getGroupfile())); } /*------------------------------------------------------------------------ - * GROUP_ID 井日GROUP_Group及骄侬毛襞月 + * GROUP_ID 浜曟棩GROUP_Group鍙婇獎渚瘺瑗炴湀 *-----------------------------------------------------------------------*/ int GROUP_getGroupArray( int groupid) { @@ -721,7 +721,7 @@ int GROUP_getGroupArray( int groupid) return -1; } /*------------------------------------------------------------------------ - * 潸 烦董袄毛综岳允月[ + * 娼 鐑﹁懀琚勬瘺缁煎渤鍏佹湀锛 *-----------------------------------------------------------------------*/ static int ENEMY_getExp( int array,int tarray, int level, int rank ) { @@ -747,7 +747,7 @@ static int ENEMY_getExp( int array,int tarray, int level, int rank ) p = ENEMY_enemy[array].intdata; tp = ENEMYTEMP_enemy[tarray].intdata; - // 仿件弁井日 毛潸 + // 浠夸欢寮佷簳鏃 姣涙礁 if( rank < 0 || rank > 5 ) rank = 0; ranknum = ranktbl[rank].rank; @@ -756,7 +756,7 @@ static int ENEMY_getExp( int array,int tarray, int level, int rank ) + *( tp + E_T_STONE) + *( tp + E_T_DRUNK) + *(tp + E_T_CONFUSION) ) / 100.0 + *( tp + E_T_RARE); - /* EXP>湘 EXP≈- 仿件弁≈汐 ←伊矛伙×*/ + /* EXP锛炴箻 EXP鈮堬紞 浠夸欢寮佲増姹 鈫愪紛鐭涗紮脳*/ //return enemybaseexptbl[*(p+ENEMY_LV)] + (ranknum + alpha)*(*(tp+ENEMY_LV)); ret = enemybaseexptbl[level] + (ranknum + alpha)*(level+1); return ( ret < 1 ) ? 1 : ret; @@ -775,7 +775,7 @@ int ENEMY_getRank( int array, int tarray ){ int num; float rank; }ranktbl[] = { - { 100, 2.5}, //总成长率 >= 100 petrank=0 + { 100, 2.5}, //鎬绘垚闀跨巼 >= 100 petrank=0 { 95, 2.0}, { 90, 1.5}, { 85, 1.0}, @@ -785,14 +785,14 @@ int ENEMY_getRank( int array, int tarray ){ p = ENEMY_enemy[array].intdata; tp = ENEMYTEMP_enemy[tarray].intdata; - /* 仿件弁毛煌遥允月 */ - /* 仇及 及酷 反酷 踏毛辅哔及仪[ */ + /* 浠夸欢寮佹瘺鐓岄仴鍏佹湀 */ + /* 浠囧強 鍙婇叿 鍙嶉叿 韪忔瘺杈呭摂鍙婁华锛 */ paramsum = *( tp + E_T_BASEVITAL) + *( tp + E_T_BASESTR) + *( tp + E_T_BASETGH) + *( tp + E_T_BASEDEX); - ranknum = 0; // 犯白巧伙玄反ㄟ + ranknum = 0; // 鐘櫧宸т紮鐜勫弽銊 for( i = 0; i < arraysizeof( ranktbl); i ++ ) { if( paramsum >= ranktbl[i].num ) { ranknum = i; @@ -806,69 +806,69 @@ int ENEMY_getRank( int array, int tarray ){ //********************************************************* -// 仿件母丞卅 +// 浠夸欢姣嶄笧鍗 //********************************************************* static int EnemyGymSkill[] = { - PETSKILL_GUARDBREAK, // ㄢ“布□玉旰仄(3) - PETSKILL_CONTINUATIONATTACK1, // ㄠㄟ“ 粮 猾(10) - PETSKILL_CONTINUATIONATTACK2, // ㄠㄠ“ 粮 猾(11) - PETSKILL_CONTINUATIONATTACK3, // ㄠㄡ“ 粮 猾(12) - PETSKILL_CHARGE1, // ㄢㄟ“民乓□斥ㄠ(30) - PETSKILL_CHARGE2, // ㄢㄠ“民乓□斥ㄡ(31) - PETSKILL_MIGHTY1, // ㄣㄟ“域猾 诮(40) - PETSKILL_MIGHTY2, // ㄣㄠ“域猾 诮(41) - PETSKILL_POWERBALANCE1, // ㄤㄟ“ 及讽ㄠ(50) - PETSKILL_POWERBALANCE2, // ㄤㄠ“ 及讽ㄡ(51) - PETSKILL_POWERBALANCE3, // ㄤㄡ“ 及讽ㄢ(52) - PETSKILL_POISON_ATTACK1, // ㄥㄟ“ 猾(60) - PETSKILL_POISON_ATTACK2, // ㄥㄠ“ 猾(61) - PETSKILL_STONE, // ㄧㄟ“檗祭 猾(80) - PETSKILL_CONFUSION_ATTACK, // ㄨㄟ“渔刭 猾(90) - PETSKILL_DRUNK_ATTACK, // ㄠㄟㄟ“听办 猾(100) - PETSKILL_SLEEP_ATTACK, // ㄠㄠㄟ“戽曰 猾(110) - PETSKILL_NOGUARD1, // ㄠㄤㄟ“用□布□玉ㄠ(150) - PETSKILL_NOGUARD2, // ㄠㄤㄠ“用□布□玉ㄡ(151) - PETSKILL_NOGUARD3, // ㄠㄤㄡ“用□布□玉ㄢ(152) + PETSKILL_GUARDBREAK, // 銊⑩滃竷鈻$帀鏃颁粍(3) + PETSKILL_CONTINUATIONATTACK1, // 銊犮劅鈥 绮 鐚(10) + PETSKILL_CONTINUATIONATTACK2, // 銊犮劆鈥 绮 鐚(11) + PETSKILL_CONTINUATIONATTACK3, // 銊犮劇鈥 绮 鐚(12) + PETSKILL_CHARGE1, // 銊€劅鈥滄皯涔撯枴鏂ャ劆(30) + PETSKILL_CHARGE2, // 銊€劆鈥滄皯涔撯枴鏂ャ劇(31) + PETSKILL_MIGHTY1, // 銊c劅鈥滃煙鐚 璇(40) + PETSKILL_MIGHTY2, // 銊c劆鈥滃煙鐚 璇(41) + PETSKILL_POWERBALANCE1, // 銊ゃ劅鈥 鍙婅銊(50) + PETSKILL_POWERBALANCE2, // 銊ゃ劆鈥 鍙婅銊(51) + PETSKILL_POWERBALANCE3, // 銊ゃ劇鈥 鍙婅銊(52) + PETSKILL_POISON_ATTACK1, // 銊ャ劅鈥 鐚(60) + PETSKILL_POISON_ATTACK2, // 銊ャ劆鈥 鐚(61) + PETSKILL_STONE, // 銊с劅鈥滄獥绁 鐚(80) + PETSKILL_CONFUSION_ATTACK, // 銊ㄣ劅鈥滄笖鍒 鐚(90) + PETSKILL_DRUNK_ATTACK, // 銊犮劅銊熲滃惉鍔 鐚(100) + PETSKILL_SLEEP_ATTACK, // 銊犮劆銊熲滄埥鏇 鐚(110) + PETSKILL_NOGUARD1, // 銊犮劋銊熲滅敤鈻″竷鈻$帀銊(150) + PETSKILL_NOGUARD2, // 銊犮劋銊犫滅敤鈻″竷鈻$帀銊(151) + PETSKILL_NOGUARD3, // 銊犮劋銊♀滅敤鈻″竷鈻$帀銊(152) #ifdef _PSKILL_FALLGROUND - PETSKILL_FALLGROUND, //落马术 + PETSKILL_FALLGROUND, //钀介┈鏈 #endif #ifdef _SKILL_DAMAGETOHP - PETSKILL_DAMAGETOHP, //嗜血技 + PETSKILL_DAMAGETOHP, //鍡滆鎶 #endif #ifdef _Skill_MPDAMAGE - PETSKILL_MPDAMAGE, //MP伤害 + PETSKILL_MPDAMAGE, //MP浼ゅ #endif #ifdef _SKILL_WILDVIOLENT_ATT - PETSKILL_WILDVIOLENTATTACK, //(540)狂暴攻击 vincent add 2002/05/16 + PETSKILL_WILDVIOLENTATTACK, //(540)鐙傛毚鏀诲嚮 vincent add 2002/05/16 #endif #ifdef _SKILL_SPEEDY_ATT - PETSKILL_SPEEDYATTACK, //(541)疾速攻击 vincent add 2002/05/16 + PETSKILL_SPEEDYATTACK, //(541)鐤鹃熸敾鍑 vincent add 2002/05/16 #endif #ifdef _SKILL_GUARDBREAK2 - PETSKILL_GUARDBREAK2, //(542)破除防御2 vincent add 2002/05/20 + PETSKILL_GUARDBREAK2, //(542)鐮撮櫎闃插尽2 vincent add 2002/05/20 #endif #ifdef _SKILL_SACRIFICE - PETSKILL_SACRIFICE, //(543)救援 vincent add 2002/05/30 + PETSKILL_SACRIFICE, //(543)鏁戞彺 vincent add 2002/05/30 #endif #ifdef _SKILL_WEAKEN - PETSKILL_WEAKEN, //(544)救援 vincent add 2002/07/11 + PETSKILL_WEAKEN, //(544)鏁戞彺 vincent add 2002/07/11 #endif #ifdef _SKILL_DEEPPOISON - PETSKILL_DEEPPOISON, //(545)救援 vincent add 2002/07/16 + PETSKILL_DEEPPOISON, //(545)鏁戞彺 vincent add 2002/07/16 #endif #ifdef _SKILL_BARRIER - PETSKILL_BARRIER, //(546)魔障 vincent add 2002/07/16 + PETSKILL_BARRIER, //(546)榄旈殰 vincent add 2002/07/16 #endif #ifdef _SKILL_NOCAST - PETSKILL_NOCAST, //(547)沉默 vincent add 2002/07/16 + PETSKILL_NOCAST, //(547)娌夐粯 vincent add 2002/07/16 #endif #ifdef _SKILL_ROAR - PETSKILL_ROAR, //(548)大吼 vincent add 2002/07/11 + PETSKILL_ROAR, //(548)澶у惣 vincent add 2002/07/11 #endif #ifdef _SKILL_REFRESH - PETSKILL_REFRESH, //(550)救援 vincent add 2002/08/08 + PETSKILL_REFRESH, //(550)鏁戞彺 vincent add 2002/08/08 #endif #ifdef _VARY_WOLF PETSKILL_VARY, @@ -908,29 +908,29 @@ static int gymbody[] = { /*------------------------------------------------------------------------ - * ENEMY{卞仿件母丞卅 毛芨尹月 + * ENEMY锝涘崬浠夸欢姣嶄笧鍗 姣涜姩灏规湀 *-----------------------------------------------------------------------*/ int ENEMY_RandomChange( int enemyindex, int tempno ) { int work, work2, iRet = 0; - // 仿件母丞平乓仿井升丹井民尼永弁 + // 浠夸欢姣嶄笧骞充箵浠夸簳鍗囦腹浜曟皯灏兼案寮 if( ( 564 <= tempno && tempno <= 580 ) || ( 739 <= tempno && tempno <= 750 ) || ( 895 <= tempno && tempno <= 906 ) ){ //******************************************** - // 皿伊奶乩□及涌 + // 鐨夸紛濂朵供鈻″強娑 //******************************************** iRet = 1; }else - // 仿件母丞平乓仿井升丹井民尼永弁 + // 浠夸欢姣嶄笧骞充箵浠夸簳鍗囦腹浜曟皯灏兼案寮 if( ( 655 <= tempno && tempno <= 720 ) || ( 859 <= tempno && tempno <= 894 ) || ( 907 <= tempno && tempno <= 940 ) ){ //******************************************** - // 矢永玄及涌 + // 鐭㈡案鐜勫強娑 //******************************************** iRet = 2; }else{ @@ -941,15 +941,15 @@ int ENEMY_RandomChange( int enemyindex, int tempno ) if( iRet == 1 ){ //******************************************** // - // 皿伊奶乩□及涌仄凶衬卅及匹}箪岭手仿件母丞 + // 鐨夸紛濂朵供鈻″強娑屼粍鍑惰‖鍗呭強鍖癸綕绠箔鎵嬩豢浠舵瘝涓 // //******************************************** - // 铣手仿件母丞 + // 閾f墜浠夸欢姣嶄笧 CHAR_setInt( enemyindex, CHAR_BASEBASEIMAGENUMBER, gymbody[RAND( 0, arraysizeof( gymbody ) - 1)] ); CHAR_setInt( enemyindex, CHAR_BASEIMAGENUMBER, CHAR_getInt( enemyindex, CHAR_BASEBASEIMAGENUMBER ) ); - // 箪岭反赝癫 + // 绠箔鍙嶈禎鐧 work = ( RAND( 0, 20 ) - 10 ) * 10; work2 = 100 - ABS( work ); CHAR_setInt( enemyindex, CHAR_EARTHAT, work ); @@ -960,28 +960,28 @@ int ENEMY_RandomChange( int enemyindex, int tempno ) CHAR_setInt( enemyindex, CHAR_WATERAT, work2 ); CHAR_setInt( enemyindex, CHAR_WINDAT, -work2 ); - // 仿件母丞卅 湛毛 凶六月 + // 浠夸欢姣嶄笧鍗 婀涙瘺 鍑跺叚鏈 if( DoujyouRandomWeponSet( enemyindex ) ){ - // 溃 湛及桦宁反骚橘 猾毛勾仃月 + // 婧 婀涘強妗﹀畞鍙嶉獨姗 鐚炬瘺鍕句粌鏈 CHAR_setPetSkill( enemyindex, 0, PETSKILL_NORMALATTACK ); CHAR_setPetSkill( enemyindex, 1, PETSKILL_NORMALATTACK ); }else{ - // 溃 湛元扎卅中及匹 勾仃月 - // 毛尥仃月 + // 婧 婀涘厓鎵庡崊涓強鍖 鍕句粌鏈 + // 姣涘哎浠冩湀 CHAR_setPetSkill( enemyindex, 0, EnemyGymSkill[RAND( 0, arraysizeof( EnemyGymSkill ) - 1 )] ); - // 毛尥仃月 + // 姣涘哎浠冩湀 CHAR_setPetSkill( enemyindex, 1, EnemyGymSkill[RAND( 0, arraysizeof( EnemyGymSkill ) - 1 )] ); } }else if( iRet == 2 ){ - // 溃 湛元扎卅中及匹 勾仃月 - // 毛尥仃月 + // 婧 婀涘厓鎵庡崊涓強鍖 鍕句粌鏈 + // 姣涘哎浠冩湀 CHAR_setPetSkill( enemyindex, 0, EnemyGymSkill[RAND( 0, arraysizeof( EnemyGymSkill ) - 1 )] ); - // 毛尥仃月 + // 姣涘哎浠冩湀 CHAR_setPetSkill( enemyindex, 1, EnemyGymSkill[RAND( 0, arraysizeof( EnemyGymSkill ) - 1 )] ); } @@ -992,7 +992,7 @@ int ENEMY_RandomChange( int enemyindex, int tempno ) /*------------------------------------------------------------------------ - * ENEMY_enemy井日平乓仿弁正□毛综岳允月[ + * ENEMY_enemy浜曟棩骞充箵浠垮紒姝b枴姣涚患宀冲厑鏈堬蓟 *-----------------------------------------------------------------------*/ int ENEMY_createEnemy( int array, int baselevel ) { @@ -1011,50 +1011,50 @@ int ENEMY_createEnemy( int array, int baselevel ) tarray = ENEMYTEMP_getEnemyTempArray( array); if( !ENEMYTEMP_CHECKINDEX( tarray)) return -1; // tp = ENEMYTEMP_enemy[tarray].intdata; - // 犯□正戊疋□ + // 鐘枴姝f垔鐤嬧枴 for( i = 0; i < E_T_DATAINTNUM; i ++ ){ tp[i] = ENEMYTEMP_enemy[tarray].intdata[i]; } - // 赓渝祭 + // 璧撴笣绁 memset( &CharNew, 0, sizeof( Char ) ); if( !CHAR_getDefaultChar( &CharNew,31010 ) )return -1; - /* 飓 寞 */ + /* 椋 瀵 */ CharNew.data[CHAR_BASEBASEIMAGENUMBER] = CharNew.data[CHAR_BASEIMAGENUMBER] = *(tp+E_T_IMGNUMBER); - /* 衬匹丐月午涩烂允月 */ + /* 琛尮涓愭湀鍗堟订鐑傚厑鏈 */ CharNew.data[CHAR_WHICHTYPE] = CHAR_TYPEENEMY; - /* 毛壅允 */ + /* 姣涘鍏 */ CharNew.data[CHAR_DUELPOINT] = 0; - /* 伊矛伙毛瑁烂允月[ */ + /* 浼婄煕浼欐瘺鐟佺儌鍏佹湀锛 */ if( baselevel > 0 ){ - level = baselevel; // 伊矛伙裔烂 + level = baselevel; // 浼婄煕浼欒鐑 }else{ level = RAND( (*(p + ENEMY_LV_MIN)), (*(p+ ENEMY_LV_MAX))); } #define E_PAR( a) (*(p + (a))) #define ET_PAR( a) (*(tp + (a))) -/* 由仿丢□正隙醒井日 端及湘 由仿丢□正尺及煌遥挚 */ +/* 鐢变豢涓⑩枴姝i殭閱掍簳鏃 绔強婀 鐢变豢涓⑩枴姝e昂鍙婄厡閬ユ寶 */ #if 1 #define PARAM_CAL( l) ( ( level -1)*ET_PAR( E_T_LVUPPOINT)+ ET_PAR(E_T_INITNUM)) * ET_PAR( (l)) #else #define PARAM_CAL( l) ( (E_PAR(ENEMY_LV) -1)*ET_PAR( E_T_LVUPPOINT)+ ET_PAR(E_T_INITNUM)) * ET_PAR( (l)) #endif - /* 燮内湘 喃曰蕊曰禾奶件玄卞+ㄡ毛仿件母丞匹垫丹 */ + /* 鐕唴婀 鍠冩洶钑婃洶绂惧ザ浠剁巹鍗烇紜銊℃瘺浠夸欢姣嶄笧鍖瑰灚涓 */ tp[E_T_BASEVITAL] += RAND( 0, 4 ) - 2; tp[E_T_BASESTR] += RAND( 0, 4 ) - 2; tp[E_T_BASETGH] += RAND( 0, 4 ) - 2; tp[E_T_BASEDEX] += RAND( 0, 4 ) - 2; - /* 仇及凛鳔匹喃曰蕊曰禾奶件玄毛忡绣仄化云仁 */ + /* 浠囧強鍑涢硵鍖瑰杻鏇拌晩鏇扮濂朵欢鐜勬瘺蹇$唬浠勫寲浜戜粊 */ CharNew.data[CHAR_ALLOCPOINT] = ( tp[E_T_BASEVITAL] << 24 ) + ( tp[E_T_BASESTR] << 16 ) + ( tp[E_T_BASETGH] << 8 ) + ( tp[E_T_BASEDEX] << 0 ); - /* 公及 }仿件母丞匹禾奶件玄毛ㄠ勿勾笛遥[仇木毛ㄠㄟ荚楞曰忒允[*/ + /* 鍏強 锝濅豢浠舵瘝涓炲尮绂惧ザ浠剁巹姣涖劆鍕垮嬀绗涢仴锛讳粐鏈ㄦ瘺銊犮劅鑽氭鏇板繏鍏侊蓟*/ for( i = 0; i < 10; i ++ ){ int work = RAND( 0, 3 ); if( work == 0 )tp[E_T_BASEVITAL]++; @@ -1063,7 +1063,7 @@ int ENEMY_createEnemy( int array, int baselevel ) if( work == 3 )tp[E_T_BASEDEX]++; } - /* 由仿丢□正本永玄 */ + /* 鐢变豢涓⑩枴姝f湰姘哥巹 */ CharNew.data[CHAR_VITAL] = PARAM_CAL(E_T_BASEVITAL); CharNew.data[CHAR_STR] = PARAM_CAL(E_T_BASESTR); CharNew.data[CHAR_TOUGH] = PARAM_CAL(E_T_BASETGH); @@ -1111,9 +1111,9 @@ int ENEMY_createEnemy( int array, int baselevel ) newindex = CHAR_initCharOneArray( &CharNew ); #ifdef _CAX_LVTISHI -if (CHAR_getInt( newindex, CHAR_LV) == 1){//宝宝 +if (CHAR_getInt( newindex, CHAR_LV) == 1){//瀹濆疂 char buff[256]; - snprintf( buff, sizeof( buff),"%s宝宝",CHAR_getChar( newindex, CHAR_NAME)); + snprintf( buff, sizeof( buff),"%s瀹濆疂",CHAR_getChar( newindex, CHAR_NAME)); CHAR_setChar( newindex, CHAR_NAME, buff); } #endif @@ -1140,12 +1140,12 @@ if (CHAR_getInt( newindex, CHAR_LV) == 1){// style = (*(p + ENEMY_STYLE)); switch( style ){ case 1: wepon = 0;break; // - case 2: wepon = 100;break; // 轺徇 - case 3: wepon = 200;break; // 键 - case 4: wepon = 400;break; // 菰 - case 5: wepon = 500;break; // 皮□丢仿件 - case 6: wepon = 700;break; // 髑仆檗 - case 7: wepon = 600;break; // 髑仆 + case 2: wepon = 100;break; // 杞哄緡 + case 3: wepon = 200;break; // 閿 + case 4: wepon = 400;break; // 鑿 + case 5: wepon = 500;break; // 鐨枴涓豢浠 + case 6: wepon = 700;break; // 楂戜粏妾 + case 7: wepon = 600;break; // 楂戜粏 default:break; } if( wepon >= 0 ){ @@ -1181,7 +1181,7 @@ if (CHAR_getInt( newindex, CHAR_LV) == 1){// } } #endif -#ifdef _PETSKILL_BECOMEFOX //将媚惑术中招时间清除为-1 +#ifdef _PETSKILL_BECOMEFOX //灏嗗獨鎯戞湳涓嫑鏃堕棿娓呴櫎涓-1 CHAR_setWorkInt( newindex, CHAR_WORKFOXROUND, -1 ); #endif return newindex; @@ -1246,35 +1246,35 @@ static RANDOMENEMY RandomEnemyTbl[] = { /*------------------------------------------------------------ - * 衬 涩烂及摹 寞互 溃卅袄卅日仿件母丞卞涩烂允月 + * 琛 娑╃儌鍙婃懝 瀵炰簰 婧冨崊琚勫崊鏃ヤ豢浠舵瘝涓炲崬娑╃儌鍏佹湀 ------------------------------------------------------------*/ int ENEMY_RandomEnemyArray( int e_array, int *pNew ) { int i = 0, randwork, work; // RANDOMENEMY *pRandomEnemy; *pNew = -1; - // 仇及 区反仿件母丞 + // 浠囧強 鍖哄弽浠夸欢姣嶄笧 if( ( RANDOMENEMY_TOP <= e_array && e_array <= RANDOMENEMY_END ) || ( 964 <= e_array && e_array <= 969 ) ){ - // 升及母立□井譬屯月 + // 鍗囧強姣嶇珛鈻′簳璀悲鏈 for( i = 0; i < arraysizeof( RandomEnemyTbl ); i ++ ){ if( RandomEnemyTbl[i].num == e_array ){ break; } } - // 区毛译尹化中凶日巨仿□匹 仃月 + // 鍖烘瘺璇戝肮鍖栦腑鍑舵棩宸ㄤ豢鈻″尮 浠冩湀 if( i >= arraysizeof( RandomEnemyTbl ) ) return 0; - // 仿件母丞涩烂 + // 浠夸欢姣嶄笧娑╃儌 randwork = RAND( 0, RandomEnemyTbl[i].arraysize - 1 ); - // 井日蕙仄中 寞毛潸 + // 浜曟棩钑欎粍涓 瀵炴瘺娼 work = RandomEnemyTbl[i].pTbl[randwork]; *pNew = ENEMY_getEnemyArrayFromId( work ); return 1; }else{ - // 窒仪手卅中 + // 绐掍华鎵嬪崊涓 return 0; } } @@ -1373,7 +1373,7 @@ int *ENEMY_getEnemy( int charaindex, int x, int y) int newarray, enemywork; e_array = ENEMY_getEnemyArrayFromIndex( g_array, i - ENEMY_ID1 ); -#ifdef _ADD_ENCOUNT // WON ADD 增加敌遭遇触发修件 +#ifdef _ADD_ENCOUNT // WON ADD 澧炲姞鏁岄伃閬囪Е鍙戜慨浠 { int char_event_now = -1, char_event_end = -1; if(ENCOUNT_table[array].event_now != -1){ @@ -1525,7 +1525,7 @@ int ENEMY_createPetFromEnemyIndex( int charaindex, int array) if( work == 2 )tp[E_T_BASETGH]++; if( work == 3 )tp[E_T_BASEDEX]++; } - /* 由仿丢□正本永玄 */ + /* 鐢变豢涓⑩枴姝f湰姘哥巹 */ CharNew.data[CHAR_VITAL] = PARAM_CAL(E_T_BASEVITAL); CharNew.data[CHAR_STR] = PARAM_CAL(E_T_BASESTR); CharNew.data[CHAR_TOUGH] = PARAM_CAL(E_T_BASETGH); @@ -1657,7 +1657,7 @@ int ENEMY_createPet( int array, int vital, int str, int tgh, int dex) if( work == 2 )tp[E_T_BASETGH]++; if( work == 3 )tp[E_T_BASEDEX]++; } - /* 由仿丢□正本永玄 */ + /* 鐢变豢涓⑩枴姝f湰姘哥巹 */ CharNew.data[CHAR_VITAL] = PARAM_CAL(E_T_BASEVITAL); CharNew.data[CHAR_STR] = PARAM_CAL(E_T_BASESTR); CharNew.data[CHAR_TOUGH] = PARAM_CAL(E_T_BASETGH); @@ -1781,7 +1781,7 @@ int ENEMY_createPetFromEnemyBaseIndex( int charaindex, int array, int level ) if( work == 2 )tp[E_T_BASETGH]++; if( work == 3 )tp[E_T_BASEDEX]++; } - /* 由仿丢□正本永玄 */ + /* 鐢变豢涓⑩枴姝f湰姘哥巹 */ CharNew.data[CHAR_VITAL] = PARAM_CAL(E_T_BASEVITAL); CharNew.data[CHAR_STR] = PARAM_CAL(E_T_BASESTR); CharNew.data[CHAR_TOUGH] = PARAM_CAL(E_T_BASETGH); @@ -1933,9 +1933,9 @@ int ENEMY_TEST_createPetIndex( int array) (char *)ENEMYTEMP_enemy[tarray].chardata[E_T_NAME].string ); newindex = PET_initCharOneArray( &CharNew ); #ifdef _CAX_LVTISHI -if (CHAR_getInt( newindex, CHAR_LV) == 1){//宝宝 +if (CHAR_getInt( newindex, CHAR_LV) == 1){//瀹濆疂 char buff[256]; - snprintf( buff, sizeof( buff),"%s宝宝",CHAR_getChar( newindex, CHAR_NAME)); + snprintf( buff, sizeof( buff),"%s瀹濆疂",CHAR_getChar( newindex, CHAR_NAME)); CHAR_setChar( newindex, CHAR_NAME, buff); } #endif @@ -1982,19 +1982,19 @@ BOOL PETFUSION_getIndexForChar( int toindex, int *MainIndex, int *Subindex1, int #endif #ifdef _PET_2TRANS if( CHAR_getInt( petindex, CHAR_TRANSMIGRATION ) ==2){ - CHAR_talkToCli( toindex, -1, "二转宠物不能融合。", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "浜岃浆瀹犵墿涓嶈兘铻嶅悎銆", CHAR_COLORYELLOW); return FALSE; } #endif #ifdef _CAX_PET_EVOLUTION } if( CHAR_getInt( petindex, CHAR_TRANSMIGRATION ) == 3 ) { - CHAR_talkToCli( toindex, -1, "三转宠物不能融合。", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "涓夎浆瀹犵墿涓嶈兘铻嶅悎銆", CHAR_COLORYELLOW); return FALSE; } #endif if( rideindex == petindex) { - CHAR_talkToCli( toindex, -1, "骑乘中的宠不能融合。", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "楠戜箻涓殑瀹犱笉鑳借瀺鍚堛", CHAR_COLORYELLOW); return FALSE; } if( i == 0 ) { @@ -2024,7 +2024,7 @@ int NPC_getPetArrayForNo( int PetCode) } int NPC_getFusionTableForBase( int charaindex, int petindex1, int petindex2 ) { - int base1, base2;// 属性,PETCODE + int base1, base2;// 灞炴,PETCODE if( !CHAR_CHECKINDEX( petindex1) ) return -1; if( !CHAR_CHECKINDEX( petindex2) ) return -1; #ifdef _PET_EVOLUTION @@ -2115,9 +2115,9 @@ int EVOLUTION_createPetFromEnemyIndex( int charaindex, int baseindex, int flg) #ifdef _illegalpetskill_CF int illegalpetskill[25] = {41,52,600,601,602,603,604,614,617,628,630,631,635,638,641, getIllegalPetskill(0),getIllegalPetskill(1),getIllegalPetskill(2),getIllegalPetskill(3),getIllegalPetskill(4), - getIllegalPetskill(5),getIllegalPetskill(6),getIllegalPetskill(7),getIllegalPetskill(8),getIllegalPetskill(9)};//自定义禁止遗传宠物技能 + getIllegalPetskill(5),getIllegalPetskill(6),getIllegalPetskill(7),getIllegalPetskill(8),getIllegalPetskill(9)};//鑷畾涔夌姝㈤仐浼犲疇鐗╂妧鑳 #else - int illegalpetskill[15] = {41,52,600,601,602,603,604,614,617,628,630,631,635,638,641};//不可遗传的宠技 + int illegalpetskill[15] = {41,52,600,601,602,603,604,614,617,628,630,631,635,638,641};//涓嶅彲閬椾紶鐨勫疇鎶 #endif #define E_PAR( a) (*(p + (a))) #define ET_PAR( a) (*(tp + (a))) @@ -2159,9 +2159,9 @@ int EVOLUTION_createPetFromEnemyIndex( int charaindex, int baseindex, int flg) return -1; } if( PET_getEvolutionAns( baseindex, base) == FALSE ) return -1; - for( i=0; i < CHAR_MAXPETSKILLHAVE; i ++ ) {//宠技 + for( i=0; i < CHAR_MAXPETSKILLHAVE; i ++ ) {//瀹犳妧 int j; - for( j=0; j<15; j++) { //检查非法技能 + for( j=0; j<15; j++) { //妫鏌ラ潪娉曟妧鑳 if( illegalpetskill[j] == petskill[i] ){ petskill[i] = -1; break; @@ -2174,7 +2174,7 @@ int EVOLUTION_createPetFromEnemyIndex( int charaindex, int baseindex, int flg) } } if( flg == 1 ){ - havepetelement = CHAR_getCharPetElement( charaindex);//找出宠物空位 + havepetelement = CHAR_getCharPetElement( charaindex);//鎵惧嚭瀹犵墿绌轰綅 if( havepetelement < 0 ) return -1; } //------------------------------------------------------ @@ -2277,7 +2277,7 @@ int PET_CheckIncubate( int charaindex) int petindex = CHAR_getCharPet( charaindex, i); if( !CHAR_CHECKINDEX( petindex) ) continue; if( CHAR_getInt( petindex, CHAR_FUSIONBEIT) != 1 || - CHAR_getInt( petindex, CHAR_FUSIONRAISE) <= 0 )return;//检查是否为融合宠 + CHAR_getInt( petindex, CHAR_FUSIONRAISE) <= 0 )return;//妫鏌ユ槸鍚︿负铻嶅悎瀹 time_l = CHAR_getInt( petindex, CHAR_FUSIONTIMELIMIT); if( time_l < 0 || time_l > checkeage ){ @@ -2289,7 +2289,7 @@ int PET_CheckIncubate( int charaindex) char buf[256]; int levelup, vital, str, tgh, dex; int raise = CHAR_getInt( petindex, CHAR_FUSIONRAISE); - //喂养次数 + //鍠傚吇娆℃暟 raise++; CHAR_setInt( petindex, CHAR_FUSIONTIMELIMIT, (int)time(NULL)+anhour-1); if( raise < 0 ) raise = 0; @@ -2304,10 +2304,10 @@ int PET_CheckIncubate( int charaindex) if( str < 0 ) str = 0; if( tgh < 0 ) tgh = 0; if( dex < 0 ) dex = 0; - //扣属性 + //鎵e睘鎬 levelup = (vital<<24) + (str<<16) + (tgh<<8) + (dex<<0); CHAR_setInt( petindex, CHAR_ALLOCPOINT, levelup); - sprintf( buf, "蛋〈%s〉的品质变差了。", CHAR_getUseName( petindex )); + sprintf( buf, "铔嬨%s銆夌殑鍝佽川鍙樺樊浜嗐", CHAR_getUseName( petindex )); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORYELLOW); LogPetFeed( @@ -2316,7 +2316,7 @@ int PET_CheckIncubate( int charaindex) CHAR_getChar( petindex, CHAR_NAME), petindex, CHAR_getInt( petindex, CHAR_LV), - "品质变差", // Key + "鍝佽川鍙樺樊", // Key CHAR_getInt( charaindex, CHAR_FLOOR), CHAR_getInt( charaindex, CHAR_X), CHAR_getInt( charaindex, CHAR_Y), @@ -2325,7 +2325,7 @@ int PET_CheckIncubate( int charaindex) }else if( (int)checkeage > (time_l+anhour) ){ char buf[256]; - sprintf( buf, "蛋〈%s〉呈现可喂食状态。", CHAR_getUseName( petindex )); + sprintf( buf, "铔嬨%s銆夊憟鐜板彲鍠傞鐘舵併", CHAR_getUseName( petindex )); CHAR_talkToCli( charaindex, -1, buf, CHAR_COLORYELLOW); } } @@ -2340,7 +2340,7 @@ int PET_CheckIncubate( int charaindex) if( !CHAR_CHECKINDEX( masterindex) )return 0; if( CHAR_getInt( charaindex, CHAR_FUSIONBEIT) != 1 || - CHAR_getInt( charaindex, CHAR_FUSIONRAISE) <= 0 ) return 0;//检查是否为融合宠 + CHAR_getInt( charaindex, CHAR_FUSIONRAISE) <= 0 ) return 0;//妫鏌ユ槸鍚︿负铻嶅悎瀹 for(i=0 ; i < CHAR_MAXPETHAVE ; i++) { if( charaindex != CHAR_getCharPet( masterindex, i) ) continue; @@ -2373,10 +2373,10 @@ int PET_CheckIncubate( int charaindex) if( str < 0 ) str = 0; if( tgh < 0 ) tgh = 0; if( dex < 0 ) dex = 0; - //扣属性 + //鎵e睘鎬 levelup = (vital<<24) + (str<<16) + (tgh<<8) + (dex<<0); CHAR_setInt( charaindex, CHAR_ALLOCPOINT, levelup); - sprintf( buf, "蛋〈%s〉的品质变差了。", CHAR_getUseName( charaindex )); + sprintf( buf, "铔嬨%s銆夌殑鍝佽川鍙樺樊浜嗐", CHAR_getUseName( charaindex )); CHAR_talkToCli( masterindex, -1, buf, CHAR_COLORYELLOW); LogPetFeed( @@ -2385,7 +2385,7 @@ int PET_CheckIncubate( int charaindex) CHAR_getChar( charaindex, CHAR_NAME), charaindex, CHAR_getInt( charaindex, CHAR_LV), - "品质变差", // Key + "鍝佽川鍙樺樊", // Key CHAR_getInt( masterindex, CHAR_FLOOR), CHAR_getInt( masterindex, CHAR_X), CHAR_getInt( masterindex, CHAR_Y), @@ -2393,7 +2393,7 @@ int PET_CheckIncubate( int charaindex) }else if( (int)checkeage > (time_l+anhour) ){ char buf[256]; - sprintf( buf, "蛋〈%s〉呈现可喂食状态。", CHAR_getUseName( charaindex )); + sprintf( buf, "铔嬨%s銆夊憟鐜板彲鍠傞鐘舵併", CHAR_getUseName( charaindex )); CHAR_talkToCli( masterindex, -1, buf, CHAR_COLORYELLOW); } return 1; @@ -2474,14 +2474,14 @@ int PETFUSION_SetNewEgg( int toindex , int petindex, int array, int *work, int * CHAR_setMaxExp( petindex, 0); CHAR_setInt( petindex, CHAR_LV, level); - //宠物技能设为七技 + //瀹犵墿鎶鑳借涓轰竷鎶 CHAR_setInt( petindex, CHAR_SLOT, 7); { int j; #ifdef _illegalpetskill_CF int illegalpetskill[25] = {41,52,600,601,602,603,604,614,617,628,630,631,635,638,641, getIllegalPetskill(0),getIllegalPetskill(1),getIllegalPetskill(2),getIllegalPetskill(3),getIllegalPetskill(4), - getIllegalPetskill(5),getIllegalPetskill(6),getIllegalPetskill(7),getIllegalPetskill(8),getIllegalPetskill(9)};//自定义禁止遗传宠物技能 + getIllegalPetskill(5),getIllegalPetskill(6),getIllegalPetskill(7),getIllegalPetskill(8),getIllegalPetskill(9)};//鑷畾涔夌姝㈤仐浼犲疇鐗╂妧鑳 #else int illegalpetskill[15] = {41,52,600,601,602,603,604,614,617,628,630,631,635,638,641}; #endif @@ -2489,7 +2489,7 @@ int PETFUSION_SetNewEgg( int toindex , int petindex, int array, int *work, int * if( RAND( 0, 1 ) == 0 ) { skill1[i] = skill2[i]; } - for( j=0; j<15; j++) { //检查非法技能 + for( j=0; j<15; j++) { //妫鏌ラ潪娉曟妧鑳 if( illegalpetskill[j] == skill1[i] ){ skill1[i] = -1; break; @@ -2566,14 +2566,14 @@ BOOL PETFUSION_AddEgg( int toindex, int petID, int PetCode) int i,j; int petindex, petindex2; - //检查宠物栏是否有空位 + //妫鏌ュ疇鐗╂爮鏄惁鏈夌┖浣 for( i = 0 ;i < CHAR_MAXPETHAVE ; i++) { petindex = CHAR_getCharPet( toindex, i); if( petindex == -1 ) break; } if( i == CHAR_MAXPETHAVE ) { - snprintf( msgbuf,sizeof( msgbuf), "宠物已满!!"); + snprintf( msgbuf,sizeof( msgbuf), "瀹犵墿宸叉弧锛侊紒"); CHAR_talkToCli( toindex, -1, msgbuf, CHAR_COLORYELLOW); return -1; } @@ -2603,7 +2603,7 @@ BOOL PETFUSION_AddEgg( int toindex, int petID, int PetCode) return -1; } CHAR_setInt( petindex2, CHAR_FUSIONINDEX, PetCode); - snprintf( msgbuf,sizeof( msgbuf), "拿到%s。", CHAR_getChar(petindex2,CHAR_NAME)); + snprintf( msgbuf,sizeof( msgbuf), "鎷垮埌%s銆", CHAR_getChar(petindex2,CHAR_NAME)); CHAR_talkToCli( toindex, -1, msgbuf, CHAR_COLORYELLOW); for(j = 0; j < CHAR_MAXPETHAVE; j++){ petindex = CHAR_getCharPet(toindex, j); @@ -2724,7 +2724,7 @@ int GetNewPet( int toindex , int petindex, int array, int *work) CHAR_setInt( petindex, CHAR_DEX , ( PARAM_CAL(E_T_BASEDEX) * work[3] )); CHAR_setMaxExp( petindex, 0); CHAR_setInt( petindex, CHAR_LV, level); - //宠物技能设为七技 + //瀹犵墿鎶鑳借涓轰竷鎶 CHAR_setInt( petindex, CHAR_SLOT, 7); /* for( i=0; i (int)time(NULL) ){ char buff[255]; - sprintf(buff, "\n如之前退出家族,\n需满%d小时才能再加入家族喔!",(CHAR_getInt( meindex, CHAR_FMTIMELIMIT )-(int)time(NULL))/3600+1); + sprintf(buff, "\n濡備箣鍓嶉鍑哄鏃忥紝\n闇婊%d灏忔椂鎵嶈兘鍐嶅姞鍏ュ鏃忓枖锛",(CHAR_getInt( meindex, CHAR_FMTIMELIMIT )-(int)time(NULL))/3600+1); lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, makeEscapeString( buff, buf, sizeof(buf))); @@ -637,7 +637,7 @@ void FAMILY_Join(int fd, int meindex, char *message) // print("JoinFM index:%d fmindex:%d fmname:%s charname:%s charid:%s charlv:%d sprite:%d\n", // index, fmindex, fmname, charname, charid, charlv, fmsprite); -#ifdef _PERSONAL_FAME // Arminius: 家族个人声望 +#ifdef _PERSONAL_FAME // Arminius: 瀹舵棌涓汉澹版湜 // print("fame:%d charfdid:%d\n", CHAR_getInt(meindex, CHAR_FAME), // CONNECT_getFdid(fd)); saacproto_ACJoinFM_send(acfd, fmname, fmindex, charname, charid, charlv, @@ -664,12 +664,12 @@ void ACJoinFM(int fd, int result, int recv) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n谢谢你的加入申请!请先等族长对你的审核通过之後,才算正式加入。", buf, sizeof(buf))); + makeEscapeString( "\n璋㈣阿浣犵殑鍔犲叆鐢宠锛佽鍏堢瓑鏃忛暱瀵逛綘鐨勫鏍搁氳繃涔嬪緦锛屾墠绠楁寮忓姞鍏ャ", buf, sizeof(buf))); JoinMemberIndex( meindex, CHAR_getWorkInt(meindex, CHAR_WORKFMINDEXI) ); #ifdef _NEW_MANOR_LAW CHAR_setInt(meindex,CHAR_MOMENTUM,0); - CHAR_talkToCli(meindex,-1,"加入家族个人气势归零",CHAR_COLORYELLOW); + CHAR_talkToCli(meindex,-1,"鍔犲叆瀹舵棌涓汉姘斿娍褰掗浂",CHAR_COLORYELLOW); #endif sprintf(buf,"fame:%d",CHAR_getInt(meindex,CHAR_FAME)); @@ -679,7 +679,7 @@ void ACJoinFM(int fd, int result, int recv) CHAR_getInt( meindex, CHAR_FMINDEX), CHAR_getChar( meindex, CHAR_NAME), CHAR_getChar( meindex, CHAR_CDKEY), - "JOINFAMILY(申请加入家族)", + "JOINFAMILY(鐢宠鍔犲叆瀹舵棌)", buf ); @@ -692,20 +692,20 @@ void ACJoinFM(int fd, int result, int recv) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n此家族目前不愿意招收成员!", buf, sizeof(buf))); + makeEscapeString( "\n姝ゅ鏃忕洰鍓嶄笉鎰挎剰鎷涙敹鎴愬憳锛", buf, sizeof(buf))); } else if (recv == -3) { lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n此家族目前无法招收成员,家族成员人数已到达上限!", buf, sizeof(buf))); + makeEscapeString( "\n姝ゅ鏃忕洰鍓嶆棤娉曟嫑鏀舵垚鍛橈紝瀹舵棌鎴愬憳浜烘暟宸插埌杈句笂闄愶紒", buf, sizeof(buf))); } else lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n申请加入家族失败!", buf, sizeof(buf))); + makeEscapeString( "\n鐢宠鍔犲叆瀹舵棌澶辫触锛", buf, sizeof(buf))); } CHAR_sendStatusString( meindex, "F"); @@ -732,7 +732,7 @@ void FAMILY_Leave(int fd, int meindex, char *message) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n你并没有加入家族喔!", buf, sizeof(buf))); + makeEscapeString( "\n浣犲苟娌℃湁鍔犲叆瀹舵棌鍠旓紒", buf, sizeof(buf))); return; } @@ -750,7 +750,7 @@ void FAMILY_Leave(int fd, int meindex, char *message) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n你目前的家族正约战中,因此无法解散家族!", buf, sizeof(buf))); + makeEscapeString( "\n浣犵洰鍓嶇殑瀹舵棌姝g害鎴樹腑锛屽洜姝ゆ棤娉曡В鏁e鏃忥紒", buf, sizeof(buf))); return; } } @@ -788,7 +788,7 @@ void FAMILY_Leave(int fd, int meindex, char *message) if(sasql_fmpoint_query(fmindex)>0) sasql_fmindex_del(fmindex); #endif - // 要求最新家族列表 + // 瑕佹眰鏈鏂板鏃忓垪琛 //saacproto_ACShowFMList_send( acfd ); } else { @@ -814,7 +814,7 @@ void ACLeaveFM( int fd, int result, int resultflag) CHAR_getInt( meindex, CHAR_FMINDEX), CHAR_getChar( meindex, CHAR_NAME), CHAR_getChar( meindex, CHAR_CDKEY), - "LEAVEFAMILY(离开家族)", + "LEAVEFAMILY(绂诲紑瀹舵棌)", "" ); if( CHAR_getWorkInt( meindex, CHAR_WORKFMCHANNEL) != -1 ) @@ -823,14 +823,14 @@ void ACLeaveFM( int fd, int result, int resultflag) SetFMVarInit(meindex); lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n申请退出家族OK!", buf, sizeof(buf))); + makeEscapeString( "\n鐢宠閫鍑哄鏃忥集锛紒", buf, sizeof(buf))); CHAR_setWorkInt( meindex, CHAR_WORKFMFLOOR, -1); #ifdef _FM_JOINLIMIT CHAR_setInt( meindex, CHAR_FMTIMELIMIT, (int)time(NULL)+getJoinFamilyTime()*(60*60) ); #endif #ifdef _NEW_MANOR_LAW CHAR_setInt(meindex,CHAR_MOMENTUM,0); - CHAR_talkToCli(meindex,-1,"退出家族个人气势归零",CHAR_COLORYELLOW); + CHAR_talkToCli(meindex,-1,"閫鍑哄鏃忎釜浜烘皵鍔垮綊闆",CHAR_COLORYELLOW); #endif CHAR_setInt( meindex , CHAR_RIDEPET, -1 ); CHAR_setInt( meindex , CHAR_BASEIMAGENUMBER , CHAR_getInt( meindex , CHAR_BASEBASEIMAGENUMBER) ); @@ -843,7 +843,7 @@ void ACLeaveFM( int fd, int result, int resultflag) }else lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n申请退出家族失败!", buf, sizeof(buf))); + makeEscapeString( "\n鐢宠閫鍑哄鏃忓け璐ワ紒", buf, sizeof(buf))); CHAR_sendStatusString( meindex, "F" ); } @@ -867,7 +867,7 @@ if(CHAR_getWorkInt(meindex, CHAR_WORKFMINDEXI)>-1){ CHAR_getInt( meindex, CHAR_FMINDEX), CHAR_getChar( meindex, CHAR_NAME), CHAR_getChar( meindex, CHAR_CDKEY), - "DELFAMILY(家族解散)", + "DELFAMILY(瀹舵棌瑙f暎)", "" ); @@ -884,19 +884,19 @@ if(CHAR_getWorkInt(meindex, CHAR_WORKFMINDEXI)>-1){ lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n家族已经解散了!", buf, sizeof(buf))); + makeEscapeString( "\n瀹舵棌宸茬粡瑙f暎浜嗭紒", buf, sizeof(buf))); - // 要求最新家族列表 + // 瑕佹眰鏈鏂板鏃忓垪琛 saacproto_ACShowFMList_send( acfd ); -// won 移到前面去 +// won 绉诲埌鍓嶉潰鍘 /* LogFamily( CHAR_getChar( meindex, CHAR_FMNAME), CHAR_getInt( meindex, CHAR_FMINDEX), CHAR_getChar( meindex, CHAR_NAME), CHAR_getChar( meindex, CHAR_CDKEY), - "DELFAMILY(家族解散)", + "DELFAMILY(瀹舵棌瑙f暎)", "" ); */ @@ -905,7 +905,7 @@ if(CHAR_getWorkInt(meindex, CHAR_WORKFMINDEXI)>-1){ lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n申请解散家族失败!", buf, sizeof(buf))); + makeEscapeString( "\n鐢宠瑙f暎瀹舵棌澶辫触锛", buf, sizeof(buf))); CHAR_sendStatusString( meindex, "F"); } @@ -1172,7 +1172,7 @@ void ACShowFMMemo(int result, int index, int num, int dataindex, char *data) } } -#ifdef _PERSONAL_FAME // Arminius: 家族显\\个人声望 +#ifdef _PERSONAL_FAME // Arminius: 瀹舵棌鏄綷\涓汉澹版湜 void ACFMCharLogin(int fd, int result, int index, int floor, int fmdp, int joinflag, int fmsetupflag, int flag, int charindex, int charfame #ifdef _NEW_MANOR_LAW @@ -1190,7 +1190,7 @@ void ACFMCharLogin(int fd, int result, int index, int floor, int fmdp, if (!CHAR_CHECKINDEX(meindex)) return; if (result == 1){ #ifdef _NEW_MANOR_LAW - // 气势回传为0时要把人物的气势设定为0,因为回传是0有可能是打完庄园战,所以气势要归零 + // 姘斿娍鍥炰紶涓0鏃惰鎶婁汉鐗╃殑姘斿娍璁惧畾涓0,鍥犱负鍥炰紶鏄0鏈夊彲鑳芥槸鎵撳畬搴勫洯鎴,鎵浠ユ皵鍔胯褰掗浂 if(momentum == 0) CHAR_setInt(meindex,CHAR_MOMENTUM,0); else CHAR_setInt(meindex,CHAR_MOMENTUM,momentum); #endif @@ -1245,7 +1245,7 @@ void ACFMCharLogin(int fd, int result, int index, int floor, int fmdp, lssproto_WN_send(fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString("\n家族守护兽消失了!\n请立刻再选定一只守护兽,\n否则家族在七天之後会消失唷!\n", buf, sizeof(buf))); + makeEscapeString("\n瀹舵棌瀹堟姢鍏芥秷澶变簡锛乗n璇风珛鍒诲啀閫夊畾涓鍙畧鎶ゅ吔锛孿n鍚﹀垯瀹舵棌鍦ㄤ竷澶╀箣寰屼細娑堝け鍞凤紒\n", buf, sizeof(buf))); saacproto_ACFixFMData_send(acfd, CHAR_getChar(meindex, CHAR_FMNAME), CHAR_getInt(meindex, CHAR_FMINDEX), @@ -1261,7 +1261,7 @@ void ACFMCharLogin(int fd, int result, int index, int floor, int fmdp, CHAR_setInt( meindex, CHAR_FMTIMELIMIT, (int)time(NULL)+getJoinFamilyTime()*(60*60) ); #endif if (flag == 0){ - CHAR_talkToCli(meindex, -1, "你已经退出家族或家族已经不存在了!", CHAR_COLORYELLOW); + CHAR_talkToCli(meindex, -1, "浣犲凡缁忛鍑哄鏃忔垨瀹舵棌宸茬粡涓嶅瓨鍦ㄤ簡锛", CHAR_COLORYELLOW); CHAR_setWorkInt( meindex, CHAR_WORKFMFLOOR, -1); CHAR_setInt( meindex , CHAR_RIDEPET, -1 ); CHAR_setInt( meindex , CHAR_BASEIMAGENUMBER , CHAR_getInt( meindex , CHAR_BASEBASEIMAGENUMBER) ); @@ -1321,9 +1321,9 @@ void FAMILY_Detail(int fd, int meindex, char *message) // shan add if (strcmp(token, "P") == 0 ){ #ifdef _CAX_FAMEBUTTON - if (strcmp( getfamebutton() , "是") == 0) + if (strcmp( getfamebutton() , "鏄") == 0) { - fameButton( meindex); //ABlua声望按钮调用 + fameButton( meindex); //ABlua澹版湜鎸夐挳璋冪敤 }else{ #endif int personfame; @@ -1346,32 +1346,32 @@ void FAMILY_Detail(int fd, int meindex, char *message) #else personfame = CHAR_getWorkInt( meindex, CHAR_WORKFMDP); #endif - CHAR_talkToCli(meindex, -1, "您的账户信息:", CHAR_COLORYELLOW); + CHAR_talkToCli(meindex, -1, "鎮ㄧ殑璐︽埛淇℃伅锛", CHAR_COLORYELLOW); #ifdef _NEW_CurrencyShow - sprintf(sendbuf, "个人声望点数:%-12d 个人气势点数:%-12d 个人积分点数:%d", personfame, + sprintf(sendbuf, "涓汉澹版湜鐐规暟锛%-12d 涓汉姘斿娍鐐规暟锛%-12d 涓汉绉垎鐐规暟锛%d", personfame, CHAR_getInt(meindex,CHAR_MOMENTUM)/100, sasql_ampoint( CHAR_getChar(meindex,CHAR_CDKEY), 0,0)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORGREEN); - sprintf(sendbuf, "个人贝壳点数:%-12d 个人活力点数:%-12d 个人会员点数:%d", CHAR_getInt(meindex,CHAR_CAMEO), + sprintf(sendbuf, "涓汉璐濆3鐐规暟锛%-12d 涓汉娲诲姏鐐规暟锛%-12d 涓汉浼氬憳鐐规暟锛%d", CHAR_getInt(meindex,CHAR_CAMEO), CHAR_getInt(meindex,CHAR_VIGOR), sasql_vippoint(id,0,0)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORBLUE); - sprintf(sendbuf, "个人现金账户:%-12d 个人任务链数:%-12d 个人跑环环数:%d", sasql_rmbpoint(id,0,0), + sprintf(sendbuf, "涓汉鐜伴噾璐︽埛锛%-12d 涓汉浠诲姟閾炬暟锛%-12d 涓汉璺戠幆鐜暟锛%d", sasql_rmbpoint(id,0,0), CHAR_getInt(meindex,CHAR_MISSIONTRAIN_NUM), CHAR_getInt(meindex,CHAR_EVNUM)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORPURPLE); #ifdef _OFFLINE_SYSTEM if(getOfflineCf()==0) - sprintf(sendbuf,"可用离线时间:%d分钟 (离线尚未开启)",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); + sprintf(sendbuf,"鍙敤绂荤嚎鏃堕棿锛%d鍒嗛挓 (绂荤嚎灏氭湭寮鍚)",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); else if(getOfflineCf()==1) - sprintf(sendbuf,"可用离线时间:%d分钟",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); + sprintf(sendbuf,"鍙敤绂荤嚎鏃堕棿锛%d鍒嗛挓",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); else - sprintf(sendbuf,"可用离线时间:%d分钟 (离线不扣时间)",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); + sprintf(sendbuf,"鍙敤绂荤嚎鏃堕棿锛%d鍒嗛挓 (绂荤嚎涓嶆墸鏃堕棿)",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #endif if(viptime == 0){ - CHAR_talkToCli(meindex, -1, "个人特殊权限:尚未开启", CHAR_COLORYELLOW); + CHAR_talkToCli(meindex, -1, "涓汉鐗规畩鏉冮檺锛氬皻鏈紑鍚", CHAR_COLORYELLOW); } if(viptime<0) { @@ -1385,32 +1385,32 @@ void FAMILY_Detail(int fd, int meindex, char *message) viptime = (int)(viptime/60/60/24); if(viptype==1) { - sprintf(sendbuf,"普通会员剩余:%d天",viptime+1); + sprintf(sendbuf,"鏅氫細鍛樺墿浣欙細%d澶",viptime+1); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); } else if(viptype==2) { - sprintf(sendbuf,"黄金会员剩余:%d天",viptime+1); + sprintf(sendbuf,"榛勯噾浼氬憳鍓╀綑锛%d澶",viptime+1); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); } else if(viptype==3) { - sprintf(sendbuf,"钻石会员剩余:%d天",viptime+1); + sprintf(sendbuf,"閽荤煶浼氬憳鍓╀綑锛%d澶",viptime+1); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); } } - sprintf(sendbuf,"本线基础经验:%d倍",getBattleexp()); + sprintf(sendbuf,"鏈嚎鍩虹缁忛獙锛%d鍊",getBattleexp()); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #ifdef _VIP_BATTLE_EXP int nvipexp, nviptime; nvipexp = CHAR_getInt( meindex, CHAR_NVIPEXP); nviptime = CHAR_getInt( meindex, CHAR_NVIPTIME )/60; if (nvipexp > 0 && CHAR_getInt( meindex, CHAR_VIPTIME ) == 0){ - sprintf(sendbuf,"额外经验加成:%d倍 (时效:%d分钟)",getVipBattleExp(), nviptime); + sprintf(sendbuf,"棰濆缁忛獙鍔犳垚锛%d鍊 (鏃舵晥锛%d鍒嗛挓)",getVipBattleExp(), nviptime); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORBLUE2); }else if (CHAR_getInt( meindex, CHAR_VIPTIME ) > 0){ - sprintf(sendbuf,"额外经验加成:%d倍 (时效:会员永久)",getVipBattleExp()); + sprintf(sendbuf,"棰濆缁忛獙鍔犳垚锛%d鍊 (鏃舵晥锛氫細鍛樻案涔)",getVipBattleExp()); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORBLUE2); } #endif @@ -1419,21 +1419,21 @@ void FAMILY_Detail(int fd, int meindex, char *message) ITEM_ADDEXP = CHAR_getInt( meindex, CHAR_ADDEXPPOWER ); if(ITEM_ADDEXP>0){ ITEM_ADDEXP_TIME = CHAR_getInt( meindex, CHAR_ADDEXPTIME )/60; - sprintf(sendbuf,"经验物品加成:%d% (时效:%d分钟)",ITEM_ADDEXP,ITEM_ADDEXP_TIME); + sprintf(sendbuf,"缁忛獙鐗╁搧鍔犳垚锛%d锛 (鏃舵晥锛%d鍒嗛挓)",ITEM_ADDEXP,ITEM_ADDEXP_TIME); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORCYAN); } #endif #else//_NEW_CurrencyShow - sprintf( sendbuf, "个人声望:%d", personfame); + sprintf( sendbuf, "涓汉澹版湜锛%d", personfame); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #ifdef _NEW_MANOR_LAW - sprintf(sendbuf,"个人气势:%d",CHAR_getInt(meindex,CHAR_MOMENTUM)/100); + sprintf(sendbuf,"涓汉姘斿娍锛%d",CHAR_getInt(meindex,CHAR_MOMENTUM)/100); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #endif #ifdef _VIP_SERVER - sprintf(sendbuf,"个人积分:%d",sasql_ampoint( CHAR_getChar(meindex,CHAR_CDKEY), 0,0)); + sprintf(sendbuf,"涓汉绉垎锛%d",sasql_ampoint( CHAR_getChar(meindex,CHAR_CDKEY), 0,0)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); if(viptime<0) { @@ -1447,56 +1447,56 @@ void FAMILY_Detail(int fd, int meindex, char *message) viptime = (int)(viptime/60/60/24); if(viptype==1) { - sprintf(sendbuf,"你的剩余会员天数为:%d",viptime+1); + sprintf(sendbuf,"浣犵殑鍓╀綑浼氬憳澶╂暟涓猴細%d",viptime+1); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); } else if(viptype==2) { - sprintf(sendbuf,"你的剩余黄金会员天数为:%d",viptime+1); + sprintf(sendbuf,"浣犵殑鍓╀綑榛勯噾浼氬憳澶╂暟涓猴細%d",viptime+1); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); } else if(viptype==3) { - sprintf(sendbuf,"你的剩余钻石会员天数为:%d",viptime+1); + sprintf(sendbuf,"浣犵殑鍓╀綑閽荤煶浼氬憳澶╂暟涓猴細%d",viptime+1); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); } } #endif - sprintf(sendbuf,"会员点数:%d",sasql_vippoint(id,0,0)); + sprintf(sendbuf,"浼氬憳鐐规暟锛%d",sasql_vippoint(id,0,0)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #ifdef _VIGOR_SYS - sprintf(sendbuf,"活力点数:%d",CHAR_getInt(meindex,CHAR_VIGOR)); + sprintf(sendbuf,"娲诲姏鐐规暟锛%d",CHAR_getInt(meindex,CHAR_VIGOR)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #endif #ifdef _EV_NUM - sprintf(sendbuf,"跑环环数:%d",CHAR_getInt(meindex,CHAR_EVNUM)); + sprintf(sendbuf,"璺戠幆鐜暟锛%d",CHAR_getInt(meindex,CHAR_EVNUM)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #endif //#ifdef _STU_SYS -// sprintf(sendbuf,"导师积分:%d",CHAR_getInt(meindex,CHAR_STUNUM)); +// sprintf(sendbuf,"瀵煎笀绉垎锛%d",CHAR_getInt(meindex,CHAR_STUNUM)); // CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); //#endif #ifdef _RMB_SYSTEM - sprintf(sendbuf,"现金账户:%d",sasql_rmbpoint(id,0,0)); + sprintf(sendbuf,"鐜伴噾璐︽埛锛%d",sasql_rmbpoint(id,0,0)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #endif #ifdef _OFFLINE_SYSTEM if(getOfflineCf()==0) - sprintf(sendbuf,"离线时间:%d分钟(本线不支持离线挂机)",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); + sprintf(sendbuf,"绂荤嚎鏃堕棿锛%d鍒嗛挓锛堟湰绾夸笉鏀寔绂荤嚎鎸傛満锛",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); else if(getOfflineCf()==1) - sprintf(sendbuf,"离线时间:%d分钟",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); + sprintf(sendbuf,"绂荤嚎鏃堕棿锛%d鍒嗛挓",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); else - sprintf(sendbuf,"离线时间:%d分钟(目前离线不扣时间)",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); + sprintf(sendbuf,"绂荤嚎鏃堕棿锛%d鍒嗛挓锛堢洰鍓嶇绾夸笉鎵f椂闂达級",(int)(CHAR_getInt(meindex,CHAR_OFFTIME)/60)); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #endif - sprintf(sendbuf,"本线基础经验:%d倍",getBattleexp()); + sprintf(sendbuf,"鏈嚎鍩虹缁忛獙锛%d鍊",getBattleexp()); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); #ifdef _EXP_TIME_OUT int ITEM_ADDEXP,ITEM_ADDEXP_TIME; ITEM_ADDEXP = CHAR_getInt( meindex, CHAR_ADDEXPPOWER ); if(ITEM_ADDEXP>0){ ITEM_ADDEXP_TIME = CHAR_getInt( meindex, CHAR_ADDEXPTIME )/60; - sprintf(sendbuf,"经验物品加成:%d% 时效:%d分钟",ITEM_ADDEXP,ITEM_ADDEXP_TIME); + sprintf(sendbuf,"缁忛獙鐗╁搧鍔犳垚锛%d% 鏃舵晥锛%d鍒嗛挓",ITEM_ADDEXP,ITEM_ADDEXP_TIME); CHAR_talkToCli(meindex, -1, sendbuf, CHAR_COLORYELLOW); } #endif @@ -1546,7 +1546,7 @@ void FAMILY_Detail(int fd, int meindex, char *message) { struct tm tm1; memcpy(&tm1, localtime((time_t *)&fmpks[fmpks_pos + 1].dueltime), sizeof(tm1)); - sprintf(tmpbuf, "%d/%d %d:%d【%s】 %s vs %s", + sprintf(tmpbuf, "%d/%d %d:%d銆%s銆 %s 锝栵綋 %s", tm1.tm_mon + 1, tm1.tm_mday, tm1.tm_hour, tm1.tm_min, fmpks[fmpks_pos + 2].host_name, fmpks[fmpks_pos + 1].guest_name, @@ -1558,11 +1558,11 @@ void FAMILY_Detail(int fd, int meindex, char *message) #ifdef _FMWAR_MSG sprintf(tmpbuf, "%s",getFmWarMsg()); #else - sprintf(tmpbuf, "无挑战排程"); + sprintf(tmpbuf, "鏃犳寫鎴樻帓绋"); #endif getStringFromIndexWithDelim(memberlist[fmindex_wk].numberlistarray[0], "|",2,leadernamebuf,sizeof(leadernamebuf)); - // sendbuf -> 家族名称|人数|族长名称|家族排行|家族声望|个人声望|个人职位|家族精灵|PK + // sendbuf -> 瀹舵棌鍚嶇О|浜烘暟|鏃忛暱鍚嶇О|瀹舵棌鎺掕|瀹舵棌澹版湜|涓汉澹版湜|涓汉鑱屼綅|瀹舵棌绮剧伒|PK #ifdef _NEW_MANOR_LAW sprintf( sendbuf, "%s|%d|%s|%d|%d|%d|%d|%d|%s|%d|%d", #else @@ -1586,8 +1586,8 @@ void FAMILY_Detail(int fd, int meindex, char *message) CHAR_getInt( meindex, CHAR_FMSPRITE ), tmpbuf #ifdef _NEW_MANOR_LAW - ,fmdptop.fmMomentum[h]/100 // 家族气势 - ,CHAR_getInt(meindex,CHAR_MOMENTUM)/100 // 个人气势 + ,fmdptop.fmMomentum[h]/100 // 瀹舵棌姘斿娍 + ,CHAR_getInt(meindex,CHAR_MOMENTUM)/100 // 涓汉姘斿娍 #endif ); @@ -1660,7 +1660,7 @@ void ACFMDetail(int ret, char *data, int clifd) strcpy(b5,fmtmpbuf); getStringFromIndexWithDelim(data,"|", 11, fmtmpbuf, sizeof(fmtmpbuf)); a6=atoi(fmtmpbuf); - sprintf(b5,"您没有达到%d转,无法查看该家族宣言。",getFmBuffTrans()); + sprintf(b5,"鎮ㄦ病鏈夎揪鍒%d杞紝鏃犳硶鏌ョ湅璇ュ鏃忓瑷銆",getFmBuffTrans()); sprintf(sendbuf,"S|D|%d|%d|%s|%s|%d|%s|%s|%d|%d|%s|%d",a1,a2,b1,b2,a3,b3,b4,a4,a5,b5,a6); }else{ sprintf(sendbuf, "S|D|%s", data); @@ -1713,7 +1713,7 @@ void FAMILY_CheckMember(int fd, int meindex, char *message) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n你不是族长,所以没有修改的权力唷!", buf, sizeof(buf))); + makeEscapeString( "\n浣犱笉鏄棌闀匡紝鎵浠ユ病鏈変慨鏀圭殑鏉冨姏鍞凤紒", buf, sizeof(buf))); return; } if (getStringFromIndexWithDelim(message, "|", 2, token, @@ -1737,7 +1737,7 @@ void FAMILY_CheckMember(int fd, int meindex, char *message) { // shan begin char sbuf[1024]; - sprintf( sbuf, "族长代号:%d -> 人物名称:%s 人物索引 (设该人物为族员):%d\n", CHAR_getInt(meindex, CHAR_FMLEADERFLAG), charname, charindex); + sprintf( sbuf, "鏃忛暱浠e彿:%d -> 浜虹墿鍚嶇О:%s 浜虹墿绱㈠紩 (璁捐浜虹墿涓烘棌鍛):%d\n", CHAR_getInt(meindex, CHAR_FMLEADERFLAG), charname, charindex); LogFamily( CHAR_getChar(meindex, CHAR_FMNAME), CHAR_getInt(meindex, CHAR_FMINDEX), @@ -1781,7 +1781,7 @@ void FAMILY_CheckMember(int fd, int meindex, char *message) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n家族目前正在战斗中,所以无法审核成员。", buf, sizeof(buf))); + makeEscapeString( "\n瀹舵棌鐩墠姝e湪鎴樻枟涓紝鎵浠ユ棤娉曞鏍告垚鍛樸", buf, sizeof(buf))); // print("fmpks_pos:%d index:%d host:%d guest:%d\n", fmpks_pos, // index, fmpks[fmpks_pos].host_index, fmpks[fmpks_pos].guest_index); return; @@ -1791,7 +1791,7 @@ void FAMILY_CheckMember(int fd, int meindex, char *message) { // shan begin char sbuf[1024]; - sprintf( sbuf, "族长代号:%d -> 人物名称:%s 人物索引:%d (将该人物退出家族)\n", CHAR_getInt(meindex, CHAR_FMLEADERFLAG), charname, charindex); + sprintf( sbuf, "鏃忛暱浠e彿:%d -> 浜虹墿鍚嶇О:%s 浜虹墿绱㈠紩:%d (灏嗚浜虹墿閫鍑哄鏃)\n", CHAR_getInt(meindex, CHAR_FMLEADERFLAG), charname, charindex); LogFamily( CHAR_getChar(meindex, CHAR_FMNAME), CHAR_getInt(meindex, CHAR_FMINDEX), @@ -1829,7 +1829,7 @@ void FAMILY_CheckMember(int fd, int meindex, char *message) { // shan begin char sbuf[1024]; - sprintf( sbuf, "族长代号:%d -> 人物名称:%s 人物索引:%d (设该人物为长老)\n", CHAR_getInt(meindex, CHAR_FMLEADERFLAG), charname, charindex); + sprintf( sbuf, "鏃忛暱浠e彿:%d -> 浜虹墿鍚嶇О:%s 浜虹墿绱㈠紩:%d (璁捐浜虹墿涓洪暱鑰)\n", CHAR_getInt(meindex, CHAR_FMLEADERFLAG), charname, charindex); LogFamily( CHAR_getChar(meindex, CHAR_FMNAME), CHAR_getInt(meindex, CHAR_FMINDEX), @@ -1857,7 +1857,7 @@ void FAMILY_CheckMember(int fd, int meindex, char *message) #endif } #endif - // 要求最新家族列表 + // 瑕佹眰鏈鏂板鏃忓垪琛 saacproto_ACShowFMList_send( acfd ); } @@ -1875,7 +1875,7 @@ void FAMILY_Channel(int fd, int meindex, char *message) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n你还没有加入任何家族!", buf, sizeof(buf))); + makeEscapeString( "\n浣犺繕娌℃湁鍔犲叆浠讳綍瀹舵棌锛", buf, sizeof(buf))); return; } @@ -1910,14 +1910,14 @@ void FAMILY_Channel(int fd, int meindex, char *message) i++; } if( i >= FAMILY_MAXCHANNELMEMBER ) { - CHAR_talkToCli( meindex, -1, "此频道人数已满。", CHAR_COLORWHITE); + CHAR_talkToCli( meindex, -1, "姝ら閬撲汉鏁板凡婊°", CHAR_COLORWHITE); return; } - sprintf( buf, "加入家族频道 [%d]。", channel ); + sprintf( buf, "鍔犲叆瀹舵棌棰戦亾 [%d]銆", channel ); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORWHITE); if( nowchannel >=0 && nowchannel < FAMILY_MAXCHANNEL ) { - sprintf( buf, "%s 退出频道。", CHAR_getChar( meindex, CHAR_NAME) ); + sprintf( buf, "%s 閫鍑洪閬撱", CHAR_getChar( meindex, CHAR_NAME) ); for( i=0; i < FAMILY_MAXCHANNELMEMBER; i++ ) { if( CHAR_CHECKINDEX(channelMember[fmindexi][nowchannel][i]) && channelMember[fmindexi][nowchannel][i] != meindex ) { @@ -1925,7 +1925,7 @@ void FAMILY_Channel(int fd, int meindex, char *message) } } } - sprintf( buf, "%s 加入频道。", CHAR_getChar( meindex, CHAR_NAME) ); + sprintf( buf, "%s 鍔犲叆棰戦亾銆", CHAR_getChar( meindex, CHAR_NAME) ); for( i=0; i < FAMILY_MAXCHANNELMEMBER; i++ ) { if( CHAR_CHECKINDEX(channelMember[fmindexi][channel][i]) && channelMember[fmindexi][channel][i] != meindex ) { @@ -1945,15 +1945,15 @@ void FAMILY_Channel(int fd, int meindex, char *message) } if( i >= FAMILY_MAXMEMBER ) { #ifndef _CHANNEL_MODIFY - CHAR_talkToCli( meindex, -1, "此频道人数已满。", CHAR_COLORWHITE); + CHAR_talkToCli( meindex, -1, "姝ら閬撲汉鏁板凡婊°", CHAR_COLORWHITE); #endif return; } #ifndef _CHANNEL_MODIFY - sprintf( buf, "加入家族频道 [全]。"); + sprintf( buf, "鍔犲叆瀹舵棌棰戦亾 [鍏╙銆"); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORWHITE); if( nowchannel >=0 && nowchannel < FAMILY_MAXCHANNEL ) { - sprintf( buf, "%s 退出频道。", CHAR_getChar( meindex, CHAR_NAME) ); + sprintf( buf, "%s 閫鍑洪閬撱", CHAR_getChar( meindex, CHAR_NAME) ); for( i=0; i < FAMILY_MAXCHANNELMEMBER; i++ ) { if( CHAR_CHECKINDEX(channelMember[fmindexi][nowchannel][i]) && channelMember[fmindexi][nowchannel][i] != meindex ) { @@ -1961,7 +1961,7 @@ void FAMILY_Channel(int fd, int meindex, char *message) } } } - sprintf( buf, "%s 加入频道。", CHAR_getChar( meindex, CHAR_NAME) ); + sprintf( buf, "%s 鍔犲叆棰戦亾銆", CHAR_getChar( meindex, CHAR_NAME) ); for( i=0; i < FAMILY_MAXCHANNELMEMBER; i++ ) { if( CHAR_CHECKINDEX(channelMember[fmindexi][channel][i]) && channelMember[fmindexi][channel][i] != meindex ) { @@ -1976,14 +1976,14 @@ void FAMILY_Channel(int fd, int meindex, char *message) else if( channel == FAMILY_MAXCHANNEL && CHAR_getInt( meindex, CHAR_FMLEADERFLAG ) == 1 ) #endif { - CHAR_talkToCli( meindex, -1, "启动族长广播。", CHAR_COLORWHITE); + CHAR_talkToCli( meindex, -1, "鍚姩鏃忛暱骞挎挱銆", CHAR_COLORWHITE); } else { channel = -1; #ifndef _CHANNEL_MODIFY - CHAR_talkToCli( meindex, -1, "退出家族频道。", CHAR_COLORWHITE); + CHAR_talkToCli( meindex, -1, "閫鍑哄鏃忛閬撱", CHAR_COLORWHITE); #else - CHAR_talkToCli( meindex, -1, "关闭族长广播。", CHAR_COLORWHITE); + CHAR_talkToCli( meindex, -1, "鍏抽棴鏃忛暱骞挎挱銆", CHAR_COLORWHITE); channel = 0; i = 0; while(i < FAMILY_MAXMEMBER){ @@ -1995,7 +1995,7 @@ void FAMILY_Channel(int fd, int meindex, char *message) } #endif - sprintf( buf, "%s 退出频道。", CHAR_getChar( meindex, CHAR_NAME) ); + sprintf( buf, "%s 閫鍑洪閬撱", CHAR_getChar( meindex, CHAR_NAME) ); for( i=0; i < FAMILY_MAXCHANNELMEMBER; i++ ) { if( CHAR_CHECKINDEX(channelMember[fmindexi][nowchannel][i]) && channelMember[fmindexi][nowchannel][i] != meindex ) { @@ -2065,7 +2065,7 @@ void FAMILY_Bank(int fd, int meindex, char *message) fmindex = CHAR_getInt( meindex, CHAR_FMINDEX); // add shan if( fmindex <= 0 && CHAR_getInt( meindex, CHAR_BANKGOLD) < 1) { - CHAR_talkToCli( meindex, -1, "你必须先加入家族。", CHAR_COLORWHITE); + CHAR_talkToCli( meindex, -1, "浣犲繀椤诲厛鍔犲叆瀹舵棌銆", CHAR_COLORWHITE); return; } @@ -2083,7 +2083,7 @@ void FAMILY_Bank(int fd, int meindex, char *message) &&((bank + toBank) >= 0)&&((bank + toBank) <= CHAR_MAXBANKGOLDHAVE) ) { // shan add if( toBank > 0 && CHAR_getInt( meindex, CHAR_FMINDEX ) < 1 ) { - sprintf(buf, "抱歉!你没有加入任何家族,所以仅能领取存款"); + sprintf(buf, "鎶辨瓑锛佷綘娌℃湁鍔犲叆浠讳綍瀹舵棌锛屾墍浠ヤ粎鑳介鍙栧瓨娆"); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORWHITE); return; } @@ -2093,15 +2093,15 @@ void FAMILY_Bank(int fd, int meindex, char *message) CHAR_send_P_StatusString( meindex , CHAR_P_STRING_GOLD); if( toBank >= 0 ) { - sprintf(buf, "存入%d到家族银行个人帐户。", toBank); + sprintf(buf, "瀛樺叆%d鍒板鏃忛摱琛屼釜浜哄笎鎴枫", toBank); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORWHITE); - // Syu ADD 新增家族个人银行存取Log (不含家族银行) + // Syu ADD 鏂板瀹舵棌涓汉閾惰瀛樺彇Log (涓嶅惈瀹舵棌閾惰) LogFamilyBankStone( CHAR_getChar( meindex, CHAR_NAME ), CHAR_getChar( meindex, CHAR_CDKEY ), toBank, CHAR_getInt( meindex, CHAR_GOLD ), - "myBank(存款)(家族个人银行)", + "myBank(瀛樻)(瀹舵棌涓汉閾惰)", CHAR_getInt( meindex,CHAR_FLOOR), CHAR_getInt( meindex,CHAR_X ), CHAR_getInt( meindex,CHAR_Y ), @@ -2110,15 +2110,15 @@ void FAMILY_Bank(int fd, int meindex, char *message) } else { - sprintf(buf, "从家族银行个人帐户取出%d。", -toBank); + sprintf(buf, "浠庡鏃忛摱琛屼釜浜哄笎鎴峰彇鍑%d銆", -toBank); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORWHITE); - // Syu ADD 新增家族个人银行存取Log (不含家族银行) + // Syu ADD 鏂板瀹舵棌涓汉閾惰瀛樺彇Log (涓嶅惈瀹舵棌閾惰) LogFamilyBankStone( CHAR_getChar( meindex, CHAR_NAME ), CHAR_getChar( meindex, CHAR_CDKEY ), toBank, CHAR_getInt( meindex, CHAR_GOLD ), - "myBank(提款)(家族个人银行)", + "myBank(鎻愭)(瀹舵棌涓汉閾惰)", CHAR_getInt( meindex,CHAR_FLOOR), CHAR_getInt( meindex,CHAR_X ), CHAR_getInt( meindex,CHAR_Y ), @@ -2126,14 +2126,14 @@ void FAMILY_Bank(int fd, int meindex, char *message) ); } - // Syu ADD 新增家族个人银行存取Log (不含家族银行) + // Syu ADD 鏂板瀹舵棌涓汉閾惰瀛樺彇Log (涓嶅惈瀹舵棌閾惰) LogStone( -1, - CHAR_getChar( meindex, CHAR_NAME ), /* 平乓仿 */ - CHAR_getChar( meindex, CHAR_CDKEY ), /* 交□扒□ID */ - -toBank, /* 嗯喊 */ + CHAR_getChar( meindex, CHAR_NAME ), /* 骞充箵浠 */ + CHAR_getChar( meindex, CHAR_CDKEY ), /* 浜も枴鎵掆枴ID */ + -toBank, /* 鍡枈 */ CHAR_getInt( meindex, CHAR_GOLD ), - "myBank(家族个人银行)", + "myBank(瀹舵棌涓汉閾惰)", CHAR_getInt( meindex,CHAR_FLOOR), CHAR_getInt( meindex,CHAR_X ), CHAR_getInt( meindex,CHAR_Y ) @@ -2166,21 +2166,21 @@ void FAMILY_Bank(int fd, int meindex, char *message) FMindex = CHAR_getWorkInt( meindex, CHAR_WORKFMINDEXI ); mygold = CHAR_getInt( meindex, CHAR_GOLD); if( mygold < 0 || mygold > MaxGold || toTax == 0 ) return; - if( toTax > 0 ) {//+存款 + if( toTax > 0 ) {//+瀛樻 if( ((mygold-toTax) < 0) || (familyTax[ FMindex] + toTax) > CHAR_MAXFMBANKGOLDHAVE ) { return; } - }else if( toTax < 0 ){ //-取款 + }else if( toTax < 0 ){ //-鍙栨 if( ((mygold-toTax)>MaxGold) || (familyTax[ FMindex] + toTax) < 0 ) { return; } } - if( toTax>0 ) { //存款预先扣款 + if( toTax>0 ) { //瀛樻棰勫厛鎵f CHAR_setInt( meindex, CHAR_GOLD, CHAR_getInt( meindex, CHAR_GOLD)-toTax ); } - sprintf( buf, "家族银行%s处理中....", (toTax>0)?"存款":"取款"); + sprintf( buf, "瀹舵棌閾惰%s澶勭悊涓....", (toTax>0)?"瀛樻":"鍙栨"); CHAR_talkToCli( meindex , -1, buf, CHAR_COLORYELLOW); CHAR_send_P_StatusString( meindex , CHAR_P_STRING_GOLD); @@ -2199,22 +2199,22 @@ void ACFMPointList(int ret, char *data) { } -#ifdef _ADD_FAMILY_TAX // WON ADD 增加庄园税收 -// GS 启动及定时向 AC 要求庄园税率 +#ifdef _ADD_FAMILY_TAX // WON ADD 澧炲姞搴勫洯绋庢敹 +// GS 鍚姩鍙婂畾鏃跺悜 AC 瑕佹眰搴勫洯绋庣巼 void GS_ASK_TAX(void) { saacproto_GS_ASK_TAX_send(acfd); } -// 庄园族长修改税率 +// 搴勫洯鏃忛暱淇敼绋庣巼 void FAMILY_FIX_TAX( int fd, int index, char* message) { int fmpointindex=0, tax=0, fmindex=-1, i; char token[256]; char pointbuf[256]; -// extern struct FM_POINTLIST fmpointlist; // 家族据点 - // 判断资格 +// extern struct FM_POINTLIST fmpointlist; // 瀹舵棌鎹偣 + // 鍒ゆ柇璧勬牸 if (!CHAR_CHECKINDEX(index)) return; if ((CHAR_getInt(index, CHAR_FMINDEX) == -1) @@ -2228,10 +2228,10 @@ void FAMILY_FIX_TAX( int fd, int index, char* message) return; } - // 家族编号 + // 瀹舵棌缂栧彿 fmindex = CHAR_getInt(index, CHAR_FMINDEX); - // 检查是否为庄园的家族 + // 妫鏌ユ槸鍚︿负搴勫洯鐨勫鏃 for( i=0 ; i -1 ){ //处於乌力化状态 + if( CHAR_getInt( meindex, CHAR_BECOMEPIG) > -1 ){ //澶勬柤涔屽姏鍖栫姸鎬 CHAR_setInt( meindex, CHAR_RIDEPET, -1 ); - //宠物选项的状态依然为"骑乘",这里修正过来 + //瀹犵墿閫夐」鐨勭姸鎬佷緷鐒朵负"楠戜箻",杩欓噷淇杩囨潵 CHAR_complianceParameter( meindex ); CHAR_send_P_StatusString( meindex, CHAR_P_STRING_RIDEPET); - CHAR_talkToCli( meindex, -1, "目前你处于乌力化状态,不能骑乘宠物。", CHAR_COLORYELLOW ); + CHAR_talkToCli( meindex, -1, "鐩墠浣犲浜庝箤鍔涘寲鐘舵侊紝涓嶈兘楠戜箻瀹犵墿銆", CHAR_COLORYELLOW ); return 0; } #endif @@ -2686,33 +2686,33 @@ int FAMILY_RidePet( int fd, int meindex, char* message ) #ifdef _PET_BUG if(CHAR_getInt( petindex, CHAR_VITAL)>=getPetPoint(0)*20 || CHAR_getInt(petindex,CHAR_STR)>=getPetPoint(1)*80 || CHAR_getInt(petindex,CHAR_TOUGH)>=getPetPoint(2)*80 || CHAR_getInt(petindex,CHAR_DEX)>=getPetPoint(3)*100) { - CHAR_talkToCli( meindex, -1, "该宠物属性过高,无法骑乘。", CHAR_COLORYELLOW ); + CHAR_talkToCli( meindex, -1, "璇ュ疇鐗╁睘鎬ц繃楂橈紝鏃犳硶楠戜箻銆", CHAR_COLORYELLOW ); return 0; } #endif #ifdef _NOT_PETRIDE if(strstr(CHAR_getChar(petindex,CHAR_NAME),"*")){ - CHAR_talkToCli(meindex, -1, "此宠物无法骑乘。", CHAR_COLORRED); + CHAR_talkToCli(meindex, -1, "姝ゅ疇鐗╂棤娉曢獞涔樸", CHAR_COLORRED); return 0; } #endif if( CHAR_getInt( meindex, CHAR_LEARNRIDE) < CHAR_getInt( petindex, CHAR_LV ) ) { char buff[255]; - sprintf(buff,"你目前只能骑乘等级小于%d级的宠。",CHAR_getInt( meindex, CHAR_LEARNRIDE)); + sprintf(buff,"浣犵洰鍓嶅彧鑳介獞涔樼瓑绾у皬浜%d绾х殑瀹犮",CHAR_getInt( meindex, CHAR_LEARNRIDE)); CHAR_talkToCli( meindex, -1, buff, CHAR_COLORYELLOW ); return 0; } if( CHAR_getWorkInt( petindex, CHAR_WORKFIXAI ) < 100 ) { - CHAR_talkToCli( meindex, -1, "该骑宠的忠小于100", CHAR_COLORYELLOW ); + CHAR_talkToCli( meindex, -1, "璇ラ獞瀹犵殑蹇犲皬浜100", CHAR_COLORYELLOW ); return 0; } #ifdef _RIDELEVEL if( CHAR_getInt( meindex, CHAR_LV)+getRideLevel() < CHAR_getInt( petindex, CHAR_LV ) ) { char buff[255]; - sprintf(buff,"你最高只能骑宠等级比你大%d级的宠。",getRideLevel()); + sprintf(buff,"浣犳渶楂樺彧鑳介獞瀹犵瓑绾ф瘮浣犲ぇ%d绾х殑瀹犮",getRideLevel()); CHAR_talkToCli( meindex, -1, buff, CHAR_COLORYELLOW ); return 0; } @@ -2724,7 +2724,7 @@ int FAMILY_RidePet( int fd, int meindex, char* message ) if( CHAR_getInt( petindex, CHAR_TRANSMIGRATION) > getPetRideTrans()) return 0; #endif #ifdef _RIDEBUG - if(CHAR_getInt(meindex, CHAR_DEFAULTPET) == petindex ){//如果骑宠是战宠 + if(CHAR_getInt(meindex, CHAR_DEFAULTPET) == petindex ){//濡傛灉楠戝疇鏄垬瀹 return 0; } #endif @@ -2736,7 +2736,7 @@ int FAMILY_RidePet( int fd, int meindex, char* message ) for(;iindex < CHAR_PETITEMNUM; iindex++){ if(CHAR_getItemIndex(petindex,iindex) != -1){ char buff[255]; - sprintf(buff,"宠物身上有装备不可骑乘!"); + sprintf(buff,"瀹犵墿韬笂鏈夎澶囦笉鍙獞涔!"); CHAR_talkToCli( meindex, -1, buff, CHAR_COLORYELLOW ); return 0; } @@ -2791,7 +2791,7 @@ int FAMILY_RidePet( int fd, int meindex, char* message ) #ifdef _RIDE_CF int playerlowsride1 = CHAR_getInt( meindex, CHAR_LOWRIDEPETS1); int playerhighride2 = CHAR_getInt( meindex, CHAR_HIGHRIDEPETS2); - //print( "骑趁,数据信息:lowride = %d, lowride1 = %d, highride1 = %d, highride2 = %d. \n", playerlowsride, playerlowsride1, playerhighsride1, playerhighsride2 ); + //print( "楠戣秮,鏁版嵁淇℃伅:lowride = %d, lowride1 = %d, highride1 = %d, highride2 = %d. \n", playerlowsride, playerlowsride1, playerhighsride1, playerhighsride2 ); if( (ti = RIDEPET_getPETindex( petNo, playerlowsride, playerlowsride1, playerhighride2 )) >= 0 ) //if( (ti = RIDEPET_getPETindex( petNo, playerlowsride, NULL, NULL )) >= 0 ) @@ -2802,7 +2802,7 @@ int FAMILY_RidePet( int fd, int meindex, char* message ) if( (index = RIDEPET_getNOindex( playerNo)) >= 0 ){ if( (image = RIDEPET_getRIDEno( index,ti)) >= 0 ) { rideGraNo = image; - //print("...进入骑趁1111, 222 rideGraNo= %d\n", image); + //print("...杩涘叆楠戣秮1111, 222 rideGraNo= %d\n", image); } } } @@ -2812,7 +2812,7 @@ int FAMILY_RidePet( int fd, int meindex, char* message ) #ifdef _ITEM_METAMO // CHAR_setWorkInt( meindex, CHAR_WORKITEMMETAMO, 0); #endif - //print("...进入骑趁1111, 222, 333 rideGraNo= %d, ridepet = %s\n", rideGraNo, token2); + //print("...杩涘叆楠戣秮1111, 222, 333 rideGraNo= %d, ridepet = %s\n", rideGraNo, token2); CHAR_setInt( meindex , CHAR_RIDEPET, atoi( token2 ) ); CHAR_setInt( meindex , CHAR_BASEIMAGENUMBER , rideGraNo ); CHAR_complianceParameter( meindex ); @@ -2903,7 +2903,7 @@ int FAMILY_RidePet( int fd, int meindex, char* message ) getStringFromIndexWithDelim( itemarg, "|", 2, ridemetamo, sizeof(ridemetamo)); int metamo= CHAR_getInt( petindex , CHAR_BASEIMAGENUMBER); if(metamo==atoi(petmetamo)){ - //print("...进入骑趁还原人物1111, 222, 333 , ridemetamo = %d, ridepet = %s \n", ridemetamo, token2); + //print("...杩涘叆楠戣秮杩樺師浜虹墿1111, 222, 333 , ridemetamo = %d, ridepet = %s \n", ridemetamo, token2); CHAR_setInt( meindex , CHAR_RIDEPET, atoi( token2 ) ); CHAR_setInt( meindex , CHAR_BASEIMAGENUMBER , atoi( ridemetamo ) ); CHAR_complianceParameter( meindex ); @@ -2915,8 +2915,8 @@ int FAMILY_RidePet( int fd, int meindex, char* message ) } #endif } - }else { //还原人物 basebaseimage - //print("...进入骑趁还原人物1111, 222, 333 \n"); + }else { //杩樺師浜虹墿 basebaseimage + //print("...杩涘叆楠戣秮杩樺師浜虹墿1111, 222, 333 \n"); CHAR_setInt( meindex , CHAR_RIDEPET, -1 ); CHAR_setInt( meindex , CHAR_BASEIMAGENUMBER , CHAR_getInt( meindex , CHAR_BASEBASEIMAGENUMBER) ); CHAR_complianceParameter( meindex ); @@ -2932,8 +2932,8 @@ void ACFixFMPK(int winindex, int loseindex, int data) int i = 0, charindex = 0; char msg1[256], msg2[256]; - sprintf(msg1, "恭喜您!家族声望提高了%8d点!", (data / 100)); - sprintf(msg2, "家族声望减少了%8d点!", (data / 100)); + sprintf(msg1, "鎭枩鎮紒瀹舵棌澹版湜鎻愰珮浜%8d鐐癸紒", (data / 100)); + sprintf(msg2, "瀹舵棌澹版湜鍑忓皯浜%8d鐐癸紒", (data / 100)); for (i = 0; i < FAMILY_MAXMEMBER; i++) { charindex = familyMemberIndex[winindex][i]; @@ -3004,9 +3004,9 @@ void checkFamilyIndex( void ) } // if( err1 ) -// print("家族索引建立错误:%d\n", err1); +// print("瀹舵棌绱㈠紩寤虹珛閿欒:%d\n", err1); // if( err2 ) -// print("成员建立错误:%d\n", err2); +// print("鎴愬憳寤虹珛閿欒:%d\n", err2); if( ! (err1&&err2) ) print("ok!\n"); @@ -3025,7 +3025,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "你还未加入家族,所以不能使用唷!", buf, sizeof(buf) )); + makeEscapeString( "浣犺繕鏈姞鍏ュ鏃忥紝鎵浠ヤ笉鑳戒娇鐢ㄥ敺锛", buf, sizeof(buf) )); return; } @@ -3052,7 +3052,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) } saacproto_ACShowMemberList_send( acfd, fmindex_wk); - sprintf( sendbuf, " 『族 长 需 知』\n请小心处理族员的资料,一经修改後就无法回复原态,敬请小心。"); + sprintf( sendbuf, " 銆庢棌 闀 闇 鐭ャ廫n璇峰皬蹇冨鐞嗘棌鍛樼殑璧勬枡锛屼竴缁忎慨鏀瑰緦灏辨棤娉曞洖澶嶅師鎬侊紝鏁灏忓績銆"); lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, @@ -3149,7 +3149,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString("\n只有拥有庄园的族长,才能制作唷!", buf, sizeof(buf))); + makeEscapeString("\n鍙湁鎷ユ湁搴勫洯鐨勬棌闀匡紝鎵嶈兘鍒朵綔鍞凤紒", buf, sizeof(buf))); return; }else { int emptyitemindexinchara = CHAR_findEmptyItemBox( meindex ); @@ -3157,7 +3157,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) if( itemindex == -1 ) return; if( emptyitemindexinchara < 0 ) { - CHAR_talkToCli( meindex, -1, "道具栏已满。", CHAR_COLORWHITE); + CHAR_talkToCli( meindex, -1, "閬撳叿鏍忓凡婊°", CHAR_COLORWHITE); return; } #ifdef _CAX_FAME_KOUFEI @@ -3170,16 +3170,16 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) CHAR_sendItemDataOne( meindex, emptyitemindexinchara); #ifdef _CAX_FAME_KOUFEI if ( getfamekoufei() > 0 ){ - snprintf( buf, sizeof( buf), "制作%s成功。并扣除%d点声望资费!",ITEM_getChar( itemindex, ITEM_NAME),getfamekoufei()); + snprintf( buf, sizeof( buf), "鍒朵綔%s鎴愬姛銆傚苟鎵i櫎%d鐐瑰0鏈涜祫璐癸紒",ITEM_getChar( itemindex, ITEM_NAME),getfamekoufei()); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORWHITE); }else{ #endif - snprintf( buf, sizeof( buf), "制作%s成功。",ITEM_getChar( itemindex, ITEM_NAME)); + snprintf( buf, sizeof( buf), "鍒朵綔%s鎴愬姛銆",ITEM_getChar( itemindex, ITEM_NAME)); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORWHITE); #ifdef _CAX_FAME_KOUFEI } }else{ - CHAR_talkToCli( meindex, -1, "你的声望不够哦", CHAR_COLORYELLOW ); + CHAR_talkToCli( meindex, -1, "浣犵殑澹版湜涓嶅鍝", CHAR_COLORYELLOW ); return; } #endif @@ -3194,7 +3194,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) fmindexi = CHAR_getWorkInt( meindex, CHAR_WORKFMINDEXI ); - // 要求族长候选人列表 + // 瑕佹眰鏃忛暱鍊欓変汉鍒楄〃 if( strcmp( token2, "L") == 0 ){ char subsub[128]; @@ -3230,7 +3230,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) sendbuf ); } - // 询问族长候选人是否愿意接受 + // 璇㈤棶鏃忛暱鍊欓変汉鏄惁鎰挎剰鎺ュ彈 if( strcmp( token2, "Q") == 0 ) { char token3[64], token4[64]; @@ -3254,7 +3254,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) if( strcmp( token4, CHAR_getChar( toindex, CHAR_NAME)) != 0 ) return; if( CheckLeaderQ(toindex) < 0 ) return; - // 双方都决定让位时,CHAR_WORKLEADERCHANGE存放对方的charaindex + // 鍙屾柟閮藉喅瀹氳浣嶆椂锛孋HAR_WORKLEADERCHANGE瀛樻斁瀵规柟鐨刢haraindex CHAR_setWorkInt( toindex, CHAR_WORKLEADERCHANGE, meindex); CHAR_setWorkInt( meindex, CHAR_WORKLEADERCHANGE, toindex); @@ -3266,7 +3266,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) sendbuf ); } - // 候选人的答覆 + // 鍊欓変汉鐨勭瓟瑕 if( strcmp( token2, "A") == 0 ) { int leaderindex, answerflag; @@ -3289,7 +3289,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) leaderindex = atoi( token4 ); - // 检查双方的CHAR_WORKLEADERCHANGE是否相符 + // 妫鏌ュ弻鏂圭殑CHAR_WORKLEADERCHANGE鏄惁鐩哥 if( CHAR_getWorkInt( meindex, CHAR_WORKLEADERCHANGE ) != leaderindex ) return; if( !CHAR_CHECKINDEX(leaderindex) ) return; if( strcmp( leadername, CHAR_getChar( leaderindex, CHAR_NAME) ) != 0 ) return; @@ -3309,7 +3309,7 @@ void FAMILY_LeaderFunc( int fd, int meindex, char *message ) lssproto_WN_send( CHAR_getWorkInt( leaderindex, CHAR_WORKFD) , WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n对不起!对方不愿意接受!", buf, sizeof(buf)) ); + makeEscapeString( "\n瀵逛笉璧凤紒瀵规柟涓嶆効鎰忔帴鍙楋紒", buf, sizeof(buf)) ); return; } @@ -3351,8 +3351,8 @@ void ACFMJob( int fd, int ret, char* data1, char* data2 ) CHAR_setWorkInt( leaderindex, CHAR_WORKLEADERCHANGE, 0 ); if( ret == 0 ){ - CHAR_talkToCli( charaindex, -1, "族长让位失败!", CHAR_COLORYELLOW ); - CHAR_talkToCli( leaderindex, -1, "族长让位失败!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "鏃忛暱璁╀綅澶辫触锛", CHAR_COLORYELLOW ); + CHAR_talkToCli( leaderindex, -1, "鏃忛暱璁╀綅澶辫触锛", CHAR_COLORYELLOW ); return; } @@ -3371,7 +3371,7 @@ void ACFMJob( int fd, int ret, char* data1, char* data2 ) CHAR_getInt(charaindex, CHAR_FMINDEX), CHAR_getChar(charaindex, CHAR_NAME), CHAR_getChar(charaindex, CHAR_CDKEY), - "LEADERCHANGE_ERROR(族长让位失败)", + "LEADERCHANGE_ERROR(鏃忛暱璁╀綅澶辫触)", buf ); return; @@ -3387,9 +3387,9 @@ void ACFMJob( int fd, int ret, char* data1, char* data2 ) lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, - makeEscapeString( "\n恭喜你!你已经是新任的族长了。\n请好好的努力吧!\n对了~记得请先到村长家的家族管理员选择\n新的家族守护兽,否则家族将会被解散唷!", buf, sizeof(buf))); + makeEscapeString( "\n鎭枩浣狅紒浣犲凡缁忔槸鏂颁换鐨勬棌闀夸簡銆俓n璇峰ソ濂界殑鍔姏鍚э紒\n瀵逛簡锝炶寰楄鍏堝埌鏉戦暱瀹剁殑瀹舵棌绠$悊鍛橀夋嫨\n鏂扮殑瀹舵棌瀹堟姢鍏斤紝鍚﹀垯瀹舵棌灏嗕細琚В鏁e敺锛", buf, sizeof(buf))); - sprintf( buf2, "\n辛苦你了!你已经将族长的位子交给%s了。", CHAR_getChar( charaindex, CHAR_NAME) ); + sprintf( buf2, "\n杈涜嫤浣犱簡锛佷綘宸茬粡灏嗘棌闀跨殑浣嶅瓙浜ょ粰%s浜嗐", CHAR_getChar( charaindex, CHAR_NAME) ); lssproto_WN_send( CHAR_getWorkInt( leaderindex, CHAR_WORKFD) , WINDOW_MESSAGETYPE_MESSAGE, WINDOW_BUTTONTYPE_OK, -1, -1, @@ -3408,7 +3408,7 @@ void ACFMJob( int fd, int ret, char* data1, char* data2 ) CHAR_getInt(charaindex, CHAR_FMINDEX), CHAR_getChar(charaindex, CHAR_NAME), CHAR_getChar(charaindex, CHAR_CDKEY), - "LEADERCHANGE(族长让位)", + "LEADERCHANGE(鏃忛暱璁╀綅)", buf); } } @@ -3418,12 +3418,12 @@ int Char_GetFm( int id, int x) { int fd = getfdFromCharaIndex( id); - if (x == 1) //获得家族气势 + if (x == 1) //鑾峰緱瀹舵棌姘斿娍 return fmdptop.fmMomentum[id]; - else if (x == 2)//获得家族声望fmtopdp + else if (x == 2)//鑾峰緱瀹舵棌澹版湜fmtopdp return fmdptop.fmtopdp[id]; - else if (x == 3)//获得家族资金 + else if (x == 3)//鑾峰緱瀹舵棌璧勯噾 { //saacproto_ACGetFMData_send( fd, CHAR_getChar( id, CHAR_FMNAME), //CHAR_getInt( id, CHAR_FMINDEX ), diff --git a/char/pet.c b/char/pet.c index 355edb0..b5c9812 100644 --- a/char/pet.c +++ b/char/pet.c @@ -17,166 +17,166 @@ /* - * 矢永玄质 卞楮允月末□旦 + * 鐭㈡案鐜勮川 鍗炴ギ鍏佹湀鏈枴鏃 */ /*------------------------------------------------------------------------ - * 矢永玄毛ㄠ勾喃曰癫化月[犯田永弘迕[ - * CHAR厌瞻 卞及心综岳今木月[ - * 曰袄“综岳今木凶平乓仿index 撩 “-1 + * 鐭㈡案鐜勬瘺銊犲嬀鍠冩洶鐧寲鏈堬蓟鐘敯姘稿紭杩曪蓟 + * CHAR鍘岀灮 鍗炲強蹇冪患宀充粖鏈ㄦ湀锛 + * 鏇拌鈥滅患宀充粖鏈ㄥ嚩骞充箵浠縤ndex 鎾 鈥-1 *-----------------------------------------------------------------------*/ -char hanzibuf[5000][8] = {"阿","啊","哀","唉","挨","矮","爱","碍","安","岸","按","案","暗","昂","袄","傲","奥","八","巴","扒","吧","疤","拔","把","坝","爸","罢","霸","白","百","柏","摆","败","拜","班","般","斑","搬","板","版","办", -"半","伴","扮","拌","瓣","帮","绑","榜","膀","傍","棒","包","胞","雹","宝","饱","保","堡","报","抱","暴","爆","杯","悲","碑","北","贝","备","背","倍","被","辈","奔","本","笨","蹦","逼","鼻","比","彼","笔", -"鄙","币","必","毕","闭","毙","弊","碧","蔽","壁","避","臂","边","编","鞭","扁","便","变","遍","辨","辩","辫","标","表","别","宾","滨","冰","兵","丙","柄","饼","并","病","拨","波","玻","剥","脖","菠","播", -"伯","驳","泊","博","搏","膊","薄","卜","补","捕","不","布","步","怖","部","擦","猜","才","材","财","裁","采","彩","睬","踩","菜","参","餐","残","蚕","惭","惨","灿","仓","苍","舱","藏","操","槽","草","册", -"侧","厕","测","策","层","叉","插","查","茶","察","岔","差","拆","柴","馋","缠","产","铲","颤","昌","长","肠","尝","偿","常","厂","场","敞","畅","倡","唱","抄","钞","超","朝","潮","吵","炒","车","扯","彻", -"撤","尘","臣","沉","辰","陈","晨","闯","衬","称","趁","撑","成","呈","承","诚","城","乘","惩","程","秤","吃","驰","迟","持","池","匙","尺","齿","耻","斥","赤","翅","充","冲","虫","崇","抽","仇","绸","愁", -"稠","筹","酬","丑","臭","出","初","除","厨","锄","础","储","楚","处","触","畜","川","穿","传","船","喘","串","疮","窗","床","创","吹","炊","垂","锤","春","纯","唇","蠢","词","慈","辞","磁","此","次","刺", -"从","匆","葱","聪","丛","凑","粗","促","醋","窜","催","摧","脆","翠","村","存","寸","错","曾","搭","达","答","打","大","呆","代","带","待","怠","贷","袋","逮","戴","丹","单","担","耽","胆","旦","但","诞", -"弹","淡","蛋","当","挡","党","荡","档","刀","叨","导","岛","倒","蹈","到","悼","盗","道","稻","得","德","的","灯","登","等","凳","低","堤","滴","敌","笛","底","抵","地","弟","帝","递","第","颠","典","点", -"电","店","垫","殿","叼","雕","吊","钓","调","掉","爹","跌","叠","蝶","丁","叮","盯","钉","顶","订","定","丢","东","冬","董","懂","动","冻","栋","洞","都","斗","抖","陡","豆","逗","督","毒","读","独","堵", -"赌","杜","肚","度","渡","端","短","段","断","缎","锻","堆","队","对","吨","蹲","盾","顿","多","夺","朵","躲","惰","鹅","蛾","额","恶","饿","恩","儿","而","耳","二","发","乏","伐","罚","阀","法","帆","番", -"翻","凡","烦","繁","反","返","犯","泛","饭","范","贩","方","坊","芳","防","妨","房","仿","访","纺","放","飞","非","肥","匪","废","沸","肺","费","分","吩","纷","芬","坟","粉","份","奋","愤","粪","丰","风", -"封","疯","峰","锋","蜂","逢","缝","讽","凤","奉","佛","否","夫","肤","伏","扶","服","俘","浮","符","幅","福","抚","府","斧","俯","辅","腐","父","付","妇","负","附","咐","复","赴","副","傅","富","腹","覆", -"该","改","盖","溉","概","干","甘","杆","肝","竿","秆","赶","敢","感","冈","刚","岗","纲","缸","钢","港","杠","高","膏","糕","搞","稿","告","哥","胳","鸽","割","搁","歌","阁","革","格","葛","隔","个","各", -"给","根","跟","更","耕","工","弓","公","功","攻","供","宫","恭","躬","巩","共","贡","勾","沟","钩","狗","构","购","够","估","姑","孤","辜","古","谷","股","骨","鼓","固","故","顾","瓜","刮","挂","乖","拐", -"怪","关","观","官","冠","馆","管","贯","惯","灌","罐","光","广","归","龟","规","轨","鬼","柜","贵","桂","跪","滚","棍","锅","国","果","裹","过","哈","孩","海","害","含","寒","喊","汉","汗","旱","航","毫", -"豪","好","号","浩","耗","喝","禾","合","何","和","河","核","荷","盒","贺","黑","痕","很","狠","恨","恒","横","衡","轰","哄","烘","红","宏","洪","虹","喉","猴","吼","后","厚","候","乎","呼","忽","狐","胡", -"壶","湖","糊","蝴","虎","互","户","护","花","华","哗","滑","猾","化","划","画","话","怀","槐","坏","欢","还","环","缓","幻","唤","换","患","荒","慌","皇","黄","煌","晃","谎","灰","恢","挥","辉","回","悔", -"汇","会","绘","贿","惠","毁","慧","昏","婚","浑","魂","混","活","火","伙","或","货","获","祸","惑","击","饥","圾","机","肌","鸡","迹","积","基","绩","激","及","吉","级","即","极","急","疾","集","籍","几", -"己","挤","脊","计","记","纪","忌","技","际","剂","季","既","济","继","寄","加","夹","佳","家","嘉","甲","价","驾","架","假","嫁","稼","奸","尖","坚","歼","间","肩","艰","兼","监","煎","拣","俭","茧","捡", -"减","剪","检","简","见","件","建","剑","荐","贱","健","舰","渐","践","鉴","键","箭","江","姜","将","浆","僵","疆","讲","奖","桨","匠","降","酱","交","郊","娇","浇","骄","胶","椒","焦","蕉","角","狡","绞", -"饺","脚","搅","缴","叫","轿","较","教","阶","觉","掘","嚼","军","君","均","菌","俊","卡","开","皆","接","揭","街","节","劫","杰","洁","结","捷","截","竭","姐","解","介","戒","届","界","借","巾","今","斤", -"金","津","筋","仅","紧","谨","锦","尽","劲","近","进","晋","浸","禁","京","经","茎","惊","晶","睛","精","井","颈","景","警","净","径","竞","竟","敬","境","静","镜","纠","究","揪","九","久","酒","旧","救", -"就","舅","居","拘","鞠","局","菊","橘","举","矩","句","巨","拒","具","俱","剧","惧","据","距","锯","聚","捐","卷","倦","绢","决","绝","凯","慨","刊","堪","砍","看","康","糠","扛","抗","炕","考","烤","靠", -"科","棵","颗","壳","咳","可","渴","克","刻","客","课","肯","垦","恳","坑","空","孔","恐","控","口","扣","寇","枯","哭","苦","库","裤","酷","夸","垮","挎","跨","块","快","宽","款","筐","狂","况","旷","矿", -"框","亏","葵","愧","昆","捆","困","扩","括","阔","垃","拉","啦","喇","腊","蜡","辣","来","赖","兰","拦","栏","蓝","篮","览","懒","烂","滥","郎","狼","廊","朗","浪","捞","劳","牢","老","姥","涝","乐","勒", -"雷","垒","泪","类","累","冷","厘","梨","狸","离","犁","鹂","璃","黎","礼","李","里","理","力","历","厉","立","丽","利","励","例","隶","栗","粒","俩","连","帘","怜","莲","联","廉","镰","脸","练","炼","恋", -"链","良","凉","梁","粮","粱","两","亮","谅","辆","量","辽","疗","僚","了","料","列","劣","烈","猎","裂","邻","林","临","淋","伶","灵","岭","铃","陵","零","龄","领","令","另","溜","刘","流","留","榴","柳", -"六","龙","笼","聋","隆","垄","拢","楼","搂","漏","露","芦","炉","虏","鲁","陆","录","鹿","滤","碌","路","驴","轮","论","罗","萝","锣","箩","骡","螺","络","骆","落","妈","麻","马","码","蚂","骂","吗","埋", -"买","旅","屡","律","虑","率","绿","卵","乱","掠","略","迈","麦","卖","脉","蛮","馒","瞒","满","慢","漫","忙","芒","盲","茫","猫","毛","矛","茅","茂","冒","贸","帽","貌","么","没","眉","梅","煤","霉","每", -"美","妹","门","闷","们","萌","盟","猛","蒙","孟","梦","迷","谜","米","眯","秘","密","蜜","眠","绵","棉","免","勉","面","苗","描","秒","妙","庙","灭","蔑","民","敏","名","明","鸣","命","摸","模","膜","摩", -"磨","魔","抹","末","沫","莫","漠","墨","默","谋","某","母","亩","木","目","牧","墓","幕","慕","暮","拿","哪","内","那","纳","乃","奶","耐","男","南","难","囊","挠","恼","脑","闹","呢","嫩","能","尼","泥", -"你","逆","年","念","娘","酿","鸟","尿","捏","您","宁","凝","牛","扭","纽","农","浓","弄","奴","努","怒","女","暖","挪","欧","偶","辟","趴","爬","怕","拍","牌","派","攀","盘","判","叛","盼","乓","旁","胖", -"抛","炮","袍","跑","泡","陪","培","赔","佩","配","喷","盆","朋","棚","蓬","膨","捧","碰","批","披","劈","皮","疲","脾","匹","僻","片","偏","篇","骗","漂","飘","票","撇","拼","贫","品","乒","平","评","凭", -"苹","瓶","萍","坡","泼","婆","迫","破","魄","剖","仆","扑","铺","葡","朴","普","谱","七","妻","戚","期","欺","漆","齐","其","奇","骑","棋","旗","乞","企","岂","启","起","气","弃","汽","砌","器","恰","洽", -"千","迁","牵","铅","谦","签","前","钱","钳","潜","浅","遣","欠","歉","枪","腔","强","墙","抢","悄","敲","锹","乔","侨","桥","瞧","巧","切","茄","且","窃","亲","侵","芹","琴","禽","勤","青","轻","倾","清", -"蜻","情","晴","顷","请","庆","穷","丘","秋","求","球","区","曲","驱","屈","趋","渠","取","去","趣","圈","全","权","泉","拳","犬","劝","券","缺","却","雀","确","鹊","裙","群","然","燃","染","嚷","壤","让", -"饶","扰","绕","惹","热","人","仁","忍","刃","认","任","扔","仍","日","绒","荣","容","熔","融","柔","揉","肉","如","乳","辱","入","软","锐","瑞","润","若","弱","撒","洒","塞","赛","三","伞","散","桑","嗓", -"丧","扫","嫂","色","森","杀","沙","纱","傻","筛","晒","山","删","衫","闪","陕","扇","善","伤","商","裳","晌","赏","上","尚","捎","梢","烧","稍","勺","少","绍","哨","舌","蛇","舍","设","社","射","涉","摄", -"申","伸","身","深","神","沈","审","婶","肾","甚","渗","慎","升","生","声","牲","胜","绳","省","圣","盛","剩","尸","失","师","诗","施","狮","湿","十","什","石","时","识","实","拾","蚀","食","史","使","始", -"驶","士","氏","世","市","示","式","事","侍","势","视","试","饰","室","是","柿","适","逝","释","誓","收","手","守","首","寿","受","兽","售","授","瘦","书","叔","殊","梳","疏","舒","输","蔬","熟","暑","鼠", -"属","薯","术","束","述","树","竖","数","刷","耍","衰","摔","甩","帅","拴","双","霜","爽","谁","水","税","睡","顺","说","嗽","丝","司","私","思","斯","撕","死","四","寺","似","饲","肆","松","宋","诵","送", -"颂","搜","艘","苏","俗","诉","肃","素","速","宿","塑","酸","蒜","算","虽","随","岁","碎","穗","孙","损","笋","缩","所","索","锁","她","他","它","塌","塔","踏","台","抬","太","态","泰","贪","摊","滩","坛", -"谈","痰","坦","毯","叹","炭","探","汤","唐","堂","塘","膛","糖","倘","躺","烫","趟","涛","掏","滔","逃","桃","陶","淘","萄","讨","套","特","疼","腾","梯","踢","提","题","蹄","体","剃","惕","替","天","添", -"田","甜","填","挑","条","跳","贴","铁","帖","厅","听","亭","庭","停","挺","艇","通","同","桐","铜","童","统","桶","筒","痛","偷","头","投","透","秃","突","图","徒","涂","途","屠","土","吐","兔","团","推", -"腿","退","吞","屯","托","拖","脱","驼","妥","娃","挖","蛙","瓦","袜","歪","外","弯","湾","丸","完","玩","顽","挽","晚","碗","万","汪","亡","王","网","往","妄","忘","旺","望","危","威","微","为","围","违", -"唯","维","伟","伪","尾","委","卫","未","位","味","畏","胃","喂","慰","温","文","纹","闻","蚊","稳","问","翁","窝","我","沃","卧","握","乌","污","呜","屋","无","吴","五","午","伍","武","侮","舞","勿","务", -"物","误","悟","雾","夕","西","吸","希","析","息","牺","悉","惜","稀","溪","锡","熄","膝","习","席","袭","洗","喜","戏","系","细","隙","虾","瞎","峡","狭","霞","下","吓","夏","厦","仙","先","纤","掀","鲜", -"闲","弦","贤","咸","衔","嫌","显","险","县","现","线","限","宪","陷","馅","羡","献","乡","相","香","箱","详","祥","享","响","想","向","巷","项","象","像","橡","些","歇","协","邪","胁","斜","携","鞋","写", -"泄","泻","卸","屑","械","谢","心","辛","欣","新","薪","信","兴","星","腥","刑","行","形","型","醒","杏","姓","幸","性","凶","兄","胸","雄","熊","休","修","羞","朽","秀","绣","袖","锈","须","虚","需","徐", -"许","序","叙","绪","续","絮","蓄","宣","悬","旋","选","穴","学","雪","血","寻","巡","旬","询","循","削","宵","消","销","小","晓","孝","效","校","笑","训","讯","迅","压","呀","押","鸦","鸭","牙","芽","崖", -"哑","雅","亚","咽","烟","淹","延","严","言","岩","沿","炎","研","盐","蜒","颜","掩","眼","演","厌","宴","艳","验","焰","雁","燕","央","殃","秧","扬","羊","阳","杨","洋","仰","养","氧","痒","样","妖","腰", -"邀","窑","谣","摇","遥","咬","药","要","钥","悦","阅","跃","越","云","匀","允","孕","运","耀","爷","也","冶","野","业","叶","页","夜","液","一","衣","医","依","仪","宜","姨","移","遗","疑","乙","已","以", -"蚁","倚","椅","义","亿","忆","艺","议","亦","异","役","译","易","疫","益","谊","意","毅","翼","因","阴","姻","音","银","引","饮","隐","印","应","英","樱","鹰","迎","盈","营","蝇","赢","影","映","硬","佣", -"拥","庸","永","咏","泳","勇","涌","用","优","忧","悠","尤","由","犹","邮","油","游","友","有","又","右","幼","诱","于","予","余","鱼","娱","渔","愉","愚","榆","与","宇","屿","羽","雨","语","玉","育","郁", -"狱","浴","预","域","欲","御","裕","遇","愈","誉","冤","元","员","园","原","圆","援","缘","源","远","怨","院","愿","约","月","晕","韵","杂","灾","栽","宰","载","再","在","咱","暂","赞","脏","葬","遭","糟", -"早","枣","澡","灶","皂","造","燥","躁","则","择","泽","责","贼","怎","增","赠","渣","扎","轧","闸","眨","炸","榨","摘","宅","窄","债","寨","沾","粘","斩","展","盏","崭","占","战","站","张","章","涨","掌", -"丈","仗","帐","胀","障","招","找","召","兆","赵","照","罩","遮","爪","专","砖","转","赚","庄","装","壮","状","撞","折","哲","者","这","浙","贞","针","侦","珍","真","诊","枕","阵","振","镇","震","争","征", -"挣","睁","筝","蒸","整","正","证","郑","政","症","之","支","汁","芝","枝","知","织","肢","脂","蜘","执","侄","直","值","职","植","殖","止","只","旨","址","纸","指","至","志","制","帜","治","质","秩","致", -"智","置","中","忠","终","钟","肿","种","众","重","州","舟","周","洲","粥","宙","昼","皱","骤","朱","株","珠","诸","猪","蛛","竹","烛","逐","主","煮","嘱","住","助","注","驻","柱","祝","著","筑","铸","抓", -"追","准","捉","桌","浊","啄","着","仔","姿","资","滋","子","紫","字","自","宗","棕","踪","总","纵","走","奏","租","足","族","阻","组","祖","钻","嘴","最","罪","醉","尊","遵","昨","左","作","坐","座","阿", -"啊","哀","唉","挨","矮","爱","碍","安","岸","按","案","暗","昂","袄","傲","奥","八","巴","扒","吧","疤","拔","把","坝","爸","罢","霸","白","百","柏","摆","败","拜","班","般","斑","搬","板","版","办","半", -"伴","扮","拌","瓣","帮","绑","榜","膀","傍","棒","包","胞","雹","宝","饱","保","堡","报","抱","暴","爆","杯","悲","碑","北","贝","备","背","倍","被","辈","奔","本","笨","蹦","逼","鼻","比","彼","笔","鄙", -"币","必","毕","闭","毙","弊","碧","蔽","壁","避","臂","边","编","鞭","扁","便","变","遍","辨","辩","辫","标","表","别","宾","滨","冰","兵","丙","柄","饼","并","病","拨","波","玻","剥","脖","菠","播","伯", -"驳","泊","博","搏","膊","薄","卜","补","捕","不","布","步","怖","部","擦","猜","才","材","财","裁","采","彩","睬","踩","菜","参","餐","残","蚕","惭","惨","灿","仓","苍","舱","藏","操","槽","草","册","侧", -"厕","测","策","层","叉","插","查","茶","察","岔","差","拆","柴","馋","缠","产","铲","颤","昌","长","肠","尝","偿","常","厂","场","敞","畅","倡","唱","抄","钞","超","朝","潮","吵","炒","车","扯","彻","撤", -"尘","臣","沉","辰","陈","晨","闯","衬","称","趁","撑","成","呈","承","诚","城","乘","惩","程","秤","吃","驰","迟","持","虫","崇","抽","仇","绸","愁","稠","筹","酬","丑","臭","出","初","除","厨","锄","础", -"储","楚","处","触","畜","川","穿","传","船","喘","串","疮","窗","床","创","吹","炊","垂","锤","春","纯","唇","蠢","词","慈","辞","磁","此","次","刺","从","匆","葱","聪","丛","凑","粗","促","醋","窜","催", -"摧","脆","翠","村","存","寸","错","曾","搭","达","答","打","大","呆","代","带","待","怠","贷","袋","逮","戴","丹","单","担","耽","胆","旦","但","诞","弹","淡","蛋","当","挡","党","荡","档","刀","叨","导", -"岛","倒","蹈","到","悼","盗","道","稻","得","德","的","灯","登","等","凳","低","堤","滴","敌","笛","底","抵","地","弟","帝","递","第","颠","典","点","电","店","垫","殿","叼","雕","吊","钓","调","掉","爹", -"跌","叠","蝶","丁","叮","盯","钉","顶","订","定","丢","东","冬","董","懂","动","冻","栋","洞","都","斗","抖","陡","豆","逗","督","毒","读","独","堵","赌","杜","肚","度","渡","端","短","段","断","缎","锻", -"堆","队","对","吨","蹲","盾","顿","多","夺","朵","躲","惰","鹅","蛾","额","恶","饿","恩","儿","而","耳","二","发","乏","伐","罚","阀","法","帆","番","翻","凡","烦","繁","反","返","犯","泛","饭","范","贩", -"方","坊","芳","防","妨","房","仿","访","纺","放","飞","非","肥","匪","废","沸","肺","费","分","吩","纷","芬","坟","粉","份","奋","愤","粪","丰","风","封","疯","峰","锋","蜂","逢","缝","讽","凤","奉","佛", -"否","夫","肤","伏","扶","服","俘","浮","符","幅","福","抚","府","斧","俯","辅","腐","父","付","妇","负","附","咐","复","赴","副","傅","富","腹","覆","该","改","盖","溉","概","干","甘","杆","肝","竿","秆", -"赶","敢","感","冈","刚","岗","纲","缸","钢","港","杠","高","膏","糕","搞","稿","告","哥","胳","鸽","割","搁","歌","阁","革","格","葛","隔","个","各","给","根","跟","更","耕","工","弓","公","功","攻","供", -"宫","恭","躬","巩","共","贡","勾","沟","钩","狗","构","购","够","估","姑","孤","辜","古","谷","股","骨","鼓","固","故","顾","瓜","刮","挂","乖","拐","怪","关","观","官","冠","馆","管","贯","惯","灌","罐", -"光","广","归","龟","规","轨","鬼","柜","贵","桂","跪","滚","棍","锅","国","果","裹","过","哈","孩","海","害","含","寒","喊","汉","汗","旱","航","毫","豪","好","号","浩","耗","喝","禾","合","何","和","河", -"核","荷","盒","贺","黑","痕","很","狠","恨","恒","横","衡","轰","哄","烘","红","宏","洪","虹","喉","猴","吼","后","厚","候","乎","呼","忽","狐","胡","壶","湖","糊","蝴","虎","互","户","护","花","华","哗", -"滑","猾","化","划","画","话","怀","槐","坏","欢","还","环","缓","幻","唤","换","患","荒","慌","皇","黄","煌","晃","谎","灰","恢","挥","辉","回","悔","汇","会","绘","贿","惠","毁","慧","昏","婚","浑","魂", -"混","活","火","伙","或","货","获","祸","惑","击","饥","圾","机","肌","鸡","迹","积","基","绩","激","及","吉","级","即","极","急","疾","集","籍","几","己","挤","脊","计","记","纪","忌","技","际","剂","季", -"既","济","继","寄","加","夹","佳","家","嘉","甲","价","驾","架","假","嫁","稼","奸","尖","坚","歼","间","肩","艰","兼","监","煎","拣","俭","茧","捡","减","剪","检","简","见","件","建","剑","荐","贱","健", -"舰","渐","践","鉴","键","箭","江","姜","将","浆","僵","疆","讲","奖","桨","匠","降","酱","交","郊","娇","浇","骄","胶","椒","焦","蕉","角","狡","绞","饺","脚","搅","缴","叫","轿","较","教","阶","皆","接", -"揭","街","节","劫","杰","洁","结","捷","截","竭","姐","解","介","戒","届","界","借","巾","今","斤","金","津","筋","仅","紧","谨","锦","尽","劲","近","进","晋","浸","禁","京","经","茎","惊","晶","睛","精", -"井","颈","景","警","净","径","竞","竟","敬","境","静","镜","纠","究","揪","九","久","酒","旧","救","就","舅","居","拘","鞠","局","菊","橘","举","矩","句","巨","拒","具","俱","剧","惧","据","距","锯","聚", -"捐","卷","倦","绢","决","绝","觉","掘","嚼","军","君","均","菌","俊","卡","开","凯","慨","刊","堪","砍","看","康","糠","扛","抗","炕","考","烤","靠","科","棵","颗","壳","咳","可","渴","克","刻","客","课", -"肯","垦","恳","坑","空","孔","恐","控","口","扣","寇","枯","哭","苦","库","裤","酷","夸","垮","挎","跨","块","快","宽","款","筐","狂","况","旷","矿","框","亏","葵","愧","昆","捆","困","扩","括","阔","垃", -"拉","啦","喇","腊","蜡","辣","来","赖","兰","拦","栏","蓝","篮","览","懒","烂","滥","郎","狼","廊","朗","浪","捞","劳","牢","老","姥","涝","乐","勒","雷","垒","泪","类","僚","了","料","列","劣","烈","猎", -"裂","邻","林","累","冷","厘","梨","狸","离","犁","鹂","璃","黎","礼","李","里","理","力","历","厉","立","丽","利","励","例","隶","栗","粒","俩","连","帘","怜","莲","联","廉","镰","脸","练","炼","恋","链", -"良","凉","梁","粮","粱","两","亮","谅","辆","量","辽","疗","临","淋","伶","灵","岭","铃","陵","零","龄","领","令","另","溜","刘","流","留","榴","柳","六","龙","笼","聋","隆","垄","拢","楼","搂","漏","露", -"芦","炉","虏","鲁","陆","录","鹿","滤","碌","路","驴","轮","论","罗","萝","锣","箩","骡","螺","络","骆","旅","屡","律","虑","率","绿","卵","乱","掠","略","落","妈","麻","马","码","蚂","骂","吗","埋","买", -"迈","麦","卖","脉","蛮","馒","瞒","满","慢","漫","忙","芒","盲","茫","猫","毛","矛","茅","茂","冒","贸","帽","貌","么","没","眉","梅","煤","霉","每","美","妹","门","闷","们","萌","盟","猛","蒙","孟","梦", -"迷","谜","米","眯","秘","密","蜜","眠","绵","棉","免","勉","面","苗","描","秒","妙","庙","灭","蔑","民","敏","名","明","鸣","命","摸","模","膜","摩","磨","魔","抹","末","沫","莫","漠","墨","默","谋","某", -"母","亩","木","目","牧","墓","幕","慕","暮","拿","哪","内","那","纳","乃","奶","耐","男","南","难","囊","挠","恼","脑","闹","呢","嫩","能","尼","泥","你","逆","年","念","娘","酿","鸟","尿","捏","您","宁", -"凝","牛","扭","纽","农","浓","弄","奴","努","怒","女","暖","挪","欧","偶","辟","趴","爬","怕","拍","牌","派","攀","盘","判","叛","盼","乓","旁","胖","抛","炮","袍","跑","泡","陪","培","赔","佩","配","喷", -"盆","朋","棚","蓬","膨","捧","碰","批","披","劈","皮","疲","脾","匹","僻","片","偏","篇","骗","漂","飘","票","撇","拼","贫","品","乒","平","评","凭","苹","瓶","萍","坡","泼","婆","迫","破","魄","剖","仆", -"扑","铺","葡","朴","普","谱","七","妻","戚","期","欺","漆","齐","其","奇","骑","棋","旗","乞","企","岂","启","起","气","弃","汽","砌","器","恰","洽","千","迁","牵","铅","谦","签","前","钱","钳","潜","浅", -"遣","欠","歉","枪","腔","强","墙","抢","悄","敲","锹","乔","侨","桥","瞧","巧","切","茄","且","窃","亲","侵","芹","琴","禽","勤","青","轻","倾","清","蜻","情","晴","顷","请","庆","穷","丘","秋","求","球", -"区","曲","驱","屈","趋","渠","取","去","趣","圈","全","权","泉","拳","犬","劝","券","缺","却","雀","确","鹊","裙","群","然","燃","染","嚷","壤","让","饶","扰","绕","惹","热","人","仁","忍","刃","认","任", -"扔","仍","日","绒","荣","容","熔","融","柔","揉","肉","如","乳","辱","入","软","锐","瑞","润","若","弱","撒","洒","塞","赛","三","伞","散","桑","嗓","丧","扫","嫂","色","森","杀","沙","纱","傻","筛","晒", -"山","删","衫","闪","陕","扇","善","伤","商","裳","晌","赏","上","尚","捎","梢","烧","稍","勺","少","绍","哨","舌","蛇","舍","设","社","射","涉","摄","申","伸","身","深","神","沈","审","婶","肾","甚","渗", -"慎","升","生","声","牲","胜","绳","省","圣","盛","剩","尸","失","师","诗","施","狮","湿","十","什","石","时","识","实","拾","蚀","食","史","使","始","驶","士","氏","世","市","示","式","事","侍","势","视", -"试","饰","室","是","柿","适","逝","释","誓","池","匙","尺","齿","耻","斥","赤","翅","充","冲","收","手","守","首","寿","受","兽","售","授","瘦","书","叔","殊","梳","疏","舒","输","蔬","熟","暑","鼠","属", -"薯","术","束","述","树","竖","数","刷","耍","衰","摔","甩","帅","拴","双","霜","爽","谁","水","税","睡","顺","说","嗽","丝","司","私","思","斯","撕","死","四","寺","似","饲","肆","松","宋","诵","送","颂", -"搜","艘","苏","俗","诉","肃","素","穗","孙","损","笋","缩","所","索","锁","她","他","它","塌","塔","踏","台","抬","太","态","泰","贪","摊","滩","坛","谈","痰","坦","毯","叹","炭","探","汤","唐","堂","塘", -"膛","糖","倘","躺","烫","趟","涛","掏","滔","逃","桃","陶","淘","萄","讨","套","特","疼","腾","梯","踢","提","题","蹄","体","剃","惕","替","天","添","田","甜","填","挑","条","跳","贴","铁","帖","厅","听", -"亭","庭","停","挺","艇","通","同","桐","铜","童","统","桶","筒","痛","偷","头","投","透","秃","突","图","徒","涂","途","屠","土","吐","兔","团","推","腿","退","吞","屯","托","拖","脱","驼","妥","娃","挖", -"蛙","瓦","袜","歪","外","弯","湾","丸","完","玩","顽","挽","晚","碗","万","汪","亡","王","网","往","妄","忘","旺","望","危","威","微","为","围","违","唯","维","伟","伪","尾","委","卫","未","位","味","畏", -"胃","喂","慰","温","文","纹","闻","蚊","稳","问","翁","窝","我","沃","卧","握","乌","污","呜","屋","无","吴","五","午","伍","武","侮","舞","勿","务","物","误","悟","雾","夕","西","吸","希","析","息","牺", -"悉","惜","稀","溪","锡","熄","膝","习","席","袭","洗","喜","戏","系","细","隙","虾","瞎","峡","狭","霞","下","吓","夏","厦","仙","先","纤","掀","鲜","闲","弦","贤","咸","衔","嫌","显","险","县","现","线", -"限","宪","陷","馅","羡","献","乡","相","香","箱","详","祥","享","响","想","向","巷","项","象","像","橡","削","宵","消","销","小","晓","孝","效","校","笑","些","歇","协","邪","胁","斜","携","鞋","写","泄", -"泻","卸","屑","械","谢","心","辛","欣","新","薪","信","兴","星","腥","刑","行","形","型","醒","杏","姓","幸","性","凶","兄","胸","雄","熊","休","修","羞","朽","秀","绣","袖","锈","须","虚","需","徐","速", -"宿","塑","酸","蒜","算","虽","随","岁","碎","许","序","叙","绪","续","絮","蓄","宣","悬","旋","选","穴","学","雪","血","寻","巡","旬","询","循","训","讯","迅","压","呀","押","鸦","鸭","牙","芽","崖","哑", -"雅","亚","咽","烟","淹","延","严","言","岩","沿","炎","研","盐","蜒","颜","掩","眼","演","厌","宴","艳","验","焰","雁","燕","央","殃","秧","扬","羊","阳","杨","洋","仰","养","氧","痒","样","妖","腰","邀", -"窑","谣","摇","遥","咬","药","要","耀","爷","也","冶","野","业","叶","页","夜","液","一","衣","医","依","仪","宜","姨","移","遗","疑","乙","已","以","蚁","倚","椅","义","亿","忆","艺","议","亦","异","役", -"译","易","疫","益","谊","意","毅","翼","因","阴","姻","音","银","引","饮","隐","印","应","英","樱","鹰","迎","盈","营","蝇","赢","影","映","硬","佣","拥","庸","永","咏","泳","勇","涌","用","优","忧","悠", -"尤","由","犹","邮","油","游","友","有","又","右","幼","诱","于","予","余","鱼","娱","渔","愉","愚","榆","与","宇","屿","羽","雨","语","玉","育","郁","狱","浴","预","域","欲","御","裕","遇","愈","誉","冤", -"元","员","园","原","圆","援","缘","源","远","怨","院","愿","约","月","钥","悦","阅","跃","越","云","匀","允","孕","运","晕","韵","杂","灾","栽","宰","载","再","在","咱","暂","赞","脏","葬","遭","糟","早", -"枣","澡","灶","皂","造","燥","躁","则","择","泽","责","贼","怎","增","赠","渣","扎","轧","闸","眨","炸","榨","摘","宅","窄","债","寨","沾","粘","斩","展","盏","崭","占","战","站","张","章","涨","掌","丈", -"仗","帐","胀","障","招","找","召","兆","赵","照","罩","遮","折","哲","者","这","浙","贞","针","侦","珍","真","诊","枕","阵","振","镇","震","争","征","挣","睁","筝","蒸","整","正","证","郑","政","症","之", -"支","汁","芝","枝","知","织","肢","脂","蜘","执","侄","直","值","职","植","殖","止","只","旨","址","纸","指","至","志","制","帜","治","质","秩","致","智","置","中","忠","终","钟","肿","种","众","重","州", -"舟","周","洲","粥","宙","昼","皱","骤","朱","株","珠","诸","猪","蛛","竹","烛","逐","主","煮","嘱","住","助","注","驻","柱","祝","著","筑","铸","抓","爪","专","砖","转","赚","庄","装","壮","状","撞","追", -"准","捉","桌","浊","啄","着","仔","姿","资","滋","子","紫","字","自","宗","棕","踪","总","纵","走","奏","租","足","族","阻","组","祖","钻","嘴","最","罪","醉","尊","遵","昨","左","作","坐","座"}; +char hanzibuf[5000][8] = {"闃","鍟","鍝","鍞","鎸","鐭","鐖","纰","瀹","宀","鎸","妗","鏆","鏄","琚","鍌","濂","鍏","宸","鎵","鍚","鐤","鎷","鎶","鍧","鐖","缃","闇","鐧","鐧","鏌","鎽","璐","鎷","鐝","鑸","鏂","鎼","鏉","鐗","鍔", +"鍗","浼","鎵","鎷","鐡","甯","缁","姒","鑶","鍌","妫","鍖","鑳","闆","瀹","楗","淇","鍫","鎶","鎶","鏆","鐖","鏉","鎮","纰","鍖","璐","澶","鑳","鍊","琚","杈","濂","鏈","绗","韫","閫","榧","姣","褰","绗", +"閯","甯","蹇","姣","闂","姣","寮","纰","钄","澹","閬","鑷","杈","缂","闉","鎵","渚","鍙","閬","杈","杈","杈","鏍","琛","鍒","瀹","婊","鍐","鍏","涓","鏌","楗","骞","鐥","鎷","娉","鐜","鍓","鑴","鑿","鎾", +"浼","椹","娉","鍗","鎼","鑶","钖","鍗","琛","鎹","涓","甯","姝","鎬","閮","鎿","鐚","鎵","鏉","璐","瑁","閲","褰","鐫","韪","鑿","鍙","椁","娈","铓","鎯","鎯","鐏","浠","鑻","鑸","钘","鎿","妲","鑽","鍐", +"渚","鍘","娴","绛","灞","鍙","鎻","鏌","鑼","瀵","宀","宸","鎷","鏌","棣","缂","浜","閾","棰","鏄","闀","鑲","灏","鍋","甯","鍘","鍦","鏁","鐣","鍊","鍞","鎶","閽","瓒","鏈","娼","鍚","鐐","杞","鎵","褰", +"鎾","灏","鑷","娌","杈","闄","鏅","闂","琛","绉","瓒","鎾","鎴","鍛","鎵","璇","鍩","涔","鎯","绋","绉","鍚","椹","杩","鎸","姹","鍖","灏","榻","鑰","鏂","璧","缈","鍏","鍐","铏","宕","鎶","浠","缁","鎰", +"绋","绛","閰","涓","鑷","鍑","鍒","闄","鍘","閿","纭","鍌","妤","澶","瑙","鐣","宸","绌","浼","鑸","鍠","涓","鐤","绐","搴","鍒","鍚","鐐","鍨","閿","鏄","绾","鍞","锠","璇","鎱","杈","纾","姝","娆","鍒", +"浠","鍖","钁","鑱","涓","鍑","绮","淇","閱","绐","鍌","鎽","鑴","缈","鏉","瀛","瀵","閿","鏇","鎼","杈","绛","鎵","澶","鍛","浠","甯","寰","鎬","璐","琚","閫","鎴","涓","鍗","鎷","鑰","鑳","鏃","浣","璇", +"寮","娣","铔","褰","鎸","鍏","鑽","妗","鍒","鍙","瀵","宀","鍊","韫","鍒","鎮","鐩","閬","绋","寰","寰","鐨","鐏","鐧","绛","鍑","浣","鍫","婊","鏁","绗","搴","鎶","鍦","寮","甯","閫","绗","棰","鍏","鐐", +"鐢","搴","鍨","娈","鍙","闆","鍚","閽","璋","鎺","鐖","璺","鍙","铦","涓","鍙","鐩","閽","椤","璁","瀹","涓","涓","鍐","钁","鎳","鍔","鍐","鏍","娲","閮","鏂","鎶","闄","璞","閫","鐫","姣","璇","鐙","鍫", +"璧","鏉","鑲","搴","娓","绔","鐭","娈","鏂","缂","閿","鍫","闃","瀵","鍚","韫","鐩","椤","澶","澶","鏈","韬","鎯","楣","铔","棰","鎭","楗","鎭","鍎","鑰","鑰","浜","鍙","涔","浼","缃","闃","娉","甯","鐣", +"缈","鍑","鐑","绻","鍙","杩","鐘","娉","楗","鑼","璐","鏂","鍧","鑺","闃","濡","鎴","浠","璁","绾","鏀","椋","闈","鑲","鍖","搴","娌","鑲","璐","鍒","鍚","绾","鑺","鍧","绮","浠","濂","鎰","绮","涓","椋", +"灏","鐤","宄","閿","铚","閫","缂","璁","鍑","濂","浣","鍚","澶","鑲","浼","鎵","鏈","淇","娴","绗","骞","绂","鎶","搴","鏂","淇","杈","鑵","鐖","浠","濡","璐","闄","鍜","澶","璧","鍓","鍌","瀵","鑵","瑕", +"璇","鏀","鐩","婧","姒","骞","鐢","鏉","鑲","绔","绉","璧","鏁","鎰","鍐","鍒","宀","绾","缂","閽","娓","鏉","楂","鑶","绯","鎼","绋","鍛","鍝","鑳","楦","鍓","鎼","姝","闃","闈","鏍","钁","闅","涓","鍚", +"缁","鏍","璺","鏇","鑰","宸","寮","鍏","鍔","鏀","渚","瀹","鎭","韬","宸","鍏","璐","鍕","娌","閽","鐙","鏋","璐","澶","浼","濮","瀛","杈","鍙","璋","鑲","楠","榧","鍥","鏁","椤","鐡","鍒","鎸","涔","鎷", +"鎬","鍏","瑙","瀹","鍐","棣","绠","璐","鎯","鐏","缃","鍏","骞","褰","榫","瑙","杞","楝","鏌","璐","妗","璺","婊","妫","閿","鍥","鏋","瑁","杩","鍝","瀛","娴","瀹","鍚","瀵","鍠","姹","姹","鏃","鑸","姣", +"璞","濂","鍙","娴","鑰","鍠","绂","鍚","浣","鍜","娌","鏍","鑽","鐩","璐","榛","鐥","寰","鐙","鎭","鎭","妯","琛","杞","鍝","鐑","绾","瀹","娲","铏","鍠","鐚","鍚","鍚","鍘","鍊","涔","鍛","蹇","鐙","鑳", +"澹","婀","绯","铦","铏","浜","鎴","鎶","鑺","鍗","鍝","婊","鐚","鍖","鍒","鐢","璇","鎬","妲","鍧","娆","杩","鐜","缂","骞","鍞","鎹","鎮","鑽","鎱","鐨","榛","鐓","鏅","璋","鐏","鎭","鎸","杈","鍥","鎮", +"姹","浼","缁","璐","鎯","姣","鎱","鏄","濠","娴","榄","娣","娲","鐏","浼","鎴","璐","鑾","绁","鎯","鍑","楗","鍦","鏈","鑲","楦","杩","绉","鍩","缁","婵","鍙","鍚","绾","鍗","鏋","鎬","鐤","闆","绫","鍑", +"宸","鎸","鑴","璁","璁","绾","蹇","鎶","闄","鍓","瀛","鏃","娴","缁","瀵","鍔","澶","浣","瀹","鍢","鐢","浠","椹","鏋","鍋","瀚","绋","濂","灏","鍧","姝","闂","鑲","鑹","鍏","鐩","鐓","鎷","淇","鑼","鎹", +"鍑","鍓","妫","绠","瑙","浠","寤","鍓","鑽","璐","鍋","鑸","娓","璺","閴","閿","绠","姹","濮","灏","娴","鍍","鐤","璁","濂","妗","鍖","闄","閰","浜","閮","濞","娴","楠","鑳","妞","鐒","钑","瑙","鐙","缁", +"楗","鑴","鎼","缂","鍙","杞","杈","鏁","闃","瑙","鎺","鍤","鍐","鍚","鍧","鑿","淇","鍗","寮","鐨","鎺","鎻","琛","鑺","鍔","鏉","娲","缁","鎹","鎴","绔","濮","瑙","浠","鎴","灞","鐣","鍊","宸","浠","鏂", +"閲","娲","绛","浠","绱","璋","閿","灏","鍔","杩","杩","鏅","娴","绂","浜","缁","鑼","鎯","鏅","鐫","绮","浜","棰","鏅","璀","鍑","寰","绔","绔","鏁","澧","闈","闀","绾","绌","鎻","涔","涔","閰","鏃","鏁", +"灏","鑸","灞","鎷","闉","灞","鑿","姗","涓","鐭","鍙","宸","鎷","鍏","淇","鍓","鎯","鎹","璺","閿","鑱","鎹","鍗","鍊","缁","鍐","缁","鍑","鎱","鍒","鍫","鐮","鐪","搴","绯","鎵","鎶","鐐","鑰","鐑","闈", +"绉","妫","棰","澹","鍜","鍙","娓","鍏","鍒","瀹","璇","鑲","鍨","鎭","鍧","绌","瀛","鎭","鎺","鍙","鎵","瀵","鏋","鍝","鑻","搴","瑁","閰","澶","鍨","鎸","璺","鍧","蹇","瀹","娆","绛","鐙","鍐","鏃","鐭", +"妗","浜","钁","鎰","鏄","鎹","鍥","鎵","鎷","闃","鍨","鎷","鍟","鍠","鑵","铚","杈","鏉","璧","鍏","鎷","鏍","钃","绡","瑙","鎳","鐑","婊","閮","鐙","寤","鏈","娴","鎹","鍔","鐗","鑰","濮","娑","涔","鍕", +"闆","鍨","娉","绫","绱","鍐","鍘","姊","鐙","绂","鐘","楣","鐠","榛","绀","鏉","閲","鐞","鍔","鍘","鍘","绔","涓","鍒","鍔","渚","闅","鏍","绮","淇","杩","甯","鎬","鑾","鑱","寤","闀","鑴","缁","鐐","鎭", +"閾","鑹","鍑","姊","绮","绮","涓","浜","璋","杈","閲","杈","鐤","鍍","浜","鏂","鍒","鍔","鐑","鐚","瑁","閭","鏋","涓","娣","浼","鐏","宀","閾","闄","闆","榫","棰","浠","鍙","婧","鍒","娴","鐣","姒","鏌", +"鍏","榫","绗","鑱","闅","鍨","鎷","妤","鎼","婕","闇","鑺","鐐","铏","椴","闄","褰","楣","婊","纰","璺","椹","杞","璁","缃","钀","閿","绠","楠","铻","缁","楠","钀","濡","楹","椹","鐮","铓","楠","鍚","鍩", +"涔","鏃","灞","寰","铏","鐜","缁","鍗","涔","鎺","鐣","杩","楹","鍗","鑴","铔","棣","鐬","婊","鎱","婕","蹇","鑺","鐩","鑼","鐚","姣","鐭","鑼","鑼","鍐","璐","甯","璨","涔","娌","鐪","姊","鐓","闇","姣", +"缇","濡","闂","闂","浠","钀","鐩","鐚","钂","瀛","姊","杩","璋","绫","鐪","绉","瀵","铚","鐪","缁","妫","鍏","鍕","闈","鑻","鎻","绉","濡","搴","鐏","钄","姘","鏁","鍚","鏄","楦","鍛","鎽","妯","鑶","鎽", +"纾","榄","鎶","鏈","娌","鑾","婕","澧","榛","璋","鏌","姣","浜","鏈","鐩","鐗","澧","骞","鎱","鏆","鎷","鍝","鍐","閭","绾","涔","濂","鑰","鐢","鍗","闅","鍥","鎸","鎭","鑴","闂","鍛","瀚","鑳","灏","娉", +"浣","閫","骞","蹇","濞","閰","楦","灏","鎹","鎮","瀹","鍑","鐗","鎵","绾","鍐","娴","寮","濂","鍔","鎬","濂","鏆","鎸","娆","鍋","杈","瓒","鐖","鎬","鎷","鐗","娲","鏀","鐩","鍒","鍙","鐩","涔","鏃","鑳", +"鎶","鐐","琚","璺","娉","闄","鍩","璧","浣","閰","鍠","鐩","鏈","妫","钃","鑶","鎹","纰","鎵","鎶","鍔","鐨","鐤","鑴","鍖","鍍","鐗","鍋","绡","楠","婕","椋","绁","鎾","鎷","璐","鍝","涔","骞","璇","鍑", +"鑻","鐡","钀","鍧","娉","濠","杩","鐮","榄","鍓","浠","鎵","閾","钁","鏈","鏅","璋","涓","濡","鎴","鏈","娆","婕","榻","鍏","濂","楠","妫","鏃","涔","浼","宀","鍚","璧","姘","寮","姹","鐮","鍣","鎭","娲", +"鍗","杩","鐗","閾","璋","绛","鍓","閽","閽","娼","娴","閬","娆","姝","鏋","鑵","寮","澧","鎶","鎮","鏁","閿","涔","渚","妗","鐬","宸","鍒","鑼","涓","绐","浜","渚","鑺","鐞","绂","鍕","闈","杞","鍊","娓", +"铚","鎯","鏅","椤","璇","搴","绌","涓","绉","姹","鐞","鍖","鏇","椹","灞","瓒","娓","鍙","鍘","瓒","鍦","鍏","鏉","娉","鎷","鐘","鍔","鍒","缂","鍗","闆","纭","楣","瑁","缇","鐒","鐕","鏌","鍤","澹","璁", +"楗","鎵","缁","鎯","鐑","浜","浠","蹇","鍒","璁","浠","鎵","浠","鏃","缁","鑽","瀹","鐔","铻","鏌","鎻","鑲","濡","涔","杈","鍏","杞","閿","鐟","娑","鑻","寮","鎾","娲","濉","璧","涓","浼","鏁","妗","鍡", +"涓","鎵","瀚","鑹","妫","鏉","娌","绾","鍌","绛","鏅","灞","鍒","琛","闂","闄","鎵","鍠","浼","鍟","瑁","鏅","璧","涓","灏","鎹","姊","鐑","绋","鍕","灏","缁","鍝","鑸","铔","鑸","璁","绀","灏","娑","鎽", +"鐢","浼","韬","娣","绁","娌","瀹","濠","鑲","鐢","娓","鎱","鍗","鐢","澹","鐗","鑳","缁","鐪","鍦","鐩","鍓","灏","澶","甯","璇","鏂","鐙","婀","鍗","浠","鐭","鏃","璇","瀹","鎷","铓","椋","鍙","浣","濮", +"椹","澹","姘","涓","甯","绀","寮","浜","渚","鍔","瑙","璇","楗","瀹","鏄","鏌","閫","閫","閲","瑾","鏀","鎵","瀹","棣","瀵","鍙","鍏","鍞","鎺","鐦","涔","鍙","娈","姊","鐤","鑸","杈","钄","鐔","鏆","榧", +"灞","钖","鏈","鏉","杩","鏍","绔","鏁","鍒","鑰","琛","鎽","鐢","甯","鎷","鍙","闇","鐖","璋","姘","绋","鐫","椤","璇","鍡","涓","鍙","绉","鎬","鏂","鎾","姝","鍥","瀵","浼","楗","鑲","鏉","瀹","璇","閫", +"棰","鎼","鑹","鑻","淇","璇","鑲","绱","閫","瀹","濉","閰","钂","绠","铏","闅","宀","纰","绌","瀛","鎹","绗","缂","鎵","绱","閿","濂","浠","瀹","濉","濉","韪","鍙","鎶","澶","鎬","娉","璐","鎽","婊","鍧", +"璋","鐥","鍧","姣","鍙","鐐","鎺","姹","鍞","鍫","濉","鑶","绯","鍊","韬","鐑","瓒","娑","鎺","婊","閫","妗","闄","娣","钀","璁","濂","鐗","鐤","鑵","姊","韪","鎻","棰","韫","浣","鍓","鎯","鏇","澶","娣", +"鐢","鐢","濉","鎸","鏉","璺","璐","閾","甯","鍘","鍚","浜","搴","鍋","鎸","鑹","閫","鍚","妗","閾","绔","缁","妗","绛","鐥","鍋","澶","鎶","閫","绉","绐","鍥","寰","娑","閫","灞","鍦","鍚","鍏","鍥","鎺", +"鑵","閫","鍚","灞","鎵","鎷","鑴","椹","濡","濞","鎸","铔","鐡","琚","姝","澶","寮","婀","涓","瀹","鐜","椤","鎸","鏅","纰","涓","姹","浜","鐜","缃","寰","濡","蹇","鏃","鏈","鍗","濞","寰","涓","鍥","杩", +"鍞","缁","浼","浼","灏","濮","鍗","鏈","浣","鍛","鐣","鑳","鍠","鎱","娓","鏂","绾","闂","铓","绋","闂","缈","绐","鎴","娌","鍗","鎻","涔","姹","鍛","灞","鏃","鍚","浜","鍗","浼","姝","渚","鑸","鍕","鍔", +"鐗","璇","鎮","闆","澶","瑗","鍚","甯","鏋","鎭","鐗","鎮","鎯","绋","婧","閿","鐔","鑶","涔","甯","琚","娲","鍠","鎴","绯","缁","闅","铏","鐬","宄","鐙","闇","涓","鍚","澶","鍘","浠","鍏","绾","鎺","椴", +"闂","寮","璐","鍜","琛","瀚","鏄","闄","鍘","鐜","绾","闄","瀹","闄","棣","缇","鐚","涔","鐩","棣","绠","璇","绁","浜","鍝","鎯","鍚","宸","椤","璞","鍍","姗","浜","姝","鍗","閭","鑳","鏂","鎼","闉","鍐", +"娉","娉","鍗","灞","姊","璋","蹇","杈","娆","鏂","钖","淇","鍏","鏄","鑵","鍒","琛","褰","鍨","閱","鏉","濮","骞","鎬","鍑","鍏","鑳","闆","鐔","浼","淇","缇","鏈","绉","缁","琚","閿","椤","铏","闇","寰", +"璁","搴","鍙","缁","缁","绲","钃","瀹","鎮","鏃","閫","绌","瀛","闆","琛","瀵","宸","鏃","璇","寰","鍓","瀹","娑","閿","灏","鏅","瀛","鏁","鏍","绗","璁","璁","杩","鍘","鍛","鎶","楦","楦","鐗","鑺","宕", +"鍝","闆","浜","鍜","鐑","娣","寤","涓","瑷","宀","娌","鐐","鐮","鐩","铚","棰","鎺","鐪","婕","鍘","瀹","鑹","楠","鐒","闆","鐕","澶","娈","绉","鎵","缇","闃","鏉","娲","浠","鍏","姘","鐥","鏍","濡","鑵", +"閭","绐","璋","鎽","閬","鍜","鑽","瑕","閽","鎮","闃","璺","瓒","浜","鍖","鍏","瀛","杩","鑰","鐖","涔","鍐","閲","涓","鍙","椤","澶","娑","涓","琛","鍖","渚","浠","瀹","濮","绉","閬","鐤","涔","宸","浠", +"铓","鍊","妞","涔","浜","蹇","鑹","璁","浜","寮","褰","璇","鏄","鐤","鐩","璋","鎰","姣","缈","鍥","闃","濮","闊","閾","寮","楗","闅","鍗","搴","鑻","妯","楣","杩","鐩","钀","铦","璧","褰","鏄","纭","浣", +"鎷","搴","姘","鍜","娉","鍕","娑","鐢","浼","蹇","鎮","灏","鐢","鐘","閭","娌","娓","鍙","鏈","鍙","鍙","骞","璇","浜","浜","浣","楸","濞","娓","鎰","鎰","姒","涓","瀹","灞","缇","闆","璇","鐜","鑲","閮", +"鐙","娴","棰","鍩","娆","寰","瑁","閬","鎰","瑾","鍐","鍏","鍛","鍥","鍘","鍦","鎻","缂","婧","杩","鎬","闄","鎰","绾","鏈","鏅","闊","鏉","鐏","鏍","瀹","杞","鍐","鍦","鍜","鏆","璧","鑴","钁","閬","绯", +"鏃","鏋","婢","鐏","鐨","閫","鐕","韬","鍒","鎷","娉","璐","璐","鎬","澧","璧","娓","鎵","杞","闂","鐪","鐐","姒","鎽","瀹","绐","鍊","瀵","娌","绮","鏂","灞","鐩","宕","鍗","鎴","绔","寮","绔","娑","鎺", +"涓","浠","甯","鑳","闅","鎷","鎵","鍙","鍏","璧","鐓","缃","閬","鐖","涓","鐮","杞","璧","搴","瑁","澹","鐘","鎾","鎶","鍝","鑰","杩","娴","璐","閽","渚","鐝","鐪","璇","鏋","闃","鎸","闀","闇","浜","寰", +"鎸","鐫","绛","钂","鏁","姝","璇","閮","鏀","鐥","涔","鏀","姹","鑺","鏋","鐭","缁","鑲","鑴","铚","鎵","渚","鐩","鍊","鑱","妞","娈","姝","鍙","鏃","鍧","绾","鎸","鑷","蹇","鍒","甯","娌","璐","绉","鑷", +"鏅","缃","涓","蹇","缁","閽","鑲","绉","浼","閲","宸","鑸","鍛","娲","绮","瀹","鏄","鐨","楠","鏈","鏍","鐝","璇","鐚","铔","绔","鐑","閫","涓","鐓","鍢","浣","鍔","娉","椹","鏌","绁","钁","绛","閾","鎶", +"杩","鍑","鎹","妗","娴","鍟","鐫","浠","濮","璧","婊","瀛","绱","瀛","鑷","瀹","妫","韪","鎬","绾","璧","濂","绉","瓒","鏃","闃","缁","绁","閽","鍢","鏈","缃","閱","灏","閬","鏄","宸","浣","鍧","搴","闃", +"鍟","鍝","鍞","鎸","鐭","鐖","纰","瀹","宀","鎸","妗","鏆","鏄","琚","鍌","濂","鍏","宸","鎵","鍚","鐤","鎷","鎶","鍧","鐖","缃","闇","鐧","鐧","鏌","鎽","璐","鎷","鐝","鑸","鏂","鎼","鏉","鐗","鍔","鍗", +"浼","鎵","鎷","鐡","甯","缁","姒","鑶","鍌","妫","鍖","鑳","闆","瀹","楗","淇","鍫","鎶","鎶","鏆","鐖","鏉","鎮","纰","鍖","璐","澶","鑳","鍊","琚","杈","濂","鏈","绗","韫","閫","榧","姣","褰","绗","閯", +"甯","蹇","姣","闂","姣","寮","纰","钄","澹","閬","鑷","杈","缂","闉","鎵","渚","鍙","閬","杈","杈","杈","鏍","琛","鍒","瀹","婊","鍐","鍏","涓","鏌","楗","骞","鐥","鎷","娉","鐜","鍓","鑴","鑿","鎾","浼", +"椹","娉","鍗","鎼","鑶","钖","鍗","琛","鎹","涓","甯","姝","鎬","閮","鎿","鐚","鎵","鏉","璐","瑁","閲","褰","鐫","韪","鑿","鍙","椁","娈","铓","鎯","鎯","鐏","浠","鑻","鑸","钘","鎿","妲","鑽","鍐","渚", +"鍘","娴","绛","灞","鍙","鎻","鏌","鑼","瀵","宀","宸","鎷","鏌","棣","缂","浜","閾","棰","鏄","闀","鑲","灏","鍋","甯","鍘","鍦","鏁","鐣","鍊","鍞","鎶","閽","瓒","鏈","娼","鍚","鐐","杞","鎵","褰","鎾", +"灏","鑷","娌","杈","闄","鏅","闂","琛","绉","瓒","鎾","鎴","鍛","鎵","璇","鍩","涔","鎯","绋","绉","鍚","椹","杩","鎸","铏","宕","鎶","浠","缁","鎰","绋","绛","閰","涓","鑷","鍑","鍒","闄","鍘","閿","纭", +"鍌","妤","澶","瑙","鐣","宸","绌","浼","鑸","鍠","涓","鐤","绐","搴","鍒","鍚","鐐","鍨","閿","鏄","绾","鍞","锠","璇","鎱","杈","纾","姝","娆","鍒","浠","鍖","钁","鑱","涓","鍑","绮","淇","閱","绐","鍌", +"鎽","鑴","缈","鏉","瀛","瀵","閿","鏇","鎼","杈","绛","鎵","澶","鍛","浠","甯","寰","鎬","璐","琚","閫","鎴","涓","鍗","鎷","鑰","鑳","鏃","浣","璇","寮","娣","铔","褰","鎸","鍏","鑽","妗","鍒","鍙","瀵", +"宀","鍊","韫","鍒","鎮","鐩","閬","绋","寰","寰","鐨","鐏","鐧","绛","鍑","浣","鍫","婊","鏁","绗","搴","鎶","鍦","寮","甯","閫","绗","棰","鍏","鐐","鐢","搴","鍨","娈","鍙","闆","鍚","閽","璋","鎺","鐖", +"璺","鍙","铦","涓","鍙","鐩","閽","椤","璁","瀹","涓","涓","鍐","钁","鎳","鍔","鍐","鏍","娲","閮","鏂","鎶","闄","璞","閫","鐫","姣","璇","鐙","鍫","璧","鏉","鑲","搴","娓","绔","鐭","娈","鏂","缂","閿", +"鍫","闃","瀵","鍚","韫","鐩","椤","澶","澶","鏈","韬","鎯","楣","铔","棰","鎭","楗","鎭","鍎","鑰","鑰","浜","鍙","涔","浼","缃","闃","娉","甯","鐣","缈","鍑","鐑","绻","鍙","杩","鐘","娉","楗","鑼","璐", +"鏂","鍧","鑺","闃","濡","鎴","浠","璁","绾","鏀","椋","闈","鑲","鍖","搴","娌","鑲","璐","鍒","鍚","绾","鑺","鍧","绮","浠","濂","鎰","绮","涓","椋","灏","鐤","宄","閿","铚","閫","缂","璁","鍑","濂","浣", +"鍚","澶","鑲","浼","鎵","鏈","淇","娴","绗","骞","绂","鎶","搴","鏂","淇","杈","鑵","鐖","浠","濡","璐","闄","鍜","澶","璧","鍓","鍌","瀵","鑵","瑕","璇","鏀","鐩","婧","姒","骞","鐢","鏉","鑲","绔","绉", +"璧","鏁","鎰","鍐","鍒","宀","绾","缂","閽","娓","鏉","楂","鑶","绯","鎼","绋","鍛","鍝","鑳","楦","鍓","鎼","姝","闃","闈","鏍","钁","闅","涓","鍚","缁","鏍","璺","鏇","鑰","宸","寮","鍏","鍔","鏀","渚", +"瀹","鎭","韬","宸","鍏","璐","鍕","娌","閽","鐙","鏋","璐","澶","浼","濮","瀛","杈","鍙","璋","鑲","楠","榧","鍥","鏁","椤","鐡","鍒","鎸","涔","鎷","鎬","鍏","瑙","瀹","鍐","棣","绠","璐","鎯","鐏","缃", +"鍏","骞","褰","榫","瑙","杞","楝","鏌","璐","妗","璺","婊","妫","閿","鍥","鏋","瑁","杩","鍝","瀛","娴","瀹","鍚","瀵","鍠","姹","姹","鏃","鑸","姣","璞","濂","鍙","娴","鑰","鍠","绂","鍚","浣","鍜","娌", +"鏍","鑽","鐩","璐","榛","鐥","寰","鐙","鎭","鎭","妯","琛","杞","鍝","鐑","绾","瀹","娲","铏","鍠","鐚","鍚","鍚","鍘","鍊","涔","鍛","蹇","鐙","鑳","澹","婀","绯","铦","铏","浜","鎴","鎶","鑺","鍗","鍝", +"婊","鐚","鍖","鍒","鐢","璇","鎬","妲","鍧","娆","杩","鐜","缂","骞","鍞","鎹","鎮","鑽","鎱","鐨","榛","鐓","鏅","璋","鐏","鎭","鎸","杈","鍥","鎮","姹","浼","缁","璐","鎯","姣","鎱","鏄","濠","娴","榄", +"娣","娲","鐏","浼","鎴","璐","鑾","绁","鎯","鍑","楗","鍦","鏈","鑲","楦","杩","绉","鍩","缁","婵","鍙","鍚","绾","鍗","鏋","鎬","鐤","闆","绫","鍑","宸","鎸","鑴","璁","璁","绾","蹇","鎶","闄","鍓","瀛", +"鏃","娴","缁","瀵","鍔","澶","浣","瀹","鍢","鐢","浠","椹","鏋","鍋","瀚","绋","濂","灏","鍧","姝","闂","鑲","鑹","鍏","鐩","鐓","鎷","淇","鑼","鎹","鍑","鍓","妫","绠","瑙","浠","寤","鍓","鑽","璐","鍋", +"鑸","娓","璺","閴","閿","绠","姹","濮","灏","娴","鍍","鐤","璁","濂","妗","鍖","闄","閰","浜","閮","濞","娴","楠","鑳","妞","鐒","钑","瑙","鐙","缁","楗","鑴","鎼","缂","鍙","杞","杈","鏁","闃","鐨","鎺", +"鎻","琛","鑺","鍔","鏉","娲","缁","鎹","鎴","绔","濮","瑙","浠","鎴","灞","鐣","鍊","宸","浠","鏂","閲","娲","绛","浠","绱","璋","閿","灏","鍔","杩","杩","鏅","娴","绂","浜","缁","鑼","鎯","鏅","鐫","绮", +"浜","棰","鏅","璀","鍑","寰","绔","绔","鏁","澧","闈","闀","绾","绌","鎻","涔","涔","閰","鏃","鏁","灏","鑸","灞","鎷","闉","灞","鑿","姗","涓","鐭","鍙","宸","鎷","鍏","淇","鍓","鎯","鎹","璺","閿","鑱", +"鎹","鍗","鍊","缁","鍐","缁","瑙","鎺","鍤","鍐","鍚","鍧","鑿","淇","鍗","寮","鍑","鎱","鍒","鍫","鐮","鐪","搴","绯","鎵","鎶","鐐","鑰","鐑","闈","绉","妫","棰","澹","鍜","鍙","娓","鍏","鍒","瀹","璇", +"鑲","鍨","鎭","鍧","绌","瀛","鎭","鎺","鍙","鎵","瀵","鏋","鍝","鑻","搴","瑁","閰","澶","鍨","鎸","璺","鍧","蹇","瀹","娆","绛","鐙","鍐","鏃","鐭","妗","浜","钁","鎰","鏄","鎹","鍥","鎵","鎷","闃","鍨", +"鎷","鍟","鍠","鑵","铚","杈","鏉","璧","鍏","鎷","鏍","钃","绡","瑙","鎳","鐑","婊","閮","鐙","寤","鏈","娴","鎹","鍔","鐗","鑰","濮","娑","涔","鍕","闆","鍨","娉","绫","鍍","浜","鏂","鍒","鍔","鐑","鐚", +"瑁","閭","鏋","绱","鍐","鍘","姊","鐙","绂","鐘","楣","鐠","榛","绀","鏉","閲","鐞","鍔","鍘","鍘","绔","涓","鍒","鍔","渚","闅","鏍","绮","淇","杩","甯","鎬","鑾","鑱","寤","闀","鑴","缁","鐐","鎭","閾", +"鑹","鍑","姊","绮","绮","涓","浜","璋","杈","閲","杈","鐤","涓","娣","浼","鐏","宀","閾","闄","闆","榫","棰","浠","鍙","婧","鍒","娴","鐣","姒","鏌","鍏","榫","绗","鑱","闅","鍨","鎷","妤","鎼","婕","闇", +"鑺","鐐","铏","椴","闄","褰","楣","婊","纰","璺","椹","杞","璁","缃","钀","閿","绠","楠","铻","缁","楠","鏃","灞","寰","铏","鐜","缁","鍗","涔","鎺","鐣","钀","濡","楹","椹","鐮","铓","楠","鍚","鍩","涔", +"杩","楹","鍗","鑴","铔","棣","鐬","婊","鎱","婕","蹇","鑺","鐩","鑼","鐚","姣","鐭","鑼","鑼","鍐","璐","甯","璨","涔","娌","鐪","姊","鐓","闇","姣","缇","濡","闂","闂","浠","钀","鐩","鐚","钂","瀛","姊", +"杩","璋","绫","鐪","绉","瀵","铚","鐪","缁","妫","鍏","鍕","闈","鑻","鎻","绉","濡","搴","鐏","钄","姘","鏁","鍚","鏄","楦","鍛","鎽","妯","鑶","鎽","纾","榄","鎶","鏈","娌","鑾","婕","澧","榛","璋","鏌", +"姣","浜","鏈","鐩","鐗","澧","骞","鎱","鏆","鎷","鍝","鍐","閭","绾","涔","濂","鑰","鐢","鍗","闅","鍥","鎸","鎭","鑴","闂","鍛","瀚","鑳","灏","娉","浣","閫","骞","蹇","濞","閰","楦","灏","鎹","鎮","瀹", +"鍑","鐗","鎵","绾","鍐","娴","寮","濂","鍔","鎬","濂","鏆","鎸","娆","鍋","杈","瓒","鐖","鎬","鎷","鐗","娲","鏀","鐩","鍒","鍙","鐩","涔","鏃","鑳","鎶","鐐","琚","璺","娉","闄","鍩","璧","浣","閰","鍠", +"鐩","鏈","妫","钃","鑶","鎹","纰","鎵","鎶","鍔","鐨","鐤","鑴","鍖","鍍","鐗","鍋","绡","楠","婕","椋","绁","鎾","鎷","璐","鍝","涔","骞","璇","鍑","鑻","鐡","钀","鍧","娉","濠","杩","鐮","榄","鍓","浠", +"鎵","閾","钁","鏈","鏅","璋","涓","濡","鎴","鏈","娆","婕","榻","鍏","濂","楠","妫","鏃","涔","浼","宀","鍚","璧","姘","寮","姹","鐮","鍣","鎭","娲","鍗","杩","鐗","閾","璋","绛","鍓","閽","閽","娼","娴", +"閬","娆","姝","鏋","鑵","寮","澧","鎶","鎮","鏁","閿","涔","渚","妗","鐬","宸","鍒","鑼","涓","绐","浜","渚","鑺","鐞","绂","鍕","闈","杞","鍊","娓","铚","鎯","鏅","椤","璇","搴","绌","涓","绉","姹","鐞", +"鍖","鏇","椹","灞","瓒","娓","鍙","鍘","瓒","鍦","鍏","鏉","娉","鎷","鐘","鍔","鍒","缂","鍗","闆","纭","楣","瑁","缇","鐒","鐕","鏌","鍤","澹","璁","楗","鎵","缁","鎯","鐑","浜","浠","蹇","鍒","璁","浠", +"鎵","浠","鏃","缁","鑽","瀹","鐔","铻","鏌","鎻","鑲","濡","涔","杈","鍏","杞","閿","鐟","娑","鑻","寮","鎾","娲","濉","璧","涓","浼","鏁","妗","鍡","涓","鎵","瀚","鑹","妫","鏉","娌","绾","鍌","绛","鏅", +"灞","鍒","琛","闂","闄","鎵","鍠","浼","鍟","瑁","鏅","璧","涓","灏","鎹","姊","鐑","绋","鍕","灏","缁","鍝","鑸","铔","鑸","璁","绀","灏","娑","鎽","鐢","浼","韬","娣","绁","娌","瀹","濠","鑲","鐢","娓", +"鎱","鍗","鐢","澹","鐗","鑳","缁","鐪","鍦","鐩","鍓","灏","澶","甯","璇","鏂","鐙","婀","鍗","浠","鐭","鏃","璇","瀹","鎷","铓","椋","鍙","浣","濮","椹","澹","姘","涓","甯","绀","寮","浜","渚","鍔","瑙", +"璇","楗","瀹","鏄","鏌","閫","閫","閲","瑾","姹","鍖","灏","榻","鑰","鏂","璧","缈","鍏","鍐","鏀","鎵","瀹","棣","瀵","鍙","鍏","鍞","鎺","鐦","涔","鍙","娈","姊","鐤","鑸","杈","钄","鐔","鏆","榧","灞", +"钖","鏈","鏉","杩","鏍","绔","鏁","鍒","鑰","琛","鎽","鐢","甯","鎷","鍙","闇","鐖","璋","姘","绋","鐫","椤","璇","鍡","涓","鍙","绉","鎬","鏂","鎾","姝","鍥","瀵","浼","楗","鑲","鏉","瀹","璇","閫","棰", +"鎼","鑹","鑻","淇","璇","鑲","绱","绌","瀛","鎹","绗","缂","鎵","绱","閿","濂","浠","瀹","濉","濉","韪","鍙","鎶","澶","鎬","娉","璐","鎽","婊","鍧","璋","鐥","鍧","姣","鍙","鐐","鎺","姹","鍞","鍫","濉", +"鑶","绯","鍊","韬","鐑","瓒","娑","鎺","婊","閫","妗","闄","娣","钀","璁","濂","鐗","鐤","鑵","姊","韪","鎻","棰","韫","浣","鍓","鎯","鏇","澶","娣","鐢","鐢","濉","鎸","鏉","璺","璐","閾","甯","鍘","鍚", +"浜","搴","鍋","鎸","鑹","閫","鍚","妗","閾","绔","缁","妗","绛","鐥","鍋","澶","鎶","閫","绉","绐","鍥","寰","娑","閫","灞","鍦","鍚","鍏","鍥","鎺","鑵","閫","鍚","灞","鎵","鎷","鑴","椹","濡","濞","鎸", +"铔","鐡","琚","姝","澶","寮","婀","涓","瀹","鐜","椤","鎸","鏅","纰","涓","姹","浜","鐜","缃","寰","濡","蹇","鏃","鏈","鍗","濞","寰","涓","鍥","杩","鍞","缁","浼","浼","灏","濮","鍗","鏈","浣","鍛","鐣", +"鑳","鍠","鎱","娓","鏂","绾","闂","铓","绋","闂","缈","绐","鎴","娌","鍗","鎻","涔","姹","鍛","灞","鏃","鍚","浜","鍗","浼","姝","渚","鑸","鍕","鍔","鐗","璇","鎮","闆","澶","瑗","鍚","甯","鏋","鎭","鐗", +"鎮","鎯","绋","婧","閿","鐔","鑶","涔","甯","琚","娲","鍠","鎴","绯","缁","闅","铏","鐬","宄","鐙","闇","涓","鍚","澶","鍘","浠","鍏","绾","鎺","椴","闂","寮","璐","鍜","琛","瀚","鏄","闄","鍘","鐜","绾", +"闄","瀹","闄","棣","缇","鐚","涔","鐩","棣","绠","璇","绁","浜","鍝","鎯","鍚","宸","椤","璞","鍍","姗","鍓","瀹","娑","閿","灏","鏅","瀛","鏁","鏍","绗","浜","姝","鍗","閭","鑳","鏂","鎼","闉","鍐","娉", +"娉","鍗","灞","姊","璋","蹇","杈","娆","鏂","钖","淇","鍏","鏄","鑵","鍒","琛","褰","鍨","閱","鏉","濮","骞","鎬","鍑","鍏","鑳","闆","鐔","浼","淇","缇","鏈","绉","缁","琚","閿","椤","铏","闇","寰","閫", +"瀹","濉","閰","钂","绠","铏","闅","宀","纰","璁","搴","鍙","缁","缁","绲","钃","瀹","鎮","鏃","閫","绌","瀛","闆","琛","瀵","宸","鏃","璇","寰","璁","璁","杩","鍘","鍛","鎶","楦","楦","鐗","鑺","宕","鍝", +"闆","浜","鍜","鐑","娣","寤","涓","瑷","宀","娌","鐐","鐮","鐩","铚","棰","鎺","鐪","婕","鍘","瀹","鑹","楠","鐒","闆","鐕","澶","娈","绉","鎵","缇","闃","鏉","娲","浠","鍏","姘","鐥","鏍","濡","鑵","閭", +"绐","璋","鎽","閬","鍜","鑽","瑕","鑰","鐖","涔","鍐","閲","涓","鍙","椤","澶","娑","涓","琛","鍖","渚","浠","瀹","濮","绉","閬","鐤","涔","宸","浠","铓","鍊","妞","涔","浜","蹇","鑹","璁","浜","寮","褰", +"璇","鏄","鐤","鐩","璋","鎰","姣","缈","鍥","闃","濮","闊","閾","寮","楗","闅","鍗","搴","鑻","妯","楣","杩","鐩","钀","铦","璧","褰","鏄","纭","浣","鎷","搴","姘","鍜","娉","鍕","娑","鐢","浼","蹇","鎮", +"灏","鐢","鐘","閭","娌","娓","鍙","鏈","鍙","鍙","骞","璇","浜","浜","浣","楸","濞","娓","鎰","鎰","姒","涓","瀹","灞","缇","闆","璇","鐜","鑲","閮","鐙","娴","棰","鍩","娆","寰","瑁","閬","鎰","瑾","鍐", +"鍏","鍛","鍥","鍘","鍦","鎻","缂","婧","杩","鎬","闄","鎰","绾","鏈","閽","鎮","闃","璺","瓒","浜","鍖","鍏","瀛","杩","鏅","闊","鏉","鐏","鏍","瀹","杞","鍐","鍦","鍜","鏆","璧","鑴","钁","閬","绯","鏃", +"鏋","婢","鐏","鐨","閫","鐕","韬","鍒","鎷","娉","璐","璐","鎬","澧","璧","娓","鎵","杞","闂","鐪","鐐","姒","鎽","瀹","绐","鍊","瀵","娌","绮","鏂","灞","鐩","宕","鍗","鎴","绔","寮","绔","娑","鎺","涓", +"浠","甯","鑳","闅","鎷","鎵","鍙","鍏","璧","鐓","缃","閬","鎶","鍝","鑰","杩","娴","璐","閽","渚","鐝","鐪","璇","鏋","闃","鎸","闀","闇","浜","寰","鎸","鐫","绛","钂","鏁","姝","璇","閮","鏀","鐥","涔", +"鏀","姹","鑺","鏋","鐭","缁","鑲","鑴","铚","鎵","渚","鐩","鍊","鑱","妞","娈","姝","鍙","鏃","鍧","绾","鎸","鑷","蹇","鍒","甯","娌","璐","绉","鑷","鏅","缃","涓","蹇","缁","閽","鑲","绉","浼","閲","宸", +"鑸","鍛","娲","绮","瀹","鏄","鐨","楠","鏈","鏍","鐝","璇","鐚","铔","绔","鐑","閫","涓","鐓","鍢","浣","鍔","娉","椹","鏌","绁","钁","绛","閾","鎶","鐖","涓","鐮","杞","璧","搴","瑁","澹","鐘","鎾","杩", +"鍑","鎹","妗","娴","鍟","鐫","浠","濮","璧","婊","瀛","绱","瀛","鑷","瀹","妫","韪","鎬","绾","璧","濂","绉","瓒","鏃","闃","缁","绁","閽","鍢","鏈","缃","閱","灏","閬","鏄","宸","浣","鍧","搴"}; int PET_DEBUG_initPetOne( int charaindex) { Char ch; int havepetindex; int index; - /* 矢永玄毛 化月井譬屯月 */ + /* 鐭㈡案鐜勬瘺 鍖栨湀浜曡灞湀 */ havepetindex = CHAR_getCharPetElement( charaindex) ; memset( &ch, 0, sizeof( ch)); if( !CHAR_getDefaultChar( &ch,31010 ) )return -1; - /* 飓 寞 */ + /* 椋 瀵 */ ch.data[CHAR_BASEBASEIMAGENUMBER] = ch.data[CHAR_BASEIMAGENUMBER] = 30008; ch.data[CHAR_WHICHTYPE] = CHAR_TYPEPET; - /* 猾 */ + /* 鐚 */ ch.workint[CHAR_WORKATTACKPOWER] = 100; - /* 潮 */ + /* 娼 */ ch.workint[CHAR_WORKDEFENCEPOWER] = 50; /* HP */ ch.data[CHAR_HP] = 100; - /* 蟆 */ - strcpysafe( ch.string[CHAR_NAME].string, 32, "宠物1" ); + /* 锜 */ + strcpysafe( ch.string[CHAR_NAME].string, 32, "瀹犵墿锛" ); - /* CHAR卞喃曰癫化月 */ + /* CHAR鍗炲杻鏇扮櫕鍖栨湀 */ index = PET_initCharOneArray( &ch); if( index < 0 ) return -1; - /* 仍潜谛本永玄 */ + /* 浠嶆綔璋涙湰姘哥巹 */ CHAR_setWorkInt( index, CHAR_WORKPLAYERINDEX, charaindex); CHAR_setWorkInt( index,CHAR_WORKOBJINDEX,-1); CHAR_setCharPet( charaindex, havepetindex, index); @@ -201,24 +201,24 @@ static int _PET_dropPet( int charaindex, int havepetindex, int tofl, int tox, in if( !CHAR_CHECKINDEX( charaindex ) )return FALSE; if( CHAR_CHECKINDEX( petindex) == FALSE ) return FALSE; -#ifdef _AVID_TRADETRYBUG //丢出宠物 +#ifdef _AVID_TRADETRYBUG //涓㈠嚭瀹犵墿 if( CHAR_getWorkInt( charaindex, CHAR_WORKTRADEMODE) == CHAR_TRADE_TRADING ){ - CHAR_talkToCli( charaindex, -1, "交易状态中无法丢出宠物。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浜ゆ槗鐘舵佷腑鏃犳硶涓㈠嚭瀹犵墿銆", CHAR_COLORYELLOW ); return FALSE; } #endif // CoolFish: Family 2001/6/13 if (CHAR_getInt(petindex, CHAR_PETFAMILY) == 1){ - CHAR_talkToCli(charaindex, -1, "家族守护兽无法丢出!", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "瀹舵棌瀹堟姢鍏芥棤娉曚涪鍑猴紒", CHAR_COLORYELLOW); return FALSE; } if (CHAR_getInt(charaindex, CHAR_RIDEPET) == havepetindex ){ - CHAR_talkToCli(charaindex, -1, "骑乘中的宠物无法丢出!", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "楠戜箻涓殑瀹犵墿鏃犳硶涓㈠嚭锛", CHAR_COLORYELLOW); return FALSE; } if( strlen(CHAR_getChar(petindex,CHAR_USERPETNAME))>0 && strstr(CHAR_getChar(petindex,CHAR_USERPETNAME),"*")!=NULL ){ - CHAR_talkToCli(charaindex, -1, "宠物自定义名称中含有(*),无法丢弃、卖店、交易、摆摊,请修改后操作。", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "瀹犵墿鑷畾涔夊悕绉颁腑鍚湁(*)锛屾棤娉曚涪寮冦佸崠搴椼佷氦鏄撱佹憜鎽婏紝璇蜂慨鏀瑰悗鎿嶄綔銆", CHAR_COLORYELLOW); return FALSE; } @@ -244,7 +244,7 @@ static int _PET_dropPet( int charaindex, int havepetindex, int tofl, int tox, in } } if( count_item > 80 || count_chara > 80 ) { - CHAR_talkToCli( charaindex, -1, "这里已经太拥挤了,不能再丢了。", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "杩欓噷宸茬粡澶嫢鎸や簡锛屼笉鑳藉啀涓簡銆", CHAR_COLORYELLOW ); return FALSE; } } @@ -309,16 +309,16 @@ static int _PET_dropPet( int charaindex, int havepetindex, int tofl, int tox, in /*------------------------------------------------------------ - * 泫 矢永玄毛 仁 - * 娄醒 - * itemindex int 失奶 丞奶件犯永弁旦 - * floor int 白夫失ID - * x int x甄 - * y int y甄 - * net BOOL 生永玄伐□弁及仇午毛允月井升丹井 - * 忒曰袄 - * 岳 objindex - * 撩 -1 + * 娉 鐭㈡案鐜勬瘺 浠 + * 濞勯啋 + * itemindex int 澶卞ザ 涓炲ザ浠剁姱姘稿紒鏃 + * floor int 鐧藉か澶盜D + * x int x鐢 + * y int y鐢 + * net BOOL 鐢熸案鐜勪紣鈻″紒鍙婁粐鍗堟瘺鍏佹湀浜曞崌涓逛簳 + * 蹇掓洶琚 + * 宀 objindex + * 鎾 -1 ------------------------------------------------------------*/ int PET_dropPetAbsolute( int petindex, int floor, int x, int y,BOOL net) { @@ -333,10 +333,10 @@ int PET_dropPetAbsolute( int petindex, int floor, int x, int y,BOOL net) object.y = y; object.floor = floor; - /* 左皮斥尼弁玄瓒 允月 */ + /* 宸︾毊鏂ュ凹寮佺巹鐡 鍏佹湀 */ objindex = initObjectOne( &object ); - /* 生永玄伐□弁白仿弘互凶匀化中月午五反允月 by ringo*/ + /* 鐢熸案鐜勪紣鈻″紒鐧戒豢寮樹簰鍑跺寑鍖栦腑鏈堝崍浜斿弽鍏佹湀 by ringo*/ if( net ) CHAR_sendWatchEvent( objindex,CHAR_ACTSTAND,NULL,0,TRUE); @@ -383,7 +383,7 @@ int PET_dropPet( int charaindex, int havepetindex) // PET_NOT_Drop == EVOLUTION_getPetENABLETRADE( CHAR_getInt( petindex, CHAR_PETID)) ){ if( (PET_NOT_DROP) & EVOLUTION_getPetENABLETRADE( CHAR_getInt( petindex, CHAR_PETID))){ char buf[256]; - sprintf( buf, "%s无法丢弃!~",CHAR_getChar( petindex, CHAR_NAME) ); + sprintf( buf, "%s鏃犳硶涓㈠純!~",CHAR_getChar( petindex, CHAR_NAME) ); CHAR_talkToCli(charaindex,-1,buf,CHAR_COLORRED); return FALSE; } @@ -394,15 +394,15 @@ int PET_dropPet( int charaindex, int havepetindex) skillid=CHAR_getPetSkill(petindex,i); skillarray = PETSKILL_getPetskillArray( skillid); if( PETSKILL_CHECKINDEX( skillarray) == FALSE ) continue; - if(strstr(PETSKILL_getChar( skillarray, PETSKILL_NAME),"★")){ - CHAR_talkToCli(charaindex, -1, "此宠物为绑定宠物,无法丢弃", CHAR_COLORRED); + if(strstr(PETSKILL_getChar( skillarray, PETSKILL_NAME),"鈽")){ + CHAR_talkToCli(charaindex, -1, "姝ゅ疇鐗╀负缁戝畾瀹犵墿锛屾棤娉曚涪寮", CHAR_COLORRED); return; } } #endif #ifdef _PET_BINDING if(strstr(CHAR_getChar(petindex,CHAR_NAME),"*") || strstr(CHAR_getChar(petindex,CHAR_NAME),"+")){ - CHAR_talkToCli(charaindex, -1, "此宠物为绑定宠物,无法丢弃", CHAR_COLORRED); + CHAR_talkToCli(charaindex, -1, "姝ゅ疇鐗╀负缁戝畾瀹犵墿锛屾棤娉曚涪寮", CHAR_COLORRED); return; } #endif @@ -436,7 +436,7 @@ int PET_dropPet( int charaindex, int havepetindex) randtime = atoi(tempbuff); if(timep - randtime < getEditBaseTime()*randwrong){ char errbuf[256]; - sprintf(errbuf,"您还有%d秒才可以继续此操作!",getEditBaseTime()*randwrong-(timep - randtime)); + sprintf(errbuf,"鎮ㄨ繕鏈%d绉掓墠鍙互缁х画姝ゆ搷浣滐紒",getEditBaseTime()*randwrong-(timep - randtime)); CHAR_talkToCli(charaindex, -1, errbuf, CHAR_COLORRED); return 0; } @@ -446,17 +446,17 @@ int PET_dropPet( int charaindex, int havepetindex) // CHAR_setWorkInt(charaindex,CHAR_WORKRANDEDITBASETIME,timep); // else{ // char errbuf[256]; -// sprintf(errbuf,"您还有%d秒才可以继续此操作!",getEditBaseTime()-(timep-CHAR_getWorkInt(charaindex,CHAR_WORKRANDEDITBASETIME))); +// sprintf(errbuf,"鎮ㄨ繕鏈%d绉掓墠鍙互缁х画姝ゆ搷浣滐紒",getEditBaseTime()-(timep-CHAR_getWorkInt(charaindex,CHAR_WORKRANDEDITBASETIME))); // CHAR_talkToCli(charaindex, -1, errbuf, CHAR_COLORRED); // return; // } int fd = getfdFromCharaIndex( charaindex); char arg[255]; char buf[128]; - char jiabuf[][5]={"加","╋","╉","╈","╂","十","╃"}; - char jianbuf[][5]={"减","一","-","—","-","—","━"}; - char chengbuf[][5]={"乘","*","x","X","X","x","*"}; - char numbuf[][5]={"0","1","2","3","4","5","6","7","8","9"}; + char jiabuf[][5]={"鍔","鈺","鈺","鈺","鈺","鍗","鈺"}; + char jianbuf[][5]={"鍑","涓","-","鈥","-","鈥","鈹"}; + char chengbuf[][5]={"涔","*","x","X","锛","锝","锛"}; + char numbuf[][5]={"锛","锛","锛","锛","锛","锛","锛","锛","锛","锛"}; int i,j,k,l,m; i = RAND(30,70); j = RAND(1,29); @@ -505,7 +505,7 @@ int PET_dropPet( int charaindex, int havepetindex) } sprintf(arg,"%d|%d",havepetindex,k); CHAR_setWorkChar(charaindex, CHAR_WORKDROPMM, arg); - sprintf(buf,"请输入这个算术公式的结果(%s%s%s=?):",ibuf,typebuf,jbuf); + sprintf(buf,"璇疯緭鍏ヨ繖涓畻鏈叕寮忕殑缁撴灉(%s%s%s=?)锛",ibuf,typebuf,jbuf); lssproto_WN_send( fd, WINDOW_MESSAGETYPE_MESSAGEANDLINEINPUT, WINDOW_BUTTONTYPE_OK, CHAR_WINDOWTYPE_RAND1_DROPMM, @@ -568,7 +568,7 @@ int PET_dropPet( int charaindex, int havepetindex) } sprintf(arg,"%d|%d",havepetindex,randnum1); CHAR_setWorkChar(charaindex, CHAR_WORKDROPMM, arg); - sprintf(buf,"3\n请选择这个算术公式的结果(%s%s%s=?):\n \n \n选项一:%s\n选项二:%s\n选项三:%s\n选项四:%s\n选项五:%s\n",ibuf,typebuf,jbuf,tempret[0],tempret[1],tempret[2],tempret[3],tempret[4]); + sprintf(buf,"3\n璇烽夋嫨杩欎釜绠楁湳鍏紡鐨勭粨鏋(%s%s%s=?)锛歕n \n \n閫夐」涓锛%s\n閫夐」浜岋細%s\n閫夐」涓夛細%s\n閫夐」鍥涳細%s\n閫夐」浜旓細%s\n",ibuf,typebuf,jbuf,tempret[0],tempret[1],tempret[2],tempret[3],tempret[4]); lssproto_WN_send( fd, WINDOW_MESSAGETYPE_SELECT, WINDOW_BUTTONTYPE_OK, CHAR_WINDOWTYPE_RAND2_DROPMM, @@ -636,7 +636,7 @@ int PET_dropPet( int charaindex, int havepetindex) sprintf(randtmpbuf[2],"%s",hanzibuf[RAND(1,5000)-1]); sprintf(randtmpbuf[3],"%s",hanzibuf[RAND(1,5000)-1]); sprintf(randquestion,"%s",str_hanzi_ganrao(randtmpbuf[0],randtmpbuf[1],randtmpbuf[2],randtmpbuf[3],0,0,0,0,0,0)); - strcat(randquestion,"(请找出相同词组)"); + strcat(randquestion,"锛堣鎵惧嚭鐩稿悓璇嶇粍锛"); int newrand1 = RAND(1,100)-1; int newrand2 = RAND(1,100)-1; int newrand3 = RAND(1,100)-1; @@ -668,7 +668,7 @@ int PET_dropPet( int charaindex, int havepetindex) sprintf(randwronganswer2,"[%c%c%c%c%c]",tempbuf[0],tempbuf[1],tempbuf[4],tempbuf[2],tempbuf[3]); sprintf(randwronganswer3,"[%c%c%c%c%c]",tempbuf[4],tempbuf[1],tempbuf[2],tempbuf[0],tempbuf[3]); sprintf(randwronganswer4,"[%c%c%c%c%c]",tempbuf[1],tempbuf[0],tempbuf[2],tempbuf[3],tempbuf[4]); - sprintf(randquestion,"[%s](请找出相同词组)",tempbuf); + sprintf(randquestion,"[%s]锛堣鎵惧嚭鐩稿悓璇嶇粍锛",tempbuf); sprintf(randrightanswer,"[%s]",tempbuf); char* randstr = NULL; randstr = str_ganrao(randquestion); @@ -700,33 +700,33 @@ int PET_dropPet( int charaindex, int havepetindex) for(n=1;n<=5;n++){ if(n==randnum1){ if(qianhounum<=50) - sprintf(tempret[n-1],"选项( %d %s )",rightnum,randrightanswer); + sprintf(tempret[n-1],"閫夐」( %d %s )",rightnum,randrightanswer); else - sprintf(tempret[n-1],"选项( %s %d )",randrightanswer,rightnum); + sprintf(tempret[n-1],"閫夐」( %s %d )",randrightanswer,rightnum); }else{ if(m==1){ if(qianhounum<=50) - sprintf(tempret[n-1],"选项( %d %s )",wrongnum1,randwronganswer1); + sprintf(tempret[n-1],"閫夐」( %d %s )",wrongnum1,randwronganswer1); else - sprintf(tempret[n-1],"选项( %s %d )",randwronganswer1,wrongnum1); + sprintf(tempret[n-1],"閫夐」( %s %d )",randwronganswer1,wrongnum1); m = 2; }else if(m==2){ if(qianhounum<=50) - sprintf(tempret[n-1],"选项( %d %s )",wrongnum2,randwronganswer2); + sprintf(tempret[n-1],"閫夐」( %d %s )",wrongnum2,randwronganswer2); else - sprintf(tempret[n-1],"选项( %s %d )",randwronganswer2,wrongnum2); + sprintf(tempret[n-1],"閫夐」( %s %d )",randwronganswer2,wrongnum2); m = 3; }else if(m==3){ if(qianhounum<=50) - sprintf(tempret[n-1],"选项( %d %s )",wrongnum3,randwronganswer3); + sprintf(tempret[n-1],"閫夐」( %d %s )",wrongnum3,randwronganswer3); else - sprintf(tempret[n-1],"选项( %s %d )",randwronganswer3,wrongnum3); + sprintf(tempret[n-1],"閫夐」( %s %d )",randwronganswer3,wrongnum3); m = 4; }else if(m==4){ if(qianhounum<=50) - sprintf(tempret[n-1],"选项( %d %s )",wrongnum4,randwronganswer4); + sprintf(tempret[n-1],"閫夐」( %d %s )",wrongnum4,randwronganswer4); else - sprintf(tempret[n-1],"选项( %s %d )",randwronganswer4,wrongnum4); + sprintf(tempret[n-1],"閫夐」( %s %d )",randwronganswer4,wrongnum4); m = 5; } } @@ -741,7 +741,7 @@ int PET_dropPet( int charaindex, int havepetindex) windowtype = WINDOW_MESSAGETYPE_SELECT; } CHAR_setWorkChar(charaindex, CHAR_WORKDROPMM, arg); - sprintf(buf,"%s\n%s\n%s\n%s\n%s\n%s\n输入正确答案括号内的5位数字或者点选答案",randquestion,tempret[0],tempret[1],tempret[2],tempret[3],tempret[4]); + sprintf(buf,"%s\n%s\n%s\n%s\n%s\n%s\n杈撳叆姝g‘绛旀鎷彿鍐呯殑5浣嶆暟瀛楁垨鑰呯偣閫夌瓟妗",randquestion,tempret[0],tempret[1],tempret[2],tempret[3],tempret[4]); lssproto_WN_send( fd, windowtype, WINDOW_BUTTONTYPE_OK, CHAR_WINDOWTYPE_RAND4_DROPMM, @@ -761,14 +761,14 @@ int PET_dropPet( int charaindex, int havepetindex) #endif if( _PET_dropPet( charaindex, havepetindex, -1,-1,-1) == TRUE ){ char tmpbuf[256]; - sprintf(tmpbuf,"丢弃 %s (宠物消失时间%d秒)。",CHAR_getChar( petindex, CHAR_NAME),getPetdeletetime()); + sprintf(tmpbuf,"涓㈠純 %s (瀹犵墿娑堝け鏃堕棿%d绉)銆",CHAR_getChar( petindex, CHAR_NAME),getPetdeletetime()); CHAR_talkToCli( charaindex, -1, tmpbuf, CHAR_COLORYELLOW ); LogPet( - CHAR_getChar( charaindex, CHAR_NAME ), /* 平乓仿 */ + CHAR_getChar( charaindex, CHAR_NAME ), /* 骞充箵浠 */ CHAR_getChar( charaindex, CHAR_CDKEY ), CHAR_getChar( petindex, CHAR_NAME), CHAR_getInt( petindex, CHAR_LV), - "Drop(丢宠)", + "Drop(涓㈠疇)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -785,7 +785,7 @@ int PET_dropPetFLXY( int charaindex, int havepetindex, int fl, int x, int y) } /*------------------------------------------------------------ - * 矢永玄迕及奶矛件玄楮醒毛本永玄仄化支月 + * 鐭㈡案鐜勮繒鍙婂ザ鐭涗欢鐜勬ギ閱掓瘺鏈案鐜勪粍鍖栨敮鏈 ------------------------------------------------------------*/ int PET_initCharOneArray( Char *ch) { @@ -897,9 +897,9 @@ int PET_createPetFromCharaIndex( int charaindex, int enemyindex) CHAR_getChar( enemyindex, CHAR_NAME) ); newindex = PET_initCharOneArray( &CharNew ); #ifdef _CAX_LVTISHI - if (CharNew.data[CHAR_LV] == 1){//如果捕捉到的宠物是1级 - int namelen=strlen(CHAR_getChar(newindex, CHAR_NAME));//获得宠物名称的长度 - char petname[namelen-3];//因为要去掉宝宝这四个字符,所以重新设置名称的话,直接取消掉后面的四个字符 + if (CharNew.data[CHAR_LV] == 1){//濡傛灉鎹曟崏鍒扮殑瀹犵墿鏄1绾 + int namelen=strlen(CHAR_getChar(newindex, CHAR_NAME));//鑾峰緱瀹犵墿鍚嶇О鐨勯暱搴 + char petname[namelen-3];//鍥犱负瑕佸幓鎺夊疂瀹濊繖鍥涗釜瀛楃锛屾墍浠ラ噸鏂拌缃悕绉扮殑璇,鐩存帴鍙栨秷鎺夊悗闈㈢殑鍥涗釜瀛楃 snprintf( petname, sizeof( petname),"%s",CHAR_getChar( newindex, CHAR_NAME)); CHAR_setChar( newindex, CHAR_NAME, petname); } @@ -927,10 +927,10 @@ int PET_createPetFromCharaIndex( int charaindex, int enemyindex) BOOL PET_SelectBattleEntryPet( int charaindex, int petarray) { int pindex; - /* 爵 反轮仁 仿弘匹仇木卞娄匀井井月第 岭丐曰 */ + /* 鐖 鍙嶈疆浠 浠垮紭鍖逛粐鏈ㄥ崬濞勫寑浜曚簳鏈堢 宀笎鏇 */ if( CHAR_getWorkInt( charaindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE) return FALSE; - /* -1及桦宁反]-1卞仄化本永玄仄化蔽歹曰[*/ + /* -1鍙婃ˇ瀹佸弽锛-1鍗炰粍鍖栨湰姘哥巹浠勫寲钄芥鏇帮蓟*/ if( petarray == -1 ) { CHAR_setInt( charaindex, CHAR_DEFAULTPET, -1 ); return TRUE; @@ -941,7 +941,7 @@ BOOL PET_SelectBattleEntryPet( int charaindex, int petarray) if( CHAR_getFlg( pindex, CHAR_ISDIE )) return FALSE; #ifdef _RIDEBUG - //判断是否为骑宠 + //鍒ゆ柇鏄惁涓洪獞瀹 if(CHAR_getInt( charaindex, CHAR_RIDEPET) == petarray) return FALSE; #endif CHAR_setInt( charaindex, CHAR_DEFAULTPET, petarray ); @@ -968,11 +968,11 @@ int PET_dropPetFollow( int charaindex, int havepetindex, int tofl, int tox, int if( CHAR_CHECKINDEX( petindex) == FALSE ) return FALSE; if (CHAR_getInt(petindex, CHAR_PETFAMILY) == 1){ - CHAR_talkToCli(charaindex, -1, "家族守护兽无法丢出!", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "瀹舵棌瀹堟姢鍏芥棤娉曚涪鍑猴紒", CHAR_COLORYELLOW); return FALSE; } if (CHAR_getInt(charaindex, CHAR_RIDEPET) == havepetindex){ - CHAR_talkToCli(charaindex, -1, "骑乘中的宠物无法跟随!", CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex, -1, "楠戜箻涓殑瀹犵墿鏃犳硶璺熼殢锛", CHAR_COLORYELLOW); return FALSE; } if( tofl == -1 ) { @@ -1043,7 +1043,7 @@ int PET_dropPetFollow( int charaindex, int havepetindex, int tofl, int tox, int CHAR_getChar( charaindex, CHAR_CDKEY ), CHAR_getChar( petindex, CHAR_NAME), CHAR_getInt( petindex, CHAR_LV), - "Follow(溜宠)", + "Follow(婧滃疇)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -1070,8 +1070,8 @@ void PET_showEditBaseMsg( int charaindex, int toindex, int itemindex, int *work) { int i, maxnums = 6000; char buf1[256]; - char buf2[][32]={"腕力成长率","耐久力成长率","速度成长率","体力成长率","能力"}; - char buf3[][32]={"大幅提高","略为提高","略为减少"}; + char buf2[][32]={"鑵曞姏鎴愰暱鐜","鑰愪箙鍔涙垚闀跨巼","閫熷害鎴愰暱鐜","浣撳姏鎴愰暱鐜","鑳藉姏"}; + char buf3[][32]={"澶у箙鎻愰珮","鐣ヤ负鎻愰珮","鐣ヤ负鍑忓皯"}; if( CHAR_getInt( toindex, CHAR_WHICHTYPE) != CHAR_TYPEPET) return; @@ -1079,24 +1079,24 @@ void PET_showEditBaseMsg( int charaindex, int toindex, int itemindex, int *work) for( i=0; i<4; i++) { int type = ITEM_getInt( itemindex, (ITEM_MODIFYATTACK + i)); -// print(" 喂[%d]%d+%d ", i, work[i], type); +// print(" 鍠俒%d]%d+%d ", i, work[i], type); work[i] += type; strcpy( buf1,"\0"); if( work[i] > maxnums ) { - sprintf(buf1,"%s 已经达到最高了。", buf2[i]); + sprintf(buf1,"%s 宸茬粡杈惧埌鏈楂樹簡銆", buf2[i]); work[i] = maxnums; }else if( work[i] < 0 ) { - sprintf(buf1,"%s 已经为零了。", buf2[i]); + sprintf(buf1,"%s 宸茬粡涓洪浂浜嗐", buf2[i]); work[i] = 0; }else { if( type > 0 ) { if( type > 2 ) { - sprintf(buf1,"%s %s %s", buf2[i], buf3[0], "。"); + sprintf(buf1,"%s %s %s", buf2[i], buf3[0], "銆"); }else { - sprintf(buf1,"%s %s %s", buf2[i], buf3[1], "。"); + sprintf(buf1,"%s %s %s", buf2[i], buf3[1], "銆"); } }else if( type < 0 ){ - sprintf(buf1,"%s %s %s", buf2[i], buf3[2], "。"); + sprintf(buf1,"%s %s %s", buf2[i], buf3[2], "銆"); } } if( strcmp( buf1, "\0")) { @@ -1147,7 +1147,7 @@ BOOL CHAR_DelPetForIndex( int charaindex, int petindex) snprintf( szPet, sizeof( szPet ), "K%d", i); CHAR_sendStatusString( charaindex, szPet ); - snprintf( msgbuf,sizeof( msgbuf), "交出%s。", CHAR_getChar( petindex, CHAR_NAME)); + snprintf( msgbuf,sizeof( msgbuf), "浜ゅ嚭%s銆", CHAR_getChar( petindex, CHAR_NAME)); CHAR_talkToCli( charaindex, -1, msgbuf, CHAR_COLORYELLOW); CHAR_endCharOneArray( petindex ); } diff --git a/char/pet_event.c b/char/pet_event.c index 5f139ef..793dd20 100644 --- a/char/pet_event.c +++ b/char/pet_event.c @@ -160,7 +160,7 @@ void PET_Talkfunc( int meindex, int talkerindex, char *msg, int color) if( CHAR_getInt( meindex, CHAR_LV ) >= CHAR_getInt( meindex, CHAR_LIMITLEVEL) ) { Type = 1; } - //设定为非主人不得与PET互动 + //璁惧畾涓洪潪涓讳汉涓嶅緱涓嶱ET浜掑姩 if( strcmp( CHAR_getChar( meindex, CHAR_OWNERCDKEY), CHAR_getChar( talkerindex, CHAR_CDKEY) ) || strcmp( CHAR_getChar( meindex, CHAR_OWNERCHARANAME), CHAR_getChar( talkerindex, CHAR_NAME) )){ #ifdef _PET_TALKPRO @@ -169,7 +169,7 @@ void PET_Talkfunc( int meindex, int talkerindex, char *msg, int color) if( NPC_Util_GetStrFromStrWithDelim( buf1, "NoPlayerMsg", buf3, sizeof( buf3)) != NULL ) { #endif }else { - sprintf(buf3,"陌生人?我不认识你呀!你是坏人!"); + sprintf(buf3,"闄岀敓浜猴紵鎴戜笉璁よ瘑浣犲憖锛佷綘鏄潖浜猴紒"); } CHAR_talkToCli( talkerindex, meindex, buf3, color); return; @@ -183,22 +183,22 @@ void PET_Talkfunc( int meindex, int talkerindex, char *msg, int color) #endif talkNo++; if( ( strstr( buf2, TalkType[Type]) == NULL ) && ( strstr( buf2, TalkType[2]) == NULL ) )continue; - if( NPC_Util_GetStrFromStrWithDelim( buf2, "FLOOR", buf3, sizeof( buf3)) != NULL ) {//判断房间号 + if( NPC_Util_GetStrFromStrWithDelim( buf2, "FLOOR", buf3, sizeof( buf3)) != NULL ) {//鍒ゆ柇鎴块棿鍙 if( PetTalk_CheckMyFloor( meindex, talkerindex, buf3, 0) == FALSE )continue; } - if( NPC_Util_GetStrFromStrWithDelim( buf2, "PET", buf3, sizeof( buf3)) != NULL ) {//判断宠物FREE条件 + if( NPC_Util_GetStrFromStrWithDelim( buf2, "PET", buf3, sizeof( buf3)) != NULL ) {//鍒ゆ柇瀹犵墿FREE鏉′欢 if( PetTalk_CheckFree( meindex, meindex, buf3) != TRUE ) continue; } if( NPC_Util_GetStrFromStrWithDelim( buf2, "FREE", buf3, sizeof( buf3) ) == NULL)continue; - if( NPC_ActionPassCheck( meindex, talkerindex, buf3) == FALSE ) continue;//判断玩家FREE条件 + if( NPC_ActionPassCheck( meindex, talkerindex, buf3) == FALSE ) continue;//鍒ゆ柇鐜╁FREE鏉′欢 // if( ActionNpc_CheckFree( meindex, talkerindex, buf2, 0) == FALSE ) continue; if( PetTalk_CheckPetEvent( meindex, talkerindex, buf2) == FALSE )continue; - FREEs = TRUE; //条件成立 + FREEs = TRUE; //鏉′欢鎴愮珛 strcpy( AllTalk[j++], buf2 ); if( j > PETTALK_MAXID-1 ) break; } talkNo = 0; - if( FREEs == FALSE) { //如果全部条件都不成立 + if( FREEs == FALSE) { //濡傛灉鍏ㄩ儴鏉′欢閮戒笉鎴愮珛 j=0; #ifdef _PET_TALKPRO while( getStringFromIndexWithDelim( pettalktext[tPage].DATA,"OVER",talkNo, buf2, sizeof( buf2) ) != FALSE ){ @@ -217,12 +217,12 @@ void PET_Talkfunc( int meindex, int talkerindex, char *msg, int color) if( j > 0 ) { strcpy( buf2, AllTalk[ RAND( 0, (j-1) ) ] ); if( PetTalk_RunEvent( meindex, talkerindex, buf2) == FALSE ) { - sprintf( buf3,"....!"); + sprintf( buf3,"锛庯紟锛庯紟锛"); CHAR_talkToCli( talkerindex, meindex, buf3, color); return; } if( NPC_Util_GetStrFromStrWithDelim( buf2, "TalkMsg", buf3, sizeof( buf3)) == NULL) { - //sprintf( buf3,"主人,我们去逛逛吧!"); + //sprintf( buf3,"涓讳汉锛屾垜浠幓閫涢涘惂锛"); strcpy( buf3, buf2); } @@ -301,14 +301,14 @@ BOOL PetTalk_DelItem(int meindex,int talker,char *buf) cnt++; LogItem( - CHAR_getChar( talker, CHAR_NAME ), /* 平乓仿 */ + CHAR_getChar( talker, CHAR_NAME ), /* 骞充箵浠 */ CHAR_getChar( talker, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else - ITEM_getInt( itemindex, ITEM_ID), /* 失奶 丞 寞 */ + ITEM_getInt( itemindex, ITEM_ID), /* 澶卞ザ 涓 瀵 */ #endif - "WarpManDelItem(NPC收道具後传至某点)", + "WarpManDelItem(NPC鏀堕亾鍏峰緦浼犺嚦鏌愮偣)", CHAR_getInt( talker, CHAR_FLOOR), CHAR_getInt( talker, CHAR_X ), CHAR_getInt( talker, CHAR_Y ), @@ -326,21 +326,21 @@ BOOL PetTalk_DelItem(int meindex,int talker,char *buf) } } }else{ - /*--蓟氏分 寞及失奶 丞毛蓟请---*/ + /*--钃熸皬鍒 瀵炲強澶卞ザ 涓炴瘺钃熻---*/ for( j = 0 ; j < CHAR_MAXITEMHAVE ; j++){ itemindex = CHAR_getItemIndex( talker ,j); if( ITEM_CHECKINDEX(itemindex) ){ if( atoi( buff3) == ITEM_getInt(itemindex,ITEM_ID)){ LogItem( - CHAR_getChar( talker, CHAR_NAME ), /* 平乓仿 */ + CHAR_getChar( talker, CHAR_NAME ), /* 骞充箵浠 */ CHAR_getChar( talker, CHAR_CDKEY ), -#ifdef _add_item_log_name // WON ADD 在item的log中增加item名称 +#ifdef _add_item_log_name // WON ADD 鍦╥tem鐨刲og涓鍔爄tem鍚嶇О itemindex, #else - ITEM_getInt( itemindex, ITEM_ID), /* 失奶 丞 寞 */ + ITEM_getInt( itemindex, ITEM_ID), /* 澶卞ザ 涓 瀵 */ #endif - "WarpManDelItem(NPC收道具後传至某点)", + "WarpManDelItem(NPC鏀堕亾鍏峰緦浼犺嚦鏌愮偣)", CHAR_getInt( talker,CHAR_FLOOR), CHAR_getInt( talker,CHAR_X ), CHAR_getInt( talker,CHAR_Y ), @@ -375,7 +375,7 @@ BOOL PetTalk_AddItem(int meindex, int talker, char *buf) } } if( i == CHAR_MAXITEMHAVE ) { - snprintf( msgbuf,sizeof( msgbuf), "主人,你的物品栏已经满了!!"); + snprintf( msgbuf,sizeof( msgbuf), "涓讳汉锛屼綘鐨勭墿鍝佹爮宸茬粡婊′簡锛侊紒"); CHAR_talkToCli( talker, meindex, msgbuf, CHAR_COLORWHITE); return FALSE; } @@ -394,7 +394,7 @@ BOOL PetTalk_AddItem(int meindex, int talker, char *buf) print ("\n ret error!!"); return FALSE; } - sprintf( token,"拿到%s",ITEM_getChar( itemindex, ITEM_NAME)); + sprintf( token,"鎷垮埌%s",ITEM_getChar( itemindex, ITEM_NAME)); CHAR_talkToCli( talker, -1,token,CHAR_COLORWHITE); CHAR_sendItemDataOne( talker, ret); @@ -478,7 +478,7 @@ BOOL PetTalk_BSCheck(int meindex,int talker,char* buf) int kosuu,temp=-1,flg=0; char buff1[128],buff3[128]; if(strstr( buf, "-") != NULL) { - //buff3为抓宠物ID + //buff3涓烘姄瀹犵墿ID getStringFromIndexWithDelim( buf, "-", 2, buff3, sizeof(buff3)); temp = atoi( buff3); getStringFromIndexWithDelim( buf, "-", 1, buff1, sizeof(buff1)); @@ -659,7 +659,7 @@ BOOL PetTalk_CheckMyPet( int meindex, int talker, int petLv, int flg, int petid) } if( petsel == CHAR_MAXPETHAVE ) { return FALSE; - }else { //找到条件宠 + }else { //鎵惧埌鏉′欢瀹 if( PetTalk_BigSmallLastCheck( petLv, CHAR_getInt( petindex, CHAR_LV), flg ) == TRUE ) return TRUE; } @@ -732,11 +732,11 @@ int PET_CleanPetdeletetime( int objmeindex) // CHAR_CharSaveLostPet( pindex, 0); #endif LogPet( - "系统", + "绯荤粺", "Watchfunc", CHAR_getChar( pindex, CHAR_NAME), CHAR_getInt( pindex, CHAR_LV), - "timeout_lost(系统清除-地上自由宠)", + "timeout_lost(绯荤粺娓呴櫎-鍦颁笂鑷敱瀹)", CHAR_getInt( pindex, CHAR_FLOOR), CHAR_getInt( pindex,CHAR_X ), CHAR_getInt( pindex,CHAR_Y ), @@ -761,11 +761,11 @@ void PET_CHECKFreePetIsIt( int petindex) #endif LogPet( - "系统", + "绯荤粺", "Watchfunc", CHAR_getChar( petindex, CHAR_NAME), CHAR_getInt( petindex, CHAR_LV), - "timeout_lost(系统清除-地上自由宠)", + "timeout_lost(绯荤粺娓呴櫎-鍦颁笂鑷敱瀹)", CHAR_getInt( petindex, CHAR_FLOOR), CHAR_getInt( petindex,CHAR_X ), CHAR_getInt( petindex,CHAR_Y ), @@ -790,7 +790,7 @@ void PET_Watchfunc( int objmeindex, int objmoveindex, CHAR_ACTION act, int x, in petputtime = CHAR_getInt( petindex, CHAR_PUTPETTIME); if( CHAR_getInt( petindex, CHAR_MAILMODE) != CHAR_PETMAIL_NONE) { - //宠邮不处理 + //瀹犻偖涓嶅鐞 }else if( CHAR_getWorkInt( petindex, CHAR_WORKPETFOLLOWMODE) == CHAR_PETFOLLOW_NOW ){ if( NowTime.tv_sec >= (petputtime + 60*60) ) { int ownerindex = CHAR_getWorkInt( petindex, CHAR_WORKPLAYERINDEX); @@ -798,22 +798,22 @@ void PET_Watchfunc( int objmeindex, int objmoveindex, CHAR_ACTION act, int x, in if( CHAR_pickupFollowPet( ownerindex, petindex ) ) { return; } - CHAR_talkToCli( ownerindex, -1, "溜宠太久,宠物走失了!!", CHAR_COLORYELLOW ); + CHAR_talkToCli( ownerindex, -1, "婧滃疇澶箙锛屽疇鐗╄蛋澶变簡锛侊紒", CHAR_COLORYELLOW ); } #ifdef _PET_LOSTPET CHAR_CharSaveLostPet( petindex, 1); LogPet( - "系统", + "绯荤粺", "Watchfunc", CHAR_getChar( petindex, CHAR_NAME), CHAR_getInt( petindex, CHAR_LV), - "timeout_lost(系统扣留-溜宠自由宠)", + "timeout_lost(绯荤粺鎵g暀-婧滃疇鑷敱瀹)", CHAR_getInt( petindex, CHAR_FLOOR), CHAR_getInt( petindex,CHAR_X ), CHAR_getInt( petindex,CHAR_Y ), CHAR_getChar( petindex, CHAR_UNIQUECODE) // shan 2001/12/14 ); - print("系统扣留-溜宠自由宠:%s\n", CHAR_getUseName( petindex)); + print("绯荤粺鎵g暀-婧滃疇鑷敱瀹:%s\n", CHAR_getUseName( petindex)); CHAR_CharaDelete( petindex); #else CHAR_setInt( petindex, CHAR_PUTPETTIME, NowTime.tv_sec); @@ -823,7 +823,7 @@ void PET_Watchfunc( int objmeindex, int objmoveindex, CHAR_ACTION act, int x, in CHAR_getChar( pindex, CHAR_CDKEY ), CHAR_getChar( petindex, CHAR_NAME), CHAR_getInt( petindex, CHAR_LV), - "timeout_lost(溜宠太久,宠物走失))", + "timeout_lost(婧滃疇澶箙锛屽疇鐗╄蛋澶))", CHAR_getInt( pindex,CHAR_FLOOR), CHAR_getInt( pindex,CHAR_X ), CHAR_getInt( pindex,CHAR_Y ), diff --git a/char/petmail.c b/char/petmail.c index fb6a500..86109be 100644 --- a/char/petmail.c +++ b/char/petmail.c @@ -21,10 +21,10 @@ #define PETMAIL_IDLE_RETURNOWNER (60*30) //andy_edit -//#define PETMAIL_IDLEDISCARD (60*60) //Syu 修正宠邮等待时间为一小时 +//#define PETMAIL_IDLEDISCARD (60*60) //Syu 淇瀹犻偖绛夊緟鏃堕棿涓轰竴灏忔椂 #define PETMAIL_IDLEDISCARD (60*3) -/* petmail 跨星系的等待时间 shan add */ +/* petmail 璺ㄦ槦绯荤殑绛夊緟鏃堕棿 shan add */ #define PETMAIL_JS_TIMEOUT (2*60) static int PETMAIL_getIdleTime( int index); @@ -54,7 +54,7 @@ BOOL PETMAIL_sendPetMail( int cindex, int aindex, int itemindex =-1; int tocharaindex,playernum,i; - //判断 人物 宠物 道具 对象名片 + //鍒ゆ柇 浜虹墿 瀹犵墿 閬撳叿 瀵硅薄鍚嶇墖 if( !CHAR_CHECKINDEX( cindex) )return FALSE; if( haveitemindex != -1 ) { itemindex = CHAR_getItemIndex( cindex, haveitemindex); @@ -64,7 +64,7 @@ BOOL PETMAIL_sendPetMail( int cindex, int aindex, return FALSE; } if(ITEM_getInt( itemindex, ITEM_TIME)>0){ - CHAR_talkToCli( cindex, -1, "限时道具不可邮寄。", CHAR_COLORYELLOW ); + CHAR_talkToCli( cindex, -1, "闄愭椂閬撳叿涓嶅彲閭瘎銆", CHAR_COLORYELLOW ); return FALSE; } } @@ -80,36 +80,36 @@ BOOL PETMAIL_sendPetMail( int cindex, int aindex, CHAR_SafePassword(cindex); return FALSE; } -#ifdef _AVID_TRADETRYBUG //宠物邮件 +#ifdef _AVID_TRADETRYBUG //瀹犵墿閭欢 if( CHAR_getWorkInt( cindex, CHAR_WORKTRADEMODE) != CHAR_TRADE_FREE ){ - CHAR_talkToCli( cindex, -1, "交易状态中无法传递宠物邮件。", CHAR_COLORYELLOW ); + CHAR_talkToCli( cindex, -1, "浜ゆ槗鐘舵佷腑鏃犳硶浼犻掑疇鐗╅偖浠躲", CHAR_COLORYELLOW ); return FALSE; } #endif - //骑乘 + //楠戜箻 if (CHAR_getInt( cindex, CHAR_RIDEPET) == havepetindex ){ - CHAR_talkToCli(cindex, -1, "骑乘中的宠物无法传递宠物邮件!", CHAR_COLORYELLOW); + CHAR_talkToCli(cindex, -1, "楠戜箻涓殑瀹犵墿鏃犳硶浼犻掑疇鐗╅偖浠讹紒", CHAR_COLORYELLOW); return FALSE; } if( CHAR_getWorkInt( cindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE){ - CHAR_talkToCli( cindex, -1, "战斗状态中无法传递宠物邮件。", CHAR_COLORYELLOW ); + CHAR_talkToCli( cindex, -1, "鎴樻枟鐘舵佷腑鏃犳硶浼犻掑疇鐗╅偖浠躲", CHAR_COLORYELLOW ); return FALSE; } if (CHAR_getInt(petindex, CHAR_PETFAMILY) == 1){ - CHAR_talkToCli(cindex, -1, "家族守护兽无法传递邮件喔!", CHAR_COLORYELLOW); + CHAR_talkToCli(cindex, -1, "瀹舵棌瀹堟姢鍏芥棤娉曚紶閫掗偖浠跺枖锛", CHAR_COLORYELLOW); return FALSE; } #ifdef _PETMAIL_LV if(getPetMailCf()==1 && CHAR_getInt(petindex, CHAR_LV)>=getPetMailLv()){ char bufmsg[256]; - sprintf(bufmsg,"本线邮寄仅限%d级以下宠物,请勿用珍贵宠物进行邮寄。",getPetMailLv()); + sprintf(bufmsg,"鏈嚎閭瘎浠呴檺%d绾т互涓嬪疇鐗╋紝璇峰嬁鐢ㄧ弽璐靛疇鐗╄繘琛岄偖瀵勩",getPetMailLv()); CHAR_talkToCli(cindex, -1, bufmsg, CHAR_COLORYELLOW); return FALSE; } #endif // Terry add fix can send mail to offline character 2004/2/5 if(ae->online == 0){ - CHAR_talkToCli(cindex, -1, "该玩家不在线上!", CHAR_COLORYELLOW); + CHAR_talkToCli(cindex, -1, "璇ョ帺瀹朵笉鍦ㄧ嚎涓婏紒", CHAR_COLORYELLOW); return FALSE; } playernum = CHAR_getPlayerMaxNum(); @@ -119,20 +119,20 @@ BOOL PETMAIL_sendPetMail( int cindex, int aindex, strcmp(CHAR_getChar(i,CHAR_NAME),ae->charname) == 0 ) break; } if(i == playernum){ - CHAR_talkToCli(cindex, -1, "该玩家不在此星球上!", CHAR_COLORYELLOW); + CHAR_talkToCli(cindex, -1, "璇ョ帺瀹朵笉鍦ㄦ鏄熺悆涓婏紒", CHAR_COLORYELLOW); return FALSE; } // end #ifdef _MAP_TIME if((CHAR_getInt(cindex,CHAR_FLOOR) >= 30017 && CHAR_getInt(cindex,CHAR_FLOOR) <= 30021)){ char msgbuf[512]; - snprintf(msgbuf,sizeof(msgbuf),"此地区不得寄送道具!"); + snprintf(msgbuf,sizeof(msgbuf),"姝ゅ湴鍖轰笉寰楀瘎閫侀亾鍏凤紒"); CHAR_talkToCli(cindex,-1,msgbuf,CHAR_COLORWHITE); return FALSE; } if((CHAR_getInt(i,CHAR_FLOOR) >= 30017 && CHAR_getInt(i,CHAR_FLOOR) <= 30021)){ char msgbuf[512]; - snprintf(msgbuf,sizeof(msgbuf),"对方所在地区不得收寄送道具!"); + snprintf(msgbuf,sizeof(msgbuf),"瀵规柟鎵鍦ㄥ湴鍖轰笉寰楁敹瀵勯侀亾鍏凤紒"); CHAR_talkToCli(cindex,-1,msgbuf,CHAR_COLORWHITE); return FALSE; } @@ -142,41 +142,41 @@ BOOL PETMAIL_sendPetMail( int cindex, int aindex, if( ( CHAR_getInt(cindex,CHAR_FLOOR) >= 8200 && CHAR_getInt(cindex,CHAR_FLOOR) <= 8213 ) ) { char msgbuf[512]; - snprintf( msgbuf, sizeof( msgbuf), "英雄战场不得寄送道具!"); + snprintf( msgbuf, sizeof( msgbuf), "鑻遍泟鎴樺満涓嶅緱瀵勯侀亾鍏凤紒"); CHAR_talkToCli( cindex, -1, msgbuf, CHAR_COLORWHITE); return FALSE; } #ifdef _PET_LIMITLEVEL if( CHAR_getInt( petindex, CHAR_LIMITLEVEL) > 0 ) { - CHAR_talkToCli(cindex, -1, "特殊宠物不能传递邮件喔!", CHAR_COLORYELLOW); + CHAR_talkToCli(cindex, -1, "鐗规畩瀹犵墿涓嶈兘浼犻掗偖浠跺枖锛", CHAR_COLORYELLOW); return FALSE; } #endif -//如果是被限定的不可以邮寄的道具那么不可以寄 +//濡傛灉鏄闄愬畾鐨勪笉鍙互閭瘎鐨勯亾鍏烽偅涔堜笉鍙互瀵 #ifdef _PETITEM__AMOI_E if(ITEM_NOT_MAIL & ITEM_getInt(itemindex, ITEM_TYPEOFITEM)){ char buf[256]; - sprintf( buf, "%s是不可以邮寄的哦!~", ITEM_getChar( itemindex, ITEM_NAME) ); + sprintf( buf, "%s鏄笉鍙互閭瘎鐨勫摝!~", ITEM_getChar( itemindex, ITEM_NAME) ); CHAR_talkToCli( cindex, -1, buf, CHAR_COLORRED); return FALSE; } #endif #ifdef _PETMAIL_DEFNUMS if( CHAR_getWorkInt( cindex, CHAR_PETMAILNUMS) > 6 ){ - CHAR_talkToCli(cindex, -1, "邮件中宠物过多,暂时无法传递宠物邮件!", CHAR_COLORYELLOW); + CHAR_talkToCli(cindex, -1, "閭欢涓疇鐗╄繃澶氾紝鏆傛椂鏃犳硶浼犻掑疇鐗╅偖浠讹紒", CHAR_COLORYELLOW); return FALSE; }else if( PETMAIL_CheckIsMyOffmsg( cindex, ae->cdkey, ae->charname) > 10 ){ - CHAR_talkToCli(cindex, -1, "收件者目前邮件宠物超过10封,暂时无法传递宠物邮件!", CHAR_COLORYELLOW); + CHAR_talkToCli(cindex, -1, "鏀朵欢鑰呯洰鍓嶉偖浠跺疇鐗╄秴杩10灏侊紝鏆傛椂鏃犳硶浼犻掑疇鐗╅偖浠讹紒", CHAR_COLORYELLOW); return FALSE; }else if( CHAR_getWorkInt( cindex, CHAR_PETMAILSENDTIME) > (int)time( NULL)){ char Mess1[256]; - sprintf( Mess1,"需等待%d秒才能再次寄送宠物邮件!", + sprintf( Mess1,"闇绛夊緟%d绉掓墠鑳藉啀娆″瘎閫佸疇鐗╅偖浠讹紒", (int)time( NULL) - CHAR_getWorkInt( cindex, CHAR_PETMAILSENDTIME)); CHAR_talkToCli( cindex, -1, Mess1, CHAR_COLORYELLOW); return FALSE; }else if( PetMailTotalnums >= PETMAIL_DEFTOTALNUM ){ - CHAR_talkToCli(cindex, -1, "目前系统邮件过多,请稍後再寄。", CHAR_COLORYELLOW); + CHAR_talkToCli(cindex, -1, "鐩墠绯荤粺閭欢杩囧锛岃绋嶅緦鍐嶅瘎銆", CHAR_COLORYELLOW); return FALSE; }else{ int nums = CHAR_getWorkInt( cindex, CHAR_PETMAILNUMS); @@ -201,9 +201,9 @@ BOOL PETMAIL_sendPetMail( int cindex, int aindex, return FALSE; } -#ifdef _FIX_PETMAIL2 // WON ADD 修正宠邮2 +#ifdef _FIX_PETMAIL2 // WON ADD 淇瀹犻偖2 if( !PET_dropPetFLXY( cindex, havepetindex, PETMAIL_SPOOLFLOOR, PETMAIL_SPOOLX,PETMAIL_SPOOLY) ){ - CHAR_talkToCli( cindex, -1, "宠物邮件失败", CHAR_COLORYELLOW); + CHAR_talkToCli( cindex, -1, "瀹犵墿閭欢澶辫触", CHAR_COLORYELLOW); return FALSE; } #endif @@ -222,13 +222,13 @@ BOOL PETMAIL_sendPetMail( int cindex, int aindex, CHAR_setInt( petindex, CHAR_PETMAILFROMX, CHAR_getInt( cindex, CHAR_X)); CHAR_setInt( petindex, CHAR_PETMAILFROMY,CHAR_getInt( cindex, CHAR_Y)); -//#ifdef _WON_PET_MAIL_LOG // WON ADD 增加寄宠邮的 LOG +//#ifdef _WON_PET_MAIL_LOG // WON ADD 澧炲姞瀵勫疇閭殑 LOG // LogPet( // CHAR_getChar( cindex, CHAR_NAME ), // CHAR_getChar( cindex, CHAR_CDKEY ), // CHAR_getChar( petindex, CHAR_NAME), // CHAR_getInt( petindex, CHAR_LV), -// "Pet_Send_Mail(寄宠邮)", +// "Pet_Send_Mail(瀵勫疇閭)", // CHAR_getInt( cindex,CHAR_FLOOR), // CHAR_getInt( cindex,CHAR_X ), // CHAR_getInt( cindex,CHAR_Y ), @@ -243,7 +243,7 @@ BOOL PETMAIL_sendPetMail( int cindex, int aindex, CHAR_getChar( cindex, CHAR_NAME ), CHAR_getChar( cindex, CHAR_CDKEY ), itemindex, - "pm_have(宠邮->寄送的道具)", + "pm_have(瀹犻偖->瀵勯佺殑閬撳叿)", CHAR_getInt( cindex,CHAR_FLOOR), CHAR_getInt( cindex,CHAR_X ), CHAR_getInt( cindex,CHAR_Y ), @@ -256,7 +256,7 @@ BOOL PETMAIL_sendPetMail( int cindex, int aindex, { char token[256]; tocharaindex = PETMAIL_CheckPlayerExist( petindex, 0); - sprintf( token, "寄送宠物邮件(%s)给%s。", + sprintf( token, "瀵勯佸疇鐗╅偖浠(%s)缁%s銆", CHAR_getUseName( petindex), CHAR_getUseName( tocharaindex) ); CHAR_talkToCli( cindex, -1, token, CHAR_COLORYELLOW); } @@ -423,7 +423,7 @@ BOOL storePetmail( void) char escapebuf1[ 64],escapebuf2[ 64]; int i; - /* 白央奶伙 毛菲户月 */ + /* 鐧藉ぎ濂朵紮 姣涜彶鎴锋湀 */ snprintf( filename ,sizeof( filename ) ,"%s/%s" , getStoredir(), PETMAILOFFMSGFILE); fp = fopen( filename , "wt" ); @@ -485,16 +485,16 @@ void PETMAIL_Loopfunc( int index) case CHAR_PETMAIL_IDLE2: PETMAIL_IdleProc2( index); break; - case CHAR_PETMAIL_RETURNWAIT://回来等待 + case CHAR_PETMAIL_RETURNWAIT://鍥炴潵绛夊緟 PETMAIL_ReturnWait( index); break; case CHAR_PETMAIL_IDLE3: PETMAIL_IdleProc3( index); break; - case CHAR_PETMAIL_IDLE4://寻找主人 + case CHAR_PETMAIL_IDLE4://瀵绘壘涓讳汉 PETMAIL_IdleProc4( index); break; - case CHAR_PETMAIL_IDLE5: //超过时间无法找到主人 + case CHAR_PETMAIL_IDLE5: //瓒呰繃鏃堕棿鏃犳硶鎵惧埌涓讳汉 PETMAIL_IdleProc5( index); break; default: @@ -504,9 +504,9 @@ void PETMAIL_Loopfunc( int index) static int PETMAIL_getIdleTime( int index) { -#define PETMAIL_DIVRANGE 25 // 坌喃允月汹 -#define PETMAIL_IDLELEVELRANGE 10 // 坌喃允月 区 -#define PETMAIL_IDLEUNITTIME 3 // 棉厥 +#define PETMAIL_DIVRANGE 25 // 鍧屽杻鍏佹湀姹 +#define PETMAIL_IDLELEVELRANGE 10 // 鍧屽杻鍏佹湀 鍖 +#define PETMAIL_IDLEUNITTIME 3 // 妫夊帴 int d; #ifdef _PETMAIL_TIME int dex; @@ -542,8 +542,8 @@ static void PETMAIL_sendPetmail( int index, int tocharaindex) char msgbuf[512]; snprintf( msgbuf, sizeof( msgbuf), - "%s的%s 终於来了!" - "由於对方没有您的名片,所以信件被退回了。", + "%s鐨%s 缁堟柤鏉ヤ簡锛" + "鐢辨柤瀵规柟娌℃湁鎮ㄧ殑鍚嶇墖锛屾墍浠ヤ俊浠惰閫鍥炰簡銆", CHAR_getChar( index, CHAR_OWNERCHARANAME), CHAR_getUseName( index)); CHAR_talkToCli( tocharaindex, -1, msgbuf, CHAR_COLORWHITE); @@ -553,7 +553,7 @@ static void PETMAIL_sendPetmail( int index, int tocharaindex) CHAR_getInt(tocharaindex,CHAR_FLOOR) <= 8213 ){ char msgbuf[512]; snprintf( msgbuf, sizeof( msgbuf), - "英雄战场不得寄送道具!" ); + "鑻遍泟鎴樺満涓嶅緱瀵勯侀亾鍏凤紒" ); CHAR_talkToCli( tocharaindex, -1, msgbuf, CHAR_COLORWHITE); } else { @@ -570,7 +570,7 @@ static void PETMAIL_sendPetmail( int index, int tocharaindex) CHAR_getChar( tocharaindex, CHAR_NAME ), CHAR_getChar( tocharaindex, CHAR_CDKEY ), itemindex, - "pm_putground(宠邮->道具栏已满,放置地上)", + "pm_putground(瀹犻偖->閬撳叿鏍忓凡婊★紝鏀剧疆鍦颁笂)", CHAR_getInt( index,CHAR_FLOOR), CHAR_getInt( index,CHAR_X ), CHAR_getInt( index,CHAR_Y ), @@ -587,7 +587,7 @@ static void PETMAIL_sendPetmail( int index, int tocharaindex) CHAR_getChar( tocharaindex, CHAR_NAME ), CHAR_getChar( tocharaindex, CHAR_CDKEY ), itemindex, - "pm_getitem(宠邮->收到的道具)", + "pm_getitem(瀹犻偖->鏀跺埌鐨勯亾鍏)", CHAR_getInt( index,CHAR_FLOOR), CHAR_getInt( index,CHAR_X ), CHAR_getInt( index,CHAR_Y ), @@ -635,9 +635,9 @@ static void PETMAIL_IdleProc1( int index) if( !CHAR_CHECKINDEX( tocharaindex) ) { warp = TRUE; }else { - if( CHAR_getInt( tocharaindex, CHAR_FLOOR) == 8215 ){//客服活动 andy + if( CHAR_getInt( tocharaindex, CHAR_FLOOR) == 8215 ){//瀹㈡湇娲诲姩 andy warp = TRUE; - }else if( CHAR_getWorkInt( tocharaindex, CHAR_WORKTRADEMODE) != CHAR_TRADE_FREE ){//交易中不收邮件 + }else if( CHAR_getWorkInt( tocharaindex, CHAR_WORKTRADEMODE) != CHAR_TRADE_FREE ){//浜ゆ槗涓笉鏀堕偖浠 warp = TRUE; }else if( CHAR_getWorkInt( tocharaindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE ){ int battleindex = CHAR_getWorkInt( tocharaindex, CHAR_WORKBATTLEINDEX ); @@ -692,8 +692,8 @@ static void PETMAIL_IdleProc2( int index) int cnt; tocharaindex = PETMAIL_CheckPlayerExist( index, 0); if( tocharaindex != -1 ) { - if( CHAR_getInt( tocharaindex, CHAR_FLOOR) == 8215 ){//客服活动 andy - }else if( CHAR_getWorkInt( tocharaindex, CHAR_WORKTRADEMODE) != CHAR_TRADE_FREE ){//交易中不收邮件 + if( CHAR_getInt( tocharaindex, CHAR_FLOOR) == 8215 ){//瀹㈡湇娲诲姩 andy + }else if( CHAR_getWorkInt( tocharaindex, CHAR_WORKTRADEMODE) != CHAR_TRADE_FREE ){//浜ゆ槗涓笉鏀堕偖浠 }else if( CHAR_getWorkInt( tocharaindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE){ }else { int fl, x, y, ch_x, ch_y; @@ -801,12 +801,12 @@ static void PETMAIL_IdleProc4( int index) { int tocharaindex; int cnt; - tocharaindex = PETMAIL_CheckPlayerExist( index, 1);//寻找主人 + tocharaindex = PETMAIL_CheckPlayerExist( index, 1);//瀵绘壘涓讳汉 if( tocharaindex != -1 ) { if( CHAR_getWorkInt( tocharaindex, CHAR_WORKBATTLEMODE) == BATTLE_CHARMODE_NONE && CHAR_getWorkInt( tocharaindex, CHAR_WORKTRADEMODE) == CHAR_TRADE_FREE ){ - int fl, x, y, ch_x, ch_y;//回到主人身边 + int fl, x, y, ch_x, ch_y;//鍥炲埌涓讳汉韬竟 fl = CHAR_getInt( tocharaindex, CHAR_FLOOR); ch_x = CHAR_getInt( tocharaindex, CHAR_X); @@ -827,20 +827,20 @@ static void PETMAIL_IdleProc4( int index) PETMAIL_returnMail( index, tocharaindex); } }else { - if( NowTime.tv_sec > t + PETMAIL_IDLE_RETURNOWNER ) {//检查等待主人时间 + if( NowTime.tv_sec > t + PETMAIL_IDLE_RETURNOWNER ) {//妫鏌ョ瓑寰呬富浜烘椂闂 int itemindex; - CHAR_warpToSpecificPoint( index, //回到原先主人所在座标 + CHAR_warpToSpecificPoint( index, //鍥炲埌鍘熷厛涓讳汉鎵鍦ㄥ骇鏍 CHAR_getInt( index, CHAR_PETMAILFROMFLOOR), CHAR_getInt( index, CHAR_PETMAILFROMX), CHAR_getInt( index, CHAR_PETMAILFROMY)); - CHAR_setInt( index, CHAR_MAILMODE, CHAR_PETMAIL_IDLE5);//改变宠邮状态 + CHAR_setInt( index, CHAR_MAILMODE, CHAR_PETMAIL_IDLE5);//鏀瑰彉瀹犻偖鐘舵 CHAR_setInt( index, CHAR_LOOPINTERVAL, PETMAIL_LOOPINTERVAL2); CHAR_setInt( index, CHAR_PETMAILIDLETIME, NowTime.tv_sec); if( CHAR_getInt( index, CHAR_PETMAILIDLETIME) != -1 ) { PETMAIL_deleteOffmsg( CHAR_getInt( index, CHAR_PETMAILBUFINDEX)); } - itemindex = CHAR_getItemIndex( index, CHAR_STARTITEMARRAY);//删除附带道具 + itemindex = CHAR_getItemIndex( index, CHAR_STARTITEMARRAY);//鍒犻櫎闄勫甫閬撳叿 if( ITEM_CHECKINDEX( itemindex ) ) { CHAR_DropItem( index, CHAR_STARTITEMARRAY); @@ -848,7 +848,7 @@ static void PETMAIL_IdleProc4( int index) CHAR_getChar( index, CHAR_OWNERCHARANAME ), CHAR_getChar( index, CHAR_OWNERCDKEY ), itemindex, - "pm_returntimeout(宠邮->逾时删除道具)", + "pm_returntimeout(瀹犻偖->閫炬椂鍒犻櫎閬撳叿)", CHAR_getInt( index,CHAR_FLOOR), CHAR_getInt( index,CHAR_X ), CHAR_getInt( index,CHAR_Y ), @@ -871,11 +871,11 @@ static void PETMAIL_IdleProc5( int index) CHAR_setInt( index, CHAR_MAILMODE, CHAR_PETMAIL_NONE); CHAR_setInt( index, CHAR_PETMAILIDLETIME, 0); -#ifdef _FIX_PETMAIL // WON ADD 修正宠邮 +#ifdef _FIX_PETMAIL // WON ADD 淇瀹犻偖 CHAR_setInt( index, CHAR_PUTPETTIME, NowTime.tv_sec ); #endif #ifdef _PETMAIL_DEFNUMS - PETMAIL_delPetMailTotalnums( 1); //M PET 变自由宠 + PETMAIL_delPetMailTotalnums( 1); //M PET 鍙樿嚜鐢卞疇 if( PetMailTotalnums < 0 ) PetMailTotalnums = 0; #endif ch = CHAR_getCharPointer( index); @@ -887,17 +887,17 @@ static void PETMAIL_IdleProc5( int index) #ifdef _PET_LOSTPET CHAR_CharSaveLostPet( index, 2); LogPet( - "系统", + "绯荤粺", "Watchfunc", CHAR_getChar( index, CHAR_NAME), CHAR_getInt( index, CHAR_LV), - "timeout_lost(系统扣留-宠邮自由宠)", + "timeout_lost(绯荤粺鎵g暀-瀹犻偖鑷敱瀹)", CHAR_getInt( index, CHAR_FLOOR), CHAR_getInt( index,CHAR_X ), CHAR_getInt( index,CHAR_Y ), CHAR_getChar( index, CHAR_UNIQUECODE) // shan 2001/12/14 ); - print("系统扣留-宠邮自由宠:%s\n", CHAR_getUseName( index)); + print("绯荤粺鎵g暀-瀹犻偖鑷敱瀹:%s\n", CHAR_getUseName( index)); CHAR_CharaDelete( index); #else LogPet( @@ -905,7 +905,7 @@ static void PETMAIL_IdleProc5( int index) CHAR_getChar( index, CHAR_OWNERCDKEY ), CHAR_getChar( index, CHAR_NAME), CHAR_getInt( index, CHAR_LV), - "FreePet(宠邮变回自由宠)", + "FreePet(瀹犻偖鍙樺洖鑷敱瀹)", CHAR_getInt( index,CHAR_FLOOR), CHAR_getInt( index,CHAR_X ), CHAR_getInt( index,CHAR_Y ), @@ -952,7 +952,7 @@ static void PETMAIL_returnMail( int index, int tocharaindex) CHAR_getChar( tocharaindex, CHAR_NAME ), CHAR_getChar( tocharaindex, CHAR_CDKEY ), itemindex, - "pm_returnputground(宠邮->道具已满将道具放置地上)", + "pm_returnputground(瀹犻偖->閬撳叿宸叉弧灏嗛亾鍏锋斁缃湴涓)", CHAR_getInt( index,CHAR_FLOOR), CHAR_getInt( index,CHAR_X ), CHAR_getInt( index,CHAR_Y ), @@ -976,14 +976,14 @@ static void PETMAIL_returnMail( int index, int tocharaindex) #endif if( CHAR_getInt( index, CHAR_PETMAILBUFINDEX) != -1 ) { snprintf( msgbuf, sizeof( msgbuf), - "%s 回来了!" - "似乎无法寄送信件。", + "%s 鍥炴潵浜嗭紒" + "浼间箮鏃犳硶瀵勯佷俊浠躲", CHAR_getUseName( index)); CHAR_talkToCli( tocharaindex, -1, msgbuf, CHAR_COLORWHITE); PETMAIL_deleteOffmsg( CHAR_getInt( index, CHAR_PETMAILBUFINDEX)); }else { snprintf( msgbuf, sizeof( msgbuf), - "%s 回来了!", CHAR_getUseName( index)); + "%s 鍥炴潵浜嗭紒", CHAR_getUseName( index)); CHAR_talkToCli( tocharaindex, -1, msgbuf, CHAR_COLORWHITE); } @@ -1002,9 +1002,9 @@ void CHAR_AutoPickupMailPet( int charaindex, int petindex ) char category[3]; Char *ch; if( !CHAR_CHECKINDEX( charaindex ) ) return; -#ifdef _AVID_TRADETRYBUG //丢出宠物 +#ifdef _AVID_TRADETRYBUG //涓㈠嚭瀹犵墿 if( CHAR_getWorkInt( charaindex, CHAR_WORKTRADEMODE) != CHAR_TRADE_FREE ){ - CHAR_talkToCli( charaindex, -1, "交易状态中无法自动拾回邮件宠物!", CHAR_COLORYELLOW ); + CHAR_talkToCli( charaindex, -1, "浜ゆ槗鐘舵佷腑鏃犳硶鑷姩鎷惧洖閭欢瀹犵墿锛", CHAR_COLORYELLOW ); return; } #endif @@ -1012,14 +1012,14 @@ void CHAR_AutoPickupMailPet( int charaindex, int petindex ) havepetindex = CHAR_getCharPetElement( charaindex); if( havepetindex == -1 ) { - CHAR_talkToCli(charaindex,-1,"宠物栏已满!无法自动拾回邮件宠物!",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"瀹犵墿鏍忓凡婊★紒鏃犳硶鑷姩鎷惧洖閭欢瀹犵墿锛",CHAR_COLORYELLOW); // WON ADD LogPet( CHAR_getChar( charaindex, CHAR_NAME ), CHAR_getChar( charaindex, CHAR_CDKEY ), CHAR_getChar( petindex, CHAR_NAME), CHAR_getInt( petindex, CHAR_LV), - "Pet_Full(宠物栏已满,无法拾起宠物)", + "Pet_Full(瀹犵墿鏍忓凡婊★紝鏃犳硶鎷捐捣瀹犵墿)", CHAR_getInt( charaindex,CHAR_FLOOR), CHAR_getInt( charaindex,CHAR_X ), CHAR_getInt( charaindex,CHAR_Y ), @@ -1046,7 +1046,7 @@ void CHAR_AutoPickupMailPet( int charaindex, int petindex ) CHAR_setInt( petindex, CHAR_PUTPETTIME, 0); CHAR_setWorkInt( petindex, CHAR_WORKOBJINDEX, -1); CHAR_setInt( petindex, CHAR_MAILMODE, CHAR_PETMAIL_NONE); - PETMAIL_delPetMailTotalnums( 1); // M PET 自动捡起 + PETMAIL_delPetMailTotalnums( 1); // M PET 鑷姩鎹¤捣 strcpysafe( ch->charfunctable[CHAR_LOOPFUNC].string, sizeof( ch->charfunctable[CHAR_LOOPFUNC]),""); @@ -1062,7 +1062,7 @@ void CHAR_AutoPickupMailPet( int charaindex, int petindex ) if( strlen( p) == 0 ) { p = CHAR_getChar( petindex, CHAR_NAME); } - snprintf( mesg,sizeof(mesg), "拾回邮件宠物 %s", p); + snprintf( mesg,sizeof(mesg), "鎷惧洖閭欢瀹犵墿 %s", p); CHAR_talkToCli(charaindex,-1,mesg,CHAR_COLORYELLOW); } // LogPet( @@ -1070,7 +1070,7 @@ void CHAR_AutoPickupMailPet( int charaindex, int petindex ) // CHAR_getChar( charaindex, CHAR_CDKEY ), // CHAR_getChar( petindex, CHAR_NAME), // CHAR_getInt( petindex, CHAR_LV), -// "PickupMailPet(自动收回邮宠)", +// "PickupMailPet(鑷姩鏀跺洖閭疇)", // CHAR_getInt( charaindex,CHAR_FLOOR), // CHAR_getInt( charaindex,CHAR_X ), // CHAR_getInt( charaindex,CHAR_Y ), diff --git a/char/skill.c b/char/skill.c index d692cd8..b43157d 100644 --- a/char/skill.c +++ b/char/skill.c @@ -7,7 +7,7 @@ #include "util.h" #include "char.h" -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 #include "battle.h" #include "profession_skill.h" #endif @@ -115,7 +115,7 @@ BOOL SKILL_makeSkillFromStringToArg( char* src, Skill* sk ) return TRUE; } -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 INLINE int SKILL_getRealInt( Skill* skill, int element) { return skill->data[element]; @@ -139,7 +139,7 @@ INLINE int SKILL_setInt( Skill* skill, int element, int new) return buf; } -#ifndef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifndef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 static void SKILL_setitemlimit( int charaindex, Skill* sk ); static void SKILL_setmerchant( int charaindex, Skill* sk ); static void SKILL_setlevel( int charaindex, Skill* sk ); @@ -147,7 +147,7 @@ static void SKILL_setlevel( int charaindex, Skill* sk ); static SKILL_table SKILL_tbl[]={ -#ifdef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifdef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 { 100, NULL}, // 1 { 100, NULL}, { 100, NULL}, @@ -179,7 +179,7 @@ static SKILL_table SKILL_tbl[]={ }; -#ifndef _PROFESSION_SKILL // WON ADD 人物职业技能 +#ifndef _PROFESSION_SKILL // WON ADD 浜虹墿鑱屼笟鎶鑳 static void SKILL_setitemlimit( int charaindex, Skill* sk ) { static int itemlimit[9]={ @@ -265,17 +265,17 @@ static void SKILL_setlevel( int charaindex, Skill* sk ) static char ITEM_statusStringBuffer[SKILLSTRINGBUFSIZ]; -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 char* SKILL_makeSkillStatusString( Skill* skill, int charaindex, int skill_num ) { int skillindex=SKILL_getInt( skill,SKILL_IDENTITY); int Pskill=PROFESSION_SKILL_getskillArray( skillindex); int skill_level=0, cost_mp=0; - // 人物技能等级 + // 浜虹墿鎶鑳界瓑绾 skill_level = SKILL_getInt( skill, SKILL_LEVEL); - // 耗费MP + // 鑰楄垂MP if( (cost_mp = PROFESSION_MAGIC_COST_MP( charaindex, skill_num )) == -1 ) cost_mp = PROFESSION_SKILL_getInt( Pskill, PROFESSION_SKILL_COST_MP); @@ -408,8 +408,8 @@ void SKILL_skillEffect( int charaindex ) -#ifdef _CHAR_PROFESSION // WON ADD 人物职业 -// 取使用魔法耗费MP +#ifdef _CHAR_PROFESSION // WON ADD 浜虹墿鑱屼笟 +// 鍙栦娇鐢ㄩ瓟娉曡楄垂MP int PROFESSION_MAGIC_COST_MP( int charaindex, int skill_num ) { int skill_level=0, dec_mp=0; @@ -417,40 +417,40 @@ int PROFESSION_MAGIC_COST_MP( int charaindex, int skill_num ) char *skill_name; CHAR_HaveSkill* hskill; - // 人物技能 + // 浜虹墿鎶鑳 skillid = CHAR_getCharSkill( charaindex, skill_num); Pskillid = PROFESSION_SKILL_getskillArray( skillid); if( Pskillid == -1 ) return FALSE; - // 技能名称 + // 鎶鑳藉悕绉 skill_name = PROFESSION_SKILL_getChar( Pskillid, PROFESSION_SKILL_FUNCNAME); - // 技能等级 + // 鎶鑳界瓑绾 hskill = CHAR_getCharHaveSkill( charaindex, skill_num ); skill_level = SKILL_getInt( &hskill->skill, SKILL_LEVEL); skill_level = PROFESSION_CHANGE_SKILL_LEVEL_M( skill_level ); - if( (strcmp( skill_name, "PROFESSION_VOLCANO_SPRINGS" )) == 0 ){ // 火山泉 + if( (strcmp( skill_name, "PROFESSION_VOLCANO_SPRINGS" )) == 0 ){ // 鐏北娉 if( skill_level >= 10 ) dec_mp = 35; else if( skill_level >= 7 ) dec_mp = 30; else if( skill_level >= 5 ) dec_mp = 20; else if( skill_level >= 3 ) dec_mp = 15; else dec_mp = 10; }else - if( (strcmp( skill_name, "PROFESSION_FIRE_BALL" )) == 0 ){ // 火星球 + if( (strcmp( skill_name, "PROFESSION_FIRE_BALL" )) == 0 ){ // 鐏槦鐞 if( skill_level >= 9 ) dec_mp = 50; else if( skill_level >= 7 ) dec_mp = 45; else if( skill_level >= 5 ) dec_mp = 40; else if( skill_level >= 3 ) dec_mp = 35; else dec_mp = 30; }else - if( (strcmp( skill_name, "PROFESSION_SUMMON_THUNDER" )) == 0 ){ // 召雷术 + if( (strcmp( skill_name, "PROFESSION_SUMMON_THUNDER" )) == 0 ){ // 鍙浄鏈 if( skill_level >= 8 ) dec_mp = 30; else if( skill_level >= 5 ) dec_mp = 25; else if( skill_level >= 3) dec_mp = 20; else dec_mp = 10; }else - if( (strcmp( skill_name, "PROFESSION_CURRENT" )) == 0 ){ // 电流术 + if( (strcmp( skill_name, "PROFESSION_CURRENT" )) == 0 ){ // 鐢垫祦鏈 #ifdef _PROFESSION_ADDSKILL if( skill_level >= 10 ) dec_mp = 100; else if( skill_level > 9 ) dec_mp = 90; @@ -468,7 +468,7 @@ int PROFESSION_MAGIC_COST_MP( int charaindex, int skill_num ) else dec_mp = 30; #endif }else - if( (strcmp( skill_name, "PROFESSION_STORM" )) == 0 ){ // 暴风雨 + if( (strcmp( skill_name, "PROFESSION_STORM" )) == 0 ){ // 鏆撮闆 #ifdef _PROFESSION_ADDSKILL if( skill_level > 8 ) dec_mp = 50; else if( skill_level > 6 ) dec_mp = 45; @@ -482,12 +482,12 @@ int PROFESSION_MAGIC_COST_MP( int charaindex, int skill_num ) else dec_mp = 50; #endif }else - if( (strcmp( skill_name, "PROFESSION_ICE_ARROW" )) == 0 ){ // 冰箭术 + if( (strcmp( skill_name, "PROFESSION_ICE_ARROW" )) == 0 ){ // 鍐扮鏈 if( skill_level >= 8) dec_mp = 20; else if( skill_level >= 4 ) dec_mp = 15; else dec_mp = 10; }else - if( (strcmp( skill_name, "PROFESSION_ICE_CRACK" )) == 0 ){ // 冰爆术 + if( (strcmp( skill_name, "PROFESSION_ICE_CRACK" )) == 0 ){ // 鍐扮垎鏈 #ifdef _PROFESSION_ADDSKILL if( skill_level >= 10 ) dec_mp = 80; else if( skill_level > 8 ) dec_mp = 70; @@ -503,61 +503,61 @@ int PROFESSION_MAGIC_COST_MP( int charaindex, int skill_num ) else dec_mp = 30; #endif }else - if( (strcmp( skill_name, "PROFESSION_DOOM" )) == 0 ){ // 世界末日 + if( (strcmp( skill_name, "PROFESSION_DOOM" )) == 0 ){ // 涓栫晫鏈棩 if( skill_level > 8 ) dec_mp = 150; else if( skill_level > 4 ) dec_mp = 100; else dec_mp = 50; }else - if( (strcmp( skill_name, "PROFESSION_FIRE_SPEAR" )) == 0 ){ // 火龙枪 + if( (strcmp( skill_name, "PROFESSION_FIRE_SPEAR" )) == 0 ){ // 鐏緳鏋 if( skill_level > 8 ) dec_mp = 80; else if( skill_level > 6 ) dec_mp = 70; else if( skill_level > 4 ) dec_mp = 60; else if( skill_level > 2 ) dec_mp = 40; else dec_mp = 30; }else - if( (strcmp( skill_name, "PROFESSION_BLOOD_WORMS" )) == 0 ){ // 嗜血蛊 + if( (strcmp( skill_name, "PROFESSION_BLOOD_WORMS" )) == 0 ){ // 鍡滆铔 if( skill_level >= 10 ) dec_mp = 15; else if( skill_level >= 5 ) dec_mp = 10; else dec_mp = 5; }else - if( (strcmp( skill_name, "PROFESSION_SIGN" )) == 0 ){ // 一针见血 + if( (strcmp( skill_name, "PROFESSION_SIGN" )) == 0 ){ // 涓閽堣琛 if( skill_level >= 8 ) dec_mp = 10; else dec_mp = 5; }else - if( (strcmp( skill_name, "PROFESSION_ENCLOSE" )) == 0 ){ // 附身术 + if( (strcmp( skill_name, "PROFESSION_ENCLOSE" )) == 0 ){ // 闄勮韩鏈 if( skill_level >= 10 ) dec_mp = 80; else if( skill_level >= 8 ) dec_mp = 70; else if( skill_level >= 5) dec_mp = 60; else dec_mp = 50; }else - if( (strcmp( skill_name, "PROFESSION_ICE_MIRROR" )) == 0 ){ // 冰镜术 + if( (strcmp( skill_name, "PROFESSION_ICE_MIRROR" )) == 0 ){ // 鍐伴暅鏈 if( skill_level >= 9 ) dec_mp = 40; else if( skill_level >= 7 ) dec_mp = 35; else if( skill_level >= 5 ) dec_mp = 30; else if( skill_level >= 3 ) dec_mp = 25; else dec_mp = 20; }else - if( (strcmp( skill_name, "PROFESSION_FIRE_ENCLOSE" )) == 0 ){ // 火附体 + if( (strcmp( skill_name, "PROFESSION_FIRE_ENCLOSE" )) == 0 ){ // 鐏檮浣 if( skill_level >= 10 ) dec_mp = 50; else if( skill_level >= 7 ) dec_mp = 40; else if( skill_level >= 4 ) dec_mp = 30; else dec_mp = 20; }else - if( (strcmp( skill_name, "PROFESSION_ICE_ENCLOSE" )) == 0 ){ // 冰附体 + if( (strcmp( skill_name, "PROFESSION_ICE_ENCLOSE" )) == 0 ){ // 鍐伴檮浣 if( skill_level >= 10 ) dec_mp = 50; else if( skill_level >= 7 ) dec_mp = 40; else if( skill_level >= 4 ) dec_mp = 30; else dec_mp = 20; }else - if( (strcmp( skill_name, "PROFESSION_THUNDER_ENCLOSE" )) == 0 ){ // 雷附体 + if( (strcmp( skill_name, "PROFESSION_THUNDER_ENCLOSE" )) == 0 ){ // 闆烽檮浣 if( skill_level >= 10 ) dec_mp = 50; else if( skill_level >= 7 ) dec_mp = 40; else if( skill_level >= 4 ) dec_mp = 30; else dec_mp = 20; }else - if( (strcmp( skill_name, "PROFESSION_TRANSPOSE" )) == 0 ){ // 移形换位 + if( (strcmp( skill_name, "PROFESSION_TRANSPOSE" )) == 0 ){ // 绉诲舰鎹綅 if( skill_level >= 10 ) dec_mp = 50; else if( skill_level >= 9 ) dec_mp = 40; else if( skill_level >= 7 ) dec_mp = 30; @@ -565,13 +565,13 @@ int PROFESSION_MAGIC_COST_MP( int charaindex, int skill_num ) else dec_mp = 10; }else #ifdef _PROFESSION_ADDSKILL - if( (strcmp( skill_name, "PROFESSION_RESIST_F_I_T" )) == 0 ){ // 自然威能 + if( (strcmp( skill_name, "PROFESSION_RESIST_F_I_T" )) == 0 ){ // 鑷劧濞佽兘 if( skill_level >= 10 ) dec_mp = 20; else if( skill_level >= 9 ) dec_mp = 15; else if( skill_level >= 6 ) dec_mp = 10; else dec_mp = 5; }else - if( (strcmp( skill_name, "PROFESSION_CALL_NATURE" )) == 0 ){ // 号召自然 + if( (strcmp( skill_name, "PROFESSION_CALL_NATURE" )) == 0 ){ // 鍙峰彫鑷劧 /*skill_level = SKILL_getInt( &hskill->skill, SKILL_LEVEL); if( skill_level >= 100 ) dec_mp = 50; @@ -585,13 +585,13 @@ int PROFESSION_MAGIC_COST_MP( int charaindex, int skill_num ) else dec_mp = 50;*/ dec_mp = 50; }else - if( (strcmp( skill_name, "PROFESSION_BOUNDARY" )) == 0 ){ // 四属性结界 + if( (strcmp( skill_name, "PROFESSION_BOUNDARY" )) == 0 ){ // 鍥涘睘鎬х粨鐣 char *pszP=NULL; if( skill_level > 9 ) dec_mp = 20; else if( skill_level > 6 ) dec_mp = 15; else dec_mp = 10; - //破除结界耗损mp与其他结界不同 - if( (pszP = strstr( PROFESSION_SKILL_getChar( Pskillid, PROFESSION_SKILL_OPTION), "破结界" ) ) != NULL ){// 技能的参数 + //鐮撮櫎缁撶晫鑰楁崯mp涓庡叾浠栫粨鐣屼笉鍚 + if( (pszP = strstr( PROFESSION_SKILL_getChar( Pskillid, PROFESSION_SKILL_OPTION), "鐮寸粨鐣" ) ) != NULL ){// 鎶鑳界殑鍙傛暟 if( skill_level >= 9 ) dec_mp = 20; else if( skill_level > 4 ) dec_mp = 15; else if( skill_level > 2 ) dec_mp = 10; diff --git a/char/title.c b/char/title.c index a0c0e32..7339ffe 100644 --- a/char/title.c +++ b/char/title.c @@ -18,7 +18,7 @@ #include "configfile.h" -/*====================惫寞 ====================*/ +/*====================鎯癁 ====================*/ static int TITLE_IntCheck( int charaindex,int elem, int *data, int flg); static int TITLE_WorkIntCheck( int charaindex,int elem, int *data, int flg); static int TITLE_ItemCheck( int charaindex,int elem, int *data, int flg); @@ -28,28 +28,28 @@ static int TITLE_SexCheck( int charaindex,int elem, int *data, int flg); typedef enum { - TITLE_FUNCTYPENONE, /* 楮醒戏岳仄卅中 */ - TITLE_FUNCTYPEUSERFUNC, /* definefunction 毛银匀化 蟆毛综月 - * 楮醒及娄醒反 - * int 平乓仿奶件犯永弁旦 - * buf 蟆尺及田永白央 - * buflen 公及田永白央及赢今 + TITLE_FUNCTYPENONE, /* 妤啋鎴忓渤浠勫崊涓 */ + TITLE_FUNCTYPEUSERFUNC, /* definefunction 姣涢摱鍖鍖 锜嗘瘺缁兼湀 + * 妤啋鍙婂▌閱掑弽 + * int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * buf 锜嗗昂鍙婄敯姘哥櫧澶 + * buflen 鍏強鐢版案鐧藉ぎ鍙婅耽浠 */ TITLE_USEFUNCTYPENUM }TITLE_USEFUNCTYPE; typedef struct tagTITLE_Table { - int index; /* 蛙犯□正午询晶毛潸月凶户[ - * 仇及 寞匹手匀化addtitle午井支月 + int index; /* 铔欑姱鈻℃鍗堣鏅舵瘺娼告湀鍑舵埛锛 + * 浠囧強 瀵炲尮鎵嬪寑鍖朼ddtitle鍗堜簳鏀湀 */ char name[32]; TITLE_USEFUNCTYPE functype; void (*definefunction)(int,char* buf,int buflen); }TITLE_Table; -/* 银尹月由仿丢□正 - * STR,TGH,MAXMP]ATK,DEF +/* 閾跺肮鏈堢敱浠夸涪鈻℃ + * STR,TGH,MAXMP锛紸TK,DEF * LEVEL,CLASS,SKILL,ITEM,FIREREG,ICEREG,THUNDERREG * KANJILV,TALKCNT,WALKCNT,DEADCNT,LOGINCNT,BASEIMAGENUMBER * GOLD @@ -69,11 +69,11 @@ typedef struct tagTITLE_PARAM TITLE_PARAM TITLE_param[] = { - /**** 仇仇井日 ****/ + /**** 浠囦粐浜曟棩 ****/ { -1, TITLE_ItemCheck, "ITEM" }, { -1, TITLE_ItemEquipCheck,"EQUIPITEM" }, { -1, NULL, "EQUIPEVENT" }, - /**** 仇仇引匹反 凳仄卅中匹仁分今中[ ****/ + /**** 浠囦粐寮曞尮鍙 鍑充粍鍗呬腑鍖逛粊鍒嗕粖涓蓟 ****/ { -1, TITLE_SkillCheck, "SKILL" }, { CHAR_STR, TITLE_IntCheck, "STR" }, { CHAR_TOUGH, TITLE_IntCheck, "TGH" }, @@ -93,13 +93,13 @@ TITLE_PARAM TITLE_param[] = #define TITLE_PARAMSIZE 20 typedef struct tagTITLE_configTable { - int paramindex[20]; /* TITLE_param尺及骄侬 */ - int param[20][TITLE_PARAMSIZE]; /* 笠袄 */ - int compareflg[20]; /* ><=羁升丹允月井 */ + int paramindex[20]; /* TITLE_param灏哄強楠勪粳 */ + int param[20][TITLE_PARAMSIZE]; /* 绗犺 */ + int compareflg[20]; /* ><=缇佸崌涓瑰厑鏈堜簳 */ int title; BOOL equipcheckflg; /* - * 失奶 丞啖 奶矛件玄匹反仇及白仿弘及 匀化中月 - * 手及仄井腹绸仄卅中[ + * 澶卞ザ 涓炲晼 濂剁煕浠剁巹鍖瑰弽浠囧強鐧戒豢寮樺強 鍖鍖栦腑鏈 + * 鎵嬪強浠勪簳鑵圭桓浠勫崊涓蓟 */ }TITLE_CONFIGTABLE; @@ -116,7 +116,7 @@ static int TITLE_titlenum; static int TITLE_titlecfgnum; /*------------------------------------------------------------ - * index 寞井日TITLE_table及骄侬毛 月 + * index 瀵炰簳鏃ITLE_table鍙婇獎渚瘺 鏈 ------------------------------------------------------------*/ int TITLE_getTitleIndex( int index) { @@ -130,23 +130,23 @@ int TITLE_getTitleIndex( int index) return -1; } -/* 田永白央及扔奶术 */ +/* 鐢版案鐧藉ぎ鍙婃墧濂舵湳 */ #define TITLESTRINGBUFSIZ 256 -/* 弁仿奶失件玄卞苇六月旦平伙犯□正及 侬 及田永白央 */ +/* 寮佷豢濂跺け浠剁巹鍗炶媷鍏湀鏃﹀钩浼欑姱鈻℃鍙 渚 鍙婄敯姘哥櫧澶 */ static char TITLE_statusStringBuffer[TITLESTRINGBUFSIZ]; /*------------------------------------------------------------ - * 弁仿奶失件玄卞苇六月惫寞及 侬 毛综月 - * 娄醒 - * title Title* 旦平伙 - * charaindex int 仇及惫寞毛 匀化中月平乓仿及奶件犯永弁旦 - * 忒曰袄 + * 寮佷豢濂跺け浠剁巹鍗炶媷鍏湀鎯癁鍙 渚 姣涚患鏈 + * 濞勯啋 + * title Title* 鏃﹀钩浼 + * charaindex int 浠囧強鎯癁姣 鍖鍖栦腑鏈堝钩涔撲豢鍙婂ザ浠剁姱姘稿紒鏃 + * 蹇掓洶琚 * char* ------------------------------------------------------------*/ char* TITLE_makeTitleStatusString( int charaindex,int havetitleindex ) { int attach; int index; - /* 楮醒 尺及奶件犯永弁旦井日犯□正毛综岳允月 */ + /* 妤啋 灏哄強濂朵欢鐘案寮佹棪浜曟棩鐘枴姝f瘺缁煎渤鍏佹湀 */ index = CHAR_getCharHaveTitle( charaindex,havetitleindex ); attach = TITLE_getTitleIndex( index); @@ -182,10 +182,10 @@ char* TITLE_makeTitleStatusString( int charaindex,int havetitleindex ) } /*------------------------------------------------------------ - * 卅中惫寞及 侬 犯□正毛忒允 - * 娄醒 - * 卅仄 - * 忒曰袄 + * 鍗呬腑鎯癁鍙 渚 鐘枴姝f瘺蹇掑厑 + * 濞勯啋 + * 鍗呬粍 + * 蹇掓洶琚 * char* ------------------------------------------------------------*/ char* TITLE_makeSkillFalseString( void ) @@ -196,13 +196,13 @@ char* TITLE_makeSkillFalseString( void ) /*------------------------------------------------------------ - * 隙烂今木凶 寞及惫寞毛馨笛允月[褐今卅匀化中凶日}馨笛仄卅中 - * 娄醒 - * charaindex int 平乓仿奶件犯永弁旦 - * titleindex int 惫寞奶件犯永弁旦 - * 忒曰袄 - * 馨笛仄凶index - * 馨笛仄卅井匀凶 FALSE(0) + * 闅欑儌浠婃湪鍑 瀵炲強鎯癁姣涢Θ绗涘厑鏈堬蓟瑜愪粖鍗呭寑鍖栦腑鍑舵棩锝濋Θ绗涗粍鍗呬腑 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * titleindex int 鎯癁濂朵欢鐘案寮佹棪 + * 蹇掓洶琚 + * 棣ㄧ瑳浠勫嚩index + * 棣ㄧ瑳浠勫崊浜曞寑鍑 FALSE(0) ------------------------------------------------------------*/ BOOL TITLE_addtitle( int charaindex, int titleindex ) { @@ -215,7 +215,7 @@ BOOL TITLE_addtitle( int charaindex, int titleindex ) for( i=0 ; i < CHAR_TITLEMAXHAVE ; i++ ){ if( CHAR_getCharHaveTitle( charaindex,i ) == titleindex ) - /* 允匹卞 匀化中月井日窒手仄卅中 */ + /* 鍏佸尮鍗 鍖鍖栦腑鏈堜簳鏃ョ獟鎵嬩粍鍗呬腑 */ return FALSE; if( firstfindempty == -1 && CHAR_getCharHaveTitle(charaindex,i) == -1 ){ @@ -227,14 +227,14 @@ BOOL TITLE_addtitle( int charaindex, int titleindex ) /*------------------------------------------------------------ - * 隙烂今木凶 寞及惫寞互丐匀凶日绰轮允月[卅井匀凶日窒手仄卅中[ - * 醒蜊丐匀凶日蝈 壅允[ - * 娄醒 - * charaindex int 平乓仿奶件犯永弁旦 - * titleindex int 惫寞奶件犯永弁旦 - * 忒曰袄 - * 绰轮仄凶 TRUE(1) - * 绰轮仄卅井匀凶 FALSE(0) + * 闅欑儌浠婃湪鍑 瀵炲強鎯癁浜掍笎鍖鍑舵棩缁拌疆鍏佹湀锛诲崊浜曞寑鍑舵棩绐掓墜浠勫崊涓蓟 + * 閱掕湂涓愬寑鍑舵棩铦 澹呭厑锛 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * titleindex int 鎯癁濂朵欢鐘案寮佹棪 + * 蹇掓洶琚 + * 缁拌疆浠勫嚩 TRUE(1) + * 缁拌疆浠勫崊浜曞寑鍑 FALSE(0) ------------------------------------------------------------*/ BOOL TITLE_deltitle( int charaindex, int titleindex ) { @@ -248,11 +248,11 @@ BOOL TITLE_deltitle( int charaindex, int titleindex ) for( i=0 ; i < CHAR_TITLEMAXHAVE ; i++ ) if( CHAR_getCharHaveTitle( charaindex,i ) == titleindex ){ - /* 愤坌互银匀化中凶支勾卅日壬}公木手卅仄卞允月 */ + /* 鎰ゅ潓浜掗摱鍖鍖栦腑鍑舵敮鍕惧崊鏃ュ,锝濆叕鏈ㄦ墜鍗呬粍鍗炲厑鏈 */ if( CHAR_getInt(charaindex, CHAR_INDEXOFEQTITLE) == i ){ CHAR_setInt(charaindex, CHAR_INDEXOFEQTITLE, -1 ); } - /* 匀化中月井日壅允 */ + /* 鍖鍖栦腑鏈堜簳鏃ュ鍏 */ CHAR_setCharHaveTitle( charaindex,i,-1); del = TRUE; @@ -261,12 +261,12 @@ BOOL TITLE_deltitle( int charaindex, int titleindex ) return del; } /*------------------------------------------------------------ - * 惫寞及赓渝祭毛允月[ - * 娄醒 - * filename char* 涩烂白央奶伙 - * 忒曰袄 - * 岳 TRUE(1) - * 撩 FALSE(0) + * 鎯癁鍙婅祿娓濈キ姣涘厑鏈堬蓟 + * 濞勯啋 + * filename char* 娑╃儌鐧藉ぎ濂朵紮 + * 蹇掓洶琚 + * 宀 TRUE(1) + * 鎾 FALSE(0) *------------------------------------------------------------*/ BOOL TITLE_initTitleName( char* filename ) { @@ -283,7 +283,7 @@ BOOL TITLE_initTitleName( char* filename ) TITLE_titlenum=0; - /* 引内 躲卅垫互窒垫丐月井升丹井譬屯月 */ + /* 寮曞唴 韬插崊鍨簰绐掑灚涓愭湀浜曞崌涓逛簳璀悲鏈 */ while( fgets( line, sizeof( line ), f ) ){ linenum ++; if( line[0] == '#' )continue; /* comment */ @@ -294,7 +294,7 @@ BOOL TITLE_initTitleName( char* filename ) } if( fseek( f, 0, SEEK_SET ) == -1 ){ - fprint( "寻找错误\n" ); + fprint( "瀵绘壘閿欒\n" ); fclose(f); return FALSE; } @@ -302,12 +302,12 @@ BOOL TITLE_initTitleName( char* filename ) TITLE_table = allocateMemory( sizeof(struct tagTITLE_Table) * TITLE_titlenum ); if( TITLE_table == NULL ){ - fprint( "无法分配内存 %d\n" , + fprint( "鏃犳硶鍒嗛厤鍐呭瓨 %d\n" , sizeof(TITLE_table)*TITLE_titlenum); fclose( f ); return FALSE; } - /* 赓渝祭 */ + /* 璧撴笣绁 */ { int i; for( i = 0; i < TITLE_titlenum; i ++ ) { @@ -319,7 +319,7 @@ BOOL TITLE_initTitleName( char* filename ) } - /* 引凶 心 允 */ + /* 寮曞嚩 蹇 鍏 */ linenum = 0; while( fgets( line, sizeof( line ), f ) ){ linenum ++; @@ -327,10 +327,10 @@ BOOL TITLE_initTitleName( char* filename ) if( line[0] == '\n' )continue; /* none */ chomp( line ); - /* 垫毛帮溥允月 */ - /* 引内 tab 毛 " " 卞 五晶尹月 */ + /* 鍨瘺甯亥鍏佹湀 */ + /* 寮曞唴 tab 姣 " " 鍗 浜旀櫠灏规湀 */ replaceString( line, '\t' , ' ' ); - /* 燮 及旦矢□旦毛潸月[*/ + /* 鐕 鍙婃棪鐭⑩枴鏃︽瘺娼告湀锛*/ { int i; char buf[256]; @@ -348,24 +348,24 @@ BOOL TITLE_initTitleName( char* filename ) char token[256]; int ret; - /* 夫午勾户及玄□弁件毛苇月 */ + /* 澶崍鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",1,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } TITLE_table[title_readlen].index = atoi(token); - /* 2勾户及玄□弁件毛苇月 */ + /* 2鍕炬埛鍙婄巹鈻″紒浠舵瘺鑻囨湀 */ ret = getStringFromIndexWithDelim( line,",",2,token, sizeof(token)); if( ret==FALSE ){ - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); continue; } if( strlen( token) > sizeof( TITLE_table[title_readlen].name)-1) { - fprint("警告! 头衔名称结束文件:%s 第%d行\n", + fprint("璀﹀憡! 澶磋鍚嶇О缁撴潫鏂囦欢:%s 绗%d琛孿n", filename, linenum); } strcpysafe( TITLE_table[title_readlen].name, @@ -379,14 +379,14 @@ BOOL TITLE_initTitleName( char* filename ) TITLE_titlenum = title_readlen; - print( "有效头衔名称数是 %d...", TITLE_titlenum ); + print( "鏈夋晥澶磋鍚嶇О鏁版槸 %d...", TITLE_titlenum ); #ifdef DEBUG { int i; for( i=0; i ="); if( comppos == -1 ) { - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); TITLE_initTitleData( titlecfg_readlen); errflg = TRUE; break;; } - /* 羁寞]尕羁寞互ㄡ勾动晓 月午五 */ + /* 缇佸癁锛藉皶缇佸癁浜掋劇鍕惧姩鏅 鏈堝崍浜 */ if( charInclude( &token[comppos+1], "<>=") != -1 ) { - /* 升氏卅 胜井毛 戈 */ + /* 鍗囨皬鍗 鑳滀簳姣 鎴 */ for( j = 0; j < 3; j ++ ) { if( memcmp( TITLE_compare[j].compare, &token[comppos], 2 ) == 0 ) { break; } } if( j == 3 ) { - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); TITLE_initTitleData( titlecfg_readlen); errflg = TRUE; break; @@ -673,7 +673,7 @@ BOOL TITLE_initTitleConfig( char* filename ) else { ret = TITLE_getParamData( titlecfg_readlen,i-1,&token[comppos+2]); if( !ret ) { - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); TITLE_initTitleData( titlecfg_readlen); errflg = TRUE; break; @@ -687,14 +687,14 @@ BOOL TITLE_initTitleConfig( char* filename ) else { ret = TITLE_getParamData( titlecfg_readlen,i-1,&token[comppos+1]); if( !ret ) { - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); TITLE_initTitleData( titlecfg_readlen); errflg = TRUE; break; } /*TITLE_ConfigTable[titlecfg_readlen].param[i-1] = atoi( &token[comppos+1]);*/ - /* 升氏卅 胜井毛 戈 */ + /* 鍗囨皬鍗 鑳滀簳姣 鎴 */ for( j = 3; j < 6; j ++ ) { if( memcmp( TITLE_compare[j].compare, &token[comppos], 1 ) == 0 ) { TITLE_ConfigTable[titlecfg_readlen].compareflg[i-1] = j; @@ -704,9 +704,9 @@ BOOL TITLE_initTitleConfig( char* filename ) } } } - /* 惫寞 隙烂互 井匀凶 or 卅氏井仄日及巨仿□*/ + /* 鎯癁 闅欑儌浜 浜曞寑鍑 or 鍗呮皬浜曚粍鏃ュ強宸ㄤ豢鈻*/ if( errflg || TITLE_ConfigTable[titlecfg_readlen].title == -1 ) { - fprint("文件语法错误:%s 第%d行\n",filename,linenum); + fprint("鏂囦欢璇硶閿欒:%s 绗%d琛孿n",filename,linenum); TITLE_initTitleData( titlecfg_readlen); } else { @@ -718,24 +718,24 @@ BOOL TITLE_initTitleConfig( char* filename ) TITLE_titlecfgnum = titlecfg_readlen; - print( "有效头衔配置数是 %d...", TITLE_titlecfgnum ); + print( "鏈夋晥澶磋閰嶇疆鏁版槸 %d...", TITLE_titlecfgnum ); return TRUE; } /*------------------------------------------------------------ - * 惫寞涩烂卞宁丹井譬屯化惫寞毛芨尹月[ - * 娄醒 - * charaindex int 平乓仿奶件犯永弁旦 - * mode BOOL TRUE:item=及手及及心譬屯月 FALSE:蝈 - * 忒曰袄 - * TRUE: 惫寞卞 祭 曰[ - * FALSE:窒手 井匀凶[ + * 鎯癁娑╃儌鍗炲畞涓逛簳璀悲鍖栨儷瀵炴瘺鑺ㄥ肮鏈堬蓟 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * mode BOOL TRUE:item=鍙婃墜鍙婂強蹇冭灞湀 FALSE:铦 + * 蹇掓洶琚 + * TRUE: 鎯癁鍗 绁 鏇帮蓟 + * FALSE:绐掓墜 浜曞寑鍑讹蓟 *------------------------------------------------------------*/ static BOOL TITLE_TitleCheck_Main( int charaindex, BOOL mode, int *addcnt, int *delcnt) { int i, j,k, ret; - /* 赓渝祭 */ + /* 璧撴笣绁 */ { int i; for( i = 0; i < TITLE_titlecfgnum && TITLE_configbuf[i].title != -1; i ++ ) { @@ -770,8 +770,8 @@ static BOOL TITLE_TitleCheck_Main( int charaindex, BOOL mode, int *addcnt, int * if( rc != TRUE ) break; } } - /* 醒椭瘀卞 元惫寞互喃曰癫化日木化中月凛及啃卞] - * 域绎田永白央卞霪户化公及瑛绊井日add,deltile允月 + /* 閱掓き鐦鍗 鍏冩儷瀵炰簰鍠冩洶鐧寲鏃ユ湪鍖栦腑鏈堝嚊鍙婂晝鍗烇冀 + * 鍩熺粠鐢版案鐧藉ぎ鍗為湭鎴峰寲鍏強鐟涚粖浜曟棩add,deltile鍏佹湀 */ for( k = 0; k < TITLE_titlecfgnum; k ++ ) { if( TITLE_configbuf[k].title == title ) { @@ -803,13 +803,13 @@ static BOOL TITLE_TitleCheck_Main( int charaindex, BOOL mode, int *addcnt, int * } /*------------------------------------------------------------ - * 惫寞涩烂卞宁丹井譬屯化惫寞毛芨尹月[ - * 娄醒 - * charaindex int 平乓仿奶件犯永弁旦 - * mode BOOL TRUE:item=及手及及心譬屯月 FALSE:蝈 - * 忒曰袄 - * TRUE: 惫寞卞 祭 曰[ - * FALSE:窒手 井匀凶[ + * 鎯癁娑╃儌鍗炲畞涓逛簳璀悲鍖栨儷瀵炴瘺鑺ㄥ肮鏈堬蓟 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * mode BOOL TRUE:item=鍙婃墜鍙婂強蹇冭灞湀 FALSE:铦 + * 蹇掓洶琚 + * TRUE: 鎯癁鍗 绁 鏇帮蓟 + * FALSE:绐掓墜 浜曞寑鍑讹蓟 *------------------------------------------------------------*/ BOOL TITLE_TitleCheck( int charaindex, BOOL mode) { @@ -822,13 +822,13 @@ BOOL TITLE_TitleCheck( int charaindex, BOOL mode) if( rc ) { if( delcnt > 0 ) { snprintf( msgbuf, sizeof( msgbuf), - "失去%d%s 称号!", delcnt, + "澶卞幓%d%s 绉板彿锛", delcnt, delcnt < 10 ? TITLE_MSGUNIT1:TITLE_MSGUNIT2); CHAR_talkToCli( charaindex, -1, msgbuf, CHAR_COLORYELLOW); } if( addcnt > 0 ) { snprintf( msgbuf, sizeof( msgbuf), - "获得%d%s 称号!", addcnt, + "鑾峰緱%d%s 绉板彿锛", addcnt, addcnt < 10 ? TITLE_MSGUNIT1:TITLE_MSGUNIT2); CHAR_talkToCli( charaindex, -1, msgbuf, CHAR_COLORYELLOW); } @@ -836,13 +836,13 @@ BOOL TITLE_TitleCheck( int charaindex, BOOL mode) return rc; } /*------------------------------------------------------------ - * 惫寞涩烂卞宁丹井譬屯化惫寞毛芨尹月[ - * 娄醒 - * charaindex int 平乓仿奶件犯永弁旦 - * mode BOOL TRUE:item=及手及及心譬屯月 FALSE:蝈 - * 忒曰袄 - * TRUE: 惫寞卞 祭 曰[ - * FALSE:窒手 井匀凶[ + * 鎯癁娑╃儌鍗炲畞涓逛簳璀悲鍖栨儷瀵炴瘺鑺ㄥ肮鏈堬蓟 + * 濞勯啋 + * charaindex int 骞充箵浠垮ザ浠剁姱姘稿紒鏃 + * mode BOOL TRUE:item=鍙婃墜鍙婂強蹇冭灞湀 FALSE:铦 + * 蹇掓洶琚 + * TRUE: 鎯癁鍗 绁 鏇帮蓟 + * FALSE:绐掓墜 浜曞寑鍑讹蓟 *------------------------------------------------------------*/ BOOL TITLE_TitleCheck_Nomsg( int charaindex, BOOL mode, int *addcnt, int *delcnt) { @@ -915,7 +915,7 @@ static int TITLE_WorkIntCheck( int charaindex,int elem, int *data, int flg) return rc; } /* -------------------------------------- - * 隙烂今木凶data午 匀化中月失奶 丞毛 胜允月[ + * 闅欑儌浠婃湪鍑禿ata鍗 鍖鍖栦腑鏈堝け濂 涓炴瘺 鑳滃厑鏈堬蓟 * -------------------------------------*/ static int TITLE_ItemCheckMain( int charaindex, int itemhaveindex, int *data, int flg) { @@ -944,9 +944,9 @@ static int TITLE_ItemCheckMain( int charaindex, int itemhaveindex, int *data, in case 5: /* "=" */ if( ITEM_getInt( itemindex, ITEM_ID) == *(data +j)) rc = TRUE; break; - /* 仇木分仃 健中[ - * 失奶 丞蝈 毛苇化公木毛 匀化中卅井匀凶日蕞午允月[ - * 仇仇匹反 匀化中月仪毛絮午仄化民尼永弁 + /* 浠囨湪鍒嗕粌 鍋ヤ腑锛 + * 澶卞ザ 涓炶潏 姣涜媷鍖栧叕鏈ㄦ瘺 鍖鍖栦腑鍗呬簳鍖鍑舵棩钑炲崍鍏佹湀锛 + * 浠囦粐鍖瑰弽 鍖鍖栦腑鏈堜华姣涚诞鍗堜粍鍖栨皯灏兼案寮 */ case 2: /* "<>" */ if( ITEM_getInt( itemindex, ITEM_ID) == *(data +j)) rc = FALSE; @@ -1034,7 +1034,7 @@ static int TITLE_SkillCheck( int charaindex,int elem, int *data, int flg) return rc; } /* -------------------------------------- - * 裆平乓仿井辉平乓仿井民尼永弁允月[ + * 瑁嗗钩涔撲豢浜曡緣骞充箵浠夸簳姘戝凹姘稿紒鍏佹湀锛 * -------------------------------------*/ static int TITLE_SexCheck( int charaindex,int elem, int *data, int flg) { diff --git a/char/trade.c b/char/trade.c index bba10e0..5458f0f 100644 --- a/char/trade.c +++ b/char/trade.c @@ -20,38 +20,38 @@ #include "npc_bus.h" #include "char_talk.h" #include "magic_base.h" -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 #include "pet_skill.h" #endif #ifdef _PET_AMOI__E #include "pet.h" #endif -#define TRADE_WAIT "请稍候,连络%s中···" -#define TRADE_NONE "前方什麽人也没有!" -#define TRADE_OVERPLAYER "前方不只一位玩家喔!" -#define TRADE_NOWILL "真是抱歉,对方不愿意跟你交易!" -#define TRADE_TRADING "%s正在与其他人交易···" -#define TRADE_VANISHITEM "丢在地上会消失的物品无法交易!" -#define TRADE_PETFULL "%s宠物栏已满,交易取消!" -#define TRADE_ITEMFULL "%s物品栏已满,请整理後再交易~" -#define TRADE_CANCEL "%s将交易取消了!" -#define TRADE_POOR "%s钱不够,无法交易!" -#define TRADE_RICH "%s金钱交易请勿超过一百万!" -#define TRADE_TOORICH "%s金钱将会超过一百万!" -#define TRADE_POORLV "%s等级不够,无法照顾交易後的宠物!" -#define TRADE_LOCK "交易锁定···" -#define TRADE_SUCCESS "交易OK!" -#define TRADE_FAILED "交易失败!" -#define TRADE_FMPET "家族守护兽无法交易!" +#define TRADE_WAIT "璇风◢鍊欙紝杩炵粶%s涓仿仿" +#define TRADE_NONE "鍓嶆柟浠楹戒汉涔熸病鏈夛紒" +#define TRADE_OVERPLAYER "鍓嶆柟涓嶅彧涓浣嶇帺瀹跺枖锛" +#define TRADE_NOWILL "鐪熸槸鎶辨瓑锛屽鏂逛笉鎰挎剰璺熶綘浜ゆ槗锛" +#define TRADE_TRADING "%s姝e湪涓庡叾浠栦汉浜ゆ槗路路路" +#define TRADE_VANISHITEM "涓㈠湪鍦颁笂浼氭秷澶辩殑鐗╁搧鏃犳硶浜ゆ槗锛" +#define TRADE_PETFULL "%s瀹犵墿鏍忓凡婊★紝浜ゆ槗鍙栨秷锛" +#define TRADE_ITEMFULL "%s鐗╁搧鏍忓凡婊★紝璇锋暣鐞嗗緦鍐嶄氦鏄擄綖" +#define TRADE_CANCEL "%s灏嗕氦鏄撳彇娑堜簡锛" +#define TRADE_POOR "%s閽变笉澶燂紝鏃犳硶浜ゆ槗锛" +#define TRADE_RICH "%s閲戦挶浜ゆ槗璇峰嬁瓒呰繃涓鐧句竾锛" +#define TRADE_TOORICH "%s閲戦挶灏嗕細瓒呰繃涓鐧句竾锛" +#define TRADE_POORLV "%s绛夌骇涓嶅锛屾棤娉曠収椤句氦鏄撳緦鐨勫疇鐗╋紒" +#define TRADE_LOCK "浜ゆ槗閿佸畾路路路" +#define TRADE_SUCCESS "浜ゆ槗锛极锛" +#define TRADE_FAILED "浜ゆ槗澶辫触锛" +#define TRADE_FMPET "瀹舵棌瀹堟姢鍏芥棤娉曚氦鏄擄紒" -#define TRADE_RDCANCEL "交易取消!" +#define TRADE_RDCANCEL "浜ゆ槗鍙栨秷锛" #ifdef _TRADE_PK -#define TRADE_PK_START "开始交易PK!" +#define TRADE_PK_START "寮濮嬩氦鏄揚K锛" #endif #ifdef _LOCK_PET_ITEM -#define TRADE_LOCKPET "绑定的宠物无法交易!" -#define TRADE_LOCKITEM "绑定的道具无法交易!" +#define TRADE_LOCKPET "缁戝畾鐨勫疇鐗╂棤娉曚氦鏄擄紒" +#define TRADE_LOCKITEM "缁戝畾鐨勯亾鍏锋棤娉曚氦鏄擄紒" #endif #ifdef _ITEM_PILEFORTRADE @@ -86,11 +86,11 @@ BOOL TRADE_getSomeTradeList( int meindex, STradeList *temp); void TRADE_InitTradeList( void) { int i; - print("初始化交易系统..."); + print("鍒濆鍖栦氦鏄撶郴缁..."); for( i=0; i= CHAR_MAXITEMHAVE ) return FALSE; itemindex = CHAR_getItemIndex( meindex, usTi ); -//如果是绑定的道具则不可以用于交易 +//濡傛灉鏄粦瀹氱殑閬撳叿鍒欎笉鍙互鐢ㄤ簬浜ゆ槗 #ifdef _PETITEM__AMOI_E if(ITEM_NOT_TRADE & ITEM_getInt(itemindex, ITEM_TYPEOFITEM)){ char buf[256]; - sprintf( buf, "%s无法交易。", ITEM_getChar( itemindex, ITEM_NAME) ); + sprintf( buf, "%s鏃犳硶浜ゆ槗銆", ITEM_getChar( itemindex, ITEM_NAME) ); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORRED); return FALSE; } @@ -250,12 +250,12 @@ BOOL TRADE_addSomeTradeList( int meindex, int usTi, int *num, int type) if( ITEM_getInt( itemindex, ITEM_VANISHATDROP) == 1 || ITEM_getInt( itemindex, ITEM_TIME) > 0){ char buf[256]; - sprintf( buf, "%s无法交易。", ITEM_getChar( itemindex, ITEM_NAME) ); + sprintf( buf, "%s鏃犳硶浜ゆ槗銆", ITEM_getChar( itemindex, ITEM_NAME) ); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORYELLOW); return FALSE; } #ifdef _ZHIPIAO_SYSTEM - if( strstr(ITEM_getChar(itemindex,ITEM_NAME),"支票")!=NULL && strstr(ITEM_getChar(itemindex,ITEM_NAME),"DP支票")==NULL ){ + if( strstr(ITEM_getChar(itemindex,ITEM_NAME),"鏀エ")!=NULL && strstr(ITEM_getChar(itemindex,ITEM_NAME),"DP鏀エ")==NULL ){ int zhipiaoindex=atoi(ITEM_getChar(itemindex,ITEM_ARGUMENT)); if(zhipiaoindex>0){ time_t timep; @@ -264,7 +264,7 @@ BOOL TRADE_addSomeTradeList( int meindex, int usTi, int *num, int type) p=localtime(&timep); timep = mktime(p); if(timep>zhipiaoindex){ - CHAR_talkToCli(meindex, -1, "该支票已经过期,无法交易,请尽快使用!", CHAR_COLORYELLOW); + CHAR_talkToCli(meindex, -1, "璇ユ敮绁ㄥ凡缁忚繃鏈燂紝鏃犳硶浜ゆ槗锛岃灏藉揩浣跨敤锛", CHAR_COLORYELLOW); return FALSE; } } @@ -274,12 +274,12 @@ BOOL TRADE_addSomeTradeList( int meindex, int usTi, int *num, int type) char *arg = ITEM_getChar(itemindex, ITEM_NAME); if(arg[0] == '*'){ char buf[256]; - sprintf( buf, "%s无法交易。", ITEM_getChar( itemindex, ITEM_NAME) ); + sprintf( buf, "%s鏃犳硶浜ゆ槗銆", ITEM_getChar( itemindex, ITEM_NAME) ); CHAR_talkToCli( meindex, -1, buf, CHAR_COLORYELLOW); return FALSE; } #endif - if( ITEM_getInt( itemindex, ITEM_CANBEPILE) == 1 ){//可堆叠 + if( ITEM_getInt( itemindex, ITEM_CANBEPILE) == 1 ){//鍙爢鍙 int itemMaxPile = ITEM_getInt( itemindex, ITEM_USEPILENUMS); if( itemMaxPile < 0 ) return FALSE; //ITEM_USEPILENUMS @@ -309,35 +309,35 @@ BOOL TRADE_addSomeTradeList( int meindex, int usTi, int *num, int type) petindex = CHAR_getCharPet( meindex, usTi ); if( !CHAR_CHECKINDEX(petindex)) return FALSE; if( CHAR_getInt( petindex, CHAR_PETFAMILY) == 1 ){ - CHAR_talkToCli( meindex, -1, "家族守护兽无法交易。", CHAR_COLORYELLOW); - return FALSE;//家族守护兽 + CHAR_talkToCli( meindex, -1, "瀹舵棌瀹堟姢鍏芥棤娉曚氦鏄撱", CHAR_COLORYELLOW); + return FALSE;//瀹舵棌瀹堟姢鍏 } if( CHAR_getWorkInt( toindex, CHAR_PickAllPet) != TRUE ){ if( CHAR_getInt( petindex, CHAR_LV) > (CHAR_getInt( toindex, CHAR_LV)+5) && (CHAR_getInt( toindex, CHAR_TRANSMIGRATION ) <= 0 ) ){ - CHAR_talkToCli( meindex, -1, "对方无法照顾该宠物。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "瀵规柟鏃犳硶鐓ч【璇ュ疇鐗┿", CHAR_COLORYELLOW); return FALSE; } } -//如果是绑定的宠物则不可交易 +//濡傛灉鏄粦瀹氱殑瀹犵墿鍒欎笉鍙氦鏄 #ifdef _PET_AMOI__E //if( PET_NOT_DropTradeStreetVandor== EVOLUTION_getPetENABLETRADE( CHAR_getInt( petindex, CHAR_PETID)) || // PET_NOT_Trade == EVOLUTION_getPetENABLETRADE( CHAR_getInt( petindex, CHAR_PETID))|| // PET_NOT_TradeAndStreetVandor == EVOLUTION_getPetENABLETRADE( CHAR_getInt( petindex, CHAR_PETID))){ if( ( PET_NOT_TRADE) & EVOLUTION_getPetENABLETRADE( CHAR_getInt( petindex, CHAR_PETID))){ - CHAR_talkToCli(meindex,-1,"该宠物无法交易!~",CHAR_COLORRED); + CHAR_talkToCli(meindex,-1,"璇ュ疇鐗╂棤娉曚氦鏄!~",CHAR_COLORRED); return FALSE; } #endif #ifdef _PET_BUG if( CHAR_getInt( petindex, CHAR_VITAL)>=getPetPoint(0)*20 || CHAR_getInt(petindex,CHAR_STR)>=getPetPoint(1)*80 || CHAR_getInt(petindex,CHAR_TOUGH)>=getPetPoint(2)*80 || CHAR_getInt(petindex,CHAR_DEX)>=getPetPoint(3)*100){ - CHAR_talkToCli( meindex, -1, "宠物属性过高无法交易。", CHAR_COLORYELLOW); - return FALSE;//属性过高 + CHAR_talkToCli( meindex, -1, "瀹犵墿灞炴ц繃楂樻棤娉曚氦鏄撱", CHAR_COLORYELLOW); + return FALSE;//灞炴ц繃楂 } #endif if(strlen(CHAR_getChar(petindex,CHAR_USERPETNAME))>0 && strstr(CHAR_getChar(petindex,CHAR_USERPETNAME),"*")!=NULL){ - CHAR_talkToCli(meindex, -1, "宠物自定义名称中含有(*),无法丢弃、卖店、交易、摆摊,请修改后操作。", CHAR_COLORYELLOW); + CHAR_talkToCli(meindex, -1, "瀹犵墿鑷畾涔夊悕绉颁腑鍚湁(*)锛屾棤娉曚涪寮冦佸崠搴椼佷氦鏄撱佹憜鎽婏紝璇蜂慨鏀瑰悗鎿嶄綔銆", CHAR_COLORYELLOW); return FALSE; } #ifdef _PETSKILL_BINDING @@ -346,15 +346,15 @@ BOOL TRADE_addSomeTradeList( int meindex, int usTi, int *num, int type) skillid=CHAR_getPetSkill(petindex,pi); skillarray = PETSKILL_getPetskillArray( skillid); if( PETSKILL_CHECKINDEX( skillarray) == FALSE ) continue; - if(strstr(PETSKILL_getChar( skillarray, PETSKILL_NAME),"★")){ - CHAR_talkToCli(meindex, -1, "此宠物为绑定宠物,无法交易", CHAR_COLORRED); + if(strstr(PETSKILL_getChar( skillarray, PETSKILL_NAME),"鈽")){ + CHAR_talkToCli(meindex, -1, "姝ゅ疇鐗╀负缁戝畾瀹犵墿锛屾棤娉曚氦鏄", CHAR_COLORRED); return FALSE; } } #endif #ifdef _PET_BINDING if(strstr(CHAR_getChar(petindex,CHAR_NAME),"*") || strstr(CHAR_getChar(petindex,CHAR_NAME),"+")){ - CHAR_talkToCli(meindex, -1, "此宠物为绑定宠物,无法交易", CHAR_COLORRED); + CHAR_talkToCli(meindex, -1, "姝ゅ疇鐗╀负缁戝畾瀹犵墿锛屾棤娉曚氦鏄", CHAR_COLORRED); return FALSE; } #endif @@ -414,7 +414,7 @@ BOOL TRADE_HandlePet( int meindex, int showindex, char *message, char *outmess); void CHAR_Trade(int fd, int index, char* message) { char firstToken[64]; - // shan 以下注掉是不必要的动作 2002/03/05 + // shan 浠ヤ笅娉ㄦ帀鏄笉蹇呰鐨勫姩浣 2002/03/05 //char messageeraseescape[512]; char* messagebody; @@ -430,17 +430,17 @@ void CHAR_Trade(int fd, int index, char* message) CHAR_getMessageBody( message, firstToken, sizeof(firstToken), &messagebody); switch( tolower( firstToken[0]) ){ - case 'd': // 寻找前方玩家 + case 'd': // 瀵绘壘鍓嶆柟鐜╁ TRADE_Search(fd, index, message); break; /* case 'c': TRADE_Will(fd, index, message); break; -*/ case 't': // 显示交易的物品、金钱、宠物 +*/ case 't': // 鏄剧ず浜ゆ槗鐨勭墿鍝併侀噾閽便佸疇鐗 TRADE_ShowItem(fd, index, message); break; - case 'w': // 关闭交易 + case 'w': // 鍏抽棴浜ゆ槗 print(" TRADE_Close:%d ", index); TRADE_Close(fd, index, message); break; @@ -461,18 +461,18 @@ BOOL TRADE_Search(int fd, int meindex, char* message) if (!CHAR_CHECKINDEX(meindex)) return FALSE; - // 若玩家状态为交易中或交易锁定中则不予处理 + // 鑻ョ帺瀹剁姸鎬佷负浜ゆ槗涓垨浜ゆ槗閿佸畾涓垯涓嶄簣澶勭悊 if (CHAR_getWorkInt(meindex, CHAR_WORKTRADEMODE) == CHAR_TRADE_TRADING || CHAR_getWorkInt(meindex, CHAR_WORKTRADEMODE) == CHAR_TRADE_LOCK) return FALSE; - // 若玩家状态为组队或战斗中则不予处理 + // 鑻ョ帺瀹剁姸鎬佷负缁勯槦鎴栨垬鏂椾腑鍒欎笉浜堝鐞 if ((CHAR_getWorkInt(meindex, CHAR_WORKPARTYMODE) != CHAR_PARTY_NONE) || (CHAR_getWorkInt(meindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE)) return FALSE; #ifdef _STREET_VENDOR - // 若玩家在摆摊中不处理交易 + // 鑻ョ帺瀹跺湪鎽嗘憡涓笉澶勭悊浜ゆ槗 if(CHAR_getWorkInt(meindex,CHAR_WORKSTREETVENDOR) > -1) return FALSE; #endif @@ -480,7 +480,7 @@ BOOL TRADE_Search(int fd, int meindex, char* message) if (getStringFromIndexWithDelim(message, "|", 2, token, sizeof(token)) == FALSE) return FALSE; - // 设定状态交易请求中 + // 璁惧畾鐘舵佷氦鏄撹姹備腑 // CHAR_setWorkInt(meindex, CHAR_WORKTRADEMODE, CHAR_TRADE_SENDING); #ifndef _ITEM_PILEFORTRADE @@ -494,7 +494,7 @@ BOOL TRADE_Search(int fd, int meindex, char* message) found_count = CHAR_getSameCoordinateObjects( objbuf, arraysizeof(objbuf), CHAR_getInt(meindex, CHAR_FLOOR),front_x, front_y); - // 前方没有玩家或对方关闭交易选项 + // 鍓嶆柟娌℃湁鐜╁鎴栧鏂瑰叧闂氦鏄撻夐」 if (found_count == 0){ CHAR_talkToCli(meindex, -1, TRADE_NONE, CHAR_COLORYELLOW); CHAR_setWorkInt(meindex, CHAR_WORKTRADEMODE, CHAR_TRADE_FREE); @@ -531,7 +531,7 @@ BOOL TRADE_Search(int fd, int meindex, char* message) } if (cnt == 0){ - // 前方没有玩家或对方关闭交易选项 + // 鍓嶆柟娌℃湁鐜╁鎴栧鏂瑰叧闂氦鏄撻夐」 if (found){ CHAR_talkToCli(meindex, -1, TRADE_NOWILL, CHAR_COLORYELLOW); }else @@ -541,7 +541,7 @@ BOOL TRADE_Search(int fd, int meindex, char* message) CHAR_setWorkInt(meindex, CHAR_WORKTRADEMODE, CHAR_TRADE_FREE); return FALSE; } - // 前方有一位玩家 + // 鍓嶆柟鏈変竴浣嶇帺瀹 if (cnt == 1){ #ifdef _ITEM_PILEFORTRADE int ti; @@ -554,7 +554,7 @@ BOOL TRADE_Search(int fd, int meindex, char* message) if( (ti = TRADE_getTradeListIndex()) < 0 || TRADE_setTradeListIndex( ti, meindex, toindex) == FALSE ){ - CHAR_talkToCli( meindex, -1, "系统忙碌中。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "绯荤粺蹇欑涓", CHAR_COLORYELLOW); CHAR_setWorkInt( meindex, CHAR_WORKTRADEMODE, CHAR_TRADE_FREE); TRADE_CheckTradeListUser(); @@ -579,7 +579,7 @@ BOOL TRADE_Search(int fd, int meindex, char* message) CHAR_sendTradeEffect(meindex, 1); CHAR_sendTradeEffect(toindex, 1); return TRUE; - }else if (cnt > 1){ // 前方不只一位玩家 + }else if (cnt > 1){ // 鍓嶆柟涓嶅彧涓浣嶇帺瀹 CHAR_talkToCli(meindex, -1, TRADE_OVERPLAYER, CHAR_COLORYELLOW); // sprintf(msgbuf, "C|%d|%s|0", tofd, tocharaname); CHAR_setWorkInt(meindex, CHAR_WORKTRADEMODE, CHAR_TRADE_FREE); @@ -723,7 +723,7 @@ void TRADE_ShowItem(int fd, int meindex, char* message) #endif if (!CHAR_CHECKINDEX(toindex)) return; - // 若玩家状态为组队或战斗中则不予处理 + // 鑻ョ帺瀹剁姸鎬佷负缁勯槦鎴栨垬鏂椾腑鍒欎笉浜堝鐞 if ((CHAR_getWorkInt(meindex, CHAR_WORKPARTYMODE) != CHAR_PARTY_NONE) || (CHAR_getWorkInt(meindex, CHAR_WORKBATTLEMODE) != BATTLE_CHARMODE_NONE)) return; @@ -761,7 +761,7 @@ void TRADE_ShowItem(int fd, int meindex, char* message) print(" TRADE_Close_Err4:%d,%d,%s,%s ", meindex, showindex, message, buf1); TRADE_Close(fd, meindex, message); return; - }else{// 将欲交易之金钱传给对方 + }else{// 灏嗘浜ゆ槗涔嬮噾閽变紶缁欏鏂 snprintf(msg, sizeof(msg), "T|%d|%s|G|%d|%s", fd, mycharaname, showindex, buf1); lssproto_TD_send( tofd, -1, msg); } @@ -783,14 +783,14 @@ void TRADE_ShowItem(int fd, int meindex, char* message) break; case 'k': if((CONNECT_get_confirm(fd)==TRUE) && - (CONNECT_get_confirm(tofd)==TRUE) ){//当双方都按下 lock + (CONNECT_get_confirm(tofd)==TRUE) ){//褰撳弻鏂归兘鎸変笅 lock if( CHAR_getWorkInt(meindex, CHAR_WORKTRADEMODE) == CHAR_TRADE_LOCK ){ //andy_log - print("ANDY err 防止第二次进入!!\n"); - return;//防止第二次进入 + print("ANDY err 闃叉绗簩娆¤繘鍏!!\n"); + return;//闃叉绗簩娆¤繘鍏 } CHAR_setWorkInt(meindex, CHAR_WORKTRADEMODE, CHAR_TRADE_LOCK); - //检查对方是否按下 ok + //妫鏌ュ鏂规槸鍚︽寜涓 ok if( CHAR_getWorkInt( toindex, CHAR_WORKTRADEMODE) != CHAR_TRADE_LOCK )return; snprintf(msg, sizeof(msg), "T|%d|%s|A", fd, mycharaname); @@ -923,8 +923,8 @@ void TRADE_SwapItem( int meindex, int toindex, char* message, int fd, char* mych CHAR_getChar( toindex, CHAR_NAME), CHAR_getChar( petindex2, CHAR_NAME)); if(strcmp( CHAR_getChar( petindex1, CHAR_UNIQUECODE), CHAR_getChar( petindex2, CHAR_UNIQUECODE))== 0){ - CHAR_talkToCli(meindex, -1, "检测到非法宠物交易,系统自动清除!", CHAR_COLORRED); - CHAR_talkToCli(toindex, -1, "检测到非法宠物交易,系统自动清除!", CHAR_COLORRED); + CHAR_talkToCli(meindex, -1, "妫娴嬪埌闈炴硶瀹犵墿浜ゆ槗锛岀郴缁熻嚜鍔ㄦ竻闄わ紒", CHAR_COLORRED); + CHAR_talkToCli(toindex, -1, "妫娴嬪埌闈炴硶瀹犵墿浜ゆ槗锛岀郴缁熻嚜鍔ㄦ竻闄わ紒", CHAR_COLORRED); NPC_DelPet(toindex,n); } } @@ -936,8 +936,8 @@ void TRADE_SwapItem( int meindex, int toindex, char* message, int fd, char* mych { CHAR_charSaveFromConnect(meindex, FALSE); CHAR_charSaveFromConnect(toindex, FALSE); - CHAR_talkToCli(meindex, -1, "系统为你自动存档!", CHAR_COLORRED); - CHAR_talkToCli(toindex, -1, "系统为你自动存档!", CHAR_COLORRED); + CHAR_talkToCli(meindex, -1, "绯荤粺涓轰綘鑷姩瀛樻。锛", CHAR_COLORRED); + CHAR_talkToCli(toindex, -1, "绯荤粺涓轰綘鑷姩瀛樻。锛", CHAR_COLORRED); } } @@ -959,7 +959,7 @@ int TRADE_HandleTrade_DelItem( int charaindex, int MyMaxPile, int MaxPile, int * if(ITEM_getInt( itemindex, ITEM_CANBEPILE)!=1 && ITEM_getInt( itemindex, ITEM_USEPILENUMS)>1){ CHAR_setItemIndex( charaindex , Item[i], -1); CHAR_sendItemDataOne(charaindex,Item[i]); - CHAR_talkToCli(charaindex,-1,"非法道具自动删除",CHAR_COLORYELLOW); + CHAR_talkToCli(charaindex,-1,"闈炴硶閬撳叿鑷姩鍒犻櫎",CHAR_COLORYELLOW); return -1; } pilenum = ITEM_getInt( itemindex, ITEM_USEPILENUMS); @@ -1155,8 +1155,8 @@ void BATTLE_Trade(void) } CHAR_charSaveFromConnect(meindexpk, FALSE); CHAR_charSaveFromConnect(toindexpk, FALSE); - CHAR_talkToCli(meindexpk, -1, "系统为你自动存档!", CHAR_COLORRED); - CHAR_talkToCli(toindexpk, -1, "系统为你自动存档!", CHAR_COLORRED); + CHAR_talkToCli(meindexpk, -1, "绯荤粺涓轰綘鑷姩瀛樻。锛", CHAR_COLORRED); + CHAR_talkToCli(toindexpk, -1, "绯荤粺涓轰綘鑷姩瀛樻。锛", CHAR_COLORRED); } #endif @@ -1169,10 +1169,10 @@ BOOL TRADE_HandleTrade( int meindex, STradeList *temp1, int toindex, STradeList int LostPet[5]={-1,-1,-1,-1,-1}; - MeMaxPile = CHAR_getMyMaxPilenum( meindex);//最大堆叠数 + MeMaxPile = CHAR_getMyMaxPilenum( meindex);//鏈澶у爢鍙犳暟 ToMaxPile = CHAR_getMyMaxPilenum( toindex); - //移除meindex - //移除toindex + //绉婚櫎meindex + //绉婚櫎toindex { char buf[256]; @@ -1183,7 +1183,7 @@ BOOL TRADE_HandleTrade( int meindex, STradeList *temp1, int toindex, STradeList CHAR_getInt( meindex, CHAR_FLOOR), CHAR_getInt( meindex, CHAR_X), CHAR_getInt( meindex, CHAR_Y) ); LogTrade(buf); } - //移除 + //绉婚櫎 if( CHAR_getInt( meindex, CHAR_FLOOR)==50000 && CHAR_getInt( toindex, CHAR_FLOOR)==50000) { if( CHAR_getWorkInt( meindex, CHAR_WORKTRADEPK)==1 && CHAR_getWorkInt( toindex, CHAR_WORKTRADEPK)==2) @@ -1195,7 +1195,7 @@ BOOL TRADE_HandleTrade( int meindex, STradeList *temp1, int toindex, STradeList if( (ret=TRADE_HandleTrade_DelPet( toindex, temp2->PetTi, MePet)) == -1 ) return FALSE; if( TRADE_HandleTrade_DelGold( meindex, temp1->Golds, &ToGold) == FALSE ) return FALSE; if( TRADE_HandleTrade_DelGold( toindex, temp2->Golds, &MeGold) == FALSE ) return FALSE; - //加入 + //鍔犲叆 if( TRADE_HandleTrade_AddItem( meindex, MeItem) == FALSE ) return FALSE; if( TRADE_HandleTrade_AddItem( meindex, ToItem) == FALSE ) return FALSE; if( TRADE_HandleTrade_AddPet( meindex, MePet) == FALSE) return FALSE; @@ -1215,7 +1215,7 @@ BOOL TRADE_HandleTrade( int meindex, STradeList *temp1, int toindex, STradeList if( (ret=TRADE_HandleTrade_DelPet( toindex, temp2->PetTi, MePet)) == -1 ) return FALSE; if( TRADE_HandleTrade_DelGold( meindex, temp1->Golds, &ToGold) == FALSE ) return FALSE; if( TRADE_HandleTrade_DelGold( toindex, temp2->Golds, &MeGold) == FALSE ) return FALSE; - //加入 + //鍔犲叆 if( TRADE_HandleTrade_AddItem( toindex, MeItem) == FALSE ) return FALSE; if( TRADE_HandleTrade_AddItem( toindex, ToItem) == FALSE ) return FALSE; if( TRADE_HandleTrade_AddPet( toindex, MePet) == FALSE) return FALSE; @@ -1236,7 +1236,7 @@ BOOL TRADE_HandleTrade( int meindex, STradeList *temp1, int toindex, STradeList if( (ret=TRADE_HandleTrade_DelPet( toindex, temp2->PetTi, MePet)) == -1 ) return FALSE; if( TRADE_HandleTrade_DelGold( meindex, temp1->Golds, &ToGold) == FALSE ) return FALSE; if( TRADE_HandleTrade_DelGold( toindex, temp2->Golds, &MeGold) == FALSE ) return FALSE; - //加入 + //鍔犲叆 if( TRADE_HandleTrade_AddItem( meindex, MeItem) == FALSE ) return FALSE; if( TRADE_HandleTrade_AddItem( toindex, ToItem) == FALSE ) return FALSE; if( TRADE_HandleTrade_AddPet( meindex, MePet) == FALSE) return FALSE; @@ -1301,10 +1301,10 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara if( TradeList[Tradeti][0].use != 1 || TradeList[Tradeti][1].use != 1 ) return -1; if( TRADE_getSomeTradeList( meindex, &TradeListTemp[0]) == FALSE ) return -1; if( TRADE_getSomeTradeList( toindex, &TradeListTemp[1]) == FALSE ) return -1; - //确定空位 + //纭畾绌轰綅 if( TRADE_CheckTradeList( meindex, &TradeListTemp[0], toindex, &TradeListTemp[1]) == FALSE ) return -1; - //移除人物身上 - //加入人物身上 + //绉婚櫎浜虹墿韬笂 + //鍔犲叆浜虹墿韬笂 #ifdef _TRADE_PK if(CHAR_getInt( meindex, CHAR_FLOOR)==50000 && CHAR_getInt( toindex, CHAR_FLOOR)==50000) { @@ -1340,7 +1340,7 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara { #endif if( TRADE_HandleTrade( meindex, &TradeListTemp[0], toindex, &TradeListTemp[1] ) == FALSE ) return -1; - //交易结束动作 + //浜ゆ槗缁撴潫鍔ㄤ綔 return 1; #ifdef _TRADE_PK } @@ -1351,14 +1351,14 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara /* int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mycharaname, char* tocharaname) { -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - int myItem[42] = { -1 } ; //我方所有的交易内容编号 - int oppItem[42] = { -1 }; //对方所有的交易内容编号 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + int myItem[42] = { -1 } ; //鎴戞柟鎵鏈夌殑浜ゆ槗鍐呭缂栧彿 + int oppItem[42] = { -1 }; //瀵规柟鎵鏈夌殑浜ゆ槗鍐呭缂栧彿 int ii , jj; - int Iitem1[15] = { 0 } ; //我方道具的index - int Iitem2[15] = { 0 } ; //对方道具的index - int ppet1[5] = { 0 } ; //我方宠物的index - int ppet2[5] = { 0 } ; //对方宠物的index + int Iitem1[15] = { 0 } ; //鎴戞柟閬撳叿鐨刬ndex + int Iitem2[15] = { 0 } ; //瀵规柟閬撳叿鐨刬ndex + int ppet1[5] = { 0 } ; //鎴戞柟瀹犵墿鐨刬ndex + int ppet2[5] = { 0 } ; //瀵规柟瀹犵墿鐨刬ndex BOOL tradeflag = TRUE ; int count = 0 ; #endif @@ -1378,19 +1378,19 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara CONNECT_getTradeTmp(tofd, toitembuf, sizeof(toitembuf)); -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - //取得我方所有交易内容编号 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + //鍙栧緱鎴戞柟鎵鏈変氦鏄撳唴瀹圭紪鍙 for ( ii = 0 ; ii < 42 ; ii ++ ) { if (getStringFromIndexWithDelim(itembuf, "|", 6 + ii * 2 , token, sizeof(token)) == TRUE) myItem[ii] = atoi(token); } - //取得对方所有交易内容编号 + //鍙栧緱瀵规柟鎵鏈変氦鏄撳唴瀹圭紪鍙 for ( ii = 0 ; ii < 42 ; ii ++ ) { if (getStringFromIndexWithDelim(toitembuf, "|", 6 + ii * 2 , token, sizeof(token)) == TRUE) oppItem[ii] = atoi(token); } #else - // 比对双方之最後交易协定 + // 姣斿鍙屾柟涔嬫渶寰屼氦鏄撳崗瀹 if (getStringFromIndexWithDelim(itembuf, "|", 5, token, sizeof(token)) == TRUE) strcpy(a, token); if (getStringFromIndexWithDelim(itembuf, "|", 6, token, sizeof(token)) == TRUE) @@ -1442,8 +1442,8 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara toitemindex6 = atoi(token); #endif -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - //检查有无重复交易的道具 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + //妫鏌ユ湁鏃犻噸澶嶄氦鏄撶殑閬撳叿 for ( ii = 0 ; ii < 15 ; ii ++ ) { for ( jj = ii + 1 ; jj < 15 ; jj ++ ) { if ( myItem[ii] == myItem[jj] ) @@ -1459,7 +1459,7 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara } } #else - // shan hjj add 洗道具 + // shan hjj add 娲楅亾鍏 if (itemindex1==itemindex2){ if (itemindex1!=-1){ return -1; @@ -1473,8 +1473,8 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara // End #endif -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - //比对双方交易的物品是否都正确 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + //姣斿鍙屾柟浜ゆ槗鐨勭墿鍝佹槸鍚﹂兘姝g‘ for ( ii = 0 ; ii < 21 ; ii ++ ) { if ( myItem[ii] != oppItem[ii+21] ) { tradeflag = FALSE ; @@ -1487,9 +1487,9 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara break; } } - //双方内容正确开始进行处理 + //鍙屾柟鍐呭姝g‘寮濮嬭繘琛屽鐞 if ( tradeflag == TRUE ) { - //计算双方道具的加减 + //璁$畻鍙屾柟閬撳叿鐨勫姞鍑 for ( ii = 0 ; ii < 15 ; ii ++ ) { if ( myItem[ii] != -1 ) { swapitem1--; @@ -1509,7 +1509,7 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara && (itemindex3 == toitemindex6) && (itemindex4 == toitemindex1) && (itemindex5 == toitemindex2) && (itemindex6 == toitemindex3)) { - // 检验双方物品栏是否有空位 + // 妫楠屽弻鏂圭墿鍝佹爮鏄惁鏈夌┖浣 if ((strcmp(a, "I") == 0) && (itemindex1 != -1)){ swapitem1--; swapitem2++; @@ -1533,12 +1533,12 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara if (!CHAR_CHECKINDEX(toindex)) return -1; if (swapitem2 > CHAR_findTotalEmptyItem(toindex)) return -3; -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - //取得交换的金钱 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + //鍙栧緱浜ゆ崲鐨勯噾閽 if ( myItem[20] != -1 ) gold1 += myItem[20] ; if ( myItem[41] != -1 ) gold2 += myItem[41] ; #else - // 检查双方金钱 + // 妫鏌ュ弻鏂归噾閽 if ((strcmp(a, "G") == 0) && (itemindex1 != -1)) gold1 += itemindex1; if ((strcmp(b, "G") == 0) && (itemindex2 != -1)) gold1 += itemindex2; if ((strcmp(d, "G") == 0) && (itemindex4 != -1)) gold2 += itemindex4; @@ -1551,8 +1551,8 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara if ((gold2 + CHAR_getInt(meindex, CHAR_GOLD) - gold1) > CHAR_getMaxHaveGold( meindex) ) return -8; if ((gold1 + CHAR_getInt(toindex, CHAR_GOLD) - gold2) > CHAR_getMaxHaveGold( toindex)) return -9; -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - //计算双方宠物的加减 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + //璁$畻鍙屾柟瀹犵墿鐨勫姞鍑 for ( ii = 15 ; ii < 20 ; ii ++ ) { if ( myItem[ii] != -1 ) { pet1--; @@ -1566,7 +1566,7 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara } } #else - // 检查双方宠物 + // 妫鏌ュ弻鏂瑰疇鐗 if ((strcmp(c, "P") == 0) && (itemindex3 != -1)) { pet1--; pet2++; @@ -1577,9 +1577,9 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara } #endif -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 if ((pet1 > 5) || (pet2 > 5)) return -10; - //取得双方身上能放的宠物数量 + //鍙栧緱鍙屾柟韬笂鑳芥斁鐨勫疇鐗╂暟閲 for( ii = 0; ii < CHAR_MAXPETHAVE; ii ++ ) { if( CHAR_getCharPet( meindex , ii ) == -1 ) count ++ ; } @@ -1594,8 +1594,8 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara if ((pet1 == 1) && (CHAR_getCharPetElement( meindex) == -1)) return -10; if ((pet2 == 1) && (CHAR_getCharPetElement( toindex) == -1)) return -11; #endif -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - //取得所有欲交易的道具index +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + //鍙栧緱鎵鏈夋浜ゆ槗鐨勯亾鍏穒ndex for ( ii = 0 ; ii < 15 ; ii ++ ) { if ( myItem[ii] != -1 ) Iitem1[ii] = CHAR_getItemIndex(meindex, myItem[ii]); @@ -1620,8 +1620,8 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara item5 = CHAR_getItemIndex(toindex, itemindex5); else item5 = -1; #endif -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - //取得欲交易宠物的index +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + //鍙栧緱娆蹭氦鏄撳疇鐗╃殑index for ( ii = 15 ; ii < 20 ; ii ++ ) { if ( myItem[ii] != -1 ) { if ( CHAR_getInt( meindex , CHAR_RIDEPET) == myItem[ii] ) @@ -1659,7 +1659,7 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 for ( ii = 0 ; ii < 15 ; ii ++ ) { if ( ITEM_getInt( Iitem1[ii] , ITEM_VANISHATDROP ) == 1 ) return -12 ; @@ -1675,8 +1675,8 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara #endif -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - //宠物等级能否交易判断 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + //瀹犵墿绛夌骇鑳藉惁浜ゆ槗鍒ゆ柇 if( CHAR_getWorkInt( meindex, CHAR_PickAllPet) != TRUE ) { for ( ii = 0 ; ii < 5 ; ii ++ ) { if ( (ppet2[ii] != -1 ) && ( CHAR_getInt( ppet2[ii] , CHAR_LV ) @@ -1709,8 +1709,8 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara return -14; } #endif -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - //是否为家族守护兽 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + //鏄惁涓哄鏃忓畧鎶ゅ吔 for ( ii = 0 ; ii < 5 ; ii ++ ) { if ( ( ppet1[ii] != -1 ) && (CHAR_getInt(ppet1[ii], CHAR_PETFAMILY) == 1)) return -15; @@ -1724,8 +1724,8 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara return -15; #endif -#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 - // 交换玩家道具、金钱、宠物 +#ifdef _TRADESYSTEM2 // (涓嶅彲寮) Syu ADD 鏂颁氦鏄撶郴缁 + // 浜ゆ崲鐜╁閬撳叿銆侀噾閽便佸疇鐗 for ( ii = 0 ; ii < 15 ; ii ++ ) { TRADE_ChangeItem(meindex, toindex, "I", "I", Iitem1[ii], Iitem2[ii], myItem[ii], oppItem[ii]); @@ -1745,7 +1745,7 @@ int TRADE_CheckItembuf(int fd, int meindex, int toindex, int tofd, char* mychara itemindex3, itemindex6); #endif - // 写入 trade.log + // 鍐欏叆 trade.log { char petname1[256], petname2[256]; int pet1lv, pet2lv; @@ -1803,10 +1803,10 @@ BOOL TRADE_ChangeItem(int meindex, int toindex, char *a, char *b, int gold1 = 0, gold2 = 0, eptitem = -1; if (CHAR_CHECKINDEX(meindex) == FALSE) return FALSE; if (CHAR_CHECKINDEX(toindex) == FALSE) return FALSE; - // 道具 <-> 道具 + // 閬撳叿 <-> 閬撳叿 if ((strcmp(a, "I") == 0) && (strcmp(b, "I") == 0)) { - // 无 <-> 道具 + // 鏃 <-> 閬撳叿 if ((itemindex1 == -1) && (itemindex2 > 0)) { if (ITEM_CHECKINDEX(item2) == FALSE) return FALSE; @@ -1817,7 +1817,7 @@ BOOL TRADE_ChangeItem(int meindex, int toindex, char *a, char *b, ITEM_setWorkInt(item2, ITEM_WORKOBJINDEX, -1); CHAR_setItemIndex(toindex, itemindex2, -1); } - // 道具 <-> 无 + // 閬撳叿 <-> 鏃 else if ((itemindex1 > 0) && (itemindex2 == -1)) { if (ITEM_CHECKINDEX(item1) == FALSE) return FALSE; @@ -1828,7 +1828,7 @@ BOOL TRADE_ChangeItem(int meindex, int toindex, char *a, char *b, ITEM_setWorkInt(item1, ITEM_WORKOBJINDEX, -1); CHAR_setItemIndex(meindex, itemindex1, -1); } - // 道具 <-> 道具 + // 閬撳叿 <-> 閬撳叿 else if (itemindex1 > 0 && itemindex2 > 0) { if (ITEM_CHECKINDEX(item1) == FALSE) return FALSE; @@ -1841,7 +1841,7 @@ BOOL TRADE_ChangeItem(int meindex, int toindex, char *a, char *b, CHAR_setItemIndex(meindex, itemindex1, item2); } } - // 道具 <-> 金钱 + // 閬撳叿 <-> 閲戦挶 else if ((strcmp(a, "I") == 0) && (strcmp(b, "G") == 0)) { if (itemindex1 > 0) @@ -1862,7 +1862,7 @@ BOOL TRADE_ChangeItem(int meindex, int toindex, char *a, char *b, gold2 -= itemindex2; CHAR_setInt(toindex, CHAR_GOLD, gold2); } - // 金钱 <-> 道具 + // 閲戦挶 <-> 閬撳叿 else if ((strcmp(a, "G") == 0) && (strcmp(b, "I") == 0)) { if (itemindex2 > 0) @@ -1883,7 +1883,7 @@ BOOL TRADE_ChangeItem(int meindex, int toindex, char *a, char *b, gold2 += itemindex1; CHAR_setInt(toindex, CHAR_GOLD, gold2); } - // 金钱 <-> 金钱 + // 閲戦挶 <-> 閲戦挶 else if ((strcmp(a, "G") == 0) && (strcmp(b, "G") == 0)) { if (itemindex1 < 0) itemindex1 = 0; @@ -1895,7 +1895,7 @@ BOOL TRADE_ChangeItem(int meindex, int toindex, char *a, char *b, gold2 = gold2 + itemindex2 - itemindex1; CHAR_setInt(meindex, CHAR_GOLD, gold2); } - // 宠物 <-> 宠物 + // 瀹犵墿 <-> 瀹犵墿 else if ((strcmp(a, "P") == 0) && (strcmp(b, "P") == 0)) { char category[8]; @@ -1997,13 +1997,13 @@ BOOL TRADE_HandleItem( int meindex, int showindex, char *message, char *outmess) #endif strcpy( itemname, ITEM_getChar(itemindex, ITEM_SECRETNAME));//ITEM_NAME crushe = ITEM_getItemDamageCrusheED( itemindex); - sprintf( token, "不会损坏"); //不会损坏 + sprintf( token, "涓嶄細鎹熷潖"); //涓嶄細鎹熷潖 if( crushe >= 0 ) snprintf( token, sizeof(token), "%d%%", crushe ); char szTemp1[256]; sprintf(szTemp1," "); #ifdef _TRADE_ITEM_FIX - if(getTradeItemFix()==1 && ( ITEM_getInt(itemindex,ITEM_MERGEFLG)==TRUE || strstr(ITEM_getChar(itemindex,ITEM_NAME),"合成")!=NULL ) ){ + if(getTradeItemFix()==1 && ( ITEM_getInt(itemindex,ITEM_MERGEFLG)==TRUE || strstr(ITEM_getChar(itemindex,ITEM_NAME),"鍚堟垚")!=NULL ) ){ char attnum[16]; sprintf(attnum,""); if(ITEM_getInt(itemindex,ITEM_MODIFYATTACK)!=0){ @@ -2015,23 +2015,23 @@ BOOL TRADE_HandleItem( int meindex, int showindex, char *message, char *outmess) } } if(strcmp(szTemp1," ")==0){ - sprintf(szTemp1,"攻%s%d%s ",(ITEM_getInt(itemindex,ITEM_MODIFYATTACK)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYATTACK),attnum); + sprintf(szTemp1,"鏀%s%d%s ",(ITEM_getInt(itemindex,ITEM_MODIFYATTACK)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYATTACK),attnum); }else{ - sprintf(szTemp1,"%s攻%s%d%s ",szTemp1,(ITEM_getInt(itemindex,ITEM_MODIFYATTACK)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYATTACK),attnum); + sprintf(szTemp1,"%s鏀%s%d%s ",szTemp1,(ITEM_getInt(itemindex,ITEM_MODIFYATTACK)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYATTACK),attnum); } } if(ITEM_getInt(itemindex,ITEM_MODIFYDEFENCE)!=0){ if(strcmp(szTemp1," ")==0){ - sprintf(szTemp1,"防%s%d ",(ITEM_getInt(itemindex,ITEM_MODIFYDEFENCE)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYDEFENCE)); + sprintf(szTemp1,"闃%s%d ",(ITEM_getInt(itemindex,ITEM_MODIFYDEFENCE)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYDEFENCE)); }else{ - sprintf(szTemp1,"%s防%s%d ",szTemp1,(ITEM_getInt(itemindex,ITEM_MODIFYDEFENCE)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYDEFENCE)); + sprintf(szTemp1,"%s闃%s%d ",szTemp1,(ITEM_getInt(itemindex,ITEM_MODIFYDEFENCE)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYDEFENCE)); } } if(ITEM_getInt(itemindex,ITEM_MODIFYQUICK)!=0){ if(strcmp(szTemp1," ")==0){ - sprintf(szTemp1,"敏%s%d ",(ITEM_getInt(itemindex,ITEM_MODIFYQUICK)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYQUICK)); + sprintf(szTemp1,"鏁%s%d ",(ITEM_getInt(itemindex,ITEM_MODIFYQUICK)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYQUICK)); }else{ - sprintf(szTemp1,"%s敏%s%d ",szTemp1,(ITEM_getInt(itemindex,ITEM_MODIFYQUICK)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYQUICK)); + sprintf(szTemp1,"%s鏁%s%d ",szTemp1,(ITEM_getInt(itemindex,ITEM_MODIFYQUICK)>=0)?"+":"",ITEM_getInt(itemindex,ITEM_MODIFYQUICK)); } } if(ITEM_getInt(itemindex,ITEM_MAGICID)>0){ @@ -2052,7 +2052,7 @@ BOOL TRADE_HandleItem( int meindex, int showindex, char *message, char *outmess) sprintf(szTemp1,"%s",ITEM_getChar(itemindex,ITEM_EFFECTSTRING)); char newitemname[128]; memset(newitemname,0,sizeof(newitemname)); - if(strstr(ITEM_getChar( itemindex, ITEM_NAME),"经验搜集丹")!=NULL) + if(strstr(ITEM_getChar( itemindex, ITEM_NAME),"缁忛獙鎼滈泦涓")!=NULL) strcpy(newitemname, ITEM_getChar( itemindex, ITEM_SECRETNAME)); else strcpy(newitemname , ITEM_getChar( itemindex, ITEM_NAME)); @@ -2169,12 +2169,12 @@ BOOL TRADE_CheckTradeList( int meindex, STradeList *temp1, int toindex, STradeLi int ToSurplus=0, ToNeeds=0, ToMaxPile; - MeMaxPile = CHAR_getMyMaxPilenum( meindex);//最大堆叠数 + MeMaxPile = CHAR_getMyMaxPilenum( meindex);//鏈澶у爢鍙犳暟 ToMaxPile = CHAR_getMyMaxPilenum( toindex); MeSurplus = CHAR_findSurplusItemBox( meindex); ToSurplus = CHAR_findSurplusItemBox( toindex); - //道具 + //閬撳叿 ToNeeds=0; MeNeeds=0; for( i=0; i<15; i++ ){ int pilenum, itemindex; @@ -2209,31 +2209,31 @@ BOOL TRADE_CheckTradeList( int meindex, STradeList *temp1, int toindex, STradeLi if(CHAR_getInt(meindex,CHAR_FLOOR)==50000 && CHAR_getInt(toindex,CHAR_FLOOR)==50000 ) { if( MeSurplus < (MeNeeds+ToNeeds) ){ - CHAR_talkToCli( meindex, -1, "交易後物品栏位不足。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "对方交易後物品栏位不足。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "浜ゆ槗寰岀墿鍝佹爮浣嶄笉瓒炽", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "瀵规柟浜ゆ槗寰岀墿鍝佹爮浣嶄笉瓒炽", CHAR_COLORYELLOW); return FALSE; } if( ToSurplus < (ToNeeds+MeNeeds) ){ - CHAR_talkToCli( toindex, -1, "交易後物品栏位不足。", CHAR_COLORYELLOW); - CHAR_talkToCli( meindex, -1, "对方交易後物品栏位不足。", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "浜ゆ槗寰岀墿鍝佹爮浣嶄笉瓒炽", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "瀵规柟浜ゆ槗寰岀墿鍝佹爮浣嶄笉瓒炽", CHAR_COLORYELLOW); return FALSE; } } else { if( MeSurplus < MeNeeds ){ - CHAR_talkToCli( meindex, -1, "交易後物品栏位不足。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "对方交易後物品栏位不足。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "浜ゆ槗寰岀墿鍝佹爮浣嶄笉瓒炽", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "瀵规柟浜ゆ槗寰岀墿鍝佹爮浣嶄笉瓒炽", CHAR_COLORYELLOW); return FALSE; } if( ToSurplus < ToNeeds ){ - CHAR_talkToCli( toindex, -1, "交易後物品栏位不足。", CHAR_COLORYELLOW); - CHAR_talkToCli( meindex, -1, "对方交易後物品栏位不足。", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "浜ゆ槗寰岀墿鍝佹爮浣嶄笉瓒炽", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "瀵规柟浜ゆ槗寰岀墿鍝佹爮浣嶄笉瓒炽", CHAR_COLORYELLOW); return FALSE; } } - //宠物 + //瀹犵墿 MeSurplus = CHAR_findSurplusPetBox( meindex); ToSurplus = CHAR_findSurplusPetBox( toindex); ToNeeds=0; MeNeeds=0; @@ -2256,32 +2256,32 @@ BOOL TRADE_CheckTradeList( int meindex, STradeList *temp1, int toindex, STradeLi if(CHAR_getInt(meindex,CHAR_FLOOR)==50000 && CHAR_getInt(toindex,CHAR_FLOOR)==50000 ) { if( MeSurplus < (MeNeeds+ToNeeds) ){ - CHAR_talkToCli( meindex, -1, "交易後宠物栏位不足。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "对方交易後宠物栏位不足。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "浜ゆ槗寰屽疇鐗╂爮浣嶄笉瓒炽", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "瀵规柟浜ゆ槗寰屽疇鐗╂爮浣嶄笉瓒炽", CHAR_COLORYELLOW); return FALSE; } if( ToSurplus < (ToNeeds+MeNeeds) ){ - CHAR_talkToCli( meindex, -1, "对方交易後宠物栏位不足。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "交易後宠物栏位不足。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "瀵规柟浜ゆ槗寰屽疇鐗╂爮浣嶄笉瓒炽", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "浜ゆ槗寰屽疇鐗╂爮浣嶄笉瓒炽", CHAR_COLORYELLOW); return FALSE; } } else { if( MeSurplus < MeNeeds ){ - CHAR_talkToCli( meindex, -1, "交易後宠物栏位不足。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "对方交易後宠物栏位不足。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "浜ゆ槗寰屽疇鐗╂爮浣嶄笉瓒炽", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "瀵规柟浜ゆ槗寰屽疇鐗╂爮浣嶄笉瓒炽", CHAR_COLORYELLOW); return FALSE; } if( ToSurplus < ToNeeds ){ - CHAR_talkToCli( meindex, -1, "对方交易後宠物栏位不足。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "交易後宠物栏位不足。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "瀵规柟浜ゆ槗寰屽疇鐗╂爮浣嶄笉瓒炽", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "浜ゆ槗寰屽疇鐗╂爮浣嶄笉瓒炽", CHAR_COLORYELLOW); return FALSE; } } - //金钱 + //閲戦挶 MeMaxPile = CHAR_getMaxHaveGold( meindex); ToMaxPile = CHAR_getMaxHaveGold( toindex); MeSurplus = MeMaxPile - CHAR_getInt( meindex, CHAR_GOLD); @@ -2294,26 +2294,26 @@ BOOL TRADE_CheckTradeList( int meindex, STradeList *temp1, int toindex, STradeLi if(CHAR_getInt(meindex,CHAR_FLOOR)==50000 && CHAR_getInt(toindex,CHAR_FLOOR)==50000 ) { if( MeSurplus < (MeNeeds+ToNeeds) ){ - CHAR_talkToCli( meindex, -1, "交易後石币超过上限。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "对方交易後石币超过上限。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "浜ゆ槗寰岀煶甯佽秴杩囦笂闄愩", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "瀵规柟浜ゆ槗寰岀煶甯佽秴杩囦笂闄愩", CHAR_COLORYELLOW); return FALSE; } if( ToSurplus < (ToNeeds+MeNeeds) ){ - CHAR_talkToCli( meindex, -1, "对方交易後石币超过上限。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "交易後石币超过上限。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "瀵规柟浜ゆ槗寰岀煶甯佽秴杩囦笂闄愩", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "浜ゆ槗寰岀煶甯佽秴杩囦笂闄愩", CHAR_COLORYELLOW); return FALSE; } } else { if( MeSurplus < MeNeeds ){ - CHAR_talkToCli( meindex, -1, "交易後石币超过上限。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "对方交易後石币超过上限。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "浜ゆ槗寰岀煶甯佽秴杩囦笂闄愩", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "瀵规柟浜ゆ槗寰岀煶甯佽秴杩囦笂闄愩", CHAR_COLORYELLOW); return FALSE; } if( ToSurplus < ToNeeds ){ - CHAR_talkToCli( meindex, -1, "对方交易後石币超过上限。", CHAR_COLORYELLOW); - CHAR_talkToCli( toindex, -1, "交易後石币超过上限。", CHAR_COLORYELLOW); + CHAR_talkToCli( meindex, -1, "瀵规柟浜ゆ槗寰岀煶甯佽秴杩囦笂闄愩", CHAR_COLORYELLOW); + CHAR_talkToCli( toindex, -1, "浜ゆ槗寰岀煶甯佽秴杩囦笂闄愩", CHAR_COLORYELLOW); return FALSE; } } diff --git a/include/char.h b/include/char.h index 99cade2..a9c8db5 100644 --- a/include/char.h +++ b/include/char.h @@ -8,7 +8,7 @@ /*------------------------------------------------------------ - *白巧件玄及缙及烂聒 + *color of front *------------------------------------------------------------*/ typedef enum { @@ -24,14 +24,14 @@ typedef enum CHAR_COLORGREEN2, CHAR_COLORBLACK, }CHAR_COLOR; -/*====================平乓仿及综岳卞楮允月楮醒====================*/ +/*====================function of creat new character====================*/ void CHAR_createNewChar( int clifd, int dataplacenum,char* charname , int imgno,int faceimgno, int vital,int str,int tgh,int dex, int earth,int water,int fire,int wind, int hometown , char *cdkey ); -/*====================平乓仿及夫弘奶件====================*/ +/*====================character login====================*/ void CHAR_login( int clifd, char* data, int saveindex ); @@ -40,8 +40,8 @@ BOOL _CHAR_warpToSpecificPoint( char *file, int line, int charaindex, int fl, int x, int y); -/*====================平乓仿及本□皮====================*/ -/*====================平乓仿及夫弘失它玄====================*/ +/*====================character save====================*/ +/*====================character log out====================*/ BOOL CHAR_charSaveFromConnectAndChar( int fd,Char* ch, int unlock ); BOOL CHAR_charSaveFromConnect( int charaindex,int unlock ); #define CHAR_logout( charindex, save) _CHAR_logout( __FILE__, __LINE__, charindex, save) @@ -50,24 +50,24 @@ BOOL _CHAR_logout( char *file, int line, int charindex, BOOL save); /*====================watch event ====================*/ void CHAR_sendWatchEvent( int objindex, int chac, int* opt,int optlen,BOOL myflg ); -/*====================旦平伙====================*/ +/*====================skill====================*/ BOOL CHAR_Skillupsend(int charaindex ); void CHAR_SkillUp( int charaindex, int skillid ); void CHAR_useSkill( int charaindex, int dir ,int skindex ); typedef enum { - CHAR_WALKSUCCESSED, /* 岳 */ - CHAR_WALKSYSTEMERROR, /* 扑旦 丞巨仿□ 及index民尼永弁卞 + CHAR_WALKSUCCESSED, /* successed */ + CHAR_WALKSYSTEMERROR, /* system error's array of index check * 夫匀井井匀凶午井 */ - CHAR_WALKEXTEND, /* 区左□田□仄化汹仇丹午仄凶[NPC卞及心*/ - CHAR_WALKHITOBJECT, /* 窒井 卞癫匀化}汹仃卅井匀凶 */ - CHAR_WALKPREWALK, /* prewalk奶矛件玄匹汹仃卅井匀凶( 檗祭 ) */ - CHAR_WALKDIE, /* 韶氏匹中化汹仃卅中 */ - CHAR_WALK1357, /* 标户 轾卞汹仇丹午仄化汹仃卅井匀凶 */ + CHAR_WALKEXTEND, /* overflow of walking.just for npc*/ + CHAR_WALKHITOBJECT, /* cant walk cause hit object */ + CHAR_WALKPREWALK, /* cant walk cause prewalk event */ + CHAR_WALKDIE, /* cant walk cause death */ + CHAR_WALK1357, /* cant walk to 1357 (斜方向) */ }CHAR_WALKRET; -/*====================平乓仿及啖 卞楮允月楮醒====================*/ +/*====================function of character's walk====================*/ void CHAR_ctodirmode(char moji , int* dir , int* mode); INLINE void CHAR_getDXDY( int dir , int* dx, int* dy ); INLINE int CHAR_getDX( int dir ); @@ -273,27 +273,27 @@ typedef enum typedef enum { - CHAR_WINDOWTYPE_RETURNTOELDER=-1, /* 赢 尺 月它奴件玉它 */ - CHAR_WINDOWTYPE_RESURRECTION=-2, /* 汊唾允月它奴件玉它 */ + CHAR_WINDOWTYPE_RETURNTOELDER=-1, /* 返回长老窗口 */ + CHAR_WINDOWTYPE_RESURRECTION=-2, /* 复活窗口 */ - CHAR_WINDOWTYPE_SELECTBATTLE = 1, /* 月爵 毛蓟 允月它奴件玉它 */ - CHAR_WINDOWTYPE_SELECTDUEL = 2, /* 月DUEL毛蓟 允月它奴件玉它 */ - CHAR_WINDOWTYPE_SELECTTRADECARD = 3, /* 铜跟晶毛蓟 允月它奴件玉它 */ - CHAR_WINDOWTYPE_SELECTPARTY = 4, /* 由□ 奴毛蓟 允月它奴件玉它 */ - CHAR_WINDOWTYPE_SELECTBATTLEWATCH = 5, /* 棋爵毛蓟 允月它奴件玉它 */ - CHAR_WINDOWTYPE_MICMESSAGE = 6, /* MICNPC毛银匀化请月它奴件玉它 */ + CHAR_WINDOWTYPE_SELECTBATTLE = 1, /* 进入战斗选择窗口 */ + CHAR_WINDOWTYPE_SELECTDUEL = 2, /* 进入决斗选择窗口 DUEL = 决斗 */ + CHAR_WINDOWTYPE_SELECTTRADECARD = 3, /* 交换名片窗口 */ + CHAR_WINDOWTYPE_SELECTPARTY = 4, /* 选择团队窗口 */ + CHAR_WINDOWTYPE_SELECTBATTLEWATCH = 5, /* 选择观战窗口 */ + CHAR_WINDOWTYPE_MICMESSAGE = 6, /* 使用MICNPC提示窗口 */ // CoolFish: Trade 2001/4/18 CHAR_WINDOWTYPE_SELECTTRADE = 7, /* 交易 Window */ - CHAR_WINDOWTYPE_SELECTRENAMEITEM_PAGE1 = 10, /* 蟆毛 凳允月失奶 丞毛蓟 允月它奴件玉它 */ - CHAR_WINDOWTYPE_SELECTRENAMEITEM_PAGE2 = 11, /* 蟆毛 凳允月失奶 丞毛蓟 允月它奴件玉它 */ - CHAR_WINDOWTYPE_SELECTRENAMEITEM_PAGE3 = 12, /* 蟆毛 凳允月失奶 丞毛蓟 允月它奴件玉它 */ - CHAR_WINDOWTYPE_SELECTRENAMEITEM_PAGE4 = 13, /* 蟆毛 凳允月失奶 丞毛蓟 允月它奴件玉它 */ - CHAR_WINDOWTYPE_SELECTRENAMEITEM_RENAME = 14, /* 蟆毛 允月它奴件玉它 */ - CHAR_WINDOWTYPE_SELECTRENAMEITEM_RENAME_ATTENTION = 15, /* 蟆毛 允月它奴件玉它 */ + CHAR_WINDOWTYPE_SELECTRENAMEITEM_PAGE1 = 10, /* 选择更改名称道具 */ + CHAR_WINDOWTYPE_SELECTRENAMEITEM_PAGE2 = 11, /* 选择更改名称道具 */ + CHAR_WINDOWTYPE_SELECTRENAMEITEM_PAGE3 = 12, /* 选择更改名称道具 */ + CHAR_WINDOWTYPE_SELECTRENAMEITEM_PAGE4 = 13, /* 选择更改名称道具 */ + CHAR_WINDOWTYPE_SELECTRENAMEITEM_RENAME = 14, /* 输入名字窗口 */ + CHAR_WINDOWTYPE_SELECTRENAMEITEM_RENAME_ATTENTION = 15, /* 输入名字窗口 */ - CHAR_WINDOWTYPE_DENGON = 50, /* 鳗蜕 */ + CHAR_WINDOWTYPE_DENGON = 50, /* 留言板 */ CHAR_WINDOWTYPE_WINDOWMAN_START = 100, CHAR_WINDOWTYPE_WINDOWMAN_STARTMSG = CHAR_WINDOWTYPE_WINDOWMAN_START, @@ -683,10 +683,10 @@ void CHAR_PetAddVariableAi( int petindex, int iValue ); void CHAR_PartyUpdate( int charaindex, int senddata ); char *CHAR_getUseName( int charaindex ); char *CHAR_getUseID( int charaindex ); -EXTERN int EnemyMoveNum; /* 凛卞 嫖 仃月衬及醒 */ +EXTERN int EnemyMoveNum; /* 同时最大可移动敌人数量 */ -#define DB_DUELPOINT "db_duel" // 犯亘巨伙禾奶件玄犯□正矛□旦 -#define DB_ADDRESSBOOK "db_addressbook" // 失玉伊旦皮永弁犯□正矛□旦 +#define DB_DUELPOINT "db_duel" // DP点数 数据库 +#define DB_ADDRESSBOOK "db_addressbook" // 地址集数据库 BOOL CHAR_send_DpDBUpdate( int charaindex ); BOOL CHAR_send_DpDBUpdate_AddressBook( int charaindex, int mode ); @@ -722,15 +722,15 @@ int CHAR_CHECKJOINENEMY( int index); #define CHAR_EFFECT_SETTINGBUFFER 256 typedef struct tagCHAR_effectsetting { - int floor; // 白夫失 - int effect; // 梢请 寞 - int level; // 梢请及伊矛伙[ 蜇及雄今[ - int sendflg; // 憎巨白尼弁玄毛霜匀凶井升丹井[ - char month[CHAR_EFFECT_SETTINGBUFFER]; // 垫允月畸 - char day[CHAR_EFFECT_SETTINGBUFFER]; // 垫允月 - char hour[CHAR_EFFECT_SETTINGBUFFER]; // 垫允月凛棉 - char min[CHAR_EFFECT_SETTINGBUFFER]; // 垫允月坌 - char expire[CHAR_EFFECT_SETTINGBUFFER]; // 垫仄化中月赢今[( + int floor; // 楼层数 + int effect; // 演出号 + int level; // 演出级别,表现强度 + int sendflg; // 是否发送了effect + char month[CHAR_EFFECT_SETTINGBUFFER]; // 运行月份 + char day[CHAR_EFFECT_SETTINGBUFFER]; // 运行日期 + char hour[CHAR_EFFECT_SETTINGBUFFER]; // 运行小时 + char min[CHAR_EFFECT_SETTINGBUFFER]; // 运行分钟 + char expire[CHAR_EFFECT_SETTINGBUFFER]; // 共运行了多少秒 }CHAR_effectsetting; diff --git a/main.c b/main.c index 21c1a67..f63a1b7 100644 --- a/main.c +++ b/main.c @@ -24,7 +24,7 @@ #ifdef _ALLBLUES_LUA #include "mylua/ablua.h" #endif -#ifdef _CHATROOMPROTOCOL // (不可开) Syu ADD 聊天室频道 +#ifdef _CHATROOMPROTOCOL // (涓嶅彲寮) Syu ADD 鑱婂ぉ瀹ら閬 #include "chatroom.h" #endif @@ -44,7 +44,7 @@ extern char *DebugMainFunction; #endif #ifdef _ANGEL_SUMMON -#define ANGELTIMELIMIT 3*24*60*60 // 完成任务时限(秒) +#define ANGELTIMELIMIT 3*24*60*60 // 瀹屾垚浠诲姟鏃堕檺(绉) int AngelReady =0; int AngelTimelimit = ANGELTIMELIMIT; time_t AngelNextTime; @@ -61,7 +61,7 @@ int main( int argc , char** argv, char** env ) //if(attestation()<1) // { - // print("无法通过正版验证!具体请联系购买者!\n"); + // print("鏃犳硶閫氳繃姝g増楠岃瘉锛佸叿浣撹鑱旂郴璐拱鑰咃紒\n"); // exit(0); // } //if (strcmp(getlocaltime(), TimeLimitLocal)>0)exit(0); @@ -69,7 +69,7 @@ int main( int argc , char** argv, char** env ) system("ulimit -HSn 2048"); #endif - /* とりあえず時間を設定しておく */ + /* 銇ㄣ倞銇傘亪銇氭檪闁撱倰瑷畾銇椼仸銇娿亸 */ setNewTime(); /* if ( argc > 1 && 0==strcmp(argv[1],"-v")) @@ -83,7 +83,7 @@ int main( int argc , char** argv, char** env ) LoadAnnounce(); // Arminius 7.12 loginannounce - /* 初期設定 */ + /* 鍒濇湡瑷畾 */ memcpy( &tmOld, localtime( (time_t *)&NowTime.tv_sec), sizeof( tmNow ) ); sasql_init(); @@ -110,19 +110,19 @@ int main( int argc , char** argv, char** env ) void mainloop( void ) { - print("初始化NPC..."); + print("鍒濆鍖朜PC..."); NPC_generateLoop( 1 ); - print("完成\n"); - print("初始化signal1..."); + print("瀹屾垚\n"); + print("鍒濆鍖杝ignal1..."); signal(SIGUSR1,sigusr1); - print("完成\n"); - print("初始化signal2..."); + print("瀹屾垚\n"); + print("鍒濆鍖杝ignal2..."); signal(SIGUSR2,sigusr2); - print("完成\n"); + print("瀹屾垚\n"); #ifdef _MAP_WARPPOINT - print("初始化地图传送点..."); + print("鍒濆鍖栧湴鍥句紶閫佺偣..."); MAPPOINT_InitMapWarpPoint(); - print("完成\n"); + print("瀹屾垚\n"); if( !MAPPOINT_loadMapWarpPoint() ){ return; } @@ -131,51 +131,51 @@ void mainloop( void ) #ifdef _ASSESS_SYSEFFICACY Assess_InitSysEfficacy(); #endif -#ifdef _CHATROOMPROTOCOL // (不可开) Syu ADD 聊天室频道 - print("初始化聊天室频..."); +#ifdef _CHATROOMPROTOCOL // (涓嶅彲寮) Syu ADD 鑱婂ぉ瀹ら閬 + print("鍒濆鍖栬亰澶╁棰..."); InitChatRoom(); - print("完成\n"); + print("瀹屾垚\n"); #endif #ifdef _CHANNEL_MODIFY - print("初始化职业频道..."); - if(!InitOccChannel()) return; // 初始化职业频道 - print("完成\n"); + print("鍒濆鍖栬亴涓氶閬..."); + if(!InitOccChannel()) return; // 鍒濆鍖栬亴涓氶閬 + print("瀹屾垚\n"); #endif #ifdef _ANGEL_SUMMON - print("初始化精灵召奂时间..."); + print("鍒濆鍖栫簿鐏靛彫濂傛椂闂..."); AngelReady = 0; #ifdef _ANGEL_TIME AngelNextTime = time(NULL) + getAngelPlayerTime(); #else AngelNextTime = time(NULL) + 1*60; #endif - print("完成\n"); + print("瀹屾垚\n"); #endif #ifdef _JZ_NEWSCRIPT_LUA - print("初始化LNS引擎..."); + print("鍒濆鍖朙NS寮曟搸..."); NPC_Lua_Init(getLuaFile()); - print("完成\n"); + print("瀹屾垚\n"); #endif #ifdef _ITEM_LUA - print("初始化道具LUA引擎..."); + print("鍒濆鍖栭亾鍏稬UA寮曟搸..."); int itemluaflg=ITEM_LuaInit(getitemluafile()); if(itemluaflg==TRUE){ - print("完成\n"); + print("瀹屾垚\n"); }else{ - print("失败\n"); + print("澶辫触\n"); } #endif #ifdef _ALLBLUES_LUA - print("初始化LUA脚本..."); + print("鍒濆鍖朙UA鑴氭湰..."); LoadAllbluesLUA("data/ablua"); - print("完成\n"); + print("瀹屾垚\n"); #endif //if (strcmp(getlocaltime(), TimeLimitLocal)>0)exit(0); //#ifdef _ALLDOMAN -// print("初始化英雄表列..."); +// print("鍒濆鍖栬嫳闆勮〃鍒..."); // InitHeroList(); -// print("完成\n"); +// print("瀹屾垚\n"); //#endif int itime=0; @@ -202,7 +202,7 @@ Assess_SysEfficacy( 0 ); } setNewTime(); -#ifdef _ASSESS_SYSEFFICACY_SUB //显示LOOP时间 +#ifdef _ASSESS_SYSEFFICACY_SUB //鏄剧ずLOOP鏃堕棿 //Assess_SysEfficacy_sub( 0, 1); #ifdef _GMSV_DEBUG DebugMainFunction="netloop_faster"; @@ -291,8 +291,8 @@ static void sendmsg_toall( char *msg ) } static void ShutdownProc( void) { -#define SYSINFO_SHUTDOWN_MSG "%d 分钟后开始进行系统停机维护, 请大家提前下线以免数据丢失。" -#define SYSINFO_SHUTDOWN_MSG_COMP "服务器已关闭。" +#define SYSINFO_SHUTDOWN_MSG "%d 鍒嗛挓鍚庡紑濮嬭繘琛岀郴缁熷仠鏈虹淮鎶, 璇峰ぇ瀹舵彁鍓嶄笅绾夸互鍏嶆暟鎹涪澶便" +#define SYSINFO_SHUTDOWN_MSG_COMP "鏈嶅姟鍣ㄥ凡鍏抽棴銆" int diff,hun; diff = NowTime.tv_sec - SERVSTATE_getShutdown(); @@ -386,20 +386,20 @@ void AngelReadyProc() if( player_online <= 10 ) #endif { -// print("\n精灵召唤:线上人数不足=%d\n", player_online ); +// print("\n绮剧伒鍙敜:绾夸笂浜烘暟涓嶈冻=%d\n", player_online ); return; } AngelReady = 1; //AngelNextTime = min( (int)(10000/player_online), 100)*60 + (unsigned long)nowTime; #ifdef _ANGEL_TIME - AngelNextTime = min( (int)(getAngelPlayerTime()/player_online) + 1, 100)*60 + (unsigned long)nowTime;//精灵召唤时间为什么一直显示? + AngelNextTime = min( (int)(getAngelPlayerTime()/player_online) + 1, 100)*60 + (unsigned long)nowTime;//绮剧伒鍙敜鏃堕棿涓轰粈涔堜竴鐩存樉绀猴紵 #else AngelNextTime = min( (int)(5000/player_online), 100)*60 + (unsigned long)nowTime; #endif temptime = localtime( &AngelNextTime ); - sprintf( msg, "\r精灵召唤:产生一位缺额 下次产生时间=(%d/%d %d:%d) 目前人数=%d", + sprintf( msg, "\r绮剧伒鍙敜:浜х敓涓浣嶇己棰 涓嬫浜х敓鏃堕棿=(%d/%d %d:%d) 鐩墠浜烘暟=%d", temptime->tm_mon+1, temptime->tm_mday, temptime->tm_hour, temptime->tm_min, player_online ); print( msg); //LogAngel( msg);