lua 或者写源码~~
一下为源码
void ITEM_ADDMAXEXP( int charaindex, int toindex, int haveitemindex){char msg[256];int itemindex = CHAR_getItemIndex( charaindex, haveitemindex);int exp=atoi((char *) ITEM_getChar( itemindex, ITEM_ARGUMENT));if (exp<=0)return; int oldexp=CHAR_getInt(toindex, CHAR_EXP)+ exp; if( !ITEM_CHECKINDEX(itemindex) ) return;if( CHAR_CHECKINDEX( charaindex ) == FALSE )return ;if( CHAR_CHECKINDEX( toindex ) == FALSE )return ; if (oldexp > 1224160000) oldexp=1224160000; if (oldexp<0) oldexp=0; CHAR_setInt(toindex, CHAR_EXP, oldexp); CHAR_complianceParameter( toindex ); CHAR_send_P_StatusString( toindex, CHAR_P_STRING_EXP | CHAR_P_STRING_NEXTEXP); CHAR_DelItem( charaindex, haveitemindex); sprintf(msg, "您的EXP增加 %d 点。",exp); CHAR_talkToCli( toindex, -1, msg, CHAR_COLORYELLOW);return;}