diff --git a/石器时代8.5客户端最新源代码/.vs/石器源码/v15/.suo b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/.suo new file mode 100644 index 0000000..3be29dc Binary files /dev/null and b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/.suo differ diff --git a/石器时代8.5客户端最新源代码/.vs/石器源码/v15/Browse.VC.db b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/Browse.VC.db new file mode 100644 index 0000000..b6c580b Binary files /dev/null and b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/Browse.VC.db differ diff --git a/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/1fbe9dd3987c5341/T_MUSIC.ipch b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/1fbe9dd3987c5341/T_MUSIC.ipch new file mode 100644 index 0000000..5207ad0 Binary files /dev/null and b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/1fbe9dd3987c5341/T_MUSIC.ipch differ diff --git a/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/6e67d9f0b60bba22/WINLUA.ipch b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/6e67d9f0b60bba22/WINLUA.ipch new file mode 100644 index 0000000..b34ac62 Binary files /dev/null and b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/6e67d9f0b60bba22/WINLUA.ipch differ diff --git a/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/8c3854aaf78d576e/OFT.ipch b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/8c3854aaf78d576e/OFT.ipch new file mode 100644 index 0000000..7dd7e31 Binary files /dev/null and b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/8c3854aaf78d576e/OFT.ipch differ diff --git a/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/95e805a6e44dd367/SHOP.ipch b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/95e805a6e44dd367/SHOP.ipch new file mode 100644 index 0000000..781793b Binary files /dev/null and b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/95e805a6e44dd367/SHOP.ipch differ diff --git a/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/e4f5cf19cb9da592/CHARTITLE.ipch b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/e4f5cf19cb9da592/CHARTITLE.ipch new file mode 100644 index 0000000..e13d6c7 Binary files /dev/null and b/石器时代8.5客户端最新源代码/.vs/石器源码/v15/ipch/AutoPCH/e4f5cf19cb9da592/CHARTITLE.ipch differ diff --git a/石器时代8.5客户端最新源代码/.vs/石器源码/v16/.suo b/石器时代8.5客户端最新源代码/.vs/石器源码/v16/.suo new file mode 100644 index 0000000..ec0aca5 Binary files /dev/null and b/石器时代8.5客户端最新源代码/.vs/石器源码/v16/.suo differ diff --git a/石器时代8.5客户端最新源代码/.vs/石器源码/v16/Browse.VC.db b/石器时代8.5客户端最新源代码/.vs/石器源码/v16/Browse.VC.db new file mode 100644 index 0000000..dc64ad1 Binary files /dev/null and b/石器时代8.5客户端最新源代码/.vs/石器源码/v16/Browse.VC.db differ diff --git a/石器时代8.5客户端最新源代码/石器源码/CharTitle.cpp b/石器时代8.5客户端最新源代码/石器源码/CharTitle.cpp index b3fad18..c7075d8 100644 --- a/石器时代8.5客户端最新源代码/石器源码/CharTitle.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/CharTitle.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/font.h" #include "../systeminc/action.h" @@ -10,187 +10,187 @@ #ifdef _CHARTITLE_STR_ extern unsigned int sockfd; typedef struct{ - BOOL ʾ; - BOOL ȷʾ; - int ǰҳ; - int ȷͼ; - char [100][32]; - int ƺ[100]; - TITLE_STR title;//ǰƺ - TITLE_STR titledata[100];//ƺ - BOOL رմ; -}ƺݽṹ; + BOOL 窗口显示; + BOOL 确定窗口显示; + int 当前页数; + int 确定图档索引; + char 介绍[100][32]; + int 称号索引[100]; + TITLE_STR title;//当前称号 + TITLE_STR titledata[100];//称号数据 + BOOL 关闭窗口; +}称号数据结构; extern int play_se(int tone, int x, int y); -ƺݽṹ ƺ; +称号数据结构 称号; -void 򿪳ƺŴڳʼ() +void 打开称号窗口初始化() { - if(ƺ.ʾ){ - ƺ.ʾ=FALSE; - ƺ.ȷʾ=FALSE; + if(称号.窗口显示){ + 称号.窗口显示=FALSE; + 称号.确定窗口显示=FALSE; }else{ - ƺ.ǰҳ=0; - ƺ.ʾ=TRUE; - ƺ.ȷʾ=FALSE; + 称号.当前页数=0; + 称号.窗口显示=TRUE; + 称号.确定窗口显示=FALSE; } } extern void PutTitleText(int x,int y,char fontPrio,TITLE_STR str,BOOL hitFlag); -BOOL ȡƺȡ() +BOOL 获取称号取消窗口() { - return ƺ.رմ; + return 称号.关闭窗口; } -void óƺȡ() +void 设置称号取消窗口() { - if(ƺ.رմ) ƺ.رմ=FALSE; - else ƺ.رմ=TRUE; + if(称号.关闭窗口) 称号.关闭窗口=FALSE; + else 称号.关闭窗口=TRUE; } -BOOL ȡǰƺǷ() +BOOL 获取当前称号是否存在() { - return ƺ.title.flg; + return 称号.title.flg; } -void ƺչʾ() +void 称号展示() { - if(ƺ.title.flg){ - PutTitleText(78-ƺ.title.len/2,49,FONT_PRIO_FRONT,ƺ.title,0); + if(称号.title.flg){ + PutTitleText(78-称号.title.len/2,49,FONT_PRIO_FRONT,称号.title,0); } int bnt; bnt = StockFontBuffer(18,49,1,FONT_PAL_GREEN," ",2); if(mouse.onceState & MOUSE_LEFT_CRICK>0){ if(HitFontNo == bnt){ - if(ƺ.رմ) ƺ.رմ=FALSE; - else ƺ.رմ=TRUE; + if(称号.关闭窗口) 称号.关闭窗口=FALSE; + else 称号.关闭窗口=TRUE; play_se(203, 320, 240); } } } -BOOL ƺŴ(ACTION * pct) +BOOL 人物称号处理(ACTION * pct) { int x,y; x = pct->x; y = pct->y + 133; - int ť=-1; - int ť=-1; - int ťر=-1; - int ťID; - ť = StockDispBuffer( x -55, y + 7, DISP_PRIO_IME3, 55250, 2 ); - ť = StockDispBuffer( x -20, y + 7, DISP_PRIO_IME3, 55251, 2 ); - ťر = StockDispBuffer( x+40, y + 7, DISP_PRIO_IME3, 55252, 2 ); + int 按钮左=-1; + int 按钮右=-1; + int 按钮关闭=-1; + int 按钮ID; + 按钮左 = StockDispBuffer( x -55, y + 7, DISP_PRIO_IME3, 55250, 2 ); + 按钮右 = StockDispBuffer( x -20, y + 7, DISP_PRIO_IME3, 55251, 2 ); + 按钮关闭 = StockDispBuffer( x+40, y + 7, DISP_PRIO_IME3, 55252, 2 ); if( mouse.onceState & MOUSE_LEFT_CRICK ){ - if(!ƺ.ȷʾ){ - if(ť == HitDispNo){ - if(ƺ.ǰҳ){ - ƺ.ǰҳ--; + if(!称号.确定窗口显示){ + if(按钮左 == HitDispNo){ + if(称号.当前页数){ + 称号.当前页数--; } } - if(ť == HitDispNo){ - if(ƺ.ǰҳ!=19 && ƺ.titledata[(ƺ.ǰҳ+1)*5].flg) + if(按钮右 == HitDispNo){ + if(称号.当前页数!=19 && 称号.titledata[(称号.当前页数+1)*5].flg) { - ƺ.ǰҳ++; + 称号.当前页数++; } } - if(ťر == HitDispNo){ + if(按钮关闭 == HitDispNo){ DeathAction(pct); - ƺ.ʾ=FALSE; - ƺ.ȷʾ=FALSE; + 称号.窗口显示=FALSE; + 称号.确定窗口显示=FALSE; return TRUE; } } } int i=0; - int ƺͼ; + int 称号图档索引; for(;i<5;i++){ - ƺͼ = ƺ.ǰҳ*5+i; - if(ƺ.titledata[ƺͼ].flg) + 称号图档索引 = 称号.当前页数*5+i; + if(称号.titledata[称号图档索引].flg) { - PutTitleText(380-ƺ.titledata[ƺͼ].len/2,43+i*0x20,FONT_PRIO_FRONT,ƺ.titledata[ƺͼ],0); - char ƺ[128]; - sprintf_s(ƺ,"%03d",ƺͼ+1); - StockFontBufferExt(0x130,0x2D+i*0x20,1,FONT_PAL_GREEN,ƺ,0,19); - if(!ƺ.ȷʾ){ + PutTitleText(380-称号.titledata[称号图档索引].len/2,43+i*0x20,FONT_PRIO_FRONT,称号.titledata[称号图档索引],0); + char 称号序号[128]; + sprintf_s(称号序号,"%03d",称号图档索引+1); + StockFontBufferExt(0x130,0x2D+i*0x20,1,FONT_PAL_GREEN,称号序号,0,19); + if(!称号.确定窗口显示){ if(MakeHitBox(0x124,0x26+i*0x20,0x1B8,0x44+i*0x20,0x6D)==1){ - StockFontBuffer(0x123,0xD1,2,0,ƺ.[ƺͼ],0); + StockFontBuffer(0x123,0xD1,2,0,称号.介绍[称号图档索引],0); if(mouse.onceState & MOUSE_LEFT_CRICK>0){ - ƺ.ȷͼ=ƺ.ƺ[ ƺͼ]; - ƺ.ȷʾ=TRUE; + 称号.确定图档索引=称号.称号索引[ 称号图档索引]; + 称号.确定窗口显示=TRUE; } } } }else break; } - if(ƺ.ȷʾ){ - StockFontBuffer(0x123,0xD1,2,0,ƺ.[ƺ.ȷͼ],0); - StockFontBuffer(0x130,0x118,2,0,"ȷʹøóƺ",0); - StockDispBuffer(0x16D,0x130,0x6C,55253,1);//ȷڵͼ - ťID = StockDispBuffer(0x194,0x148,109,55252,2);//ر + if(称号.确定窗口显示){ + StockFontBuffer(0x123,0xD1,2,0,称号.介绍[称号.确定图档索引],0); + StockFontBuffer(0x130,0x118,2,0,"确定使用该称号吗?",0); + StockDispBuffer(0x16D,0x130,0x6C,55253,1);//确定窗口底图 + 按钮ID = StockDispBuffer(0x194,0x148,109,55252,2);//关闭 if(mouse.onceState & MOUSE_LEFT_CRICK>0){ - if(ťID == HitDispNo){ - ƺ.ȷʾ=FALSE; - ƺ.ȷͼ=0; + if(按钮ID == HitDispNo){ + 称号.确定窗口显示=FALSE; + 称号.确定图档索引=0; } } - ťID = StockDispBuffer(0x148,0x148,109,55254,2);//ȷ + 按钮ID = StockDispBuffer(0x148,0x148,109,55254,2);//确定 if(mouse.onceState & MOUSE_LEFT_CRICK>0){ - if(ťID == HitDispNo){ + if(按钮ID == HitDispNo){ int checksum=0; char buf[1024*4]; memset(buf,0,1024*4); - checksum += util_mkint(buf, ƺ.ȷͼ); + checksum += util_mkint(buf, 称号.确定图档索引); util_mkint(buf, checksum); util_SendMesg(sockfd, LSSPROTO_CHARTITLE_SEND, buf); - ƺ.ȷʾ=FALSE; - ƺ.ȷͼ=0; + 称号.确定窗口显示=FALSE; + 称号.确定图档索引=0; } } } return FALSE; } extern void getCharTitleSplit( char *str,TITLE_STR* title); -void ƺݸ(char *) +void 人物称号数据更新(char *数据) { - char [126],ͼ[1024],ͼ[1024],ݽ[4000],ʱ[126]; - memset(,0,126); - memset(ͼ,0,1024); - memset(ͼ,0,1024); - memset(ݽ,0,4000); - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",1,,126); - getStringFromIndexWithDelim_body((char *) ,(char *)"|",1,ʱ,126); - int titleindex = atoi(ʱ); + char 基础内容[126],图档内容[1024],图档索引[1024],内容介绍[4000],临时[126]; + memset(基础内容,0,126); + memset(图档内容,0,1024); + memset(图档索引,0,1024); + memset(内容介绍,0,4000); + getStringFromIndexWithDelim_body((char *) 数据,(char *)"#@",1,基础内容,126); + getStringFromIndexWithDelim_body((char *) 基础内容,(char *)"|",1,临时,126); + int titleindex = atoi(临时); extern char* FreeGetTitleStr(int id); - if(titleindex>0) getCharTitleSplit(FreeGetTitleStr(titleindex),&ƺ.title); - else memset(&ƺ.title,0,sizeof(TITLE_STR)); - getStringFromIndexWithDelim_body((char *) ,(char *)"|",2,ʱ,126); - int = atoi(ʱ); - if(!=0){ - memset(&ƺ.titledata,0,sizeof(ƺ.titledata[0])*100); - memset(&ƺ.ƺ,0,sizeof(int)*100); - memset(&ƺ.,0,32*100); - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",2,ͼ,1024); - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",3,ݽ,4000); - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",4,ͼ,1024); + if(titleindex>0) getCharTitleSplit(FreeGetTitleStr(titleindex),&称号.title); + else memset(&称号.title,0,sizeof(TITLE_STR)); + getStringFromIndexWithDelim_body((char *) 基础内容,(char *)"|",2,临时,126); + int 数量 = atoi(临时); + if(数量!=0){ + memset(&称号.titledata,0,sizeof(称号.titledata[0])*100); + memset(&称号.称号索引,0,sizeof(int)*100); + memset(&称号.介绍,0,32*100); + getStringFromIndexWithDelim_body((char *) 数据,(char *)"#@",2,图档内容,1024); + getStringFromIndexWithDelim_body((char *) 数据,(char *)"#@",3,内容介绍,4000); + getStringFromIndexWithDelim_body((char *) 数据,(char *)"#@",4,图档索引,1024); int i=0; extern char* FreeGetTitleStr(int id); - for(i;i<;i++){ - getStringFromIndexWithDelim_body((char *)ͼ,(char *)"|",i+1,ʱ,126); - titleindex = atoi(ʱ); - getCharTitleSplit(FreeGetTitleStr(titleindex),&ƺ.titledata[i]); - getStringFromIndexWithDelim_body((char *)ͼ,(char *)"|",i+1,ʱ,126); - ƺ.ƺ[i]=atoi(ʱ); - getStringFromIndexWithDelim_body((char *)ݽ,(char *)"|",i+1,ʱ,126); - sprintf_s(ƺ.[i],32,"%s",ʱ); + for(i;i<数量;i++){ + getStringFromIndexWithDelim_body((char *)图档内容,(char *)"|",i+1,临时,126); + titleindex = atoi(临时); + getCharTitleSplit(FreeGetTitleStr(titleindex),&称号.titledata[i]); + getStringFromIndexWithDelim_body((char *)图档索引,(char *)"|",i+1,临时,126); + 称号.称号索引[i]=atoi(临时); + getStringFromIndexWithDelim_body((char *)内容介绍,(char *)"|",i+1,临时,126); + sprintf_s(称号.介绍[i],32,"%s",临时); } } } -void ʼƺŽṹ() +void 初始化称号结构() { - memset(&ƺ,0,sizeof(ƺݽṹ)); + memset(&称号,0,sizeof(称号数据结构)); } #endif @@ -199,204 +199,204 @@ void #ifdef _CHARTITLE_ extern unsigned int sockfd; typedef struct{ - int ƺŴڽṹ; - ACTION *ƺŽṹ[5]; - ACTION * ǰƺŽṹ; - int ǰƺͼ; - BOOL ʾ; - int ͼ[100]; - int ƺ[100]; - char [100][32]; - int ǰҳ; - BOOL ȷʾ; - int ȷͼ; -}ƺݽṹ; + int 称号窗口结构; + ACTION *称号结构[5]; + ACTION * 当前称号结构; + int 当前称号图档; + BOOL 窗口显示; + int 图档[100]; + int 称号索引[100]; + char 介绍[100][32]; + int 当前页数; + BOOL 确定窗口显示; + int 确定图档索引; +}称号数据结构; -ƺݽṹ ƺ; +称号数据结构 称号; -void ƺչʾ() +void 结束称号展示动画() { int i=0; for(i;i<5;i++){ - if(ƺ.ƺŽṹ[i]){ - if(ƺ.ƺŽṹ[i]) DeathAction(ƺ.ƺŽṹ[i]); - ƺ.ƺŽṹ[i]=0; + if(称号.称号结构[i]){ + if(称号.称号结构[i]) DeathAction(称号.称号结构[i]); + 称号.称号结构[i]=0; } } } -void 򿪳ƺŴڳʼ() +void 打开称号窗口初始化() { - if(ƺ.ʾ){ - ƺչʾ(); - ƺ.ʾ=FALSE; - ƺ.ȷʾ=FALSE; + if(称号.窗口显示){ + 结束称号展示动画(); + 称号.窗口显示=FALSE; + 称号.确定窗口显示=FALSE; }else{ - ƺ.ǰҳ=0; - ƺ.ʾ=TRUE; - ƺ.ȷʾ=FALSE; + 称号.当前页数=0; + 称号.窗口显示=TRUE; + 称号.确定窗口显示=FALSE; } } -void ƺչʾ() +void 称号展示() { - if(ƺ.ǰƺͼ) - if(!ƺ.ǰƺŽṹ){ - if(ƺ.ǰƺͼ < 100000){ - ƺ.ǰƺŽṹ = 0; - StockDispBuffer(0x7F,0x40,109,ƺ.ǰƺͼ,0); + if(称号.当前称号图档) + if(!称号.当前称号结构){ + if(称号.当前称号图档 < 100000){ + 称号.当前称号结构 = 0; + StockDispBuffer(0x7F,0x40,109,称号.当前称号图档,0); }else{ - ƺ.ǰƺŽṹ = MakeAnimDisp(0x7F,0x59,ƺ.ǰƺͼ,0); + 称号.当前称号结构 = MakeAnimDisp(0x7F,0x59,称号.当前称号图档,0); } - }else if(*(int *)(ƺ.ǰƺŽṹ+0x140)!= ƺ.ǰƺͼ){ - DeathAction(ƺ.ǰƺŽṹ); - if(ƺ.ǰƺͼ < 100000){ - ƺ.ǰƺŽṹ = 0; - StockDispBuffer(0x7F,0x40,109,ƺ.ǰƺͼ,0); + }else if(*(int *)(称号.当前称号结构+0x140)!= 称号.当前称号图档){ + DeathAction(称号.当前称号结构); + if(称号.当前称号图档 < 100000){ + 称号.当前称号结构 = 0; + StockDispBuffer(0x7F,0x40,109,称号.当前称号图档,0); }else{ - ƺ.ǰƺŽṹ = MakeAnimDisp(0x7F,0x59,ƺ.ǰƺͼ,0); + 称号.当前称号结构 = MakeAnimDisp(0x7F,0x59,称号.当前称号图档,0); } } } -BOOL ƺŴ(ACTION * pct) +BOOL 人物称号处理(ACTION * pct) { int x,y; x = pct->x; y = pct->y + 133; - int ť=-1; - int ť=-1; - int ťر=-1; - int ťID; - ť = StockDispBuffer( x -55, y + 7, DISP_PRIO_IME3, 55250, 2 ); - ť = StockDispBuffer( x -20, y + 7, DISP_PRIO_IME3, 55251, 2 ); - ťر = StockDispBuffer( x+40, y + 7, DISP_PRIO_IME3, 55252, 2 ); + int 按钮左=-1; + int 按钮右=-1; + int 按钮关闭=-1; + int 按钮ID; + 按钮左 = StockDispBuffer( x -55, y + 7, DISP_PRIO_IME3, 55250, 2 ); + 按钮右 = StockDispBuffer( x -20, y + 7, DISP_PRIO_IME3, 55251, 2 ); + 按钮关闭 = StockDispBuffer( x+40, y + 7, DISP_PRIO_IME3, 55252, 2 ); if( mouse.onceState & MOUSE_LEFT_CRICK ){ - if(!ƺ.ȷʾ){ - if(ť == HitDispNo){ - if(ƺ.ǰҳ){ - ƺ.ǰҳ--; - ƺչʾ(); + if(!称号.确定窗口显示){ + if(按钮左 == HitDispNo){ + if(称号.当前页数){ + 称号.当前页数--; + 结束称号展示动画(); } } - if(ť == HitDispNo){ - if(ƺ.ǰҳ!=19 && ƺ.ͼ[(ƺ.ǰҳ+1)*5]){ - ƺ.ǰҳ++; - ƺչʾ(); + if(按钮右 == HitDispNo){ + if(称号.当前页数!=19 && 称号.图档[(称号.当前页数+1)*5]){ + 称号.当前页数++; + 结束称号展示动画(); } } - if(ťر == HitDispNo){ + if(按钮关闭 == HitDispNo){ DeathAction(pct); - ƺչʾ(); - ƺ.ʾ=FALSE; - ƺ.ȷʾ=FALSE; + 结束称号展示动画(); + 称号.窗口显示=FALSE; + 称号.确定窗口显示=FALSE; return TRUE; } } } int i=0; - int ƺͼ; + int 称号图档索引; for(;i<5;i++){ - ƺͼ = ƺ.ǰҳ*5+i; - if(ƺ.ͼ[ƺͼ]){ - if(!ƺ.ƺŽṹ[i]){ - if(ƺ.ͼ[ƺͼ] < 100000){ - ƺ.ƺŽṹ[i] = 0; - StockDispBuffer(0x16D+20,0x35+i*0x20,109,ƺ.ͼ[ƺͼ],0); + 称号图档索引 = 称号.当前页数*5+i; + if(称号.图档[称号图档索引]){ + if(!称号.称号结构[i]){ + if(称号.图档[称号图档索引] < 100000){ + 称号.称号结构[i] = 0; + StockDispBuffer(0x16D+20,0x35+i*0x20,109,称号.图档[称号图档索引],0); }else{ - ƺ.ƺŽṹ[i] = MakeAnimDisp(0x16D+20,0x35+i*0x20,ƺ.ͼ[ƺͼ],0); + 称号.称号结构[i] = MakeAnimDisp(0x16D+20,0x35+i*0x20,称号.图档[称号图档索引],0); } - }else if(ƺ.ǰƺŽṹ==0) StockDispBuffer(0x16D,0x35+i*0x20,109,ƺ.ͼ[ƺͼ],0); - char ƺ[128]; - sprintf_s(ƺ,"%03d",ƺͼ+1); + }else if(称号.当前称号结构==0) StockDispBuffer(0x16D,0x35+i*0x20,109,称号.图档[称号图档索引],0); + char 称号序号[128]; + sprintf_s(称号序号,"%03d",称号图档索引+1); - StockFontBufferExt(0x130,0x2D+i*0x20,1,FONT_PAL_GREEN,ƺ,0,16); - if(!ƺ.ȷʾ){ + StockFontBufferExt(0x130,0x2D+i*0x20,1,FONT_PAL_GREEN,称号序号,0,16); + if(!称号.确定窗口显示){ if(MakeHitBox(0x124,0x26+i*0x20,0x1B8,0x44+i*0x20,0x6D)==1){ - StockFontBuffer(0x123,0xD1,2,0,ƺ.[ƺͼ],0); + StockFontBuffer(0x123,0xD1,2,0,称号.介绍[称号图档索引],0); if(mouse.onceState & MOUSE_LEFT_CRICK>0){ - ƺ.ȷͼ=ƺ.ƺ[ ƺͼ]; - ƺ.ȷʾ=TRUE; + 称号.确定图档索引=称号.称号索引[ 称号图档索引]; + 称号.确定窗口显示=TRUE; } } } }else break; } - if(ƺ.ȷʾ){ - StockFontBuffer(0x123,0xD1,2,0,ƺ.[ƺ.ȷͼ],0); - StockFontBuffer(0x130,0x118,2,0,"ȷʹøóƺ",0); - StockDispBuffer(0x16D,0x130,0x6C,55253,1);//ȷڵͼ - ťID = StockDispBuffer(0x194,0x148,109,55252,2);//ر + if(称号.确定窗口显示){ + StockFontBuffer(0x123,0xD1,2,0,称号.介绍[称号.确定图档索引],0); + StockFontBuffer(0x130,0x118,2,0,"确定使用该称号吗?",0); + StockDispBuffer(0x16D,0x130,0x6C,55253,1);//确定窗口底图 + 按钮ID = StockDispBuffer(0x194,0x148,109,55252,2);//关闭 if(mouse.onceState & MOUSE_LEFT_CRICK>0){ - if(ťID == HitDispNo){ - ƺ.ȷʾ=FALSE; - ƺ.ȷͼ=0; + if(按钮ID == HitDispNo){ + 称号.确定窗口显示=FALSE; + 称号.确定图档索引=0; } } - ťID = StockDispBuffer(0x148,0x148,109,55254,2);//ȷ + 按钮ID = StockDispBuffer(0x148,0x148,109,55254,2);//确定 if(mouse.onceState & MOUSE_LEFT_CRICK>0){ - if(ťID == HitDispNo){ + if(按钮ID == HitDispNo){ int checksum=0; char buf[1024*4]; memset(buf,0,1024*4); - checksum += util_mkint(buf, ƺ.ȷͼ); + checksum += util_mkint(buf, 称号.确定图档索引); util_mkint(buf, checksum); util_SendMesg(sockfd, LSSPROTO_CHARTITLE_SEND, buf); - ƺ.ȷʾ=FALSE; - ƺ.ȷͼ=0; + 称号.确定窗口显示=FALSE; + 称号.确定图档索引=0; } } } return FALSE; } -void ڽ(ACTION* ID)//ʾ +void 窗口结束处理(ACTION* ID)//结束显示动画 { - ƺ.ʾ=FALSE; - ƺչʾ(); - if(ƺ.ǰƺŽṹ) DeathAction(ƺ.ǰƺŽṹ); - ƺ.ǰƺŽṹ=0; + 称号.窗口显示=FALSE; + 结束称号展示动画(); + if(称号.当前称号结构) DeathAction(称号.当前称号结构); + 称号.当前称号结构=0; DeathAction(ID); } -void ƺݸ(char *) +void 人物称号数据更新(char *数据) { - char [126],ͼ[1024],ͼ[1024],ݽ[4000],ʱ[126]; - memset(,0,126); - memset(ͼ,0,1024); - memset(ͼ,0,1024); - memset(ݽ,0,4000); - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",1,,126); - getStringFromIndexWithDelim_body((char *) ,(char *)"|",1,ʱ,126); - int ֵ = atoi(ʱ); - if(ֵ) ƺ.ǰƺͼ=ֵ; - getStringFromIndexWithDelim_body((char *) ,(char *)"|",2,ʱ,126); - int = atoi(ʱ); - if(!=0){ - memset(&ƺ.ͼ,0,sizeof(int)*100); - memset(&ƺ.ƺ,0,sizeof(int)*100); - memset(&ƺ.,0,32*100); - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",2,ͼ,1024); - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",3,ݽ,4000); - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",4,ͼ,1024); + char 基础内容[126],图档内容[1024],图档索引[1024],内容介绍[4000],临时[126]; + memset(基础内容,0,126); + memset(图档内容,0,1024); + memset(图档索引,0,1024); + memset(内容介绍,0,4000); + getStringFromIndexWithDelim_body((char *) 数据,(char *)"#@",1,基础内容,126); + getStringFromIndexWithDelim_body((char *) 基础内容,(char *)"|",1,临时,126); + int 值 = atoi(临时); + if(值) 称号.当前称号图档=值; + getStringFromIndexWithDelim_body((char *) 基础内容,(char *)"|",2,临时,126); + int 数量 = atoi(临时); + if(数量!=0){ + memset(&称号.图档,0,sizeof(int)*100); + memset(&称号.称号索引,0,sizeof(int)*100); + memset(&称号.介绍,0,32*100); + getStringFromIndexWithDelim_body((char *) 数据,(char *)"#@",2,图档内容,1024); + getStringFromIndexWithDelim_body((char *) 数据,(char *)"#@",3,内容介绍,4000); + getStringFromIndexWithDelim_body((char *) 数据,(char *)"#@",4,图档索引,1024); int i=0; - for(i;i<;i++){ - getStringFromIndexWithDelim_body((char *)ͼ,(char *)"|",i+1,ʱ,126); - ƺ.ͼ[i]=atoi(ʱ); - getStringFromIndexWithDelim_body((char *)ͼ,(char *)"|",i+1,ʱ,126); - ƺ.ƺ[i]=atoi(ʱ); - getStringFromIndexWithDelim_body((char *)ݽ,(char *)"|",i+1,ʱ,126); - sprintf_s(ƺ.[i],32,"%s",ʱ); + for(i;i<数量;i++){ + getStringFromIndexWithDelim_body((char *)图档内容,(char *)"|",i+1,临时,126); + 称号.图档[i]=atoi(临时); + getStringFromIndexWithDelim_body((char *)图档索引,(char *)"|",i+1,临时,126); + 称号.称号索引[i]=atoi(临时); + getStringFromIndexWithDelim_body((char *)内容介绍,(char *)"|",i+1,临时,126); + sprintf_s(称号.介绍[i],32,"%s",临时); } } } -void ʼƺŽṹ() +void 初始化称号结构() { - memset(&ƺ,0,sizeof(ƺݽṹ)); + memset(&称号,0,sizeof(称号数据结构)); } #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/CharTitle.h b/石器时代8.5客户端最新源代码/石器源码/CharTitle.h index ebdc319..45f5845 100644 --- a/石器时代8.5客户端最新源代码/石器源码/CharTitle.h +++ b/石器时代8.5客户端最新源代码/石器源码/CharTitle.h @@ -1,4 +1,4 @@ -void ƺųʼ(); -void ƺݸ(char *); +void 人物称号初始化(); +void 人物称号数据更新(char *数据); diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/CharSignDay.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/CharSignDay.obj index aaf287e..2a036c1 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/CharSignDay.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/CharSignDay.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/CharTitle.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/CharTitle.obj index 05258b8..c7c2890 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/CharTitle.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/CharTitle.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ItemsMall.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ItemsMall.obj index 944207d..14a418c 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ItemsMall.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ItemsMall.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/Ping.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/Ping.obj index 5757249..2395668 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/Ping.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/Ping.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/PtternSeparationBin.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/PtternSeparationBin.obj index 40dd230..ed4c6fb 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/PtternSeparationBin.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/PtternSeparationBin.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/SDLDraw.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/SDLDraw.obj index 4236722..e2716a1 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/SDLDraw.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/SDLDraw.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ServerList.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ServerList.obj index 1272d8c..1853ff3 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ServerList.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ServerList.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/Turntable.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/Turntable.obj index b85cef9..b95c559 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/Turntable.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/Turntable.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/action.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/action.obj index ec67d82..80c477a 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/action.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/action.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ai_setting.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ai_setting.obj index 109f7e6..baa0200 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ai_setting.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ai_setting.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/autil.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/autil.obj index bcb75d2..14fd1a4 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/autil.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/autil.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battlemap.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battlemap.obj index 4698b7a..a2c382d 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battlemap.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battlemap.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battlemenu.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battlemenu.obj index f300b6f..4400a32 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battlemenu.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battlemenu.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battleproc.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battleproc.obj index c227229..c00beb6 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battleproc.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/battleproc.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/character.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/character.obj index 5d35a65..75b0ca2 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/character.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/character.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/chat.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/chat.obj index 6e559d4..0b7e92e 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/chat.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/chat.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/common.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/common.obj index e875659..7e7c6a0 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/common.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/common.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/creatwth.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/creatwth.obj index 05f42cf..867ff8f 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/creatwth.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/creatwth.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/data.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/data.obj index 1c21e40..bdbbcbe 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/data.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/data.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/descrypt.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/descrypt.obj index f393407..91c7985 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/descrypt.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/descrypt.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/detours.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/detours.obj index 7cb7bdf..4fd9741 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/detours.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/detours.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/directdraw.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/directdraw.obj index abab3cd..46ea29d 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/directdraw.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/directdraw.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/disasm.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/disasm.obj index f00b7d9..bc6ef78 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/disasm.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/disasm.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/field.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/field.obj index e6b50ed..3c96130 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/field.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/field.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/font.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/font.obj index 3609be4..0c819c1 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/font.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/font.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/gamemain.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/gamemain.obj index 3a8755a..2dcc579 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/gamemain.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/gamemain.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/gemini.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/gemini.obj index c3dee82..140b417 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/gemini.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/gemini.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/getip.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/getip.obj index fd253d1..eeea21c 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/getip.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/getip.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/handletime.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/handletime.obj index 39b4968..b4b5f02 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/handletime.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/handletime.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/help.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/help.obj index e3d0133..ee08011 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/help.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/help.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/image.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/image.obj index 7fca334..7eb1e49 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/image.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/image.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ime.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ime.obj index 3e2e216..d36e2a4 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ime.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ime.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/init.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/init.obj index 00dfd7f..ad6f9e3 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/init.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/init.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/loadrealbin.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/loadrealbin.obj index 25f268b..87a244d 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/loadrealbin.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/loadrealbin.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/loadsprbin.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/loadsprbin.obj index 8027fe9..624ed5a 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/loadsprbin.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/loadsprbin.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/login.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/login.obj index da82f19..910fe58 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/login.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/login.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto.obj index 32f8cb4..f06f6bd 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto_cli.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto_cli.obj index 26ca781..ef10104 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto_cli.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto_cli.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto_util.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto_util.obj index 718f1cb..f418965 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto_util.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/lssproto_util.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/magicitem.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/magicitem.obj index d6ad91f..99774be 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/magicitem.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/magicitem.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/main.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/main.obj index 6cc6f73..8a31fe7 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/main.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/main.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/map.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/map.obj index 7e195d4..e92ab38 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/map.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/map.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/math2.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/math2.obj index 43a8bfa..9a0f411 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/math2.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/math2.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/md5_encrypt.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/md5_encrypt.obj index 25fcd6c..d4b600c 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/md5_encrypt.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/md5_encrypt.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/menu.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/menu.obj index 672a29a..b181b4e 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/menu.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/menu.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/menu2.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/menu2.obj index 788ce22..24a25aa 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/menu2.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/menu2.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/message.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/message.obj index 62be416..900bcd2 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/message.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/message.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/modules.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/modules.obj index 66affe9..b689d49 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/modules.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/modules.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/mouse.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/mouse.obj index 2f0dc0b..4b9d28e 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/mouse.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/mouse.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/netmain.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/netmain.obj index 40fb9db..ac4e31b 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/netmain.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/netmain.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/netproc.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/netproc.obj index d3115f4..92868f1 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/netproc.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/netproc.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/oft.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/oft.obj index f076178..22e4000 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/oft.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/oft.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ohta.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ohta.obj index 48296aa..0f4de81 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ohta.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ohta.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ohta_proc.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ohta_proc.obj index 6eaa12b..f3c291f 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ohta_proc.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/ohta_proc.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/onlinegm.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/onlinegm.obj index c1ee214..7569f65 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/onlinegm.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/onlinegm.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pat_dat.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pat_dat.obj index c59ed37..8bff0ba 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pat_dat.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pat_dat.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pattern.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pattern.obj index e8f3e52..ce7b544 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pattern.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pattern.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pc.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pc.obj index b4d0546..b2328de 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pc.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/pc.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/phonemsg.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/phonemsg.obj index c691908..bc69e1b 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/phonemsg.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/phonemsg.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/process.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/process.obj index 930d72e..b4ebb6c 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/process.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/process.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/produce.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/produce.obj index 351c884..861c9d8 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/produce.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/produce.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/protocol.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/protocol.obj index 948e1e5..85f772f 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/protocol.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/protocol.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/radar.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/radar.obj index d9e3de3..006e368 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/radar.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/radar.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/readip.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/readip.obj index 792161e..91d502c 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/readip.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/readip.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/redMemoy.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/redMemoy.obj index 6e4df36..d219eda 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/redMemoy.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/redMemoy.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/reproc.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/reproc.obj index 7c92115..320f17f 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/reproc.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/reproc.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sa.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sa.obj index 70b2a2d..267b2f8 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sa.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sa.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/savedata.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/savedata.obj index 2f4af9e..6625f87 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/savedata.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/savedata.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/skyisland.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/skyisland.obj index e71b4ca..321e029 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/skyisland.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/skyisland.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sprdisp.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sprdisp.obj index 8cc6cd4..c3ca508 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sprdisp.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sprdisp.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sprmgr.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sprmgr.obj index 9b6c7a5..aa51976 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sprmgr.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sprmgr.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sys2.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sys2.obj index 2191d49..d6ff186 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sys2.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/sys2.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/t_music.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/t_music.obj index 4b1ba96..ff7f3d7 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/t_music.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/t_music.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/talkwindow.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/talkwindow.obj index d971002..72ce83a 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/talkwindow.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/talkwindow.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tea.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tea.obj index a86ef0a..703df52 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tea.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tea.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tekecess.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tekecess.obj index c96d993..7b0f9c3 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tekecess.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tekecess.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/test.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/test.obj index 0196d2b..613b895 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/test.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/test.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/testview.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/testview.obj index 8eb05ae..94daa14 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/testview.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/testview.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tool.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tool.obj index f8cdd8f..7cdb0ee 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tool.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/tool.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/trade.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/trade.obj index 266b9d1..725f040 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/trade.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/trade.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/unpack.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/unpack.obj index 6aae629..5d3c997 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/unpack.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/unpack.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/vc141.idb b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/vc141.idb new file mode 100644 index 0000000..08ead44 Binary files /dev/null and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/vc141.idb differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/vc141.pdb b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/vc141.pdb new file mode 100644 index 0000000..5dae0e6 Binary files /dev/null and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/vc141.pdb differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/win.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/win.obj index 31d0e1e..78a1d3b 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/win.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/win.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/work.obj b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/work.obj index 339f2ec..908a7b1 100644 Binary files a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/work.obj and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/work.obj differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.log b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.log index 380f973..00a2c16 100644 --- a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.log +++ b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.log @@ -1,24 +1,51 @@ -生成启动时间为 2016/9/26 星期一 下午 5:38:39。 - 1>项目“J:\Dev\石器时代1\轻石器\CLIENT\石器源码\石器源码.vcxproj”在节点 2 上(build 个目标)。 - 项目文件包含 ToolsVersion="12.0"。此工具集可能未知或缺失(您可以通过安装相应版本的 MSBuild 来解决该问题),或者该生成因策略原因已被强制更改为特殊 ToolsVersion。将此项目视作具有 ToolsVersion="4.0"。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkId=291333。 - 1>InitializeBuildStatus: - 正在创建“VER25_DEBUG\石器源码.unsuccessfulbuild”,因为已指定“AlwaysCreate”。 - ClCompile: - 所有输出均为最新。 - ResourceCompile: - 所有输出均为最新。 - ManifestResourceCompile: - 所有输出均为最新。 - 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(F:\石器时代\7-sa\sa25.exe) 与 Linker 的 OutputFile 属性值(F:\7-sa\sa25.exe)不匹配。这可能导致项目生成不正确。若要更正此问题,请确保 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值与 %(Link.OutputFile) 中指定的值匹配。 - Link: - 所有输出均为最新。 - Manifest: - 所有输出均为最新。 - FinalizeBuildStatus: - 正在删除文件“VER25_DEBUG\石器源码.unsuccessfulbuild”。 - 正在对“VER25_DEBUG\石器源码.lastbuildstate”执行 Touch 任务。 - 1>已完成生成项目“J:\Dev\石器时代1\轻石器\CLIENT\石器源码\石器源码.vcxproj”(build 个目标)的操作。 - -生成成功。 - -已用时间 00:00:00.08 +C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(377,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory. + CharTitle.cpp + winlua.cpp +c:\users\owner\documents\github\stoneage\石器时代8.5客户端最新源代码\石器源码\mylua\winlua.cpp(193): error C3861: 'TEA解密': identifier not found + autil.cpp + oft.cpp + pat_dat.cpp + ohta.cpp + ohta_proc.cpp + ai_setting.cpp + battlemap.cpp + battlemenu.cpp + battleproc.cpp + character.cpp + CharSignDay.cpp + chat.cpp + directdraw.cpp + field.cpp + font.cpp + gamemain.cpp + gemini.cpp + help.cpp + Generating Code... + Compiling... + ime.cpp + login.cpp + lssproto_cli.cpp + magicitem.cpp + main.cpp + map.cpp + math2.cpp + menu.cpp + menu2.cpp + mouse.cpp + netproc.cpp + onlinegm.cpp + pattern.cpp + pc.cpp + process.cpp + produce.cpp + savedata.cpp + SDLDraw.cpp + shop.cpp +c:\users\owner\documents\github\stoneage\石器时代8.5客户端最新源代码\石器源码\system\shop.cpp(738): error C3861: 'TEA解密': identifier not found +c:\users\owner\documents\github\stoneage\石器时代8.5客户端最新源代码\石器源码\system\shop.cpp(756): error C3861: 'TEA加密': identifier not found + testview.cpp + Generating Code... + Compiling... + Turntable.cpp + t_music.cpp + Generating Code... diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/CL.command.1.tlog b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/CL.command.1.tlog new file mode 100644 index 0000000..1d033a8 Binary files /dev/null and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/CL.command.1.tlog differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/CL.read.1.tlog b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/CL.read.1.tlog new file mode 100644 index 0000000..0acf20b Binary files /dev/null and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/CL.read.1.tlog differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/CL.write.1.tlog b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/CL.write.1.tlog new file mode 100644 index 0000000..540f64e Binary files /dev/null and b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/CL.write.1.tlog differ diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/unsuccessfulbuild b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/unsuccessfulbuild new file mode 100644 index 0000000..e69de29 diff --git a/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/石器源码.lastbuildstate b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/石器源码.lastbuildstate new file mode 100644 index 0000000..a51ca6c --- /dev/null +++ b/石器时代8.5客户端最新源代码/石器源码/VER25_DEBUG/石器源码.tlog/石器源码.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0 +VER25_DEBUG|Win32|C:\Users\OWNER\Documents\GitHub\stoneage\石器时代8.5客户端最新源代码\| diff --git a/石器时代8.5客户端最新源代码/石器源码/mylua/ServerList.cpp b/石器时代8.5客户端最新源代码/石器源码/mylua/ServerList.cpp index 9af0a80..8a038d6 100644 --- a/石器时代8.5客户端最新源代码/石器源码/mylua/ServerList.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/mylua/ServerList.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/netmain.h" #include "winlua.h" diff --git a/石器时代8.5客户端最新源代码/石器源码/mylua/data.cpp b/石器时代8.5客户端最新源代码/石器源码/mylua/data.cpp index e4cc2da..343506e 100644 --- a/石器时代8.5客户端最新源代码/石器源码/mylua/data.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/mylua/data.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/pc.h" #include "winlua.h" @@ -13,9 +13,9 @@ static int getPetData(lua_State *L) size_t l; const char *attribute=luaL_checklstring(L, 2, &l); - if(strcmp(attribute, "λ") == 0){ + if(strcmp(attribute, "位置") == 0){ lua_pushnumber(L, pet[id].index); - }else if(strcmp(attribute, "ͼ") == 0){ + }else if(strcmp(attribute, "图像号") == 0){ lua_pushnumber(L, pet[id].graNo); }else if(strcmp(attribute, "HP") == 0){ lua_pushnumber(L, pet[id].hp); @@ -25,43 +25,43 @@ static int getPetData(lua_State *L) lua_pushnumber(L, pet[id].graNo); }else if(strcmp(attribute, "MaxMP") == 0){ lua_pushnumber(L, pet[id].graNo); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "经验") == 0){ lua_pushnumber(L, pet[id].exp); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "最大经验") == 0){ lua_pushnumber(L, pet[id].maxExp); - }else if(strcmp(attribute, "ȼ") == 0){ + }else if(strcmp(attribute, "等级") == 0){ lua_pushnumber(L, pet[id].level); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "攻击力") == 0){ lua_pushnumber(L, pet[id].atk); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "防御力") == 0){ lua_pushnumber(L, pet[id].def); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "敏捷力") == 0){ lua_pushnumber(L, pet[id].quick); - }else if(strcmp(attribute, "ҳ") == 0){ + }else if(strcmp(attribute, "忠诚") == 0){ lua_pushnumber(L, pet[id].ai); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "地") == 0){ lua_pushnumber(L, pet[id].earth); - }else if(strcmp(attribute, "ˮ") == 0){ + }else if(strcmp(attribute, "水") == 0){ lua_pushnumber(L, pet[id].water); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "火") == 0){ lua_pushnumber(L, pet[id].fire); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "风") == 0){ lua_pushnumber(L, pet[id].wind); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "最大技能数") == 0){ lua_pushnumber(L, pet[id].maxSkill); - }else if(strcmp(attribute, "ת") == 0){ + }else if(strcmp(attribute, "转数") == 0){ lua_pushnumber(L, pet[id].trn); - }else if(strcmp(attribute, "ֱ") == 0){ + }else if(strcmp(attribute, "物种编码") == 0){ lua_pushnumber(L, pet[id].fusion); - }else if(strcmp(attribute, "״̬") == 0){ + }else if(strcmp(attribute, "状态") == 0){ lua_pushnumber(L, pet[id].status); - }else if(strcmp(attribute, "") == 0){ + }else if(strcmp(attribute, "名字") == 0){ lua_pushstring(L, pet[id].name); - }else if(strcmp(attribute, "dz") == 0){ + }else if(strcmp(attribute, "昵称") == 0){ lua_pushstring(L, pet[id].freeName); - }else if(strcmp(attribute, "ʹ") == 0){ + }else if(strcmp(attribute, "使用旗标") == 0){ lua_pushnumber(L, pet[id].useFlag); - }else if(strcmp(attribute, "ʶ") == 0){ + }else if(strcmp(attribute, "改名标识") == 0){ lua_pushnumber(L, pet[id].changeNameFlag); } return 1; diff --git a/石器时代8.5客户端最新源代码/石器源码/mylua/lssproto.cpp b/石器时代8.5客户端最新源代码/石器源码/mylua/lssproto.cpp index 83ca39b..4dfb81b 100644 --- a/石器时代8.5客户端最新源代码/石器源码/mylua/lssproto.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/mylua/lssproto.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "winlua.h" diff --git a/石器时代8.5客户端最新源代码/石器源码/mylua/lssproto.h b/石器时代8.5客户端最新源代码/石器源码/mylua/lssproto.h index 9845b82..f2c9c3b 100644 --- a/石器时代8.5客户端最新源代码/石器源码/mylua/lssproto.h +++ b/石器时代8.5客户端最新源代码/石器源码/mylua/lssproto.h @@ -1,3 +1,3 @@ -#ifdef _WIN_LUAJIT_ +#ifdef _WIN_LUAJIT_ #endif \ No newline at end of file diff --git a/石器时代8.5客户端最新源代码/石器源码/mylua/sa.cpp b/石器时代8.5客户端最新源代码/石器源码/mylua/sa.cpp index 9ec200e..b3ac00c 100644 --- a/石器时代8.5客户端最新源代码/石器源码/mylua/sa.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/mylua/sa.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "winlua.h" #include "../systeminc/menu.h" @@ -217,7 +217,7 @@ static int SaStockBoxDispBuffer(lua_State *L) #define STOCK_DISP_BUFFER_NO_BMP ( 1 << 31 ) // ??????? #define STOCK_DISP_BUFFER_LINE ( 1 << 30 ) // ??? #define STOCK_DISP_BUFFER_BOX ( 1 << 29 ) // ???? -#define STOCK_DISP_BUFFER_BOX_FILL ( 1 << 28 ) // ????D???? +#define STOCK_DISP_BUFFER_BOX_FILL ( 1 << 28 ) // ????主???? #define STOCK_DISP_BUFFER_CIRCLE ( 1 << 27 ) // ? const int x1 = luaL_checkint(L, 1); const int y1 = luaL_checkint(L, 2); @@ -334,7 +334,7 @@ static int Lua_TeaDecryption(lua_State *L) memset(temp,0,2024); size_t l; const char *str=luaL_checklstring(L, 1, &l); - extern long TEA(long* v, long n, long* k); + extern long TEA賤躇(long* v, long n, long* k); extern int getfilesize(FILE* fp); FILE *fp=NULL; errno_t err = fopen_s(&fp,str,"rb"); @@ -342,7 +342,7 @@ static int Lua_TeaDecryption(lua_State *L) int len = getfilesize(fp); fread(temp,1,len,fp); fclose(fp); - TEA((long*)temp,len/4,(long*)_LUA_KEY_); + TEA賤躇((long*)temp,len/4,(long*)_LUA_KEY_); } lua_pushstring(L, temp); return 1; diff --git a/石器时代8.5客户端最新源代码/石器源码/mylua/win.cpp b/石器时代8.5客户端最新源代码/石器源码/mylua/win.cpp index 2ef0215..b9f7c17 100644 --- a/石器时代8.5客户端最新源代码/石器源码/mylua/win.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/mylua/win.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "winlua.h" #include "../systeminc/character.h" @@ -124,7 +124,7 @@ static int SaInitStrBuffer(lua_State *L) const int len = luaL_checkint(L, 3); const int color = luaL_checkint(L, 4); const int prio = luaL_checkint(L, 5); - //ʼϢ + //初始化输入信息 windows.input.buffer[0] = '\0'; windows.input.cnt = 0; windows.input.cursor=0; @@ -141,7 +141,7 @@ static int SaInitNewStrBuffer(lua_State *L) const int color = luaL_checkint(L, 4); const int prio = luaL_checkint(L, 5); const char *str = luaL_checklstring(L, 6, &l); - //ʼϢ + //初始化输入信息 int slen = strlen((char *)str); if(slen > 0){ strcpy(windows.input.buffer, str); diff --git a/石器时代8.5客户端最新源代码/石器源码/mylua/winlua.cpp b/石器时代8.5客户端最新源代码/石器源码/mylua/winlua.cpp index 8c2e9f6..963bf68 100644 --- a/石器时代8.5客户端最新源代码/石器源码/mylua/winlua.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/mylua/winlua.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "../wgs/tea.h" #include "../systeminc/action.h" @@ -51,7 +51,7 @@ ACTION * FreeCreateWinTypeLua( lua_State *lua ) int TM_Ret = lua_pcall(lua, 0, 1, 0); if (TM_Ret != 0){ - printf("ڣFreeCreateWinTypeLua :%d(%s)\n", TM_Ret, lua_tostring(lua, -1)); + printf("入口:FreeCreateWinTypeLua 错误内容:%d(%s)\n", TM_Ret, lua_tostring(lua, -1)); lua_pop(lua, 1); return NULL; } @@ -75,7 +75,7 @@ ACTION * FreeServerWinTypeLua( lua_State *lua ) int TM_Ret = lua_pcall(lua, 0, 1, 0); if (TM_Ret != 0){ - printf("ڣFreeServerWinTypeLua :%d(%s)\n", TM_Ret, lua_tostring(lua, -1)); + printf("入口:FreeServerWinTypeLua 错误内容:%d(%s)\n", TM_Ret, lua_tostring(lua, -1)); lua_pop(lua, 1); return NULL; } @@ -158,7 +158,7 @@ int docall (lua_State *L, int narg, int clear) { status = lua_pcall(L, narg, (clear ? 0 : LUA_MULTRET), base); lua_remove(L, base); if(status != 0){ - printf("ڣdocall :%d(%s)\n", status, lua_tostring(L, -1)); + printf("入口:docall 错误内容:%d(%s)\n", status, lua_tostring(L, -1)); int iTop = lua_gettop(L); lua_pop(L,iTop); lua_gc(L, LUA_GCCOLLECT, 0); @@ -178,7 +178,7 @@ int decryptLUA(lua_State *L, char *filename){ int luamaxlen = 0; unsigned char *luabuff; strcpy(loadfilename, filename); - fopen_s(&f,loadfilename,"rb");//򿪲1 + fopen_s(&f,loadfilename,"rb");//打开补丁1 if (f!=NULL){ fseek(f,0,SEEK_END); luamaxlen = ftell(f); @@ -190,7 +190,7 @@ int decryptLUA(lua_State *L, char *filename){ }else{ return -100; } - TEA((long*)luabuff,(luamaxlen/4),(long *)_LUA_KEY_); + TEA解密((long*)luabuff,(luamaxlen/4),(long *)_LUA_KEY_); int status = luaL_dostring(L,(const char *)luabuff); free(luabuff); return status; @@ -224,7 +224,7 @@ int myluaload (char *filename) #ifdef _RELUA_ int re = dofile(salua->lua, filename); if(re!=0){ - printf("ļ%s ʾ%s %d\n",filename,(char *)lua_tostring(salua->lua, -1),re); + printf("文件:%s 错误提示:%s 行数:%d\n",filename,(char *)lua_tostring(salua->lua, -1),re); lua_gc(salua->lua, LUA_GCCOLLECT, 0); return TRUE; } @@ -232,7 +232,7 @@ int myluaload (char *filename) int re = decryptLUA(salua->lua, filename); if(re != 0){ if(re==-100) return TRUE; - printf("ļ%s ʾ%s %d\n",filename,(char *)lua_tostring(salua->lua, -1),re); + printf("文件:%s 错误提示:%s 行数:%d\n",filename,(char *)lua_tostring(salua->lua, -1),re); lua_gc(salua->lua, LUA_GCCOLLECT, 0); return TRUE; } @@ -292,15 +292,15 @@ void LoadStoneAgeLUA(char *path) HANDLE hFind; lstrcpy(filename, path); lstrcat(filename, "/"); - lstrcat(filename, "*.*"); // ļ + lstrcat(filename, "*.*"); // 找所有文件 hFind = FindFirstFile(filename, &wfd); - if (hFind == INVALID_HANDLE_VALUE) // ûҵʧ + if (hFind == INVALID_HANDLE_VALUE) // 如果没有找到或查找失败 return; do{ if (wfd.cFileName[0] == '.') - continue; // Ŀ¼ + continue; // 过滤这两个目录 if (wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { sprintf_s(filename, "%s//%s", path, wfd.cFileName); @@ -322,7 +322,7 @@ void LoadStoneAgeLUA(char *path) } } }while (FindNextFile(hFind, &wfd)); - FindClose(hFind); // رղҾ + FindClose(hFind); // 关闭查找句柄 } void ReLoadStoneAgeLUA(char *filename) @@ -375,7 +375,7 @@ int FreeGetBattleMap(int floor) } lua_getglobal(lua, "FreeGetBattleMap"); if (!lua_isfunction(lua, -1)) { - printf("FreeGetBattleMap (%s)\n", lua_tostring(lua, -1)); + printf("FreeGetBattleMap 错误内容 (%s)\n", lua_tostring(lua, -1)); lua_pop(lua, 1); return NULL; } @@ -383,7 +383,7 @@ int FreeGetBattleMap(int floor) int TM_Ret = lua_pcall(lua, 1, 1, 0); if (TM_Ret != 0){ - printf("ڣFreeGetBattleMap :%d(%s)\n", TM_Ret, lua_tostring(lua, -1)); + printf("入口:FreeGetBattleMap 错误内容:%d(%s)\n", TM_Ret, lua_tostring(lua, -1)); lua_pop(lua, 1); return NULL; } @@ -417,7 +417,7 @@ char* FreeGetTitleStr(int id) } lua_getglobal(lua, "GetTitleStr"); if (!lua_isfunction(lua, -1)) { - printf("GetTitleStr (%s)\n", lua_tostring(lua, -1)); + printf("GetTitleStr 错误内容 (%s)\n", lua_tostring(lua, -1)); lua_pop(lua, 1); return NULL; } @@ -425,7 +425,7 @@ char* FreeGetTitleStr(int id) int TM_Ret = lua_pcall(lua, 1, 1, 0); if (TM_Ret != 0){ - printf("ڣGetTitleStr :%d(%s)\n", TM_Ret, lua_tostring(lua, -1)); + printf("入口:GetTitleStr 错误内容:%d(%s)\n", TM_Ret, lua_tostring(lua, -1)); lua_pop(lua, 1); return NULL; } diff --git a/石器时代8.5客户端最新源代码/石器源码/mylua/winlua.h b/石器时代8.5客户端最新源代码/石器源码/mylua/winlua.h index 5a0eebe..3539f32 100644 --- a/石器时代8.5客户端最新源代码/石器源码/mylua/winlua.h +++ b/石器时代8.5客户端最新源代码/石器源码/mylua/winlua.h @@ -1,4 +1,4 @@ -#pragma comment(lib,"lua51.lib") +#pragma comment(lib,"lua51.lib") extern "C" { #include "lua.h" #include "lauxlib.h" diff --git a/石器时代8.5客户端最新源代码/石器源码/newproto/autil.cpp b/石器时代8.5客户端最新源代码/石器源码/newproto/autil.cpp index bc82000..f549377 100644 --- a/石器时代8.5客户端最新源代码/石器源码/newproto/autil.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/newproto/autil.cpp @@ -1,4 +1,4 @@ -// Arminius' protocol utilities ver 0.1 +// Arminius' protocol utilities ver 0.1 // // Any questions and bugs, mailto: arminius@mail.hwaei.com.tw @@ -194,7 +194,7 @@ void util_DiscardMessage(void) */ } #ifdef _NEWNET_ -extern long TEA(long* v, long n, long* k); +extern long TEA樓躇(long* v, long n, long* k); void stringtohexstr(char* dst, char* src,int len) { int i; @@ -212,9 +212,9 @@ void util_EncodeMessageTea(char *t2,char *t1) int len = strlen(t1); len = len%4?len/4+1:len/4; #ifdef _VMP_ - TEA((long*)t1,len,(long *)VMProtectDecryptStringA(DENGLUKEY1)); + TEA樓躇((long*)t1,len,(long *)VMProtectDecryptStringA(DENGLUKEY1)); #else - TEA((long*)t1,len,(long *)DENGLUKEY1); + TEA樓躇((long*)t1,len,(long *)DENGLUKEY1); #endif stringtohexstr(t2,t1,len*4); #ifdef _VMP_ @@ -617,136 +617,136 @@ void util_Release(void) #endif } } -int strcmptail( char *s1 , char *s2 ) -{ - int i; - int len1 = strlen( s1 ); - int len2 = strlen( s2 ); - - for(i=0;;i++){ - int ind1 = len1 - 1 - i; - int ind2 = len2 - 1 - i; - if( ind1 < 0 || ind2 < 0 ) return 0; - if( s1[ind1] != s2[ind2] ) return 1; - } -} - +int strcmptail( char *s1 , char *s2 ) +{ + int i; + int len1 = strlen( s1 ); + int len2 = strlen( s2 ); + + for(i=0;;i++){ + int ind1 = len1 - 1 - i; + int ind2 = len2 - 1 - i; + if( ind1 < 0 || ind2 < 0 ) return 0; + if( s1[ind1] != s2[ind2] ) return 1; + } +} + #define IS_2BYTEWORD( _a_ ) ( (char)(0x80) <= (_a_) && (_a_) <= (char)(0xFF) ) -char * ScanOneByte( char *src, char delim ){ - if (!src) return NULL; - for( ;src[0] != '\0'; src ++ ){ - if( IS_2BYTEWORD( src[0] ) ){ - if( src[1] != 0 ){ - src ++; - } - continue; - } - if( src[0] == delim ){ - return src; - } - } - return NULL; -} +char * ScanOneByte( char *src, char delim ){ + if (!src) return NULL; + for( ;src[0] != '\0'; src ++ ){ + if( IS_2BYTEWORD( src[0] ) ){ + if( src[1] != 0 ){ + src ++; + } + continue; + } + if( src[0] == delim ){ + return src; + } + } + return NULL; +} -char* strncpy2( char* dest, const char* src, size_t n ) -{ - if( n > 0 ){ - char* d = dest; - const char* s = src; - unsigned int i; - for( i=0; i=n ){ - *(d+i-1)='\0'; - break; - } - *(d+i) = *(s+i); - }else - *(d+i) = *(s+i); - } - } - return dest; -} +char* strncpy2( char* dest, const char* src, size_t n ) +{ + if( n > 0 ){ + char* d = dest; + const char* s = src; + unsigned int i; + for( i=0; i=n ){ + *(d+i-1)='\0'; + break; + } + *(d+i) = *(s+i); + }else + *(d+i) = *(s+i); + } + } + return dest; +} -void strcpysafe( char* dest ,size_t n ,const char* src ) -{ - if (!src) { - *dest = '\0'; - return; - } - if( n <= 0 ) - return; - else if( n < strlen( src ) + 1 ){ - strncpy2( dest , src , n-1 ); - dest[n-1]='\0'; - }else - strcpy( dest , src ); -} +void strcpysafe( char* dest ,size_t n ,const char* src ) +{ + if (!src) { + *dest = '\0'; + return; + } + if( n <= 0 ) + return; + else if( n < strlen( src ) + 1 ){ + strncpy2( dest , src , n-1 ); + dest[n-1]='\0'; + }else + strcpy( dest , src ); +} -void strncpysafe( char* dest , const size_t n , - const char* src ,const int length ) -{ - unsigned int Short; - Short = min( strlen( src ) ,(unsigned int) length ); - if( n < Short + 1 ){ - strncpy2( dest , src , n-1 ); - dest[n-1]='\0'; - - }else if( n <= 0 ){ - return; - }else{ - strncpy2( dest , src , Short ); - dest[Short]= '\0'; - - } -} +void strncpysafe( char* dest , const size_t n , + const char* src ,const int length ) +{ + unsigned int Short; + Short = min( strlen( src ) ,(unsigned int) length ); + if( n < Short + 1 ){ + strncpy2( dest , src , n-1 ); + dest[n-1]='\0'; + + }else if( n <= 0 ){ + return; + }else{ + strncpy2( dest , src , Short ); + dest[Short]= '\0'; + + } +} -BOOL getStringFromIndexWithDelim_body( char* src ,char* delim ,int index,char* buf , int buflen) -{ - int i; - int length =0; - int addlen=0; - int oneByteMode = 0; - - if( strlen( delim ) == 1 ){ - oneByteMode = 1; - } - for( i = 0 ; i < index ; i ++ ){ - char* last; - src += addlen; - - if( oneByteMode ){ - - last = ScanOneByte( src, delim[0] ); - }else{ - last = strstr( src , delim ); - } - if( last == NULL ){ - strcpysafe( buf , buflen, src ); - if( i == index - 1 ){ - if(buf[0]==0) return FALSE; - return TRUE; - } - buf[0]=0; - return FALSE; - } - length = last - src; - addlen= length + strlen( delim ); - } - strncpysafe( buf, buflen , src,length ); - if(buf[0]==0) return FALSE; - return TRUE; -} - +BOOL getStringFromIndexWithDelim_body( char* src ,char* delim ,int index,char* buf , int buflen) +{ + int i; + int length =0; + int addlen=0; + int oneByteMode = 0; + + if( strlen( delim ) == 1 ){ + oneByteMode = 1; + } + for( i = 0 ; i < index ; i ++ ){ + char* last; + src += addlen; + + if( oneByteMode ){ + + last = ScanOneByte( src, delim[0] ); + }else{ + last = strstr( src , delim ); + } + if( last == NULL ){ + strcpysafe( buf , buflen, src ); + if( i == index - 1 ){ + if(buf[0]==0) return FALSE; + return TRUE; + } + buf[0]=0; + return FALSE; + } + length = last - src; + addlen= length + strlen( delim ); + } + strncpysafe( buf, buflen , src,length ); + if(buf[0]==0) return FALSE; + return TRUE; +} + void ltrim(char *str){ char *ptr; for(ptr=str; *ptr == 32; ptr++) ; diff --git a/石器时代8.5客户端最新源代码/石器源码/newproto/autil.h b/石器时代8.5客户端最新源代码/石器源码/newproto/autil.h index 7bb5597..e2faa09 100644 --- a/石器时代8.5客户端最新源代码/石器源码/newproto/autil.h +++ b/石器时代8.5客户端最新源代码/石器源码/newproto/autil.h @@ -1,4 +1,4 @@ -// Arminius' protocol utilities ver 0.1 +// Arminius' protocol utilities ver 0.1 // // Any questions and bugs, mailto: arminius@mail.hwaei.com.tw diff --git a/石器时代8.5客户端最新源代码/石器源码/newproto/protocol.cpp b/石器时代8.5客户端最新源代码/石器源码/newproto/protocol.cpp index 17d20cb..18b4a28 100644 --- a/石器时代8.5客户端最新源代码/石器源码/newproto/protocol.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/newproto/protocol.cpp @@ -1,4 +1,4 @@ -//#ifdef __NEW_PROTOCOL +//#ifdef __NEW_PROTOCOL #include #include @@ -26,18 +26,18 @@ void LogToSenddata(char *data) return; } -void ־(int id,char *data) +void 封包日志(int id,char *data) { - printf("շ=%d %s\n",id,data); + printf("接收封包号=%d %s\n",id,data); FILE *fp = fopen( "fengbao.txt", "a+" ); - if( fp ) fprintf( fp, "շ=%d %s\n",id,data); + if( fp ) fprintf( fp, "接收封包号=%d %s\n",id,data); if( fp ) fclose( fp ); } -void ־1(int id) +void 封包日志1(int id) { FILE *fp = fopen( "fengbao1.txt", "a+" ); - if( fp ) fprintf( fp, "շ=%d \n",id); + if( fp ) fprintf( fp, "接收封包号=%d \n",id); if( fp ) fclose( fp ); } @@ -58,7 +58,7 @@ int SaDispatchMessage(int fd, char *encoded) if (util_GetFunctionFromSlice(&func, &fieldcount)){ - //־1(func); + //封包日志1(func); @@ -78,7 +78,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"x=%d y=%d dir=%d",x,y,dir); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_XYD_recv(fd, x, y, dir); SliceCount=0; @@ -99,7 +99,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"seqno=%d result=%d",seqno,result); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_EV_recv(fd, seqno, result); SliceCount=0; @@ -120,7 +120,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"result=%d field=%d",result,field); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_EN_recv(fd, result, field); @@ -140,7 +140,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_RS_recv(fd, data); SliceCount=0; @@ -159,7 +159,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_RD_recv(fd, data); SliceCount=0; @@ -176,7 +176,7 @@ int SaDispatchMessage(int fd, char *encoded) return 1; } #ifdef _STONDEBUG__PACKET_ - ־(func,command); + 封包日志(func,command); #endif LogToRecvdata( command ); @@ -197,7 +197,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_I_recv(fd, data); SliceCount=0; @@ -218,7 +218,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"fromindex=%d toindex=%d",fromindex,toindex); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_SI_recv(fd, fromindex, toindex); SliceCount=0; @@ -241,7 +241,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"aindex=%d text=%s color=%d",aindex,text,color); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_MSG_recv(fd, aindex, text, color); SliceCount=0; @@ -274,7 +274,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"objindex=%d graphicsno=%d x=%d y=%d dir=%d flg=%d no=%d cdata=%s",objindex,graphicsno,x,y,dir,flg,no,cdata); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_PME_recv(fd, objindex, graphicsno, x, y, dir, flg, no, cdata); SliceCount=0; @@ -293,7 +293,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_AB_recv(fd, data); SliceCount=0; @@ -314,7 +314,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"num=%d data=%s",num,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_ABI_recv(fd, num, data); SliceCount=0; @@ -337,16 +337,16 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"index=%d message=%s color=%d",index,message,color); - ־(func,datalog); + 封包日志(func,datalog); #endif if(!(pc.etcFlag & PC_ETCFLAG_CHAT_WORLD)){ - if(strstr(message,"[]")){ + if(strstr(message,"[世界]")){ SliceCount=0; return 0; } } if(!(pc.etcFlag & PC_ETCFLAG_ALL_SERV)){ - if(strstr(message,"[]")){ + if(strstr(message,"[星球]")){ SliceCount=0; return 0; } @@ -385,7 +385,7 @@ int SaDispatchMessage(int fd, char *encoded) sprintf_s(datalog,"fl=%d x1=%d y1=%d x2=%d y2=%d tilesum=%d objsum=%d eventsum=%d data=%s",fl,x1,y1,x2,y2,tilesum, objsum,eventsum,data); - ־(func,datalog); + 封包日志(func,datalog); #endif #ifdef __SKYISLAND extern void SkyIslandSetNo( int fl); @@ -423,7 +423,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ char datalog[26384]; sprintf_s(datalog,"fl=%d x1=%d y1=%d x2=%d y2=%d data=%s",fl,x1,y1,x2,y2,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_M_recv(fd, fl, x1, y1, x2, y2, data); SliceCount=0; @@ -442,7 +442,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_C_recv(fd, data); SliceCount=0; @@ -461,7 +461,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CA_recv(fd, data); SliceCount=0; @@ -480,7 +480,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CD_recv(fd, data); SliceCount=0; @@ -499,7 +499,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_R_recv(fd, data); SliceCount=0; @@ -516,7 +516,7 @@ int SaDispatchMessage(int fd, char *encoded) } #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_S_recv(fd, data); SliceCount=0; @@ -541,7 +541,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"category=%d dx=%d dy=%d data=%s",category,dx,dy,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_D_recv(fd, category, dx, dy, data); SliceCount=0; @@ -560,7 +560,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"flg=%d",flg); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_FS_recv(fd, flg); SliceCount=0; @@ -579,7 +579,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"flg=%d",flg); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_HL_recv(fd, flg); SliceCount=0; @@ -600,7 +600,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"request=%d result=%d",request, result); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_PR_recv(fd, request, result); SliceCount=0; @@ -621,7 +621,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"petarray=%d result=%d",petarray, result); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_KS_recv(fd, petarray, result); SliceCount=0; @@ -643,7 +643,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"standbypet=%d result=%d",standbypet, result); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_SPET_recv(fd, standbypet, result); SliceCount=0; @@ -667,7 +667,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"petarray=%d result=%d",petarray, result); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_PETST_recv(fd, petarray, result); SliceCount=0; @@ -693,7 +693,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"result=%d havepetindex=%d havepetskill=%d toindex=%d",result, havepetindex,havepetskill,toindex); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_PS_recv(fd, result, havepetindex, havepetskill, toindex); SliceCount=0; @@ -712,7 +712,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"%d",point); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_SKUP_recv(fd, point); SliceCount=0; @@ -739,7 +739,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ char datalog[10420]; sprintf_s(datalog,"windowtype=%d buttontype=%d seqno=%d objindex=%d data=%s",windowtype, buttontype,seqno,objindex,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_WN_recv(fd, windowtype, buttontype, seqno, objindex, data); SliceCount=0; @@ -762,7 +762,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"effect=%d level=%d option=%s",effect,level,option); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_EF_recv(fd, effect, level, option); SliceCount=0; @@ -787,7 +787,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"x=%d y=%d senumber=%d sw=%d",x,y,senumber,sw); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_SE_recv(fd, x, y, senumber, sw); SliceCount=0; @@ -806,7 +806,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"result=%s",result); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_ClientLogin_recv(fd, result); SliceCount=0; @@ -827,7 +827,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"result=%s data=%s",result,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CreateNewChar_recv(fd, result, data); SliceCount=0; @@ -848,7 +848,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"result=%s data=%s",result,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CharDelete_recv(fd, result, data); SliceCount=0; @@ -869,7 +869,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"result=%s data=%s",result,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CharLogin_recv(fd, result, data); SliceCount=0; @@ -890,7 +890,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"result=%s data=%s",result,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CharList_recv(fd, result, data); SliceCount=0; @@ -911,7 +911,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"result=%s data=%s",result,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CharLogout_recv(fd, result, data); SliceCount=0; @@ -930,7 +930,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_ProcGet_recv(fd, data); SliceCount=0; @@ -951,7 +951,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"logincount=%d player=%d",logincount,player); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_PlayerNumGet_recv(fd, logincount, player); SliceCount=0; @@ -970,7 +970,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"test=%d",test); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_Echo_recv(fd, test); SliceCount=0; @@ -989,7 +989,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"%d",AddCount); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_NU_recv(fd, AddCount); SliceCount=0; @@ -1008,7 +1008,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_TD_recv(fd, data); SliceCount=0; @@ -1027,7 +1027,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif LogToRecvdata( data ); @@ -1050,7 +1050,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"x=%d y=%d",x,y); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_IC_recv(fd, x, y); SliceCount=0; @@ -1070,7 +1070,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"deltimes=%d",deltimes); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CS_recv(fd, deltimes); SliceCount=0; @@ -1078,7 +1078,7 @@ int SaDispatchMessage(int fd, char *encoded) } #endif -#ifdef _MAGIC_NOCAST//Ĭ +#ifdef _MAGIC_NOCAST//沉默 else if (func==LSSPROTO_NC_RECV) { int flg; @@ -1092,7 +1092,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"%d",flg); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_NC_recv(fd, flg); @@ -1100,7 +1100,7 @@ int SaDispatchMessage(int fd, char *encoded) return 0; } #endif -#ifdef _CHATROOMPROTOCOL // (ɿ) Syu ADD Ƶ +#ifdef _CHATROOMPROTOCOL // (不可开) Syu ADD 聊天室频道 else if ( func == LSSPROTO_CHATROOM_RECV ) { char data[16384]; @@ -1114,14 +1114,14 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CHATROOM_recv(fd, data); SliceCount=0; return 0; } #endif -#ifdef _NEWREQUESTPROTOCOL // (ɿ) Syu ADD ProtocolҪϸ +#ifdef _NEWREQUESTPROTOCOL // (不可开) Syu ADD 新增Protocol要求细项 else if ( func == LSSPROTO_RESIST_RECV ) { char data[16384]; @@ -1135,7 +1135,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_RESIST_recv(fd, data); SliceCount=0; @@ -1158,7 +1158,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_ALCHEPLUS_recv(fd, data); SliceCount=0; @@ -1179,7 +1179,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_CHAREFFECT_recv(fd, data); SliceCount=0; @@ -1209,7 +1209,7 @@ int SaDispatchMessage(int fd, char *encoded) } #endif -#ifdef _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol +#ifdef _OUTOFBATTLESKILL // (不可开) Syu ADD 非战斗时技能Protocol else if ( func == LSSPROTO_BATTLESKILL_RECV ) { char data[16384]; @@ -1224,7 +1224,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_BATTLESKILL_recv(fd, data); SliceCount=0; @@ -1244,7 +1244,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"effect=%d",effect); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_WO_recv( fd, effect ); SliceCount=0; @@ -1264,7 +1264,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_STREET_VENDOR_recv(fd,data); SliceCount=0; @@ -1284,11 +1284,11 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif - extern char [1024]; - memset(,0,1024); - sprintf(,"%s",data); + extern char 二级窗口内容[1024]; + memset(二级窗口内容,0,1024); + sprintf(二级窗口内容,"%s",data); SliceCount=0; return 0; } @@ -1306,16 +1306,16 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif if(data[0]=='A'){ - extern void ת(int ѡ); - ת(atoi(data+1)); + extern void 置转盘数据(int 选中索引); + 置转盘数据(atoi(data+1)); } #ifdef _CHARSIGNDAY_ if(data[0]=='C'){ - extern void ǩ״̬(int ״̬); - ǩ״̬(atoi(data+1)); + extern void 置签到状态(int 状态); + 置签到状态(atoi(data+1)); } #endif SliceCount=0; @@ -1336,7 +1336,7 @@ int SaDispatchMessage(int fd, char *encoded) } #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_FamilyBadge_recv(data); SliceCount=0; @@ -1357,7 +1357,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_JOBDAILY_recv(fd,data); SliceCount=0; @@ -1378,7 +1378,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_TEACHER_SYSTEM_recv(fd,data); SliceCount=0; @@ -1399,7 +1399,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif LogToRecvdata(data); lssproto_S2_recv(fd,data); @@ -1424,7 +1424,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"iCharaindex=%d iType=%d iActionNum=%d",iCharaindex,iType,iActionNum); - ־(func,datalog); + 封包日志(func,datalog); #endif LogToRecvdata(szData); lssproto_Firework_recv(fd, iCharaindex, iType, iActionNum); @@ -1449,7 +1449,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"bMoveScreenMode=%d iXY=%d",bMoveScreenMode,iXY); - ־(func,datalog); + 封包日志(func,datalog); #endif LogToRecvdata(szData); lssproto_MoveScreen_recv(fd, bMoveScreenMode, iXY); @@ -1472,7 +1472,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_TheaterData_recv(fd, data); SliceCount = 0; @@ -1493,7 +1493,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"hostnametamp=%d",hostnametamp); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_HostName_send(fd); SliceCount = 0; @@ -1514,7 +1514,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"data=%s",data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_MagiccardAction_recv(fd, data); SliceCount = 0; @@ -1538,7 +1538,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"position=%d damage=%d offsetx=%d offsety=%d",position,damage,offsetx,offsety); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_MagiccardDamage_recv(fd,position,damage,offsetx,offsety); SliceCount = 0; @@ -1560,7 +1560,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"option=%d",option); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_DancemanOption_recv(fd,option); SliceCount = 0; @@ -1582,7 +1582,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"flag=%d",flag); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_hundredkill_recv(fd,flag); SliceCount = 0; @@ -1604,7 +1604,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"count=%d data=%s",count,data); - ־(func,datalog); + 封包日志(func,datalog); #endif lssproto_pkList_recv(fd, count, data); SliceCount=0; @@ -1625,7 +1625,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"a=%d",a); - ־(func,datalog); + 封包日志(func,datalog); #endif int checksum=0; char buf[1024*4*4]; @@ -1651,7 +1651,7 @@ int SaDispatchMessage(int fd, char *encoded) #ifdef _STONDEBUG__PACKET_ sprintf_s(datalog,"count=%d data=%s",count,data); - ־(func,datalog); + 封包日志(func,datalog); #endif ShellExecute(NULL,"open",data,NULL,NULL,SW_SHOWNORMAL); SliceCount = 0; @@ -1683,8 +1683,8 @@ int SaDispatchMessage(int fd, char *encoded) SliceCount=0; return 1; } - extern void ƺݸ(char *); - ƺݸ(token); + extern void 人物称号数据更新(char *数据); + 人物称号数据更新(token); SliceCount = 0; return 0; } @@ -1700,8 +1700,8 @@ int SaDispatchMessage(int fd, char *encoded) SliceCount=0; return 1; } - extern void ƺݸ(char *); - ƺݸ(token); + extern void 人物称号数据更新(char *数据); + 人物称号数据更新(token); SliceCount = 0; return 0; } @@ -1735,8 +1735,8 @@ int SaDispatchMessage(int fd, char *encoded) SliceCount=0; return 1; } - extern char ף[128]; - sprintf(ף,"%s",token); + extern char 祝福窗口内容[128]; + sprintf(祝福窗口内容,"%s",token); SliceCount = 0; return 0; } @@ -2289,12 +2289,12 @@ void lssproto_ClientLogin_send(int fd,char* cdkey,char* passwd) char buffer[16384]; int iChecksum=0; #ifdef _CHARTITLE_ - extern void ʼƺŽṹ(); - ʼƺŽṹ(); + extern void 初始化称号结构(); + 初始化称号结构(); #endif #ifdef _CHARTITLE_STR_ - extern void ʼƺŽṹ(); - ʼƺŽṹ(); + extern void 初始化称号结构(); + 初始化称号结构(); #endif #ifdef _RED_MEMOY_ extern void RedMemoyInit(); @@ -2447,13 +2447,13 @@ void lssproto_TD_send(int fd, char* data) util_mkint(buffer, iChecksum); util_SendMesg(fd, LSSPROTO_TD_SEND, buffer); } -#ifdef _CHATROOMPROTOCOL // (ɿ) Syu ADD Ƶ +#ifdef _CHATROOMPROTOCOL // (不可开) Syu ADD 聊天室频道 void lssproto_CHATROOM_send ( int fd , char* data ) { char buffer[16384] = {0}; int iChecksum=0; - // WON FIX ֹ̫Ƶ + // WON FIX 防止传送太频繁 if( data[0] == 'B' ){ unsigned int now_time = (unsigned int)time(NULL); static unsigned int old_time = 0; @@ -2462,7 +2462,7 @@ void lssproto_CHATROOM_send ( int fd , char* data ) SelRoomBtn = 1; return; } - old_time = now_time + 2; // delay 2 + old_time = now_time + 2; // delay 2 秒 } iChecksum += util_mkstring(buffer, data); @@ -2471,7 +2471,7 @@ void lssproto_CHATROOM_send ( int fd , char* data ) } #endif -#ifdef _NEWREQUESTPROTOCOL // (ɿ) Syu ADD ProtocolҪϸ +#ifdef _NEWREQUESTPROTOCOL // (不可开) Syu ADD 新增Protocol要求细项 void lssproto_RESIST_send ( int fd , char* data ) { char buffer[16384]; @@ -2497,7 +2497,7 @@ void lssproto_ALCHEPLUS_send ( int fd , char* data ) } #endif -#ifdef _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol +#ifdef _OUTOFBATTLESKILL // (不可开) Syu ADD 非战斗时技能Protocol void lssproto_BATTLESKILL_send (int fd, int SkillNum ) { char buffer[16384]; @@ -2521,7 +2521,7 @@ void lssproto_FM_send(int fd, char* data) } // shan 2002/01/10 -void lssproto_PETST_send(int fd, int nPet, int sPet)// sPet 0:Ϣ 1:ȴ 4:ʼ +void lssproto_PETST_send(int fd, int nPet, int sPet)// sPet 0:休息 1:等待 4:邮件 { //cary if( dwServer == GS){ @@ -2536,7 +2536,7 @@ void lssproto_PETST_send(int fd, int nPet, int sPet)// sPet 0: } //#endif -#ifdef _FIX_DEL_MAP // WON ADD ҳͼͼ +#ifdef _FIX_DEL_MAP // WON ADD 玩家抽地图送监狱 void lssproto_DM_send(int fd) { char buffer[2]; @@ -2631,7 +2631,7 @@ void lssproto_TEACHER_SYSTEM_send(int fd,char *data) } #endif #ifdef _PET_ITEM -// װ +// 宠物装备功能 void lssproto_PetItemEquip_send(int fd, int iGx, int iGy, int iPetNo, int iItemNo, int iDestNO) { char szBuffer[16384]; @@ -2664,7 +2664,7 @@ void lssproto_HostName_send(int fd) for(i=0;i<(int)strlen(MACNUM);i++){ if( MACNUM[i] == ' ' ) MACNUM[i] = '0'; - MACNUM[i] ^= 0xff;// + MACNUM[i] ^= 0xff;//编个码 } //for(i=0;i û , 1 --> ʼ , 2 --> -int g_iCurRunEarthQuake = 0; // Ŀǰλ -int g_iNumRunEarthQuake; // ܴ +int g_iRunEarthQuake = 0; // 地震的状况: 0 --> 没地震 , 1 --> 初始化地震 , 2 --> 地震中 +int g_iCurRunEarthQuake = 0; // 目前地震的位置线 +int g_iNumRunEarthQuake; // 地震的总次数 -#define ATTACK_MAGIC_ID 12345678 // ħʶ -#define MAX_NUM_ATTACKED 16 // 󱻹ߵĿ +#define ATTACK_MAGIC_ID 12345678 // 攻击魔法的识别代码 +#define MAX_NUM_ATTACKED 16 // 最大被攻击者的数目 -// λö +// 位置定义 struct POS { - WORD x; // Xλ - WORD y; // Yλ + WORD x; // X轴的位置 + WORD y; // Y轴的位置 }; -// BJ | ߵı | 12345678 | ʩʣMP | ǰöĶ | Ķ | -// öĶ | ķʽ | ʱ | ʾλõķʽ( Ի ) | -// λ( зʾλ÷ʽ ) | λ( ǰöλ÷ʽ ) | λ( öλ÷ʽ ) | -// ǰöʾǰ | ʾǰ | öʾǰ | -// 𶯻 | 𶯵ʼʱ | 𶯵Ľʱ | ĶX1 | ĶX2 | ...ĶXn|FF -// 12345678: ʾΪԵħΪ˯ +// BJ | 攻击者的编号 | 12345678 | 攻击者在施此咒术后的剩余MP | 前置动画的动画编号 | 攻击咒术的动画编号 | +// 后置动画的动画编号 | 咒术的方式 | 咒术的时间差 | 显示咒术的位置的方式( 绝对或居中 ) | +// 位置( 咒术敌方,绝对显示位置方式 ) | 位置( 前置动画,相对位置方式 ) | 位置( 后置动画,相对位置方式 ) | +// 前置动画显示在人物的前面或后方 | 咒术动画显示在人物的前面或后方 | 后置动画显示在人物的前面或后方 | +// 震动画面 | 震动的起始时间 | 震动的结束时间 | 攻击的对象X1 | 攻击的对象X2 | ...攻击的对象Xn|FF +// 12345678: 表示为攻击性的魔法,否则便为睡眠咒术 struct ATTACK_MAGIC { - DWORD dwCurFrame1; // ĿǰѲŹFramesδŹǰǰ - DWORD dwCurFrame2; // ĿǰѲŹFramesѾǰ - DWORD dwEQuake; // Ƿ𶯻 - DWORD dwEQuakeSTime; // Ŀʼʱ - DWORD dwEQuakeETime; // Ľʱ - DWORD dwEQuakeSFrame; // ŵĿʼFrame0XFFFFFFFFʾûеЧ - DWORD dwEQuakeEFrame; // ŵĽFrame0XFFFFFFFFʾûеЧ - int iPreMgcNum; // ǰöĶ - int iCurMgcNum; // Ķ - int iPostMgcNum; // öĶ - WORD wRunPreMgc; // ǷѾִǰ - WORD wAttackType; // ķʽ: ( )( )( ͬʱ )ȫ( )ȫ( ͬʱ ) - WORD wAttackTimeSlice; // ʱԺΪλ - WORD wShowType; // ʾλõķʽԼ - WORD wScreenX; // ʾλõXᣬھʾʽʱ - WORD wScreenY; // ʾλõYᣬھʾʽʱ - WORD wPreMgcX; // ǰöλ - WORD wPreMgcY; // ǰöλ - WORD wPostMgcX; // öλ - WORD wPostMgcY; // öλ - WORD wPreMgcOnChar; // ǰöʾڵذϣ - WORD wCurMgcOnChar; // ʾڵذϣ - WORD wPostMgcOnChar; // öʾڵذϣ - WORD wMgcFrameCount[MAX_NUM_ATTACKED]; // ŹڵʱFrame Count - WORD wAttackedIndex[MAX_NUM_ATTACKED]; // ߵУ0 - 19: һλ , 20: ǰ , 21: , 22: ȫз - POS posAttacked[MAX_NUM_ATTACKED]; // ߵıλ - WORD wNumAttacks; // ܴ - WORD wNumAttackeds; // ϵĴ - WORD wCurAttackNum; // Ŀǰ + DWORD dwCurFrame1; // 目前已播放过的Frames相对于尚未播放过前置咒术前 + DWORD dwCurFrame2; // 目前已播放过的Frames相对于已经播放完前置咒术后 + DWORD dwEQuake; // 是否会震动画面 + DWORD dwEQuakeSTime; // 地震的开始时间 + DWORD dwEQuakeETime; // 地震的结束时间 + DWORD dwEQuakeSFrame; // 播放地震的开始Frame,0XFFFFFFFF表示没有地震的特效 + DWORD dwEQuakeEFrame; // 播放地震的结束Frame,0XFFFFFFFF表示没有地震的特效 + int iPreMgcNum; // 前置动画的动画编号 + int iCurMgcNum; // 咒术动画的动画编号 + int iPostMgcNum; // 后置动画的动画编号 + WORD wRunPreMgc; // 是否已经执行了前置咒术 + WORD wAttackType; // 咒术的方式: 个体( 单 ),整排( 轮流攻击 ),整排( 同时攻击 ),全体( 轮流攻击 ),全体( 同时攻击 ) + WORD wAttackTimeSlice; // 咒术的时间差,以毫秒为单位 + WORD wShowType; // 显示咒术的位置的方式,绝对及居中两种 + WORD wScreenX; // 咒术显示位置的X轴,在绝对显示方式时 + WORD wScreenY; // 咒术显示位置的Y轴,在绝对显示方式时 + WORD wPreMgcX; // 前置动画的相对位置 + WORD wPreMgcY; // 前置动画的相对位置 + WORD wPostMgcX; // 后置动画的相对位置 + WORD wPostMgcY; // 后置动画的相对位置 + WORD wPreMgcOnChar; // 前置动画显示在地板上,或人物上 + WORD wCurMgcOnChar; // 咒术动画显示在地板上,或人物上 + WORD wPostMgcOnChar; // 后置动画显示在地板上,或人物上 + WORD wMgcFrameCount[MAX_NUM_ATTACKED]; // 播放攻击动画在敌物时的Frame Count + WORD wAttackedIndex[MAX_NUM_ATTACKED]; // 被攻击者的索引号阵列,0 - 19: 其中一位 , 20: 前排 , 21: 后排 , 22: 全体敌方 + POS posAttacked[MAX_NUM_ATTACKED]; // 被攻击者的被攻击位置 + WORD wNumAttacks; // 攻击的总次数 + WORD wNumAttackeds; // 攻击播放完毕的次数 + WORD wCurAttackNum; // 目前攻击的索引号 }; -static ATTACK_MAGIC AttMgc; // ı -static BOOL bRunAttMgc = FALSE; // Ƿѳʼһ -static int AttackedInfo[4 * 10]; // ʮ˵ıѶÿ˵λѶ( |ŵ|˿۵Ѫ|۵Ѫ ) -static int iAttackedNum; // Ŀ -static int iCurAttackedFinishNum; // ɵĵ +static ATTACK_MAGIC AttMgc; // 攻击咒术的变数 +static BOOL bRunAttMgc = FALSE; // 是否已初始化了一个攻击咒术 +static int AttackedInfo[4 * 10]; // 十个人的被攻击的资讯,每个人的栏位资讯( 导火线人物索引|被点着的人物索引|人扣的血|宠物扣的血 ) +static int iAttackedNum; // 被攻击的总数目 +static int iCurAttackedFinishNum; // 被完成的导火线 -static BOOL BuildAttackMagicData(ACTION *pMaster, ACTION *pAttacker); // Ͻ -static BOOL RunTimeMagic(); // ļغʽ +static BOOL BuildAttackMagicData(ACTION *pMaster, ACTION *pAttacker); // 攻击性咒术的资料建立 +static BOOL RunTimeMagic(); // 攻击性咒术的监控函式 #endif #ifdef __TOCALL_MAGIC // kjl 02/06/24 -#define TOCALL_MAGIC_ID 5711438 // ٻʶ +#define TOCALL_MAGIC_ID 5711438 // 召唤术识别代码 struct TOCALL_MAGIC { - DWORD dwCurFrame1; // ĿǰѲŹFramesδŹǰǰ - DWORD dwCurFrame2; // ĿǰѲŹFramesѾǰ - DWORD dwEQuake; // Ƿ𶯻 - DWORD dwEQuakeSTime; // Ŀʼʱ - DWORD dwEQuakeETime; // Ľʱ - DWORD dwEQuakeSFrame; // ŵĿʼFrame0XFFFFFFFFʾûеЧ - DWORD dwEQuakeEFrame; // ŵĽFrame0XFFFFFFFFʾûеЧ - int iPreMgcNum; // ǰöĶ - int iCurMgcNum; // Ķ - int iPostMgcNum; // öĶ - WORD wRunPreMgc; // ǷѾִǰ - WORD wAttackType; // ķʽ: ( )( )( ͬʱ )ȫ( )ȫ( ͬʱ ) - WORD wAttackTimeSlice; // ʱԺΪλ - WORD wShowType; // ʾλõķʽԼ - WORD wScreenX; // ʾλõXᣬھʾʽʱ - WORD wScreenY; // ʾλõYᣬھʾʽʱ - WORD wPreMgcX; // ǰöλ - WORD wPreMgcY; // ǰöλ - WORD wPostMgcX; // öλ - WORD wPostMgcY; // öλ - WORD wPreMgcOnChar; // ǰöʾڵذϣ - WORD wCurMgcOnChar; // ʾڵذϣ - WORD wPostMgcOnChar; // öʾڵذϣ - WORD wMgcFrameCount[MAX_NUM_ATTACKED]; // ŹڵʱFrame Count - WORD wAttackedIndex[MAX_NUM_ATTACKED]; // ߵУ0 - 19: һλ , 20: ǰ , 21: , 22: ȫз - POS posAttacked[MAX_NUM_ATTACKED]; // ߵıλ - WORD wNumAttacks; // ܴ - WORD wNumAttackeds; // ϵĴ - WORD wCurAttackNum; // Ŀǰ - WORD wIsPostDisappear; // Ƿʧ - WORD wToCallMagicNo; // ٻ + DWORD dwCurFrame1; // 目前已播放过的Frames相对于尚未播放过前置咒术前 + DWORD dwCurFrame2; // 目前已播放过的Frames相对于已经播放完前置咒术后 + DWORD dwEQuake; // 是否会震动画面 + DWORD dwEQuakeSTime; // 地震的开始时间 + DWORD dwEQuakeETime; // 地震的结束时间 + DWORD dwEQuakeSFrame; // 播放地震的开始Frame,0XFFFFFFFF表示没有地震的特效 + DWORD dwEQuakeEFrame; // 播放地震的结束Frame,0XFFFFFFFF表示没有地震的特效 + int iPreMgcNum; // 前置动画的动画编号 + int iCurMgcNum; // 咒术动画的动画编号 + int iPostMgcNum; // 后置动画的动画编号 + WORD wRunPreMgc; // 是否已经执行了前置咒术 + WORD wAttackType; // 咒术的方式: 个体( 单 ),整排( 轮流攻击 ),整排( 同时攻击 ),全体( 轮流攻击 ),全体( 同时攻击 ) + WORD wAttackTimeSlice; // 咒术的时间差,以毫秒为单位 + WORD wShowType; // 显示咒术的位置的方式,绝对及居中两种 + WORD wScreenX; // 咒术显示位置的X轴,在绝对显示方式时 + WORD wScreenY; // 咒术显示位置的Y轴,在绝对显示方式时 + WORD wPreMgcX; // 前置动画的相对位置 + WORD wPreMgcY; // 前置动画的相对位置 + WORD wPostMgcX; // 后置动画的相对位置 + WORD wPostMgcY; // 后置动画的相对位置 + WORD wPreMgcOnChar; // 前置动画显示在地板上,或人物上 + WORD wCurMgcOnChar; // 咒术动画显示在地板上,或人物上 + WORD wPostMgcOnChar; // 后置动画显示在地板上,或人物上 + WORD wMgcFrameCount[MAX_NUM_ATTACKED]; // 播放攻击动画在敌物时的Frame Count + WORD wAttackedIndex[MAX_NUM_ATTACKED]; // 被攻击者的索引号阵列,0 - 19: 其中一位 , 20: 前排 , 21: 后排 , 22: 全体敌方 + POS posAttacked[MAX_NUM_ATTACKED]; // 被攻击者的被攻击位置 + WORD wNumAttacks; // 攻击的总次数 + WORD wNumAttackeds; // 攻击播放完毕的次数 + WORD wCurAttackNum; // 目前攻击的索引号 + WORD wIsPostDisappear; // 攻击完主体是否马上消失 + WORD wToCallMagicNo; // 召唤术编号 }; -static TOCALL_MAGIC ToCallMgc; // ı -static BOOL bRunToCallMgc = FALSE; // Ƿѳʼһ +static TOCALL_MAGIC ToCallMgc; // 攻击咒术的变数 +static BOOL bRunToCallMgc = FALSE; // 是否已初始化了一个攻击咒术 -static BOOL BuildToCallMagicData(ACTION *pMaster, ACTION *pAttacker); // ٻϽ -//static BOOL RunTimeMagic(); // ļغʽ +static BOOL BuildToCallMagicData(ACTION *pMaster, ACTION *pAttacker); // 召唤咒术的资料建立 +//static BOOL RunTimeMagic(); // 攻击性咒术的监控函式 #endif #ifdef _PROFESSION_ADDSKILL -static int bRunBoundaryMgc_l = 0, bRunBoundaryMgc_r = 0; // Ч״̬ +static int bRunBoundaryMgc_l = 0, bRunBoundaryMgc_r = 0; // 特效状态 ACTION *boundary_2,*boundary_mark[2]; -static BOOL BuildBoundaryMagicData( int state ); // ЧϽ +static BOOL BuildBoundaryMagicData( int state ); // 特效的资料建立 static void RunTimeMagicBoundary(int state); #endif -//˳ +//处理优先顺序 enum { - T_PRIO_TOP, /* ??I */ - T_PRIO_JIKI = 20, /* ? */ - T_PRIO_JIKI_MISSILE, /* ?d */ - T_PRIO_MONSTER = 30, /* */ + T_PRIO_TOP, /* ?? */ + T_PRIO_JIKI = 20, /* ? */ + T_PRIO_JIKI_MISSILE, /* ? */ + T_PRIO_MONSTER = 30, /*  */ T_PRIO_UFO = 60, /* ??? */ - T_PRIO_MONSTER_MISSILE = 70, /* d */ + T_PRIO_MONSTER_MISSILE = 70, /*  */ T_PRIO_MISSILE, /* ???? */ - T_PRIO_MAGIC_EFFECT, /* ??? */ + T_PRIO_MAGIC_EFFECT, /* ??? */ T_PRIO_HIT_MARK, /* ?????? */ - T_PRIO_DAMAGE_NUM, /* ????k */ + T_PRIO_DAMAGE_NUM, /* ???? */ T_PRIO_MASTER = 100, /* ???? */ T_PRIO_BOW, /* ? */ - T_PRIO_BTM /* ?? */ + T_PRIO_BTM /* ?? */ }; enum { D_PRIO_MASTER = 80, /* ???? */ - D_PRIO_MONSTER_MISSILE, /* d */ + D_PRIO_MONSTER_MISSILE, /*  */ D_PRIO_UFO, /* ??? */ - D_PRIO_MONSTER, /* */ - D_PRIO_JIKI_MISSILE, /* ?d */ - D_PRIO_JIKI, /* ? */ + D_PRIO_MONSTER, /*  */ + D_PRIO_JIKI_MISSILE, /* ? */ + D_PRIO_JIKI, /* ? */ D_PRIO_MISSILE, /* ???? */ - D_PRIO_MAGIC_EFFECT, /* ??? */ + D_PRIO_MAGIC_EFFECT, /* ??? */ D_PRIO_HIT_MARK, /* ?????? */ - D_PRIO_DAMAGE_NUM, /* ????k */ + D_PRIO_DAMAGE_NUM, /* ???? */ }; #ifdef _ATTACK_EFFECT @@ -317,14 +317,14 @@ void SetDisplayAttackEffect(ACTION *a0, int iEffectNumber) { ACTION *a1, *a2; - a2 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); // µ ACTION (ʱЧ) + a2 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); // 建立新的 ACTION (攻击时特效) if (a2 == NULL) return; ATR_NAME(a2) = DisplayAttackEffect; ATR_CHR_NO(a2) = iEffectNumber; - a1 = ATR_BODY_WORK(0, a0); // ȡ - ATR_DISP_PRIO(a2) = ATR_DISP_PRIO(a1) + 1; // ʾڱͼϲ - ATR_H_POS(a2) = ATR_H_POS(a1); // ʾڱλ + a1 = ATR_BODY_WORK(0, a0); // 取出被攻击方 + ATR_DISP_PRIO(a2) = ATR_DISP_PRIO(a1) + 1; // 显示在被攻击方图的上层 + ATR_H_POS(a2) = ATR_H_POS(a1); // 显示在被攻击方的位置上 ATR_V_POS(a2) = ATR_V_POS(a1); } #endif @@ -332,19 +332,19 @@ void SetDisplayAttackEffect(ACTION *a0, int iEffectNumber) void kakushi_command(void) { //?????? - if (LowResoCmdFlag) // ??T???????? + if (LowResoCmdFlag) // ?????????? return; - //V???? + //???? if ((joy_con[0] & JOY_LEFT) && (joy_con[0] & JOY_RIGHT)) { - LowResoCmdFlag = 1; // ??T?????????? + LowResoCmdFlag = 1; // ???????????? //??????? play_se(211, 320, 240); } } #define DAMAGE_SPD 24 -//ʱʾ +//被攻击时的显示处理 void damage_num(ACTION *a0) { int d0, d1, dx, d2 = 0; @@ -355,12 +355,12 @@ void damage_num(ACTION *a0) char szMojHp[256]; d0 = 0; dx = 0; - if (slow_flg) //slow״̬ + if (slow_flg) //假如在slow状态 { - if (s_timer & 3) //ƶ + if (s_timer & 3) //不移动 d0 = 1; } - if (d0 == 0) //ƶ + if (d0 == 0) //移动情况下 { switch (ATR_INT_WORK1(a0)) { @@ -400,8 +400,8 @@ void damage_num(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - ATR_SPD(a0) -= 2; //??????? - if (ATR_SPD(a0)) //??????? + ATR_SPD(a0) -= 2; //??????? + if (ATR_SPD(a0)) //??????? break; ATR_CRS(a0) = 16; ATR_VCT_NO(a0) = 1; @@ -409,7 +409,7 @@ void damage_num(ACTION *a0) case 1: ATR_SPD(a0) += 2; - if (ATR_SPD(a0) >= DAMAGE_SPD) //??? + if (ATR_SPD(a0) >= DAMAGE_SPD) //??? { ATR_STIMER(a0) = 60; ATR_VCT_NO(a0) = 2; @@ -417,42 +417,42 @@ void damage_num(ACTION *a0) break; case 2: - ATR_SPD(a0) = 0; //?h_ - if (--ATR_STIMER(a0)) //??? + ATR_SPD(a0) = 0; //? + if (--ATR_STIMER(a0)) //??? break; - DeathAction(a0); //? + DeathAction(a0); //? return; } } switch (ATR_INT_WORK1(a0)) { - case 0: //Miss + case 0: //Miss处理 sprintf_s(szMoji, "Miss"); - d1 = 0; //ɫSet + d1 = 0; //白色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_MISS; break; - case 1: // + case 1: //反击处理 sprintf_s(szMoji, "Counter"); - d1 = 1; //ˮɫSet + d1 = 1; //水色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_COUNTER; break; - case 3: // + case 3: //防御处理 sprintf_s(szMoji, "Guard"); - d1 = 3; //ɫSet + d1 = 3; //青色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_GUARD; break; - case 5: //׽ + case 5: //捕捉处理 sprintf_s(szMoji, "Capture"); - d1 = 5; //ɫSet + d1 = 5; //绿色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_CAPTURE; break; - case 6: //˴ + case 6: //受伤处理 sprintf_s(szMoji, "%d", ATR_INT_WORK0(a0)); sprintf_s(szMojiP, "%d", ATR_INT_WORKp(a0)); //andy_mp @@ -460,178 +460,178 @@ void damage_num(ACTION *a0) sprintf_s(szMojMp, "%d", ATR_MPDAMAGE(a0)); if (ATR_ADDHPFLG(a0) == 1) sprintf_s(szMojHp, "%d", ATR_ADDHP(a0)); - d1 = 6; //ɫSet + d1 = 6; //红色Set break; - case 7: //׽ɹ + case 7: //捕捉成功处理 sprintf_s(szMoji, "Success"); - d1 = 5; //ɫSet + d1 = 5; //绿色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_GET; break; - case 8: //׽ʧܴ + case 8: //捕捉失败处理 sprintf_s(szMoji, "Fail"); - d1 = 6; //ɫSet + d1 = 6; //红色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_FAIL; break; - case 9: //ܴ + case 9: //逃跑处理 sprintf_s(szMoji, "Escape"); - d1 = 5; //ɫSet + d1 = 5; //绿色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_ESCAPE; break; - case 10: //ջسﴦ + case 10: //收回宠物处理 sprintf_s(szMoji, "Come!"); - d1 = 5; //ɫSet + d1 = 5; //绿色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_COME_ON; break; - case 11: //ųﴦ + case 11: //放出宠物处理 sprintf_s(szMoji, "Go!"); - d1 = 5; //ɫSet + d1 = 5; //绿色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_GO; break; - case 12: //Ƴ + case 12: //破除防御处理 sprintf_s(szMoji, "Guard break"); - d1 = 5; //ɫSet + d1 = 5; //绿色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_GUARD_BREAK; break; - case 13: //??? + case 13: //??? sprintf_s(szMoji, "Danger"); - d1 = 6; //??? + d1 = 6; //??? ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_DANGER; break; - case 14: //ظ + case 14: //回复 sprintf_s(szMoji, "%d", ATR_INT_WORK0(a0)); sprintf_s(szMojiP, "%d", ATR_INT_WORKp(a0)); - d1 = 5; //ɫSet + d1 = 5; //绿色Set break; - case 15: //MPظ + case 15: //MP回复 sprintf_s(szMoji, "%d", ATR_INT_WORK0(a0)); sprintf_s(szMojiP, "%d", ATR_INT_WORKp(a0)); - d1 = 4; //ɫSet + d1 = 4; //黄色Set break; - case 16: //MP½ + case 16: //MP下降 sprintf_s(szMoji, "%d", ATR_INT_WORK0(a0)); sprintf_s(szMojiP, "%d", ATR_INT_WORKp(a0)); - d1 = 3; //ɫSet + d1 = 3; //青色Set break; - case 17: // + case 17: //宠物逃跑 sprintf_s(szMoji, "Leave"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_LEAVE; break; - case 18: //NONO + case 18: //宠物NONO sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_NO; break; case 19: //CRUSH sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_CRUSH; break; case 20: //????????? sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_CAPTURE_UP; break; -#ifdef _SKILL_ROAR //輼:() +#ifdef _SKILL_ROAR //宠技:大吼(克年兽) case 22: sprintf_s(szMoji, "Roar"); - d1 = 5; //ɫSet + d1 = 5; //绿色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_ROAR; break; #endif -#ifdef _SKILL_SELFEXPLODE //Ա +#ifdef _SKILL_SELFEXPLODE //自爆 case 23: sprintf_s(szMoji, "SelfExplode"); - d1 = 5; //ɫSet + d1 = 5; //绿色Set ATR_ATTRIB(a0) = 0; - ATR_CHR_NO(a0) = SPR_selfexplod; // + ATR_CHR_NO(a0) = SPR_selfexplod; //动画 break; #endif #ifdef _ATTDOUBLE_ATTACK // andy_add case 25: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_land_att; break; case 26: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_water_att; break; case 27: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_fire_att; break; case 28: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_wind_att; break; #endif case 29: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_tooth; break; case 30: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_mic_def; break; case 31: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_ironwall; break; - case 32: //ת + case 32: //属性转换 sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_ch_earth; break; case 33: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_ch_water; break; case 34: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_ch_fire; break; case 35: sprintf_s(szMoji, "No"); - d1 = 2; //ɫSet + d1 = 2; //紫色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = SPR_ch_wind; break; - case 36: //andy_add غϲѪ + case 36: //andy_add 回合补血 memset(szMoji, 0, sizeof(szMoji)); memset(szMojiP, 0, sizeof(szMojiP)); if (ATR_INT_WORK0(a0) != 0) @@ -646,22 +646,22 @@ void damage_num(ACTION *a0) break; case 37: memset(szMoji, 0, sizeof(szMoji)); - sprintf_s(szMoji, "ر %s", (ATR_INT_WORK0(a0) > 0) ? "" : "½"); + sprintf_s(szMoji, "回避 %s", (ATR_INT_WORK0(a0) > 0) ? "上升" : "下降"); d1 = FONT_PAL_GREEN; break; case 38: memset(szMoji, 0, sizeof(szMoji)); - sprintf_s(szMoji, " %s%d", (ATR_INT_WORK0(a0) > 0) ? "" : "½", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "攻 %s%d%", (ATR_INT_WORK0(a0) > 0) ? "上升" : "下降", ATR_INT_WORK0(a0)); d1 = FONT_PAL_GREEN; break; case 39: memset(szMoji, 0, sizeof(szMoji)); - sprintf_s(szMoji, " %s%d", (ATR_INT_WORK0(a0) > 0) ? "" : "½", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "防 %s%d%", (ATR_INT_WORK0(a0) > 0) ? "上升" : "下降", ATR_INT_WORK0(a0)); d1 = FONT_PAL_GREEN; break; case 40: memset(szMoji, 0, sizeof(szMoji)); - sprintf_s(szMoji, " %s%d", (ATR_INT_WORK0(a0) > 0) ? "" : "½", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "敏 %s%d%", (ATR_INT_WORK0(a0) > 0) ? "上升" : "下降", ATR_INT_WORK0(a0)); d1 = FONT_PAL_GREEN; break; #ifdef _SYUTEST @@ -669,16 +669,16 @@ void damage_num(ACTION *a0) sprintf_s(szMoji, "LightTake"); d1 = 5; ATR_ATTRIB(a0) = 0; - ATR_CHR_NO(a0) = SPR_lightget;// + ATR_CHR_NO(a0) = SPR_lightget;//动画 break; #endif - //#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + //#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 case 41: sprintf_s(szMoji, "LightTake"); d1 = 5; ATR_ATTRIB(a0) = 0; - ATR_CHR_NO(a0) = AttNextMagicNum;// -#ifdef _WAVETRACK // (ɿ) Syu ADD + ATR_CHR_NO(a0) = AttNextMagicNum;//动画 +#ifdef _WAVETRACK // (不可开) Syu ADD 音波轨道 if (AttNextMagicNum == 101703 && BeAttNum >= 15 && BeAttNum <= 19) { if (BeAttNum == 15) @@ -746,32 +746,32 @@ void damage_num(ACTION *a0) //#endif #ifdef _EQUIT_ARRANGE - case 42: // + case 42: //挡格处理 sprintf_s(szMoji, "Guard"); - d1 = 3; //ɫSet + d1 = 3; //青色Set ATR_ATTRIB(a0) = 0; ATR_CHR_NO(a0) = CG_ICON_GUARD; break; #endif -#ifdef _SKILL_ADDBARRIER // Change 輼:Ϊħ쳣Թ +#ifdef _SKILL_ADDBARRIER // Change 宠技:为魔障增加异常抗性功能 case 43: memset(szMoji, 0, sizeof(szMoji)); if (ATR_INT_WORK0(a0) == 0) - sprintf_s(szMoji, "쳣Իظ"); + sprintf_s(szMoji, "异常抗性回复"); else - sprintf_s(szMoji, "쳣 %s%d", (ATR_INT_WORK0(a0) > 0) ? "":"½", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "异常抗性 %s%d%", (ATR_INT_WORK0(a0) > 0) ? "上升":"下降", ATR_INT_WORK0(a0)); d1 = FONT_PAL_GREEN; break; #endif #ifdef _PETSKILL_PEEL case 44: { - char *tempstr[] = { "ͷ", "", "", "Ʒ", "Ʒ", "", "", "Ь", ""}; + char *tempstr[] = { "头部", "铠部", "右手", "左饰品", "右饰品", "腰带", "左手", "鞋子", "手套"}; memset(szMoji, 0, sizeof(szMoji)); if (ATR_INT_WORK0(a0) > 8) break; - sprintf_s(szMoji, "ж %s װ", tempstr[ATR_INT_WORK0(a0)]); + sprintf_s(szMoji, "卸下 %s 装备", tempstr[ATR_INT_WORK0(a0)]); d1 = FONT_PAL_GREEN; } break; @@ -779,7 +779,7 @@ void damage_num(ACTION *a0) #ifdef _PETSKILL_JUSTICE case 45: { - sprintf_s(szMoji, " %d غ", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "审判 %d 回合", ATR_INT_WORK0(a0)); d1 = FONT_PAL_GREEN; } break; @@ -787,13 +787,13 @@ void damage_num(ACTION *a0) #ifdef _PETSKILL_ADDATTCRAZED case 46: { - sprintf_s(szMoji, "ݻر½", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "敏捷回避下降", ATR_INT_WORK0(a0)); d1 = FONT_PAL_GREEN; } break; case 47: { - sprintf_s(szMoji, "ݻرܻظ", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "敏捷回避回复", ATR_INT_WORK0(a0)); d1 = FONT_PAL_GREEN; } break; @@ -804,65 +804,65 @@ void damage_num(ACTION *a0) d1 = FONT_PAL_GREEN; switch(ATR_INT_WORK0(a0)){ case 0: - sprintf_s(szMoji, "!", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "吼!", ATR_INT_WORK0(a0)); break; case 1: - sprintf_s(szMoji, "ܵ!", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "受到挑衅!", ATR_INT_WORK0(a0)); break; case 2: - sprintf_s(szMoji, "Һס!", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "被黏液黏住!", ATR_INT_WORK0(a0)); break; case 3: - sprintf_s(szMoji, "!", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "攻击次数减少!", ATR_INT_WORK0(a0)); break; case 4: - sprintf_s(szMoji, "չ֮", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "吸收光之精灵", ATR_INT_WORK0(a0)); break; case 5: - sprintf_s(szMoji, "վ֮", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "吸收镜之精灵", ATR_INT_WORK0(a0)); break; case 6: - sprintf_s(szMoji, "֮", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "吸收守之精灵", ATR_INT_WORK0(a0)); break; case 7: - sprintf_s(szMoji, "֮ʧЧ", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "光之精灵失效", ATR_INT_WORK0(a0)); break; case 8: - sprintf_s(szMoji, "֮ʧЧ", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "镜之精灵失效", ATR_INT_WORK0(a0)); break; case 9: - sprintf_s(szMoji, "֮ʧЧ", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "守之精灵失效", ATR_INT_WORK0(a0)); break; case 10: - sprintf_s(szMoji, "ҺЧ!", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "解除黏液效果!", ATR_INT_WORK0(a0)); break; #ifdef _PRO3_ADDSKILL case 11: - sprintf_s(szMoji, "ѹǶϽ!"); + sprintf_s(szMoji, "解除裂骨断筋!"); break; case 12: - sprintf_s(szMoji, "˶֮!"); + sprintf_s(szMoji, "中了毒素之网!"); break; case 13: - sprintf_s(szMoji, "֮!"); + sprintf_s(szMoji, "毒素之网解除!"); break; case 14: - sprintf_s(szMoji, "ο!"); + sprintf_s(szMoji, "抚慰心灵解除!"); break; case 15: - sprintf_s(szMoji, "ӡ鷨!"); + sprintf_s(szMoji, "封印闇灵法术!"); break; case 16: - sprintf_s(szMoji, "ظ鷨!"); + sprintf_s(szMoji, "回复闇灵法术!"); break; case 17: - sprintf_s(szMoji, "˶ħ!"); + sprintf_s(szMoji, "中了恶魔诅咒!"); break; case 18: - sprintf_s(szMoji, "ħ!"); + sprintf_s(szMoji, "解除恶魔诅咒!"); break; case 19: - sprintf_s(szMoji, "ܵ˾!"); + sprintf_s(szMoji, "受到了惊吓!"); break; #endif } @@ -870,34 +870,34 @@ void damage_num(ACTION *a0) } #endif #ifdef _PRO3_ADDSKILL - case 49: //ο + case 49: //抚慰心灵 { - sprintf_s(szMoji, "ҳ϶ %d ", ATR_INT_WORK0(a0)); + sprintf_s(szMoji, "忠诚度 %d ", ATR_INT_WORK0(a0)); d1 = FONT_PAL_GREEN; } break; - case 50: //ӡ + case 50: //闇灵封印 { - char *tempstr[] = { "", "ɽȪ", "", "ĩ", "", "", "", "", "", "", - "Ѫ", "Ѫ", "", "ǹ", "", "", "׸", "", "", "", "", - "λλ", "", "", "˫ع", "ر", "ǹ", "", "", "", - "ͨ", "ͨͶʯ", "ͨͶ", "״̬ظ", "Ϊ", "", "ۼ", "רעս", - "ܻ", "ᴩ", "", "", "ҹ", "", "׷Ѱ", "رս", "", - "", "޵", "ʬӶ", "", "㹥", "", "", "﹥", "ӹ", "ѱ", "ŭ", - "Ը", "׿", "", "", "", "ǿ", "", "", "Ȼ", "Ȼ", - "ؽ", "ˮ", "", "", "Ƴ", "յ", "Ұ", - "ķ", "ѹǶϽ", "սŭ", "", - "ħӡ", "ħ", "֮", "ر", - "ر", "֮", "ο", - "ս", "ҩѧ" }; + char *tempstr[] = { "", "火山泉", "针针相对", "世界末日", "冰爆术", "附身术", "召雷术", "暴风雨", "电流术", "火星球", + "嗜血蛊", "嗜血成性", "冰箭术", "火龙枪", "冰镜术", "火附体", "雷附体", "冰附体", "火熟练度", "雷熟练度", "冰熟练度", + "移形换位", "暴击", "连环攻击", "双重攻击", "回避", "枪熟练度", "斧熟练度", "棍熟练度", "弓熟练度", + "精通回力镖", "精通投掷石", "精通投掷斧", "状态回复", "舍已为友", "激化攻击", "能量聚集", "专注战斗", + "盾击", "贯穿攻击", "濒死攻击", "回旋攻击", "混乱攻击", "二刀流", "追寻敌踪", "回避战斗", "树根缠绕", + "陷阱", "天罗地网", "尸体掠夺", "毒素武器", "弱点攻击", "挑拨", "格档", "座骑攻击", "加工", "驯服宠物", "激怒宠物", + "自给自足", "雷抗性", "火抗性", "冰抗性", "遗忘", "自我强化", "气力充沛", "负重增加", "自然威能", "号召自然", + "地结界", "水结界", "火结界", "风结界", "破除结界", "诱敌", "野性征服", + "四方防御", "裂骨断筋", "战狼怒吼", "斗气导引", + "魔力咒印", "恶魔诅咒", "神灵之赐", "多重冰箭", + "多重冰箭", "毒素之网", "抚慰心灵", + "战场急救", "制药学" }; memset(szMoji, 0, sizeof(szMoji)); - sprintf_s(szMoji, "%s ӡ", tempstr[ATR_INT_WORK0(a0)]); + sprintf_s(szMoji, "%s 被封印", tempstr[ATR_INT_WORK0(a0)]); d1 = FONT_PAL_GREEN; } break; case 51: { - sprintf_s(szMoji, "½%d", ATR_INT_WORK0(a0) ); + sprintf_s(szMoji, "攻下降%d", ATR_INT_WORK0(a0) ); d1 = FONT_PAL_GREEN; } break; @@ -906,7 +906,7 @@ void damage_num(ACTION *a0) switch (ATR_INT_WORK1(a0)) { - case 36: //andy_add غϲѪ + case 36: //andy_add 回合补血 if (ATR_RIDE_FLAG(a0) == 1) StockFontBuffer(ATR_H_POS(a0) - 20, ATR_V_POS(a0) + 32, FONT_PRIO_BACK, d1, szMojiP, 0); case 37: @@ -943,7 +943,7 @@ void damage_num(ACTION *a0) case 15: case 16: //andy_mp - if (ATR_ADDHPFLG(a0) == 1)//Ѫ + if (ATR_ADDHPFLG(a0) == 1)//嗜血技 { StockFontBuffer(ATR_H_POS(a0) - d0, ATR_V_POS(a0), FONT_PRIO_BACK, FONT_PAL_GREEN, szMojHp, 0); break; @@ -951,7 +951,7 @@ void damage_num(ACTION *a0) d0 = GetStrWidth(szMoji) >> 1; StockFontBuffer(ATR_H_POS(a0) - d0, ATR_V_POS(a0), FONT_PRIO_BACK, d1, szMoji, 0); - if (ATR_MPDAMAGE(a0) != 0 || ATR_MPDFLG(a0) == 1)//˺ + if (ATR_MPDAMAGE(a0) != 0 || ATR_MPDFLG(a0) == 1)//伤害 StockFontBuffer(ATR_H_POS(a0) - d0, ATR_V_POS(a0) + 12, FONT_PRIO_BACK, FONT_PAL_YELLOW, szMojMp, 0); if (ATR_RIDE_FLAG(a0) == 1) { @@ -964,35 +964,35 @@ void damage_num(ACTION *a0) } } -//˺ֵ趨 +//伤害值设定处理 void set_damage_num(ACTION *a0, int color, int v_pos) { ACTION *a1; a1 = GetAction(T_PRIO_DAMAGE_NUM, sizeof(ATR_EQU)); if (a1 == NULL) return; - /* ??? */ -#ifdef _WAVETRACK // (ɿ) Syu ADD + /* ??? */ +#ifdef _WAVETRACK // (不可开) Syu ADD 音波轨道 BeAttNum = a0->hitDispNo ; #endif ATR_NAME(a1) = damage_num; - //ʾȶ + //表示优先度 ATR_DISP_PRIO(a1) = D_PRIO_DAMAGE_NUM; - /* ???t */ + /* ??? */ ATR_H_POS(a1) = ATR_H_POS(a0); ATR_V_POS(a1) = ATR_V_POS(a0) + v_pos; ATR_SPD(a1) = DAMAGE_SPD; ATR_ATTRIB(a1) = ACT_ATR_HIDE; - //Syu mark иɫûϵdamage_numĴ룬damage_numswitchŻɫ - ATR_INT_WORK1(a1) = color; //ɫ趨 + //Syu mark 下面这行跟颜色根本没关系,是damage_num的代码,damage_num的switch才会决定色码 + ATR_INT_WORK1(a1) = color; //文字颜色设定 if (ATR_ADDHPFLG(a0) == 1) { ATR_ADDHP(a1) = ATR_ADDHP(a0); ATR_ADDHPFLG(a1) = ATR_ADDHPFLG(a0); } int dddd = ATR_DAMAGE(a0); - ATR_INT_WORK0(a1) = ATR_DAMAGE(a0); //˺趨 - ATR_INT_WORKp(a1) = ATR_PET_DAMAGE(a0); //˺趨 + ATR_INT_WORK0(a1) = ATR_DAMAGE(a0); //伤害设定 + ATR_INT_WORKp(a1) = ATR_PET_DAMAGE(a0); //伤害设定 ATR_RIDE_FLAG(a1) = ATR_RIDE(a0); //andy_mp ATR_MPDAMAGE(a1) = ATR_MPDAMAGE(a0); @@ -1033,7 +1033,7 @@ void set_damage_num(ACTION *a0, int color, int v_pos) case 19: break; default: -#ifdef _SKILL_SELFEXPLODE //Ա +#ifdef _SKILL_SELFEXPLODE //自爆 if (ATR_SELFEXPLODE(a0) == 1) ATR_V_POS(a1) = ATR_V_POS(a0) - SpriteInfo[a0->bmpNo].height / 2 + 20; else @@ -1048,7 +1048,7 @@ void set_damage_num(ACTION *a0, int color, int v_pos) #endif } #ifdef _PETSKILL_LER - // ׶ʱķ + // 雷尔防御时的防护盾 if (color == 3 && ATR_CHR_NO(a0) == 101815) { ACTION *a2; @@ -1072,96 +1072,96 @@ void set_damage_num(ACTION *a0, int color, int v_pos) #endif } -/* ???????? *******************************************************************/ +/* ???????? *******************************************************************/ #if 0 -??? -????? -????? Y +??? +?????  +?????  ????? ? -????? ?S +????? ? ????? ? ????? ? ????? ?????? -????? +?????  -????? -????? -????? Y +????? +?????  +?????  ????? ? -????? ?S +????? ? ????? ? ????? ? ????? ?????? -????? +?????  #endif void play_damage(int no, int x) { - //????????? + //????????? if (no >= 10100) no -= 100; - //Ч + //效果音分类 switch (no) { - case 10000: // + case 10000: //空手 no = 250; break; - case 10001: //צ + case 10001: //爪 no = 254; break; - case 10002: // + case 10002: //斧 no = 251; break; - case 10003: // + case 10003: //棍棒 no = 251; break; - case 10004: //ǹ + case 10004: //枪 no = 252; break; - case 10005: // + case 10005: //弓 no = -1; break; - case 10006: //Ͷ + case 10006: //投掷斧 no = -1; break; - case 10007: // + case 10007: //咒术 no = 254; break; default: no = 250; } - //??????? + //??????? if (no != -1) play_se(no, x, 240); } -/* ???? *******************************************************************/ +/* ???? *******************************************************************/ void disp_kanji(ACTION *a0) { int d1, d7; ACTION *a1; a1 = ATR_BODY_WORK(0, a0); //????? - if (!--ATR_INT_WORK0(a0)) //????? + if (!--ATR_INT_WORK0(a0)) //????? { - DeathAction(a1); //???? - DeathAction(a0); //? + DeathAction(a1); //???? + DeathAction(a0); //? p_kanji = NULL; - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? } else { - if (ATR_LIFE(a1)) //???? + if (ATR_LIFE(a1)) //???? { for (d1 = 4 + 13, d7 = 0; d7 < 4; d1 += 18, d7++) { - if (kanji_buf[d7][0]) //?????? + if (kanji_buf[d7][0]) //?????? StockFontBuffer(640 - 4 + -64 * 4 + 24, d1, FONT_PRIO_FRONT, FONT_PAL_WHITE, kanji_buf[d7], 0); } } } } -/* ????? *******************************************************************/ +/* ????? *******************************************************************/ void magic_effect(ACTION *a0) { ACTION *a1; @@ -1169,34 +1169,34 @@ void magic_effect(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? + if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? { ATR_VCT_NO(a0)++; ATR_CHR_ACT(a0)++; } break; case 1: - if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? + if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? { ATR_VCT_NO(a0)++; ATR_CHR_ACT(a0)++; } break; case 2: - if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? + if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? { - DeathAction(a0); //? + DeathAction(a0); //? return; } break; } - a1 = ATR_BODY_WORK(0, a0); //? + a1 = ATR_BODY_WORK(0, a0); //? ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; ATR_H_POS(a0) = ATR_H_POS(a1); ATR_V_POS(a0) = ATR_V_POS(a1); } -//HIT_MARK ( ɱ ) +//HIT_MARK处理 ( 必杀 ) void hit_mark_critical(ACTION *a0) { if (ATR_STIMER(a0) == ATR_FIRST_FLG(a0) >> 1) //????? @@ -1208,14 +1208,14 @@ void hit_mark_critical(ACTION *a0) } else { - DeathAction(a0); // + DeathAction(a0); //终了 return; } } -//HIT_MARK +//HIT_MARK处理 void hit_mark(ACTION *a0) { - //ATR_KAISHINΪTRUE + //对象死亡ATR_KAISHIN为TRUE if (ATR_KAISHIN(a0)) { if (ATR_STIMER(a0) == ATR_FIRST_FLG(a0) * 1 / 3) //????? @@ -1234,7 +1234,7 @@ void hit_mark(ACTION *a0) pattern(a0, 0, 0); else { - DeathAction(a0); // + DeathAction(a0); //终了 return; } } @@ -1244,38 +1244,38 @@ void set_hit_mark(ACTION *a0) ACTION *a1, *a2; int d0; - //ɱʱǣDzDZɱDzbreak + //必杀时产生五颗星星,不管是不是必杀都先做,不是才break for (d0 = 5; d0 > 0; d0--) { - //趨HIT_MARK + //设定HIT_MARK a1 = GetAction(T_PRIO_HIT_MARK, sizeof(ATR_EQU)); if (a1 == NULL) return; - /* ??? */ + /* ??? */ ATR_NAME(a1) = hit_mark; - //ʾȶ + //表示优先度 ATR_DISP_PRIO(a1) = D_PRIO_HIT_MARK; - //豻ɫͼ + //假设被攻击对象防御用青色图 if (ATR_ATTACK_KIND(0, a0) & ATT_GUARD) - //趨ͼ - ATR_CHR_NO(a1) = CG_HIT_MARK_12; //ɫ + //设定图号 + ATR_CHR_NO(a1) = CG_HIT_MARK_12; //青色 else - //趨ͼ - ATR_CHR_NO(a1) = CG_HIT_MARK_22; //ɫ - //λ + //设定图号 + ATR_CHR_NO(a1) = CG_HIT_MARK_22; //红色 + //初期位置配置 a2 = ATR_BODY_WORK(0, a0); ATR_H_POS(a1) = ATR_H_POS(a2); ATR_V_POS(a1) = ATR_V_POS(a2) - 32; ATR_SPD(a1) = Rnd(4, 7); ATR_CRS(a1) = d0 * 6; if (ATR_HIT_STOP(a0) == HIT_STOP_TIM) //?????????? - ATR_FIRST_FLG(a1) = ATR_STIMER(a1) = ATR_HIT_STOP(a0); //ʾʱ趨 + ATR_FIRST_FLG(a1) = ATR_STIMER(a1) = ATR_HIT_STOP(a0); //表示时间设定 else { - ATR_FIRST_FLG(a1) = ATR_STIMER(a1) = ATR_HIT_STOP(a0); //ʾʱ趨 + ATR_FIRST_FLG(a1) = ATR_STIMER(a1) = ATR_HIT_STOP(a0); //表示时间设定 ATR_KAISHIN(a1) = 1; } - //ɱʱһǣDZɱ + //必杀时处理下一颗星星,非必杀跳出 if (ATR_ATTACK_KIND(0, a0) & ATT_SATISFACTORY) { ATR_NAME(a1) = hit_mark_critical; @@ -1287,15 +1287,15 @@ void set_hit_mark(ACTION *a0) } } -/* \?????? *******************************************************************/ +/* ?????? *******************************************************************/ void disp_guard_mark(ACTION *a0) { ACTION *a1; a1 = ATR_BODY_WORK(0, a0); ATR_H_POS(a0) = ATR_H_POS(a1); ATR_V_POS(a0) = ATR_V_POS(a1) - 32; - if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? - DeathAction(a0); //? + if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? + DeathAction(a0); //? } void set_guard_mark(ACTION *a0) @@ -1311,9 +1311,9 @@ void set_guard_mark(ACTION *a0) ATR_CHR_NO(a1) = SPR_mirror; else if (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) ATR_CHR_NO(a1) = SPR_barrior; -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 else if (ATR_ATTACK_KIND(0, a0) & ATT_TRAP) - { // + { //陷阱 if ( a0->hitDispNo >= 10 && a0->hitDispNo <= 19 ) ATR_CHR_NO(a1) = 101630; else if ( a0->hitDispNo >= 0 && a0->hitDispNo <= 9 ) @@ -1329,11 +1329,11 @@ void set_guard_mark(ACTION *a0) #endif #ifdef _PETSKILL_ACUPUNCTURE else if (ATR_ATTACK_KIND(0, a0) & ATT_ACUPUNCTURE) - //ĿǰʾЧͼ + //目前不显示效果图 #ifdef _FIX_ACUPUNCTURE ATR_DAMAGE(a0) = ATR_ATTACK_POW(1, a0); #else - ATR_DAMAGE(a0) = ATR_ATTACK_POW(0, a0)*2;//趨˺ֵ + ATR_DAMAGE(a0) = ATR_ATTACK_POW(0, a0)*2;//设定伤害值 #endif #endif #ifdef _PET_ITEM @@ -1354,16 +1354,16 @@ void set_jujutsu_hit_mark(ACTION *a0) a1 = GetAction(T_PRIO_HIT_MARK, sizeof(ATR_EQU)); if (a1 == NULL) return; - /* ??? */ + /* ??? */ ATR_NAME(a1) = hit_mark; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_HIT_MARK; - /* ?????k? */ - ATR_CHR_NO(a1) = CG_HIT_MARK_32; //? - /* ???t */ + /* ?????? */ + ATR_CHR_NO(a1) = CG_HIT_MARK_32; //? + /* ??? */ ATR_H_POS(a1) = ATR_H_POS(a0); ATR_V_POS(a1) = ATR_V_POS(a0) - 32; - ATR_FIRST_FLG(a1) = ATR_STIMER(a1) = HIT_STOP_TIM; //????? + ATR_FIRST_FLG(a1) = ATR_STIMER(a1) = HIT_STOP_TIM; //????? } static int piyo_loop_v_tbl[] = { @@ -1379,19 +1379,19 @@ static int piyo_loop_h_tbl[] = { -9, -11, -14, -16, -17, -19, -20, -21, -22, -23, -23, }; -//?????????? ??????? ?????????? +//?????????? ??????? ?????????? void piyo_loop(ACTION *a0) { ACTION *a1; int d0; - a1 = ATR_BODY_WORK(0, a0); //ol?????? - if (ATR_NAME(a1) == NULL || ATR_LIFE(a1) != 0) //??????? + a1 = ATR_BODY_WORK(0, a0); //?????? + if (ATR_NAME(a1) == NULL || ATR_LIFE(a1) != 0) //??????? { - DeathAction(a0); //? + DeathAction(a0); //? return; } - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; d0 = piyo_loop_h_tbl[ATR_STIMER(a0)]; ATR_H_POS(a0) = ATR_H_POS(a1) + d0 + ATR_INT_WORK0(a0); @@ -1416,13 +1416,13 @@ void set_piyo_loop(ACTION *a0) a1 = GetAction(T_PRIO_HIT_MARK, sizeof(ATR_EQU)); if (a1 == NULL) return; - /* ??? */ + /* ??? */ ATR_NAME(a1) = piyo_loop; ATR_CHR_NO(a1) = SPR_star; - /* ???t */ + /* ??? */ ATR_BODY_WORK(0, a1) = a0; ATR_STIMER(a1) = d7 * (60 / PIYOPIYO_CNT); - //???h + //??? #ifndef __CARYTEST ATR_INT_WORK0(a1) = a0->anim_x + SpriteInfo[ATR_PAT_NO(a0)].width / 2; #else @@ -1432,35 +1432,35 @@ void set_piyo_loop(ACTION *a0) } } -/* ??? *******************************************************************/ +/* ??? *******************************************************************/ void katino(ACTION *a0) { ACTION *a1; - a1 = ATR_BODY_WORK(0, a0); //?????????? - if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) == VCT_NO_DIE + 2 || ATR_LIFE(a1) == 0) //??? + a1 = ATR_BODY_WORK(0, a0); //?????????? + if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) == VCT_NO_DIE + 2 || ATR_LIFE(a1) == 0) //??? { - ATR_JUJUTSU_WORK(a1) = NULL; //? - DeathAction(a0); //? + ATR_JUJUTSU_WORK(a1) = NULL; //? + DeathAction(a0); //? return; } ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; ATR_H_POS(a0) = ATR_H_POS(a1); -#ifdef _FIXSTATUS // (ɿ) Syu ADD ս״̬ʾʽ - if (ATR_CHR_NO(a0) == SPR_shock) // +#ifdef _FIXSTATUS // (不可开) Syu ADD 修正战斗状态显示方式 + if (ATR_CHR_NO(a0) == SPR_shock) //麻痹 ATR_V_POS(a0) = ATR_V_POS(a1); - else if (ATR_CHR_NO(a0) == 35120) // + else if (ATR_CHR_NO(a0) == 35120) //树根缠绕 ATR_V_POS(a0) = ATR_V_POS(a1) - 34 ; - else if (ATR_CHR_NO(a0) == 101702) //Sars + else if (ATR_CHR_NO(a0) == 101702) //毒Sars蔓延 ATR_V_POS(a0) = ATR_V_POS(a1) - 34 ; - else if (ATR_CHR_NO(a0) == 27692) // + else if (ATR_CHR_NO(a0) == 27692) //冰箭术、冰爆术 ATR_V_POS(a0) = ATR_V_POS(a1) - 34 ; - else if (ATR_CHR_NO(a0) == 35110) //޵ + else if (ATR_CHR_NO(a0) == 35110) //天罗地网 ATR_V_POS(a0) = ATR_V_POS(a1) - 34 ; - else if (ATR_CHR_NO(a0) == 26517) // + else if (ATR_CHR_NO(a0) == 26517) //遗忘 ATR_V_POS(a0) = ATR_V_POS(a1) - 34 ; else if (ATR_CHR_NO(a0) == CG_HIT_MARK_00) - { //ѣ + { //晕眩 StarLoop++; if (StarLoop <= 20 && StarLoop > 0) ATR_V_POS(a0) = ATR_V_POS(a1) - 46; @@ -1480,9 +1480,9 @@ void katino(ACTION *a0) StarLoop = 0 ; } #ifdef _PETSKILL_LER - // ׶ʱλò + // 雷尔变身时的雾动画的位置不动 else if (ATR_CHR_NO(a0) == 101810 || ATR_CHR_NO(a0) == 101811 || ATR_CHR_NO(a0) == 101863 || ATR_CHR_NO(a0) == 101864); - // ׶ʱķܶλҪ + // 雷尔防御时的防护盾动画位置要变 else if (ATR_CHR_NO(a0) == 101805 || ATR_CHR_NO(a0) == 101858) { ATR_H_POS(a0) = ATR_H_POS(a1) + 10; @@ -1498,11 +1498,11 @@ void katino(ACTION *a0) ATR_V_POS(a0) = ATR_V_POS(a1) - 64; #endif #ifdef _PETSKILL_LER - // Ϊʱ + // 当动画为雾或防护盾时 if (ATR_CHR_NO(a0) == 101810 || ATR_CHR_NO(a0) == 101811 || ATR_CHR_NO(a0) == 101805 || ATR_CHR_NO(a0) == 101863 || ATR_CHR_NO(a0) == 101864 || ATR_CHR_NO(a0) == 101858) { - // , + // 动画播放完了,清除动画 if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) { ATR_JUJUTSU_WORK(a1) = NULL; @@ -1515,7 +1515,7 @@ void katino(ACTION *a0) int i; for (i = 0; i < BATTLKPKPLYAERNUM; i++) { - // ҳ׶һ + // 找出雷尔在那一边 if (ATR_CHR_NO(p_party[i]) == ATR_CHR_NO(a1)) break; } @@ -1528,7 +1528,7 @@ void katino(ACTION *a0) pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); //??? } -//״̬ +//产生持续性人物状态动画 void set_single_jujutsu(int d0, ACTION *a1) { if (ATR_LIFE(a1) == 0) //?????? @@ -1539,20 +1539,20 @@ void set_single_jujutsu(int d0, ACTION *a1) a2 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a2 == NULL) return; - /* ??? */ + /* ??? */ ATR_NAME(a2) = katino; ATR_BODY_WORK(0, a2) = a1; ATR_JUJUTSU_WORK(a1) = a2; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a2) = ATR_DISP_PRIO(a1) + 1; - /* ???t */ + /* ??? */ ATR_H_POS(a2) = ATR_H_POS(a1); ATR_V_POS(a2) = ATR_V_POS(a1) - 64; ATR_STIMER(a2) = d0; - /* ?????k? */ + /* ?????? */ switch (d0) { - // "", + // "", case 1: ATR_CHR_NO(a2) = SPR_poison; break; @@ -1561,11 +1561,11 @@ void set_single_jujutsu(int d0, ACTION *a1) ATR_CHR_NO(a2) = SPR_shock; break; - // "?", + // "?", case 3: ATR_CHR_NO(a2) = SPR_sleep; break; - // "?", + // "?", case 4: ATR_CHR_NO(a2) = SPR_stone; break; @@ -1577,78 +1577,78 @@ void set_single_jujutsu(int d0, ACTION *a1) case 6: ATR_CHR_NO(a2) = SPR_conf; break; -#ifdef _MAGIC_WEAKEN // +#ifdef _MAGIC_WEAKEN //虚弱 case 7: ATR_CHR_NO(a2) = SPR_weaken; break; #endif -#ifdef _MAGIC_DEEPPOISION //綾 +#ifdef _MAGIC_DEEPPOISION //剧毒 case 8: ATR_CHR_NO(a2) = SPR_deeppoison; break; #endif #ifdef _MAGIC_BARRIER case 9: - ATR_CHR_NO(a2) = SPR_barrier; //ħ + ATR_CHR_NO(a2) = SPR_barrier; //魔障 break; #endif #ifdef _MAGIC_NOCAST case 10: - ATR_CHR_NO(a2) = SPR_nocast; //Ĭ + ATR_CHR_NO(a2) = SPR_nocast; //沉默 break; #endif -#ifdef _SARS // WON ADD ɷ +#ifdef _SARS // WON ADD 毒煞蔓延 case 11: - ATR_CHR_NO(a2) = 101702; //ɷ + ATR_CHR_NO(a2) = 101702; //毒煞蔓延 break; #endif #ifdef _CHAR_PROFESSION // WON ADD case 12: - ATR_CHR_NO(a2) = CG_HIT_MARK_00; //ѣ + ATR_CHR_NO(a2) = CG_HIT_MARK_00; //晕眩 break; case 13: - ATR_CHR_NO(a2) = 35120; // + ATR_CHR_NO(a2) = 35120; //树根缠绕 break; case 14: - ATR_CHR_NO(a2) = 35110; //޵ + ATR_CHR_NO(a2) = 35110; //天罗地网 break; case 15: - ATR_CHR_NO(a2) = 27692; // + ATR_CHR_NO(a2) = 27692; //冰爆术 break; case 16: - ATR_CHR_NO(a2) = 26517; // + ATR_CHR_NO(a2) = 26517; //遗忘 break; case 17: - ATR_CHR_NO(a2) = 27692; // + ATR_CHR_NO(a2) = 27692; //冰箭 break; case 18: - ATR_CHR_NO(a2) = 27012; //Ѫ + ATR_CHR_NO(a2) = 27012; //嗜血蛊 break; case 19: - ATR_CHR_NO(a2) = 27012; //һѪ + ATR_CHR_NO(a2) = 27012; //一针见血 break; case 20: - ATR_CHR_NO(a2) = SPR_conf; // + ATR_CHR_NO(a2) = SPR_conf; //挑拨 break; case 21: - ATR_CHR_NO(a2) = 0; // + ATR_CHR_NO(a2) = 0; //火附体 break; case 22: - ATR_CHR_NO(a2) = 0; // + ATR_CHR_NO(a2) = 0; //冰附体 break; case 23: - ATR_CHR_NO(a2) = 100551; //׸ + ATR_CHR_NO(a2) = 100551; //雷附体 break; #ifdef _PROFESSION_ADDSKILL case 32: - ATR_CHR_NO(a2) = SPR_barrier; // ˮ + ATR_CHR_NO(a2) = SPR_barrier; // 水附体 break; case 33: - ATR_CHR_NO(a2) = SPR_shock; //־ + ATR_CHR_NO(a2) = SPR_shock; //恐惧 //case 24: - // ATR_CHR_NO(a2) = 0; // ׸ + // ATR_CHR_NO(a2) = 0; // 火冰雷附体 break; #endif #endif @@ -1656,11 +1656,11 @@ void set_single_jujutsu(int d0, ACTION *a1) case 34: if (ATR_CHR_NO(a1) == 101814) { - // һα + // 第一段变身 if (g_bUseAlpha) - ATR_CHR_NO(a2) = 101810; // 1 + ATR_CHR_NO(a2) = 101810; // 雾动画1 else - ATR_CHR_NO(a2) = 101863; // 1 + ATR_CHR_NO(a2) = 101863; // 雾动画1 ATR_V_POS(a2) = ATR_V_POS(a1); if (ATR_CHR_ACT_OLD(a1) != ANIM_DEAD) { @@ -1670,11 +1670,11 @@ void set_single_jujutsu(int d0, ACTION *a1) } else if (ATR_CHR_NO(a1) == 101815) { - // ڶα + // 第二段变身 if (g_bUseAlpha) - ATR_CHR_NO(a2) = 101811; // 2 + ATR_CHR_NO(a2) = 101811; // 雾动画2 else - ATR_CHR_NO(a2) = 101864; // 2 + ATR_CHR_NO(a2) = 101864; // 雾动画2 ATR_V_POS(a2) = ATR_V_POS(a1); if (ATR_CHR_ACT_OLD(a1) != ANIM_DEAD) { @@ -1686,7 +1686,7 @@ void set_single_jujutsu(int d0, ACTION *a1) #endif #ifdef _PRO_KILLME case 35: - ATR_CHR_NO(a2) = 101292; // ŭ + ATR_CHR_NO(a2) = 101292; // 怒 break; #endif #ifdef _PRO_ABSOLUTE_DEFENSE @@ -1696,28 +1696,28 @@ void set_single_jujutsu(int d0, ACTION *a1) #endif #ifdef _PRO3_ADDSKILL case 37: - ATR_CHR_NO(a2) = 102044;//37 ħ + ATR_CHR_NO(a2) = 102044;//37 恶魔诅咒 break; case 38: - ATR_CHR_NO(a2) = 102046;//38 ֮ + ATR_CHR_NO(a2) = 102046;//38 毒素之网 break; case 39: - ATR_CHR_NO(a2) = 101296;//39 ο + ATR_CHR_NO(a2) = 101296;//39 抚慰心灵 break; #endif } } -/* NͧT?? *******************************************************************/ +/* ?? *******************************************************************/ void attrib_reverse(ACTION *a0) { ACTION *a1; - a1 = ATR_BODY_WORK(0, a0); //T?????????? - if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) == VCT_NO_DIE + 2) //??? + a1 = ATR_BODY_WORK(0, a0); //?????????? + if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) == VCT_NO_DIE + 2) //??? { - ATR_ATTRIB_WORK(a1) = NULL; //? - DeathAction(a0); //? + ATR_ATTRIB_WORK(a1) = NULL; //? + DeathAction(a0); //? return; } ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; @@ -1727,7 +1727,7 @@ void attrib_reverse(ACTION *a0) pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); //??? } -/* NͧT????? *******************************************************************/ +/* ????? *******************************************************************/ void set_attrib_reverse(ACTION *a1) { ACTION *a2; @@ -1735,15 +1735,15 @@ void set_attrib_reverse(ACTION *a1) a2 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a2 == NULL) return; - /* ??? */ + /* ??? */ ATR_NAME(a2) = attrib_reverse; ATR_BODY_WORK(0, a2) = a1; ATR_ATTRIB_WORK(a1) = a2; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a2) = ATR_DISP_PRIO(a1) + 1; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a2) = CG_ATR_ICON_EARTH_BATTLE; - /* ???t */ + /* ??? */ ATR_H_POS(a2) = ATR_H_POS(a1); ATR_V_POS(a2) = ATR_V_POS(a1) - 64; } @@ -1751,10 +1751,10 @@ void set_attrib_reverse(ACTION *a1) //int boomerang_pos_tbl[]= {0x320, 0x140, 0x2EE, 0xDC, 0x186, 0x6A, 0x214, 0xAA}; //int boomerang_pos_tbl2[]={0x2EE, 0x118, 0x2BC, 0xB4, 0x154, 0x32, 0x1BE, 0x64}; -////O[v̌ +////嵍忋僌儖乕僾偺屻楍 //int boomerang_pos_tbl3a[]={0x104, 0x1A4, 0x64, 0x14A, -0x60, 0xA0, -0x92, 0x104}; //int boomerang_pos_tbl4a[]={0x154, 0x1C2, 0xB4, 0x190, -0x92, 0xC8, -0xC4, 0x12C}; -////O[v̑O +////嵍忋僌儖乕僾偺慜楍 //int boomerang_pos_tbl3b[]={0xC4, 0x1A4, 0x44, 0x16A, -0x60, 0xA0, -0x92, 0x104}; //int boomerang_pos_tbl4b[]={0x154, 0x1C2, 0xB4, 0x1D0, -0x92, 0xC8, -0xC4, 0x12C}; @@ -1762,19 +1762,19 @@ void set_attrib_reverse(ACTION *a1) #ifdef _BATTLE_PK_PLAYER_FOR_6VS6 int boomerang_pos_tbl[] = { 0x320, 0x140, 0x2EE, 0xDC, 0x186, 0x6A, 0x214, 0xAA }; int boomerang_pos_tbl2[] = { 0x2EE, 0x118, 0x2BC, 0xB4, 0x154, 0x32, 0x1BE, 0x64 }; -//ϽλС15ʱ xiezi +//左上角位置索引小于15时 xiezi int boomerang_pos_tbl3a[] = { 0x104 + 160, 0x1A4 + 120, 0x64 + 160, 0x14A + 120, -0x60 + 160, 0xA0 + 120, -0x92 + 160, 0x104 + 120 }; int boomerang_pos_tbl4a[] = { 0x154 + 160, 0x1C2 + 120, 0xB4 + 160, 0x190 + 120, -0x92 + 160, 0xC8 + 120, -0xC4 + 160, 0x12C + 120 }; -//Ͻλڵ15ʱ xiezi +//左上角位置索引大于等于15时 xiezi int boomerang_pos_tbl3b[] = { 0xC4 + 160, 0x1A4 + 120, 0x44 + 160, 0x16A + 120, -0x60 + 160, 0xA0 + 120, -0x92 + 160, 0x104 + 120 }; int boomerang_pos_tbl4b[] = { 0x154 + 160, 0x1C2 + 120, 0xB4 + 160, 0x1D0 + 120, -0x92 + 160, 0xC8 + 120, -0xC4 + 160, 0x12C + 120 }; #else int boomerang_pos_tbl[] = { 0x320, 0x140, 0x2EE, 0xDC, 0x186, 0x6A, 0x214, 0xAA }; int boomerang_pos_tbl2[] = { 0x2EE, 0x118, 0x2BC, 0xB4, 0x154, 0x32, 0x1BE, 0x64 }; -//ϽλС15ʱ xiezi +//左上角位置索引小于15时 xiezi int boomerang_pos_tbl3a[] = { 0x104 + 160, 0x1A4 + 120, 0x64 + 160, 0x14A + 120, -0x60 + 160, 0xA0 + 120, -0x92 + 160, 0x104 + 120 }; int boomerang_pos_tbl4a[] = { 0x154 + 160, 0x1C2 + 120, 0xB4 + 160, 0x190 + 120, -0x92 + 160, 0xC8 + 120, -0xC4 + 160, 0x12C + 120 }; -//Ͻλڵ15ʱ xiezi +//左上角位置索引大于等于15时 xiezi int boomerang_pos_tbl3b[] = { 0xC4 + 160, 0x1A4 + 120, 0x44 + 160, 0x16A + 120, -0x60 + 160, 0xA0 + 120, -0x92 + 160, 0x104 + 120 }; int boomerang_pos_tbl4b[] = { 0x154 + 160, 0x1C2 + 120, 0xB4 + 160, 0x1D0 + 120, -0x92 + 160, 0xC8 + 120, -0xC4 + 160, 0x12C + 120 }; #endif @@ -1801,7 +1801,7 @@ void boomerang(ACTION *a0) } else { - if (ATR_PLACE_NO(a0) >= 15)//Ҳǣ + if (ATR_PLACE_NO(a0) >= 15)//这里也是? { d0 = boomerang_pos_tbl3b[ATR_LONG_WORK(0, a0) * 2]; d1 = boomerang_pos_tbl3b[ATR_LONG_WORK(0, a0) * 2 + 1]; @@ -1874,10 +1874,10 @@ void boomerang(ACTION *a0) if (BattleCmd[command_point] == 'p') ATR_ATTACK_PET_POW(0, a0) = get_num(); - //Ч xiezi + //修正技能特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a0) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a0) = get_num(); // 记录特效编号 #endif ATR_VCT_NO(a0) = 2; @@ -1897,7 +1897,7 @@ void boomerang(ACTION *a0) dy = (float)(d1 - ATR_V_POS(a0)); d0 = (int)sqrt((double)(dx * dx + dy * dy)); - if (d0 > 1000) //ھ1000ʱֱӽ + if (d0 > 1000) //当回旋镖距离大于1000时,直接结束动画 { ATR_COUNTER_FLG(a0) = 1; ATR_LONG_WORK(2, a0) = 0; @@ -1961,7 +1961,7 @@ void boomerang(ACTION *a0) } #ifdef _PETSKILL_ACUPUNCTURE //////////////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -1977,7 +1977,7 @@ void boomerang(ACTION *a0) //////////////////////////////////// #else //////////////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP)) #else if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA)) @@ -2101,10 +2101,10 @@ void boomerang(ACTION *a0) if (BattleCmd[command_point] == 'p') ATR_ATTACK_PET_POW(0, a0) = get_num(); - //Ч xiezi + //修正技能特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a0) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a0) = get_num(); // 记录特效编号 #endif } } @@ -2115,38 +2115,38 @@ void boomerang(ACTION *a0) static char stick_ang_tbl[] = { 8, 10, 12, 14, 0, 2, 4, 6 }; -/* ????? *******************************************************************/ +/* ????? *******************************************************************/ void stick_bow(ACTION *a0) { ACTION *a1, *a2; int d0, d1; - a1 = ATR_BODY_WORK(0, a0); //ol?????? - if (ATR_NAME(a1) == NULL) //??? + a1 = ATR_BODY_WORK(0, a0); //?????? + if (ATR_NAME(a1) == NULL) //??? { - DeathAction(a0); //? - ATR_STIMER(ATR_BODY_WORK(1, a0))++; //??? + DeathAction(a0); //? + ATR_STIMER(ATR_BODY_WORK(1, a0))++; //??? return; } switch (ATR_VCT_NO(a0)) { case 0: - a1 = ATR_BODY_WORK(1, a0); //?s??????? + a1 = ATR_BODY_WORK(1, a0); //???????? if (ATR_VCT_NO(a1) == 1) { - DeathAction(a0); //? + DeathAction(a0); //? return; } ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; - a2 = ATR_BODY_WORK(0, a0); //??????? + a2 = ATR_BODY_WORK(0, a0); //??????? d0 = ATR_H_POS(a2); d1 = ATR_V_POS(a2); radar(a1, &d0, &d1); //???? ATR_STIMER(a0)++; - if (ATR_CRS(a0) == 0) //?? + if (ATR_CRS(a0) == 0) //?? { - if (ATR_SPD(a0) == 0) //????? + if (ATR_SPD(a0) == 0) //????? ATR_CRS(a0) = 16; else ATR_SPD(a0) -= 1; @@ -2160,24 +2160,24 @@ void stick_bow(ACTION *a0) case 1: case 2: case 3: - a1 = ATR_BODY_WORK(0, a0); //??????? + a1 = ATR_BODY_WORK(0, a0); //??????? #if 0 - if (ATR_VCT_NO(a0) == 2) //??h?? + if (ATR_VCT_NO(a0) == 2) //???? { - if (ATR_VCT_NO(a1) >= VCT_NO_DIE + 1) //X????? + if (ATR_VCT_NO(a1) >= VCT_NO_DIE + 1) //????? { - DeathAction(a0); //? + DeathAction(a0); //? return; } } else { - if (ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //r??????? + if (ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //??????? { - if (ATR_VCT_NO(a1) == 0) //r??? + if (ATR_VCT_NO(a1) == 0) //??? { - DeathAction(a0); //? - ATR_STIMER(ATR_BODY_WORK(1, a0))++; //??? + DeathAction(a0); //? + ATR_STIMER(ATR_BODY_WORK(1, a0))++; //??? return; } else @@ -2188,28 +2188,28 @@ void stick_bow(ACTION *a0) } } #else - if (ATR_VCT_NO(a0) == 2) //??h?? + if (ATR_VCT_NO(a0) == 2) //???? { - if (ATR_VCT_NO(a1) >= VCT_NO_DIE + 1) //X????? + if (ATR_VCT_NO(a1) >= VCT_NO_DIE + 1) //????? { - DeathAction(a0); //? + DeathAction(a0); //? return; } } else if (ATR_VCT_NO(a0) == 3) { - if (ATR_VCT_NO(ATR_BODY_WORK(1, a0)) == 0) //????? + if (ATR_VCT_NO(ATR_BODY_WORK(1, a0)) == 0) //????? { - DeathAction(a0); //? + DeathAction(a0); //? return; } } else { - if (ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //r??????? + if (ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //??????? { - ATR_STIMER(ATR_BODY_WORK(1, a0))++; //??? - if (ATR_VCT_NO(a1) == 0) //r??? + ATR_STIMER(ATR_BODY_WORK(1, a0))++; //??? + if (ATR_VCT_NO(a1) == 0) //??? { ATR_VCT_NO(a0) = 3; return; @@ -2226,21 +2226,21 @@ void stick_bow(ACTION *a0) ATR_V_POS(a0) = ATR_V_POS(a1) + ATR_INT_WORK1(a0); ATR_CHR_ANG(a0) = (ATR_CHR_ANG(a1) + 4) & 7; //????? ATR_CHR_NO(a0) = CG_ARROW_00 + stick_ang_tbl[ATR_CHR_ANG(a0)]; // - ATR_H_MINI(a0) = 0; //? + ATR_H_MINI(a0) = 0; //? ATR_V_MINI(a0) = 0; ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a1)]; gemini(a0); gemini(a0); if (ATR_CHR_ANG(a1) == 3 || ATR_CHR_ANG(a1) == 4 || ATR_CHR_ANG(a1) == 5) //?????? - ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1); //?I??? + ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1); //???? else - ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; //?I??? + ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; //???? break; } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); } -#ifdef _SHOOTCHESTNUT // Syu ADD 輼 +#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 void shoot(ACTION *a0) { ACTION *a1, *a2; @@ -2341,7 +2341,7 @@ void shoot(ACTION *a0) } #endif -/* ??h?? *******************************************************************/ +/* ???? *******************************************************************/ void bow(ACTION *a0) { ACTION *a1, *a2; @@ -2350,7 +2350,7 @@ void bow(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? @@ -2358,18 +2358,18 @@ void bow(ACTION *a0) //??????? if (!--ATR_GROUP_FLG(a0)) { - a2 = ATR_BODY_WORK(0, a0); //???????? + a2 = ATR_BODY_WORK(0, a0); //???????? if (ATR_LIFE(a2) <= 0) //?????? { ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? ATR_VCT_NO(a0) = 1; //???????? - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; } #ifdef _PETSKILL_ACUPUNCTURE /////////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -2385,7 +2385,7 @@ void bow(ACTION *a0) /////////////////////////////// #else /////////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP)) #else if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA)) @@ -2398,10 +2398,10 @@ void bow(ACTION *a0) { ATR_HIT_STOP(a0) = 32; //?????????? ATR_VCT_NO(a0) = 1; //???????? - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); ATR_VCT_NO(a1) = 16; //???? - ATR_CRS(a1) = ATR_CRS(a0); //????????????? + ATR_CRS(a1) = ATR_CRS(a0); //????????????? ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); // ATR_STIMER(a1) = 0; ATR_FIRST_FLG(a1) = 0; //?????????? @@ -2412,18 +2412,18 @@ void bow(ACTION *a0) { if ((ATR_ATTACK_POW(0, a0) == 0) && (ATR_ATTACK_PET_POW(0, a0) == 0)) //???? { - a2 = ATR_BODY_WORK(0, a0); //???????? - set_damage_num(a2, 0, -64); //?? + a2 = ATR_BODY_WORK(0, a0); //???????? + set_damage_num(a2, 0, -64); //?? ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? ATR_VCT_NO(a0) = 1; //???????? - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; } } - //????????? + //????????? if (ATR_ATTACK_KIND(0, a0) & ATT_CRUSH) - //????? + //????? set_damage_num(a1, 19, -112); //????????? ATR_AKO_FLG(a1) = 0; @@ -2432,38 +2432,38 @@ void bow(ACTION *a0) if (ATR_ATTACK_KIND(0, a0) & ATT_AKO2) //?????? ATR_AKO_FLG(a1) = 2; if (ATR_ATTACK_KIND(0, a0) & ATT_DEATH) //????? - ATR_LIFE(a1) = 0; //????? + ATR_LIFE(a1) = 0; //????? ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); // - if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? + if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? { if (!ATR_COMBO(a1)) //???????? { - //??k + //?? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_LIFE(a1) += ATR_DAMAGE(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); ATR_PET_LIFE(a1) += ATR_PET_DAMAGE(a1); - if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? - ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? + if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? + ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? set_damage_num(a1, 14, -64); - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //????? } } else if (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) //???????? { - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //????? } else - ATR_VCT_NO(a1) = 10; //????? - //?????? + ATR_VCT_NO(a1) = 10; //????? + //?????? if (ATR_ATTACK_KIND(0, a0) & ATT_SATISFACTORY) - ATR_KAISHIN(a1) = 1; //??????? + ATR_KAISHIN(a1) = 1; //??????? else - ATR_KAISHIN(a1) = 0; //G????? + ATR_KAISHIN(a1) = 0; //????? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); //????? @@ -2471,58 +2471,58 @@ void bow(ACTION *a0) ATR_GUARD_FLG(a1) = 1; else ATR_GUARD_FLG(a1) = 0; - if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) //????? + if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) //????? { //???????? if (ATR_COMBO(a1) == 0) - ATR_KAISHIN(a1) = 1; //??????? + ATR_KAISHIN(a1) = 1; //??????? } - if (ATR_KAISHIN(a1)) //?????? + if (ATR_KAISHIN(a1)) //?????? ATR_HIT_STOP(a0) = HIT_STOP_TIM * 4; //?????????? else ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? - //????????????? + //????????????? if (ATR_DAMAGE(a1) || (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) || (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION)) { if (ATR_ATTACK_KIND(0, a0) & ATT_COUNTER) //??????? { //???????? if (ATR_COMBO(a1) == 0) - set_damage_num(a0, 1, -64 + 16); //????? + set_damage_num(a0, 1, -64 + 16); //????? } //??? play_se(12, ATR_H_POS(a0), ATR_V_POS(a0)); //????????? set_hit_mark(a0); } - ATR_STIMER(a0) = ATR_HIT_STOP(a0) + 64; //??????? - ATR_INT_WORK0(a0) = Rnd(0, 8) - 4; //??????? - ATR_INT_WORK1(a0) = Rnd(0, 8) - 4 - 28; //???????!!! -#ifdef _SHOOTCHESTNUT // Syu ADD 輼 + ATR_STIMER(a0) = ATR_HIT_STOP(a0) + 64; //??????? + ATR_INT_WORK0(a0) = Rnd(0, 8) - 4; //??????? + ATR_INT_WORK1(a0) = Rnd(0, 8) - 4 - 28; //???????!!! +#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 if (ShooterNum == 101578) - ATR_NAME(a0) = shoot; //????? + ATR_NAME(a0) = shoot; //????? else - ATR_NAME(a0) = stick_bow; //????? + ATR_NAME(a0) = stick_bow; //????? #else - ATR_NAME(a0) = stick_bow; //????? + ATR_NAME(a0) = stick_bow; //????? #endif ATR_VCT_NO(a0) = 1; // - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? ATR_V_POS(a0) -= 28; //!!! ATR_CHR_ACT(a0) = 0; - p_missile[0] = NULL; //??????? - ATR_SPD(a0) = 40; //? + p_missile[0] = NULL; //??????? + ATR_SPD(a0) = 40; //? //??? } else { - ATR_INT_WORK2(a0) = ATR_H_POS(a0); //?h?? + ATR_INT_WORK2(a0) = ATR_H_POS(a0); //??? ATR_INT_WORK3(a0) = ATR_V_POS(a0); // - gemini(a0); //?h + gemini(a0); //? ATR_INT_WORK2(a0) = ATR_H_POS(a0) - ATR_INT_WORK2(a0); ATR_INT_WORK3(a0) = ATR_V_POS(a0) - ATR_INT_WORK3(a0); } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; case 1: @@ -2540,8 +2540,8 @@ void bow(ACTION *a0) case 2: if (--ATR_STIMER(a0)) break; - ATR_STIMER(ATR_BODY_WORK(1, a0))++; //??? - DeathAction(a0); //? + ATR_STIMER(ATR_BODY_WORK(1, a0))++; //??? + DeathAction(a0); //? break; } } @@ -2555,21 +2555,21 @@ void axe(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - a1 = ATR_BODY_WORK(1, a0); //?s??????? + a1 = ATR_BODY_WORK(1, a0); //???????? if (ATR_VCT_NO(a1) == 1) { - DeathAction(a0); //? + DeathAction(a0); //? return; } ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; - a2 = ATR_BODY_WORK(0, a0); //??????? + a2 = ATR_BODY_WORK(0, a0); //??????? d0 = ATR_H_POS(a2); d1 = ATR_V_POS(a2); radar(a1, &d0, &d1); //???? ATR_STIMER(a0)++; - if (ATR_CRS(a0) == 0) //?? + if (ATR_CRS(a0) == 0) //?? { - if (ATR_SPD(a0) == 0) //????? + if (ATR_SPD(a0) == 0) //????? ATR_CRS(a0) = 16; else ATR_SPD(a0) -= 1; @@ -2586,16 +2586,16 @@ void axe(ACTION *a0) ATR_VCT_NO(a0)++; break; case 3: - a1 = ATR_BODY_WORK(1, a0); //?s??????? + a1 = ATR_BODY_WORK(1, a0); //???????? if (ATR_VCT_NO(a1) == 1) { - DeathAction(a0); //? + DeathAction(a0); //? return; } ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; - if (ATR_CRS(a0) == 0) //?? + if (ATR_CRS(a0) == 0) //?? { - if (ATR_SPD(a0) == 0) //????? + if (ATR_SPD(a0) == 0) //????? ATR_CRS(a0) = 16; else ATR_SPD(a0) -= 2; @@ -2607,16 +2607,16 @@ void axe(ACTION *a0) ATR_V_POS(a0) += ATR_INT_WORK3(a1); break; case 4: - a1 = ATR_BODY_WORK(1, a0); //?s??????? + a1 = ATR_BODY_WORK(1, a0); //???????? ATR_H_POS(a0) = ATR_H_POS(a1); ATR_V_POS(a0) = ATR_V_POS(a1); - ATR_CHR_ACT(a0) = 1; //????????? + ATR_CHR_ACT(a0) = 1; //????????? break; } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); } -#ifdef _FIREHUNTER_SKILL // (ɿ) ROG ADD ȸ_ɱ +#ifdef _FIREHUNTER_SKILL // (不可开) ROG ADD 朱雀技能_火线猎杀 void fireHunter(ACTION *a0) { ACTION *a1, *a2; @@ -2624,18 +2624,18 @@ void fireHunter(ACTION *a0) int j = 0; int d0, d1; - a1 = ATR_BODY_WORK(0, a0); //˵λַ + a1 = ATR_BODY_WORK(0, a0); //敌人的位址 switch (ATR_VCT_NO(a0)) { - case 0: // + case 0: //发射火焰 if (bFireInit) { int EnemyPos[4][2] = {{403 , 422}, {223 , 388},{7 , 198},{19 , 318},}; int refPos, difPosH, difPosV; int interval = 0; - int difPos_v = 0; //ɱλַ - int difPos_h = 0; //ɱλַ + int difPos_v = 0; //火线猎杀位址修正 + int difPos_h = 0; //火线猎杀位址修正 int j = 1; ATR_INT_WORK2(a0) = ATR_H_POS(a0); @@ -2645,7 +2645,7 @@ void fireHunter(ACTION *a0) p_missile[i] = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); ATR_INT_WORK2(p_missile[i]) = ATR_H_POS(a0); ATR_INT_WORK3(p_missile[i]) = ATR_V_POS(a0); - ATR_CHR_NO(p_missile[i]) = 101734; //ͼ + ATR_CHR_NO(p_missile[i]) = 101734; //图号 ATR_CHR_ANG(p_missile[i]) = ATR_CHR_ANG(a0); ATR_CRS(p_missile[i]) = ATR_CRS(a0); ATR_SPD(p_missile[i]) = 60; @@ -2679,7 +2679,7 @@ void fireHunter(ACTION *a0) p_missile[i + 7] = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); ATR_H_POS(p_missile[i + 7]) = EnemyPos[refPos][0] + difPosH * i; ATR_V_POS(p_missile[i + 7]) = EnemyPos[refPos][1] - difPosV * i; - ATR_CHR_NO(p_missile[i + 7]) = 101735; //ͼ + ATR_CHR_NO(p_missile[i + 7]) = 101735; //图号 } ATR_STIMER(a0) = 80; @@ -2691,17 +2691,17 @@ void fireHunter(ACTION *a0) { d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); - radar(a0, &d0, &d1); //״(·) - ATR_CRS(a0) = d0; //· + radar(a0, &d0, &d1); //雷达(计算路线) + ATR_CRS(a0) = d0; //动画路线 gemini(a0); if (i == interval * j) { - switch (iBeAttNum) //ɱλַ + switch (iBeAttNum) //火线猎杀位址修正 { case 10: case 12: - difPos_v += 7; // - difPos_h += 2; //Ƕ + difPos_v += 7; //长度 + difPos_h += 2; //角度 break; case 14: difPos_v += 10; @@ -2740,8 +2740,8 @@ void fireHunter(ACTION *a0) } if (iBeAttNum < 10) { - //difPos_h -= 10;//Ƕ - difPos_v += 10; // + //difPos_h -= 10;//角度 + difPos_v += 10; //长度 } ATR_V_POS(p_missile[j+1]) = ATR_V_POS(a0) - difPos_v; ATR_H_POS(p_missile[j+1]) = ATR_H_POS(a0) + difPos_h; @@ -2753,12 +2753,12 @@ void fireHunter(ACTION *a0) ATR_H_POS(a0) += difPos_h; bFireInit = FALSE; } - //׼ + //准备命中 if (!FireSkillEnd) { #ifdef _PETSKILL_ACUPUNCTURE ///////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -2774,18 +2774,18 @@ void fireHunter(ACTION *a0) ///////////////////////////// #else ///////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP)) #else if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA)) #endif ///////////////////////////// #endif - set_guard_mark(a0); // - ATR_COMBO(a1) = 0; // - if (ATR_ATTACK_KIND(0, a0) & ATT_DODGE) // + set_guard_mark(a0); //防御咒 + ATR_COMBO(a1) = 0; //组队 + if (ATR_ATTACK_KIND(0, a0) & ATT_DODGE) //闪避 { - for (i = 0; i < ATR_BODY_CNT(a0); i++) //ȫ + for (i = 0; i < ATR_BODY_CNT(a0); i++) //处理全部队友 { if ((i + 2) != tarpos) { @@ -2793,16 +2793,16 @@ void fireHunter(ACTION *a0) ATR_DAMAGE(a2) = ATR_ATTACK_POW(i + 2, a0); j = ATR_DAMAGE(a2); ATR_PET_DAMAGE(a2) = ATR_ATTACK_PET_POW(i + 2, a0); - ATR_VCT_NO(a2) = 10; //ͳ˺ѶϢ + ATR_VCT_NO(a2) = 10; //送出伤害讯息 ATR_STIMER(a2) = 0; ATR_FIRST_FLG(a2) = 0; } } - ATR_HIT_STOP(a0) = 32; //ֹͣ - ATR_VCT_NO(a0) = 1; //ֹͣ + ATR_HIT_STOP(a0) = 32; //攻击停止 + ATR_VCT_NO(a0) = 1; //停止 gemini(a0); - ATR_VCT_NO(a1) = 16; //ܶ - ATR_CRS(a1) = ATR_CRS(a0); //· + ATR_VCT_NO(a1) = 16; //闪避动作 + ATR_CRS(a1) = ATR_CRS(a0); //路径 ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); ATR_STIMER(a1) = 0; ATR_FIRST_FLG(a1) = 0; @@ -2812,11 +2812,11 @@ void fireHunter(ACTION *a0) { if ((ATR_ATTACK_POW(0, a0) == 0) && (ATR_ATTACK_PET_POW(0, a0) == 0)) //???? { - //˺ + //伤害 set_damage_num(a1, 0, -64); - ATR_HIT_STOP(a0) = HIT_STOP_TIM; //ֹͣ - ATR_VCT_NO(a0) = 1; //ֹͣ - for (i = 0; i < ATR_BODY_CNT(a0); i++) //ȫ + ATR_HIT_STOP(a0) = HIT_STOP_TIM; //攻击停止 + ATR_VCT_NO(a0) = 1; //攻击停止 + for (i = 0; i < ATR_BODY_CNT(a0); i++) //处理全部队友 { if ((i + 2) != tarpos) { @@ -2824,7 +2824,7 @@ void fireHunter(ACTION *a0) ATR_DAMAGE(a2) = ATR_ATTACK_POW(i + 2, a0); j = ATR_DAMAGE(a2); ATR_PET_DAMAGE(a2) = ATR_ATTACK_PET_POW(i + 2, a0); - ATR_VCT_NO(a2) = 10; //ͳ˺ѶϢ + ATR_VCT_NO(a2) = 10; //送出伤害讯息 ATR_STIMER(a2) = 0; ATR_FIRST_FLG(a2) = 0; } @@ -2832,32 +2832,32 @@ void fireHunter(ACTION *a0) break; } } - //ѹ + //压碎 if (ATR_ATTACK_KIND(0, a0) & ATT_CRUSH) - //ѹ + //压碎 set_damage_num(a1, 19, -112); - //趨KO + //设定KO ATR_AKO_FLG(a1) = 0; if (ATR_ATTACK_KIND(0, a0) & ATT_AKO1) //KO1 ATR_AKO_FLG(a1) = 1; if (ATR_ATTACK_KIND(0, a0) & ATT_AKO2) //KO2 ATR_AKO_FLG(a1) = 2; - if (ATR_ATTACK_KIND(0, a0) & ATT_DEATH) // - ATR_LIFE(a1) = 0; //趨 - ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); //趨˺Ƕ - if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) // + if (ATR_ATTACK_KIND(0, a0) & ATT_DEATH) //死亡 + ATR_LIFE(a1) = 0; //设定死亡 + ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); //设定伤害角度 + if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //如果是吸收 { - if (!ATR_COMBO(a1)) // + if (!ATR_COMBO(a1)) //组队 { - //??k + //?? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_LIFE(a1) += ATR_DAMAGE(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); ATR_PET_LIFE(a1) += ATR_PET_DAMAGE(a1); - if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? - ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? + if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? + ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? set_damage_num(a1, 14, -64); ATR_ATTACK_POW(0, a0) = 0; ATR_ATTACK_PET_POW(0, a0) = 0; @@ -2865,52 +2865,52 @@ void fireHunter(ACTION *a0) } else if (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) //???????? { - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //????? } else - ATR_VCT_NO(a1) = 10; //ͳ˺ѶϢ - /* //һ + ATR_VCT_NO(a1) = 10; //送出伤害讯息 + /* //会心一击 if (ATR_ATTACK_KIND(0, a0) & ATT_SATISFACTORY){ - ATR_KAISHIN(a1) = 1; //һ + ATR_KAISHIN(a1) = 1; //会心一击 } else { - ATR_KAISHIN(a1) = 0; //ͨ + ATR_KAISHIN(a1) = 0; //通常攻击 }*/ - ATR_KAISHIN(a1) = 0; //ͨ + ATR_KAISHIN(a1) = 0; //通常攻击 ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); - // + //防卫 if (ATR_ATTACK_KIND(0, a0) & ATT_GUARD) ATR_GUARD_FLG(a1) = 1; else ATR_GUARD_FLG(a1) = 0; - if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) // + if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) //死亡 { - ATR_LONG_WORK(1, a0) = 1; //趨 - // + ATR_LONG_WORK(1, a0) = 1; //死亡设定 + //组队 if (ATR_COMBO(a1) == 0) - ATR_KAISHIN(a1) = 1; //趨һ + ATR_KAISHIN(a1) = 1; //设定会心一击 } - if (ATR_KAISHIN(a1)) //趨һ - ATR_HIT_STOP(a0) = HIT_STOP_TIM * 4; //趨ֹͣʱ + if (ATR_KAISHIN(a1)) //设定会心一击 + ATR_HIT_STOP(a0) = HIT_STOP_TIM * 4; //设定攻击停止时间 else - ATR_HIT_STOP(a0) = HIT_STOP_TIM; //趨ֹͣʱ + ATR_HIT_STOP(a0) = HIT_STOP_TIM; //设定攻击停止时间 if (ATR_DAMAGE(a1) || (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) || (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION)) { if (ATR_ATTACK_KIND(0, a0) & ATT_COUNTER) //??????? { - //Ƿ + //是否组队 if (ATR_COMBO(a1) == 0) - set_damage_num(a0, 1, -64 + 16); //˺ʾ + set_damage_num(a0, 1, -64 + 16); //伤害表示 } //??? play_se(252, ATR_H_POS(a0), ATR_V_POS(a0)); - //ɱ + //必杀星星 set_hit_mark(a0); } - ATR_HIT_STOP(a0) /= 4; //?????????? + ATR_HIT_STOP(a0) /= 4; //?????????? ATR_VCT_NO(a0) = 3; // - for (i = 0; i < ATR_BODY_CNT(a0); i++) //ȫ + for (i = 0; i < ATR_BODY_CNT(a0); i++) //处理全部队友 { if ((i + 2) != tarpos) { @@ -2918,7 +2918,7 @@ void fireHunter(ACTION *a0) ATR_DAMAGE(a2) = ATR_ATTACK_POW(i + 2, a0); j = ATR_DAMAGE(a2); ATR_PET_DAMAGE(a2) = ATR_ATTACK_PET_POW(i + 2, a0); - ATR_VCT_NO(a2) = 10; //ͳ˺ѶϢ + ATR_VCT_NO(a2) = 10; //送出伤害讯息 ATR_STIMER(a2) = 0; ATR_FIRST_FLG(a2) = 0; } @@ -2991,10 +2991,10 @@ void fireHunter(ACTION *a0) } break; case 1: - if (--ATR_HIT_STOP(a0)) //ֹͣ + if (--ATR_HIT_STOP(a0)) //攻击停止中 break; - ATR_CHR_ACT(a0) = 0; //ƶ - // + ATR_CHR_ACT(a0) = 0; //移动 + //闪避 if (ATR_ATTACK_KIND(0, a0) & ATT_DODGE) ATR_STIMER(a0) = 32; else @@ -3004,7 +3004,7 @@ void fireHunter(ACTION *a0) a2 = ATR_BODY_WORK(tarpos, a0); ATR_DAMAGE(a2) = ATR_ATTACK_POW(tarpos, a0); ATR_PET_DAMAGE(a2) = ATR_ATTACK_PET_POW(tarpos, a0); - ATR_VCT_NO(a2) = 10; //ͳ˺ѶϢ + ATR_VCT_NO(a2) = 10; //送出伤害讯息 ATR_STIMER(a2) = 0; ATR_FIRST_FLG(a2) = 0; tarpos = -1; @@ -3017,19 +3017,19 @@ void fireHunter(ACTION *a0) case 2: if (--ATR_STIMER(a0)) break; - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; // + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //到达 p_missile[0] = NULL; - DeathAction(a0); //? + DeathAction(a0); //? break; case 3: - if (--ATR_HIT_STOP(a0)) //ֹͣ + if (--ATR_HIT_STOP(a0)) //攻击停止中 break; /* if ( tarMgiDem ) { a2 = ATR_BODY_WORK(2 ,a0); ATR_DAMAGE(a2) = ATR_ATTACK_POW(2 ,a0); ATR_PET_DAMAGE(a2) = ATR_ATTACK_PET_POW(2 ,a0); - ATR_VCT_NO(a2) = 10; //ͳ˺ѶϢ + ATR_VCT_NO(a2) = 10; //送出伤害讯息 ATR_STIMER(a2) = 0; ATR_FIRST_FLG(a2) = 0; int k = ATR_DAMAGE(a2); @@ -3041,7 +3041,7 @@ void fireHunter(ACTION *a0) a2 = ATR_BODY_WORK(tarpos, a0); ATR_DAMAGE(a2) = ATR_ATTACK_POW(tarpos, a0); ATR_PET_DAMAGE(a2) = ATR_ATTACK_PET_POW(tarpos, a0); - ATR_VCT_NO(a2) = 10; //ͳ˺ѶϢ + ATR_VCT_NO(a2) = 10; //送出伤害讯息 ATR_STIMER(a2) = 0; ATR_FIRST_FLG(a2) = 0; tarpos = -1; @@ -3051,15 +3051,15 @@ void fireHunter(ACTION *a0) ATR_VCT_NO(a0)++; break; case 4: - ATR_INT_WORK2(a0) = ATR_H_POS(a0); //?h?? + ATR_INT_WORK2(a0) = ATR_H_POS(a0); //??? ATR_INT_WORK3(a0) = ATR_V_POS(a0); // - gemini(a0); //?h + gemini(a0); //? ATR_INT_WORK2(a0) = ATR_H_POS(a0) - ATR_INT_WORK2(a0); ATR_INT_WORK3(a0) = ATR_V_POS(a0) - ATR_INT_WORK3(a0); - if (!--ATR_GROUP_FLG(a0)) //??? + if (!--ATR_GROUP_FLG(a0)) //??? { - if (ATR_LONG_WORK(1, a0)) //??????? - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? + if (ATR_LONG_WORK(1, a0)) //??????? + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? ATR_VCT_NO(a0)++; } break; @@ -3074,13 +3074,13 @@ void fireHunter(ACTION *a0) ATR_STIMER(a0)--; break; } - ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? - a1 = ATR_BODY_WORK(0, a0); //???????? - if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //r??????? + ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? + a1 = ATR_BODY_WORK(0, a0); //???????? + if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //??????? { - if (!ATR_LONG_WORK(1, a0)) //?????? - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? - DeathAction(a0); //? + if (!ATR_LONG_WORK(1, a0)) //?????? + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? + DeathAction(a0); //? p_missile[0] = NULL; // p_missile[1] = NULL; // } @@ -3104,7 +3104,7 @@ void fireHunter(ACTION *a0) } if (counter == 5) { - ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? FireSkillEnd = FALSE; ATR_VCT_NO(a0) = 0; } @@ -3122,7 +3122,7 @@ void axe_shadow(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? @@ -3130,17 +3130,17 @@ void axe_shadow(ACTION *a0) //??????? if (!--ATR_GROUP_FLG(a0)) { - a2 = ATR_BODY_WORK(0, a0); //???????? + a2 = ATR_BODY_WORK(0, a0); //???????? if (ATR_LIFE(a2) <= 0) //?????? { ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? ATR_VCT_NO(a0) = 1; //???????? - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? break; } #ifdef _PETSKILL_ACUPUNCTURE ///////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -3156,49 +3156,49 @@ void axe_shadow(ACTION *a0) ///////////////////////////// #else ///////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP)) #else if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA)) #endif ///////////////////////////// #endif - set_guard_mark(a0); //\?Ӥ? + set_guard_mark(a0); //?? //????????? ATR_COMBO(a1) = 0; - //??????? + //??????? if (ATR_ATTACK_KIND(0, a0) & ATT_DODGE) { ATR_HIT_STOP(a0) = 32; //?????????? ATR_VCT_NO(a0) = 1; //???????? - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? - ATR_CHR_ACT(a0) = 1; //????????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_ACT(a0) = 1; //????????? gemini(a0); ATR_VCT_NO(a1) = 16; //???? - ATR_CRS(a1) = ATR_CRS(a0); //????????????? + ATR_CRS(a1) = ATR_CRS(a0); //????????????? ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); // ATR_STIMER(a1) = 0; ATR_FIRST_FLG(a1) = 0; //?????????? break; } - //???????????? + //???????????? if (!((ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) | (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION))) { if ((ATR_ATTACK_POW(0, a0) == 0) && (ATR_ATTACK_PET_POW(0, a0) == 0)) //???? { - a2 = ATR_BODY_WORK(0, a0); //???????? - //?? + a2 = ATR_BODY_WORK(0, a0); //???????? + //?? set_damage_num(a2, 0, -64); ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? ATR_VCT_NO(a0) = 1; //???????? - ATR_CHR_ACT(a0) = 1; //????????? - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_ACT(a0) = 1; //????????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? break; } } - //????????? + //????????? if (ATR_ATTACK_KIND(0, a0) & ATT_CRUSH) - set_damage_num(a1, 19, -112); //????? + set_damage_num(a1, 19, -112); //????? //????????? ATR_AKO_FLG(a1) = 0; if (ATR_ATTACK_KIND(0, a0) & ATT_AKO1) //?????? @@ -3206,38 +3206,38 @@ void axe_shadow(ACTION *a0) if (ATR_ATTACK_KIND(0, a0) & ATT_AKO2) //?????? ATR_AKO_FLG(a1) = 2; if (ATR_ATTACK_KIND(0, a0) & ATT_DEATH) //????? - ATR_LIFE(a1) = 0; //????? + ATR_LIFE(a1) = 0; //????? ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); // - if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? + if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? { if (!ATR_COMBO(a1)) //???????? { - //??k + //?? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_LIFE(a1) += ATR_DAMAGE(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); ATR_PET_LIFE(a1) += ATR_PET_DAMAGE(a1); - if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? - ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? + if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? + ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? set_damage_num(a1, 14, -64); - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //pet????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //pet????? } } else if (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) //???????? { - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //????? } else - ATR_VCT_NO(a1) = 10; //????? - //?????? + ATR_VCT_NO(a1) = 10; //????? + //?????? if (ATR_ATTACK_KIND(0, a0) & ATT_SATISFACTORY) - ATR_KAISHIN(a1) = 1; //??????? + ATR_KAISHIN(a1) = 1; //??????? else - ATR_KAISHIN(a1) = 0; //G????? + ATR_KAISHIN(a1) = 0; //????? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); //????? @@ -3245,42 +3245,42 @@ void axe_shadow(ACTION *a0) ATR_GUARD_FLG(a1) = 1; else ATR_GUARD_FLG(a1) = 0; - if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) //????? + if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) //????? { - ATR_LONG_WORK(1, a0) = 1; //??????? + ATR_LONG_WORK(1, a0) = 1; //??????? //???????? if (ATR_COMBO(a1) == 0) - ATR_KAISHIN(a1) = 1; //??????? + ATR_KAISHIN(a1) = 1; //??????? } - if (ATR_KAISHIN(a1)) //?????? + if (ATR_KAISHIN(a1)) //?????? ATR_HIT_STOP(a0) = HIT_STOP_TIM * 4; //?????????? else ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? - //????????????? + //????????????? if (ATR_DAMAGE(a1) || (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) || (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION)) { if (ATR_ATTACK_KIND(0, a0) & ATT_COUNTER) //??????? { //???????? if (ATR_COMBO(a1) == 0) - set_damage_num(a0, 1, -64 + 16);//????? + set_damage_num(a0, 1, -64 + 16);//????? } //??? play_se(252, ATR_H_POS(a0), ATR_V_POS(a0)); //????????? set_hit_mark(a0); } - ATR_HIT_STOP(a0) /= 4; //?????????? + ATR_HIT_STOP(a0) /= 4; //?????????? ATR_VCT_NO(a0) = 3; //???????? a1 = ATR_BODY_WORK(2, a0); //??????? ATR_VCT_NO(a1) = 1; //???????? - ATR_CHR_ACT(a1) = 1; //????????? + ATR_CHR_ACT(a1) = 1; //????????? } else { - ATR_INT_WORK2(a0) = ATR_H_POS(a0); //?h?? + ATR_INT_WORK2(a0) = ATR_H_POS(a0); //??? ATR_INT_WORK3(a0) = ATR_V_POS(a0); // - gemini(a0); //?h + gemini(a0); //? ATR_INT_WORK2(a0) = ATR_H_POS(a0) - ATR_INT_WORK2(a0); ATR_INT_WORK3(a0) = ATR_V_POS(a0) - ATR_INT_WORK3(a0); } @@ -3288,7 +3288,7 @@ void axe_shadow(ACTION *a0) case 1: if (--ATR_HIT_STOP(a0)) //?????????? break; - ATR_CHR_ACT(a0) = 0; //?h??????? + ATR_CHR_ACT(a0) = 0; //???????? //??????? if (ATR_ATTACK_KIND(0, a0) & ATT_DODGE) ATR_STIMER(a0) = 32; @@ -3301,33 +3301,33 @@ void axe_shadow(ACTION *a0) case 2: if (--ATR_STIMER(a0)) break; - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? - DeathAction(a0); //? + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? + DeathAction(a0); //? break; case 3: if (--ATR_HIT_STOP(a0)) //?????????? break; a1 = ATR_BODY_WORK(2, a0); //??????? - ATR_CHR_ACT(a1) = 0; //?h??????? - //?????????h?? + ATR_CHR_ACT(a1) = 0; //???????? + //??????????? ATR_GROUP_FLG(a0) = 35; ATR_SPD(a0) = 16; a1 = ATR_BODY_WORK(2, a0); //??????? - ATR_VCT_NO(a1) = 2; //?h?? + ATR_VCT_NO(a1) = 2; //??? ATR_SPD(a1) = 32; ATR_CRS(a1) = 0; ATR_VCT_NO(a0)++; break; case 4: - ATR_INT_WORK2(a0) = ATR_H_POS(a0); //?h?? + ATR_INT_WORK2(a0) = ATR_H_POS(a0); //??? ATR_INT_WORK3(a0) = ATR_V_POS(a0); // - gemini(a0); //?h + gemini(a0); //? ATR_INT_WORK2(a0) = ATR_H_POS(a0) - ATR_INT_WORK2(a0); ATR_INT_WORK3(a0) = ATR_V_POS(a0) - ATR_INT_WORK3(a0); - if (!--ATR_GROUP_FLG(a0)) //??? + if (!--ATR_GROUP_FLG(a0)) //??? { - if (ATR_LONG_WORK(1, a0)) //??????? - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? + if (ATR_LONG_WORK(1, a0)) //??????? + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? ATR_VCT_NO(a0)++; } break; @@ -3345,24 +3345,24 @@ void axe_shadow(ACTION *a0) ATR_STIMER(a0)--; break; } - ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? a1 = ATR_BODY_WORK(2, a0); //??????? - ATR_ATTRIB(a1) = ACT_ATR_HIDE; //?? - a1 = ATR_BODY_WORK(0, a0); //???????? - if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //r??????? + ATR_ATTRIB(a1) = ACT_ATR_HIDE; //?? + a1 = ATR_BODY_WORK(0, a0); //???????? + if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //??????? { - if (!ATR_LONG_WORK(1, a0)) //?????? - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? - DeathAction(a0); //? + if (!ATR_LONG_WORK(1, a0)) //?????? + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? + DeathAction(a0); //? p_missile[0] = NULL; // a1 = ATR_BODY_WORK(2, a0); //??????? - DeathAction(a1); //? + DeathAction(a1); //? } } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); } -/* ???? *******************************************************************/ +/* ???? *******************************************************************/ void stone(ACTION *a0) { ACTION *a1, *a2; @@ -3371,21 +3371,21 @@ void stone(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - a1 = ATR_BODY_WORK(1, a0); //?s??????? + a1 = ATR_BODY_WORK(1, a0); //???????? if (ATR_VCT_NO(a1) == 1) { - DeathAction(a0); //? + DeathAction(a0); //? return; } ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; - a2 = ATR_BODY_WORK(0, a0); //??????? + a2 = ATR_BODY_WORK(0, a0); //??????? d0 = ATR_H_POS(a2); d1 = ATR_V_POS(a2); radar(a1, &d0, &d1); //???? ATR_STIMER(a0)++; - if (ATR_CRS(a0) == 0) //?? + if (ATR_CRS(a0) == 0) //?? { - if (ATR_SPD(a0) == 0) //????? + if (ATR_SPD(a0) == 0) //????? ATR_CRS(a0) = 16; else ATR_SPD(a0) -= 1; @@ -3402,10 +3402,10 @@ void stone(ACTION *a0) ATR_VCT_NO(a0)++; break; case 3: - a1 = ATR_BODY_WORK(1, a0); //?s??????? + a1 = ATR_BODY_WORK(1, a0); //???????? if (ATR_VCT_NO(a1) == 1) { - DeathAction(a0); //? + DeathAction(a0); //? return; } ATR_DISP_PRIO(a0) = ATR_DISP_PRIO(a1) + 1; @@ -3421,9 +3421,9 @@ void stone(ACTION *a0) { //???? if (!--ATR_LONG_WORK(1, a0)) - ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? } - a1 = ATR_BODY_WORK(1, a0); //?s??????? + a1 = ATR_BODY_WORK(1, a0); //???????? ATR_H_POS(a0) = ATR_H_POS(a1); ATR_V_POS(a0) = ATR_V_POS(a1); break; @@ -3431,7 +3431,7 @@ void stone(ACTION *a0) pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); } -/* ????? *******************************************************************/ +/* ????? *******************************************************************/ void stone_shadow(ACTION *a0) { ACTION *a1, *a2, *a3; @@ -3440,7 +3440,7 @@ void stone_shadow(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? @@ -3448,18 +3448,18 @@ void stone_shadow(ACTION *a0) //??????? if (!--ATR_GROUP_FLG(a0)) { - a2 = ATR_BODY_WORK(0, a0); //???????? + a2 = ATR_BODY_WORK(0, a0); //???????? if (ATR_LIFE(a2) <= 0) //?????? { ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? ATR_VCT_NO(a0) = 1; //???????? - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; } #ifdef _PETSKILL_ACUPUNCTURE ///////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -3475,49 +3475,49 @@ void stone_shadow(ACTION *a0) ///////////////////////////// #else ///////////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP)) #else if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA)) #endif ///////////////////////////// #endif - set_guard_mark(a0); //\?Ӥ? + set_guard_mark(a0); //?? //????????? ATR_COMBO(a1) = 0; - //??????? + //??????? if (ATR_ATTACK_KIND(0, a0) & ATT_DODGE) { ATR_HIT_STOP(a0) = 32; //?????????? ATR_VCT_NO(a0) = 1; //???????? - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); gemini(a0); ATR_VCT_NO(a1) = 16; //???? - ATR_CRS(a1) = ATR_CRS(a0); //????????????? + ATR_CRS(a1) = ATR_CRS(a0); //????????????? ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); // ATR_STIMER(a1) = 0; ATR_FIRST_FLG(a1) = 0; //?????????? break; } - //???????????? + //???????????? if (!((ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) | (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION))) { if ((ATR_ATTACK_POW(0, a0) == 0) && (ATR_ATTACK_PET_POW(0, a0) == 0)) //???? { - a2 = ATR_BODY_WORK(0, a0); //???????? - //?? + a2 = ATR_BODY_WORK(0, a0); //???????? + //?? set_damage_num(a2, 0, -64); ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? ATR_VCT_NO(a0) = 1; //???????? - ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? + ATR_CHR_NO(a0) = ATR_LONG_WORK(0, a0); //?????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; } } - //????????? + //????????? if (ATR_ATTACK_KIND(0, a0) & ATT_CRUSH) - set_damage_num(a1, 19, -112);//????? + set_damage_num(a1, 19, -112);//????? //????????? ATR_AKO_FLG(a1) = 0; if (ATR_ATTACK_KIND(0, a0) & ATT_AKO1) //?????? @@ -3525,38 +3525,38 @@ void stone_shadow(ACTION *a0) if (ATR_ATTACK_KIND(0, a0) & ATT_AKO2) //?????? ATR_AKO_FLG(a1) = 2; if (ATR_ATTACK_KIND(0, a0) & ATT_DEATH) //????? - ATR_LIFE(a1) = 0; //????? + ATR_LIFE(a1) = 0; //????? ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); // - if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? + if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? { if (!ATR_COMBO(a1)) //???????? { - //??k + //?? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_LIFE(a1) += ATR_DAMAGE(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); ATR_PET_LIFE(a1) += ATR_PET_DAMAGE(a1); - if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? - ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? + if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? + ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? set_damage_num(a1, 14, -64); - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //pet????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //pet????? } } else if (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) //???????? { - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //????? } else - ATR_VCT_NO(a1) = 10; //????? - //?????? + ATR_VCT_NO(a1) = 10; //????? + //?????? if (ATR_ATTACK_KIND(0, a0) & ATT_SATISFACTORY) - ATR_KAISHIN(a1) = 1; //??????? + ATR_KAISHIN(a1) = 1; //??????? else - ATR_KAISHIN(a1) = 0; //G????? + ATR_KAISHIN(a1) = 0; //????? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); //????? @@ -3564,25 +3564,25 @@ void stone_shadow(ACTION *a0) ATR_GUARD_FLG(a1) = 1; else ATR_GUARD_FLG(a1) = 0; - if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) //????? + if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) //????? { - ATR_LONG_WORK(1, a0) = 1; //??????? + ATR_LONG_WORK(1, a0) = 1; //??????? //???????? if (ATR_COMBO(a1) == 0) - ATR_KAISHIN(a1) = 1; //??????? + ATR_KAISHIN(a1) = 1; //??????? } - if (ATR_KAISHIN(a1)) //?????? + if (ATR_KAISHIN(a1)) //?????? ATR_HIT_STOP(a0) = HIT_STOP_TIM * 4; //?????????? else ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? - //????????????? + //????????????? if (ATR_DAMAGE(a1) || (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) || (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION)) { if (ATR_ATTACK_KIND(0, a0) & ATT_COUNTER) //??????? { //???????? if (ATR_COMBO(a1) == 0) - set_damage_num(a0, 1, -64 + 16); //????? + set_damage_num(a0, 1, -64 + 16); //????? } //??? play_se(252, ATR_H_POS(a0), ATR_V_POS(a0)); @@ -3590,18 +3590,18 @@ void stone_shadow(ACTION *a0) set_hit_mark(a0); } ATR_VCT_NO(a0) = 3; //???????? - a1 = ATR_BODY_WORK(2, a0); //?????? + a1 = ATR_BODY_WORK(2, a0); //?????? ATR_VCT_NO(a1) = 1; //???????? } else { - ATR_INT_WORK2(a0) = ATR_H_POS(a0); //?h?? + ATR_INT_WORK2(a0) = ATR_H_POS(a0); //??? ATR_INT_WORK3(a0) = ATR_V_POS(a0); // - gemini(a0); //?h + gemini(a0); //? ATR_INT_WORK2(a0) = ATR_H_POS(a0) - ATR_INT_WORK2(a0); ATR_INT_WORK3(a0) = ATR_V_POS(a0) - ATR_INT_WORK3(a0); } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; case 1: @@ -3619,49 +3619,49 @@ void stone_shadow(ACTION *a0) case 2: if (--ATR_STIMER(a0)) break; - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? - DeathAction(a0); //? + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? + DeathAction(a0); //? break; case 3: - a1 = ATR_BODY_WORK(2, a0); //?????? - ATR_CHR_NO(a1) = SPR_isiware; //????? - if (pattern(a1, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? + a1 = ATR_BODY_WORK(2, a0); //?????? + ATR_CHR_NO(a1) = SPR_isiware; //????? + if (pattern(a1, ANM_NOMAL_SPD, ANM_NO_LOOP)) //?????? goto stone_shadow_100; - if (!pattern(a1, ANM_NOMAL_SPD, ANM_NO_LOOP)) //????????? + if (!pattern(a1, ANM_NOMAL_SPD, ANM_NO_LOOP)) //????????? break; stone_shadow_100: - //?????????h?? + //??????????? ATR_GROUP_FLG(a0) = 10; ATR_SPD(a0) = 6; ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; d0 = ATR_CRS(a0); if (d0 >= 4 && d0 < BATTLKPKPLYAERNUM) - ATR_CHR_NO(a1) = 25784; //𦄨??? + ATR_CHR_NO(a1) = 25784; //??? else - ATR_CHR_NO(a1) = 25783; //𦄨??? + ATR_CHR_NO(a1) = 25783; //??? ATR_CRS(a0) -= 8; ATR_CRS(a0) &= 31; - a1 = ATR_BODY_WORK(2, a0); //?????? - ATR_VCT_NO(a1) = 2; //?h?? + a1 = ATR_BODY_WORK(2, a0); //?????? + ATR_VCT_NO(a1) = 2; //??? ATR_SPD(a1) = 0; ATR_CRS(a1) = 16; ATR_LONG_WORK(1, a1) = 30; ATR_VCT_NO(a0)++; - //????? + //????? a3 = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); //????? a2 = GetAction(T_PRIO_BOW - 1, sizeof(ATR_EQU)); ATR_NAME(a2) = ATR_NAME(a0); ATR_VCT_NO(a2) = ATR_VCT_NO(a0); - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a2) = ATR_DISP_PRIO(a0); - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a2) = ATR_CHR_NO(a0); - /* ???t */ + /* ??? */ ATR_CHR_ANG(a2) = ATR_CHR_ANG(a0); - ATR_BODY_WORK(0, a2) = ATR_BODY_WORK(0, a0); //???? - ATR_BODY_WORK(1, a2) = ATR_BODY_WORK(1, a0); //D????? - ATR_BODY_WORK(2, a2) = a3; //?????? + ATR_BODY_WORK(0, a2) = ATR_BODY_WORK(0, a0); //???? + ATR_BODY_WORK(1, a2) = ATR_BODY_WORK(1, a0); //????? + ATR_BODY_WORK(2, a2) = a3; //?????? ATR_ATTACK_POW(0, a2) = ATR_ATTACK_POW(0, a0); //??? ATR_ATTACK_PET_POW(0, a2) = ATR_ATTACK_PET_POW(0, a0); //??? ATR_ATTACK_KIND(0, a2) = ATR_ATTACK_KIND(0, a0); //????? @@ -3674,14 +3674,14 @@ void stone_shadow(ACTION *a0) pattern(a2, ANM_NOMAL_SPD, ANM_LOOP); p_missile[1] = a1; p_missile[2] = NULL; - /* ?????k? */ + /* ?????? */ if (d0 >= 4 && d0 < BATTLKPKPLYAERNUM) - ATR_CHR_NO(a3) = 25783; //𦄨??? + ATR_CHR_NO(a3) = 25783; //??? else - ATR_CHR_NO(a3) = 25784; //𦄨??? + ATR_CHR_NO(a3) = 25784; //??? ATR_NAME(a3) = ATR_NAME(a1); ATR_VCT_NO(a3) = ATR_VCT_NO(a1); - ATR_BODY_WORK(1, a3) = a2; //?s??????? + ATR_BODY_WORK(1, a3) = a2; //???????? ATR_VCT_NO(a3) = ATR_VCT_NO(a1); ATR_DISP_PRIO(a3) = ATR_DISP_PRIO(a1); ATR_SPD(a3) = ATR_SPD(a1); @@ -3691,12 +3691,12 @@ void stone_shadow(ACTION *a0) ATR_LONG_WORK(1, a3) = 30; break; case 4: - ATR_INT_WORK2(a0) = ATR_H_POS(a0); //?h?? + ATR_INT_WORK2(a0) = ATR_H_POS(a0); //??? ATR_INT_WORK3(a0) = ATR_V_POS(a0); // - gemini(a0); //?h + gemini(a0); //? ATR_INT_WORK2(a0) = ATR_H_POS(a0) - ATR_INT_WORK2(a0); ATR_INT_WORK3(a0) = ATR_V_POS(a0) - ATR_INT_WORK3(a0); - if (!--ATR_GROUP_FLG(a0)) //??? + if (!--ATR_GROUP_FLG(a0)) //??? { //???? ATR_LONG_WORK(2, a0) = 60; @@ -3705,23 +3705,23 @@ void stone_shadow(ACTION *a0) } break; case 5: - ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? - a1 = ATR_BODY_WORK(2, a0); //?????? + ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? + a1 = ATR_BODY_WORK(2, a0); //?????? ATR_VCT_NO(a1) = 4; //??? ATR_VCT_NO(a0)++; break; case 6: - a1 = ATR_BODY_WORK(0, a0); //???????? - if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //r??????? + a1 = ATR_BODY_WORK(0, a0); //???????? + if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) //??????? { - if (!ATR_LONG_WORK(1, a0)) //?????? - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? - DeathAction(a0); //? + if (!ATR_LONG_WORK(1, a0)) //?????? + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? + DeathAction(a0); //? p_missile[0] = NULL; // p_missile[1] = NULL; // - a1 = ATR_BODY_WORK(2, a0); //?????? - DeathAction(a1); //? + a1 = ATR_BODY_WORK(2, a0); //?????? + DeathAction(a1); //? } case 7: if (ATR_LONG_WORK(3, a0)) @@ -3729,21 +3729,21 @@ void stone_shadow(ACTION *a0) ATR_LONG_WORK(3, a0) = 0; //??? play_se(251, ATR_H_POS(a0), ATR_V_POS(a0)); - ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? - a1 = ATR_BODY_WORK(2, a0); //?????? + ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? + a1 = ATR_BODY_WORK(2, a0); //?????? ATR_VCT_NO(a1) = 4; } - if (!--ATR_LONG_WORK(2, a0)) //??? + if (!--ATR_LONG_WORK(2, a0)) //??? { - if (ATR_LONG_WORK(1, a0)) //??????? - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? + if (ATR_LONG_WORK(1, a0)) //??????? + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? ATR_VCT_NO(a0) = 5; } } } //Terry add 2001/12/31 -/* ӰӴ *******************************************************************/ +/* 鞭炮影子处理 *******************************************************************/ #ifdef _ITEM_FIRECREAKER void firecracker_shadow(ACTION *a0) { @@ -3753,47 +3753,47 @@ void firecracker_shadow(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - a1 = ATR_BODY_WORK(0, a0); //˵λַ + a1 = ATR_BODY_WORK(0, a0); //敌人的位址 d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); - radar(a0, &d0, &d1); //״(·) - ATR_CRS(a0) = d0; //· - //׼ + radar(a0, &d0, &d1); //雷达(计算路线) + ATR_CRS(a0) = d0; //动画路线 + //准备命中 if (!--ATR_GROUP_FLG(a0)) { ATR_VCT_NO(a0) = 1; //???????? - a1 = ATR_BODY_WORK(2, a0); //?????? + a1 = ATR_BODY_WORK(2, a0); //?????? ATR_VCT_NO(a1) = 1; //???????? - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 0; //??? - ATR_ATTRIB(a0) = ACT_ATR_HIDE; //Ӱӽ - ATR_CHR_NO(a1) = 101121; //ը + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 0; //??? + ATR_ATTRIB(a0) = ACT_ATR_HIDE; //影子结束 + ATR_CHR_NO(a1) = 101121; //鞭炮炸开 ATR_H_POS(a1) += 50; } else { - ATR_INT_WORK2(a0) = ATR_H_POS(a0); //?h?? + ATR_INT_WORK2(a0) = ATR_H_POS(a0); //??? ATR_INT_WORK3(a0) = ATR_V_POS(a0); // - gemini(a0); //?h + gemini(a0); //? ATR_INT_WORK2(a0) = ATR_H_POS(a0) - ATR_INT_WORK2(a0); ATR_INT_WORK3(a0) = ATR_V_POS(a0) - ATR_INT_WORK3(a0); - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); } break; case 1: - a1 = ATR_BODY_WORK(2, a0); //λַ - if (!pattern(a1, 36, ANM_NO_LOOP)) //δ + a1 = ATR_BODY_WORK(2, a0); //鞭炮位址 + if (!pattern(a1, 36, ANM_NO_LOOP)) //动画未播完 break; - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? if (ATR_NAME(a1) == NULL || ATR_VCT_NO(a1) >= VCT_NO_DIE || ATR_VCT_NO(a1) == 0) - { //r??????? - if (!ATR_LONG_WORK(1, a0)) //?????? - ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? - DeathAction(a0); //? + { //??????? + if (!ATR_LONG_WORK(1, a0)) //?????? + ATR_STIMER(ATR_BODY_WORK(1, a0)) = 1; //??? + DeathAction(a0); //? p_missile[0] = NULL; // p_missile[1] = NULL; // - a1 = ATR_BODY_WORK(2, a0); //?????? - DeathAction(a1); //? + a1 = ATR_BODY_WORK(2, a0); //?????? + DeathAction(a1); //? } break; } @@ -3810,7 +3810,7 @@ void missile(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? @@ -3818,7 +3818,7 @@ void missile(ACTION *a0) //??????? if (d1 <= 32) { - a2 = ATR_BODY_WORK(0, a0); //???????? + a2 = ATR_BODY_WORK(0, a0); //???????? if (ATR_LIFE(a2) <= 0) //?????? { ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? @@ -3828,40 +3828,40 @@ void missile(ACTION *a0) //???? if ((ATR_ATTACK_POW(0, a0) == 0) && (ATR_ATTACK_PET_POW(0, a0) == 0)) { - a2 = ATR_BODY_WORK(0, a0); //???????? - //?? + a2 = ATR_BODY_WORK(0, a0); //???????? + //?? set_damage_num(a2, 0, -64); ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? ATR_VCT_NO(a0) = 1; //???????? break; } - ATR_CRS(a1) = d0; //????????????? + ATR_CRS(a1) = d0; //????????????? ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); // - if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? + if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? { if (!ATR_COMBO(a1)) //???????? { - //??k + //?? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_LIFE(a1) += ATR_DAMAGE(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); ATR_PET_LIFE(a1) += ATR_PET_DAMAGE(a1); - if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? - ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? + if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? + ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? set_damage_num(a1, 14, -64); - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //pet????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //pet????? } } else if (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) //???????? { - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //????? } else - ATR_VCT_NO(a1) = 10; //????? + ATR_VCT_NO(a1) = 10; //????? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); // ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); // //????? @@ -3869,34 +3869,34 @@ void missile(ACTION *a0) ATR_GUARD_FLG(a1) = 1; else ATR_GUARD_FLG(a1) = 0; - if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) //????? + if (ATR_LIFE(a1) - ATR_DAMAGE(a1) <= 0) //????? { - ATR_KAISHIN(a1) = 1; //??????? + ATR_KAISHIN(a1) = 1; //??????? ATR_HIT_STOP(a0) = HIT_STOP_TIM * 4; //?????????? } else { - ATR_KAISHIN(a1) = 0; //G????? + ATR_KAISHIN(a1) = 0; //????? ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? } ATR_VCT_NO(a0) = 1; //???????? //??? play_se(103, 320, 240); - //?????? + //?????? a1 = GetAction(T_PRIO_MAGIC_EFFECT, sizeof(ATR_EQU)); if (a1 == NULL) return; - /* ??? */ + /* ??? */ ATR_NAME(a1) = magic_effect; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MAGIC_EFFECT; ATR_CHR_NO(a1) = 36009; - /* ???t */ + /* ??? */ ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); } else - gemini(a0); //?h - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + gemini(a0); //? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; case 1: @@ -3910,8 +3910,8 @@ void missile(ACTION *a0) case 2: if (--ATR_STIMER(a0)) break; - ATR_DAMAGE(p_master)++; //??? - DeathAction(a0); //? + ATR_DAMAGE(p_master)++; //??? + DeathAction(a0); //? break; } } @@ -3925,33 +3925,33 @@ void amelioration(ACTION *a0) switch (ATR_VCT_NO(a0)) { case 0: - if (ATR_INT_WORK0(a0) == 0) //??q?? + if (ATR_INT_WORK0(a0) == 0) //???? { d0 = 310; d1 = 222; radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? - gemini(a0); //?h + gemini(a0); //? if (d1 <= (ATR_SPD(a0) >> 2)) //???? - ATR_INT_WORK0(a0) = 1; //????? + ATR_INT_WORK0(a0) = 1; //????? } else { - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar2(a0, d0, d1, 1); //???? - if (ATR_INT_WORK1(a0) == 0) //???????? + if (ATR_INT_WORK1(a0) == 0) //???????? ATR_CHR_ANG(a0) = crs_change_tbl[ATR_CRS(a0)]; /* ????? */ d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? if (d0 == ATR_CRS(a0)) //?????? - ATR_INT_WORK1(a0) = 1; //???????? + ATR_INT_WORK1(a0) = 1; //???????? //??????? if (d1 <= 32) { - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? if (ATR_LIFE(a1) <= 0) //?????? { ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? @@ -3959,29 +3959,29 @@ void amelioration(ACTION *a0) break; } ATR_COUNTER(a1) = NULL; //???????? - ATR_VCT_NO(a1) = 15; //??? + ATR_VCT_NO(a1) = 15; //??? ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? - ATR_KAISHIN(a1) = 0; //??????? + ATR_KAISHIN(a1) = 0; //??????? ATR_VCT_NO(a0) = 1; //???????? //??? play_se(100, 320, 240); - //?????? + //?????? a1 = GetAction(T_PRIO_MAGIC_EFFECT, sizeof(ATR_EQU)); if (a1 == NULL) return; - /* ??? */ + /* ??? */ ATR_NAME(a1) = magic_effect; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MAGIC_EFFECT; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = 36009; - /* ???t */ + /* ??? */ ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); } else - gemini(a0); //?h + gemini(a0); //? } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; case 1: @@ -3995,13 +3995,13 @@ void amelioration(ACTION *a0) case 2: if (--ATR_STIMER(a0)) break; - ATR_DAMAGE(p_master)++; //??? - DeathAction(a0); //? + ATR_DAMAGE(p_master)++; //??? + DeathAction(a0); //? break; } } -// ???{??? ////////////////////////////////////////////////////////////// +// ?????? ////////////////////////////////////////////////////////////// typedef int CMPFUNC(const void*, const void*); int sort_chr(SORT_CHR_EQU *a0, SORT_CHR_EQU *a1) { @@ -4025,7 +4025,7 @@ void set_raster_pos(ACTION *a1) #ifdef __ATTACK_MAGIC int value = 0; - // ڵлĵͼʱ + // 如果正在地震中或特殊的地图编号时 if ((g_iRunEarthQuake < 2) && (BattleMapNo < 148 || BattleMapNo > 150)) return; if (2 == g_iRunEarthQuake) @@ -4055,7 +4055,7 @@ void set_raster_pos(ACTION *a1) } /*------------------------------------------- - ???k????? + ???????? --------------------------------------------*/ static int get_num(void) { @@ -4078,8 +4078,8 @@ static int get_num(void) d1 = d0 - '0'; while (1) { - d0 = BattleCmd[command_point++]; //??????? - if (d0 == NULL) //??? + d0 = BattleCmd[command_point++]; //??????? + if (d0 == NULL) //??? { command_point--; break; @@ -4087,7 +4087,7 @@ static int get_num(void) if (d0 < '0' || d0 > '9') //?????? { if (d0 < 'A' || d0 > 'F') //???????? - break; //? + break; //? } d1 = d1 << 4; //??????? if (d0 >= 'A') //????? @@ -4113,8 +4113,8 @@ static int get_mpnum(char code) while (1) { - d0 = BattleCmd[num++]; //???? - if (d0 == NULL) //??? + d0 = BattleCmd[num++]; //???? + if (d0 == NULL) //??? return -1; if (d0 >= '0' && d0 <= '9') //??? break; //?????? @@ -4128,8 +4128,8 @@ static int get_mpnum(char code) while (1) { - d0 = BattleCmd[num++]; //??????? - if (d0 == NULL) //??? + d0 = BattleCmd[num++]; //??????? + if (d0 == NULL) //??? { command_point--; break; @@ -4137,7 +4137,7 @@ static int get_mpnum(char code) if (d0 < '0' || d0 > '9') //?????? { if (d0 < 'A' || d0 > 'F') //???????? - break; //? + break; //? } d1 = d1 << 4; //??????? if (d0 >= 'A') //????? @@ -4148,7 +4148,7 @@ static int get_mpnum(char code) return d1; } /*------------------------------------------- - ????????? + ????????? --------------------------------------------*/ static char get_command(void) { @@ -4176,13 +4176,13 @@ static char get_char() { char d0; - d0 = BattleCmd[command_point++]; //??? - if (d0 == NULL) //?????? - return -1; //? + d0 = BattleCmd[command_point++]; //??? + if (d0 == NULL) //?????? + return -1; //? return d0; } -/* q??? *******************************************************************/ +/* ??? *******************************************************************/ void get_name(ACTION *a1) { char d0; @@ -4191,10 +4191,10 @@ void get_name(ACTION *a1) a2 = ATR_HANDLE(a1); while (1) { - d0 = BattleCmd[command_point++]; //???? - if (d0 == NULL) //??? + d0 = BattleCmd[command_point++]; //???? + if (d0 == NULL) //??? break; - //???? + //???? if (d0 == '|') break; if (IsDBCSLeadByte(d0)) @@ -4205,25 +4205,25 @@ void get_name(ACTION *a1) else *a2++ = d0; } - //???? + //???? *a2 = 0; makeStringFromEscaped(ATR_HANDLE(a1)); } /*------------------------------------------- - ?????????? + ?????????? --------------------------------------------*/ static int get_next_flg(void) { int d0, d1; - d1 = command_point; //?????????~ - d0 = get_num(); //?? - if (d0 == -1) //??? + d1 = command_point; //????????? + d0 = get_num(); //?? + if (d0 == -1) //??? goto get_next_flg_500; - if (d0 == 255) //??? + if (d0 == 255) //??? goto get_next_flg_500; - d0 = get_num(); //????? + d0 = get_num(); //????? goto get_next_flg_700; get_next_flg_500: d0 = 0; @@ -4234,25 +4234,25 @@ get_next_flg_700: } /*------------------------------------------- - ??????? + ??????? --------------------------------------------*/ static int get_body_cnt(void) { int d0, d1, d2 = 0; - d1 = command_point; //?????????~ + d1 = command_point; //????????? while (1) { - d0 = get_num(); //?? - if (d0 == -1) //??? + d0 = get_num(); //?? + if (d0 == -1) //??? break; - if (d0 == 255) //??? + if (d0 == 255) //??? break; get_num(); //??????? get_num(); //???????? if (BattleCmd[command_point] == 'p') get_num(); //pet???????? - d2++; //?? + d2++; //?? } command_point = d1; //??????????? @@ -4260,14 +4260,14 @@ static int get_body_cnt(void) } /*------------------------------------------- - ??????? + ??????? --------------------------------------------*/ static ACTION *get_body_target(void) { int d0, d1; - d1 = command_point; //?????????~ - d0 = get_num(); //?? + d1 = command_point; //????????? + d0 = get_num(); //?? command_point = d1; //??????????? if (d0 == -1) return 0; @@ -4275,18 +4275,18 @@ static ACTION *get_body_target(void) return p_party[d0]; } -//ȫȷϴ +//全灭确认处理 int check_all_dead(void) { int d0, d7; - d0 = 10; //趨 + d0 = 10; //检查人数设定 for (d7 = 0; d7 < 5; d7++) { if (ATR_NAME(p_party[d7]) != NULL) //???????????? { if (ATR_PET_OK(p_party[d7])) - d0 = 5; //趨 + d0 = 5; //检查人数设定 break; } } @@ -4294,10 +4294,10 @@ int check_all_dead(void) { if (ATR_NAME(p_party[d7]) != NULL) { - if (ATR_LIFE(p_party[d7]) > 0) //һǻŵ + if (ATR_LIFE(p_party[d7]) > 0) //假如有一个人是活着的 break; #ifdef _PETSKILL_LER - // ׶һμڶʱȫ,Ϊ + // 雷尔第一段及第二段死亡时不能算全灭,因为会变身 else if (ATR_CHR_NO(p_party[d7]) == 101813 || ATR_CHR_NO(p_party[d7]) == 101814) break; #endif @@ -4306,22 +4306,22 @@ int check_all_dead(void) break; #endif #ifdef _HUNDRED_KILL - //npcû + //代表百人npc还没真正死掉 if( BattleHundredFlag == TRUE ) break; #endif } } - if (d7 == d0) //ȫ + if (d7 == d0) //全灭 return 1; - d0 = 20; //趨 + d0 = 20; //检查人数设定 for (d7 = 10; d7 < 15; d7++) { if (ATR_NAME(p_party[d7]) != NULL) //???????????? { if (ATR_PET_OK(p_party[d7])) - d0 = 15; //趨 + d0 = 15; //检查人数设定 break; } } @@ -4329,10 +4329,10 @@ int check_all_dead(void) { if (ATR_NAME(p_party[d7]) != NULL) { - if (ATR_LIFE(p_party[d7]) > 0) //һǻŵ + if (ATR_LIFE(p_party[d7]) > 0) //假如有一个人是活着的 break; #ifdef _PETSKILL_LER - // ׶һμڶʱȫ,Ϊ + // 雷尔第一段及第二段死亡时不能算全灭,因为会变身 else if (ATR_CHR_NO(p_party[d7]) == 101813 || ATR_CHR_NO(p_party[d7]) == 101814) break; #endif @@ -4341,18 +4341,18 @@ int check_all_dead(void) break; #endif #ifdef _HUNDRED_KILL - //npcû + //代表百人npc还没真正死掉 if( BattleHundredFlag == TRUE ) break; #endif } } - if (d7 == d0) //ȫ return 1 + if (d7 == d0) //全灭 return 1 return 1; - return 0; //˻ return 0 + return 0; //还有人活着 return 0 } -//Աʾ +//属性表示处理 void disp_attrib(ACTION *a0) { ACTION *a1; @@ -4360,26 +4360,26 @@ void disp_attrib(ACTION *a0) a1 = p_attrib; switch (ATR_ATTRIB(a0)) { - // + //无属性 case 0: - ATR_ATTRIB(a1) = ACT_ATR_HIDE; //ʾ + ATR_ATTRIB(a1) = ACT_ATR_HIDE; //不表示 break; - // + //地属性 case 1: ATR_ATTRIB(a1) &= ~ACT_ATR_HIDE; ATR_CHR_NO(a1) = CG_ATR_ICON_EARTH_BATTLE; break; - //ˮ + //水属性 case 2: ATR_ATTRIB(a1) &= ~ACT_ATR_HIDE; ATR_CHR_NO(a1) = CG_ATR_ICON_WATER_BATTLE; break; - // + //火属性 case 3: ATR_ATTRIB(a1) &= ~ACT_ATR_HIDE; ATR_CHR_NO(a1) = CG_ATR_ICON_FIRE_BATTLE; break; - // + //风属性 case 4: ATR_ATTRIB(a1) &= ~ACT_ATR_HIDE; ATR_CHR_NO(a1) = CG_ATR_ICON_WIND_BATTLE; @@ -4388,7 +4388,7 @@ void disp_attrib(ACTION *a0) pattern(a1, ANM_NOMAL_SPD, ANM_NO_LOOP); } -/* ???????? *******************************************************************/ +/* ???????? *******************************************************************/ void get_command_asc(void) { char d0, d1 = 0; @@ -4398,8 +4398,8 @@ void get_command_asc(void) a2 = kanji_buf[d1]; while (1) { - d0 = BattleCmd[command_point++]; //???? - if (d0 == NULL) //??? + d0 = BattleCmd[command_point++]; //???? + if (d0 == NULL) //??? { command_point--; break; @@ -4407,7 +4407,7 @@ void get_command_asc(void) //???? if (d0 == '\t') { - //???? + //???? *a2 = 0; d1++; if (d1 == 4) //????? @@ -4415,7 +4415,7 @@ void get_command_asc(void) a2 = kanji_buf[d1]; continue; } - //???? + //???? if (d0 == '|') break; if (IsDBCSLeadByte(d0)) @@ -4426,12 +4426,12 @@ void get_command_asc(void) else *a2++ = d0; } - //???? + //???? *a2 = 0; } #ifdef __TOCALL_MAGIC -// ٻϽ +// 召唤咒术的资料建立 BOOL BuildToCallMagicData(ACTION *pMaster, ACTION *pAttacker) { int i, idx = 0, midx, midy, count = 0; @@ -4450,7 +4450,7 @@ BOOL BuildToCallMagicData(ACTION *pMaster, ACTION *pAttacker) // ToCallMgc.iPreMgcNum = get_num(); // ToCallMgc.iCurMgcNum = get_num(); ToCallMgc.iPreMgcNum = get_num(); -#ifdef _PETSKILL_LER // ׶ +#ifdef _PETSKILL_LER // 雷尔技能 if (ToCallMgc.iPreMgcNum == 101808 || ToCallMgc.iPreMgcNum == 101809) { if (!g_bUseAlpha) @@ -4465,7 +4465,7 @@ BOOL BuildToCallMagicData(ACTION *pMaster, ACTION *pAttacker) ToCallMgc.iCurMgcNum += 55; } #endif -#ifdef _PETSKILL_LER // ׶ +#ifdef _PETSKILL_LER // 雷尔技能 if (ToCallMgc.iCurMgcNum == 101798) { if (!g_bUseAlpha) @@ -4527,29 +4527,29 @@ BOOL BuildToCallMagicData(ACTION *pMaster, ACTION *pAttacker) ToCallMgc.dwEQuakeSFrame = ToCallMgc.dwEQuakeSTime >> 4; ToCallMgc.dwEQuakeEFrame = ToCallMgc.dwEQuakeETime >> 4; - // Ƿǰ + // 是否有前置咒术 (0XFFFFFFFF == ToCallMgc.iPreMgcNum) ? ToCallMgc.wRunPreMgc = TRUE : ToCallMgc.wRunPreMgc = FALSE; - // λʾ + // 绝对位置显示法 if (1 == ToCallMgc.wShowType) { ToCallMgc.wNumAttacks = 1; ToCallMgc.wCurAttackNum = 0; ToCallMgc.posAttacked[0].x = ToCallMgc.wScreenX; ToCallMgc.posAttacked[0].y = ToCallMgc.wScreenY; - ToCallMgc.wAttackedIndex[0] = 20; // ȫԱͬʱ״̬ + ToCallMgc.wAttackedIndex[0] = 20; // 全部人员皆同时呈受伤状态 ToCallMgc.wMgcFrameCount[0] = 0; - // ĵ + // 被攻击的敌人索引号 for (i = 0; i < idx; i++) ToCallMgc.wAttackedIndex[i + 1] = charidx[i]; ToCallMgc.wAttackedIndex[i + 1] = 0XFF; } - // λʾ + // 居中位置显示法 else { - // ķʽΪȫͬʱ + // 咒术的方式为全体同时攻击 if (2 == ToCallMgc.wAttackType || 4 == ToCallMgc.wAttackType) { midx = 0; @@ -4566,18 +4566,18 @@ BOOL BuildToCallMagicData(ACTION *pMaster, ACTION *pAttacker) ToCallMgc.wCurAttackNum = 0; ToCallMgc.posAttacked[0].x = midx + ToCallMgc.wScreenX; ToCallMgc.posAttacked[0].y = midy + ToCallMgc.wScreenY; - ToCallMgc.wAttackedIndex[0] = 20; // ȫԱͬʱ״̬ + ToCallMgc.wAttackedIndex[0] = 20; // 全部人员皆同时呈受伤状态 ToCallMgc.wMgcFrameCount[0] = 0; - // ĵ + // 被攻击的敌人索引号 for (i = 0; i < idx; i++) ToCallMgc.wAttackedIndex[i + 1] = charidx[i]; ToCallMgc.wAttackedIndex[i + 1] = 0XFF; } - // + // 单独攻击 else { - // ĵ + // 被攻击的敌人索引号 for (i = 0; i < idx; i++) { ToCallMgc.wNumAttacks++; @@ -4597,28 +4597,28 @@ BOOL BuildToCallMagicData(ACTION *pMaster, ACTION *pAttacker) } -// ̬µħ +// 动态产生新的魔法 BOOL RunTimeMagicToCall() { - // ʼ + // 开始地震 if (ToCallMgc.dwEQuakeSFrame == ToCallMgc.dwCurFrame1) { g_iRunEarthQuake = 1; g_iNumRunEarthQuake = ToCallMgc.dwEQuakeEFrame - ToCallMgc.dwEQuakeSFrame; } - // + // 结束地震 if (ToCallMgc.dwEQuakeEFrame == ToCallMgc.dwCurFrame1) g_iRunEarthQuake = 3; ToCallMgc.dwCurFrame1++; - // ǰħǷѾ + // 前置魔法是否已经播完了 if (FALSE == ToCallMgc.wRunPreMgc) return TRUE; if (ToCallMgc.wToCallMagicNo != 2) { - // Ƿδŵ + // 是否仍有尚未播放的咒术 if (ToCallMgc.wCurAttackNum < ToCallMgc.wNumAttacks) { while (1) @@ -4629,7 +4629,7 @@ BOOL RunTimeMagicToCall() a0 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); ATR_NAME(a0) = monster; - ATR_VCT_NO(a0) = TOCALL_MAGIC_CASE + 2; // ִ + ATR_VCT_NO(a0) = TOCALL_MAGIC_CASE + 2; // 咒术的执行 ATR_DISP_PRIO(a0) = (1 == ToCallMgc.wCurMgcOnChar) ? D_PRIO_HIT_MARK : DISP_PRIO_TILE + 1; ATR_CHR_NO(a0) = ToCallMgc.iCurMgcNum; ATR_LONG_WORK(0, a0) = ToCallMgc.wAttackedIndex[ToCallMgc.wCurAttackNum]; @@ -4655,7 +4655,7 @@ BOOL RunTimeMagicToCall() } else { - // Ƿδŵ + // 是否仍有尚未播放的咒术 if (ToCallMgc.wCurAttackNum < ToCallMgc.wNumAttacks) { while (1) @@ -4666,18 +4666,18 @@ BOOL RunTimeMagicToCall() a0 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); ATR_NAME(a0) = monster; - ATR_VCT_NO(a0) = TOCALL_MAGIC_CASE + 2; // ִ + ATR_VCT_NO(a0) = TOCALL_MAGIC_CASE + 2; // 咒术的执行 ATR_DISP_PRIO(a0) = (1 == ToCallMgc.wCurMgcOnChar) ? D_PRIO_HIT_MARK : DISP_PRIO_TILE + 1; ATR_CHR_NO(a0) = ToCallMgc.iCurMgcNum; #ifdef _PROFESSION_ADDSKILL if (g_bUseAlpha) { - if (ToCallMgc.iCurMgcNum == 101770 || ToCallMgc.iCurMgcNum == 101771)//ΪƳͼʾ֮ + if (ToCallMgc.iCurMgcNum == 101770 || ToCallMgc.iCurMgcNum == 101771)//为了让破除结界图档显示于其它结界之上 ATR_DISP_PRIO(a0) = DISP_PRIO_TILE + ToCallMgc.wCurMgcOnChar; } else { - if (ToCallMgc.iCurMgcNum == 101825 || ToCallMgc.iCurMgcNum == 101826)//ΪƳͼʾ֮ + if (ToCallMgc.iCurMgcNum == 101825 || ToCallMgc.iCurMgcNum == 101826)//为了让破除结界图档显示于其它结界之上 ATR_DISP_PRIO(a0) = DISP_PRIO_TILE + ToCallMgc.wCurMgcOnChar; } #endif @@ -4710,7 +4710,7 @@ BOOL BuildBoundaryMagicData(int state) stateno[0] = 101844, stateno[1] = 101832, stateno[2] = 101838, stateno[3] = 101850, stateno[4] = 101841, stateno[5] = 101829, stateno[6] = 101835, stateno[7] = 101847; } - if (state == 0)// + if (state == 0)//左清除 { if (boundary_mark[0]) { @@ -4719,7 +4719,7 @@ BOOL BuildBoundaryMagicData(int state) } bRunBoundaryMgc_l = 0; } - if (state == 1)// + if (state == 1)//右清除 { if (boundary_mark[1]) { @@ -4728,7 +4728,7 @@ BOOL BuildBoundaryMagicData(int state) } bRunBoundaryMgc_r = 0; } - if (state == stateno[0] // + if (state == stateno[0] //左地 || state == stateno[1] || state == stateno[2] || state == stateno[3]) @@ -4746,12 +4746,12 @@ BOOL BuildBoundaryMagicData(int state) boundary_mark[0] = MakeAnimDisp(320, 240, state + 2, 0); boundary_mark[0]->actNo = 0; boundary_mark[0]->anim_ang = 3; - boundary_mark[0]->dispPrio = DISP_PRIO_TILE + 1;//ͼ + boundary_mark[0]->dispPrio = DISP_PRIO_TILE + 1;//图层 } } } - if (state == stateno[4] //ҵ + if (state == stateno[4] //右地 || state == stateno[5] || state == stateno[6] || state == stateno[7]) @@ -4769,7 +4769,7 @@ BOOL BuildBoundaryMagicData(int state) boundary_mark[1] = MakeAnimDisp(320, 240, state + 2, 0); boundary_mark[1]->actNo = 0; boundary_mark[1]->anim_ang = 3; - boundary_mark[1]->dispPrio = DISP_PRIO_TILE + 1;//ͼ + boundary_mark[1]->dispPrio = DISP_PRIO_TILE + 1;//图层 } } } @@ -4793,10 +4793,10 @@ void RunTimeMagicBoundary(int state) boundary_2 = MakeAnimDisp(320, 240, mark, 0); boundary_2->actNo = 0; boundary_2->anim_ang = 3; - boundary_2->dispPrio = DISP_PRIO_TILE + 1;//ͼ + boundary_2->dispPrio = DISP_PRIO_TILE + 1;//图层 } - /*if ( boundary_r->anim_cnt == 10 ){//ŵһ + /*if ( boundary_r->anim_cnt == 10 ){//拨放到最后一张 DeathAction(boundary_r); boundary_r = NULL; bRunBoundaryMgc = FALSE; @@ -4805,7 +4805,7 @@ void RunTimeMagicBoundary(int state) #endif #ifdef __ATTACK_MAGIC -// ʾǰλ +// 排序显示的前后位置 static int SortIdx(const void *pElement1, const void *pElement2) { int nth1 = *((int*)pElement1); @@ -4819,7 +4819,7 @@ static int SortIdx(const void *pElement1, const void *pElement2) return 0; } -// Ͻ +// 攻击性咒术的资料建立 BOOL BuildAttackMagicData(ACTION *pMaster, ACTION *pAttacker) { int i, idx = 0, midx, midy, count = 0; @@ -4875,29 +4875,29 @@ BOOL BuildAttackMagicData(ACTION *pMaster, ACTION *pAttacker) AttMgc.dwEQuakeSFrame = AttMgc.dwEQuakeSTime >> 4; AttMgc.dwEQuakeEFrame = AttMgc.dwEQuakeETime >> 4; - // Ƿǰ + // 是否有前置咒术 (0XFFFFFFFF == AttMgc.iPreMgcNum) ? AttMgc.wRunPreMgc = TRUE : AttMgc.wRunPreMgc = FALSE; - // λʾ + // 绝对位置显示法 if (1 == AttMgc.wShowType) { AttMgc.wNumAttacks = 1; AttMgc.wCurAttackNum = 0; AttMgc.posAttacked[0].x = AttMgc.wScreenX; AttMgc.posAttacked[0].y = AttMgc.wScreenY; - AttMgc.wAttackedIndex[0] = 20; // ȫԱͬʱ״̬ + AttMgc.wAttackedIndex[0] = 20; // 全部人员皆同时呈受伤状态 AttMgc.wMgcFrameCount[0] = 0; - // ĵ + // 被攻击的敌人索引号 for (i = 0; i < idx; i++) AttMgc.wAttackedIndex[i + 1] = charidx[i]; AttMgc.wAttackedIndex[i + 1] = 0XFF; } - // λʾ + // 居中位置显示法 else { - // ķʽΪȫͬʱ + // 咒术的方式为全体同时攻击 if (2 == AttMgc.wAttackType || 4 == AttMgc.wAttackType) { midx = 0; @@ -4913,18 +4913,18 @@ BOOL BuildAttackMagicData(ACTION *pMaster, ACTION *pAttacker) AttMgc.wCurAttackNum = 0; AttMgc.posAttacked[0].x = midx + AttMgc.wScreenX; AttMgc.posAttacked[0].y = midy + AttMgc.wScreenY; - AttMgc.wAttackedIndex[0] = 20; // ȫԱͬʱ״̬ + AttMgc.wAttackedIndex[0] = 20; // 全部人员皆同时呈受伤状态 AttMgc.wMgcFrameCount[0] = 0; - // ĵ + // 被攻击的敌人索引号 for (i = 0; i < idx; i++) AttMgc.wAttackedIndex[i + 1] = charidx[i]; AttMgc.wAttackedIndex[i + 1] = 0XFF; } - // + // 单独攻击 else { - // ĵ + // 被攻击的敌人索引号 for (i = 0; i < idx; i++) { AttMgc.wNumAttacks++; @@ -4944,23 +4944,23 @@ BOOL BuildAttackMagicData(ACTION *pMaster, ACTION *pAttacker) return TRUE; } -// ̬µħ +// 动态产生新的魔法 BOOL RunTimeMagic() { - // ʼ + // 开始地震 if (AttMgc.dwEQuakeSFrame == AttMgc.dwCurFrame1) { g_iRunEarthQuake = 1; g_iNumRunEarthQuake = AttMgc.dwEQuakeEFrame - AttMgc.dwEQuakeSFrame; } - // + // 结束地震 if (AttMgc.dwEQuakeEFrame == AttMgc.dwCurFrame1) g_iRunEarthQuake = 3; AttMgc.dwCurFrame1++; - // ǰħǷѾ + // 前置魔法是否已经播完了 if (FALSE == AttMgc.wRunPreMgc) return TRUE; - // Ƿδŵ + // 是否仍有尚未播放的咒术 if (AttMgc.wCurAttackNum < AttMgc.wNumAttacks) { while (1) @@ -4971,7 +4971,7 @@ BOOL RunTimeMagic() a0 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); ATR_NAME(a0) = monster; - ATR_VCT_NO(a0) = ATTACK_MAGIC_CASE + 2; // ִ + ATR_VCT_NO(a0) = ATTACK_MAGIC_CASE + 2; // 咒术的执行 ATR_DISP_PRIO(a0) = (1 == AttMgc.wCurMgcOnChar) ? D_PRIO_HIT_MARK : DISP_PRIO_TILE + 1; ATR_CHR_NO(a0) = AttMgc.iCurMgcNum; ATR_LONG_WORK(0, a0) = AttMgc.wAttackedIndex[AttMgc.wCurAttackNum]; @@ -4989,7 +4989,7 @@ BOOL RunTimeMagic() } #endif -//ж +//人物行动处理 void master(ACTION *a0) { ACTION *a1, *a2, *a3; @@ -5000,29 +5000,29 @@ void master(ACTION *a0) int sav_command_point, castflg = 0; int petfall_flg = 0; - //Աʾ + //属性表示 disp_attrib(a0); - if (ATR_VCT_NO(a0) == 0) // ȷ + if (ATR_VCT_NO(a0) == 0) // 命令确认 { - if (BattleCmd[0] == NULL) //սȷ + if (BattleCmd[0] == NULL) //战斗命令确认 goto master_500; } switch (ATR_VCT_NO(a0)) { - case 0: //????D? - sav_command_point = command_point; //??????????~ - command_no = get_command(); //?????? - if (command_no == -1) //??? + case 0: //????? + sav_command_point = command_point; //?????????? + command_no = get_command(); //?????? + if (command_no == -1) //??? { - ATR_VCT_NO(a0) = 4; //????r?? - command_point = 0; //????????????? + ATR_VCT_NO(a0) = 4; //?????? + command_point = 0; //????????????? break; } - if (command_no == ATT_KANJI) //???? + if (command_no == ATT_KANJI) //???? { - if (p_kanji != NULL) //??? + if (p_kanji != NULL) //??? { - a1 = ATR_BODY_WORK(0, p_kanji); //?????? + a1 = ATR_BODY_WORK(0, p_kanji); //?????? DeathAction(a1); // } else @@ -5031,27 +5031,27 @@ void master(ACTION *a0) if (p_kanji == NULL) return; } - //BOX + //中文BOX做成 a1 = MakeWindowDisp(640 - 4 - 64 * 4, 4, 4, 2, 0, 2); - //岻ʧ + //记忆体不足产生失败 if (a1 == NULL) return; - ATR_BODY_WORK(0, p_kanji) = a1; //?????V + ATR_BODY_WORK(0, p_kanji) = a1; //????? ATR_NAME(p_kanji) = disp_kanji; //?????? - ATR_ATTRIB(p_kanji) = ACT_ATR_HIDE; //?? + ATR_ATTRIB(p_kanji) = ACT_ATR_HIDE; //?? // ???????? play_se(202, 320, 240); command_point++; //?????????? - //????????? + //????????? get_command_asc(); - d0 = 60; //??? + d0 = 60; //??? for (d7 = 0; d7 < 4; d7++) { - if (kanji_buf[d7][0]) //?????? - d0 += 60; //??? + if (kanji_buf[d7][0]) //?????? + d0 += 60; //??? } ATR_INT_WORK0(p_kanji) = d0; - ATR_VCT_NO(a0) = 1; //????r? + ATR_VCT_NO(a0) = 1; //????? ATR_BODY_CNT(a0) = 1; ATR_DAMAGE(a0) = 0; ATR_PET_DAMAGE(a0) = 0; @@ -5073,9 +5073,9 @@ void master(ACTION *a0) who = get_num(); if (who == 255) break; - effect = get_num(); //Чı - effect_anim = get_num(); //ЧĶ - param = get_num(); // + effect = get_num(); //特效的编号 + effect_anim = get_num(); //特效的动画 + param = get_num(); //参数 target = NULL; if (who < BATTLKPKPLYAERNUM) target = p_party[who]; @@ -5091,7 +5091,7 @@ void master(ACTION *a0) break; } #ifdef _PETSKILL_BATTLE_MODEL - if (command_no == ATT_BATTLE_MODEL) // \սģ + if (command_no == ATT_BATTLE_MODEL) // 宠物技能战斗模组 { ATR_VCT_NO(a0) = 1; ATR_PET_DAMAGE(a0) = 0; @@ -5113,21 +5113,21 @@ void master(ACTION *a0) memset(p_missile, 0, sizeof(p_missile)); } d7 = 0; - // ȡij + // 先取出攻击的宠物编号 d0 = get_num(); a3 = p_party[d0]; - // жϹϻʼλ + // 判断攻击方是左上还右下来决定初始位置 if (ATR_GROUP_FLG(a3) == 0) { - d2 = 3; // + d2 = 3; // 右下 d0 = 0; } else { - d2 = 7; // + d2 = 7; // 左上 d0 = 10; } - // ȡĿ깥 + // 取出目标攻击物件编号 a1 = NULL; while ((d6 = get_num()) != 255) { @@ -5135,41 +5135,41 @@ void master(ACTION *a0) if (ATR_VCT_NO(a1) != 55) ATR_FIRST_FLG(a1) = 0; ATR_ATTACK_KIND(2, a1) = 0; - d3 = get_num(); // ȡ - // ж p_missile[d3] ûʹ - // ʹ,ʾҪĿ + d3 = get_num(); // 取出攻击物件编号 + // 判断 p_missile[d3] 有没有在使用 + // 有使用,表示这个攻击物件要攻击复数目标 if (p_missile[d3] != NULL) { a2 = p_missile[d3]; - ATR_BODY_WORK(ATR_INT_WORK1(a2), a2) = a1; // - ATR_BATTLE_MODEL(a1) = ATT_BATTLE_MODEL; // ĿDZ ATT_BATTLE_MODEL ̬ - ATR_ATTACK_KIND(ATR_INT_WORK1(a2), a2) = get_num(); // - ATR_ATTACK_POW(ATR_INT_WORK1(a2), a2) = get_num(); // - ATR_ATTACK_PET_POW(ATR_INT_WORK1(a2), a2) = get_num(); // pet - ATR_CHR_NO(a2) = get_num(); // ͼ - // ȮЧ,¼ʹȮĿ + ATR_BODY_WORK(ATR_INT_WORK1(a2), a2) = a1; // 被攻方 + ATR_BATTLE_MODEL(a1) = ATT_BATTLE_MODEL; // 此目标是被 ATT_BATTLE_MODEL 型态攻击 + ATR_ATTACK_KIND(ATR_INT_WORK1(a2), a2) = get_num(); // 攻击种类 + ATR_ATTACK_POW(ATR_INT_WORK1(a2), a2) = get_num(); // 攻击力 + ATR_ATTACK_PET_POW(ATR_INT_WORK1(a2), a2) = get_num(); // pet攻击力 + ATR_CHR_NO(a2) = get_num(); // 攻击物件图号 + // 如果有忠犬效果,记录使用忠犬的目标 if (BattleCmd[command_point] == 'g') ATR_LONG_WORK(ATR_INT_WORK1(a2), a2) = get_num(); ATR_INT_WORK1(a2)++; - // ¼Ŀб˹ + // 记录目标有被此攻击物件攻击 if (ATR_LONG_WORK(0, a1) == 0) { - ATR_LONG_WORK(0, a1) = 1; // ATR_LONG_WORK λ : λַ 0 : 趨ĿǷ񱻹,Զ趨Ϊ1 - ATR_LONG_WORK(d3, a1) = d7 + 1; // λַ d3: d3 ǹı, d3 λַ - // ¼ڵ d7 + 1 ĻغϹĿ + ATR_LONG_WORK(0, a1) = 1; // ATR_LONG_WORK 栏位 : 位址 0 : 是设定目标是否被攻击过,所以都会设定为1 + ATR_LONG_WORK(d3, a1) = d7 + 1; // 位址 d3: d3 是攻击物件的编号,而 d3 的位址是用来 + // 纪录攻击物件在第 d7 + 1 的回合攻击目标 } else - ATR_LONG_WORK(d3, a1) = d7 + 1; // ATR_LONG_WORK λ 0 Ϊ 0 ʱ,ʾĿѱĹ, - // ֱ d3 λַ¼Ҫ d7 + 1 ĻغϹĿ + ATR_LONG_WORK(d3, a1) = d7 + 1; // 当 ATR_LONG_WORK 栏位 0 不为 0 时,表示这个目标已被别的攻击物件攻击, + // 所以直接在 d3 的位址记录要在 d7 + 1 的回合攻击目标 } - // ûʹù + // 没使用过 else { p_missile[d3] = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); if (p_missile[d3] == NULL) - break; // ̫ + break; // 不太可能 a2 = p_missile[d3]; - // ʼ + // 初始化 ATR_NAME(a2) = monster; ATR_CHR_ANG(a2) = d2; ATR_H_POS(a2) = monster_start_pos[monster_place_no[d3 + d0] * 2]; @@ -5178,50 +5178,50 @@ void master(ACTION *a0) ATR_CHR_ACT(a2) = ANIM_STAND; ATR_GROUP_FLG(a2) = ATR_GROUP_FLG(a3); a2->hitDispNo = a3->hitDispNo; - ATR_VCT_NO(a2) = 1; // ǰ - ATR_BODY_WORK(0, a2) = a1; // Ŀ - ATR_BATTLE_MODEL(a1) = ATT_BATTLE_MODEL; // ĿDZ ATT_BATTLE_MODEL ̬ - // ¼Ŀб˹ + ATR_VCT_NO(a2) = 1; // 前进 + ATR_BODY_WORK(0, a2) = a1; // 被攻击目标 + ATR_BATTLE_MODEL(a1) = ATT_BATTLE_MODEL; // 此目标是被 ATT_BATTLE_MODEL 型态攻击 + // 记录目标有被此攻击物件攻击 if (ATR_LONG_WORK(0, a1) == 0) { - ATR_LONG_WORK(0, a1) = 1; // ATR_LONG_WORK λ : λַ 0 : 趨ĿǷ񱻹,Զ趨Ϊ1 - ATR_LONG_WORK(d3, a1) = d7 + 1; // λַ d3: d3 ǹı, d3 λַ - // ¼ڵ d7 + 1 ĻغϹĿ + ATR_LONG_WORK(0, a1) = 1; // ATR_LONG_WORK 栏位 : 位址 0 : 是设定目标是否被攻击过,所以都会设定为1 + ATR_LONG_WORK(d3, a1) = d7 + 1; // 位址 d3: d3 是攻击物件的编号,而 d3 的位址是用来 + // 纪录攻击物件在第 d7 + 1 的回合攻击目标 } else - ATR_LONG_WORK(d3, a1) = d7 + 1; // ATR_LONG_WORK λ 0 Ϊ 0 ʱ,ʾĿѱĹ, - // ֱ d3 λַ¼Ҫ d7 + 1 ĻغϹĿ - ATR_ATTACK_KIND(0, a2) = get_num(); // - ATR_ATTACK_POW(0, a2) = get_num(); // - ATR_ATTACK_PET_POW(0, a2) = get_num(); // pet - ATR_CHR_NO(a2) = get_num(); // ͼ - ATR_PLACE_NO(a2) = d3; // ¼ - ATR_INT_WORK0(a2) = ATT_BATTLE_MODEL; // 趨 action ATT_BATTLE_MODEL ʹ,Է֮ıʶ,ʹ work0 ¼ - ATR_INT_WORK1(a2) = 1; // 趨˹ĿǰĿ,ʹ work1¼ - ATR_INT_WORK2(a2) = 0; // ΪǷһִ뿪 - ATR_INT_WORK3(a2) = 0; // ΪȮټȮ - // ȮЧ,¼ʹȮĿ + ATR_LONG_WORK(d3, a1) = d7 + 1; // 当 ATR_LONG_WORK 栏位 0 不为 0 时,表示这个目标已被别的攻击物件攻击, + // 所以直接在 d3 的位址记录要在 d7 + 1 的回合攻击目标 + ATR_ATTACK_KIND(0, a2) = get_num(); // 攻击种类 + ATR_ATTACK_POW(0, a2) = get_num(); // 攻击力 + ATR_ATTACK_PET_POW(0, a2) = get_num(); // pet攻击力 + ATR_CHR_NO(a2) = get_num(); // 攻击物件图号 + ATR_PLACE_NO(a2) = d3; // 记录攻击物件编号 + ATR_INT_WORK0(a2) = ATT_BATTLE_MODEL; // 设定此 action 是 ATT_BATTLE_MODEL 在使用,以方便之后处理的辨识,使用 work0 记录 + ATR_INT_WORK1(a2) = 1; // 设定此攻击物件目前攻击目标数量,使用 work1记录 + ATR_INT_WORK2(a2) = 0; // 作为是否第一次执行离开动画旗标 + ATR_INT_WORK3(a2) = 0; // 作为若有忠犬则检查过后不再检查忠犬的旗标 + // 如果有忠犬效果,记录使用忠犬的目标 if (BattleCmd[command_point] == 'g') ATR_LONG_WORK(0, a2) = get_num(); - ATR_SPD(a2) = 32; // ƶٶ + ATR_SPD(a2) = 32; // 移动速度 } d7++; } ATR_COUNTER(a0) = a1; - ATR_DAMAGE(a0) = -d7; // Ϊ,ʱ ATR_DAMAGE(p_master) ATR_BODY_CNT(p_master) - ATR_INT_WORK1(a0) = 0; // ȷ p_missile Ƿ񶼱 - ATR_INT_WORK2(a0) = 1; // ʱ˳,ȴ ATR_LONG_WORK Ϊ 1 ִ - ATR_BODY_CNT(a0) = d7; // ܴ,ÿһζ ATR_DAMAGE(p_master) ,ֱ ATR_DAMAGE(p_master) == ATR_BODY_CNT(p_master) - // p_master Żȥһ BattleCmd ( a0 p_master) + ATR_DAMAGE(a0) = -d7; // 设为负数,让正常时候的 ATR_DAMAGE(p_master) 不会等于 ATR_BODY_CNT(p_master) + ATR_INT_WORK1(a0) = 0; // 确认 p_missile 是否都被清空 + ATR_INT_WORK2(a0) = 1; // 攻击物件攻击时的顺序,先从 ATR_LONG_WORK 为 1 的先执行 + ATR_BODY_CNT(a0) = d7; // 攻击总次数,每完成一次动作 ATR_DAMAGE(p_master) 都会递增,直到 ATR_DAMAGE(p_master) == ATR_BODY_CNT(p_master) + // p_master 才会去继续处理下一笔 BattleCmd 里的资料 (这里的 a0 就是 p_master) break; } #endif - d0 = get_num(); //?????k? - if (d0 < 0 || d0 >= BATTLKPKPLYAERNUM) //????k??? + d0 = get_num(); //?????? + if (d0 < 0 || d0 >= BATTLKPKPLYAERNUM) //??????? { - if (command_no == ATT_VARIABLE) //tNͨ??? + if (command_no == ATT_VARIABLE) //??? { - ATR_ATTRIB(p_master) = get_num(); //N?? + ATR_ATTRIB(p_master) = get_num(); //?? break; } else @@ -5238,30 +5238,30 @@ void master(ACTION *a0) #ifdef _STONDEBUG_ MessageBoxNew(hWnd, "ATR_NAME(a1) == NULL", "Error", MB_OK); #endif - command_no = get_command(); //?????? - if (command_no == -1) //??? + command_no = get_command(); //?????? + if (command_no == -1) //??? { - ATR_VCT_NO(a0) = 4; //????r?? - command_point = 0; //????????????? + ATR_VCT_NO(a0) = 4; //?????? + command_point = 0; //????????????? break; } - command_point -= 2; //?????????? + command_point -= 2; //?????????? break; } if (command_no != ATT_MALFUNCTION) //?????? { if (ATR_LIFE(a1) <= 0) //?????? - ATR_VCT_NO(a1) = 0; //`?? + ATR_VCT_NO(a1) = 0; //?? } if (command_no != ATT_MALFUNCTION) //?????? { - if (ATR_VCT_NO(a1) != 0) //r?֢t? command_point = sav_command_point; //????r? + if (ATR_VCT_NO(a1) != 0) //?? command_point = sav_command_point; //????? break; } - ATR_VCT_NO(a0) = 1; //s?~r?? + ATR_VCT_NO(a0) = 1; //??? ATR_DAMAGE(a0) = 0; ATR_PET_DAMAGE(a0) = 0; - ATR_COUNTER(a0) = a1; //?????V + ATR_COUNTER(a0) = a1; //????? //????????????? if (ATR_VCT_NO(a1) != 55) ATR_FIRST_FLG(a1) = 0; //???????? @@ -5288,7 +5288,7 @@ void master(ACTION *a0) switch (command_no) { // BI jibun_5 teki_F flg_2 damage_1 teki_9 flg_2 damage_1 FF - case ATT_IN: //?????????? ??? ?????????? + case ATT_IN: //?????????? 佋??? ?????????? if (ATR_GROUP_FLG(a1) == 0) //???????? { ATR_V_POS(a1) = 8; @@ -5299,13 +5299,13 @@ void master(ACTION *a0) ATR_V_POS(a1) = lpDraw->ySize - 8; ATR_H_POS(a1) = lpDraw->xSize + SCREEN_OUT; } - case ATT_HIT: //====================ֱӹ=============== - ATR_VCT_NO(a1) = 1; //ǰ - ATR_BODY_WORK(0, a1) = p_party[get_num()]; // - ATR_ATTACK_KIND(0, a1) = get_num(); // - ATR_ATTACK_POW(0, a1) = get_num(); // + case ATT_HIT: //====================直接攻击=============== + ATR_VCT_NO(a1) = 1; //前进 + ATR_BODY_WORK(0, a1) = p_party[get_num()]; //被攻方 + ATR_ATTACK_KIND(0, a1) = get_num(); //攻击种类 + ATR_ATTACK_POW(0, a1) = get_num(); //攻击力 if (BattleCmd[command_point] == 'p') - ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet + ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet攻击力 #ifdef _STONDEBUG_ else LogToBattleError( BattleCmd, __LINE__ ); @@ -5317,24 +5317,24 @@ void master(ACTION *a0) ATR_BATTLEGRANO(a1) = get_num(); #endif #ifdef _ATTACK_EFFECT - //Ȯ xiezi + //修正忠犬 xiezi if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a1) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a1) = get_num(); // 记录特效编号 #endif break; #ifdef _MAGIC_DEEPPOISION - case ATT_DEEPPOISION: //綾 - ATR_VCT_NO(a1) = 1; // - ATR_BODY_WORK(0, a1) = p_party[get_num()];// //???? - ATR_ATTACK_KIND(0, a1) = get_num(); //ҷ?????? - ATR_ATTACK_POW(0, a1) = get_num(); //?????? - ATR_ATTACK_PET_POW(0, a1) = get_num();// - ATR_BODY_CNT(a0) = 1;// + case ATT_DEEPPOISION: //剧毒 + ATR_VCT_NO(a1) = 1; //攻方动作 + ATR_BODY_WORK(0, a1) = p_party[get_num()];//攻方编号 //???? + ATR_ATTACK_KIND(0, a1) = get_num(); //我方防御种类?????? + ATR_ATTACK_POW(0, a1) = get_num(); //攻击力?????? + ATR_ATTACK_PET_POW(0, a1) = get_num();//骑宠损伤 + ATR_BODY_CNT(a0) = 1;//攻击次数 ATR_DEEPPOISION(a1) = 1; break; #endif //andy_mp - case ATT_MPDAMAGE://MP˺ + case ATT_MPDAMAGE://MP伤害 ATR_VCT_NO(a1) = 1; ATR_BODY_WORK(0, a1) = p_party[get_num()]; ATR_ATTACK_KIND(0, a1) = get_num(); @@ -5357,22 +5357,22 @@ void master(ACTION *a0) ATR_ADDHPFLG(a1) = 1; break; //BF jibun_5 - case ATT_FADE_OUT: //?????????? ??? ?????????? - ATR_VCT_NO(a1) = 80; //?~? + case ATT_FADE_OUT: //?????????? 佋??? ?????????? + ATR_VCT_NO(a1) = 80; //?? //?????? ATR_ATTACK_KIND(2, a1) = 1; ATR_BODY_CNT(a0) = 1; break; - //BN|???k?|?????k?| - case ATT_NEXT_EQUIP: //?????????? ?? ?????????? - ATR_VCT_NO(a1) = 82; //?? + //BN|????|??????| + case ATT_NEXT_EQUIP: //?????????? ?? ?????????? + ATR_VCT_NO(a1) = 82; //?? ATR_BODY_CNT(a0) = 1; break; //BJ|Attacker's No( 0 - 19 )|Attacker's MP|Attacker's animation index| // Opposite's animation index|Opposite's index ... - //BJ|???k?|??|????????k?|??????????k?|?????|?????|FF - case ATT_JUJUTSU: //?????????? ?????????? - ATR_VCT_NO(a1) = 75; //??ӡua?? + //BJ|????|??|?????????|???????????|?????|?????|FF + case ATT_JUJUTSU: //??????????  ?????????? + ATR_VCT_NO(a1) = 75; //???? ATR_MP(a1) = get_num(); //????? ATR_BODY_CNT(a0) = 1; #ifdef __ATTACK_MAGIC @@ -5381,7 +5381,7 @@ void master(ACTION *a0) #endif break; case ATT_TOCALL: - ATR_VCT_NO(a1) = 2; //??ӡua?? + ATR_VCT_NO(a1) = 2; //???? ATR_MP(a1) = get_num(); //????? ATR_BODY_CNT(a0) = 1; #ifdef __TOCALL_MAGIC @@ -5389,35 +5389,35 @@ void master(ACTION *a0) BuildToCallMagicData(a0, a1); #endif break; - case ATT_MALFUNCTION: //?????????? Ol ?????????? - d0 = get_num(); //ӧk??? + case ATT_MALFUNCTION: //??????????  ?????????? + d0 = get_num(); //??? ATR_STATUS(a1) = d0; //???????? switch (d0) { - //?? + //?? case 0: ATR_VCT_NO(a0) = 0; //???? a2 = ATR_JUJUTSU_WORK(a1); ATR_JUJUTSU_WORK(a1) = NULL; - DeathAction(a2); //? + DeathAction(a2); //? break; //?? case 2: - //????? + //????? if (ATR_LIFE(a1) > 0) { ATR_BODY_CNT(a0) = 1; - ATR_VCT_NO(a1) = 105; //??r?? + ATR_VCT_NO(a1) = 105; //???? ATR_STIMER(a1) = 60; - set_single_jujutsu(d0, a1); //Ol??? + set_single_jujutsu(d0, a1); //??? } else ATR_VCT_NO(a0) = 0; //???? break; - //? + //? default: ATR_VCT_NO(a0) = 0; //???? - set_single_jujutsu(d0, a1); //Ol??? + set_single_jujutsu(d0, a1); //??? break; } break; @@ -5442,7 +5442,7 @@ void master(ACTION *a0) break; */ - // ???????????????????k + // ??????????????????? case ATT_DAMAGE: ATR_BODY_CNT(a0) = 1; ATR_VCT_NO(a1) = 79; @@ -5462,11 +5462,11 @@ void master(ACTION *a0) case 0: //? set_damage_num(a1, 6, -64); ATR_LIFE(a1) -= ATR_DAMAGE(a1); - set_jujutsu_hit_mark(a1); //?????? + set_jujutsu_hit_mark(a1); //?????? if (ATR_LIFE(a1) <= 0) //?????? { ATR_LIFE(a1) = 0; - slow_flg++; //???? + slow_flg++; //???? } ATR_PET_LIFE(a1) -= ATR_PET_DAMAGE(a1); set_jujutsu_hit_mark(a1); // @@ -5479,7 +5479,7 @@ void master(ACTION *a0) if (ATR_PET_LIFE(a1) <= 0 && ATR_RIDE(a1)) //?????? { ATR_PET_LIFE(a1) = 0; - //slow_flg++; //???? + //slow_flg++; //???? if (ATR_LIFE(a1) > 0) petfallChangeGraph(a1); } @@ -5489,17 +5489,17 @@ void master(ACTION *a0) ATR_VCT_NO(a1) = 78; //??????? break; case 1: //? - //??k + //?? set_damage_num(a1, 14, -64); ATR_LIFE(a1) += ATR_DAMAGE(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? ATR_PET_LIFE(a1) += ATR_PET_DAMAGE(a1); if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); play_se(102, ATR_H_POS(a1), 240); break; - //andy_add غϲѪ + //andy_add 回合补血 case 2: if (BattleCmd[command_point] == 'm') ATR_MPDAMAGE(a1) = get_num(); @@ -5529,26 +5529,26 @@ void master(ACTION *a0) pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); ATR_VCT_NO(a1) = 78; break; - case 4:// + case 4://攻 set_damage_num(a1, 38, -64); ATR_CHR_ACT_OLD(a1) = -1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); ATR_VCT_NO(a1) = 78; break; - case 5:// + case 5://防 set_damage_num(a1, 39, -64); ATR_CHR_ACT_OLD(a1) = -1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); ATR_VCT_NO(a1) = 78; break; - case 6:// + case 6://敏 set_damage_num(a1, 40, -64); ATR_CHR_ACT_OLD(a1) = -1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); ATR_VCT_NO(a1) = 78; break; #ifdef _SKILL_ADDBARRIER - case 7:// + case 7://抗性 set_damage_num(a1, 43, -64); ATR_CHR_ACT_OLD(a1) = -1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); @@ -5556,7 +5556,7 @@ void master(ACTION *a0) break; #endif #ifdef _PETSKILL_PEEL - case 8://жװ + case 8://被卸下装备 set_damage_num(a1, 44, -64); ATR_CHR_ACT_OLD(a1) = -1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); @@ -5616,18 +5616,18 @@ void master(ACTION *a0) case 0: //? set_damage_num(a1, 16, -64); ATR_MP(a1) -= ATR_DAMAGE(a1); //?????? - if (ATR_MP(a1) < 0) //?t??? + if (ATR_MP(a1) < 0) //???? ATR_MP(a1) = 0; //???? break; case 1: //? set_damage_num(a1, 15, -64); ATR_MP(a1) += ATR_DAMAGE(a1); //????? -#ifdef _FIXSHOWMPERR //Syu ADD ʱʾ +#ifdef _FIXSHOWMPERR //Syu ADD 修正补气时动画显示错误 if (ATR_MP(a1) > pc.maxMp) ATR_MP(a1) = pc.maxMp; #else - if (ATR_MP(a1) > 100) //?????? + if (ATR_MP(a1) > 100) //?????? ATR_MP(a1) = 100; //?????? #endif //??? @@ -5650,116 +5650,116 @@ void master(ACTION *a0) } break; #ifdef _PETSKILL_LER - case 3: // + case 3: // 闪开攻击 set_damage_num(a1, 0, -64); break; #endif } - d6 = command_point; //????????~ - d0 = get_command(); //???????? + d6 = command_point; //???????? + d0 = get_command(); //???????? if (d0 == ATT_DAMAGE) //?????? { a1 = p_party[d0 = get_num()]; //??????? - d0 = get_num(); //??????? - if (d2 == d0) //????i??? + d0 = get_num(); //??????? + if (d2 == d0) //??????? { - d1 = get_num(); //??????? - if (d3 == d1) //????i??? + d1 = get_num(); //??????? + if (d3 == d1) //??????? goto att_damage_loop; } } command_point = d6; //?????????? break; - //BV|???k??????|Nͧk? - case ATT_VARIABLE: //?????????? ?????Nͨ? ?????????? + //BV|?????????|? + case ATT_VARIABLE: //?????????? ?????? ?????????? ATR_BODY_CNT(a0) = 1; - ATR_VCT_NO(a1) = 85; //?????Nͨ?? + ATR_VCT_NO(a1) = 85; //??????? break; - //BR|????|???????? - case ATT_REVERSE: //?????????? NͧT ?????????? + //BR|????|???????? + case ATT_REVERSE: //??????????  ?????????? ATR_VCT_NO(a0) = 0; //???? - d0 = get_num(); //??????????? + d0 = get_num(); //??????????? switch (d0) { //??? case 0: a2 = ATR_ATTRIB_WORK(a1); ATR_ATTRIB_WORK(a1) = NULL; - DeathAction(a2); //? + DeathAction(a2); //? break; //?? default: - set_attrib_reverse(a1); //NͧT??? + set_attrib_reverse(a1); //??? break; } break; - //BL|????|?? - case ATT_LIFE: //?????????? ?? ?????????? + //BL|????|?? + case ATT_LIFE: //?????????? ?? ?????????? ATR_VCT_NO(a0) = 0; //???? - ATR_DAMAGE(a1) = get_num(); //???? - //??k + ATR_DAMAGE(a1) = get_num(); //???? + //?? ATR_LIFE(a1) = ATR_DAMAGE(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? - ATR_VCT_NO(a1) = 0; //_? - ATR_CHR_ACT(a1) = ANIM_STAND; //_??????? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + ATR_VCT_NO(a1) = 0; //? + ATR_CHR_ACT(a1) = ANIM_STAND; //??????? pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); break; - //BQ|???? - case ATT_QUIT: //?????????? ???`?? ?????????? + //BQ|???? + case ATT_QUIT: //?????????? ????? ?????????? ATR_BODY_CNT(a0) = 1; - ATR_VCT_NO(a1) = 87; //???`??q? + ATR_VCT_NO(a1) = 87; //?????? break; - //BX|???? - case ATT_NIX: //?????????? ????r ?????????? + //BX|???? + case ATT_NIX: //?????????? ???? ?????????? ATR_BODY_CNT(a0) = 1; - ATR_VCT_NO(a1) = 90; //????r + ATR_VCT_NO(a1) = 90; //???? break; - //B!|?????????????????? - case ATT_COMPANIONS: //?????????? s???? ?????????? + //B!|?????????????????? + case ATT_COMPANIONS: //?????????? ???? ?????????? ATR_BODY_CNT(a0) = 1; - ATR_VCT_NO(a1) = 95; //s?????? + ATR_VCT_NO(a1) = 95; //?????? break; - //B#|???????????? + //B#|???????????? case ATT_STEAL: //?????????? ???? ?????????? ATR_BODY_CNT(a0) = 1; ATR_VCT_NO(a1) = 100; //?????? break; - //B%|????????k? + //B%|????????? case ATT_TALK: //?????????? ???? ?????????? ATR_BODY_CNT(a0) = 1; ATR_VCT_NO(a1) = 110; //????? ATR_STIMER(a1) = 60; - d0 = get_num(); //???k??? - //????????? + d0 = get_num(); //?????? + //????????? set_damage_num(a1, 20, -64); break; -#ifdef _FIREHUNTER_SKILL // (ɿ) ROG ADD ȸ_ɱ +#ifdef _FIREHUNTER_SKILL // (不可开) ROG ADD 朱雀技能_火线猎杀 case ATT_FIRESKILL: - ATR_VCT_NO(a1) = FIRE_HUNTER_SKILL; //ɱ + ATR_VCT_NO(a1) = FIRE_HUNTER_SKILL; //火线猎杀 ATR_FIRST_FLG(a1) = 0; iBeAttNum = get_num(); - ATR_BODY_WORK(0, a1) = p_party[iBeAttNum]; //λַ - ATR_ATTACK_KIND(0, a1) = get_num(); // - ATR_ATTACK_POW(0, a1) = get_num(); // + ATR_BODY_WORK(0, a1) = p_party[iBeAttNum]; //敌人位址 + ATR_ATTACK_KIND(0, a1) = get_num(); //攻击种类 + ATR_ATTACK_POW(0, a1) = get_num(); //攻击力 // if ( BattleCmd[command_point] == 'p' ) { - ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet?? + ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet攻击力?? // } - d0 = get_num(); // - ATR_BODY_CNT(a1) = d0; //˹ + d0 = get_num(); //人数 + ATR_BODY_CNT(a1) = d0; //多人攻击 for (d7 = 2; d7 < d0 + 2; d7++) { int x = get_num(); - if (x == iBeAttNum) //Ŀħ˺ + if (x == iBeAttNum) //被攻击目标的魔法伤害 { tarMgiDem = 1; tarpos = d7;//ATR_BODY_CNT(a1)--; } - ATR_BODY_WORK(d7 ,a1) = p_party[x]; //λַ - ATR_ATTACK_KIND(d7 ,a1) = get_num(); // - ATR_ATTACK_POW(d7 ,a1) = get_num(); // - ATR_ATTACK_PET_POW(d7 ,a1) = get_num(); //pet + ATR_BODY_WORK(d7 ,a1) = p_party[x]; //敌人位址 + ATR_ATTACK_KIND(d7 ,a1) = get_num(); //攻击种类 + ATR_ATTACK_POW(d7 ,a1) = get_num(); //攻击力 + ATR_ATTACK_PET_POW(d7 ,a1) = get_num(); //pet攻击力 //} } break; @@ -5769,10 +5769,10 @@ void master(ACTION *a0) ATR_VCT_NO(a0) = 0; ATR_CHR_ACT(a0) = ANIM_STAND; ATR_FIRST_FLG(a0) = 0; - ATR_VCT_NO(a1) = 0; //_? - ATR_CHR_ACT(a1) = ANIM_STAND; //_??????? + ATR_VCT_NO(a1) = 0; //? + ATR_CHR_ACT(a1) = ANIM_STAND; //??????? ATR_FIRST_FLG(a1) = 0; - d0 = get_num(); //??????????? + d0 = get_num(); //??????????? BuildBoundaryMagicData( d0 ); d0 = get_num(); break; @@ -5782,39 +5782,39 @@ void master(ACTION *a0) ATR_VCT_NO(a0) = 0; ATR_CHR_ACT(a0) = ANIM_STAND; ATR_FIRST_FLG(a0) = 0; - ATR_VCT_NO(a1) = 0; //_? - ATR_CHR_ACT(a1) = ANIM_STAND; //_??????? + ATR_VCT_NO(a1) = 0; //? + ATR_CHR_ACT(a1) = ANIM_STAND; //??????? ATR_FIRST_FLG(a1) = 0; - d0 = get_num(); //ͼ + d0 = get_num(); //上马图号 petrideChangeGraph(a1,d0); d0 = get_num(); break; #endif case ATT_BOW: //?????????? ??? ?????????? ATR_VCT_NO(a1) = 30; //???? - ATR_LONG_WORK(0, a1) = get_num(); //ħk???? + ATR_LONG_WORK(0, a1) = get_num(); //???? if (ATR_LONG_WORK(0, a1) == 0) //??? { ATR_VCT_NO(a1) = 32; //???? - ATR_STIMER(a1) = 0; //???????? + ATR_STIMER(a1) = 0; //???????? ATR_DAMAGE(a1) = 1; // ATR_PET_DAMAGE(a1) = 1; } ATR_FIRST_FLG(a1) = 0; // - ATR_BODY_WORK(0, a1) = p_party[get_num()]; //???? - ATR_ATTACK_KIND(0, a1) = get_num(); //?????? + ATR_BODY_WORK(0, a1) = p_party[get_num()]; //???? + ATR_ATTACK_KIND(0, a1) = get_num(); //?????? ATR_ATTACK_POW(0, a1) = get_num(); //?????? if (BattleCmd[command_point] == 'p') ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet?????? - //Ч xiezi + //修正技能特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a1) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a1) = get_num(); // 记录特效编号 #endif ATR_BODY_CNT(a0) = 1; -#ifdef _SHOOTCHESTNUT // Syu ADD 輼 +#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 (ATR_CHR_NO(a1) == 101578) ? ShooterNum = 101578 : ShooterNum = -1; #endif break; @@ -5823,12 +5823,12 @@ void master(ACTION *a0) ATR_FIRST_FLG(a1) = 0; // ATR_BODY_CNT(a0) = 1; break; - case ATT_FIRE: //?????????? ???? ?????????? - d0 = get_body_cnt(); //????? - if (d0 != 1) //]D???? + case ATT_FIRE: //?????????? ???? ?????????? + d0 = get_body_cnt(); //????? + if (d0 != 1) //???? { - ATR_VCT_NO(a1) = 20; //???? - ATR_BODY_CNT(a0) = d0; //??D?? + ATR_VCT_NO(a1) = 20; //???? + ATR_BODY_CNT(a0) = d0; //???? ATR_BODY_CNT(a1) = d0; // if (ATR_GROUP_FLG(a1) == 0) ATR_CHR_ANG(a1) = 3; @@ -5843,46 +5843,46 @@ void master(ACTION *a0) } else - { //?D???? - ATR_VCT_NO(a1) = 20; //???? - ATR_BODY_CNT(a0) = 1; //?D?? + { //????? + ATR_VCT_NO(a1) = 20; //???? + ATR_BODY_CNT(a0) = 1; //??? ATR_BODY_CNT(a1) = 1; // - a2 = ATR_BODY_WORK(0, a1) = p_party[get_num()]; //? + a2 = ATR_BODY_WORK(0, a1) = p_party[get_num()]; //? } break; - case ATT_SYNCHRONOUS: //?????????? i??? ?????????? - a3 = a2 = a1; //?~ + case ATT_SYNCHRONOUS: //?????????? ??? ?????????? + a3 = a2 = a1; //? d1 = 0; //???????? d2 = 0; - d7 = 0; //?????? + d7 = 0; //?????? while (1) { d0 = get_num(); //??????? - if (d0 == 255) //??? + if (d0 == 255) //??? break; a1 = p_party[d0]; //??????? if (ATR_NAME(a1) == NULL) //???????? { #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "ûк幥ֽձ", "Error", MB_OK); + MessageBoxNew(hWnd, "没有合体攻击的名字紧急连络日本!", "Error", MB_OK); #endif - get_num(); //?????? + get_num(); //?????? get_num(); //?????? - get_num(); //???? + get_num(); //???? if (BattleCmd[command_point] == 'p') - get_num(); //pet???? + get_num(); //pet???? continue; } - if (d7 == 0) //??????? - ATR_COUNTER(a0) = a1; //?????? - ATR_VCT_NO(a1) = 1; //q? - ATR_BODY_WORK(0, a1) = a3; //? - ATR_BODY_WORK(1, a2) = a1; //q???????????? + if (d7 == 0) //??????? + ATR_COUNTER(a0) = a1; //?????? + ATR_VCT_NO(a1) = 1; //? + ATR_BODY_WORK(0, a1) = a3; //? + ATR_BODY_WORK(1, a2) = a1; //???????????? ATR_ATTACK_KIND(0, a1) = get_num(); #ifdef _PETSKILL_ACUPUNCTURE /////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a1) & ATT_REFLEX+ATT_ABSORPTION+ATT_BALLIA+ATT_TRAP+ATT_ACUPUNCTURE #ifdef _PET_ITEM + ATT_ATTACKBACK @@ -5898,7 +5898,7 @@ void master(ACTION *a0) /////////////////////// #else /////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a1) & ATT_REFLEX+ATT_ABSORPTION+ATT_BALLIA+ATT_TRAP) #else if (ATR_ATTACK_KIND(0, a1) & ATT_REFLEX + ATT_ABSORPTION + ATT_BALLIA) @@ -5909,30 +5909,30 @@ void master(ACTION *a0) ATR_ATTACK_POW(0, a1) = get_num(); //?????? if (BattleCmd[command_point] == 'p') ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet?????? - //Ч xiezi + //修正技能特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a1) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a1) = get_num(); // 记录特效编号 #endif } else { - d1 += ATR_ATTACK_POW(0, a1) = get_num(); //???? + d1 += ATR_ATTACK_POW(0, a1) = get_num(); //???? if (BattleCmd[command_point] == 'p') - d2 += ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet???? + d2 += ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet???? else LogToBattleError(BattleCmd, __LINE__); - //Ч xiezi + //修正技能特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a1) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a1) = get_num(); // 记录特效编号 #endif } ATR_FIRST_FLG(a1) = 0; //?????? ATR_SYNC_FLG(a1) = 1; // - a2 = a1; //q???? - d7++; //???? + a2 = a1; //???? + d7++; //???? } ATR_SYNC_FLG(a1) = 2; //????? if (d1) //??????? @@ -5942,17 +5942,17 @@ void master(ACTION *a0) ATR_LONG_WORK(0, a3) = d7; //?????? ATR_BODY_CNT(a0) = d7; break; - case 2: //?????????? ???? ?????????? - d0 = get_num(); //????? - if (d0 != 1) //??D???? + case 2: //?????????? ???? ?????????? + d0 = get_num(); //????? + if (d0 != 1) //?????? { - ATR_VCT_NO(a1) = 25; //???? - ATR_BODY_CNT(a0) = d0; //??D?? + ATR_VCT_NO(a1) = 25; //???? + ATR_BODY_CNT(a0) = d0; //???? ATR_BODY_CNT(a1) = d0; // for (d7 = 0; d7 < d0; d7++) { - ATR_BODY_WORK(d7, a1) = p_party[get_num()]; //? - ATR_ATTACK_KIND(d7, a1) = get_num(); //?????? + ATR_BODY_WORK(d7, a1) = p_party[get_num()]; //? + ATR_ATTACK_KIND(d7, a1) = get_num(); //?????? } d0 = 320; d1 = 240; @@ -5962,11 +5962,11 @@ void master(ACTION *a0) } else { - ATR_VCT_NO(a1) = 25; //???? - ATR_BODY_CNT(a0) = 1; //?D?? + ATR_VCT_NO(a1) = 25; //???? + ATR_BODY_CNT(a0) = 1; //??? ATR_BODY_CNT(a1) = 1; // - ATR_BODY_WORK(0, a1) = p_party[get_num()]; //? - ATR_ATTACK_KIND(0, a1) = get_num(); //?????? + ATR_BODY_WORK(0, a1) = p_party[get_num()]; //? + ATR_ATTACK_KIND(0, a1) = get_num(); //?????? d0 = 320; d1 = 240; radar(a1, &d0, &d1); //???? @@ -5975,58 +5975,58 @@ void master(ACTION *a0) } break; case 3: //?????????? ???? ?????????? - d0 = get_num(); //????? - ATR_VCT_NO(a1) = 30; //???? - ATR_BODY_CNT(a0) = d0; //?D?? + d0 = get_num(); //????? + ATR_VCT_NO(a1) = 30; //???? + ATR_BODY_CNT(a0) = d0; //??? ATR_BODY_CNT(a1) = d0; // for (d7 = 0; d7 < d0; d7++) { - ATR_BODY_WORK(d7, a1) = p_party[get_num()]; //? - ATR_ATTACK_KIND(d7, a1) = get_num(); //?????? + ATR_BODY_WORK(d7, a1) = p_party[get_num()]; //? + ATR_ATTACK_KIND(d7, a1) = get_num(); //?????? } break; - case ATT_TAKE: //?????????? ? ?????????? - ATR_VCT_NO(a1) = 35; //?? - ATR_BODY_WORK(0, a1) = p_party[get_num()]; //???? - ATR_ATTACK_KIND(0, a1) = get_num(); //???? + case ATT_TAKE: //?????????? ? ?????????? + ATR_VCT_NO(a1) = 35; //?? + ATR_BODY_WORK(0, a1) = p_party[get_num()]; //???? + ATR_ATTACK_KIND(0, a1) = get_num(); //???? ATR_BODY_CNT(a0) = 1; break; - case ATT_ESCAPE: //?????????? PfD ?????????? - ATR_BODY_CNT(a0) = 1; //D???? - d1 = ATR_ATTACK_KIND(0, a1) = get_num(); //???? - ATR_VCT_NO(a1) = 52; //D? - if (BattleMyNo == ATR_PLACE_NO(a1)) //?? + case ATT_ESCAPE: //??????????  ?????????? + ATR_BODY_CNT(a0) = 1; //???? + d1 = ATR_ATTACK_KIND(0, a1) = get_num(); //???? + ATR_VCT_NO(a1) = 52; //? + if (BattleMyNo == ATR_PLACE_NO(a1)) //?? d0 = 1; else d0 = 0; - //ACTION_INF@e?????? + //ACTION_INF?????? ATR_GUARD_FLG(a1) = 0; - //????V?ϣ?? + //?????OK?? if (ATR_PET_OK(a1)) { - a2 = p_party[ATR_PLACE_NO(a1) + 5]; //?????? + a2 = p_party[ATR_PLACE_NO(a1) + 5]; //?????? //?????????????????? if (ATR_NAME(a2) != NULL && ATR_AKO_FLG(a2) == 0) { //????? if (ATR_ATTACK_KIND(2, a2) == 1) { - ATR_ATTRIB(a2) |= ACT_ATR_HIDE; //?? - //???? + ATR_ATTRIB(a2) |= ACT_ATR_HIDE; //?? + //???? ATR_NAME(a2) = NULL; ATR_VCT_NO(a2) = VCT_NO_APPEAR; } else { - //ACTION_INF@e?????? + //ACTION_INF?????? ATR_GUARD_FLG(a2) = 0; - ATR_BODY_CNT(a0)++; //D?? - if (d0 == 1) //???D?? + ATR_BODY_CNT(a0)++; //?? + if (d0 == 1) //????? d0 = 2; } } } - //ACTION_INF@eԡ@e + //ACTION_INF switch (d0) { case 1: @@ -6038,37 +6038,37 @@ void master(ACTION *a0) break; } break; - case ATT_SELECT: //?????????? ???k ?????????? + case ATT_SELECT: //?????????? ??? ?????????? ATR_BODY_CNT(a0) = 1; d0 = ATR_PLACE_NO(a1) + 5; //????????? a2 = p_party[ATR_PLACE_NO(a1) + 5]; //????????? - ATR_BODY_WORK(0, a2) = a1; //???????? + ATR_BODY_WORK(0, a2) = a1; //???????? ATR_FIRST_FLG(a2) = 0; //?????? if (get_num() == 0) //???? ATR_VCT_NO(a2) = 60; //????? else - { //??? - ATR_NAME(a2) = monster; //???? + { //??? + ATR_NAME(a2) = monster; //???? ATR_VCT_NO(a2) = 62; // - if (BattleMyNo == ATR_PLACE_NO(a1)) //?? + if (BattleMyNo == ATR_PLACE_NO(a1)) //?? att_select_flg = TRUE; } break; - //#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + //#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 case ATT_PROSKILL: - ATR_VCT_NO(a1) = PROSKILL; //ʿְҵ - ATR_BODY_WORK(0, a1) = p_party[get_num()]; //ȡNo - ATR_ATTACK_KIND(0, a1) = get_num(); // - ATR_ATTACK_POW(0, a1) = get_num(); // + ATR_VCT_NO(a1) = PROSKILL; //勇士职业技能 + ATR_BODY_WORK(0, a1) = p_party[get_num()]; //取出被攻击对象No + ATR_ATTACK_KIND(0, a1) = get_num(); //攻击种类 + ATR_ATTACK_POW(0, a1) = get_num(); //攻击力 if (BattleCmd[command_point] == 'p') ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet?????? else LogToBattleError(BattleCmd, __LINE__); - //Ч xiezi + //修正技能特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a1) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a1) = get_num(); // 记录特效编号 #endif ATR_WARRIOR_EFFECT(a1) = get_num(); @@ -6084,7 +6084,7 @@ void master(ACTION *a0) //#endif default: //??????? action_inf = -1; - //????????????? + //????????????? #ifdef _STONDEBUG_ { char errbuf[256]; @@ -6110,7 +6110,7 @@ void master(ACTION *a0) ATR_ATTACK_POW(0, a1) = ATR_ATTACK_POW(0, a1) & 0x0000ffff; } #endif - case 1: //s?~r? + case 1: //?? #ifdef __ATTACK_MAGIC if (TRUE == bRunAttMgc) RunTimeMagic(); @@ -6123,78 +6123,78 @@ void master(ACTION *a0) // RunTimeMagicBoundary(); #endif if (ATR_DAMAGE(a0) == ATR_BODY_CNT(a0)) - { //?~??? + { //???? for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) { if (ATR_NAME(p_party[d7]) != NULL) { - //???r??????? + //?????????? if (ATR_LIFE(p_party[d7]) > 0 && ATR_VCT_NO(p_party[d7]) != 0 && ATR_VCT_NO(p_party[d7]) < VCT_NO_DIE) break; } } - if (d7 == BATTLKPKPLYAERNUM) //??? - ATR_VCT_NO(a0) = 0; //s?h? + if (d7 == BATTLKPKPLYAERNUM) //??? + ATR_VCT_NO(a0) = 0; //?? } break; - case 2: //u + case 2: // for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) { if (ATR_NAME(p_party[d7]) != NULL) { - //?????? + //?????? if (ATR_VCT_NO(p_party[d7]) != 0 && ATR_VCT_NO(p_party[d7]) != VCT_NO_DIE + 2) break; } } if (d7 == BATTLKPKPLYAERNUM) - { //??? + { //??? action_inf = 2; - command_point = 0; //????????????? + command_point = 0; //????????????? } break; - case 3: //K͢r? + case 3: //? for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) { if (ATR_NAME(p_party[d7]) != NULL) { - if (ATR_VCT_NO(p_party[d7]) != 0 && ATR_VCT_NO(p_party[d7]) != VCT_NO_DIE + 2) //???r??????? + if (ATR_VCT_NO(p_party[d7]) != 0 && ATR_VCT_NO(p_party[d7]) != VCT_NO_DIE + 2) //?????????? break; } } if (d7 == BATTLKPKPLYAERNUM) { ATR_VCT_NO(a0) = 0; - action_inf = 3; //K?? - if (BattleBpFlag & BATTLE_BP_JOIN)// ӡP?? + action_inf = 3; //?? + if (BattleBpFlag & BATTLE_BP_JOIN)// ?? { - //u?? + //?? if (check_all_dead()) action_inf = 2; } } break; - case 4: //????r? + case 4: //????? for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) { if (ATR_NAME(p_party[d7]) != NULL) { - //u?? + //?? if (check_all_dead()) { - //???r??????? + //?????????? if (ATR_VCT_NO(p_party[d7]) != 0 && ATR_VCT_NO(p_party[d7]) != VCT_NO_DIE + 2) break; } else { - //????????????? + //????????????? if (BattleMyNo == d7) { if (ATR_VCT_NO(p_party[d7]) == 55) break; } - //???r??????? + //?????????? if (ATR_LIFE(p_party[d7]) > 0 && ATR_VCT_NO(p_party[d7]) != 0 && ATR_VCT_NO(p_party[d7]) != VCT_NO_DIE + 2) break; } @@ -6203,10 +6203,10 @@ void master(ACTION *a0) if (d7 == BATTLKPKPLYAERNUM) { ATR_VCT_NO(a0) = 0; - //t@e?? + //?? if (!action_inf) - action_inf = 1; //???? - //u?? + action_inf = 1; //???? + //?? if (check_all_dead()) action_inf = 2; } @@ -6234,7 +6234,7 @@ master_500: if (g_iRunEarthQuake == 3) g_iRunEarthQuake = 0; } - //????????? + //????????? d6 = 0; for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) { @@ -6242,54 +6242,54 @@ master_500: if (ATR_NAME(a1) == NULL) //??? continue; sort_chr_buf[d6].work = a1; //??????? - sort_chr_buf[d6++].v_pos = ATR_V_POS(a1); //????? + sort_chr_buf[d6++].v_pos = ATR_V_POS(a1); //????? } for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) { - if ((a1 = p_missile[d7]) == NULL) //??? + if ((a1 = p_missile[d7]) == NULL) //??? continue; sort_chr_buf[d6].work = a1; //??????? - sort_chr_buf[d6++].v_pos = ATR_V_POS(a1); //????? + sort_chr_buf[d6++].v_pos = ATR_V_POS(a1); //????? } //??????? qsort(sort_chr_buf, // ???? - d6, // {????? + d6, // ????? sizeof(SORT_CHR_EQU), // ??? - (CMPFUNC*)sort_chr // {????????? + (CMPFUNC*)sort_chr // ????????? ); - d0 = 30; //?I??? + d0 = 30; //???? for (d7 = 0; d7 < d6; d7++) ATR_DISP_PRIO(sort_chr_buf[d7].work) = d0++; } -//ж +//宠物行动处理 void monster(ACTION *a0) { int d0, d1, d6, d7, sav_command_point, idx; ACTION *a1, *a2, *a3; static ACTION *a0tmp[10]; - static int a0mark[10]; // 0:ѽaction release 1:δ + static int a0mark[10]; // 0:已将action release 1:未 static int a0tmpcount; switch (ATR_VCT_NO(a0)) { - case 0: // - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + case 0: //待机 + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? if (ATR_VCT_NO(p_master) == 1) { - a1 = ATR_COUNTER(p_master); //????????? + a1 = ATR_COUNTER(p_master); //????????? if (a1 != NULL && ATR_GROUP_FLG(a0) != ATR_GROUP_FLG(a1) && ATR_NAME(a1) != NULL) { - //??? + //??? if (ATR_H_POS(a1) < lpDraw->xSize && ATR_H_POS(a1) > 64 && ATR_V_POS(a1) < lpDraw->ySize && ATR_V_POS(a1) > 0 - 64) { - if (ATR_STATUS(a1) <= JUJUTSU_1) //????????? + if (ATR_STATUS(a1) <= JUJUTSU_1) //????????? { - a1 = ATR_COUNTER(p_master); //???????? - d0 = ATR_H_POS(a1); //??? + a1 = ATR_COUNTER(p_master); //???????? + d0 = ATR_H_POS(a1); //??? d1 = ATR_V_POS(a1); radar2(a0, d0, d1, 2); //???? - //???????? + //???????? d0 = ATR_CRS(a0) - ATR_CRS_OLD(a0); if (d0 < 0) d0 = 0 - d0; @@ -6302,11 +6302,11 @@ void monster(ACTION *a0) } } } - //?????????? + //?????????? d0 = ATR_STATUS(a0); if (ATR_STATUS(a0) != 3 && ATR_STATUS(a0) != 4) { - //?P??????e???? + //??????????? if (BattleMyNo >= 20 || (ATR_ATTRIB(a0) & ACT_ATR_BTL_CMD_END) #ifdef _PETSKILL_BATTLE_MODEL || ATR_INT_WORK0(a0) == ATT_BATTLE_MODEL @@ -6314,38 +6314,38 @@ void monster(ACTION *a0) ){ pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); } - //ォͼƬ¼غȾ wxy + //这里将图片重新加载和渲染 wxy //pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); } #ifdef _PETSKILL_BATTLE_MODEL - // 黻ҹû + // 检查换我攻击了没 if (ATR_INT_WORK0(a0) == ATT_BATTLE_MODEL) { - a1 = ATR_BODY_WORK(0, a0); // ȡĿ - // Ⱥ˳ִ + a1 = ATR_BODY_WORK(0, a0); // 取出被攻击目标 + // 照先后顺序执行 if (ATR_LONG_WORK(ATR_PLACE_NO(a0), a1) == ATR_INT_WORK2(p_master)) { - // Ŀصʱٹ + // 当目标回到待机时再攻击 if (ATR_VCT_NO(a1) == 0) - ATR_VCT_NO(a0) = 2; // ʼ - // Ŀ뿪սʱ + ATR_VCT_NO(a0) = 2; // 开始攻击 + // 当目标离开战场或死亡时结束攻击 if (ATR_VCT_NO(a1) == VCT_NO_APPEAR || ATR_LIFE(a1) <= 0) { - ATR_VCT_NO(a0) = 3; // - ATR_BODY_WORK(0, a0) = NULL; // + ATR_VCT_NO(a0) = 3; // 结束攻击 + ATR_BODY_WORK(0, a0) = NULL; // 清空 } } } #endif break; - case 1: //ǰ - ATR_SPD(a0) = 32; //ƶٶ - a1 = ATR_BODY_WORK(0, a0); //зλ + case 1: //前进 + ATR_SPD(a0) = 32; //移动速度 + a1 = ATR_BODY_WORK(0, a0); //敌方的位置 d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? - //???????? + //???????? d0 = ATR_CRS(a0) - ATR_CRS_OLD(a0); if (d0 < 0) d0 = 0 - d0; @@ -6355,7 +6355,7 @@ void monster(ACTION *a0) ATR_CRS_OLD(a0) = ATR_CRS(a0); } if (d1 <= 32 * 2) - { // + { //到达 #ifdef _PIRATE_ANM if (ATR_CHR_NO(a0) == 101491) ATR_CHR_NO(a0) = 101490; @@ -6364,31 +6364,31 @@ void monster(ACTION *a0) ATR_HIT_STOP(a0) = 0; //?????????? #ifdef _PETSKILL_BATTLE_MODEL if (ATR_INT_WORK0(a0) == ATT_BATTLE_MODEL) - ATR_VCT_NO(a0) = 0; // ֮ȴ + ATR_VCT_NO(a0) = 0; // 到达之后先待机 else #endif { if (ATR_ATTACK_KIND(0, a0) & ATT_VICARIOUS) - { //?????? - ATR_VCT_NO(a0) = 65; //??????r? - ATR_BODY_WORK(1, a0) = ATR_BODY_WORK(0, a0); //????~ - a1 = ATR_BODY_WORK(0, a0); //???????? + { //?????? + ATR_VCT_NO(a0) = 65; //??????? + ATR_BODY_WORK(1, a0) = ATR_BODY_WORK(0, a0); //???? + a1 = ATR_BODY_WORK(0, a0); //???????? ATR_BODY_WORK(1, a1) = a0; // - a1 = p_party[get_num()]; //?????????? + a1 = p_party[get_num()]; //?????????? #ifdef _ATTACK_EFFECT - //Ȯ xiezi + //修正忠犬 xiezi if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a0) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a0) = get_num(); // 记录特效编号 #endif - ATR_VCT_NO(a1) = 69; //??????? + ATR_VCT_NO(a1) = 69; //??????? ATR_FIRST_FLG(a1) = 0; // - ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); //?hI?????? + ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); //??????? } - else if (ATR_SYNC_FLG(a0)) //i????? + else if (ATR_SYNC_FLG(a0)) //????? { - ATR_VCT_NO(a0) = 19; //i???r?? - a1 = ATR_BODY_WORK(0, a0); //???? - ATR_LONG_WORK(0, a1)--; //??? + ATR_VCT_NO(a0) = 19; //????? + a1 = ATR_BODY_WORK(0, a0); //???? + ATR_LONG_WORK(0, a1)--; //??? } else //andy_bug ATR_VCT_NO(a0) = 2; //??? @@ -6397,13 +6397,13 @@ void monster(ACTION *a0) else { #ifndef _PIRATE_ANM - gemini(a0); //?h + gemini(a0); //? #else if (ATR_CHR_NO(a0) != 101490) - gemini(a0); //?h + gemini(a0); //? #endif } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? #ifndef _PIRATE_ANM pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); @@ -6421,7 +6421,7 @@ void monster(ACTION *a0) } #endif break; - case 2: // + case 2: //攻击 if (ATR_HIT_STOP(a0)) //?????????? { if (--ATR_HIT_STOP(a0)) //?????????? @@ -6431,14 +6431,14 @@ void monster(ACTION *a0) #ifdef _PETSKILL_BATTLE_MODEL if (ATR_INT_WORK0(a0) == ATT_BATTLE_MODEL && ATR_FIRST_FLG(a0) == 0 && ATR_INT_WORK3(a0) == 0) { - if (ATR_ATTACK_KIND(0, a0) & ATT_VICARIOUS) // Ȯ + if (ATR_ATTACK_KIND(0, a0) & ATT_VICARIOUS) // 忠犬 { - ATR_VCT_NO(a0) = 65; // Ƚеȴ - ATR_BODY_WORK(1, a1) = a0; // ѹ¼,֮õ - a1 = p_party[ATR_LONG_WORK(0, a0)]; // ȡ action - ATR_VCT_NO(a1) = 69; // ʾ damage + ATR_VCT_NO(a0) = 65; // 攻击物件先进行等待 + ATR_BODY_WORK(1, a1) = a0; // 把攻击物件记录到主人身上,之后会用到 + a1 = p_party[ATR_LONG_WORK(0, a0)]; // 取出宠物的 action + ATR_VCT_NO(a1) = 69; // 显示 damage 的字 ATR_FIRST_FLG(a1) = 0; - ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); // ǰĿ + ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); // 宠物的前进目标是主人 ATR_INT_WORK3(a0) = 1; break; } @@ -6448,16 +6448,16 @@ void monster(ACTION *a0) if (ATR_FIRST_FLG(a0) == 0) //??????? { ATR_HIT(a0) = 0; //????????? - ATR_HIT_TIMING(a0) = 0; //?????????? + ATR_HIT_TIMING(a0) = 0; //?????????? - d0 = ATR_H_POS(a1); //??? + d0 = ATR_H_POS(a1); //??? d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? - ATR_CRS_OLD(a0) = ATR_CRS(a0) = d0; //???V + ATR_CRS_OLD(a0) = ATR_CRS(a0) = d0; //??? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; /* ????? */ //?????????? if (ATR_ATTACK_KIND(0, a0) & ATT_G_CRASH) - //???????? + //???????? set_damage_num(a0, 12, -64 + 16); else if (ATR_ATTACK_KIND(0, a0) & ATT_TOOEH) set_damage_num(a0, 29, -64 + 16); @@ -6502,21 +6502,21 @@ void monster(ACTION *a0) } } #endif -#ifdef _SKILL_ROAR //輼:() +#ifdef _SKILL_ROAR //宠技:大吼(克年兽) else if (ATR_ATTACK_KIND(0, a0) & ATT_ATTROAR) { set_damage_num(a0, 22, -64 + 16); ATR_ROAR(a1) = 2; } #endif -#ifdef _SKILL_SELFEXPLODE //Ա +#ifdef _SKILL_SELFEXPLODE //自爆 else if (ATR_ATTACK_KIND(0, a0) & ATT_ATTSELFEXPLODE) { ATR_SELFEXPLODE(a0) = 1; set_damage_num(a0, 23, -64 + 16); } #endif -#ifdef _PETSKILL_EXPLODE // +#ifdef _PETSKILL_EXPLODE //爆弹 else if (ATR_ATTACK_KIND(0, a0) & ATT_EXPLODE) { //ATR_SELFEXPLODE(a0) = 1; @@ -6531,16 +6531,16 @@ void monster(ACTION *a0) { if (ATR_RIDE(a1) == 1) { - //set_damage_num(a0, 12, -64+16); //ݲͼ + //set_damage_num(a0, 12, -64+16); //落马术暂不设图 ATR_PETFALL(a1) = 1; } } } - //#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + //#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & ATT_ATTPREPROSKILL) set_damage_num(a1, 41, -64 + 25); //#endif - //i???????? + //???????? if (ATR_SYNC_FLG(a0)) d0 = 0; else @@ -6550,7 +6550,7 @@ void monster(ACTION *a0) d0 = 0; else #endif - d0 = get_next_flg(); //?????????? + d0 = get_next_flg(); //?????????? } if (d0 & ATT_COUNTER) //?????????? { @@ -6564,47 +6564,47 @@ void monster(ACTION *a0) ATR_COUNTER_FLG(a1) = 0; ATR_STIMER(a0) = 20; } - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } //ATT_AKO1 #ifdef _PETSKILL_ANTINTER - if (ATR_VCT_NO(a1) >= VCT_NO_DIE && (ATR_ATTACK_KIND(0, a1) & (1 << 28))) //??? + if (ATR_VCT_NO(a1) >= VCT_NO_DIE && (ATR_ATTACK_KIND(0, a1) & (1 << 28))) //??? #else - if (ATR_VCT_NO(a1) >= VCT_NO_DIE) //??? + if (ATR_VCT_NO(a1) >= VCT_NO_DIE) //??? #endif { if (ATR_ATTACK_KIND(0, a0) & ATT_COUNTER && ATR_COUNTER(p_master) != a0) //??????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? else { ATR_VCT_NO(a0) = 3; ATR_STIMER(a0) = 20; #ifdef _PETSKILL_BATTLE_MODEL - // + // 攻击完毕 if (ATR_INT_WORK0(a0) == ATT_BATTLE_MODEL) ATR_LONG_WORK(ATR_PLACE_NO(a0), a1) = 0; #endif } break; } -#ifdef _SKILL_SELFEXPLODE //Ա +#ifdef _SKILL_SELFEXPLODE //自爆 if (ATR_SELFEXPLODE(a0) == 1) { - ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? ATR_CHR_ACT(a0) = ANIM_ATTACK; } else #endif ATR_CHR_ACT(a0) = ANIM_ATTACK; //????????? if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //???????? + { //???????? if (ATR_ATTACK_KIND(0, a0) & ATT_COUNTER && ATR_COUNTER(p_master) != a0) //??????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? else { ATR_VCT_NO(a0) = 3; #ifdef _PETSKILL_BATTLE_MODEL - // + // 攻击完毕 if (ATR_INT_WORK0(a0) == ATT_BATTLE_MODEL) ATR_LONG_WORK(ATR_PLACE_NO(a0), a1) = 0; #endif @@ -6615,7 +6615,7 @@ void monster(ACTION *a0) if (ATR_HIT(a0)) { #ifdef _ATTACK_EFFECT - if (ATR_LONG_WORK(0, a0) > 0) // Ч + if (ATR_LONG_WORK(0, a0) > 0) // 放特效 { SetDisplayAttackEffect(a0, ATR_LONG_WORK(0, a0)); ATR_LONG_WORK(0, a0) = 0; @@ -6635,7 +6635,7 @@ void monster(ACTION *a0) #endif #ifdef _PETSKILL_ACUPUNCTURE ////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -6651,7 +6651,7 @@ void monster(ACTION *a0) ////////////////////// #else ////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA | ATT_TRAP)) #else if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_ABSORPTION | ATT_BALLIA)) @@ -6671,13 +6671,13 @@ void monster(ACTION *a0) if (ATR_INT_WORK0(a0) != ATT_BATTLE_MODEL) #endif { - ATR_VCT_NO(a1) = 10; //趨Լ + ATR_VCT_NO(a1) = 10; //设定自己受伤 ATR_DAMAGE(a1) = ATR_DAMAGE(a0);//ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0)*2; //ATR_ATTACK_KIND(0, a1) &= ATT_AKO2; if ((float)ATR_DAMAGE(a1) >= (float)(ATR_MAX_LIFE(a1) * 1.2 + 20.0)) { ATR_LIFE(a1) = 0; - ATR_AKO_FLG(a1) = 2; // + ATR_AKO_FLG(a1) = 2; //打飞 } a1 = ATR_BODY_WORK(0, a0) = a0; } @@ -6692,7 +6692,7 @@ void monster(ACTION *a0) } #ifdef _PETSKILL_ACUPUNCTURE /////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -6708,7 +6708,7 @@ void monster(ACTION *a0) /////////////////// #else /////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP) ) #else if (ATR_ATTACK_KIND(0, a0) & ATT_REFLEX) @@ -6717,30 +6717,30 @@ void monster(ACTION *a0) #endif { #ifdef _PETSKILL_BATTLE_MODEL - // Dzǹ + // 检查是不是攻击物件 if (ATR_INT_WORK0(a0) != ATT_BATTLE_MODEL) #endif a1 = ATR_BODY_WORK(0, a0) = a0; } else - a1 = ATR_BODY_WORK(0, a0); //????????xxx + a1 = ATR_BODY_WORK(0, a0); //????????xxx //????????? ATR_COMBO(a1) = 0; - //??????? + //??????? if (ATR_ATTACK_KIND(0, a0) & ATT_DODGE) { //??????????? if (ATR_HIT_TIMING(a0) == 0) { - ATR_HIT_TIMING(a0) = 1; //?????????? + ATR_HIT_TIMING(a0) = 1; //?????????? ATR_VCT_NO(a1) = 16; //???? - ATR_CRS(a1) = ATR_CRS(a0); //????????????? + ATR_CRS(a1) = ATR_CRS(a0); //????????????? ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); // ATR_STIMER(a1) = 0; ATR_FIRST_FLG(a1) = 1; //????????? ATR_BODY_WORK(0, a1) = a0; // if (ATR_ATTACK_KIND(0, a0) & ATT_COUNTER) //??????? - //????? + //????? set_damage_num(a0, 1, -64 + 16); } ATR_HIT(a0) = 0; @@ -6751,9 +6751,9 @@ void monster(ACTION *a0) //???????? if (ATR_HIT(a0) >= 10000 && ATR_HIT(a0) < 10100) { - //????????? + //????????? if (ATR_ATTACK_KIND(0, a0) & ATT_CRUSH) - //????? + //????? set_damage_num(a1, 19, -112); } //?????????//knock out @@ -6762,12 +6762,12 @@ void monster(ACTION *a0) ATR_AKO_FLG(a1) = 1; if (ATR_ATTACK_KIND(0, a0) & ATT_AKO2) //?????? ATR_AKO_FLG(a1) = 2; - // ????? + //连击 ????? if (ATR_HIT(a0) >= 10100) { #ifdef _PETSKILL_ACUPUNCTURE /////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -6783,7 +6783,7 @@ void monster(ACTION *a0) /////////////////////// #else /////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP) ) #else @@ -6808,7 +6808,7 @@ void monster(ACTION *a0) { #ifdef _PETSKILL_ACUPUNCTURE ////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (!(ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -6824,7 +6824,7 @@ void monster(ACTION *a0) ///////////////////// #else ////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (!(ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP) )) #else if (!(ATR_ATTACK_KIND(0, a0) & ATT_REFLEX)) @@ -6832,13 +6832,13 @@ void monster(ACTION *a0) ///////////////////// #endif ATR_COMBO(a1) = 1; - a2 = ATR_BODY_WORK(1, a0); //?????? + a2 = ATR_BODY_WORK(1, a0); //?????? ATR_VCT_NO(a2) = 2; //??? - ATR_COUNTER(p_master) = a2; //?????? + ATR_COUNTER(p_master) = a2; //?????? } #ifdef _PETSKILL_ACUPUNCTURE ///////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -6854,7 +6854,7 @@ void monster(ACTION *a0) //////////////////// #else ///////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP) ) #else if (ATR_ATTACK_KIND(0, a0) & ATT_REFLEX) @@ -6863,10 +6863,10 @@ void monster(ACTION *a0) #endif { #ifdef _PETSKILL_BATTLE_MODEL - // Dzǹ + // 检查是不是攻击物件 if (ATR_INT_WORK0(a0) == ATT_BATTLE_MODEL) { - ATR_ATTACK_POW(0, a0) = 0; // ˺ + ATR_ATTACK_POW(0, a0) = 0; // 无伤害 ATR_DAMAGE_ANG(a1) = ATR_CHR_ANG(a0); ATR_ATTACK_KIND(0, a0) |= ATT_NOMISS; } @@ -6880,37 +6880,37 @@ void monster(ACTION *a0) set_damage_num(a1, 30, -64); if (ATR_ATTACK_KIND(0, a0) & BCF_SUPERWALL) set_damage_num(a1, 31, -64); - //#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + //#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & ATT_ATTNEXTPROSKILL) set_damage_num(a1, 41, -64 + 25); //#endif - if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? + if (ATR_ATTACK_KIND(0, a0) & ATT_ABSORPTION) //?????? { - if (ATR_SYNC_FLG(a0) == 0) //i???????? + if (ATR_SYNC_FLG(a0) == 0) //???????? { if (!ATR_COMBO(a1)) //???????? { - //??k + //?? #ifdef _SYUTEST ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_LIFE(a1) -= ATR_DAMAGE(a1); if (Light1 == NULL) Light1 = MakeAnimDisp(ATR_H_POS(a0), ATR_V_POS(a0), 101581, 0); set_damage_num(a1, 41, -64 + 25); - // ɹԤ + // 采光术预备 #else ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_LIFE(a1) += ATR_DAMAGE(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? #endif ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); ATR_PET_LIFE(a1) += ATR_PET_DAMAGE(a1); - if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? - ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? + if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? + ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? set_damage_num(a1, 14, -64); - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //????? } } else @@ -6918,45 +6918,45 @@ void monster(ACTION *a0) //???????? if (ATR_HIT(a0) >= 10000 && ATR_HIT(a0) < 10100) { - //??k + //?? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); #ifdef _SYUTEST - // ɹԤ + // 采光术预备 #endif ATR_LIFE(a1) += ATR_DAMAGE(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); ATR_PET_LIFE(a1) += ATR_PET_DAMAGE(a1); - if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? - ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? + if (ATR_PET_LIFE(a1) > ATR_PET_MAX_LIFE(a1)) //???? + ATR_PET_LIFE(a1) = ATR_PET_MAX_LIFE(a1); //???? set_damage_num(a1, 14, -64); - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //????? } } } else if (ATR_ATTACK_KIND(0, a0) & ATT_BALLIA) //???????? { - ATR_ATTACK_POW(0, a0) = 0; //????? - ATR_ATTACK_PET_POW(0, a0) = 0; //????? + ATR_ATTACK_POW(0, a0) = 0; //????? + ATR_ATTACK_PET_POW(0, a0) = 0; //????? } else { - ATR_VCT_NO(a1) = 10; //????? + ATR_VCT_NO(a1) = 10; //????? -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & ATT_NOMISS) NoMiss = 1 ; else NoMiss = -1 ; #endif } - //?????? + //?????? if (ATR_ATTACK_KIND(0, a0) & ATT_SATISFACTORY) - ATR_KAISHIN(a1) = 1; //??????? + ATR_KAISHIN(a1) = 1; //??????? else - ATR_KAISHIN(a1) = 0; //G????? + ATR_KAISHIN(a1) = 0; //????? ATR_DAMAGE(a1) = ATR_ATTACK_POW(0, a0); ATR_PET_DAMAGE(a1) = ATR_ATTACK_PET_POW(0, a0); //andy_mp @@ -6989,54 +6989,54 @@ void monster(ACTION *a0) { //???????? if (ATR_COMBO(a1) == 0) - //????? + //????? set_damage_num(a0, 1, -64 + 16); } - //Ч + //受伤效果音 play_damage(ATR_HIT(a0), ATR_H_POS(a0)); - //ɱ + //必杀星星 set_hit_mark(a0); - if (ATR_COMBO(a1)) //С - ATR_HIT_STOP(a0) = HIT_STOP_TIM; //ֹͣ + if (ATR_COMBO(a1)) //小队 + ATR_HIT_STOP(a0) = HIT_STOP_TIM; //动作停止 } - ATR_HIT(a0) = 0; // + ATR_HIT(a0) = 0; //攻击旗标清除 if (!(ATR_ATTACK_POW(0, a0) || ATR_ATTACK_PET_POW(0, a0))) //???? { - ATR_HIT_STOP(a0) = 0; //ֹͣ + ATR_HIT_STOP(a0) = 0; //动作停止 play_se(8, ATR_H_POS(a0), ATR_V_POS(a0)); } } break; - case 3: //ȴ + case 3: //攻击等待 #ifdef _PETSKILL_BATTLE_MODEL - // Dzǹ + // 检查是不是攻击物件 if (ATR_INT_WORK0(a0) == ATT_BATTLE_MODEL) { - // ˹ûĿ + // 检查此攻击物件还有没有目标 if (ATR_INT_WORK1(a0) > 1) { - // ҳһĿ + // 找出下一个目标 for (d0 = 1; d0 < ATR_INT_WORK1(a0); d0++) { - if (ATR_BODY_WORK(d0, a0) != NULL) // ҵĿ + if (ATR_BODY_WORK(d0, a0) != NULL) // 找到目标 { - a1 = ATR_BODY_WORK(d0, a0); // ȡĿ - ATR_BODY_WORK(d0, a0) = NULL; // - if (ATR_LIFE(a1) <= 0) // Ŀ + a1 = ATR_BODY_WORK(d0, a0); // 取出目标 + ATR_BODY_WORK(d0, a0) = NULL; // 清除 + if (ATR_LIFE(a1) <= 0) // 检查目标有无死亡 continue; - if (ATR_VCT_NO(a1) == VCT_NO_APPEAR) // Ŀ뿪ս + if (ATR_VCT_NO(a1) == VCT_NO_APPEAR) // 目标离开战场 continue; else { ATR_INT_WORK3(a0) = 0; - ATR_BODY_WORK(0, a0) = a1; // - ATR_ATTACK_KIND(0, a0) = ATR_ATTACK_KIND(d0, a0); // - ATR_ATTACK_POW(0, a0) = ATR_ATTACK_POW(d0, a0); // - ATR_ATTACK_PET_POW(0, a0) = ATR_ATTACK_PET_POW(d0, a0); // pet - ATR_LONG_WORK(0, a0) = ATR_LONG_WORK(d0, a0); // 趨ʹȮĿ - ATR_VCT_NO(a0) = 1; // ǰһĿ - ATR_INT_WORK2(p_master)++; // һ + ATR_BODY_WORK(0, a0) = a1; // 被攻方 + ATR_ATTACK_KIND(0, a0) = ATR_ATTACK_KIND(d0, a0); // 攻击种类 + ATR_ATTACK_POW(0, a0) = ATR_ATTACK_POW(d0, a0); // 攻击力 + ATR_ATTACK_PET_POW(0, a0) = ATR_ATTACK_PET_POW(d0, a0); // pet攻击力 + ATR_LONG_WORK(0, a0) = ATR_LONG_WORK(d0, a0); // 设定使用忠犬的目标 + ATR_VCT_NO(a0) = 1; // 前进下一个目标 + ATR_INT_WORK2(p_master)++; // 换下一个攻击物件攻击 ATR_INT_WORK1(a0)--; break; } @@ -7045,14 +7045,14 @@ void monster(ACTION *a0) if (d0 == ATR_INT_WORK1(a0)) ATR_INT_WORK1(a0) = 0; } - // ûĿ,뿪 + // 没目标了,离开 else { - // 趨뿪 - if (ATR_INT_WORK2(a0) == 0) // һִ + // 设定离开 + if (ATR_INT_WORK2(a0) == 0) // 第一次执行 { ATR_SPD(a0) = 16; - // 뿪 + // 往左上离开 if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 3; else if (ATR_GROUP_FLG(a0) == 1) @@ -7065,33 +7065,33 @@ void monster(ACTION *a0) #endif ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; ATR_INT_WORK2(a0) = 1; - ATR_INT_WORK2(p_master)++; // һ + ATR_INT_WORK2(p_master)++; // 换下一个攻击物件攻击 } - gemini(a0); // ƶ + gemini(a0); // 移动 ATR_CHR_ACT(a0) = ANIM_WALK; pattern(a0, 1, ANM_LOOP); - // ƶӫĻ + // 移动超出荧幕 if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT) { DeathAction(a0); p_missile[ATR_PLACE_NO(a0)] = NULL; - // Ƿе p_missile + // 检查是否所有的 p_missile 都清空了 for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) { if (p_missile[d7] != NULL) break; } if (d7 >= BATTLKPKPLYAERNUM) - ATR_INT_WORK1(p_master) = 1; // еĹж + ATR_INT_WORK1(p_master) = 1; // 所有的攻击物件都行动完了 } - // еĹж + // 所有的攻击物件都行动完了 if (ATR_INT_WORK1(p_master)) { ATR_DAMAGE(p_master) = 0; ATR_BODY_CNT(p_master) = 1; - if (ATR_BODY_WORK(0, a0) == NULL) // Ŀ겻ڳϻ + if (ATR_BODY_WORK(0, a0) == NULL) // 这个蛋的目标不在场上或已死亡 ATR_DAMAGE(p_master)++; - else // һĿ״̬Ǵ + else // 如果最后一个攻击物件打的目标的状态是待机或死亡 if (ATR_VCT_NO(ATR_BODY_WORK(0, a0)) == 0 || ATR_LIFE(ATR_BODY_WORK(0, a0)) <= 0) ATR_DAMAGE(p_master)++; } @@ -7099,41 +7099,41 @@ void monster(ACTION *a0) break; } #endif - if (--ATR_STIMER(a0)) //??r??? + if (--ATR_STIMER(a0)) //????? break; if (ATR_SYNC_FLG(a0)) - { //i????? + { //????? d0 = ATR_INT_WORK0(a0); d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; - ATR_VCT_NO(a0) = 4; //?~? + ATR_VCT_NO(a0) = 4; //?? ATR_SPD(a0) = 32; break; } - d0 = get_num(); //???h?? + d0 = get_num(); //????? if (d0 == 255) - { //??? + { //??? d0 = ATR_INT_WORK0(a0); d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; -#ifdef _SKILL_SELFEXPLODE //Ա +#ifdef _SKILL_SELFEXPLODE //自爆 if (ATR_SELFEXPLODE(a0) == 1) ATR_VCT_NO(a0) = 114; else #endif - ATR_VCT_NO(a0) = 4; //?~? + ATR_VCT_NO(a0) = 4; //?? ATR_SPD(a0) = 32; break; } - if (ATR_ATTACK_KIND(0, a0) & ATT_VICARIOUS) //????????? + if (ATR_ATTACK_KIND(0, a0) & ATT_VICARIOUS) //????????? a2 = ATR_BODY_WORK(1, a0); else - a2 = ATR_BODY_WORK(0, a0); //??V - a1 = ATR_BODY_WORK(0, a0) = p_party[d0]; //???? + a2 = ATR_BODY_WORK(0, a0); //?? + a1 = ATR_BODY_WORK(0, a0) = p_party[d0]; //???? - ATR_ATTACK_KIND(0, a0) = get_num(); //?????? + ATR_ATTACK_KIND(0, a0) = get_num(); //?????? ATR_ATTACK_POW(0, a0) = get_num(); //?????? #ifdef _PET_ITEM if (ATR_ATTACK_KIND(0, a0) & ATT_ATTACKBACK) @@ -7156,39 +7156,39 @@ void monster(ACTION *a0) #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a0) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a0) = get_num(); // 记录特效编号 #endif - if (a1 == a2) //??i??? - ATR_VCT_NO(a0) = 5; //e?tr?? + if (a1 == a2) //????? + ATR_VCT_NO(a0) = 5; //??? else - ATR_VCT_NO(a0) = 1; //?h? + ATR_VCT_NO(a0) = 1; //?? d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? ATR_CRS_OLD(a0) = ATR_CRS(a0) = d0; //?????? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; /* ????? */ break; - case 5: //e?tr?? + case 5: //??? a1 = ATR_BODY_WORK(0, a0); - if (ATR_VCT_NO(a1) == 0) //?e?t?????? - ATR_VCT_NO(a0) = 1; //?h? + if (ATR_VCT_NO(a1) == 0) //???????? + ATR_VCT_NO(a0) = 1; //?? break; - case 4: // + case 4: //后退 d0 = ATR_INT_WORK0(a0); d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CRS_OLD(a0) = ATR_CRS(a0) = d0; //?????? #ifndef _PIRATE_ANM - gemini(a0); //?h + gemini(a0); //? #else if (ATR_CHR_NO(a0) != 101490) - gemini(a0); //?h + gemini(a0); //? #endif if (d1 <= (ATR_SPD(a0) >> 2)) { //???? - if (ATR_DAMAGE(p_master) != ATR_BODY_CNT(p_master)) //?????? - ATR_DAMAGE(p_master)++; //?????? + if (ATR_DAMAGE(p_master) != ATR_BODY_CNT(p_master)) //?????? + ATR_DAMAGE(p_master)++; //?????? if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 3; else if (ATR_GROUP_FLG(a0) == 1) @@ -7200,15 +7200,15 @@ void monster(ACTION *a0) ATR_CHR_ANG(a0) = 1; #endif// ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; - ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? + ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? ATR_V_POS(a0) = ATR_INT_WORK1(a0); #ifdef _PIRATE_ANM if (ATR_CHR_NO(a0) == 101492) ATR_CHR_NO(a0) = 101490; #endif - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? #ifndef _PIRATE_ANM pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); @@ -7226,27 +7226,27 @@ void monster(ACTION *a0) } #endif break; - case 6: //?\? + case 6: //?? if (--ATR_STIMER(a0)) break; ATR_SPD(a0) = 10; - ATR_VCT_NO(a0) = 14; //???????~? - ATR_FIRST_FLG(a0) = 0; //?~? + ATR_VCT_NO(a0) = 14; //???????? + ATR_FIRST_FLG(a0) = 0; //?? break; - case 10: // - if (!ATR_DAMAGE(a0) && ATR_LIFE(a0) > 0 && !ATR_PET_DAMAGE(a0)) //???????? + case 10: //被攻击 + if (!ATR_DAMAGE(a0) && ATR_LIFE(a0) > 0 && !ATR_PET_DAMAGE(a0)) //???????? { //???????? if (!ATR_COMBO(a0)) { - //?? -#ifdef _SKILL_ROAR //輼:()//tuen "miss" off + //?? +#ifdef _SKILL_ROAR //宠技:大吼(克年兽)//tuen "miss" off if (ATR_ROAR(a0) == 2){ // set_damage_num(a0, 18, -64); } else { -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (NoMiss == 1);//set_damage_num(a0, 1, -64); else if (NoMiss == -1) set_damage_num(a0, 0, -64); @@ -7257,19 +7257,19 @@ void monster(ACTION *a0) #else set_damage_num(a0, 0, -64); #endif - d0 = get_next_flg(); //?????????? + d0 = get_next_flg(); //?????????? if (d0 & ATT_COUNTER) //??????? ATR_VCT_NO(a0) = 11; //????? else { pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? } } else { pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? } break; } @@ -7277,12 +7277,12 @@ void monster(ACTION *a0) { //????? //???????? if (!ATR_COMBO(a0)) - //??? + //??? set_damage_num(a0, 3, -64 + 16); - ATR_CHR_ACT(a0) = ANIM_GUARD; //??????????// + ATR_CHR_ACT(a0) = ANIM_GUARD; //??????????//防 } else - ATR_CHR_ACT(a0) = ANIM_DAMAGE; //???????????// + ATR_CHR_ACT(a0) = ANIM_DAMAGE; //???????????//受伤 ATR_CHR_ANG(a0) = (ATR_DAMAGE_ANG(a0) + 4) & 7; //?????????????????? if (!ATR_COMBO(a0) || ATR_CHR_ACT_OLD(a0) != ANIM_DAMAGE) @@ -7294,14 +7294,14 @@ void monster(ACTION *a0) ATR_STIMER(a0) = 255; else { - if (ATR_KAISHIN(a0)) //?????? + if (ATR_KAISHIN(a0)) //?????? ATR_STIMER(a0) = HIT_STOP_TIM * 4; else ATR_STIMER(a0) = HIT_STOP_TIM; } #ifdef _PETSKILL_ACUPUNCTURE ///////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -7317,7 +7317,7 @@ void monster(ACTION *a0) ///////////////////////// #else ///////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP) && ATR_SYNC_FLG(a0) == 0) #else if (ATR_ATTACK_KIND(0, a0) & ATT_REFLEX && ATR_SYNC_FLG(a0) == 0) @@ -7326,16 +7326,16 @@ void monster(ACTION *a0) #endif ATR_STIMER(a0) = HIT_STOP_TIM * 4;//817333333 ATR_SPD(a0) = 16; -#ifdef _MAGIC_DEEPPOISION //綾 +#ifdef _MAGIC_DEEPPOISION //剧毒 if ((ATR_DEEPPOISION(a0) == 1)) ATR_STIMER(a0) = 50; #endif //???????? if (!ATR_COMBO(a0)) { - //????k + //???? set_damage_num(a0, 6, -64); - ATR_LIFE(a0) -= ATR_DAMAGE(a0); //????? + ATR_LIFE(a0) -= ATR_DAMAGE(a0); //????? //andy_mp ATR_MP(a0) -= ATR_MPDAMAGE(a0); ATR_PET_LIFE(a0) -= ATR_PET_DAMAGE(a0); @@ -7346,30 +7346,30 @@ void monster(ACTION *a0) petfallChangeGraph(a0); } if (ATR_PET_LIFE(a0) <= 0 && ATR_RIDE(a0)) - { //??????? + { //??????? ATR_PET_LIFE(a0) = 0; if (ATR_LIFE(a0) > 0) petfallChangeGraph(a0); } if (ATR_LIFE(a0) <= 0 || (ATR_ATTACK_KIND(1, a0) & ATT_DEATH)) - { //??????? + { //??????? ATR_LIFE(a0) = 0; - slow_flg++; //???? + slow_flg++; //???? flash_vct_no = 1; //????????? } } break; - case 11: //????r? + case 11: //????? if (ATR_DAMAGE(a0)) { //??????? gemini(a0); //?????? ATR_CRS_OLD(a0) = ATR_CRS(a0) = (ATR_CRS(a0) + 16) & 31; - if (--ATR_STIMER(a0)) //??r??? + if (--ATR_STIMER(a0)) //????? break; } #ifdef _PETSKILL_ACUPUNCTURE ////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -7385,7 +7385,7 @@ void monster(ACTION *a0) ////////////////////// #else ////////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP) && ATR_SYNC_FLG(a0) == 0) #else if (ATR_ATTACK_KIND(0, a0) & ATT_REFLEX && ATR_SYNC_FLG(a0) == 0) @@ -7393,13 +7393,13 @@ void monster(ACTION *a0) ////////////////////// #endif { - sav_command_point = command_point; //??????????~ + sav_command_point = command_point; //?????????? d0 = get_num(); - command_point = sav_command_point; //???????????? + command_point = sav_command_point; //???????????? if (d0 != 255) - { //???? - a1 = ATR_BODY_WORK(0, a0) = p_party[get_num()]; //???? - ATR_ATTACK_KIND(0, a0) = get_num(); //?????? + { //???? + a1 = ATR_BODY_WORK(0, a0) = p_party[get_num()]; //???? + ATR_ATTACK_KIND(0, a0) = get_num(); //?????? ATR_ATTACK_POW(0, a0) = get_num(); //?????? #ifdef _PET_ITEM if (ATR_ATTACK_KIND(0, a0) & ATT_ATTACKBACK) @@ -7420,25 +7420,25 @@ void monster(ACTION *a0) else LogToBattleError(BattleCmd, __LINE__); - //սЧ xiezi + //修正战斗特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a0) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a0) = get_num(); // 记录特效编号 #endif ATR_HIT_STOP(a0) = 0; //?????????? ATR_VCT_NO(a0) = 2; //??? ATR_FIRST_FLG(a0) = 0; //???????? ATR_CHR_ACT_OLD(a0) = -1; - if (ATR_ATTACK_KIND(0, a0) & ATT_VICARIOUS) //?????? - ATR_VCT_NO(a0) = 1; //q? + if (ATR_ATTACK_KIND(0, a0) & ATT_VICARIOUS) //?????? + ATR_VCT_NO(a0) = 1; //? break; } } if (ATR_COUNTER_FLG(a0)) { //???????//counter - a1 = ATR_BODY_WORK(0, a0) = p_party[get_num()]; //???? - ATR_ATTACK_KIND(0, a0) = get_num(); //?????? + a1 = ATR_BODY_WORK(0, a0) = p_party[get_num()]; //???? + ATR_ATTACK_KIND(0, a0) = get_num(); //?????? ATR_ATTACK_POW(0, a0) = get_num(); //?????? #ifdef _PET_ITEM if (ATR_ATTACK_KIND(0, a0) & ATT_ATTACKBACK) @@ -7459,42 +7459,42 @@ void monster(ACTION *a0) else LogToBattleError(BattleCmd, __LINE__); - //Ч xiezi + //修正技能特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a0) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a0) = get_num(); // 记录特效编号 #endif ATR_CHR_ANG(a0) = (ATR_DAMAGE_ANG(a0) + 4) & 7; pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); ATR_BODY_CNT(a0) = 1; // - ATR_BODY_WORK(0, a0) = a1; //? + ATR_BODY_WORK(0, a0) = a1; //? ATR_HIT_STOP(a0) = HIT_STOP_TIM; //?????????? ATR_VCT_NO(a0) = 2; //??? ATR_FIRST_FLG(a0) = 0; //???????? - //????? + //????? ATR_CHR_ACT_OLD(a0) = -1; break; } - if (ATR_LIFE(a0) <= 0) //??? + if (ATR_LIFE(a0) <= 0) //??? slow_flg--; //????? - // ????? + //打飞 ????? if (ATR_AKO_FLG(a0)) { //???? ATR_FIRST_FLG(a0) = 0; ATR_VCT_NO(a0) = 55; - //????V?ϣ?? + //?????OK?? if (ATR_PET_OK(a0)) { - a1 = p_party[ATR_PLACE_NO(a0) + 5]; //???????? + a1 = p_party[ATR_PLACE_NO(a0) + 5]; //???????? if (ATR_NAME(a1) != NULL) { ATR_BODY_WORK(0, a0) = a1; //????????? - if (ATR_LIFE(a1) > 0) //???????? + if (ATR_LIFE(a1) > 0) //???????? { ATR_VCT_NO(a1) = 56; //???????? - ATR_BODY_WORK(0, a1) = a0; //???????? + ATR_BODY_WORK(0, a1) = a0; //???????? } } else @@ -7502,10 +7502,10 @@ void monster(ACTION *a0) } else ATR_BODY_WORK(0, a0) = NULL; //????????? - //?????? + //?????? if (BattleMyNo + 5 == ATR_PLACE_NO(a0)) { - // ???????????? + // ???????????? if (att_select_flg == TRUE) { //???? @@ -7514,7 +7514,7 @@ void monster(ACTION *a0) } else { - // i????? + // ????? if (battlePetNoBak2 == pc.battlePetNo) { //???? @@ -7528,11 +7528,11 @@ void monster(ACTION *a0) } break; } - if (ATR_KAISHIN(a0)) //?????? - ATR_SPD(a0) = 35;//˾ + if (ATR_KAISHIN(a0)) //?????? + ATR_SPD(a0) = 35;//后退距离 else ATR_SPD(a0) = 28; -#ifdef _MAGIC_DEEPPOISION //綾 +#ifdef _MAGIC_DEEPPOISION //剧毒 if (ATR_DEEPPOISION(a0) == 1) { ATR_SPD(a0) = 0; @@ -7542,7 +7542,7 @@ void monster(ACTION *a0) ATR_VCT_NO(a0) = 12; //??????? break; case 12: //?????? - //???? + //???? if ((ATR_CHR_NO(a0) >= SPR_mwood1 && ATR_CHR_NO(a0) <= SPR_mstone3) || (ATR_CHR_NO(a0) == 15323) || (ATR_CHR_NO(a0) == 10812) || (ATR_CHR_NO(a0) == 15527) || (ATR_CHR_NO(a0) == 15543) || (ATR_CHR_NO(a0) == 15575) || (ATR_CHR_NO(a0) == 15607) @@ -7550,7 +7550,7 @@ void monster(ACTION *a0) ATR_SPD(a0) -= 2; else { - //˶ + //后退动画 if (ATR_CHR_ACT(a0) == ANIM_DAMAGE && ATR_CHR_NO(a0) >= SPR_pet061 && ATR_CHR_NO(a0) <= SPR_pet064 || ATR_CHR_NO(a0) == SPR_pet065) { pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); @@ -7560,26 +7560,26 @@ void monster(ACTION *a0) else { pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP); - gemini(a0); //?h + gemini(a0); //? ATR_SPD(a0) -= 2; } } - if (ATR_SPD(a0) < 0) //????????? + if (ATR_SPD(a0) < 0) //????????? { ATR_SPD(a0) = 10; - ATR_VCT_NO(a0) = 13; //??????r? + ATR_VCT_NO(a0) = 13; //??????? ATR_STIMER(a0) = 16; -#ifdef _SHOOTCHESTNUT // Syu ADD 輼 +#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 a1 = ATR_COUNTER(p_master); if (a1->anim_chr_no_bak == 101578) ATR_STIMER(a0) = 26; #endif } break; - case 13: //??????r? - if (--ATR_STIMER(a0)) //??r??? + case 13: //??????? + if (--ATR_STIMER(a0)) //????? break; -#ifdef _SHOOTCHESTNUT // Syu ADD 輼 +#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 a1 = ATR_COUNTER(p_master); if (a1->anim_chr_no_bak == 101578) { @@ -7590,16 +7590,16 @@ void monster(ACTION *a0) } } #endif - if (ATR_LIFE(a0) > 0) //????? + if (ATR_LIFE(a0) > 0) //????? { - if (ATR_COUNTER(p_master) == a0 || ATR_SYNC_FLG(a0) == 1) //????i?????? + if (ATR_COUNTER(p_master) == a0 || ATR_SYNC_FLG(a0) == 1) //?????????? { - d0 = ATR_INT_WORK0(a0); //??? + d0 = ATR_INT_WORK0(a0); //??? d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; ATR_SPD(a0) = 32; - ATR_VCT_NO(a0) = 4; //?~? + ATR_VCT_NO(a0) = 4; //?? } else { @@ -7611,7 +7611,7 @@ void monster(ACTION *a0) { #ifdef _PETSKILL_ACUPUNCTURE //////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_COUNTER(p_master) == a0 || ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP | ATT_ACUPUNCTURE #ifdef _PET_ITEM | ATT_ATTACKBACK @@ -7639,7 +7639,7 @@ void monster(ACTION *a0) //////////////////// #else //////////////////// -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ATR_COUNTER(p_master) == a0 || ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP)) { if (ATR_ATTACK_KIND(0, a0) & (ATT_REFLEX | ATT_TRAP)) @@ -7650,25 +7650,25 @@ void monster(ACTION *a0) #endif //////////////////// #endif - ATR_DAMAGE(p_master)++; //??? + ATR_DAMAGE(p_master)++; //??? else { #ifdef _PETSKILL_BATTLE_MODEL - if (ATR_BATTLE_MODEL(a0) != ATT_BATTLE_MODEL) //DzDZ + if (ATR_BATTLE_MODEL(a0) != ATT_BATTLE_MODEL) //我是不是被攻击物件攻击 #endif - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? } - d0 = ATR_INT_WORK0(a0); //??? + d0 = ATR_INT_WORK0(a0); //??? d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; } -#ifdef _MAGIC_DEEPPOISION //綾 +#ifdef _MAGIC_DEEPPOISION //剧毒 if (ATR_DEEPPOISION(a0) == 1) ATR_VCT_NO(a0) = VCT_NO_DIE + 1; else #endif - ATR_VCT_NO(a0) = VCT_NO_DIE; //?? + ATR_VCT_NO(a0) = VCT_NO_DIE; //?? } break; case 14: //???????? @@ -7681,36 +7681,36 @@ void monster(ACTION *a0) ATR_FIRST_FLG(a0) = 1; } ATR_CRS(a0) = d0; //?????? - //???? + //???? if ((ATR_CHR_NO(a0) >= SPR_mwood1 && ATR_CHR_NO(a0) <= SPR_mstone3) || (ATR_CHR_NO(a0) == 15323) || (ATR_CHR_NO(a0) == 10812) || (ATR_CHR_NO(a0) == 15527) || (ATR_CHR_NO(a0) == 15543) || (ATR_CHR_NO(a0) == 15575) || (ATR_CHR_NO(a0) == 15607) ) d1 = ATR_SPD(a0) = 0; //???? else - gemini(a0); //?h + gemini(a0); //? if (d1 <= (ATR_SPD(a0) >> 2)) { //???? - ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? + ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? ATR_V_POS(a0) = ATR_INT_WORK1(a0); - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? ATR_SPD(a0) = 32; ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; case 15: //?? - ATR_VCT_NO(a0) = 0; //r?? - //??k + ATR_VCT_NO(a0) = 0; //?? + //?? ATR_DAMAGE(a0) = Rnd(1, 500); ATR_PET_DAMAGE(a0) = Rnd(1, 500); set_damage_num(a0, 5, -64); - ATR_LIFE(a0) += ATR_DAMAGE(a0); //??? - ATR_PET_LIFE(a0) += ATR_PET_DAMAGE(a0); //??? + ATR_LIFE(a0) += ATR_DAMAGE(a0); //??? + ATR_PET_LIFE(a0) += ATR_PET_DAMAGE(a0); //??? break; case 16: //???? - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? ATR_SPD(a0) = 16; ATR_CHR_ANG(a0) = (ATR_DAMAGE_ANG(a0) + 4) & 7; gemini(a0); @@ -7718,13 +7718,13 @@ void monster(ACTION *a0) ATR_STIMER(a0)++; if (ATR_STIMER(a0) == 20) { - ATR_CRS_OLD(a0) = ATR_CRS(a0) = (ATR_CRS(a0) + 16) & 31; //?? + ATR_CRS_OLD(a0) = ATR_CRS(a0) = (ATR_CRS(a0) + 16) & 31; //?? ATR_VCT_NO(a0)++; //????? ATR_STIMER(a0) = 0; } break; case 17: //???? - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); ATR_STIMER(a0)++; d0 = 0; @@ -7735,21 +7735,21 @@ void monster(ACTION *a0) } else { - a1 = ATR_BODY_WORK(0, a0); //????? - if (ATR_VCT_NO(a1) != 2) //?????????? + a1 = ATR_BODY_WORK(0, a0); //????? + if (ATR_VCT_NO(a1) != 2) //?????????? d0 = 1; } - if (d0) //?????? + if (d0) //?????? { if (ATR_COUNTER(p_master) == a0) - { //????? - sav_command_point = command_point; //??????????~ + { //????? + sav_command_point = command_point; //?????????? d0 = get_num(); - command_point = sav_command_point; //???????????? - if (d0 == 255) //??? + command_point = sav_command_point; //???????????? + if (d0 == 255) //??? { - ATR_STIMER(a0) = 1; //?L - ATR_VCT_NO(a0) = 3; //??r?? + ATR_STIMER(a0) = 1; //? + ATR_VCT_NO(a0) = 3; //???? break; } } @@ -7759,7 +7759,7 @@ void monster(ACTION *a0) break; case 18: //???? gemini(a0); - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); ATR_STIMER(a0)++; if (ATR_STIMER(a0) == 20) @@ -7771,17 +7771,17 @@ void monster(ACTION *a0) else #endif if (ATR_COUNTER(p_master) == a0) - { //????? - ATR_STIMER(a0) = 1; //?L - ATR_VCT_NO(a0) = 3; //??r?? + { //????? + ATR_STIMER(a0) = 1; //? + ATR_VCT_NO(a0) = 3; //???? } else { if (ATR_COUNTER_FLG(a0)) { //??????? ATR_VCT_NO(a0) = 2; //??? - ATR_BODY_WORK(0, a0) = p_party[get_num()]; //???? - ATR_ATTACK_KIND(0, a0) = get_num(); //?????? + ATR_BODY_WORK(0, a0) = p_party[get_num()]; //???? + ATR_ATTACK_KIND(0, a0) = get_num(); //?????? ATR_ATTACK_POW(0, a0) = get_num(); //?????? #ifdef _PET_ITEM if (ATR_ATTACK_KIND(0, a0) & ATT_ATTACKBACK) @@ -7803,81 +7803,81 @@ void monster(ACTION *a0) LogToBattleError(BattleCmd, __LINE__); #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a0) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a0) = get_num(); // 记录特效编号 #endif ATR_FIRST_FLG(a0) = 0; //???????? } else - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? } } break; - case 19: //i???r? - a1 = ATR_BODY_WORK(0, a0); //???? - if (!ATR_LONG_WORK(0, a1)) //????? + case 19: //???? + a1 = ATR_BODY_WORK(0, a0); //???? + if (!ATR_LONG_WORK(0, a1)) //????? { - if (ATR_BODY_WORK(1, a1) == a0) //????k?? + if (ATR_BODY_WORK(1, a1) == a0) //?????? { ATR_VCT_NO(a0) = 2; //??? break; } } - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; case 20: //?????? - if (ATR_BODY_CNT(a0) == 1 && ATR_FIRST_FLG(a0) == 0) //OD???????? + if (ATR_BODY_CNT(a0) == 1 && ATR_FIRST_FLG(a0) == 0) //???????? { - a2 = ATR_BODY_WORK(0, a0); //??? + a2 = ATR_BODY_WORK(0, a0); //??? d0 = ATR_H_POS(a2); d1 = ATR_V_POS(a2); radar(a0, &d0, &d1); //???? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; /* ????? */ - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } ATR_CHR_ACT(a0) = ANIM_ATTACK; //????????? if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //???????? + { //???????? ATR_CHR_ACT_OLD(a0) = -1; - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? break; } - //????D???? + //???????? if (ATR_CHR_CNT(a0) == ATR_HIT_TIMING(a0) && ATR_CHR_TIM(a0) == 0) { - if (ATR_BODY_CNT(a0) == 1) //OD?? + if (ATR_BODY_CNT(a0) == 1) //?? { //??????? a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a1 == NULL) { - ATR_DAMAGE(p_master) = 1; //??? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = 1; //??? + ATR_VCT_NO(a0) = 0; //?? return; } - /* ??? */ + /* ??? */ ATR_NAME(a1) = missile; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MISSILE; - /* ?????k? */ + /* ?????? */ if (ATR_CHR_NO(a0) >= 31027) //?????? ATR_CHR_NO(a1) = 32053; else ATR_CHR_NO(a1) = 32055; - ATR_ATTACK_KIND(0, a1) = get_num(); //?????? + ATR_ATTACK_KIND(0, a1) = get_num(); //?????? ATR_ATTACK_POW(0, a1) = get_num(); //?????? if (BattleCmd[command_point] == 'p') ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet?????? else LogToBattleError(BattleCmd, __LINE__); - //սЧ xiezi + //修正战斗特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a1) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a1) = get_num(); // 记录特效编号 #endif - /* ???t */ + /* ??? */ ATR_CHR_ANG(a1) = ATR_CHR_ANG(a0); ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); ATR_H_POS(a1) = ATR_H_POS(a0); @@ -7899,32 +7899,32 @@ void monster(ACTION *a0) a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a1 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(a0); //??? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(a0); //??? + ATR_VCT_NO(a0) = 0; //?? return; } - /* ??? */ + /* ??? */ ATR_NAME(a1) = missile; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MISSILE; - /* ?????k? */ + /* ?????? */ if (ATR_CHR_NO(a0) >= 31027) //?????? ATR_CHR_NO(a1) = 32053; else ATR_CHR_NO(a1) = 32055; - /* ???t */ - a2 = ATR_BODY_WORK(0, a1) = p_party[get_num()]; //? - ATR_ATTACK_KIND(0, a1) = get_num(); //?????? + /* ??? */ + a2 = ATR_BODY_WORK(0, a1) = p_party[get_num()]; //? + ATR_ATTACK_KIND(0, a1) = get_num(); //?????? ATR_ATTACK_POW(0, a1) = get_num(); //?????? if (BattleCmd[command_point] == 'p') ATR_ATTACK_PET_POW(0, a1) = get_num(); //pet?????? else LogToBattleError(BattleCmd, __LINE__); - //սЧ xiezi + //修正战斗特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a1) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a1) = get_num(); // 记录特效编号 #endif ATR_H_POS(a1) = ATR_H_POS(a0); @@ -7933,7 +7933,7 @@ void monster(ACTION *a0) d1 = ATR_V_POS(a2); radar(a1, &d0, &d1); ATR_CHR_ANG(a1) = crs_change_tbl[d0]; /* ????? */ - ATR_SPD(a1) = 32; //D?t??? + ATR_SPD(a1) = 32; //???? ATR_CRS(a1) = crs_change_tbl2[ATR_CHR_ANG(a1)]; gemini(a1); gemini(a1); @@ -7946,7 +7946,7 @@ void monster(ACTION *a0) } } break; - case 25: //??d + case 25: //?? if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 3; else if (ATR_GROUP_FLG(a0) == 1) @@ -7960,30 +7960,30 @@ void monster(ACTION *a0) ATR_CHR_ACT(a0) = ANIM_ATTACK; //????????? ATR_HIT(a0) = 0; //????????? if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //???????? + { //???????? ATR_CHR_ACT_OLD(a0) = -1; - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? break; } //??????? if (ATR_HIT(a0) >= 10000 && ATR_HIT(a0) < 10100) { - //????Ҥ + //???? a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a1 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? return; } - /* ??? */ + /* ??? */ ATR_NAME(a1) = monster; ATR_VCT_NO(a1) = 26; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_HIT_MARK; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = SPR_effect01; - /* ???t */ + /* ??? */ LoadBmp(ATR_PAT_NO(a0)); #ifndef __CARYTEST ATR_V_POS(a1) = ATR_V_POS(a0) + a0->anim_y + SpriteInfo[ATR_PAT_NO(a0)].height / 2; @@ -7993,32 +7993,32 @@ void monster(ACTION *a0) ATR_H_POS(a1) = ATR_H_POS(a0); } break; - case 26: //????Ҥ + case 26: //???? if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //?????? - //?????? + { //?????? + //?????? while (1) { int dx; - d0 = get_num(); //?????? - if (d0 == 255) //??? + d0 = get_num(); //?????? + if (d0 == 255) //??? break; - a2 = p_party[d0]; //???????????? - d0 = get_num(); //???????? + a2 = p_party[d0]; //???????????? + d0 = get_num(); //???????? if (BattleCmd[command_point] == 'p') - dx = get_num(); //pet???????? + dx = get_num(); //pet???????? else LogToBattleError(BattleCmd, __LINE__); - //???????Ҥ + //??????? a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a1 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? break; } - /* ??? */ + /* ??? */ ATR_NAME(a1) = monster; ATR_VCT_NO(a1) = 27; ATR_BODY_WORK(0, a1) = a2; @@ -8027,13 +8027,13 @@ void monster(ACTION *a0) ATR_INT_WORKp(a1) = dx; //pet????? else LogToBattleError(BattleCmd, __LINE__); - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_HIT_MARK; - /* ?????k? */ + /* ?????? */ d0 = get_num(); d0 = 0; ATR_CHR_NO(a1) = SPR_heal + d0; - /* ???t */ + /* ??? */ LoadBmp(ATR_PAT_NO(a2)); ATR_H_POS(a1) = ATR_H_POS(a2); #ifndef __CARYTEST @@ -8042,20 +8042,20 @@ void monster(ACTION *a0) ATR_V_POS(a1) = ATR_V_POS(a2) + a2->anim_y + g_lpRealAdrn[ATR_PAT_NO(a2)].height / 2; #endif } - DeathAction(a0); //? + DeathAction(a0); //? return; } break; - case 27: //?????? + case 27: //?????? if (ATR_HIT_STOP(a0)) { ATR_HIT_STOP(a0)--; break; } if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //?????? - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - DeathAction(a0); //? + { //?????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + DeathAction(a0); //? return; } if (ATR_CHR_CNT(a0) == 9 && ATR_CHR_TIM(a0) == 0) @@ -8064,143 +8064,143 @@ void monster(ACTION *a0) ATR_DAMAGE(a2) = ATR_INT_WORK0(a0); //????? ATR_LIFE(a2) += ATR_DAMAGE(a2); // ATR_HIT_STOP(a0) = 40; - //??k - if (ATR_LIFE(a2) > ATR_MAX_LIFE(a2)) //???? - ATR_LIFE(a2) = ATR_MAX_LIFE(a2); //???? + //?? + if (ATR_LIFE(a2) > ATR_MAX_LIFE(a2)) //???? + ATR_LIFE(a2) = ATR_MAX_LIFE(a2); //???? ATR_PET_DAMAGE(a2) = ATR_INT_WORKp(a0); //????? ATR_PET_LIFE(a2) += ATR_PET_DAMAGE(a2); // - //??k - if (ATR_PET_LIFE(a2) > ATR_PET_MAX_LIFE(a2)) //???? - ATR_PET_LIFE(a2) = ATR_PET_MAX_LIFE(a2); //???? + //?? + if (ATR_PET_LIFE(a2) > ATR_PET_MAX_LIFE(a2)) //???? + ATR_PET_LIFE(a2) = ATR_PET_MAX_LIFE(a2); //???? set_damage_num(a2, 14, -64); } break; -#ifdef _FIREHUNTER_SKILL // (ɿ) ROG ADD ȸ_ɱ +#ifdef _FIREHUNTER_SKILL // (不可开) ROG ADD 朱雀技能_火线猎杀 case FIRE_HUNTER_SKILL: if (ATR_FIRST_FLG(a0) == 0) - { //һغ - a2 = ATR_BODY_WORK(0, a0); //λַ + { //最初的一回合 + a2 = ATR_BODY_WORK(0, a0); //敌人位址 d0 = ATR_H_POS(a2); d1 = ATR_V_POS(a2); - radar(a0, &d0, &d1); //״ - ATR_CRS(a0) = d0; //·ߴ - ATR_CHR_ANG(a0) = crs_change_tbl[d0]; // - ATR_CHR_ACT(a0) = ANIM_ATTACK; // + radar(a0, &d0, &d1); //雷达 + ATR_CRS(a0) = d0; //路线储存 + ATR_CHR_ANG(a0) = crs_change_tbl[d0]; //方向 + ATR_CHR_ACT(a0) = ANIM_ATTACK; //攻击动作 } - ATR_HIT(a0) = 30; // + ATR_HIT(a0) = 30; //攻击清除 if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { // + { //攻击动画终了 ATR_CHR_ACT_OLD(a0) = -1; - //Change fix ԭΪ 31 ij FIRE_HUNTER_SKILL+1 - ATR_VCT_NO(a0) = FIRE_HUNTER_SKILL+1; //˴ - ATR_FIRST_FLG(a0) = 0; //趨Ϊһغ + //Change fix 原本为 31 改成 FIRE_HUNTER_SKILL+1 + ATR_VCT_NO(a0) = FIRE_HUNTER_SKILL+1; //攻击终了待机 + ATR_FIRST_FLG(a0) = 0; //设定为最初一回合 break; } if (ATR_HIT(a0) >= 10000 && ATR_HIT(a0) < 10100) { - a1 = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); // + a1 = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); //火焰 if (a1 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //ѶϢ - ATR_VCT_NO(a0) = 0; // + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //到达的讯息 + ATR_VCT_NO(a0) = 0; //待机 return; } - ATR_STIMER(a0) = 0; //???????? - ATR_NAME(a1) = fireHunter; //function - ATR_CHR_NO(a1) = 101734; //ͼ - ATR_DISP_PRIO(a1) = D_PRIO_MISSILE; //ȶ - /*ʼλ*/ - ATR_CHR_ANG(a1) = ATR_CHR_ANG(a0); // - ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); //λַ - ATR_BODY_WORK(1, a1) = a0; //ij + ATR_STIMER(a0) = 0; //???????? + ATR_NAME(a1) = fireHunter; //火焰的function + ATR_CHR_NO(a1) = 101734; //图号 + ATR_DISP_PRIO(a1) = D_PRIO_MISSILE; //优先度 + /*初始位置*/ + ATR_CHR_ANG(a1) = ATR_CHR_ANG(a0); //方向 + ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); //敌人位址 + ATR_BODY_WORK(1, a1) = a0; //发射火焰的宠 for (int i = 2; i < ATR_BODY_CNT(a0) + 2; i++) { - ATR_BODY_WORK(i, a1) = ATR_BODY_WORK(i, a0); //λַ - ATR_ATTACK_POW(i, a1) = ATR_ATTACK_POW(i, a0); // - ATR_ATTACK_PET_POW(i, a1) = ATR_ATTACK_PET_POW(i, a0); //﹥ + ATR_BODY_WORK(i, a1) = ATR_BODY_WORK(i, a0); //敌人位址 + ATR_ATTACK_POW(i, a1) = ATR_ATTACK_POW(i, a0); //攻击力 + ATR_ATTACK_PET_POW(i, a1) = ATR_ATTACK_PET_POW(i, a0); //宠物攻击力 } - ATR_ATTACK_POW(0, a1) = ATR_ATTACK_POW(0, a0); // - ATR_ATTACK_PET_POW(0, a1) = ATR_ATTACK_PET_POW(0, a0); //﹥ - ATR_ATTACK_KIND(0, a1) = ATR_ATTACK_KIND(0, a0); // - ATR_SPD(a1) = 60; //ٶ + ATR_ATTACK_POW(0, a1) = ATR_ATTACK_POW(0, a0); //攻击力 + ATR_ATTACK_PET_POW(0, a1) = ATR_ATTACK_PET_POW(0, a0); //宠物攻击力 + ATR_ATTACK_KIND(0, a1) = ATR_ATTACK_KIND(0, a0); //攻击种类 + ATR_SPD(a1) = 60; //速度 ATR_H_POS(a1) = ATR_H_POS(a0) ; ATR_V_POS(a1) = ATR_V_POS(a0) - 50; - ATR_CRS(a1) = crs_change_tbl2[ATR_CHR_ANG(a1)]; //· - ATR_COUNTER_FLG(a1) = ATR_CRS(a1); //˹·趨 - ATR_BODY_CNT(a1) = ATR_BODY_CNT(a0); // + ATR_CRS(a1) = crs_change_tbl2[ATR_CHR_ANG(a1)]; //路径 + ATR_COUNTER_FLG(a1) = ATR_CRS(a1); //敌人攻击路线设定 + ATR_BODY_CNT(a1) = ATR_BODY_CNT(a0); //到达旗标 bFireInit = TRUE; FireSkillEnd = TRUE; p_missile[0] = a1; p_missile[1] = NULL; - d6 = 0; //㵽ʱ + d6 = 0; //计算到达时间 while (1) { d0 = ATR_H_POS(ATR_BODY_WORK(0, a1)); d1 = ATR_V_POS(ATR_BODY_WORK(0, a1)); - radar(a1, &d0, &d1); //״ - // + radar(a1, &d0, &d1); //雷达 + //到达 if (d1 <= 10) break; ATR_CRS(a1) = d0; gemini(a1); d6++; } - if (!(ATR_GROUP_FLG(a1) = d6)) //ʱ䴢 + if (!(ATR_GROUP_FLG(a1) = d6)) //到达时间储存 ATR_GROUP_FLG(a1) = 1; ATR_H_POS(a1) = ATR_H_POS(a0) ; ATR_V_POS(a1) = ATR_V_POS(a0) - 30; - ATR_CHR_ANG(a1) = ATR_CHR_ANG(a0); // - ATR_CRS(a1) = crs_change_tbl2[ATR_CHR_ANG(a1)]; //· - ATR_COUNTER_FLG(a1) = ATR_CRS(a1); //˹·趨 + ATR_CHR_ANG(a1) = ATR_CHR_ANG(a0); //方向 + ATR_CRS(a1) = crs_change_tbl2[ATR_CHR_ANG(a1)]; //路径 + ATR_COUNTER_FLG(a1) = ATR_CRS(a1); //敌人攻击路线设定 } break; - //Change fix з˯ߺٻ,ȥ 31 (ATR_VCT_NO(a0) = 31;),ȥ,Ϊ ATR_VCT_NO(a0) = FIRE_HUNTER_SKILL+1; ijһ + //Change fix 敌方睡眠后再火线,会跑去 31 (ATR_VCT_NO(a0) = 31;),结果会射箭出去,改为 ATR_VCT_NO(a0) = FIRE_HUNTER_SKILL+1; 改成这一段 case FIRE_HUNTER_SKILL + 1: - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); - if (!ATR_STIMER(a0)) //??????? + if (!ATR_STIMER(a0)) //??????? break; - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? break; #endif case 30: //????? if (ATR_FIRST_FLG(a0) == 0) { //??????? - a2 = ATR_BODY_WORK(0, a0); //??? + a2 = ATR_BODY_WORK(0, a0); //??? d0 = ATR_H_POS(a2); d1 = ATR_V_POS(a2); radar(a0, &d0, &d1); //???? - ATR_CRS(a0) = d0; //???V + ATR_CRS(a0) = d0; //??? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; /* ????? */ if (ATR_LONG_WORK(0, a0) == 0) //????? ATR_CHR_ACT(a0) = ANIM_ATTACK; //????????? else ATR_CHR_ACT(a0) = ANIM_THROW; //????????? - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } ATR_HIT(a0) = 0; //????????? if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //???????? + { //???????? ATR_CHR_ACT_OLD(a0) = -1; - ATR_VCT_NO(a0) = 31; //????r?? + ATR_VCT_NO(a0) = 31; //?????? ATR_FIRST_FLG(a0) = 0; //???????? break; } //??????? - //?D???? + //????? if (ATR_HIT(a0) >= 10000 && ATR_HIT(a0) < 10100) { //?????? a1 = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); if (a1 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? return; } - ATR_STIMER(a0) = 0; //???????? - /* ??? */ + ATR_STIMER(a0) = 0; //???????? + /* ??? */ switch (ATR_LONG_WORK(0, a0)) { case 0: //? @@ -8211,13 +8211,13 @@ void monster(ACTION *a0) ATR_NAME(a1) = axe_shadow; ATR_CHR_NO(a1) = SPR_onokage; break; - case 2: //?? + case 2: //?? ATR_NAME(a1) = stone_shadow; ATR_CHR_NO(a1) = 25786; break; //Terry add 2001/12/28 #ifdef _ITEM_FIRECREAKER - case 3: // + case 3: //鞭炮 ATR_NAME(a1) = firecracker_shadow; ATR_CHR_NO(a1) = 25786; break; @@ -8226,12 +8226,12 @@ void monster(ACTION *a0) default: ATR_NAME(a1) = bow; } - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MISSILE; - /* ???t */ + /* ??? */ ATR_CHR_ANG(a1) = ATR_CHR_ANG(a0); - ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); //????? - ATR_BODY_WORK(1, a1) = a0; //D????? + ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); //????? + ATR_BODY_WORK(1, a1) = a0; //????? ATR_ATTACK_POW(0, a1) = ATR_ATTACK_POW(0, a0); //??? ATR_ATTACK_PET_POW(0, a1) = ATR_ATTACK_PET_POW(0, a0); //??? ATR_ATTACK_KIND(0, a1) = ATR_ATTACK_KIND(0, a0); //????? @@ -8243,18 +8243,18 @@ void monster(ACTION *a0) gemini(a1); gemini(a1); ATR_BODY_CNT(a1) = 0; - ATR_COUNTER_FLG(a1) = ATR_CRS(a0); //????????????? + ATR_COUNTER_FLG(a1) = ATR_CRS(a0); //????????????? p_missile[0] = a1; p_missile[1] = NULL; //???? a2 = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); if (a2 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? return; } - /* ??? */ + /* ??? */ switch (ATR_LONG_WORK(0, a0)) { case 0: //? @@ -8265,13 +8265,13 @@ void monster(ACTION *a0) ATR_NAME(a2) = axe; ATR_CHR_NO(a2) = SPR_ono; break; - case 2: //?? + case 2: //?? ATR_NAME(a2) = stone; ATR_CHR_NO(a2) = 25785; break; //Terry add 2001/12/28 #ifdef _ITEM_FIRECREAKER - case 3: // + case 3: //鞭炮 ATR_NAME(a2) = stone; ATR_CHR_NO(a2) = 24350; break; @@ -8280,19 +8280,19 @@ void monster(ACTION *a0) default: ATR_NAME(a2) = stick_bow; } - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a2) = D_PRIO_MISSILE; //????????? ATR_LONG_WORK(0, a1) = ATR_CHR_NO(a2); ATR_BODY_WORK(2, a1) = a2; - /* ???t */ + /* ??? */ ATR_CHR_ANG(a2) = ATR_CHR_ANG(a1); - a3 = ATR_BODY_WORK(0, a2) = ATR_BODY_WORK(0, a1); //????? - ATR_BODY_WORK(1, a2) = a1; //?s????? + a3 = ATR_BODY_WORK(0, a2) = ATR_BODY_WORK(0, a1); //????? + ATR_BODY_WORK(1, a2) = a1; //?????? ATR_H_POS(a2) = ATR_H_POS(a1); ATR_V_POS(a2) = ATR_V_POS(a1); - d6 = 0; //???? + d6 = 0; //???? ATR_SPD(a2) = 32; while (1){ d0 = ATR_H_POS(a3); @@ -8306,8 +8306,8 @@ void monster(ACTION *a0) gemini(a2); d6++; } - ATR_INT_WORK0(a2) = d1; //?????V - if (!(ATR_GROUP_FLG(a1) = d6)){ //???????V + ATR_INT_WORK0(a2) = d1; //????? + if (!(ATR_GROUP_FLG(a1) = d6)){ //??????? ATR_GROUP_FLG(a1) = 1; } d6 = d6 >> 1; @@ -8315,27 +8315,27 @@ void monster(ACTION *a0) ATR_CRS(a2) = 0; // ATR_H_MINI(a2) = 0; // ATR_V_MINI(a2) = 0; // - ATR_H_POS(a2) = ATR_H_POS(a1); //? + ATR_H_POS(a2) = ATR_H_POS(a1); //? ATR_V_POS(a2) = ATR_V_POS(a1) - 28; // } break; - case 31: //??????r? - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + case 31: //??????? + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); - if (!ATR_STIMER(a0)){ //??????? + if (!ATR_STIMER(a0)){ //??????? break; } - d0 = get_num(); //???h?? - if (d0 == 255){ //??? - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + d0 = get_num(); //????? + if (d0 == 255){ //??? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? } else { - ATR_VCT_NO(a0) = 30; //???D + ATR_VCT_NO(a0) = 30; //??? ATR_FIRST_FLG(a0) = 0; // - ATR_BODY_WORK(0, a0) = p_party[d0]; //???? - ATR_ATTACK_KIND(0, a0) = get_num(); //?????? + ATR_BODY_WORK(0, a0) = p_party[d0]; //???? + ATR_ATTACK_KIND(0, a0) = get_num(); //?????? ATR_ATTACK_POW(0, a0) = get_num(); //?????? #ifdef _PET_ITEM if (ATR_ATTACK_KIND(0, a0) & ATT_ATTACKBACK) @@ -8356,23 +8356,23 @@ void monster(ACTION *a0) else LogToBattleError(BattleCmd, __LINE__); - //Ч xiezi + //修正技能特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a0) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a0) = get_num(); // 记录特效编号 #endif } break; - case 32: // - // a2Ϊa1ΪӰ + case 32: //弓攻击 + // a2为主、a1为影 if (ATR_FIRST_FLG(a0) == 0){ //??????? - a2 = ATR_BODY_WORK(0, a0); //??? + a2 = ATR_BODY_WORK(0, a0); //??? d0 = ATR_H_POS(a2); d1 = ATR_V_POS(a2); radar(a0, &d0, &d1); //???? - ATR_CRS(a0) = d0; //???V + ATR_CRS(a0) = d0; //??? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; /* ????? */ if (ATR_LONG_WORK(0, a0) == 0){ //????? ATR_CHR_ACT(a0) = ANIM_ATTACK; //????????? @@ -8380,42 +8380,42 @@ void monster(ACTION *a0) else { ATR_CHR_ACT(a0) = ANIM_THROW; //????????? } - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } -#ifdef _SHOOTCHESTNUT // Syu ADD 輼 +#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 else if (ShooterNum == 101578) { - a2 = ATR_BODY_WORK(0, a0); //??? - // + a2 = ATR_BODY_WORK(0, a0); //??? + //不定点 //d0 = /*ATR_H_POS(a2) =*/ nutx[ a2->hitDispNo ] ; //d1 = /*ATR_V_POS(a2) =*/ nuty[ a2->hitDispNo ] ; - // + //定点 d0 = ATR_H_POS(a2) = ATR_INT_WORK0(a2); d1 = ATR_V_POS(a2) = ATR_INT_WORK1(a2); radar(a0, &d0, &d1); //???? - // ATR_CRS(a0) = d0; //???V + // ATR_CRS(a0) = d0; //??? // ATR_CHR_ANG(a0) = crs_change_tbl[ d0 ]; /* ????? */ } #endif ATR_HIT(a0) = 0; //????????? - if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)){ //???????? - ATR_VCT_NO(a0) = 33; //????r?? + if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)){ //???????? + ATR_VCT_NO(a0) = 33; //?????? break; } //??????? - //?D???? + //????? if (ATR_HIT(a0) >= 10000 && ATR_HIT(a0) < 10100){ //?????? a1 = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); if (a1 == NULL){ - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? return; } - /* ??? */ + /* ??? */ switch (ATR_LONG_WORK(0, a0)){ case 0: //? ATR_NAME(a1) = bow; @@ -8423,16 +8423,16 @@ void monster(ACTION *a0) case 1: //??? ATR_NAME(a1) = axe_shadow; break; - case 2: //?? + case 2: //?? ATR_NAME(a1) = stone_shadow; break; default: ATR_NAME(a1) = bow; } - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MISSILE; - /* ?????k? */ -#ifdef _SHOOTCHESTNUT // Syu ADD 輼 + /* ?????? */ +#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 if (ShooterNum == 101578) ATR_CHR_NO(a1) = 27001; else @@ -8440,10 +8440,10 @@ void monster(ACTION *a0) #else ATR_CHR_NO(a1) = CG_ARROW_00 + ATR_CRS(a0) / 2 + 20; #endif - /* ???t */ + /* ??? */ ATR_CHR_ANG(a1) = ATR_CHR_ANG(a0); - ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); //????? - ATR_BODY_WORK(1, a1) = a0; //D????? + ATR_BODY_WORK(0, a1) = ATR_BODY_WORK(0, a0); //????? + ATR_BODY_WORK(1, a1) = a0; //????? ATR_ATTACK_POW(0, a1) = ATR_ATTACK_POW(0, a0); //??? ATR_ATTACK_PET_POW(0, a1) = ATR_ATTACK_PET_POW(0, a0); //??? ATR_ATTACK_KIND(0, a1) = ATR_ATTACK_KIND(0, a0); //????? @@ -8455,18 +8455,18 @@ void monster(ACTION *a0) gemini(a1); gemini(a1); ATR_BODY_CNT(a1) = 0; - ATR_COUNTER_FLG(a1) = ATR_CRS(a0); //????????????? + ATR_COUNTER_FLG(a1) = ATR_CRS(a0); //????????????? p_missile[0] = a1; p_missile[1] = NULL; //???? a2 = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); if (a2 == NULL){ - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? return; } - /* ??? */ + /* ??? */ switch (ATR_LONG_WORK(0, a0)){ case 0: //? ATR_NAME(a2) = stick_bow; @@ -8474,17 +8474,17 @@ void monster(ACTION *a0) case 1: //??? ATR_NAME(a2) = axe; break; - case 2: //?? + case 2: //?? ATR_NAME(a2) = stone; break; default: ATR_NAME(a2) = stick_bow; } - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a2) = D_PRIO_MISSILE; - /* ?????k? */ -#ifdef _SHOOTCHESTNUT // Syu ADD 輼 - //IJ + /* ?????? */ +#ifdef _SHOOTCHESTNUT // Syu ADD 宠技:丢栗子 + //弓的部分 if (ShooterNum == 101578) ATR_CHR_NO(a2) = 26995; else @@ -8495,15 +8495,15 @@ void monster(ACTION *a0) //????????? ATR_LONG_WORK(0, a1) = ATR_CHR_NO(a2); ATR_BODY_WORK(2, a1) = a2; - /* ???t */ + /* ??? */ ATR_CHR_ANG(a2) = ATR_CHR_ANG(a1); - a3 = ATR_BODY_WORK(0, a2) = ATR_BODY_WORK(0, a1); //????? - ATR_BODY_WORK(1, a2) = a1; //?s????? + a3 = ATR_BODY_WORK(0, a2) = ATR_BODY_WORK(0, a1); //????? + ATR_BODY_WORK(1, a2) = a1; //?????? ATR_H_POS(a2) = ATR_H_POS(a1); ATR_V_POS(a2) = ATR_V_POS(a1); - d6 = 0; //???? + d6 = 0; //???? ATR_SPD(a2) = 32; while (1) { @@ -8517,54 +8517,54 @@ void monster(ACTION *a0) gemini(a2); d6++; } - ATR_INT_WORK0(a2) = d1; //?????V - if (!(ATR_GROUP_FLG(a1) = d6)) //???????V + ATR_INT_WORK0(a2) = d1; //????? + if (!(ATR_GROUP_FLG(a1) = d6)) //??????? ATR_GROUP_FLG(a1) = 1; d6 = d6 >> 1; ATR_SPD(a2) = d6; // ATR_CRS(a2) = 0; // ATR_H_MINI(a2) = 0; // ATR_V_MINI(a2) = 0; // - ATR_H_POS(a2) = ATR_H_POS(a1); //? + ATR_H_POS(a2) = ATR_H_POS(a1); //? ATR_V_POS(a2) = ATR_V_POS(a1) - 28; // - d0 = get_num(); //???h?? + d0 = get_num(); //????? if (d0 != 255) - { //?????? - if (ATR_CHR_CNT(a0) >= 3) //???D + { //?????? + if (ATR_CHR_CNT(a0) >= 3) //??? ATR_CHR_CNT(a0) -= 3; else - ATR_CHR_ACT_OLD(a0) = -1; //???D + ATR_CHR_ACT_OLD(a0) = -1; //??? ATR_DAMAGE(a0)++; ATR_FIRST_FLG(a0) = 0; - ATR_BODY_WORK(0, a0) = p_party[d0]; //趨 - ATR_ATTACK_KIND(0, a0) = get_num(); //趨 - ATR_ATTACK_POW(0, a0) = get_num(); //趨 + ATR_BODY_WORK(0, a0) = p_party[d0]; //攻击对象设定 + ATR_ATTACK_KIND(0, a0) = get_num(); //攻击种类设定 + ATR_ATTACK_POW(0, a0) = get_num(); //攻击力设定 if (BattleCmd[command_point] == 'p') - ATR_ATTACK_PET_POW(0, a0) = get_num(); //﹥趨 + ATR_ATTACK_PET_POW(0, a0) = get_num(); //宠物攻击力设定 else LogToBattleError(BattleCmd, __LINE__); - //Ч xiezi + //修正技能特效 xiezi #ifdef _ATTACK_EFFECT if (BattleCmd[command_point] == 's') - ATR_LONG_WORK(0, a0) = get_num(); // ¼Ч + ATR_LONG_WORK(0, a0) = get_num(); // 记录特效编号 #endif } } break; - case 33: //ȴ - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + case 33: //弓攻击结束等待 + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); if (ATR_STIMER(a0) == ATR_DAMAGE(a0)) - { //????? - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; // + { //????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //待机 } break; - case 35: //ƶ - ATR_SPD(a0) = 32; //ٶ - a1 = ATR_BODY_WORK(0, a0); //???????? + case 35: //捕获移动 + ATR_SPD(a0) = 32; //速度 + a1 = ATR_BODY_WORK(0, a0); //???????? d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? @@ -8572,35 +8572,35 @@ void monster(ACTION *a0) if (ATR_FIRST_FLG(a0) == 0) { //??????? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } if (d1 <= 32 * 2) { //???? - ATR_VCT_NO(a0)++; //??? + ATR_VCT_NO(a0)++; //??? ATR_FIRST_FLG(a0) = 0; //???????? } else - gemini(a0); //?h - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + gemini(a0); //? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 36: //?? - a1 = ATR_BODY_WORK(0, a0); //???????? + case 36: //?? + a1 = ATR_BODY_WORK(0, a0); //???????? if (ATR_FIRST_FLG(a0) == 0) { //??????? ATR_HIT(a0) = 0; //????????? - d0 = ATR_H_POS(a1); //??? + d0 = ATR_H_POS(a1); //??? d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? - ATR_CRS(a0) = d0; //???V + ATR_CRS(a0) = d0; //??? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; /* ????? */ - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } ATR_CHR_ACT(a0) = ANIM_ATTACK; //????????? if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //???????? - ATR_VCT_NO(a0)++; //????r?? + { //???????? + ATR_VCT_NO(a0)++; //?????? ATR_FIRST_FLG(a0) = 0; //???????? ATR_STIMER(a0) = 60; break; @@ -8610,19 +8610,19 @@ void monster(ACTION *a0) { //????? play_damage(ATR_HIT(a0), ATR_H_POS(a0)); - //? + //? set_damage_num(a0, 5, -64); - //??????? + //??????? ATR_VCT_NO(a1) = 45; - //????????? + //????????? ATR_BODY_WORK(0, a1) = a0; - //?hLT + //? ATR_SPD(a1) = ATR_SPD(a0) = 8; //????????? ATR_HIT(a0) = 0; } break; - case 37: //????r? + case 37: //????? if (ATR_STIMER(a0)) { ATR_STIMER(a0)--; @@ -8635,11 +8635,11 @@ void monster(ACTION *a0) d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? - gemini(a0); //?h + gemini(a0); //? if (ATR_FIRST_FLG(a0) == 0) { //??????? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } if (d1 <= (ATR_SPD(a0) >> 2)) { //???? @@ -8654,104 +8654,104 @@ void monster(ACTION *a0) ATR_CHR_ANG(a0) = 1; #endif ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; - ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? + ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? ATR_V_POS(a0) = ATR_INT_WORK1(a0); - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? if (ATR_ATTACK_KIND(0, a0) == 0) - { //?? + { //?? if (ATR_VCT_NO(a1) == 45) - { //?????D?? - ATR_VCT_NO(a0) = 40; //???????? + { //??????? + ATR_VCT_NO(a0) = 40; //???????? ATR_DAMAGE(a0) = 0; //????? } else - ATR_VCT_NO(a0) = 42; //? + ATR_VCT_NO(a0) = 42; //? } else { - ATR_VCT_NO(a0) = 44; //?? - //? + ATR_VCT_NO(a0) = 44; //?? + //? set_damage_num(a0, 7, -64); ATR_STIMER(a0) = 255; - ATR_DAMAGE(a0) = t_music_bgm_no; //???k?~ + ATR_DAMAGE(a0) = t_music_bgm_no; //???? play_bgm(0); //??????????? } } - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? if (ATR_ATTACK_KIND(0, a0) == 0 && ATR_VCT_NO(a1) == 45) - { //?? + { //?? if (!Rnd(0, 100)) - { //`?????? - ATR_VCT_NO(a0) = 40; //???????? + { //?????? + ATR_VCT_NO(a0) = 40; //???????? ATR_DAMAGE(a0) = 1; //????? } } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); if (ATR_SPD(a0) == 32) //?????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 40: //??????? - a1 = ATR_BODY_WORK(0, a0); //???????? - ATR_VCT_NO(a1)++; //?????D + case 40: //??????? + a1 = ATR_BODY_WORK(0, a0); //???????? + ATR_VCT_NO(a1)++; //????? ATR_FIRST_FLG(a1) = 0; //???????? - // + // set_damage_num(a0, 8, -64); ATR_STIMER(a0) = 100; //???????? if (ATR_DAMAGE(a0) == 1) //???? - ATR_CHR_ANG(a0) = (ATR_CHR_ANG(a0) + 4) & 7; //?? - ATR_VCT_NO(a0)++; //????? + ATR_CHR_ANG(a0) = (ATR_CHR_ANG(a0) + 4) & 7; //?? + ATR_VCT_NO(a0)++; //????? break; - case 41: //???? + case 41: //???? if (!--ATR_STIMER(a0)) { if (ATR_DAMAGE(a0) == 1) { //???? ATR_VCT_NO(a0) = 38; //???? - ATR_CHR_ANG(a0) = (ATR_CHR_ANG(a0) + 4) & 7; //?? + ATR_CHR_ANG(a0) = (ATR_CHR_ANG(a0) + 4) & 7; //?? ATR_SPD(a0) = 32; //????? } else - ATR_VCT_NO(a0)++; //? - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_VCT_NO(a0)++; //? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? } else - ATR_CHR_ACT(a0) = ANIM_ANGRY; //???????? + ATR_CHR_ACT(a0) = ANIM_ANGRY; //夂???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 42: //ʧ - ATR_CHR_ACT(a0) = ANIM_STAND; //ֹͣ + case 42: //失败 + ATR_CHR_ACT(a0) = ANIM_STAND; //停止动作 pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); - a1 = ATR_BODY_WORK(0, a0); //ȡзָ + a1 = ATR_BODY_WORK(0, a0); //取出敌方指标 if (ATR_VCT_NO(a1) == 0) - { //?????`????? - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + { //?????????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? } break; - case 44: //ɹ + case 44: //成功 if (!--ATR_STIMER(a0)) - { //ʱ䵽 - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; // + { //时间到 + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //待机 play_bgm(ATR_DAMAGE(a0)); //????? } ATR_CHR_ACT(a0) = ANIM_HAPPY; //??????????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 45: //?????? - a1 = ATR_BODY_WORK(0, a0); //?????????? + case 45: //?????? + a1 = ATR_BODY_WORK(0, a0); //?????????? if (ATR_VCT_NO(a1) == 38) - { //??????? - d0 = ATR_H_POS(a1); //??? + { //??????? + d0 = ATR_H_POS(a1); //??? d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? - ATR_CRS(a0) = d0; //???V + ATR_CRS(a0) = d0; //??? gemini(a0); } if (ATR_VCT_NO(a1) == 0) - { //??????? - ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? + { //??????? + ATR_ATTRIB(a0) = ACT_ATR_HIDE; //?? ATR_NAME(a0) = NULL; return; } @@ -8765,15 +8765,15 @@ void monster(ACTION *a0) radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? ATR_SPD(a0) = 16; - gemini(a0); //?h + gemini(a0); //? if (ATR_FIRST_FLG(a0) == 0) { //??????? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } if (d1 <= (ATR_SPD(a0) >> 2)) { //???? - a1 = ATR_BODY_WORK(0, a0); //?????????? + a1 = ATR_BODY_WORK(0, a0); //?????????? if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 3; else if (ATR_GROUP_FLG(a0) == 1) @@ -8785,21 +8785,21 @@ void monster(ACTION *a0) ATR_CHR_ANG(a0) = 1; #endif ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; - ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? + ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? ATR_V_POS(a0) = ATR_INT_WORK1(a0); - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 50: //PfD? + case 50: //? if (ATR_FIRST_FLG(a0) == 0) { //??????? ATR_SPD(a0) = 16; if (ATR_LIFE(a0) <= 0) { //?????? if (ATR_GROUP_FLG(a0) == 0) //???????? - //???? + //???? ATR_CRS(a0) = crs_change_tbl2[7]; else ATR_CRS(a0) = crs_change_tbl2[3]; @@ -8818,46 +8818,46 @@ void monster(ACTION *a0) #endif ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; } - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } - gemini(a0); //?h + gemini(a0); //? if (ATR_LIFE(a0) > 0) - { //????? - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + { //????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, 1, ANM_LOOP); } if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT) - { //???? + { //???? ATR_NAME(a0) = NULL; - ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? ATR_VCT_NO(a0) = VCT_NO_APPEAR; - ATR_DAMAGE(p_master)++; //D? + ATR_DAMAGE(p_master)++; //? if (ATR_DAMAGE(p_master) == ATR_BODY_CNT(p_master) && ATR_GUARD_FLG(a0) == 1) - { //ACTION_INF@e?? + { //ACTION_INF?? action_inf = 2; - command_point = 0; //????????????? + command_point = 0; //????????????? } } break; - case 52: //սʧ() + case 52: //战斗逃跑失败(动画加速) if (ATR_FIRST_FLG(a0) == 0) { //??????? if (ATR_LIFE(a0) <= 0) { //?????? - //????V?ϣ?? + //?????OK?? if (ATR_PET_OK(a0)) { - a2 = p_party[ATR_PLACE_NO(a0) + 5]; //???????? + a2 = p_party[ATR_PLACE_NO(a0) + 5]; //???????? if (ATR_NAME(a2) != NULL) { - ATR_VCT_NO(a2) = 50; //????`?? + ATR_VCT_NO(a2) = 50; //?????? ATR_FIRST_FLG(a2) = 0; //???????? } } - ATR_VCT_NO(a0) = 50; //ܳɹ + ATR_VCT_NO(a0) = 50; //逃跑成功 break; } - //ʾ + //显示逃跑 set_damage_num(a0, 9, -64); if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 7; @@ -8871,30 +8871,30 @@ void monster(ACTION *a0) #endif ATR_STIMER(a0) = 12; //??????? ATR_COUNTER_FLG(a0) = 0; // - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? + ATR_FIRST_FLG(a0) = 1; //?????? } pattern(a0, ATR_STIMER(a0), ANM_LOOP); - //???????LT??? + //?????????? ATR_COUNTER_FLG(a0) = (ATR_COUNTER_FLG(a0) + 1) & 7; if (!ATR_COUNTER_FLG(a0)) { ATR_STIMER(a0)--; if (ATR_STIMER(a0) == 1) - { //????L?? - if (ATR_ATTACK_KIND(0, a0) == 0) //D?? - ATR_VCT_NO(a0)++; //D? + { //?????? + if (ATR_ATTACK_KIND(0, a0) == 0) //?? + ATR_VCT_NO(a0)++; //? else { - ATR_VCT_NO(a0) = 50; //D?? + ATR_VCT_NO(a0) = 50; //?? ATR_FIRST_FLG(a0) = 0; //???????? - //????V?ϣ?? + //?????OK?? if (ATR_PET_OK(a0)) { - a2 = p_party[ATR_PLACE_NO(a0) + 5]; //???????? + a2 = p_party[ATR_PLACE_NO(a0) + 5]; //???????? if (ATR_NAME(a2) != NULL) { - ATR_VCT_NO(a2) = 50; //????`?? + ATR_VCT_NO(a2) = 50; //?????? ATR_FIRST_FLG(a2) = 0; //???????? } } @@ -8902,9 +8902,9 @@ void monster(ACTION *a0) } } break; - case 53: //սʧ() + case 53: //战斗逃跑失败(动画减速) pattern(a0, ATR_STIMER(a0), ANM_LOOP); - //???????LT??? + //?????????? ATR_COUNTER_FLG(a0) = (ATR_COUNTER_FLG(a0) + 1) & 7; if (!ATR_COUNTER_FLG(a0)) { @@ -8913,23 +8913,23 @@ void monster(ACTION *a0) { //???????? ATR_STIMER(a0) = 60; ATR_VCT_NO(a0)++; - //ʾʧ + //显示失败 set_damage_num(a0, 8, -64); } } break; - case 54: //PfD?????? + case 54: //?????? ATR_CHR_ACT(a0) = ANIM_SAD; //??????????? pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP); if (!--ATR_STIMER(a0)) - { //?????? - ATR_DAMAGE(p_master)++; //D? - //????V?ϣ?? + { //?????? + ATR_DAMAGE(p_master)++; //? + //?????OK?? if (ATR_PET_OK(a0)) { - a2 = p_party[ATR_PLACE_NO(a0) + 5]; //???????? + a2 = p_party[ATR_PLACE_NO(a0) + 5]; //???????? if (ATR_NAME(a2) != NULL) // - ATR_DAMAGE(p_master)++; //???D? + ATR_DAMAGE(p_master)++; //???? } if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 3; @@ -8941,30 +8941,30 @@ void monster(ACTION *a0) else if (ATR_GROUP_FLG(a0) == 3) ATR_CHR_ANG(a0) = 1; #endif - ATR_VCT_NO(a0) = 0; //r?? + ATR_VCT_NO(a0) = 0; //?? } break; - case 55: // + case 55: //打飞 if (ATR_FIRST_FLG(a0) == 0) { //??????? - ATR_SPD(a0) = 63; //?hLT??? + ATR_SPD(a0) = 63; //???? if (ATR_AKO_FLG(a0) == 2) //?????? - ATR_LONG_WORK(0, a0) = 0; //??????? + ATR_LONG_WORK(0, a0) = 0; //??????? else { - ATR_LONG_WORK(0, a0) = 3; //??????? - //ɵ + ATR_LONG_WORK(0, a0) = 3; //??????? + //打飞的声音 play_se(11, ATR_H_POS(a0), ATR_V_POS(a0)); } - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } gemini(a0); if (ATR_LONG_WORK(0, a0) < 3) - { //???? + { //???? if (ATR_CRS(a0) < 8 || ATR_CRS(a0) > 24) { if (ATR_V_POS(a0) <= 0) - { //ƣZ? + { //? d0 = 0; goto monster_case55_100; //?????? } @@ -8972,7 +8972,7 @@ void monster(ACTION *a0) if (ATR_CRS(a0) < 16 && ATR_CRS(a0) > 0) { if (ATR_H_POS(a0) >= lpDraw->xSize) - { //?Z? + { //?? d0 = 1; goto monster_case55_100; //?????? } @@ -8980,7 +8980,7 @@ void monster(ACTION *a0) if (ATR_CRS(a0) > 8 && ATR_CRS(a0) < 24) { if (ATR_V_POS(a0) >= lpDraw->ySize) - { //?Z? + { //?? d0 = 2; goto monster_case55_100; //?????? } @@ -8988,7 +8988,7 @@ void monster(ACTION *a0) if (ATR_CRS(a0) > 16) { if (ATR_H_POS(a0) <= 0) - { //?Z? + { //?? d0 = 3; goto monster_case55_100; //?????? } @@ -8997,9 +8997,9 @@ void monster(ACTION *a0) monster_case55_100: d1 = ATR_CRS(a0); - d1 = ATR_CRS(a0) = crs_bound_tbl[d0][ATR_CRS(a0)]; //?? + d1 = ATR_CRS(a0) = crs_bound_tbl[d0][ATR_CRS(a0)]; //?? ATR_LONG_WORK(0, a0)++; - //??? + //??? play_se(66, ATR_H_POS(a0), ATR_V_POS(a0)); monster_case55_200: @@ -9008,47 +9008,47 @@ void monster(ACTION *a0) else { if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT || ATR_V_POS(a0) > lpDraw->ySize + SCREEN_OUT || ATR_V_POS(a0) < 0 - SCREEN_OUT) - { //???? + { //???? ATR_NAME(a0) = NULL; - ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? ATR_VCT_NO(a0) = VCT_NO_APPEAR; if (BattleMyNo == ATR_PLACE_NO(a0)) - { //?? - action_inf = 2; ////ACTION_INF@e - command_point = 0; //????????????? + { //?? + action_inf = 2; ////ACTION_INF + command_point = 0; //????????????? break; } - //???????? + //???????? a1 = ATR_BODY_WORK(0, a0); if (a1 != NULL) { //????? if (ATR_ATTACK_KIND(2, a1) == 1) { - //???? - ATR_ATTRIB(a1) |= ACT_ATR_HIDE; //?? + //???? + ATR_ATTRIB(a1) |= ACT_ATR_HIDE; //?? ATR_NAME(a1) = NULL; ATR_VCT_NO(a1) = VCT_NO_APPEAR; - if (ATR_COUNTER(p_master) == a0) //????? + if (ATR_COUNTER(p_master) == a0) //????? #ifdef _PETSKILL_BATTLE_MODEL if (ATR_BATTLE_MODEL(a0) != ATT_BATTLE_MODEL) #endif - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? } else { - ATR_VCT_NO(a1) = 57; //???`?? + ATR_VCT_NO(a1) = 57; //????? ATR_FIRST_FLG(a1) = 0; } } else { - if (ATR_COUNTER(p_master) == a0) //????? + if (ATR_COUNTER(p_master) == a0) //????? { #ifdef _PETSKILL_BATTLE_MODEL if (ATR_BATTLE_MODEL(a0) != ATT_BATTLE_MODEL) #endif - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? } } break; @@ -9057,22 +9057,22 @@ void monster(ACTION *a0) if (ATR_AKO_FLG(a0) == 2) { //?????? if (ATR_LONG_WORK(0, a0) & 1) - ATR_CHR_ANG(a0)--; //?? + ATR_CHR_ANG(a0)--; //?? else - ATR_CHR_ANG(a0)++; //?? - ATR_CHR_ANG(a0) &= 7; //? + ATR_CHR_ANG(a0)++; //?? + ATR_CHR_ANG(a0) &= 7; //? pattern(a0, 1, ANM_NO_LOOP); } break; case 56: //????????? - a1 = ATR_BODY_WORK(0, a0); //???????? - //??? + a1 = ATR_BODY_WORK(0, a0); //???????? + //??? if (ATR_H_POS(a1) < lpDraw->xSize && ATR_H_POS(a1) > 64 && ATR_V_POS(a1) < lpDraw->ySize && ATR_V_POS(a1) > 0 - 64) { - d0 = ATR_H_POS(a1); //????? + d0 = ATR_H_POS(a1); //????? d1 = ATR_V_POS(a1); radar2(a0, d0, d1, 2); //???? - //???????? + //???????? d0 = ATR_CRS(a0) - ATR_CRS_OLD(a0); if (d0 < 0) d0 = 0 - d0; @@ -9084,14 +9084,14 @@ void monster(ACTION *a0) } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 57: //??????? + case 57: //??????? if (ATR_FIRST_FLG(a0) == 0) //??????? { ATR_SPD(a0) = 16; if (ATR_LIFE(a0) <= 0) { //?????? if (ATR_GROUP_FLG(a0) == 0) //???????? - //???? + //???? ATR_CRS(a0) = crs_change_tbl2[7]; else ATR_CRS(a0) = crs_change_tbl2[3]; @@ -9110,45 +9110,45 @@ void monster(ACTION *a0) #endif ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; } - //????????????V?? - ATR_FIRST_FLG(a0) = 1; //?????? + //?????????????? + ATR_FIRST_FLG(a0) = 1; //?????? } - gemini(a0); //?h - //????????????V?? - if (ATR_LIFE(a0) > 0) //????? + gemini(a0); //? + //?????????????? + if (ATR_LIFE(a0) > 0) //????? { - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, 1, ANM_LOOP); } - if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT) //???? + if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT) //???? { ATR_NAME(a0) = NULL; - ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? ATR_VCT_NO(a0) = VCT_NO_APPEAR; //?????????????????????????????????????????????? if (check_all_dead()) - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? - if (ATR_COUNTER(p_master) == ATR_BODY_WORK(0, a0)) //???????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + if (ATR_COUNTER(p_master) == ATR_BODY_WORK(0, a0)) //???????? { #ifdef _PETSKILL_BATTLE_MODEL if (ATR_BATTLE_MODEL(a0) != ATT_BATTLE_MODEL) #endif - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? } - if (ATR_COUNTER(p_master) == a0) //????? + if (ATR_COUNTER(p_master) == a0) //????? { #ifdef _PETSKILL_BATTLE_MODEL if (ATR_BATTLE_MODEL(a0) != ATT_BATTLE_MODEL) #endif - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? } } break; case 60: //????? if (ATR_FIRST_FLG(a0) == 0) { //??????? - a1 = ATR_BODY_WORK(0, a0); //???????? - set_damage_num(a1, 10, -64); //?? + a1 = ATR_BODY_WORK(0, a0); //???????? + set_damage_num(a1, 10, -64); //?? ATR_STIMER(a0) = 40; play_se(216, ATR_H_POS(a0), 240); //?????? if (ATR_GROUP_FLG(a1) == 0) @@ -9162,7 +9162,7 @@ void monster(ACTION *a0) ATR_CHR_ANG(a1) = 1; #endif ATR_CRS_OLD(a1) = ATR_CRS(a1) = crs_change_tbl2[ATR_CHR_ANG(a1)]; - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } //???? if (!--ATR_STIMER(a0)) @@ -9174,42 +9174,42 @@ void monster(ACTION *a0) break; case 61: //????? - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? if (ATR_FIRST_FLG(a0) == 0) { //??????? ATR_SPD(a0) = 12; if (ATR_LIFE(a0) > 0) - { //????? + { //????? d0 = ATR_INT_WORK0(a1); d1 = ATR_INT_WORK1(a1); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? ATR_CHR_ANG(a0) = crs_change_tbl[ATR_CRS(a0)]; /* ????? */ - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? } - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } d0 = ATR_INT_WORK0(a1); d1 = ATR_INT_WORK1(a1); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? - gemini(a0); //?h + gemini(a0); //? if (d1 <= (ATR_SPD(a0) >> 2)) { //???? - //???? - ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? + //???? + ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? ATR_NAME(a0) = NULL; ATR_VCT_NO(a0) = VCT_NO_APPEAR; - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? break; } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 62: //???? + case 62: //???? if (ATR_FIRST_FLG(a0) == 0) { //??????? - a1 = ATR_BODY_WORK(0, a0); //???????? - set_damage_num(a1, 11, -64); //?? + a1 = ATR_BODY_WORK(0, a0); //???????? + set_damage_num(a1, 11, -64); //?? if (ATR_GROUP_FLG(a1) == 0) ATR_CHR_ANG(a1) = 3; else if (ATR_GROUP_FLG(a1) == 1) @@ -9222,22 +9222,22 @@ void monster(ACTION *a0) #endif ATR_CRS_OLD(a1) = ATR_CRS(a1) = crs_change_tbl2[ATR_CHR_ANG(a1)]; ATR_STIMER(a0) = 40; - //???k???? + //??????? ATR_CHR_NO(a0) = get_num(); - //?????? + //?????? ATR_LEVEL(a0) = get_num(); - //????? + //????? ATR_LIFE(a0) = get_num(); - //q??? + //??? get_name(a0); - //?????? + //?????? ATR_MAX_LIFE(a0) = get_num(); - //???????? + //???????? a1 = ATR_BODY_WORK(0, a0); - //???? + //???? ATR_H_POS(a0) = ATR_H_POS(a1); ATR_V_POS(a0) = ATR_V_POS(a1) - 1; - //?? + //?? ATR_ATTRIB(a0) &= ~ACT_ATR_HIDE; ATR_SPD(a0) = 12; d0 = ATR_INT_WORK0(a0); @@ -9245,13 +9245,13 @@ void monster(ACTION *a0) radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? ATR_CHR_ANG(a0) = crs_change_tbl[ATR_CRS(a0)]; /* ????? */ - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? ATR_CHR_ACT_OLD(a0) = -1; ATR_AKO_FLG(a0) = 0; //????????? ATR_ATTACK_KIND(2, a0) = 0; - ATR_STATUS(a0) = 0; //????????? + ATR_STATUS(a0) = 0; //????????? play_se(216, ATR_H_POS(a0), 240); //?????? - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } //???? if (!--ATR_STIMER(a0)) @@ -9261,113 +9261,113 @@ void monster(ACTION *a0) } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 63: //???? + case 63: //???? d0 = ATR_INT_WORK0(a0); d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? - gemini(a0); //?h + gemini(a0); //? if (d1 <= (ATR_SPD(a0) >> 2)) { //???? ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; - ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? + ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? ATR_V_POS(a0) = ATR_INT_WORK1(a0); - ATR_VCT_NO(a0) = 0; //r?? - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 64: //?????r? - a1 = ATR_BODY_WORK(1, a0); //????? - //?????????? + case 64: //?????? + a1 = ATR_BODY_WORK(1, a0); //????? + //?????????? if (ATR_VCT_NO(a1) != 2) { - ATR_VCT_NO(a0) = 13; //??????r? + ATR_VCT_NO(a0) = 13; //??????? ATR_STIMER(a0) = 30; } break; - case 65: //???? + case 65: //???? break; - case 66: //???h - a1 = ATR_BODY_WORK(0, a0); //???????? + case 66: //??? + a1 = ATR_BODY_WORK(0, a0); //???????? if (ATR_FIRST_FLG(a0) == 0) //??????? { ATR_SPD(a0) = 28; - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } d0 = ATR_INT_WORK0(a1); d1 = ATR_INT_WORK1(a1); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? - gemini(a0); //?h + gemini(a0); //? if (d1 <= (ATR_SPD(a0) >> 1)) //???? { - //??祆??? + //????? ATR_VCT_NO(a1) = 67; - ATR_CRS(a1) = ATR_CRS(a0); //??????? + ATR_CRS(a1) = ATR_CRS(a0); //??????? ATR_SPD(a1) = 40; ATR_STIMER(a1) = 8; - //??Ԩ? + //??? #ifdef _PETSKILL_BATTLE_MODEL - // DZ + // 若是被攻击物件攻击 if (ATR_BATTLE_MODEL(a1) == ATT_BATTLE_MODEL) - a1 = ATR_BODY_WORK(1, a1); // ATR_BODY_WORK(1,a1) ȡ action + a1 = ATR_BODY_WORK(1, a1); // 从 ATR_BODY_WORK(1,a1) 取出攻击物件的 action else #endif a1 = ATR_COUNTER(p_master); - ATR_BODY_WORK(0, a1) = a0; //????? - //???????_ + ATR_BODY_WORK(0, a1) = a0; //????? + //??????? ATR_VCT_NO(a0) = 65; //???? play_se(5, ATR_H_POS(a0), 240); } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 67: //?????? + case 67: //?????? gemini(a0); //?????? ATR_CRS(a0) = (ATR_CRS(a0) + 16) & 31; - if (--ATR_STIMER(a0)) //??r??? + if (--ATR_STIMER(a0)) //????? break; ATR_VCT_NO(a0) = 68; //???? #ifdef _PETSKILL_BATTLE_MODEL - // DZ + // 若是被攻击物件攻击 if (ATR_BATTLE_MODEL(a0) == ATT_BATTLE_MODEL) - a1 = ATR_BODY_WORK(1, a0); // ATR_BODY_WORK(1, a0) ȡ action + a1 = ATR_BODY_WORK(1, a0); // 从 ATR_BODY_WORK(1, a0) 取出攻击物件的 action else #endif - a1 = ATR_COUNTER(p_master); //????????? + a1 = ATR_COUNTER(p_master); //????????? ATR_VCT_NO(a1) = 2; break; - case 68: //?????? - gemini(a0); //?h + case 68: //?????? + gemini(a0); //? ATR_SPD(a0) -= 2; - if (ATR_SPD(a0) < 0) //????????? + if (ATR_SPD(a0) < 0) //????????? { ATR_SPD(a0) = 10; - ATR_VCT_NO(a0) = 64; //?????r?? + ATR_VCT_NO(a0) = 64; //??????? } break; - case 69: //?????? + case 69: //?????? if (ATR_FIRST_FLG(a0) == 0) { //??????? - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? d0 = ATR_INT_WORK0(a1); d1 = ATR_INT_WORK1(a1); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? ATR_CHR_ANG(a0) = crs_change_tbl[ATR_CRS(a0)]; /* ????? */ - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); - //?? + //?? set_damage_num(a0, 13, -64); ATR_STIMER(a0) = 35; - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } - if (--ATR_STIMER(a0)) //??r??? + if (--ATR_STIMER(a0)) //????? break; - ATR_VCT_NO(a0) = 66; //??h? + ATR_VCT_NO(a0) = 66; //??? ATR_FIRST_FLG(a0) = 0; //?????? break; case 70: //??????? @@ -9375,8 +9375,8 @@ void monster(ACTION *a0) { int d2; - d1 = command_point; //?????????~ - d0 = get_num(); //?? + d1 = command_point; //????????? + d0 = get_num(); //?? command_point = d1; //??????????? d0 /= 5; if (ATR_GROUP_FLG(a0) == 0) //???????? @@ -9386,7 +9386,7 @@ void monster(ACTION *a0) } else { - //??????q??? + //????????? if (ATR_PLACE_NO(a0) >= 15) { d1 = boomerang_pos_tbl3b[d0 * 2]; @@ -9410,44 +9410,44 @@ void monster(ACTION *a0) ATR_CHR_ACT(a0) = ANIM_THROW; //????????? #endif - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } ATR_HIT(a0) = 0; //????????? - if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //???????? + if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) //???????? { ATR_CHR_ACT_OLD(a0) = -1; ATR_VCT_NO(a0) = 71; //????????? break; } //??????? - //?????D???? + //????????? if(ATR_HIT(a0) >= 10000 && ATR_HIT(a0) < 10100) { //???????? a1 = GetAction(T_PRIO_BOW, sizeof(ATR_EQU)); if (a1 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? return; } - //????????? + //????????? ATR_BODY_WORK(0, a0) = a1; //????????? - /* ??? */ + /* ??? */ ATR_NAME(a1) = boomerang; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MISSILE; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = SPR_boomerang;//SPR_ono;// - /* ???t */ + /* ??? */ ATR_CHR_ANG(a1) = ATR_CHR_ANG(a0); - ATR_BODY_WORK(1, a1) = a0; //D????? - d1 = command_point; //?????????~ - d0 = get_num(); //?? + ATR_BODY_WORK(1, a1) = a0; //????? + d1 = command_point; //????????? + d0 = get_num(); //?? command_point = d1; //??????????? - //?k???? + //????? ATR_LONG_WORK(0, a1) = d0 / 5; - //??T??? + //????? if (ATR_GROUP_FLG(a0) == 0) { if (ATR_LONG_WORK(0, a1) <= 1) @@ -9476,14 +9476,14 @@ void monster(ACTION *a0) } break; case 71: //???????? - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? a1 = ATR_BODY_WORK(0, a0); //???????????? - //??? - d0 = ATR_H_POS(a1); //??? + //??? + d0 = ATR_H_POS(a1); //??? d1 = ATR_V_POS(a1); radar2(a0, d0, d1, 2); //???? - //???????? + //???????? d0 = ATR_CRS(a0) - ATR_CRS_OLD(a0); if (d0 < 0) d0 = 0 - d0; @@ -9494,20 +9494,20 @@ void monster(ACTION *a0) } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 72: //???????? - ATR_CHR_ACT(a0) = ANIM_HAND; //????????? + case 72: //???????? + ATR_CHR_ACT(a0) = ANIM_HAND; //????????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); - ATR_VCT_NO(a0) = 73; //?????????? + ATR_VCT_NO(a0) = 73; //?????????? ATR_STIMER(a0) = 16; break; - case 73: //????????? - if (!(--ATR_STIMER(a0))) //??? + case 73: //????????? + if (!(--ATR_STIMER(a0))) //??? { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //_? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //? } break; - case 75: //? + case 75: //? if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 3; else if (ATR_GROUP_FLG(a0) == 1) @@ -9519,20 +9519,20 @@ void monster(ACTION *a0) ATR_CHR_ANG(a0) = 1; #endif ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; - //?????Ҥ + //????? a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a1 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? return; } - /* ??? */ + /* ??? */ ATR_NAME(a1) = monster; ATR_VCT_NO(a1) = 76; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_HIT_MARK; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = get_num(); //????????? #ifdef _VARY_WOLF if (ATR_CHR_NO(a1) == 101120) @@ -9546,9 +9546,9 @@ void monster(ACTION *a0) ATR_CHR_NO(a1) += 53; } #endif - /* ???t */ + /* ??? */ LoadBmp(ATR_PAT_NO(a0)); - //??????? + //??????? #ifndef __CARYTEST ATR_INT_WORK0(a1) = a0->anim_y + SpriteInfo[ATR_PAT_NO(a0)].height / 2; #else @@ -9558,25 +9558,25 @@ void monster(ACTION *a0) ATR_BODY_WORK(0, a1) = a0; ATR_V_POS(a1) = ATR_V_POS(a0) + ATR_INT_WORK0(a1); ATR_H_POS(a1) = ATR_H_POS(a0); - //r?? + //?? ATR_VCT_NO(a0) = 0; ATR_CHR_ACT_OLD(a0) = -1; pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); //??? break; - case 76: //??Ҥ - //?t + case 76: //?? + //? a1 = ATR_BODY_WORK(0, a0); ATR_V_POS(a0) = ATR_V_POS(a1) + ATR_INT_WORK0(a0); - //????????? + //????????? if (ATR_CHR_NO(a0) == SPR_effect01) d0 = pattern(a0, 5, ANM_NO_LOOP); else d0 = pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP); if (d0) - { //?????? - DeathAction(a0); //? + { //?????? + DeathAction(a0); //? d0 = get_num(); //????????? - d6 = 0; //????????? + d6 = 0; //????????? #ifdef _VARY_WOLF if (d0 >= 101429 && d0 <= 101436) a1->anim_chr_no = 0; @@ -9592,32 +9592,32 @@ void monster(ACTION *a0) #endif while (1) { - d1 = get_num(); //ԧk??? + d1 = get_num(); //??? if (d1 == 255) - { //??? - if (d6 == 0) //??? - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + { //??? + if (d6 == 0) //??? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? break; } a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a1 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? return; } - //???????Ҥ + //??????? if (d1 < 0 || d1 >= BATTLKPKPLYAERNUM) { return; } - a2 = p_party[d1]; //?????????? + a2 = p_party[d1]; //?????????? ATR_DISP_PRIO(a1) = D_PRIO_HIT_MARK; ATR_NAME(a1) = monster; ATR_VCT_NO(a1) = 77; ATR_CHR_NO(a1) = d0; //?????? - /* ???t */ + /* ??? */ LoadBmp(ATR_PAT_NO(a2)); - //??????? + //??????? #ifndef __CARYTEST ATR_INT_WORK0(a1) = a2->anim_y + SpriteInfo[ATR_PAT_NO(a2)].height / 2; #else @@ -9627,31 +9627,31 @@ void monster(ACTION *a0) ATR_BODY_WORK(0, a1) = a2; ATR_V_POS(a1) = ATR_V_POS(a2) + ATR_INT_WORK0(a1); ATR_H_POS(a1) = ATR_H_POS(a2); - d6++; //??????? + d6++; //??????? } return; } break; - case 77: //??Ҥ - //?t + case 77: //?? + //? a1 = ATR_BODY_WORK(0, a0); ATR_V_POS(a0) = ATR_V_POS(a1) + ATR_INT_WORK0(a0); if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //?????? - DeathAction(a0); //? + { //?????? + DeathAction(a0); //? #ifdef _VARY_WOLF if (a0->anim_chr_no_bak >= 101429 && a0->anim_chr_no_bak <= 101436) a1->anim_chr_no = 101428; #endif #ifdef _PETSKILL_EVOLUTION - if ( a0->anim_chr_no_bak==101863 ){ //ͼֱӱ + if ( a0->anim_chr_no_bak==101863 ){ //碰到烟雾图案就直接变身 if( a1->anim_chr_no == 102009 ) a1->anim_chr_no = 102011; else if( a1->anim_chr_no == 102010 ) a1->anim_chr_no = 102012; } #endif - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? return; } break; @@ -9662,24 +9662,24 @@ void monster(ACTION *a0) ATR_FIRST_FLG(a0) = 0; if (ATR_LIFE(a0) <= 0) { //?????? - ATR_VCT_NO(a0) = VCT_NO_DIE + 1; //?? + ATR_VCT_NO(a0) = VCT_NO_DIE + 1; //?? slow_flg--; //????? } else ATR_VCT_NO(a0) = 0; - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? } break; - case 79: //?r? + case 79: //?? ATR_LONG_WORK(0, a0)++; if (ATR_LONG_WORK(0, a0) == 60) { ATR_VCT_NO(a0) = 0; - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); //??? break; - case 80: //?? + case 80: //佋?? if (ATR_FIRST_FLG(a0) == 0) { //??????? if (ATR_GROUP_FLG(a0) == 0) @@ -9694,18 +9694,18 @@ void monster(ACTION *a0) #endif ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; ATR_SPD(a0) = 32; - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? + ATR_FIRST_FLG(a0) = 1; //?????? } - gemini(a0); //?h + gemini(a0); //? if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT) - { //???? - ATR_VCT_NO(a0) = 0; //_? - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + { //???? + ATR_VCT_NO(a0) = 0; //? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); //??? break; - case 82: //??? + case 82: //??? if (ATR_FIRST_FLG(a0) == 0) { //??????? if (ATR_GROUP_FLG(a0) == 0) @@ -9723,10 +9723,10 @@ void monster(ACTION *a0) ATR_CHR_ACT_OLD(a0) = -1; pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); //??? ATR_STIMER(a0) = 60; - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } if (!--ATR_STIMER(a0)) - { //??? + { //??? ATR_CHR_NO(a0) = get_num(); ATR_CHR_ACT_OLD(a0) = -1; if (ATR_GROUP_FLG(a0) == 0) @@ -9744,10 +9744,10 @@ void monster(ACTION *a0) ATR_CHR_ACT_OLD(a0) = -1; pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); //??? ATR_VCT_NO(a0) = 0; - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? } break; - case 85: //?????Nͨ? + case 85: //?????? if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 3; else if (ATR_GROUP_FLG(a0) == 1) @@ -9759,24 +9759,24 @@ void monster(ACTION *a0) ATR_CHR_ANG(a0) = 1; #endif ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; - //?????Ҥ + //????? a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a1 == NULL) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? - ATR_VCT_NO(a0) = 0; //r?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + ATR_VCT_NO(a0) = 0; //?? return; } - /* ??? */ + /* ??? */ ATR_NAME(a1) = monster; ATR_VCT_NO(a1) = 86; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_HIT_MARK; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = SPR_effect01; - /* ???t */ + /* ??? */ LoadBmp(ATR_PAT_NO(a0)); - //??????? + //??????? #ifndef __CARYTEST ATR_INT_WORK0(a1) = a0->anim_y + SpriteInfo[ATR_PAT_NO(a0)].height / 2; #else @@ -9786,40 +9786,40 @@ void monster(ACTION *a0) ATR_BODY_WORK(0, a1) = a0; ATR_V_POS(a1) = ATR_V_POS(a0) + ATR_INT_WORK0(a1); ATR_H_POS(a1) = ATR_H_POS(a0); - //r?? + //?? ATR_VCT_NO(a0) = 0; ATR_CHR_ACT_OLD(a0) = -1; pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); //??? break; - case 86: //?????Nͨ??Ҥ - //????????? + case 86: //??????? + //????????? if (ATR_CHR_NO(a0) == SPR_effect01) d0 = pattern(a0, 5, ANM_NO_LOOP); else d0 = pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP); if (d0) - { //?????? - //Nͨ? - ATR_ATTRIB(p_master) = get_num(); //N?? - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? - DeathAction(a0); //? + { //?????? + //? + ATR_ATTRIB(p_master) = get_num(); //?? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + DeathAction(a0); //? return; } break; - case 87: //???`??q - ATR_SPD(a0) = 32; //?hLTspeed - a1 = p_party[ATR_PLACE_NO(a0) - 5]; //????//з + case 87: //????? + ATR_SPD(a0) = 32; //?speed + a1 = p_party[ATR_PLACE_NO(a0) - 5]; //????//敌方 d0 = ATR_H_POS(a1);//y d1 = ATR_V_POS(a1);//x radar(a0, &d0, &d1); //????//d0:course1 d1:distance ATR_CRS(a0) = d0; //?????? - //???????? + //???????? d0 = ATR_CRS(a0) - ATR_CRS_OLD(a0); if (d0 < 0) d0 = 0 - d0; if (d0 >= 2) { -#ifdef _SKILL_ROAR //輼:()//ܷ +#ifdef _SKILL_ROAR //宠技:大吼(克年兽)//修正逃跑方向 #else ATR_CHR_ANG(a0) = crs_change_tbl[ATR_CRS(a0)]; /* ????? */ ATR_CRS_OLD(a0) = ATR_CRS(a0); @@ -9828,37 +9828,37 @@ void monster(ACTION *a0) if (d1 <= 32 * 2) { //???? ATR_FIRST_FLG(a0) = 0; //???????? - ATR_VCT_NO(a0) = 88; //???`??? + ATR_VCT_NO(a0) = 88; //?????? } else - gemini(a0); //?h - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + gemini(a0); //? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 88: //???`?? + case 88: //????? if (ATR_FIRST_FLG(a0) == 0) { //??????? ATR_STIMER(a0) = 40; -#ifdef _SKILL_ROAR //輼:()//ܷ - //?hLT??? +#ifdef _SKILL_ROAR //宠技:大吼(克年兽)//修正逃跑方向 + //???? ATR_SPD(a0) = 60; - ATR_CHR_ACT(a0) = ANIM_DAMAGE; //_??????? + ATR_CHR_ACT(a0) = ANIM_DAMAGE; //??????? #else - //?hLT??? + //???? ATR_SPD(a0) = 40; - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? #endif - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } - //?h??? + //???? if (!ATR_STIMER(a0)--) { - ATR_VCT_NO(a0) = 89; //???`???? + ATR_VCT_NO(a0) = 89; //??????? ATR_STIMER(a0) = 40; - //???`? + //???? set_damage_num(a0, 17, -64); -#ifdef _SKILL_ROAR //輼:()ܷ +#ifdef _SKILL_ROAR //宠技:大吼(克年兽)修正逃跑方向 if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 7; else if (ATR_GROUP_FLG(a0) == 1) @@ -9881,12 +9881,12 @@ void monster(ACTION *a0) ATR_CHR_ANG(a0) = 1; #endif #endif - //???? + //???? ATR_CRS_OLD(a0) = ATR_CRS(a0) = (crs_change_tbl2[ATR_CHR_ANG(a0)]) & 31; } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 89: //???`??? + case 89: //?????? if (ATR_STIMER(a0)) { ATR_STIMER(a0)--; @@ -9894,15 +9894,15 @@ void monster(ACTION *a0) } gemini(a0); if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT) - { //???? + { //???? ATR_NAME(a0) = NULL; - ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? ATR_VCT_NO(a0) = VCT_NO_APPEAR; - ATR_DAMAGE(p_master)++; //D? - //?????? + ATR_DAMAGE(p_master)++; //? + //?????? if (BattleMyNo + 5 == ATR_PLACE_NO(a0)) { - // ???????????? + // ???????????? if (att_select_flg == TRUE) { //???? @@ -9911,7 +9911,7 @@ void monster(ACTION *a0) } else { - // i????? + // ????? if (battlePetNoBak2 == pc.battlePetNo) { //???? @@ -9924,45 +9924,45 @@ void monster(ACTION *a0) } } } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, 1, ANM_LOOP); break; - case 90: //????r + case 90: //???? if (ATR_FIRST_FLG(a0) == 0) { //??????? - //????r + //???? set_damage_num(a0, 18, -64); ATR_STIMER(a0) = 0; //???????? - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? + ATR_FIRST_FLG(a0) = 1; //?????? } - //??? + //??? d0 = pet_nix_tbl[ATR_STIMER(a0)++]; if (d0 == -2) - { //??? - ATR_VCT_NO(a0) = 0; //_? - ATR_DAMAGE(p_master)++; //D? + { //??? + ATR_VCT_NO(a0) = 0; //? + ATR_DAMAGE(p_master)++; //? break; } - ATR_CHR_ANG(a0) = (ATR_CHR_ANG(a0) + d0) & 7; //??? + ATR_CHR_ANG(a0) = (ATR_CHR_ANG(a0) + d0) & 7; //??? pattern(a0, 1, ANM_LOOP); break; - case 95: //s????? + case 95: //????? if (ATR_FIRST_FLG(a0) == 0) { //??????? - ATR_LONG_WORK(0, a0) = get_num(); //???? - ATR_LONG_WORK(1, a0) = get_num(); //??????? - a1 = ATR_BODY_WORK(0, a0) = p_party[ATR_LONG_WORK(0, a0)]; //???? + ATR_LONG_WORK(0, a0) = get_num(); //???? + ATR_LONG_WORK(1, a0) = get_num(); //??????? + a1 = ATR_BODY_WORK(0, a0) = p_party[ATR_LONG_WORK(0, a0)]; //???? d0 = ATR_INT_WORK0(a1); d1 = ATR_INT_WORK1(a1); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? ATR_CHR_ANG(a0) = crs_change_tbl[ATR_CRS(a0)]; /* ????? */ - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? - ATR_SPD(a0) = 32; //?hLT - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? + ATR_SPD(a0) = 32; //? + ATR_FIRST_FLG(a0) = 1; //?????? } - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? @@ -9970,10 +9970,10 @@ void monster(ACTION *a0) gemini(a0); if (d1 <= 32 * 2) { //???? - ATR_VCT_NO(a0) = 96; //s?????? + ATR_VCT_NO(a0) = 96; //?????? if (ATR_LONG_WORK(1, a0)) - { //??? - a1 = ATR_BODY_WORK(0, a0); //????????_ + { //??? + a1 = ATR_BODY_WORK(0, a0); //???????? ATR_VCT_NO(a1) = 98; // ATR_SPD(a1) = ATR_SPD(a0); ATR_CRS(a1) = ATR_CRS(a0); @@ -9982,21 +9982,21 @@ void monster(ACTION *a0) pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 96: //s????? + case 96: //????? gemini(a0); pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); - if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT //???? + if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT //???? || ATR_V_POS(a0) > lpDraw->ySize + SCREEN_OUT || ATR_V_POS(a0) < 0 - SCREEN_OUT) - { //???? + { //???? ATR_NAME(a0) = NULL; - ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? ATR_VCT_NO(a0) = VCT_NO_APPEAR; - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? - //?????? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + //?????? if (BattleMyNo + 5 == ATR_PLACE_NO(a0)) { - // ???????????? + // ???????????? if (att_select_flg == TRUE) { //???? @@ -10005,7 +10005,7 @@ void monster(ACTION *a0) } else { - // i????? + // ????? if (battlePetNoBak2 == pc.battlePetNo) { //???? @@ -10018,15 +10018,15 @@ void monster(ACTION *a0) } } if (ATR_LONG_WORK(1, a0)) - { //??? - a1 = ATR_BODY_WORK(0, a0); //????? + { //??? + a1 = ATR_BODY_WORK(0, a0); //????? ATR_NAME(a1) = NULL; - ATR_ATTRIB(a1) |= ACT_ATR_HIDE; //?? + ATR_ATTRIB(a1) |= ACT_ATR_HIDE; //?? ATR_VCT_NO(a1) = VCT_NO_APPEAR; - //?????? + //?????? if (BattleMyNo + 5 == ATR_LONG_WORK(0, a0)) { - // ???????????? + // ???????????? if (att_select_flg == TRUE) { //???? @@ -10035,7 +10035,7 @@ void monster(ACTION *a0) } else { - // i????? + // ????? if (battlePetNoBak2 == pc.battlePetNo) { //???? @@ -10050,25 +10050,25 @@ void monster(ACTION *a0) } } break; - case 98: //s????????????_ + case 98: //???????????? gemini(a0); break; - case 100: //????? + case 100: //????? if (ATR_FIRST_FLG(a0) == 0) { //??????? - ATR_LONG_WORK(0, a0) = get_num(); //???? - ATR_LONG_WORK(1, a0) = get_num(); //??????? - a1 = ATR_BODY_WORK(0, a0) = p_party[ATR_LONG_WORK(0, a0)]; //???? + ATR_LONG_WORK(0, a0) = get_num(); //???? + ATR_LONG_WORK(1, a0) = get_num(); //??????? + a1 = ATR_BODY_WORK(0, a0) = p_party[ATR_LONG_WORK(0, a0)]; //???? d0 = ATR_INT_WORK0(a1); d1 = ATR_INT_WORK1(a1); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? ATR_CHR_ANG(a0) = crs_change_tbl[ATR_CRS(a0)]; /* ????? */ - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? - ATR_SPD(a0) = 32; //?hLT - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? + ATR_SPD(a0) = 32; //? + ATR_FIRST_FLG(a0) = 1; //?????? } - a1 = ATR_BODY_WORK(0, a0); //???????? + a1 = ATR_BODY_WORK(0, a0); //???????? d0 = ATR_H_POS(a1); d1 = ATR_V_POS(a1); radar(a0, &d0, &d1); //???? @@ -10086,33 +10086,33 @@ void monster(ACTION *a0) if (ATR_FIRST_FLG(a0) == 0) { //??????? ATR_CHR_ACT(a0) = ANIM_ATTACK; //????????? - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //???????? + { //???????? ATR_CHR_ACT_OLD(a0) = -1; - ATR_VCT_NO(a0) = 102; //????r?? + ATR_VCT_NO(a0) = 102; //?????? ATR_FIRST_FLG(a0) = 0; //??????? } break; - case 102: //????r? + case 102: //????? if (ATR_FIRST_FLG(a0) == 0) { //??????? - ATR_STIMER(a0) = 30; //????? - if (ATR_LONG_WORK(1, a0)) //??? - //? + ATR_STIMER(a0) = 30; //伡????? + if (ATR_LONG_WORK(1, a0)) //??? + //? set_damage_num(a0, 7, -64); else - // + // set_damage_num(a0, 8, -64); - ATR_FIRST_FLG(a0) = 1; //?????? + ATR_FIRST_FLG(a0) = 1; //?????? } ATR_STIMER(a0)--; if (ATR_STIMER(a0) == 0) - { //??? + { //??? if (ATR_LONG_WORK(1, a0)) - { //??? - ATR_VCT_NO(a0) = 103; //`???? + { //??? + ATR_VCT_NO(a0) = 103; //???? if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 7; else if (ATR_GROUP_FLG(a0) == 1) @@ -10123,73 +10123,73 @@ void monster(ACTION *a0) else if (ATR_GROUP_FLG(a0) == 3) ATR_CHR_ANG(a0) = 5; #endif - //???? + //???? ATR_CRS_OLD(a0) = ATR_CRS(a0) = (crs_change_tbl2[ATR_CHR_ANG(a0)]) & 31; a1 = ATR_BODY_WORK(0, a0); //????????? ATR_VCT_NO(a1) = 104; } else { - d0 = ATR_INT_WORK0(a0); //??? + d0 = ATR_INT_WORK0(a0); //??? d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CHR_ANG(a0) = crs_change_tbl[d0]; ATR_SPD(a0) = 32; - ATR_VCT_NO(a0) = 4; //?~? + ATR_VCT_NO(a0) = 4; //?? } } break; - case 103: //`??? + case 103: //??? gemini(a0); if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT) - { //???? + { //???? ATR_NAME(a0) = NULL; - ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? ATR_VCT_NO(a0) = VCT_NO_APPEAR; - ATR_DAMAGE(p_master)++; //D? - a1 = ATR_BODY_WORK(0, a0); //?????_? + ATR_DAMAGE(p_master)++; //? + a1 = ATR_BODY_WORK(0, a0); //?????? ATR_VCT_NO(a1) = 0; } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, 1, ANM_LOOP); break; - case 104: //`????? - ATR_CHR_ACT(a0) = ANIM_ANGRY; //???????? + case 104: //????? + ATR_CHR_ACT(a0) = ANIM_ANGRY; //夂???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case 105: //??r? + case 105: //??? if (!--ATR_STIMER(a0)) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? - ATR_VCT_NO(a0) = 0; //_? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + ATR_VCT_NO(a0) = 0; //? } break; case 110: //???? if (!--ATR_STIMER(a0)) { - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? - ATR_VCT_NO(a0) = 0; //_? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //??? + ATR_VCT_NO(a0) = 0; //? } break; -#ifdef _SKILL_SELFEXPLODE //Ա - case 114: //Ա +#ifdef _SKILL_SELFEXPLODE //自爆 + case 114: //自爆 ATR_SPD(a0) = 63; - ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? + ATR_ATTRIB(a0) |= ACT_ATR_HIDE; //?? d0 = ATR_INT_WORK0(a0); d1 = ATR_INT_WORK1(a0); - gemini(a0); //?h + gemini(a0); //? if (ATR_H_POS(a0) > lpDraw->xSize + SCREEN_OUT || ATR_H_POS(a0) < 0 - SCREEN_OUT) - { //???? - ATR_VCT_NO(a0) = 0; //_? - ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? + { //???? + ATR_VCT_NO(a0) = 0; //? + ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); //?????? } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; #endif //249: - case VCT_NO_APPEAR: //K + case VCT_NO_APPEAR: // if (ATR_GROUP_FLG(a0) == 0) ATR_CHR_ANG(a0) = 3; else if (ATR_GROUP_FLG(a0) == 1) @@ -10200,52 +10200,52 @@ void monster(ACTION *a0) else if (ATR_GROUP_FLG(a0) == 3) ATR_CHR_ANG(a0) = 1; #endif - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? ATR_SPD(a0) = 12; d0 = ATR_INT_WORK0(a0); d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? - gemini(a0); //?h + gemini(a0); //? if (d1 <= (ATR_SPD(a0) >> 2) || ATR_CHR_NO(a0) == 101490) { //???? - ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? + ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? ATR_V_POS(a0) = ATR_INT_WORK1(a0); - ATR_VCT_NO(a0) = 0; //r?? - ATR_CHR_ACT(a0) = ANIM_STAND; //_??????? + ATR_VCT_NO(a0) = 0; //?? + ATR_CHR_ACT(a0) = ANIM_STAND; //??????? ATR_SPD(a0) = 32; ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; } pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case VCT_NO_DIE: //? + case VCT_NO_DIE: //? ATR_SPD(a0) = 4; d0 = ATR_INT_WORK0(a0); d1 = ATR_INT_WORK1(a0); radar(a0, &d0, &d1); //???? ATR_CRS(a0) = d0; //?????? - gemini(a0); //?h + gemini(a0); //? if (d1 <= (ATR_SPD(a0) >> 2)) { //???? - ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? + ATR_H_POS(a0) = ATR_INT_WORK0(a0); //? ATR_V_POS(a0) = ATR_INT_WORK1(a0); - ATR_VCT_NO(a0) = VCT_NO_DIE + 1; //????? + ATR_VCT_NO(a0) = VCT_NO_DIE + 1; //????? } - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? if (s_timer & 1) pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - case VCT_NO_DIE + 1: //? - ATR_CHR_ACT(a0) = ANIM_DEAD; //???????? + case VCT_NO_DIE + 1: //? + ATR_CHR_ACT(a0) = ANIM_DEAD; //???????? if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //?????? + { //?????? #ifdef __NEW_BATTLE_EFFECT int effect = ATR_EFFECT_FLAG(a0); int effect_anim = ATR_EFFECT_ANIM(a0); switch (effect) { - case 1: // + case 1: //替身娃娃 a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); if (a1 == NULL) { @@ -10254,14 +10254,14 @@ void monster(ACTION *a0) ATR_EFFECT_PARAM(a0) = 0; return; } - //???????Ҥ + //??????? ATR_DISP_PRIO(a1) = D_PRIO_HIT_MARK; ATR_NAME(a1) = monster; ATR_VCT_NO(a1) = VCT_NO_EFFECT; ATR_CHR_NO(a1) = effect_anim; //?????? - /* ???t */ + /* ??? */ LoadBmp(ATR_PAT_NO(a0)); - //??????? + //??????? #ifndef __CARYTEST ATR_INT_WORK0(a1) = a0->anim_y + SpriteInfo[ATR_PAT_NO(a0)].height / 2; #else @@ -10274,14 +10274,14 @@ void monster(ACTION *a0) break; } #endif - ATR_VCT_NO(a0) = VCT_NO_DIE + 2; //?? - //???? + ATR_VCT_NO(a0) = VCT_NO_DIE + 2; //?? + //???? set_piyo_loop(a0); //????? play_se(6, ATR_H_POS(a0), 240); } break; - case VCT_NO_DIE + 2: //? + case VCT_NO_DIE + 2: //? break; #ifdef __NEW_BATTLE_EFFECT // case VCT_NO_PAUSE: @@ -10293,21 +10293,21 @@ void monster(ACTION *a0) switch (effect) { - case 1: // + case 1: //替身娃娃 ATR_V_POS(a0) = ATR_V_POS(a1) + ATR_INT_WORK0(a0); if (pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) - { //?????? - //??k + { //?????? + //?? ATR_LIFE(a1) = ATR_EFFECT_PARAM(a1); - if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? - ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? - ATR_VCT_NO(a1) = 0; //_? - ATR_CHR_ACT(a1) = ANIM_STAND; //_??????? + if (ATR_LIFE(a1) > ATR_MAX_LIFE(a1)) //???? + ATR_LIFE(a1) = ATR_MAX_LIFE(a1); //???? + ATR_VCT_NO(a1) = 0; //? + ATR_CHR_ACT(a1) = ANIM_STAND; //??????? pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); ATR_EFFECT_FLAG(a1) = 0; ATR_EFFECT_ANIM(a1) = 0; ATR_EFFECT_PARAM(a1) = 0; - DeathAction(a0); //? + DeathAction(a0); //? ATR_DAMAGE(p_master)++; } return; @@ -10315,7 +10315,7 @@ void monster(ACTION *a0) ATR_EFFECT_FLAG(a1) = 0; ATR_EFFECT_ANIM(a1) = 0; ATR_EFFECT_PARAM(a1) = 0; - DeathAction(a0); //? + DeathAction(a0); //? ATR_DAMAGE(p_master)++; break; } @@ -10323,9 +10323,9 @@ void monster(ACTION *a0) break; #endif #ifdef __ATTACK_MAGIC - // ǰö + // 产生前置动画 case ATTACK_MAGIC_CASE: - // Ƿ· + // 是否在右下方 (0 == ATR_GROUP_FLG(a0)) ? ATR_CHR_ANG(a0) = 3 : ATR_CHR_ANG(a0) = 7; ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; if (0XFFFFFFFF != AttMgc.iPreMgcNum) @@ -10337,8 +10337,8 @@ void monster(ACTION *a0) return; } ATR_NAME(a1) = monster; - ATR_VCT_NO(a1) = ATTACK_MAGIC_CASE + 1; // ǰö -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + ATR_VCT_NO(a1) = ATTACK_MAGIC_CASE + 1; // 前置动画 +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (AttMgc.iPreMgcNum == 101120) ATR_DISP_PRIO(a1) = (1 == AttMgc.wPreMgcOnChar) ? D_PRIO_HIT_MARK : DISP_PRIO_TILE + 1; else @@ -10355,7 +10355,7 @@ void monster(ACTION *a0) ATR_CHR_ACT_OLD(a0) = -1; pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - // ִǰö + // 执行前置动画 case ATTACK_MAGIC_CASE + 1: a1 = ATR_BODY_WORK(0, a0); ATR_H_POS(a0) = ATR_H_POS(a1) + AttMgc.wPreMgcX; @@ -10367,24 +10367,24 @@ void monster(ACTION *a0) //ToCallMgc.wRunPreMgc = TRUE; } break; - // ִĿǰ + // 执行目前的咒术 case ATTACK_MAGIC_CASE + 2: { idx = ATR_LONG_WORK(0, a0); - // ŵλ + // 播放的是相对于人物的位置 if (20 != idx) { a1 = p_party[idx]; ATR_H_POS(a0) = ATR_H_POS(a1) + AttMgc.posAttacked[0].x; ATR_V_POS(a0) = ATR_V_POS(a1) + AttMgc.posAttacked[0].y; } - // ž + // 播放绝对座标的咒术 else { int value = 0; - // Ŀǰڵ + // 目前正在地震中 if (2 == g_iRunEarthQuake) value = piyo_tbl[(piyo_point + g_iCurRunEarthQuake) & 63] + 12; @@ -10394,14 +10394,14 @@ void monster(ACTION *a0) if (d0 = pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) { DeathAction(a0); - // ûкö + // 如果没有后置动画 if (0XFFFFFFFF == AttMgc.iPostMgcNum) { AttMgc.wNumAttackeds++; if (20 == idx) { - // wAttackedIndex[0] 20 -- ȫ幥 - // wAttackedIndex[n] 0XFF -- + // wAttackedIndex[0] 放置 20 -- 代表全体攻击 + // wAttackedIndex[n] 放置0XFF -- 代表结束 int i = 0, j, charahurt, pethurt; while (++i && 0XFF != AttMgc.wAttackedIndex[i]) @@ -10511,14 +10511,14 @@ void monster(ACTION *a0) } } } - // ӵкö + // 拥有后置动画 else { - // еĵʩö + // 针对所有的敌人施后置动画 if (20 == idx) // idx = wAttackedIndex[0] { - // wAttackedIndex[0] 20 -- ȫ幥 - // wAttackedIndex[n] 0XFF -- + // wAttackedIndex[0] 放置 20 -- 代表全体攻击 + // wAttackedIndex[n] 放置0XFF -- 代表结束 int i = 0; while (++i && 0XFF != AttMgc.wAttackedIndex[i]) @@ -10526,7 +10526,7 @@ void monster(ACTION *a0) a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); ATR_NAME(a1) = monster; - ATR_VCT_NO(a1) = ATTACK_MAGIC_CASE + 3; // ö + ATR_VCT_NO(a1) = ATTACK_MAGIC_CASE + 3; // 后置动画 ATR_DISP_PRIO(a1) = (1 == AttMgc.wPostMgcOnChar) ? D_PRIO_HIT_MARK : DISP_PRIO_TILE + 1; ATR_CHR_NO(a1) = AttMgc.iPostMgcNum; ATR_LONG_WORK(0, a1) = AttMgc.wAttackedIndex[i]; @@ -10534,13 +10534,13 @@ void monster(ACTION *a0) ATR_V_POS(a1) = ATR_V_POS(p_party[AttMgc.wAttackedIndex[i]]) + AttMgc.wPostMgcY; } } - // ijһʩö + // 针对某一个敌人施后置动画 else { a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); ATR_NAME(a1) = monster; - ATR_VCT_NO(a1) = ATTACK_MAGIC_CASE + 3; // ö + ATR_VCT_NO(a1) = ATTACK_MAGIC_CASE + 3; // 后置动画 ATR_DISP_PRIO(a1) = (1 == AttMgc.wPostMgcOnChar) ? D_PRIO_HIT_MARK : DISP_PRIO_TILE + 1; ATR_CHR_NO(a1) = AttMgc.iPostMgcNum; ATR_LONG_WORK(0, a1) = idx; @@ -10550,7 +10550,7 @@ void monster(ACTION *a0) } } - // еĶ + // 己经播放所有的动画了 if (AttMgc.wNumAttackeds == AttMgc.wNumAttacks && 0 == iAttackedNum) { ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); @@ -10559,7 +10559,7 @@ void monster(ACTION *a0) } break; } - // ִкö + // 执行后置动画 case ATTACK_MAGIC_CASE + 3: idx = ATR_LONG_WORK(0, a0); a1 = p_party[idx]; @@ -10572,8 +10572,8 @@ void monster(ACTION *a0) AttMgc.wNumAttackeds++; if (20 == idx) { - // wAttackedIndex[0] 20 -- ȫ幥 - // wAttackedIndex[n] 0XFF -- + // wAttackedIndex[0] 放置 20 -- 代表全体攻击 + // wAttackedIndex[n] 放置0XFF -- 代表结束 int i = 0, j, charahurt, pethurt; while (++i && 0XFF != AttMgc.wAttackedIndex[i]) @@ -10665,7 +10665,7 @@ void monster(ACTION *a0) } } } - // еĶ + // 己经播放所有的动画了 if (AttMgc.wNumAttackeds == AttMgc.wNumAttacks && 0 == iAttackedNum) { ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); @@ -10673,7 +10673,7 @@ void monster(ACTION *a0) g_iRunEarthQuake = 0; } break; - // ˵ͼ + // 带人物受伤的图 case ATTACK_MAGIC_CASE + 4: if (ATR_FIRST_FLG(a0) > 40) ATR_FIRST_FLG(a0) = 0; @@ -10697,7 +10697,7 @@ void monster(ACTION *a0) gemini(a0); ++iCurAttackedFinishNum; } - // еĶ + // 己经播放所有的动画了 if (iAttackedNum == iCurAttackedFinishNum) { ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); @@ -10719,9 +10719,9 @@ void monster(ACTION *a0) break; #endif #ifdef __TOCALL_MAGIC - // ǰö + // 产生前置动画 case TOCALL_MAGIC_CASE: - // Ƿ· + // 是否在右下方 (0 == ATR_GROUP_FLG(a0)) ? ATR_CHR_ANG(a0) = 3 : ATR_CHR_ANG(a0) = 7; ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; @@ -10735,8 +10735,8 @@ void monster(ACTION *a0) return; } ATR_NAME(a1) = monster; - ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 1; // ǰö -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 1; // 前置动画 +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if (ToCallMgc.iPreMgcNum == 101120) ATR_DISP_PRIO(a1) = (1 == ToCallMgc.wPreMgcOnChar) ? D_PRIO_HIT_MARK : DISP_PRIO_TILE + 1; else @@ -10751,13 +10751,13 @@ void monster(ACTION *a0) } ATR_VCT_NO(a0) = 0; ATR_CHR_ACT_OLD(a0) = -1; -#ifdef _PETSKILL_LER // ׶ +#ifdef _PETSKILL_LER // 雷尔技能 if (ATR_CHR_NO(a0) == 101815) ATR_CHR_NO(a0) = ATR_CHR_NO(a0) * -1; #endif pattern(a0, ANM_NOMAL_SPD, ANM_LOOP); break; - // ִǰö + // 执行前置动画 case TOCALL_MAGIC_CASE + 1: a1 = ATR_BODY_WORK(0, a0); @@ -10768,7 +10768,7 @@ void monster(ACTION *a0) { DeathAction(a0); ToCallMgc.wRunPreMgc = TRUE; -#ifdef _PETSKILL_LER // ׶ +#ifdef _PETSKILL_LER // 雷尔技能 if (ATR_CHR_NO_OLD(a1) < 0) { int side; @@ -10779,12 +10779,12 @@ void monster(ACTION *a0) int i; for (i = 0; i < BATTLKPKPLYAERNUM; i++) { - // ҵ׶λ + // 先找到雷尔位置 if (ATR_CHR_NO(p_party[i]) == ATR_CHR_NO(a1)) break; } side = i = (i < 10 ? 0:10); - // ׶ȫʧ + // 雷尔侧的人全都消失 for (; i < side + 10; i++) ATR_H_POS(p_party[i]) += -lpDraw->xSize; } @@ -10792,14 +10792,14 @@ void monster(ACTION *a0) #endif } break; - // ִĿǰ + // 执行目前的咒术 case TOCALL_MAGIC_CASE + 2: { idx = ATR_LONG_WORK(0, a0); #ifdef _PROFESSION_ADDSKILL RunTimeMagicBoundary(ATR_CHR_NO(a0)); #endif - // ŵλ + // 播放的是相对于人物的位置 if (20 != idx) { a1 = p_party[idx]; @@ -10814,19 +10814,19 @@ void monster(ACTION *a0) ATR_V_POS(a0) = ATR_V_POS(a1) + ToCallMgc.posAttacked[0].y; } } - // ž + // 播放绝对座标的咒术 else { int value = 0; - // Ŀǰڵ + // 目前正在地震中 if (2 == g_iRunEarthQuake) value = piyo_tbl[(piyo_point + g_iCurRunEarthQuake) & 63] + 12; ATR_V_POS(a0) = ToCallMgc.posAttacked[0].y + value; } if (d0 = pattern(a0, ANM_NOMAL_SPD, ANM_NO_LOOP)) { -#ifdef _PETSKILL_LER // ׶ +#ifdef _PETSKILL_LER // 雷尔技能 int side; if (ATR_CHR_NO(a0) == 101798 || ATR_CHR_NO(a0) == 101800 || ATR_CHR_NO(a0) == 101853 || ATR_CHR_NO(a0) == 101854) @@ -10834,17 +10834,17 @@ void monster(ACTION *a0) int i; for (i = 0; i < BATTLKPKPLYAERNUM; i++) { - // ҵ׶λ + // 先找到雷尔位置 if (ATR_CHR_NO(p_party[i]) == 101815) break; } side = i = (i < 10 ? 0:10); - // ׶˳ + // 雷尔侧的人出现 for (; i < side + 10; i++) ATR_H_POS(p_party[i]) += lpDraw->xSize; } #endif - // Terry add fix ׶ + // Terry add fix 修正召雷动画 if (ToCallMgc.wCurAttackNum == 101628) DeathAction(a0); else @@ -10866,14 +10866,14 @@ void monster(ACTION *a0) } #endif } - // ûкö + // 如果没有后置动画 if (0XFFFFFFFF == ToCallMgc.iPostMgcNum) { ToCallMgc.wNumAttackeds++; if (20 == idx) { - // wAttackedIndex[0] 20 -- ȫ幥 - // wAttackedIndex[n] 0XFF -- + // wAttackedIndex[0] 放置 20 -- 代表全体攻击 + // wAttackedIndex[n] 放置0XFF -- 代表结束 int i = 0, j, charahurt, pethurt; while (++i && 0XFF != ToCallMgc.wAttackedIndex[i]) @@ -10888,16 +10888,16 @@ void monster(ACTION *a0) ATR_LONG_WORK(0, a1) = 0; ATR_DAMAGE(a1) = charahurt; ATR_PET_DAMAGE(a1) = pethurt; - if (charahurt == 0)//˺ֵΪ0 + if (charahurt == 0)//伤害值为0 { -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ - if (a0->anim_chr_no == 101651 || a0->anim_chr_no == 101650) //һMiss +#ifdef _BATTLESKILL // (可开) Syu ADD 战斗技能介面 + if (a0->anim_chr_no == 101651 || a0->anim_chr_no == 101650) //冰爆术第一下Miss不秀 ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 5; else { set_damage_num(a1, 0, -64); ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 5; - if ( ToCallMgc.iCurMgcNum == 101676 //ᴩ˺Ϊ0,ҪܵĶ + if ( ToCallMgc.iCurMgcNum == 101676 //贯穿攻击的伤害若为0,被打的人要有闪避的动作 || ToCallMgc.iCurMgcNum == 101675 || ToCallMgc.iCurMgcNum == 101674 || ToCallMgc.iCurMgcNum == 101673 @@ -10908,7 +10908,7 @@ void monster(ACTION *a0) || ToCallMgc.iCurMgcNum == 101662 || ToCallMgc.iCurMgcNum == 101661 || ToCallMgc.iCurMgcNum == 101656) - { // + { //回旋攻击 ATR_STIMER(a1) = 0; ATR_FIRST_FLG(a1) = 0; //????????? ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 6; @@ -10971,8 +10971,8 @@ void monster(ACTION *a0) ATR_PET_DAMAGE(a1) = pethurt; if (charahurt == 0) { - //#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ - // if ( a0->anim_chr_no == 101651 || a0->anim_chr_no == 101650 ) //һMiss + //#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 + // if ( a0->anim_chr_no == 101651 || a0->anim_chr_no == 101650 ) //冰爆术第一下Miss不秀 // ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 5; // else { // set_damage_num( a1 , 0 , -64 ); @@ -11018,14 +11018,14 @@ void monster(ACTION *a0) } } } - // ӵкö + // 拥有后置动画 else { - // еĵʩö + // 针对所有的敌人施后置动画 if (20 == idx) // idx = wAttackedIndex[0] { - // wAttackedIndex[0] 20 -- ȫ幥 - // wAttackedIndex[n] 0XFF -- + // wAttackedIndex[0] 放置 20 -- 代表全体攻击 + // wAttackedIndex[n] 放置0XFF -- 代表结束 int i = 0; while (++i && 0XFF != ToCallMgc.wAttackedIndex[i]) @@ -11033,7 +11033,7 @@ void monster(ACTION *a0) a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); ATR_NAME(a1) = monster; - ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 3; // ö + ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 3; // 后置动画 ATR_DISP_PRIO(a1) = (1 == ToCallMgc.wPostMgcOnChar) ? D_PRIO_HIT_MARK : DISP_PRIO_TILE + 1; ATR_CHR_NO(a1) = ToCallMgc.iPostMgcNum; ATR_LONG_WORK(0, a1) = ToCallMgc.wAttackedIndex[i]; @@ -11041,13 +11041,13 @@ void monster(ACTION *a0) ATR_V_POS(a1) = ATR_V_POS(p_party[ToCallMgc.wAttackedIndex[i]]) + ToCallMgc.wPostMgcY; } } - // ijһʩö + // 针对某一个敌人施后置动画 else { a1 = GetAction(T_PRIO_MISSILE, sizeof(ATR_EQU)); ATR_NAME(a1) = monster; - ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 3; // ö + ATR_VCT_NO(a1) = TOCALL_MAGIC_CASE + 3; // 后置动画 ATR_DISP_PRIO(a1) = (1 == ToCallMgc.wPostMgcOnChar) ? D_PRIO_HIT_MARK : DISP_PRIO_TILE + 1; ATR_CHR_NO(a1) = ToCallMgc.iPostMgcNum; ATR_LONG_WORK(0, a1) = idx; @@ -11057,7 +11057,7 @@ void monster(ACTION *a0) } } - // еĶ + // 己经播放所有的动画了 if (ToCallMgc.wNumAttackeds == ToCallMgc.wNumAttacks && 0 == iAttackedNum) { ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); @@ -11067,7 +11067,7 @@ void monster(ACTION *a0) break; } - // ִкö + // 执行后置动画 case TOCALL_MAGIC_CASE + 3: idx = ATR_LONG_WORK(0, a0); @@ -11082,8 +11082,8 @@ void monster(ACTION *a0) if (20 == idx) { - // wAttackedIndex[0] 20 -- ȫ幥 - // wAttackedIndex[n] 0XFF -- + // wAttackedIndex[0] 放置 20 -- 代表全体攻击 + // wAttackedIndex[n] 放置0XFF -- 代表结束 int i = 0, j, charahurt, pethurt; while (++i && 0XFF != ToCallMgc.wAttackedIndex[i]) @@ -11179,7 +11179,7 @@ void monster(ACTION *a0) } - // еĶ + // 己经播放所有的动画了 if (ToCallMgc.wNumAttackeds == ToCallMgc.wNumAttacks && 0 == iAttackedNum) { ATR_DAMAGE(p_master) = ATR_BODY_CNT(p_master); @@ -11187,7 +11187,7 @@ void monster(ACTION *a0) g_iRunEarthQuake = 0; } break; - // ˵ͼ + // 带人物受伤的图 case TOCALL_MAGIC_CASE + 4: if (ATR_FIRST_FLG(a0) > 40) ATR_FIRST_FLG(a0) = 0; @@ -11197,7 +11197,7 @@ void monster(ACTION *a0) ATR_CRS(a0) = (ATR_CRS(a0) + 16) & 31; gemini(a0); } - if (40 == ATR_FIRST_FLG(a0)) // 40 + if (40 == ATR_FIRST_FLG(a0)) // 代表会振动40次 { if (ATR_LIFE(a0) <= 0) { @@ -11214,7 +11214,7 @@ void monster(ACTION *a0) gemini(a0); ++iCurAttackedFinishNum; } - // еĶ + // 己经播放所有的动画了 if (iAttackedNum == iCurAttackedFinishNum) { for (int i = 0; i < 10; i++) @@ -11255,9 +11255,9 @@ void monster(ACTION *a0) g_iRunEarthQuake = 0; } break; - // + //人物闪避 case TOCALL_MAGIC_CASE + 6: - ATR_CHR_ACT(a0) = ANIM_WALK; //?h??????? + ATR_CHR_ACT(a0) = ANIM_WALK; //???????? ATR_SPD(a0) = 16; ATR_CHR_ANG(a0) = (ATR_DAMAGE_ANG(a0) + 4) & 7; if (ATR_GROUP_FLG(a0) == 1) @@ -11269,12 +11269,12 @@ void monster(ACTION *a0) ATR_STIMER(a0)++; if (ATR_STIMER(a0) == 20) { - ATR_CRS_OLD(a0) = ATR_CRS(a0) = (ATR_CRS(a0) + 16) & 31;//?? + ATR_CRS_OLD(a0) = ATR_CRS(a0) = (ATR_CRS(a0) + 16) & 31;//?? ATR_VCT_NO(a0) = 17; //????? ATR_STIMER(a0) = 0; ++iCurAttackedFinishNum; } - // еĶ + // 己经播放所有的动画了 if (iAttackedNum == iCurAttackedFinishNum) { for (int i = 0; i < 10; i++) @@ -11292,9 +11292,9 @@ void monster(ACTION *a0) } break; #endif - //#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + //#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 case PROSKILL: - // Ƿ· + // 是否在右下方 (0 == ATR_GROUP_FLG(a0)) ? ATR_CHR_ANG(a0) = 3 : ATR_CHR_ANG(a0) = 7; ATR_CRS_OLD(a0) = ATR_CRS(a0) = crs_change_tbl2[ATR_CHR_ANG(a0)]; @@ -11313,7 +11313,7 @@ void monster(ACTION *a0) return; } ATR_NAME(a1) = monster; - ATR_VCT_NO(a1) = PROSKILL + 1; // ǰö + ATR_VCT_NO(a1) = PROSKILL + 1; // 前置动画 ATR_CHR_NO(a1) = AttPreMagicNum; ATR_DISP_PRIO(a1) = ATR_DISP_PRIO(a0) + 1; ATR_BODY_WORK(0, a1) = a0; @@ -11346,7 +11346,7 @@ void monster(ACTION *a0) if (Light1 != NULL) { if (Light1->anim_cnt == 5) - { //ŵһ + { //拨放到最后一张 DeathAction(Light1); Light1 = NULL; } @@ -11361,247 +11361,247 @@ ACTION *oft_test(void) ACTION *a1; p_kanji = NULL; - for (d7 = 0; d7 < BATTLKPKPLYAERNUM + 1; d7++) // + for (d7 = 0; d7 < BATTLKPKPLYAERNUM + 1; d7++) //清除 p_missile[d7] = NULL; - for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) // + for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) //清除 p_party[d7] = NULL; - // master action list /* ?????????????K? */ + // 产生 master action list /* ?????????????? */ a1 = GetAction(T_PRIO_MASTER, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; - //ҪִеFunc + //要执行的Func ATR_NAME(a1) = master; - //ȸȴ + //出场先给予等待 ATR_VCT_NO(a1) = 3; - //ʾ˳ + //表示优先顺序 ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - // sprite /* ?????k? */ + // sprite 编号/* ?????? */ ATR_CHR_NO(a1) = 31027; - ATR_CHR_ANG(a1) = 3; // - //λ + ATR_CHR_ANG(a1) = 3; //左上 + //初期位置 ATR_H_POS(a1) = 320; ATR_V_POS(a1) = 240; - // - ATR_CHR_ACT(a1) = ANIM_ATTACK; // ƶ - // ¼ a1 p_master/* ???????V */ + // 攻击种类 + ATR_CHR_ACT(a1) = ANIM_ATTACK; // 移动动画 + // 记录 a1 于 p_master/* ??????? */ p_master = a1; - // field µ action list/* ?????N???????????K? */ + // 产生 field 在左下的 action list/* ????????????????? */ a1 = GetAction(T_PRIO_MASTER, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; - ATR_ATTRIB(a1) = ACT_ATR_HIDE; // ʾ //?? - //ʾ˳ + ATR_ATTRIB(a1) = ACT_ATR_HIDE; // 不显示 //?? + //表示优先顺序 ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - //λ + //初期位置 ATR_H_POS(a1) = lpDraw->xSize - 32; ATR_V_POS(a1) = lpDraw->ySize - 64; - // ¼ a1 p_attrib/* ???????V */ + // 记录 a1 于 p_attrib/* ??????? */ p_attrib = a1; #ifdef _BATTLE_PK_PLAYER_FOR_6VS6 - //X + //X座标 d0 = 416 + 5 + DISPLACEMENT_X; - //Y + //Y座标 d1 = 408 + 24 + DISPLACEMENT_Y; #else - //X + //X座标 d0 = 416 + 32 + 5 + DISPLACEMENT_X; - //Y + //Y座标 d1 = 408 + 24 + DISPLACEMENT_Y; #endif - // ԤΪͼΪ SPR_021em + // 预设为图号为 SPR_021em d2 = SPR_021em; /*?????*/ - //_BATTLE_PK_PLAYER_FOR_6VS6 XIEZI ޸ + //_BATTLE_PK_PLAYER_FOR_6VS6 XIEZI 修改 for (d7 = 0; d7 < MAX_BATTLE_ROW_CHARS; d7++) - { //ҷ - // ҷ monster action list /* ??????????????K? */ + { //我方人物 + // 产生我方的 monster action list /* ??????????????? */ a1 = GetAction(T_PRIO_JIKI, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; - //ҪִеFunc /* ??? */ + //要执行的Func /* ??? */ ATR_NAME(a1) = NULL; - // Ϊdz + // 动作为登场 ATR_VCT_NO(a1) = VCT_NO_APPEAR; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - // ʾѶϢ // ?????????? + // 显示出相关讯息 // ?????????? a1->atr |= ACT_ATR_INFO; - // Աѡ // ???Re?? + // 可以被点选 // ????? a1->atr |= ACT_ATR_HIT; - // sprite /* ?????k? */ + // sprite 编号 /* ?????? */ ATR_CHR_NO(a1) = d2; - ATR_CHR_ANG(a1) = 3; // + ATR_CHR_ANG(a1) = 3; //左上 ATR_HIT_TIMING(a1) = 5; - // λ /* ???t */ + // 初期位置 /* ??? */ monster_place_pos[id_no] = ATR_H_POS(a1) = ATR_INT_WORK0(a1) = d0; monster_place_pos[id_no + 1] = ATR_V_POS(a1) = ATR_INT_WORK1(a1) = d1; ATR_H_POS(a1) += 300; ATR_V_POS(a1) += 300; - // һʼڻλ + // 一开始在画面外的位置 monster_start_pos[id_no++] = ATR_H_POS(a1); monster_start_pos[id_no++] = ATR_V_POS(a1); - /* ???? */ - ATR_CHR_ACT(a1) = ANIM_STAND; //?h??????? - ATR_SPD(a1) = 32; //ƶٶ - ATR_GROUP_FLG(a1) = 0; // group set //????????? - ATR_PLACE_NO(a1) = d7; // ¼ʼλ //?k?V - // ¼ a1 б/* ???????V */ + /* ???? */ + ATR_CHR_ACT(a1) = ANIM_STAND; //???????? + ATR_SPD(a1) = 32; //移动速度 + ATR_GROUP_FLG(a1) = 0; // 右下 group set //????????? + ATR_PLACE_NO(a1) = d7; // 记录开始位置 //?? + // 记录 a1 于 队伍列表中/* ??????? */ p_party[d7] = a1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); - /* ?? */ + /* ?? */ d0 += 32; d1 -= 24; } #ifdef _BATTLE_PK_PLAYER_FOR_6VS6 - //X + //X座标 d0 = 320 - 64 + 5 + DISPLACEMENT_X; - //Y + //Y座标 d1 = 432 - 24 + DISPLACEMENT_Y; #else - d0 = 320 - 32 + 5 + DISPLACEMENT_X; //?? - d1 = 432 - 24 + DISPLACEMENT_Y; //?? + d0 = 320 - 32 + 5 + DISPLACEMENT_X; //?? + d1 = 432 - 24 + DISPLACEMENT_Y; //?? #endif d2 = SPR_pet001; /*???*/ - //_BATTLE_PK_PLAYER_FOR_6VS6 XIEZI ޸ + //_BATTLE_PK_PLAYER_FOR_6VS6 XIEZI 修改 for (; d7 < 2 * MAX_BATTLE_ROW_CHARS; d7++) - { //ҷ - /* ??????????????K? */ + { //我方宠物 + /* ??????????????? */ a1 = GetAction(T_PRIO_JIKI, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; ATR_NAME(a1) = NULL; ATR_VCT_NO(a1) = VCT_NO_APPEAR; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - // ?????????? + // ?????????? a1->atr |= ACT_ATR_INFO; - // ???Re?? + // ????? a1->atr |= ACT_ATR_HIT; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = d2; - ATR_CHR_ANG(a1) = 3; //? + ATR_CHR_ANG(a1) = 3; //? ATR_HIT_TIMING(a1) = 3 + 2; - /* ???t */ + /* ??? */ monster_place_pos[id_no] = ATR_H_POS(a1) = ATR_INT_WORK0(a1) = d0; monster_place_pos[id_no + 1] = ATR_V_POS(a1) = ATR_INT_WORK1(a1) = d1; ATR_H_POS(a1) += 300; ATR_V_POS(a1) += 300; monster_start_pos[id_no++] = ATR_H_POS(a1); monster_start_pos[id_no++] = ATR_V_POS(a1); - /* ???? */ - ATR_CHR_ACT(a1) = ANIM_STAND; //?h??????? - ATR_SPD(a1) = 32; //?hLT + /* ???? */ + ATR_CHR_ACT(a1) = ANIM_STAND; //???????? + ATR_SPD(a1) = 32; //? ATR_GROUP_FLG(a1) = 0; //????????? - ATR_PLACE_NO(a1) = d7; //?k?V - /* ???????V */ + ATR_PLACE_NO(a1) = d7; //?? + /* ??????? */ p_party[d7] = a1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); - /* ?? */ + /* ?? */ d0 += 32 * 2; d1 -= 24 * 2; } - /* ???? */ + /* ???? */ p_party[d7] = NULL; #ifdef _BATTLE_PK_PLAYER_FOR_6VS6 - //X + //X座标 d0 = 64 - 32 + 5; - //Y + //Y座标 d1 = 192 + 30; #else - d0 = 64 - 32 + 5; //?? - d1 = 192 - 24 + 30; //?? + d0 = 64 - 32 + 5; //?? + d1 = 192 - 24 + 30; //?? #endif d2 = SPR_021em; /*?????*/ - //_BATTLE_PK_PLAYER_FOR_6VS6 XIEZI ޸ + //_BATTLE_PK_PLAYER_FOR_6VS6 XIEZI 修改 for (; d7 < 3 * MAX_BATTLE_ROW_CHARS; d7++) - { //з - /* ??????????????K? */ + { //敌方人物 + /* ??????????????? */ a1 = GetAction(T_PRIO_JIKI, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; ATR_NAME(a1) = NULL; ATR_VCT_NO(a1) = VCT_NO_APPEAR; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - // ?????????? + // ?????????? a1->atr |= ACT_ATR_INFO; - // ???Re?? + // ????? a1->atr |= ACT_ATR_HIT; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = d2; ATR_CHR_ANG(a1) = 7; //?? ATR_HIT_TIMING(a1) = 5; - /* ???t */ + /* ??? */ monster_place_pos[id_no] = ATR_H_POS(a1) = ATR_INT_WORK0(a1) = d0; monster_place_pos[id_no + 1] = ATR_V_POS(a1) = ATR_INT_WORK1(a1) = d1; ATR_H_POS(a1) -= 300; ATR_V_POS(a1) -= 300; monster_start_pos[id_no++] = ATR_H_POS(a1); monster_start_pos[id_no++] = ATR_V_POS(a1); - /* ???? */ - ATR_CHR_ACT(a1) = ANIM_STAND; //?h??????? - ATR_SPD(a1) = 32; //?hLT - ATR_GROUP_FLG(a1) = 1; //???????? - ATR_PLACE_NO(a1) = d7; //?k?V - /* ???????V */ + /* ???? */ + ATR_CHR_ACT(a1) = ANIM_STAND; //???????? + ATR_SPD(a1) = 32; //? + ATR_GROUP_FLG(a1) = 1; //???????? + ATR_PLACE_NO(a1) = d7; //?? + /* ??????? */ p_party[d7] = a1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); - /* ?? */ + /* ?? */ d0 += 32; d1 -= 24; } #ifdef _BATTLE_PK_PLAYER_FOR_6VS6 - //X + //X座标 d0 = 32 + 32 + 5; - //Y + //Y座标 d1 = 264 + 48 + 10; #else - d0 = 32 + 32 + 5; //?? - d1 = 264 + 24 + 10; //?? + d0 = 32 + 32 + 5; //?? + d1 = 264 + 24 + 10; //?? #endif d2 = SPR_pet001; /*???*/ - //_BATTLE_PK_PLAYER_FOR_6VS6 XIEZI ޸ + //_BATTLE_PK_PLAYER_FOR_6VS6 XIEZI 修改 for (; d7 < 4 * MAX_BATTLE_ROW_CHARS; d7++) - { //з - /* ??????????????K? */ + { //敌方宠物 + /* ??????????????? */ a1 = GetAction(T_PRIO_JIKI, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; ATR_NAME(a1) = NULL; ATR_VCT_NO(a1) = VCT_NO_APPEAR; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - // ?????????? + // ?????????? a1->atr |= ACT_ATR_INFO; - // ???Re?? + // ????? a1->atr |= ACT_ATR_HIT; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = d2; ATR_CHR_ANG(a1) = 7; //?? ATR_HIT_TIMING(a1) = 3 + 2; - /* ???t */ + /* ??? */ monster_place_pos[id_no] = ATR_H_POS(a1) = ATR_INT_WORK0(a1) = d0; monster_place_pos[id_no + 1] = ATR_V_POS(a1) = ATR_INT_WORK1(a1) = d1; ATR_H_POS(a1) -= 300; ATR_V_POS(a1) -= 300; monster_start_pos[id_no++] = ATR_H_POS(a1); monster_start_pos[id_no++] = ATR_V_POS(a1); - /* ???? */ - ATR_CHR_ACT(a1) = ANIM_STAND; //?h??????? - ATR_SPD(a1) = 32; //?hLT - ATR_GROUP_FLG(a1) = 1; //???????? - ATR_PLACE_NO(a1) = d7; //?k?V - /* ???????V */ + /* ???? */ + ATR_CHR_ACT(a1) = ANIM_STAND; //???????? + ATR_SPD(a1) = 32; //? + ATR_GROUP_FLG(a1) = 1; //???????? + ATR_PLACE_NO(a1) = d7; //?? + /* ??????? */ p_party[d7] = a1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); - /* ?? */ + /* ?? */ d0 += 32 * 2; d1 -= 24 * 2; } @@ -11611,168 +11611,168 @@ ACTION *oft_test(void) d1 = 408 + 24 + DISPLACEMENT_Y; d2 = SPR_021em; /*?????*/ for (d7 = 20; d7 < 25; d7++) - { //з - /* ??????????????K? */ + { //敌方人物 + /* ??????????????? */ a1 = GetAction(T_PRIO_JIKI, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; ATR_NAME(a1) = NULL; ATR_VCT_NO(a1) = VCT_NO_APPEAR; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - // ?????????? + // ?????????? a1->atr |= ACT_ATR_INFO; - // ???Re?? + // ????? a1->atr |= ACT_ATR_HIT; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = d2; ATR_CHR_ANG(a1) = 5; //?? ATR_HIT_TIMING(a1) = 5; - /* ???t */ + /* ??? */ monster_place_pos[id_no] = ATR_H_POS(a1) = ATR_INT_WORK0(a1) = d0; monster_place_pos[id_no + 1] = ATR_V_POS(a1) = ATR_INT_WORK1(a1) = d1; ATR_H_POS(a1) -= 300; ATR_V_POS(a1) += 300; monster_start_pos[id_no++] = ATR_H_POS(a1); monster_start_pos[id_no++] = ATR_V_POS(a1); - /* ???? */ - ATR_CHR_ACT(a1) = ANIM_STAND; //?h??????? - ATR_SPD(a1) = 32; //?hLT - ATR_GROUP_FLG(a1) = 2; //???????? - ATR_PLACE_NO(a1) = d7; //?k?V - /* ???????V */ + /* ???? */ + ATR_CHR_ACT(a1) = ANIM_STAND; //???????? + ATR_SPD(a1) = 32; //? + ATR_GROUP_FLG(a1) = 2; //???????? + ATR_PLACE_NO(a1) = d7; //?? + /* ??????? */ p_party[d7] = a1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); - /* ?? */ + /* ?? */ d0 -= 32; d1 -= 24; } - d0 = 288 + 32 + 5; //?? - d1 = 432 - 24 + DISPLACEMENT_Y; //?? + d0 = 288 + 32 + 5; //?? + d1 = 432 - 24 + DISPLACEMENT_Y; //?? d2 = SPR_pet001; /*???*/ for (d7 = 25; d7 < 30; d7++) - { //з - /* ??????????????K? */ + { //敌方宠物 + /* ??????????????? */ a1 = GetAction(T_PRIO_JIKI, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; ATR_NAME(a1) = NULL; ATR_VCT_NO(a1) = VCT_NO_APPEAR; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - // ?????????? + // ?????????? a1->atr |= ACT_ATR_INFO; - // ???Re?? + // ????? a1->atr |= ACT_ATR_HIT; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = d2; ATR_CHR_ANG(a1) = 5; //?? ATR_HIT_TIMING(a1) = 3 + 2; - /* ???t */ + /* ??? */ monster_place_pos[id_no] = ATR_H_POS(a1) = ATR_INT_WORK0(a1) = d0; monster_place_pos[id_no + 1] = ATR_V_POS(a1) = ATR_INT_WORK1(a1) = d1; ATR_H_POS(a1) -= 300; ATR_V_POS(a1) += 300; monster_start_pos[id_no++] = ATR_H_POS(a1); monster_start_pos[id_no++] = ATR_V_POS(a1); - /* ???? */ - ATR_CHR_ACT(a1) = ANIM_STAND; //?h??????? - ATR_SPD(a1) = 32; //?hLT - ATR_GROUP_FLG(a1) = 2; //???????? - ATR_PLACE_NO(a1) = d7; //?k?V - /* ???????V */ + /* ???? */ + ATR_CHR_ACT(a1) = ANIM_STAND; //???????? + ATR_SPD(a1) = 32; //? + ATR_GROUP_FLG(a1) = 2; //???????? + ATR_PLACE_NO(a1) = d7; //?? + /* ??????? */ p_party[d7] = a1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); - /* ?? */ + /* ?? */ d0 -= 32 * 2; d1 -= 24 * 2; } - //X + //X座标 d0 = 608 - 32 + 5 + DISPLACEMENT_X; - //Y + //Y座标 d1 = 190 - 24 + 30; d2 = SPR_021em; /*?????*/ for (d7 = 30; d7 < 35; d7++) - { //Ͻǵз - /* ??????????????K? */ + { //左上角敌方人物 + /* ??????????????? */ a1 = GetAction(T_PRIO_JIKI, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; ATR_NAME(a1) = NULL; ATR_VCT_NO(a1) = VCT_NO_APPEAR; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - // ?????????? + // ?????????? a1->atr |= ACT_ATR_INFO; - // ???Re?? + // ????? a1->atr |= ACT_ATR_HIT; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = d2; ATR_CHR_ANG(a1) = 1; //?? ATR_HIT_TIMING(a1) = 5; - /* ???t */ + /* ??? */ monster_place_pos[id_no] = ATR_H_POS(a1) = ATR_INT_WORK0(a1) = d0; monster_place_pos[id_no + 1] = ATR_V_POS(a1) = ATR_INT_WORK1(a1) = d1; ATR_H_POS(a1) += 300; ATR_V_POS(a1) -= 300; monster_start_pos[id_no++] = ATR_H_POS(a1); monster_start_pos[id_no++] = ATR_V_POS(a1); - /* ???? */ - ATR_CHR_ACT(a1) = ANIM_STAND; //?h??????? - ATR_SPD(a1) = 32; //?hLT - ATR_GROUP_FLG(a1) = 3; //???????? - ATR_PLACE_NO(a1) = d7; //?k?V - /* ???????V */ + /* ???? */ + ATR_CHR_ACT(a1) = ANIM_STAND; //???????? + ATR_SPD(a1) = 32; //? + ATR_GROUP_FLG(a1) = 3; //???????? + ATR_PLACE_NO(a1) = d7; //?? + /* ??????? */ p_party[d7] = a1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); - /* ?? */ + /* ?? */ d0 -= 32; d1 -= 24; } - d0 = 608 - 32 + 5 + DISPLACEMENT_X; //?? - d1 = 236 + 24 + 30; //?? + d0 = 608 - 32 + 5 + DISPLACEMENT_X; //?? + d1 = 236 + 24 + 30; //?? d2 = SPR_pet001; /*???*/ for (d7 = 35; d7 < 40; d7++) - { //Ͻǵз - /* ??????????????K? */ + { //左上角敌方宠物 + /* ??????????????? */ a1 = GetAction(T_PRIO_JIKI, sizeof(ATR_EQU)); if (a1 == NULL) return NULL; ATR_NAME(a1) = NULL; ATR_VCT_NO(a1) = VCT_NO_APPEAR; - /* ?IT */ + /* ? */ ATR_DISP_PRIO(a1) = D_PRIO_MASTER; - // ?????????? + // ?????????? a1->atr |= ACT_ATR_INFO; - // ???Re?? + // ????? a1->atr |= ACT_ATR_HIT; - /* ?????k? */ + /* ?????? */ ATR_CHR_NO(a1) = d2; ATR_CHR_ANG(a1) = 1; //?? ATR_HIT_TIMING(a1) = 3 + 2; - /* ???t */ + /* ??? */ monster_place_pos[id_no] = ATR_H_POS(a1) = ATR_INT_WORK0(a1) = d0; monster_place_pos[id_no + 1] = ATR_V_POS(a1) = ATR_INT_WORK1(a1) = d1; ATR_H_POS(a1) += 300; ATR_V_POS(a1) -= 300; monster_start_pos[id_no++] = ATR_H_POS(a1); monster_start_pos[id_no++] = ATR_V_POS(a1); - /* ???? */ - ATR_CHR_ACT(a1) = ANIM_STAND; //?h??????? - ATR_SPD(a1) = 32; //?hLT - ATR_GROUP_FLG(a1) = 3; //???????? - ATR_PLACE_NO(a1) = d7; //?k?V - /* ???????V */ + /* ???? */ + ATR_CHR_ACT(a1) = ANIM_STAND; //???????? + ATR_SPD(a1) = 32; //? + ATR_GROUP_FLG(a1) = 3; //???????? + ATR_PLACE_NO(a1) = d7; //?? + /* ??????? */ p_party[d7] = a1; pattern(a1, ANM_NOMAL_SPD, ANM_LOOP); - /* ?? */ + /* ?? */ d0 -= 32 * 2; d1 -= 24 * 2; } #endif - // λ //???t?t + // 初期位置再配置 //???? for (d7 = 0; d7 < BATTLKPKPLYAERNUM; d7++) { a1 = p_party[d7]; @@ -11781,21 +11781,21 @@ ACTION *oft_test(void) ATR_INT_WORK0(a1) = monster_place_pos[monster_place_no[d7] * 2]; ATR_INT_WORK1(a1) = monster_place_pos[monster_place_no[d7] * 2 + 1]; } - command_point = 0; // clear command point //????????????? + command_point = 0; // clear command point //????????????? return a1; } static int bc_pointer; -/* ??????? *******************************************************************/ +/* ??????? *******************************************************************/ int get_bc_num(void) { int d0, d1; while (1) { - d0 = BattleStatus[bc_pointer++]; //???? + d0 = BattleStatus[bc_pointer++]; //???? if (d0 == NULL) - { //??? + { //??? bc_pointer--; return -1; } @@ -11811,16 +11811,16 @@ int get_bc_num(void) while (1) { - d0 = BattleStatus[bc_pointer++]; //??????? + d0 = BattleStatus[bc_pointer++]; //??????? if (d0 == NULL) - { //??? + { //??? bc_pointer--; break; } if (d0 < '0' || d0 > '9') { //?????? if (d0 < 'A' || d0 > 'F') //???????? - break; //? + break; //? } d1 = d1 << 4; //??????? if (d0 >= 'A') //????? @@ -11831,7 +11831,7 @@ int get_bc_num(void) return d1; } -/* ?????? *******************************************************************/ +/* ?????? *******************************************************************/ void get_bc_asc(ACTION *a1, int flg) { char d0; @@ -11843,13 +11843,13 @@ void get_bc_asc(ACTION *a1, int flg) a2 = ATR_TITLE(a1); while (1) { - d0 = BattleStatus[bc_pointer++]; //???? + d0 = BattleStatus[bc_pointer++]; //???? if (d0 == NULL) - { //??? + { //??? bc_pointer--; break; } - //???? + //???? if (d0 == '|') break; if (IsDBCSLeadByte(d0)) @@ -11860,7 +11860,7 @@ void get_bc_asc(ACTION *a1, int flg) else *a2++ = d0; } - //???? + //???? *a2 = 0; if (flg == 0) makeStringFromEscaped(ATR_HANDLE(a1)); @@ -11869,7 +11869,7 @@ void get_bc_asc(ACTION *a1, int flg) } // Robin 0728 -/* ?????? for Ride Pet*******************************************************************/ +/* ?????? for Ride Pet*******************************************************************/ void get_bc_asc_ridepet(ACTION *a1) { char d0; @@ -11878,13 +11878,13 @@ void get_bc_asc_ridepet(ACTION *a1) a2 = ATR_PETNAME(a1); while (1) { - d0 = BattleStatus[bc_pointer++]; //???? + d0 = BattleStatus[bc_pointer++]; //???? if (d0 == NULL) - { //??? + { //??? bc_pointer--; break; } - //???? + //???? if (d0 == '|') break; if (IsDBCSLeadByte(d0)) @@ -11895,13 +11895,13 @@ void get_bc_asc_ridepet(ACTION *a1) else *a2++ = d0; } - //???? + //???? *a2 = 0; makeStringFromEscaped(ATR_PETNAME(a1)); } -//Ƿ״̬ȷ -//p_partyеֵеijʼ +//人物是否有状态在身上确认 +//填入p_party内所有的值及所有的初始化 void set_bc(void) { ACTION *a1; @@ -11909,42 +11909,42 @@ void set_bc(void) //???????? bc_pointer = 3; - //?????N + //????? ATR_ATTRIB(p_master) = get_bc_num(); - //Pf???????? + //???????? while (BattleStatus[bc_pointer] != NULL) { - //??k???? + //?????? d2 = get_bc_num(); #ifdef _STONDEBUG_ if (d2 >= BATTLKPKPLYAERNUM) - MessageBoxNew(hWnd, "ʼʧ,趨", "Error", MB_OK); + MessageBoxNew(hWnd, "初始化失败,超过设定数量", "Error", MB_OK); #endif //????????????? a1 = p_party[d2]; - /* ??? */ + /* ??? */ ATR_NAME(a1) = monster; - //q??? + //??? get_bc_asc(a1, 0); - //???? + //???? get_bc_asc(a1, 1); - //???k???? + //??????? ATR_CHR_NO(a1) = get_bc_num(); - //?????? + //?????? ATR_LEVEL(a1) = get_bc_num(); - //????? + //????? ATR_LIFE(a1) = get_bc_num(); #ifdef _SFUMATO ATR_SFUMATO(a1) = 0xff0000; #endif - //?????? + //?????? ATR_MAX_LIFE(a1) = get_bc_num(); -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 ATR_MAX_MANA(a1) = pc.maxMp ; #endif - //?????? + //?????? d0 = get_bc_num(); // Robin 0728 ridePet if (bNewServer) @@ -11965,21 +11965,21 @@ void set_bc(void) ATR_PET_LIFE(a1) = 0; ATR_PET_MAX_LIFE(a1) = 0; } - //??? + //??? if (d0 & BC_FRESH) { - //???? + //???? if ((ATR_CHR_NO(a1) >= SPR_mwood1 && ATR_CHR_NO(a1) <= SPR_mstone3) || (ATR_CHR_NO(a1) == 15323) || (ATR_CHR_NO(a1) == 10812) || (ATR_CHR_NO(a1) == 15527) || (ATR_CHR_NO(a1) == 15543) || (ATR_CHR_NO(a1) == 15575) || (ATR_CHR_NO(a1) == 15607)) { - ATR_ATTRIB(a1) &= ~ACT_ATR_HIDE; //?? - //r?? + ATR_ATTRIB(a1) &= ~ACT_ATR_HIDE; //?? + //?? ATR_VCT_NO(a1) = 0; ATR_CHR_ACT(a1) = ANIM_STAND; ATR_H_POS(a1) = ATR_INT_WORK0(a1) = monster_place_pos[monster_place_no[d2] * 2]; ATR_V_POS(a1) = ATR_INT_WORK1(a1) = monster_place_pos[monster_place_no[d2] * 2 + 1]; - //??? + //??? if (ATR_GROUP_FLG(a1) == 0) ATR_CHR_ANG(a1) = 3; else if (ATR_GROUP_FLG(a1) == 1) @@ -11997,12 +11997,12 @@ void set_bc(void) } else { - //K? + //? ATR_VCT_NO(a1) = VCT_NO_APPEAR; - ATR_ATTRIB(a1) &= ~ACT_ATR_HIDE; //?? - //K͢r? + ATR_ATTRIB(a1) &= ~ACT_ATR_HIDE; //?? + //? ATR_VCT_NO(p_master) = 3; - /* ???? */ + /* ???? */ ATR_H_POS(a1) = monster_start_pos[monster_place_no[d2] * 2]; ATR_V_POS(a1) = monster_start_pos[monster_place_no[d2] * 2 + 1]; ATR_INT_WORK0(a1) = monster_place_pos[monster_place_no[d2] * 2]; @@ -12015,7 +12015,7 @@ void set_bc(void) else { if (ATR_LIFE(a1) > 0) - { //????? + { //????? if (d0 & BC_FADE_OUT) { // ??s??? ATR_ATTRIB(a1) |= ACT_ATR_TRAVEL; @@ -12040,12 +12040,12 @@ void set_bc(void) //???????????? set_raster_pos(a1); } - //r?? + //?? ATR_VCT_NO(a1) = 0; ATR_CHR_ACT(a1) = ANIM_STAND; if (BattleBpFlag & BATTLE_BP_JOIN) - { // ӡP?? - //??? + { // ?? + //??? if (ATR_GROUP_FLG(a1) == 0) ATR_CHR_ANG(a1) = 3; else if (ATR_GROUP_FLG(a1) == 1) @@ -12063,12 +12063,12 @@ void set_bc(void) } } } - //??? + //??? if (d0 & BC_DEATH) { if (ATR_VCT_NO(a1) == VCT_NO_APPEAR) - { //??????? - //???? + { //??????? + //???? ATR_VCT_NO(a1) = VCT_NO_DIE + 2; ATR_H_POS(a1) = ATR_INT_WORK0(a1) = monster_place_pos[monster_place_no[d2] * 2]; ATR_V_POS(a1) = ATR_INT_WORK1(a1) = monster_place_pos[monster_place_no[d2] * 2 + 1]; @@ -12076,7 +12076,7 @@ void set_bc(void) set_raster_pos(a1); //???? ATR_LIFE(a1) = 0; - //???????? + //???????? if (ATR_GROUP_FLG(a1) == 0) ATR_CHR_ANG(a1) = 3; else if (ATR_GROUP_FLG(a1) == 1) @@ -12088,129 +12088,129 @@ void set_bc(void) ATR_CHR_ANG(a1) = 1; #endif ATR_CRS_OLD(a1) = ATR_CRS(a1) = crs_change_tbl2[ATR_CHR_ANG(a1)]; - ATR_CHR_ACT(a1) = ANIM_DEAD; //???????? + ATR_CHR_ACT(a1) = ANIM_DEAD; //???????? ATR_CHR_ACT_OLD(a1) = -1; while (1) { - if (pattern(a1, 1, ANM_NO_LOOP)) //?????? + if (pattern(a1, 1, ANM_NO_LOOP)) //?????? break; } - //???? + //???? LoadBmp(ATR_PAT_NO(a1)); #ifndef _PETSKILL_ANTINTER set_piyo_loop(a1); #endif - //?r?` + //??` ATR_VCT_NO(p_master) = 3; } } - //????V?ϣ?? + //?????OK?? if (d0 & BC_PET_OK) ATR_PET_OK(a1) = 1; - //?????????????? + //?????????????? if (ATR_JUJUTSU_WORK(a1) == NULL) { d3 = 0; - if (d0 & BC_BIT3) // ""?? + if (d0 & BC_BIT3) // ""?? d3 = 1; else if (d0 & BC_BIT4) // "??"?? d3 = 2; - else if (d0 & BC_BIT5) // "?"?? + else if (d0 & BC_BIT5) // "?"?? d3 = 3; - else if (d0 & BC_BIT6) // "?"?? + else if (d0 & BC_BIT6) // "?"?? d3 = 4; - else if (d0 & BC_BIT7) // "???"?? + else if (d0 & BC_BIT7) // "???"?? d3 = 5; else if (d0 & BC_BIT8) // "??"?? d3 = 6; #ifdef _MAGIC_WEAKEN - if (d0 & BC_WEAKEN) // + if (d0 & BC_WEAKEN) //虚弱 d3 = 7; #endif #ifdef _MAGIC_DEEPPOISION - if (d0 & BC_DEEPPOISON) //綾 + if (d0 & BC_DEEPPOISON) //剧毒 d3 = 8; #endif #ifdef _MAGIC_BARRIER - if (d0 & BC_BARRIER) //ħ + if (d0 & BC_BARRIER) //魔障 d3 = 9; #endif #ifdef _MAGIC_NOCAST - if (d0 & BC_NOCAST) //Ĭ + if (d0 & BC_NOCAST) //沉默 d3 = 10; #endif -#ifdef _SARS // WON ADD ɷ - if (d0 & BC_SARS) // ɷ +#ifdef _SARS // WON ADD 毒煞蔓延 + if (d0 & BC_SARS) // 毒煞蔓延 d3 = 11; #endif -#ifdef _CHAR_PROFESSION // WON ADD ѣ - if (d0 & BC_DIZZY) // ѣ +#ifdef _CHAR_PROFESSION // WON ADD 晕眩 + if (d0 & BC_DIZZY) // 晕眩 d3 = 12; - if (d0 & BC_ENTWINE) // + if (d0 & BC_ENTWINE) // 树根缠绕 d3 = 13; - if (d0 & BC_DRAGNET) // ޵ + if (d0 & BC_DRAGNET) // 天罗地网 d3 = 14; - if (d0 & BC_ICECRACK) // + if (d0 & BC_ICECRACK) // 冰爆术 d3 = 15; - if (d0 & BC_OBLIVION) // + if (d0 & BC_OBLIVION) // 遗忘 d3 = 16; - if (d0 & BC_ICEARROW) // + if (d0 & BC_ICEARROW) // 冰箭 d3 = 17; - if (d0 & BC_BLOODWORMS)// Ѫ + if (d0 & BC_BLOODWORMS)// 嗜血蛊 d3 = 18; - if (d0 & BC_SIGN) // һѪ + if (d0 & BC_SIGN) // 一针见血 d3 = 19; - if (d0 & BC_CRAZY) // + if (d0 & BC_CRAZY) // 挑拨 d3 = 20; - if (d0 & BC_F_ENCLOSE) // + if (d0 & BC_F_ENCLOSE) // 火附体 d3 = 21; - if (d0 & BC_I_ENCLOSE) // + if (d0 & BC_I_ENCLOSE) // 冰附体 d3 = 22; - if (d0 & BC_T_ENCLOSE) // ׸ + if (d0 & BC_T_ENCLOSE) // 雷附体 d3 = 23; #ifdef _PROFESSION_ADDSKILL if (d0 & BC_WATER) - d3 = 32; // ˮ + d3 = 32; // 水附体 if (d0 & BC_WATER) - d3 = 33; // ־ - //if (d0 & BC_F_I_T_ENCLOSE) // ׸ + d3 = 33; // 恐惧 + //if (d0 & BC_F_I_T_ENCLOSE) // 火冰雷附体 // d3 = 24; #endif #ifdef _PETSKILL_LER if (d0 & BC_CHANGE) - d3 = 34; // ׶ + d3 = 34; // 雷尔变身 #endif #ifdef _PRO_KILLME if (d0 & BC_ANGER) - d3 = 35; // ŭ + d3 = 35; // 怒 #endif #endif #ifdef _PETSKILL_LER if (d0 & BC_CHANGE) - d3 = 34; // ׶ + d3 = 34; // 雷尔变身 #endif if (d3) - { //?????? - set_single_jujutsu(d3, a1); //Ol??? + { //?????? + set_single_jujutsu(d3, a1); //??? ATR_STATUS(a1) = d3; //???????? } else - ATR_STATUS(a1) = 0; //????? + ATR_STATUS(a1) = 0; //????? } - //NͧT???????? + //???????? if (ATR_ATTRIB_WORK(a1) == NULL) { - if (d0 & BC_REVERSE) //T?? - set_attrib_reverse(a1); //NͧT??? + if (d0 & BC_REVERSE) //?? + set_attrib_reverse(a1); //??? } } - //K͢r?????? + //?????? if (ATR_VCT_NO(p_master) != 3) - action_inf = 3; //K?? + action_inf = 3; //?? } -// ???????? ????? ?************************************/ +// ???????? ????? ?************************************/ void disp_shild(void) { char box[] = { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, @@ -12231,21 +12231,21 @@ void disp_shild(void) 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; - DDSURFACEDESC ddsd; // ??????Bl + DDSURFACEDESC ddsd; // ?????? char d6, d7; - char *psource; // ?I????? + char *psource; // ?????? ZeroMemory(&ddsd, sizeof(DDSURFACEDESC)); ddsd.dwSize = sizeof(DDSURFACEDESC); - // ?????????????????( i?? ddsd ?ѩ?V????? ) + // ?????????????????( ?? ddsd ??????? ) if (lpDraw->lpBACKBUFFER->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL) != DD_OK) { - //MessageBoxNew( hWnd, "Surfacelockʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + //MessageBoxNew( hWnd, "Surface的lock失败!", "确定", MB_OK | MB_ICONSTOP ); return; } - psource = box; // ??????? + psource = box; // ??????? _asm{ // push eax // push ebx @@ -12254,7 +12254,7 @@ void disp_shild(void) // push esi // push edi - mov edx, [ddsd.lpSurface] //Id???? + mov edx, [ddsd.lpSurface] //???? add edx, 640 - 24 // mov ebx, [ddsd.lPitch] //????????? @@ -12266,7 +12266,7 @@ void disp_shild(void) disp_shild_100 : mov al, 30 //???????? mov[d7], al // - mov edi, edx //????? + mov edi, edx //????? disp_shild_200 : mov cl, 16 //????????? @@ -12312,7 +12312,7 @@ void disp_shild(void) if (lpDraw->lpBACKBUFFER->Unlock(NULL) != DD_OK) { extern int MessageBoxNew(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType); - MessageBoxNew(hWnd, "SurfaceUnlockʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "Surface的Unlock失败!", "确定", MB_OK | MB_ICONSTOP); return; } diff --git a/石器时代8.5客户端最新源代码/石器源码/redMemoy.cpp b/石器时代8.5客户端最新源代码/石器源码/redMemoy.cpp index a3bf03a..f10f166 100644 --- a/石器时代8.5客户端最新源代码/石器源码/redMemoy.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/redMemoy.cpp @@ -1,4 +1,4 @@ -#include "systeminc\version.h" +#include "systeminc\version.h" #include "systeminc/system.h" #include "redMemoy.h" #ifdef _RED_MEMOY_ @@ -30,11 +30,11 @@ void RedMemoyCall() if(TimeGetTime() < redMemoy.time){ char str[128]; int id; - sprintf(str,"[%s] %s %dң", - redMemoy.type?"ȫ":"",redMemoy.name,redMemoy.vip); - StockDispBuffer(400, 70, DISP_PRIO_ITEM, 60001, 1);//ͼ + sprintf(str,"[%s]玩家 %s 分享红包%d金币!", + redMemoy.type?"全服":"家族",redMemoy.name,redMemoy.vip); + StockDispBuffer(400, 70, DISP_PRIO_ITEM, 60001, 1);//底图 if(MakeHitBox(630-16,75-16,630+16,75+16,DISP_PRIO_ITEM+2)==1){ - StockDispBuffer(630, 75, DISP_PRIO_ITEM+1, 60003, 1);//ť + StockDispBuffer(630, 75, DISP_PRIO_ITEM+1, 60003, 1);//按钮 if( (mouse.onceState & MOUSE_LEFT_CRICK)){ redMemoy.flg=0; extern void lssproto_redMemoy_send(int fd,int index,char *str); @@ -42,7 +42,7 @@ void RedMemoyCall() sprintf(str,"%d",redMemoy.index); lssproto_redMemoy_send(sockfd,2,str); } - }else StockDispBuffer(630, 75, DISP_PRIO_ITEM+1, 60002, 1);//ť + }else StockDispBuffer(630, 75, DISP_PRIO_ITEM+1, 60002, 1);//按钮 static int colorindex = 0; if(TimeGetTime() > redMemoy.colortime){ diff --git a/石器时代8.5客户端最新源代码/石器源码/redMemoy.h b/石器时代8.5客户端最新源代码/石器源码/redMemoy.h index e015285..e524416 100644 --- a/石器时代8.5客户端最新源代码/石器源码/redMemoy.h +++ b/石器时代8.5客户端最新源代码/石器源码/redMemoy.h @@ -1,4 +1,4 @@ -#ifndef __REMEMOY_H_ +#ifndef __REMEMOY_H_ #define __REMEMOY_H_ #ifdef _RED_MEMOY_ typedef struct diff --git a/石器时代8.5客户端最新源代码/石器源码/resource.h b/石器时代8.5客户端最新源代码/石器源码/resource.h index fb3cacc..70f0be0 100644 --- a/石器时代8.5客户端最新源代码/石器源码/resource.h +++ b/石器时代8.5客户端最新源代码/石器源码/resource.h @@ -1,4 +1,4 @@ -//{{NO_DEPENDENCIES}} +//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by Script1.rc // diff --git a/石器时代8.5客户端最新源代码/石器源码/system/CharSignDay.cpp b/石器时代8.5客户端最新源代码/石器源码/system/CharSignDay.cpp index da98aeb..8fce450 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/CharSignDay.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/CharSignDay.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/CharSignDay.h" #include "../newproto/autil.h" @@ -17,27 +17,27 @@ extern int idWN; extern short wnCloseFlag; extern int cloasewindows; extern int windowTypeWN; -ACTION * ǩַ=0; -int ǩX,ǩY; -extern char [1024]; -int ǩ; +ACTION * 签到动作地址=0; +int 签到窗口X,签到窗口Y; +extern char 二级窗口内容[1024]; +int 签到二级窗口; typedef struct { int ID; - char [64]; - char [512]; -}ǩ߽ṹ; + char 道具名[64]; + char 数据[512]; +}签到道具结构; typedef struct { - int ߿; - int ״̬; - int ; - int 켸; - ǩ߽ṹ [30]; -}ǩṹ; + int 道具空; + int 状态; + int 当月天数; + int 当天几号; + 签到道具结构 道具[30]; +}签到结构; -ǩṹ ǩ; -short ǩ[][2]={ +签到结构 签到数据; +short 签到道具内容坐标[][2]={ {0,3}, {1,6}, {2,8}, @@ -45,118 +45,118 @@ short ǩ {4,13}, {5,16} }; -int ǩڿ=588; -int ǩڸ=396; +int 签到窗口宽=588; +int 签到窗口高=396; -void ǩڳʼ(char * ) +void 签到窗口初始化(char * 内容) { - memset(&ǩ,0,sizeof(ǩṹ)); - memset(,0,1024); - if(ǩַ) DeathAction(ǩַ); - ǩַ=0; - char *ʱ=new char [512]; - char *ʱ=new char [512]; - memset(ʱ,0,512); - memset(ʱ,0,512); - getStringFromIndexWithDelim_body((char *) ,(char *)"|",1,ʱ,10); - ǩ.߿=atoi(ʱ); - memset(ʱ,0,10); - getStringFromIndexWithDelim_body((char *) ,(char *)"|",2,ʱ,10); - ǩ.=atoi(ʱ); - memset(ʱ,0,10); - getStringFromIndexWithDelim_body((char *) ,(char *)"|",3,ʱ,10); - ǩ.켸=atoi(ʱ); - memset(ʱ,0,10); - getStringFromIndexWithDelim_body((char *) ,(char *)"|",4,ʱ,30); - ǩ.״̬=atoi(ʱ); - memset(ʱ,0,512); - memset(ʱ,0,512); + memset(&签到数据,0,sizeof(签到结构)); + memset(二级窗口内容,0,1024); + if(签到动作地址) DeathAction(签到动作地址); + 签到动作地址=0; + char *临时=new char [512]; + char *临时数据=new char [512]; + memset(临时,0,512); + memset(临时数据,0,512); + getStringFromIndexWithDelim_body((char *) 内容,(char *)"|",1,临时,10); + 签到数据.道具空=atoi(临时); + memset(临时,0,10); + getStringFromIndexWithDelim_body((char *) 内容,(char *)"|",2,临时,10); + 签到数据.当月天数=atoi(临时); + memset(临时,0,10); + getStringFromIndexWithDelim_body((char *) 内容,(char *)"|",3,临时,10); + 签到数据.当天几号=atoi(临时); + memset(临时,0,10); + getStringFromIndexWithDelim_body((char *) 内容,(char *)"|",4,临时,30); + 签到数据.状态=atoi(临时); + memset(临时,0,512); + memset(临时数据,0,512); int i; - for(i=0;i<ǩ.;i++){ - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",2+i,ʱ,512); - getStringFromIndexWithDelim_body((char *) ʱ,(char *)"|",1,ʱ,10); - ǩ.[i].ID=atoi(ʱ); - memset(ʱ,0,10); - getStringFromIndexWithDelim_body((char *) ʱ,(char *)"|",2,ʱ,64); - sprintf(ǩ.[i].,"%s",ʱ); - memset(ʱ,0,64); - getStringFromIndexWithDelim_body((char *) ʱ,(char *)"|",3,ʱ,512); - sprintf(ǩ.[i].,"%s",ʱ); - memset(ʱ,0,512); - memset(ʱ,0,512); + for(i=0;i<签到数据.当月天数;i++){ + getStringFromIndexWithDelim_body((char *) 内容,(char *)"#@",2+i,临时,512); + getStringFromIndexWithDelim_body((char *) 临时,(char *)"|",1,临时数据,10); + 签到数据.道具[i].ID=atoi(临时数据); + memset(临时数据,0,10); + getStringFromIndexWithDelim_body((char *) 临时,(char *)"|",2,临时数据,64); + sprintf(签到数据.道具[i].道具名,"%s",临时数据); + memset(临时数据,0,64); + getStringFromIndexWithDelim_body((char *) 临时,(char *)"|",3,临时数据,512); + sprintf(签到数据.道具[i].数据,"%s",临时数据); + memset(临时,0,512); + memset(临时数据,0,512); } - delete ʱ; - delete ʱ; - ǩ=0; - ǩX=(800-ǩڿ)/2+ǩڿ/2; - ǩY=(600-ǩڸ)/2-40+ǩڸ/2; + delete 临时; + delete 临时数据; + 签到二级窗口=0; + 签到窗口X=(800-签到窗口宽)/2+签到窗口宽/2; + 签到窗口Y=(600-签到窗口高)/2-40+签到窗口高/2; } -ACTION* ǩ() +ACTION* 创建签到窗口() { - if(ǩַ) DeathAction(ǩַ); - ǩַ = MakeWindowDisp(ǩX,ǩY,0,0,55217,0,FALSE); + if(签到动作地址) DeathAction(签到动作地址); + 签到动作地址 = MakeWindowDisp(签到窗口X,签到窗口Y,0,0,55217,0,FALSE); play_se(202,320,240); - return ǩַ; + return 签到动作地址; } -void ǩ() +void 清除签到动作() { - if(ǩַ) DeathAction(ǩַ); - ǩַ=0; + if(签到动作地址) DeathAction(签到动作地址); + 签到动作地址=0; wnCloseFlag=0; windowTypeWN = -1; wnCloseFlag = 1; } -ACTION* ǩʾ() +ACTION* 签到数据显示() { - int X=55; - int Y=58; - int ǰ=0; + int 底座X=55; + int 底座Y=58; + int 当前底座数量=0; int i,b; for(i=0;i<5;++i){ for(b=0;b<6;++b){ - ǰ++; - StockDispBuffer(ǩX-225+b*X,ǩY-65+i*Y,106,ǩ.[ǰ-1].ID,1);// - if(MakeHitBox(ǩX-225+b*X-26,ǩY-65+i*Y-26,ǩX-225+b*X+26,ǩY-65+i*Y+26,1)==1){ - if(!ǩ) ʾ(ǩX-225+b*X,ǩY-65+i*Y,112,ǩ.[ǰ-1].,0,ǩ.[ǰ-1].); + 当前底座数量++; + StockDispBuffer(签到窗口X-225+b*底座X,签到窗口Y-65+i*底座Y,106,签到数据.道具[当前底座数量-1].ID,1);//道具 + if(MakeHitBox(签到窗口X-225+b*底座X-26,签到窗口Y-65+i*底座Y-26,签到窗口X-225+b*底座X+26,签到窗口Y-65+i*底座Y+26,1)==1){ + if(!签到二级窗口) 显示道具数据(签到窗口X-225+b*底座X,签到窗口Y-65+i*底座Y,112,签到数据.道具[当前底座数量-1].数据,0,签到数据.道具[当前底座数量-1].道具名); } - if((ǩ.״̬&(1<<ǰ))) + if((签到数据.状态&(1<<当前底座数量))) // StockDispBuffer(400, 288, DISP_PRIO_MENU-1, 55256, 0); - StockDispBuffer(ǩX-225+b*X,ǩY-65+i*Y,107,55269,1);//ǩɹ - if(ǰ >= ǩ.) break; + StockDispBuffer(签到窗口X-225+b*底座X,签到窗口Y-65+i*底座Y,107,55269,1);//签到成功 + if(当前底座数量 >= 签到数据.当月天数) break; } } -//ͼ - StockDispBuffer(ǩX,ǩY+28,104,55217,1); -//ǩ - int ťID = StockDispBuffer(ǩX+200,ǩY+207,105,55216,2); +//底图 + StockDispBuffer(签到窗口X,签到窗口Y+28,104,55217,1); +//签到 + int 按钮ID = StockDispBuffer(签到窗口X+200,签到窗口Y+207,105,55216,2); if( mouse.onceState & MOUSE_LEFT_CRICK ){ - if( HitDispNo == ťID ){ + if( HitDispNo == 按钮ID ){ lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,"1"); - ǩ=1; + 签到二级窗口=1; } } -//ر - if(MakeHitBox(ǩX+253,ǩY-175,ǩX+283,ǩY-149,1)==1){ - StockDispBuffer(ǩX+270,ǩY-160,105,40165,1); - if(mouse.onceState & MOUSE_LEFT_CRICK && !ǩ){ +//关闭 + if(MakeHitBox(签到窗口X+253,签到窗口Y-175,签到窗口X+283,签到窗口Y-149,1)==1){ + StockDispBuffer(签到窗口X+270,签到窗口Y-160,105,40165,1); + if(mouse.onceState & MOUSE_LEFT_CRICK && !签到二级窗口){ windowTypeWN = -1; wnCloseFlag = 1; } } - if(ǩ){ - StockDispBuffer(ǩX-186,ǩY-58,111,40088,1); - StockFontBuffer(ǩX-138,ǩY-16,2,0,,0); - ťID = StockDispBuffer(ǩX+5,ǩY+37,112,26042,2); + if(签到二级窗口){ + StockDispBuffer(签到窗口X-186,签到窗口Y-58,111,40088,1); + StockFontBuffer(签到窗口X-138,签到窗口Y-16,2,0,二级窗口内容,0); + 按钮ID = StockDispBuffer(签到窗口X+5,签到窗口Y+37,112,26042,2); if( mouse.onceState & MOUSE_LEFT_CRICK ){ - if( HitDispNo == ťID ){ - ǩ=0; - memset(,0,1024); + if( HitDispNo == 按钮ID ){ + 签到二级窗口=0; + memset(二级窗口内容,0,1024); } } } @@ -166,13 +166,13 @@ ACTION* ǩ || menuBtn == 1 || disconnectServerFlag == TRUE || wnCloseFlag == 1 - || cloasewindows == 1) ǩ(); - return ǩַ; + || cloasewindows == 1) 清除签到动作(); + return 签到动作地址; } -void ǩ״̬(int ״̬) +void 置签到状态(int 状态) { - ǩ.״̬=״̬; + 签到数据.状态=状态; } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/SDLDraw.cpp b/石器时代8.5客户端最新源代码/石器源码/system/SDLDraw.cpp index f4f1837..05a4450 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/SDLDraw.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/SDLDraw.cpp @@ -1,5 +1,5 @@ -/* - SDL Ⱦ +/* + SDL 馺竘 create by xiezi date 2015/8/16 */ diff --git a/石器时代8.5客户端最新源代码/石器源码/system/Turntable.cpp b/石器时代8.5客户端最新源代码/石器源码/system/Turntable.cpp index cf45c31..318102c 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/Turntable.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/Turntable.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/Turntable.h" #include "../newproto/autil.h" @@ -9,26 +9,26 @@ #include "../other/caryIme.h" #include "../systeminc/field.h" #include "../systeminc/netmain.h" -char [1024]; +char 二级窗口内容[1024]; #ifdef _ICONBUTTONS_ extern unsigned int sockfd; extern int nowGx, nowGy; extern int indexWN; extern int idWN; -ACTION* ת̶ַ=0; +ACTION* 转盘动作地址=0; typedef struct { - int ; - char [64]; - char [512]; -}ת̵߽ṹ; + int 形像; + char 名[64]; + char 数据[512]; +}转盘道具结构; typedef struct { int x; int y; -}תṹ; +}转盘坐标结构; -int ת̵λ[10][2]={ +int 转盘道具位置[10][2]={ {0x0,-0x74}, {0x53,-0x5B}, {0x86,-0x13}, @@ -41,159 +41,159 @@ int ת {-0x52,-0x58}, }; -תṹ ת[10]; +转盘坐标结构 转盘坐标[10]; typedef struct { int x; int y; - int ѡ; - BOOL ; - int ת;//(0δת 1ת 2ת) - int ָλ; - int ָ; - int ָȦ; - ת̵߽ṹ [10]; -}ת̴ڽṹ; + int 选中索引; + BOOL 二级窗口; + int 转动;//(0未转动 1转动中 2转动完了) + int 指针位置; + int 指针次数; + int 指针圈数; + 转盘道具结构 道具[10]; +}转盘窗口结构; -ת̴ڽṹ ת̴; +转盘窗口结构 转盘窗口; -void ת̴ڳʼ(char * ) +void 转盘窗口初始化(char * 内容) { - ת[0].x=0; - ת[0].y=-0x30; - ת[1].x=0x2C; - ת[1].y=-0x21; - ת[2].x=0x49; - ת[2].y=0x7; - ת[3].x=0x48; - ת[3].y=0x2F; - ת[4].x=0x2D; - ת[4].y=0x57; - ת[5].x=0x4; - ת[5].y=0x66; - ת[6].x=-0x27; - ת[6].y=0x5A; - ת[7].x=-0x48; - ת[7].y=0x32; - ת[8].x=-0x47; - ת[8].y=0x8; - ת[9].x=-0x2A; - ת[9].y=-0x20; - memset(&ת̴,0,sizeof(ת̴ڽṹ)); - memset(,0,1024); - if(ת̶ַ) DeathAction(ת̶ַ); - ת̶ַ=0; - char *ʱ=new char [513]; - char *ʱ1=new char [513]; + 转盘坐标[0].x=0; + 转盘坐标[0].y=-0x30; + 转盘坐标[1].x=0x2C; + 转盘坐标[1].y=-0x21; + 转盘坐标[2].x=0x49; + 转盘坐标[2].y=0x7; + 转盘坐标[3].x=0x48; + 转盘坐标[3].y=0x2F; + 转盘坐标[4].x=0x2D; + 转盘坐标[4].y=0x57; + 转盘坐标[5].x=0x4; + 转盘坐标[5].y=0x66; + 转盘坐标[6].x=-0x27; + 转盘坐标[6].y=0x5A; + 转盘坐标[7].x=-0x48; + 转盘坐标[7].y=0x32; + 转盘坐标[8].x=-0x47; + 转盘坐标[8].y=0x8; + 转盘坐标[9].x=-0x2A; + 转盘坐标[9].y=-0x20; + memset(&转盘窗口,0,sizeof(转盘窗口结构)); + memset(二级窗口内容,0,1024); + if(转盘动作地址) DeathAction(转盘动作地址); + 转盘动作地址=0; + char *临时=new char [513]; + char *临时1=new char [513]; int i; for(i=0;i<10;i++){ - memset(ʱ,0,512); - memset(ʱ1,0,20); - getStringFromIndexWithDelim_body((char *) ,(char *)"#@",i+1,ʱ,512); - getStringFromIndexWithDelim_body((char *) ʱ,(char *)"|",1,ʱ1,512); - ת̴.[i]. = atoi(ʱ1); - getStringFromIndexWithDelim_body((char *) ʱ,(char *)"|",2,ת̴.[i].,64); - getStringFromIndexWithDelim_body((char *) ʱ,(char *)"|",3,ת̴.[i].,512); + memset(临时,0,512); + memset(临时1,0,20); + getStringFromIndexWithDelim_body((char *) 内容,(char *)"#@",i+1,临时,512); + getStringFromIndexWithDelim_body((char *) 临时,(char *)"|",1,临时1,512); + 转盘窗口.道具[i].形像 = atoi(临时1); + getStringFromIndexWithDelim_body((char *) 临时,(char *)"|",2,转盘窗口.道具[i].名,64); + getStringFromIndexWithDelim_body((char *) 临时,(char *)"|",3,转盘窗口.道具[i].数据,512); } - delete ʱ; - delete ʱ1; - int ڿ=424; - int ڸ=424; - ת̴.x=(800-ڿ)/2+ڿ/2; - ת̴.y=(600-ڸ)/2-40+ڸ/2; + delete 临时; + delete 临时1; + int 窗口宽=424; + int 窗口高=424; + 转盘窗口.x=(800-窗口宽)/2+窗口宽/2; + 转盘窗口.y=(600-窗口高)/2-40+窗口高/2; } -ACTION* ת̴() +ACTION* 创建转盘窗口() { - if(ת̶ַ) DeathAction(ת̶ַ); - ת̶ַ=0; - ת̶ַ = MakeWindowDisp(ת̴.x,ת̴.y,0,0,40166,0,FALSE); + if(转盘动作地址) DeathAction(转盘动作地址); + 转盘动作地址=0; + 转盘动作地址 = MakeWindowDisp(转盘窗口.x,转盘窗口.y,0,0,40166,0,FALSE); play_se(202,320,240); - return ת̶ַ; + return 转盘动作地址; } -void תû() +void 转动后没给道具() { - if(ת̴.ת==1){ - ת̴.ת=2; + if(转盘窗口.转动==1){ + 转盘窗口.转动=2; lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,"2"); } } extern short wnCloseFlag; extern int windowTypeWN; -void ת̶() +void 清除转盘动作() { - if(ת̶ַ) DeathAction(ת̶ַ); - תû(); - ת̶ַ=0; + if(转盘动作地址) DeathAction(转盘动作地址); + 转动后没给道具(); + 转盘动作地址=0; wnCloseFlag=0; windowTypeWN = -1; wnCloseFlag = 1; } extern int cloasewindows; -ACTION* תʾ() +ACTION* 转盘数据显示() { - //ͼ - StockDispBuffer(ת̴.x,ת̴.y+28,104,40166,1); + //底图 + StockDispBuffer(转盘窗口.x,转盘窗口.y+28,104,40166,1); - //ر - if(MakeHitBox(ת̴.x+0x61,ת̴.y-0x99,ת̴.x+0x80,ת̴.y-0x7D,1)==1){ - StockDispBuffer(ת̴.x+0x71-2,ת̴.y-0x8B,105,40165,1); - if( (mouse.onceState & MOUSE_LEFT_CRICK) && !ת̴.){ + //关闭 + if(MakeHitBox(转盘窗口.x+0x61,转盘窗口.y-0x99,转盘窗口.x+0x80,转盘窗口.y-0x7D,1)==1){ + StockDispBuffer(转盘窗口.x+0x71-2,转盘窗口.y-0x8B,105,40165,1); + if( (mouse.onceState & MOUSE_LEFT_CRICK) && !转盘窗口.二级窗口){ windowTypeWN = -1; wnCloseFlag = 1; } } - //ʼť - if(ת̴.ת) - StockDispBuffer(ת̴.x,ת̴.y+0x1B+1,105,40164,1); + //开始按钮 + if(转盘窗口.转动) + StockDispBuffer(转盘窗口.x,转盘窗口.y+0x1B+1,105,40164,1); else{ - if(MakeHitBox(ת̴.x-0x30,ת̴.y-0x14,ת̴.x+0x30,ת̴.y+0x4A,1)==1){ - StockDispBuffer(ת̴.x,ת̴.y+0x1B+1,105,40164,1); - if( (mouse.onceState & MOUSE_LEFT_CRICK) && !ת̴.){ + if(MakeHitBox(转盘窗口.x-0x30,转盘窗口.y-0x14,转盘窗口.x+0x30,转盘窗口.y+0x4A,1)==1){ + StockDispBuffer(转盘窗口.x,转盘窗口.y+0x1B+1,105,40164,1); + if( (mouse.onceState & MOUSE_LEFT_CRICK) && !转盘窗口.二级窗口){ lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,"1"); } } } - if(ת̴.ת==1){ - if(ת̴.ָ>2){ - ת̴.ָ = 0; - if(ת̴.ָλ==9) { - ת̴.ָȦ++; - ת̴.ָλ=0; + if(转盘窗口.转动==1){ + if(转盘窗口.指针次数>2){ + 转盘窗口.指针次数 = 0; + if(转盘窗口.指针位置==9) { + 转盘窗口.指针圈数++; + 转盘窗口.指针位置=0; } - else ת̴.ָλ++; - }else ת̴.ָ++; - if(ת̴.ָȦ == 8 && ת̴.ָλ==(ת̴.ѡ-1)) { - ת̴.ת=2; - ת̴.=TRUE; + else 转盘窗口.指针位置++; + }else 转盘窗口.指针次数++; + if(转盘窗口.指针圈数 == 8 && 转盘窗口.指针位置==(转盘窗口.选中索引-1)) { + 转盘窗口.转动=2; + 转盘窗口.二级窗口=TRUE; lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,"2"); } } - StockDispBuffer(ת̴.x+ת[ת̴.ָλ].x,ת̴.y+ת[ת̴.ָλ].y,106,40153+ת̴.ָλ,1); - //ʾ + StockDispBuffer(转盘窗口.x+转盘坐标[转盘窗口.指针位置].x,转盘窗口.y+转盘坐标[转盘窗口.指针位置].y,106,40153+转盘窗口.指针位置,1); + //道具显示 int i; for(i=0;i<10;i++){ - StockDispBuffer(ת̴.x+ת̵λ[i][0],ת̴.y+ת̵λ[i][1],106,ת̴.[i].,1); - if(!ת̴.) - if(MakeHitBox(ת̴.x+ת̵λ[i][0]-30,ת̴.y+ת̵λ[i][1]-30,ת̴.x+ת̵λ[i][0]+30,ת̴.y+ת̵λ[i][1]+30,1)==1){ - //extern void ʾ(short x,short y,UCHAR ,char* ,int ,char*); - ʾ(ת̴.x+ת̵λ[i][0],ת̴.y+ת̵λ[i][1],107,ת̴.[i].,0,ת̴.[i].); + StockDispBuffer(转盘窗口.x+转盘道具位置[i][0],转盘窗口.y+转盘道具位置[i][1],106,转盘窗口.道具[i].形像,1); + if(!转盘窗口.二级窗口) + if(MakeHitBox(转盘窗口.x+转盘道具位置[i][0]-30,转盘窗口.y+转盘道具位置[i][1]-30,转盘窗口.x+转盘道具位置[i][0]+30,转盘窗口.y+转盘道具位置[i][1]+30,1)==1){ + //extern void 显示道具数据(short x,short y,UCHAR 层次,char* 内容,int 形像 ,char*名字); + 显示道具数据(转盘窗口.x+转盘道具位置[i][0],转盘窗口.y+转盘道具位置[i][1],107,转盘窗口.道具[i].数据,0,转盘窗口.道具[i].名); } } - //ʾ - if(ת̴.){ - StockDispBuffer(ת̴.x-0xC1,ת̴.y-0x32,107,40088,1); + //窗口提示 + if(转盘窗口.二级窗口){ + StockDispBuffer(转盘窗口.x-0xC1,转盘窗口.y-0x32,107,40088,1); extern int getTextLength(char * str); - StockFontBuffer(ת̴.x-getTextLength()/2,ת̴.y+5,2,0,,1); - int ťID = StockDispBuffer(ת̴.x,ת̴.y+50,109,26042,2); + StockFontBuffer(转盘窗口.x-getTextLength(二级窗口内容)/2,转盘窗口.y+5,2,0,二级窗口内容,1); + int 按钮ID = StockDispBuffer(转盘窗口.x,转盘窗口.y+50,109,26042,2); if( mouse.onceState & MOUSE_LEFT_CRICK ){ - if( HitDispNo == ťID ){ - ת̴.=0; + if( HitDispNo == 按钮ID ){ + 转盘窗口.二级窗口=0; windowTypeWN = -1; wnCloseFlag = 1; - memset(,0,1024); + memset(二级窗口内容,0,1024); } } } @@ -203,14 +203,14 @@ ACTION* ת || menuBtn == 1 || disconnectServerFlag == TRUE || wnCloseFlag == 1 - || cloasewindows == 1) ת̶(); - return ת̶ַ; + || cloasewindows == 1) 清除转盘动作(); + return 转盘动作地址; } -void ת(int ѡ) +void 置转盘数据(int 选中索引) { - ת̴.ת=1; - ת̴.ѡ=ѡ; + 转盘窗口.转动=1; + 转盘窗口.选中索引=选中索引; } #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/system/action.cpp b/石器时代8.5客户端最新源代码/石器源码/system/action.cpp index 11600cd..2ce8e4e 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/action.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/action.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* action.c */ /************************/ #include "../systeminc/version.h" @@ -14,7 +14,7 @@ extern int g_iMallocCount; extern int MessageBoxNew(HWND hWnd,LPCSTR lpText,LPCSTR lpCaption,UINT uType); void InitAction( void ) { - /* ??????????x */ + /* ?????????? */ pActTop = ( ACTION * )CALLOC( 1, sizeof( ACTION ) ); pActBtm = ( ACTION * )CALLOC( 1, sizeof( ACTION ) ); @@ -23,67 +23,67 @@ void InitAction( void ) #endif memset(pActTop,0,sizeof(ACTION)); memset(pActBtm,0,sizeof(ACTION)); - pActTop->pPrev = NULL; /* q?????? */ - pActTop->pNext = pActBtm; /* ???????? */ - pActTop->func = NULL; /* ????? */ - pActTop->prio = PRIO_TOP; /* ?I??? */ - pActTop->bmpNo = -1; /* ???k???? */ + pActTop->pPrev = NULL; /* ?????? */ + pActTop->pNext = pActBtm; /* ???????? */ + pActTop->func = NULL; /* ????? */ + pActTop->prio = PRIO_TOP; /* ???? */ + pActTop->bmpNo = -1; /* ??????? */ - pActBtm->pPrev = pActTop; /* q?????Id */ - pActBtm->pNext = NULL; /* ??????? */ - pActBtm->func = NULL; /* ????? */ - pActBtm->prio = PRIO_BTM; /* ?I???^ */ - pActBtm->bmpNo = -1; /* ???k???? */ + pActBtm->pPrev = pActTop; /* ????? */ + pActBtm->pNext = NULL; /* ??????? */ + pActBtm->func = NULL; /* ????? */ + pActBtm->prio = PRIO_BTM; /* ???? */ + pActBtm->bmpNo = -1; /* ??????? */ } -/* ?????????K? *****************************************************/ +/* ?????????? *****************************************************/ ACTION *GetAction( UCHAR prio, UINT yobiSize ) { ACTION *pAct; ACTION *pActLoop; - /* ??????Bl???? */ + /* ?????????? */ pAct = ( ACTION * )CALLOC( 1, sizeof( ACTION ) ); #ifdef _STONDEBUG_ g_iMallocCount++; #endif if( pAct == NULL ){ - MessageBoxNew( hWnd, "pActΪ", "GetAction Erorr", MB_OK ); + MessageBoxNew( hWnd, "pAct为空", "GetAction Erorr", MB_OK ); return NULL; } memset(pAct,0,sizeof(ACTION)); if( yobiSize > 0 ){ - /* ??Bl???? */ + /* ?????? */ pAct->pYobi = CALLOC( 1, yobiSize ); #ifdef _STONDEBUG_ g_iMallocCount++; #endif - // ??? + // ??? if( pAct->pYobi == NULL ){ - /* ??????Bl?????? */ + /* ???????????? */ FREE( pAct ); #ifdef _STONDEBUG_ g_iMallocCount--; #endif - MessageBoxNew( hWnd, "YobiΪ", "GetYobi Erorr", MB_OK ); + MessageBoxNew( hWnd, "Yobi为空", "GetYobi Erorr", MB_OK ); return NULL; } memset(pAct->pYobi,0,yobiSize); } /* ??? */ - pAct->func = NULL; /* ????? */ - pAct->prio = prio; /* ?I?? */ - pAct->bmpNo = -1; /* ???k???? */ - pAct->hitDispNo = -2; /* ??????????Rek???? */ - /* ?I???? */ + pAct->func = NULL; /* ????? */ + pAct->prio = prio; /* ??? */ + pAct->bmpNo = -1; /* ??????? */ + pAct->hitDispNo = -2; /* ?????????????? */ + /* ????? */ for( pActLoop = pActTop->pNext ; pActLoop != pActBtm->pNext ; pActLoop = pActLoop->pNext ){ - /* ?IT?^?? */ + /* ???? */ if( pActLoop->prio > prio ){ - /* ???D? */ - /* q????????? */ - pAct->pPrev = pActLoop->pPrev; /* q???? */ + /* ???? */ + /* ????????? */ + pAct->pPrev = pActLoop->pPrev; /* ???? */ pAct->pNext = pActLoop; /* ????? */ - /* q????? */ - pActLoop->pPrev->pNext = pAct; /* q???? */ + /* ????? */ + pActLoop->pPrev->pNext = pAct; /* ???? */ pActLoop->pPrev = pAct; /* ????? */ #ifdef _STONDEBUG_ /* ?????????? */ @@ -96,31 +96,31 @@ ACTION *GetAction( UCHAR prio, UINT yobiSize ) } /* ????????? *********************************************************/ -// ִеĶdeathFlag趨ΪTRUEʱɴ˶ͷ +// 执行所有的动作,当deathFlag设定为TRUE时,会造成此动作的释放 void RunAction( void ) { - ACTION *pActLoop = pActTop->pNext; /* Id????????x */ - ACTION *pActLoopBak; /* ????????? */ + ACTION *pActLoop = pActTop->pNext; /* ???????? */ + ACTION *pActLoopBak; /* ????????? */ // ????? while(1){ - /* ?????????? */ + /* ?????????? */ if( pActLoop == pActBtm ) break; - /* ????? */ + /* ????? */ if( pActLoop->deathFlag == FALSE ){ - /* ?????????? */ + /* ?????????? */ if( pActLoop->func != NULL ){ pActLoop->func( pActLoop ); } /* ?????????? */ pActLoop = pActLoop->pNext; }else{ /* ?????? */ - /* q????? */ + /* ????? */ pActLoop->pPrev->pNext = pActLoop->pNext; pActLoop->pNext->pPrev = pActLoop->pPrev; /* ?????? */ pActLoopBak = pActLoop->pNext; - /* ?????? */ + /* ?????? */ ClearAction( pActLoop ); /* ???????? */ pActLoop = pActLoopBak; @@ -130,7 +130,7 @@ void RunAction( void ) extern ACTION *ptActMenuWin; extern short helpBtn; extern short actBtn; -/* ???????????? ***********************************************/ +/* ???????????? ***********************************************/ void DeathAction( ACTION *pAct ) { if(pAct==NULL) return; @@ -154,19 +154,19 @@ void DeathAction1( ACTION *pAct ) -/* ???????????u? ***********************************************/ +/* ???????????? ***********************************************/ void ClearAction( ACTION *pAct ) { - // ??Bl????? + // ??????? if( pAct->pYobi != NULL ){ - // ??Bl?? + // ???? FREE( pAct->pYobi ); pAct->pYobi=0; #ifdef _STONDEBUG_ g_iMallocCount--; #endif } - // ??????Bl?? + // ???????? FREE( pAct ); pAct = NULL; #ifdef _STONDEBUG_ @@ -180,7 +180,7 @@ void ClearAction( ACTION *pAct ) } #include -/* u?????? ***********************************************************/ +/* ?????? ***********************************************************/ void DeathAllAction( void ) { #ifdef __NEW_CLIENT @@ -206,23 +206,23 @@ void DeathAllAction( void ) } #endif ACTION *pActLoop = pActTop->pNext; - /* ???????? */ + /* ???????? */ while( pActLoop != pActBtm ){ - /* ??????? */ + /* ??????? */ pActLoop->deathFlag = TRUE; /* ??????? */ pActLoop = pActLoop->pNext; } } -/* ???????? *********************************************************/ +/* ???????? *********************************************************/ void EndAction( void ) { - // u?????? + // ?????? DeathAllAction(); - //???????????u?? + //????????????? RunAction(); - /* ??????????? */ + /* ??????????? */ FREE( pActTop ); FREE( pActBtm ); #ifdef _STONDEBUG_ diff --git a/石器时代8.5客户端最新源代码/石器源码/system/ai_setting.cpp b/石器时代8.5客户端最新源代码/石器源码/system/ai_setting.cpp index 701fa1b..de75026 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/ai_setting.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/ai_setting.cpp @@ -1,4 +1,4 @@ - + #include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/pc.h" @@ -12,18 +12,18 @@ #include"../systeminc/login.h" #define AI_FILE_NAME "data\\AISetting.dat" -#define TARGET_MYSELF 1 //Լ -#define TARGET_MYPET 2 // -#define TARGET_MYSIDE 3 //ҷ -#define TARGET_OTHERONE 4 //һ -#define TARGET_OTHERSIDE 5 //Է -#define TARGET_ALL 6 //ȫ +#define TARGET_MYSELF 1 //自己 +#define TARGET_MYPET 2 //宠物 +#define TARGET_MYSIDE 3 //我方 +#define TARGET_OTHERONE 4 //另一边 +#define TARGET_OTHERSIDE 5 //对方 +#define TARGET_ALL 6 //全体 -#define TARGET_1 7 //Ŀһ +#define TARGET_1 7 //目标一 #define TARGET_2 8 #define TARGET_3 9 #define TARGET_4 10 -#define TARGET_5 11 //Ŀ +#define TARGET_5 11 //目标五 #define TARGET_ONE_ROW 12 @@ -199,7 +199,7 @@ BOOL AI_Load( char *user) } fclose( fp ); #ifdef _AI_NEW_FIRST - // ûְҵ + // 没有职业 if(pc.profession_class == 0) bFirstFlag = false; #endif return ret; @@ -288,39 +288,39 @@ int AI_CheckSkillSetting(int methodkind,int method,int UpDown) switch(profession_skill[method].skillId){ - case 1://ɽȪ е˹̬ - case 2:// ж˹̬ - case 3://ĩ ж˹̬ - case 4:// ж˹̬ - case 5:// е˹̬ - case 6:// е˹̬ - case 7:// ж˹̬ - case 8:// ж˹̬ - case 9:// ж˹̬ - case 10://Ѫ е˹̬ - case 12:// е˹̬ - case 13://ǹ ж˹̬ - case 14:// е˹̬ - case 22:// е˹̬ - case 23:// е˹̬ - case 24://˫ع е˹̬ - case 38://ܻ е˹̬ - case 39://ᴩ е˹̬ - case 40:// е˹̬ - case 41:// ж˹̬ - case 42://ҹ ж˹̬ - case 46:// е˹̬ - case 48://޵ е˹̬ - case 49://ʬӶ е˹̬ - case 50:// е˹̬ - case 51://㹥 е˹̬ - case 54://﹥ е˹̬ - case 72://Ƴ ҵ + case 1://火山泉 敌单人攻击型态 + case 2://针针相对 敌多人攻击型态 + case 3://世界末日 敌多人攻击型态 + case 4://冰爆术 敌多人攻击型态 + case 5://附身术 敌单人攻击型态 + case 6://召雷术 敌单人攻击型态 + case 7://暴风雨 敌多人攻击型态 + case 8://电流术 敌多人攻击型态 + case 9://火星球 敌多人攻击型态 + case 10://嗜血蛊 敌单人攻击型态 + case 12://冰箭术 敌单人攻击型态 + case 13://火龙枪 敌多人攻击型态 + case 14://冰镜术 敌单人攻击型态 + case 22://爆击 敌单人攻击型态 + case 23://连环攻击 敌单人攻击型态 + case 24://双重攻击 敌单人攻击型态 + case 38://盾击 敌单人攻击型态 + case 39://贯穿攻击 敌单人攻击型态 + case 40://濒死攻击 敌单人攻击型态 + case 41://回旋攻击 敌多人攻击型态 + case 42://混乱攻击 敌多人攻击型态 + case 46://树根缠绕 敌单人攻击型态 + case 48://天罗地网 敌单人攻击型态 + case 49://尸体掠夺 敌单人攻击型态 + case 50://毒素武器 敌单人攻击型态 + case 51://弱点攻击 敌单人攻击型态 + case 54://座骑攻击 敌单人攻击型态 + case 72://破除结界 敌我单体 if(AI_target[methodkind] != TARGET_OTHERONE) AI_target[methodkind] = TARGET_OTHERONE; break; - case 15:// һʹ - case 16://׸ һʹ - case 17:// һʹ + case 15://火附体 我一方使用 + case 16://雷附体 我一方使用 + case 17://冰附体 我一方使用 // down if(UpDown){ if(AI_target[methodkind] == TARGET_MYPET || AI_target[methodkind] == TARGET_MYSIDE) AI_target[methodkind] = TARGET_OTHERONE; @@ -334,41 +334,41 @@ int AI_CheckSkillSetting(int methodkind,int method,int UpDown) if(AI_target[methodkind] == TARGET_ONE_ROW) AI_target[methodkind] = TARGET_5; } break; - case 21://λλ ʹ - case 35:// ʹ - case 36://ۼ ʹ - case 37://רעս ʹ - case 47:// ʹ - case 53:// ʹ - case 59://翹 ʹ - case 60:// ʹ - case 61:// ʹ - case 66://Ȼ ʹ + case 21://移形换位 本体使用 + case 35://激化攻击 本体使用 + case 36://能量聚集 本体使用 + case 37://专注战斗 本体使用 + case 47://陷阱 本体使用 + case 53://格档 本体使用 + case 59://电抗 本体使用 + case 60://火抗 本体使用 + case 61://冰抗 本体使用 + case 66://自然威能 本体使用 if(AI_target[methodkind] != TARGET_MYSELF) AI_target[methodkind] = TARGET_MYSELF; break; - case 34://Ϊ һʹ + case 34://舍已为友 我一方使用 #ifdef _AI_SKILL_UPDATE - case 76://ѹǶϽ - AI_target[methodkind] = TARGET_OTHERONE; //˳ з + case 76://裂骨断筋 + AI_target[methodkind] = TARGET_OTHERONE; //顺序 敌方 break; - case 77://սŭ - AI_target[methodkind] = TARGET_OTHERONE; //˳ з + case 77://战狼怒吼 + AI_target[methodkind] = TARGET_OTHERONE; //顺序 敌方 break; - case 79://ħӡ - AI_target[methodkind] = TARGET_OTHERONE; //˳ з + case 79://魔力咒印 + AI_target[methodkind] = TARGET_OTHERONE; //顺序 敌方 break; - case 80://ħ - AI_target[methodkind] = TARGET_OTHERONE; //˳ з + case 80://恶魔诅咒 + AI_target[methodkind] = TARGET_OTHERONE; //顺序 敌方 break; - case 82://ر - AI_target[methodkind] = TARGET_ONE_ROW; //˳ һ + case 82://多重冰箭 + AI_target[methodkind] = TARGET_ONE_ROW; //顺序 敌一排 break; - case 83://֮ - AI_target[methodkind] = TARGET_OTHERONE; //˳ з + case 83://毒素之网 + AI_target[methodkind] = TARGET_OTHERONE; //顺序 敌方 break; - case 85://ս + case 85://战场急救 //if (methodkind != 4) return 0; // down if(UpDown){ @@ -383,47 +383,47 @@ int AI_CheckSkillSetting(int methodkind,int method,int UpDown) if(AI_target[methodkind] == TARGET_ONE_ROW) AI_target[methodkind] = TARGET_5; } break; - case 75://ķ + case 75://四方防御 if (methodkind != 2) return 0; - AI_target[methodkind] = TARGET_MYSELF; //˳ Լ + AI_target[methodkind] = TARGET_MYSELF; //顺序 自己 break; - case 67://Ȼ ҷȫ + case 67://号召自然 我方全体 //if (methodkind != 4) return 0; - AI_target[methodkind] = TARGET_MYSIDE; //˳ ҷ + AI_target[methodkind] = TARGET_MYSIDE; //顺序 我方 break; #endif - case 68://ؽ ҷȫ - case 69://ˮ ҷȫ - case 70:// ҷȫ - case 71:// ҷȫ + case 68://地结界 我方全体 + case 69://水结界 我方全体 + case 70://火结界 我方全体 + case 71://风结界 我方全体 if(AI_target[methodkind] != TARGET_MYSIDE) AI_target[methodkind] = TARGET_MYSIDE; break; - case 52:// е˹̬(޳) - case 56://ѱ һʹ - case 62:// е˹̬(޳) + case 52://挑拨 敌单人攻击型态(限宠物) + case 56://驯服宠物 我一方使用 + case 62://遗忘 敌单人攻击型态(限宠物) if(AI_target[methodkind] != TARGET_OTHERONE) AI_target[methodkind] = TARGET_OTHERONE; break; - case 57://ŭ һʹ + case 57://激怒宠物 我一方使用 if(AI_target[methodkind] != TARGET_MYPET) AI_target[methodkind] = TARGET_MYPET; break; - case 11://Ѫ - case 18:// ޷ʹ - case 19:// ޷ʹ - case 20:// ޷ʹ - case 25://ر ޷ʹ - case 26://ͨǹ ޷ʹ - case 27://ͨ ޷ʹ - case 28://ͨ ޷ʹ - case 33://״̬ظ ޷ʹ - case 43:// ޷ʹ - case 44://׷Ѱ սʹ - case 45://رս սʹ - case 55://ӹ ? - case 58://Ը ? - case 29://ͨ ޷ʹ - case 30://ͨ ޷ʹ - case 31://ͨͶʯ ޷ʹ - case 32://ͨͶ ޷ʹ + case 11://嗜血成性 本体吸收 + case 18://火熟练度 无法使用 + case 19://雷熟练度 无法使用 + case 20://冰熟练度 无法使用 + case 25://回避 无法使用 + case 26://精通枪 无法使用 + case 27://精通斧 无法使用 + case 28://精通棍 无法使用 + case 33://状态回复 无法使用 + case 43://二刀流 无法使用 + case 44://追寻敌踪 非战斗使用 + case 45://回避战斗 非战斗使用 + case 55://加工 ? + case 58://自给自足 ? + case 29://精通弓 无法使用 + case 30://精通回力镖 无法使用 + case 31://精通投掷石 无法使用 + case 32://精通投掷斧 无法使用 default: ret = 0; break; @@ -450,7 +450,7 @@ void AI_CheckSetting() AI_limit[i] = 30; } #ifdef _ATTACK_AI - // ȷϵ Ѫ Ǹλ + // 确认玩家身上的 嗜血成性 在那个位置 i = 0; g_iPSindex = -1; g_bUsePS = false; @@ -466,38 +466,38 @@ void AI_CheckSetting() if(AI_OtherSetting[0] < 0) AI_OtherSetting[0] = 0; #endif method = AI_method[0]; - if( method=0){//ʹþ - if( magic[method].useFlag && (str=strstr( magic[method].memo, ";")) && strstr( str, "ظ")){//ʹ;ظ + if( method=0){//使用精灵 + if( magic[method].useFlag && (str=strstr( magic[method].memo, "耐久力")) && strstr( str, "回复")){//使用耐久力回复精灵 switch( magic[method].target){ case MAGIC_TARGET_MYSELF: - AI_target[0] = TARGET_MYSELF; //Լ + AI_target[0] = TARGET_MYSELF; //自己 break; case MAGIC_TARGET_ALLMYSIDE: case MAGIC_TARGET_WHOLEOTHERSIDE: - AI_target[0] = TARGET_MYSIDE; //ҷȫ + AI_target[0] = TARGET_MYSIDE; //我方全体 break; case MAGIC_TARGET_OTHER: /* if( AI_target[0]!=TARGET_MYSELF && AI_target[0]!=TARGET_MYPET && - (TARGET_1>AI_target[0] || AI_target[0]>TARGET_5))//Ƿ - AI_target[0] = TARGET_MYSELF; //Լ + (TARGET_1>AI_target[0] || AI_target[0]>TARGET_5))//检查对象是否错误 + AI_target[0] = TARGET_MYSELF; //自己 */ break; default: -// case MAGIC_TARGET_ALLOTHERSIDE: //ʹ־ظ +// case MAGIC_TARGET_ALLOTHERSIDE: //不该使用这种精灵回复 // case MAGIC_TARGET_ALL: - AI_method[0] = MAX_MAGIC; //Ϊʹõ + AI_method[0] = MAX_MAGIC; //设为使用道具 AI_target[0] = TARGET_MYSELF; break; } - }else{//û;ظ + }else{//没有耐久力回复精灵 AI_method[0] = MAX_MAGIC; AI_target[0] = TARGET_MYSELF; } - }else{//ʹõ߲; + }else{//使用道具补耐久力 AI_method[0] = MAX_MAGIC; if( AI_target[0]!=TARGET_MYSELF && AI_target[0]!=TARGET_MYPET && - (TARGET_1>AI_target[0] || AI_target[0]>TARGET_5)){//ʹõߵ󲻶 + (TARGET_1>AI_target[0] || AI_target[0]>TARGET_5)){//使用道具但对象不对 AI_target[0] = TARGET_MYSELF; } } @@ -510,10 +510,10 @@ void AI_CheckSetting() method = AI_method[2]; #ifdef _AI_NEW_FIRST - // ״ξ:ʹþ + // 首次精灵:使用精灵 if(bFirstFlag == false){ #endif - if( method=0 && magic[method].useFlag){//ʹ״ξ + if( method=0 && magic[method].useFlag){//使用首次精灵 switch( magic[method].target){ case MAGIC_TARGET_MYSELF: if( AI_target[2] != TARGET_MYSELF) @@ -541,17 +541,17 @@ void AI_CheckSetting() AI_method[2] = -1; break; #ifdef __ATTACK_MAGIC - // оijһ + // 敌军某一人 case MAGIC_TARGET_SINGLE: if( AI_target[2] != TARGET_OTHERONE) AI_method[2] = -1; break; - // оһ + // 敌军一整排 case MAGIC_TARGET_ONE_ROW: if( AI_target[2]!=TARGET_ONE_ROW) AI_method[2] = -1; break; - // оȫ + // 敌军全体 case MAGIC_TARGET_ALL_ROWS: if( AI_target[2] != TARGET_OTHERSIDE) AI_method[2] = -1; @@ -561,24 +561,24 @@ void AI_CheckSetting() AI_method[2] = -1; break; } - }else{//û + }else{//没有这个精灵 AI_method[2] = -1; } #ifdef _AI_NEW_FIRST } - // ״ξ:ʹü + // 首次精灵:使用技能 else{ - if(pc.profession_class != 0 && // ְҵ + if(pc.profession_class != 0 && // 有职业 (method < MAX_PROFESSION_SKILL && method >= 0) && AI_CheckSkillSetting(2,method,0) == 0) AI_method[2] = -1; } #endif method = AI_method[3]; - if( method=0){//ʹþ - if( !magic[method].useFlag || !(str=strstr( magic[method].memo, "״̬")) || !strstr( str, "ظ")){//û״̬ظ + if( method=0){//使用精灵 + if( !magic[method].useFlag || !(str=strstr( magic[method].memo, "气绝状态")) || !strstr( str, "回复")){//没有气绝状态回复精灵 AI_method[3] = MAX_MAGIC; } - }else{//ʹõ߻ظ״̬ + }else{//使用道具回复气绝状态 AI_method[3] = MAX_MAGIC; } if( AI_target[3]!=TARGET_MYSIDE && AI_target[3]!=TARGET_MYPET && (TARGET_1>AI_target[3] || AI_target[3]>TARGET_5)) @@ -586,14 +586,14 @@ void AI_CheckSetting() #ifdef _ATTACK_AI method = AI_method[4]; - if(pc.profession_class != 0 && // ְҵ - (method < MAX_PROFESSION_SKILL && method >= 0)){// ʹְҵ + if(pc.profession_class != 0 && // 有职业 + (method < MAX_PROFESSION_SKILL && method >= 0)){// 使用职业技能 if(AI_CheckSkillSetting(4,method,0) == 0){ AI_method[4] = MAX_PROFESSION_SKILL; AI_target[4] = TARGET_OTHERONE; } } - else{// ͨ + else{// 普通攻击 AI_method[4] = MAX_PROFESSION_SKILL; AI_target[4] = TARGET_OTHERONE; } @@ -642,18 +642,18 @@ void AI_SetUpTarget( int which) switch( magic[method].target) { case MAGIC_TARGET_MYSELF: - AI_target[which] = TARGET_MYSELF; //Լ + AI_target[which] = TARGET_MYSELF; //自己 break; case MAGIC_TARGET_ALLMYSIDE: - AI_target[which] = TARGET_MYSIDE; //ҷȫ + AI_target[which] = TARGET_MYSIDE; //我方全体 break; case MAGIC_TARGET_WHOLEOTHERSIDE: if( which !=0) { if( AI_target[which] == TARGET_MYSIDE) - AI_target[which] = TARGET_OTHERSIDE; //зȫ + AI_target[which] = TARGET_OTHERSIDE; //敌方全体 else - AI_target[which] = TARGET_MYSIDE; //ҷȫ + AI_target[which] = TARGET_MYSIDE; //我方全体 } break; case MAGIC_TARGET_OTHER: @@ -682,21 +682,21 @@ void AI_SetUpTarget( int which) } break; case MAGIC_TARGET_ALLOTHERSIDE: - AI_target[which] = TARGET_OTHERSIDE; //зȫ + AI_target[which] = TARGET_OTHERSIDE; //敌方全体 break; case MAGIC_TARGET_ALL: - AI_target[which] = TARGET_ALL; //ȫ + AI_target[which] = TARGET_ALL; //全体 break; #ifdef __ATTACK_MAGIC - // оijһ + // 敌军某一人 case MAGIC_TARGET_SINGLE: AI_target[which] = TARGET_OTHERONE; break; - // оһ + // 敌军一整排 case MAGIC_TARGET_ONE_ROW: AI_target[which] = TARGET_ONE_ROW; break; - // оȫ + // 敌军全体 case MAGIC_TARGET_ALL_ROWS: AI_target[which] = TARGET_OTHERSIDE; break; @@ -732,27 +732,27 @@ void AI_SetDownTarget( int which) } /* if( AI_target[which] == TARGET_MYSELF){ if( which == 2) - AI_target[which] = TARGET_OTHERONE; //з + AI_target[which] = TARGET_OTHERONE; //敌方 else - AI_target[which] = TARGET_MYPET; // + AI_target[which] = TARGET_MYPET; //宠物 }else if( AI_target[which] == TARGET_OTHERONE) - AI_target[which] = TARGET_MYPET; // + AI_target[which] = TARGET_MYPET; //宠物 else// if( AI_target[which] == TARGET_MYPET) - AI_target[which] = TARGET_MYSELF; //Լ*/ + AI_target[which] = TARGET_MYSELF; //自己*/ }else if( method >= 0){ switch( magic[method].target){ case MAGIC_TARGET_MYSELF: - AI_target[which] = TARGET_MYSELF; //Լ + AI_target[which] = TARGET_MYSELF; //自己 break; case MAGIC_TARGET_ALLMYSIDE: - AI_target[which] = TARGET_MYSIDE; //ҷȫ + AI_target[which] = TARGET_MYSIDE; //我方全体 break; case MAGIC_TARGET_WHOLEOTHERSIDE: if( which != 0){ if( AI_target[which] == TARGET_MYSIDE) - AI_target[which] = TARGET_OTHERSIDE; //зȫ + AI_target[which] = TARGET_OTHERSIDE; //敌方全体 else - AI_target[which] = TARGET_MYSIDE; //ҷȫ + AI_target[which] = TARGET_MYSIDE; //我方全体 } break; case MAGIC_TARGET_OTHER: @@ -775,30 +775,30 @@ void AI_SetDownTarget( int which) } /* if( AI_target[which] == TARGET_MYSELF){ if( which == 2) - AI_target[which] = TARGET_OTHERONE; //з + AI_target[which] = TARGET_OTHERONE; //敌方 else - AI_target[which] = TARGET_MYPET; // + AI_target[which] = TARGET_MYPET; //宠物 }else if( AI_target[which] == TARGET_OTHERONE) - AI_target[which] = TARGET_MYPET; // + AI_target[which] = TARGET_MYPET; //宠物 else// if( AI_target[which] == TARGET_MYPET) - AI_target[which] = TARGET_MYSELF; //Լ*/ + AI_target[which] = TARGET_MYSELF; //自己*/ break; case MAGIC_TARGET_ALLOTHERSIDE: - AI_target[which] = TARGET_OTHERSIDE; //зȫ + AI_target[which] = TARGET_OTHERSIDE; //敌方全体 break; case MAGIC_TARGET_ALL: - AI_target[which] = TARGET_ALL; //ȫ + AI_target[which] = TARGET_ALL; //全体 break; #ifdef __ATTACK_MAGIC - // оijһ + // 敌军某一人 case MAGIC_TARGET_SINGLE: AI_target[which] = TARGET_OTHERONE; break; - // оһ + // 敌军一整排 case MAGIC_TARGET_ONE_ROW: AI_target[which] = TARGET_ONE_ROW; break; - // оȫ + // 敌军全体 case MAGIC_TARGET_ALL_ROWS: AI_target[which] = TARGET_OTHERSIDE; break; @@ -812,34 +812,34 @@ void AI_SetDownTarget( int which) void AI_SetMethod( int target, int which) { switch( target){ - case MAGIC_TARGET_MYSELF: //Լ + case MAGIC_TARGET_MYSELF: //自己 AI_target[which] = TARGET_MYSELF; break; - case MAGIC_TARGET_ALLMYSIDE: //ҷȫ + case MAGIC_TARGET_ALLMYSIDE: //我方全体 AI_target[which] = TARGET_MYSIDE; break; - case MAGIC_TARGET_WHOLEOTHERSIDE: //κһȫ + case MAGIC_TARGET_WHOLEOTHERSIDE: //任何一方全体 AI_target[which] = TARGET_MYSIDE; break; - case MAGIC_TARGET_OTHER: //κһ + case MAGIC_TARGET_OTHER: //任何一体 AI_target[which] = TARGET_MYSELF; break; - case MAGIC_TARGET_ALLOTHERSIDE: //зһ + case MAGIC_TARGET_ALLOTHERSIDE: //敌方一体 AI_target[which] = TARGET_OTHERSIDE; break; - case MAGIC_TARGET_ALL: //ȫ + case MAGIC_TARGET_ALL: //全体 AI_target[which] = TARGET_ALL; break; #ifdef __ATTACK_MAGIC - // оijһ + // 敌军某一人 case MAGIC_TARGET_SINGLE: AI_target[which] = TARGET_OTHERONE; break; - // оһ + // 敌军一整排 case MAGIC_TARGET_ONE_ROW: AI_target[which] = TARGET_ONE_ROW; break; - // оȫ + // 敌军全体 case MAGIC_TARGET_ALL_ROWS: AI_target[which] = TARGET_OTHERSIDE; break; @@ -856,7 +856,7 @@ void AI_SetUpCureMethod( int which) AI_method[which] = MAX_MAGIC; AI_target[which] = TARGET_MYSELF; for( int i = method; i < MAX_MAGIC; i++){ - if( magic[i].useFlag && (str=strstr( magic[i].memo, ";")) && strstr( str, "ظ")){ + if( magic[i].useFlag && (str=strstr( magic[i].memo, "耐久力")) && strstr( str, "回复")){ AI_method[which] = i; AI_SetMethod( magic[i].target, which); break; @@ -864,7 +864,7 @@ void AI_SetUpCureMethod( int which) } /* if( i >= MAX_MAGIC){ for( i = 0; i < MAX_ITEM; i++){ - if( pc.item[i].useFlag && (str=strstr( pc.item[i].memo, ";")) && strstr( str, "ظ")){ + if( pc.item[i].useFlag && (str=strstr( pc.item[i].memo, "耐久力")) && strstr( str, "回复")){ AI_method[which] = MAX_MAGIC; AI_target[which] &= 1; break; @@ -882,7 +882,7 @@ void AI_SetDownCureMethod( int which) AI_method[which] = MAX_MAGIC; AI_target[which] = TARGET_MYSELF; for( int i = (method-1); i >= 0; i--){ - if( magic[i].useFlag && (str=strstr( magic[i].memo, ";")) && strstr( str, "ظ")){ + if( magic[i].useFlag && (str=strstr( magic[i].memo, "耐久力")) && strstr( str, "回复")){ AI_method[which] = i; AI_SetMethod( magic[i].target, which); break; @@ -890,7 +890,7 @@ void AI_SetDownCureMethod( int which) } /* if( i < 0){ for( i = 0; i < MAX_ITEM; i++){ - if( pc.item[i].useFlag && (str=strstr( pc.item[i].memo, ";")) && strstr( str, "ظ")){ + if( pc.item[i].useFlag && (str=strstr( pc.item[i].memo, "耐久力")) && strstr( str, "回复")){ AI_method[which] = MAX_MAGIC; AI_target[which] &= 1; break; @@ -913,24 +913,24 @@ void AI_SetUpFirstMethod( int which) } } #else - // ״þ + // 首次用精灵 if(bFirstFlag == false){ if(method > MAX_MAGIC){ - if(pc.profession_class != 0){ // ְҵ + if(pc.profession_class != 0){ // 有职业 AI_method[which] = -1; AI_SetDownAttackMethod(which); - // 趨Ϊü + // 设定为用技能 bFirstFlag = true; return; } else method = 0; } } - // ״ü + // 首次用技能 else{ if(method > MAX_PROFESSION_SKILL){ method = -1; - // 趨Ϊþ + // 设定为用精灵 bFirstFlag = false; } AI_SetDownAttackMethod(which); @@ -946,7 +946,7 @@ void AI_SetUpFirstMethod( int which) } if(AI_method[which] == -1 && pc.profession_class != 0){ AI_SetDownAttackMethod(which); - // 趨Ϊü + // 设定为用技能 bFirstFlag = true; } } @@ -968,20 +968,20 @@ void AI_SetDownFirstMethod( int which) } } #else - // ״þ + // 首次用精灵 if(bFirstFlag == false){ if(method < 0){ - if(pc.profession_class != 0){ // ְҵ + if(pc.profession_class != 0){ // 有职业 AI_method[which] = MAX_PROFESSION_SKILL; AI_SetUpAttackMethod(which); - // 趨Ϊü + // 设定为用技能 bFirstFlag = true; return; } else method = MAX_MAGIC; } } - // ״ü + // 首次用技能 else{ AI_SetUpAttackMethod(which); if(AI_method[which] == -1){ @@ -1011,7 +1011,7 @@ void AI_SetUpResurrectMethod( int which) AI_method[which] = MAX_MAGIC; AI_target[which] = TARGET_MYPET; for( int i = method; i < MAX_MAGIC; i++){ - if( magic[i].useFlag && (str=strstr( magic[i].memo, "״̬")) && strstr( str, "ظ")){ + if( magic[i].useFlag && (str=strstr( magic[i].memo, "气绝状态")) && strstr( str, "回复")){ AI_method[which] = i; break; } @@ -1027,7 +1027,7 @@ void AI_SetDownResurrectMethod( int which) AI_method[which] = MAX_MAGIC; AI_target[which] = TARGET_MYPET; for( int i = (method-1); i >= 0; i--){ - if( magic[i].useFlag && (str=strstr( magic[i].memo, "״̬")) && strstr( str, "ظ")){ + if( magic[i].useFlag && (str=strstr( magic[i].memo, "气绝状态")) && strstr( str, "回复")){ AI_method[which] = i; break; } @@ -1089,16 +1089,16 @@ void AI_SetDownAttackMethod(int which) #endif #define AIBtnNum 24 -//Զս趨 +//自动战斗设定 BOOL AI_SettingProc() { - static char Notice[][32] = { "趨", "ȡ趨", - "ѡظ", "ѡظ", "ѡ˳", "ѡ˳", ";ܶ", ";ܶ", - "趨ʹþMP", "趨ʹþMP", - "ѡ״ξ", "ѡ״ξ", "ѡʹĿ", "ѡʹĿ", - "ѡظʽ", "ѡظʽ", "ѡʹĿ", "ѡʹĿ" + static char Notice[][32] = { "储存设定", "取消设定", + "选择回复精灵", "选择回复精灵", "选择优先顺序", "选择优先顺序", "增加耐久力忍受度", "减少耐久力忍受度", + "建议设定高于使用精灵所需MP", "建议设定高于使用精灵所需MP", + "选择首次精灵", "选择首次精灵", "选择使用目标", "选择使用目标", + "选择气绝回复方式", "选择气绝回复方式", "选择使用目标", "选择使用目标" #ifdef _ATTACK_AI - ,"ѡ񹥻ʽ","ѡ񹥻ʽ","ѡʹĿ","ѡʹĿ","ѡظʽ","ѡظʽ" + ,"选择攻击方式","选择攻击方式","选择使用目标","选择使用目标","选择回复方式","选择回复方式" #endif }; static int x = 0, y = 0; @@ -1106,7 +1106,7 @@ BOOL AI_SettingProc() static int btnId[AIBtnNum], btnState[AIBtnNum]; static int u_offx[] = { 209-93, 296-93, 379-93}; static int d_offx[] = { 209-112, 296-112, 379-112}; - static char MethodName[] = "ʹ"; + static char MethodName[] = "不能使用"; char *str; //AI_menu_state if( pAISettingWnd == NULL){ @@ -1144,7 +1144,7 @@ BOOL AI_SettingProc() if( dwPressTime){ if( TimeGetTime()>(dwPressTime+100)){ dwPressTime = 0; - if( btnState[0] == 1){//"ȷ" + if( btnState[0] == 1){//按下"确定" btnState[0] = 0; DeathAction( pAISettingWnd ); pAISettingWnd = NULL; @@ -1158,7 +1158,7 @@ BOOL AI_SettingProc() play_se( 217, 320, 240 ); AI_Save(); return TRUE; - }else if( btnState[1] == 1){//"ȡ" + }else if( btnState[1] == 1){//按下"取消" btnState[1] = 0; DeathAction( pAISettingWnd ); pAISettingWnd = NULL; @@ -1171,63 +1171,63 @@ BOOL AI_SettingProc() #endif play_se( 203, 320, 240 ); return TRUE; - }else if( btnState[2] == 1){//²Ѫľһ + }else if( btnState[2] == 1){//按下补血的精灵上一个 btnState[2] = 0; play_se( 217, 320, 240 ); AI_SetUpCureMethod( 0); - }else if( btnState[3] == 1){//²Ѫľһ + }else if( btnState[3] == 1){//按下补血的精灵下一个 btnState[3] = 0; play_se( 217, 320, 240 ); AI_SetDownCureMethod( 0); - }else if( btnState[4] == 1){//²Ѫ˳һ + }else if( btnState[4] == 1){//按下补血的顺序上一个 btnState[4] = 0; play_se( 217, 320, 240 ); AI_SetUpTarget( 0); - }else if( btnState[5] == 1){//²Ѫ˳һ + }else if( btnState[5] == 1){//按下补血的顺序下一个 btnState[5] = 0; play_se( 217, 320, 240 ); AI_SetDownTarget( 0); - }else if( btnState[6] == 1){//²Ѫֵһ + }else if( btnState[6] == 1){//按下补血的数值上一个 btnState[6] = 0; play_se( 217, 320, 240 ); AI_SetUpLimit( 0); - }else if( btnState[7] == 1){//²Ѫֵһ + }else if( btnState[7] == 1){//按下补血的数值下一个 btnState[7] = 0; play_se( 217, 320, 240 ); AI_SetDownLimit( 0); - }else if( btnState[8] == 1){//²ֵһ + }else if( btnState[8] == 1){//按下补气的数值上一个 btnState[8] = 0; play_se( 217, 320, 240 ); AI_SetUpLimit( 1); - }else if( btnState[9] == 1){//²ֵһ + }else if( btnState[9] == 1){//按下补气的数值下一个 btnState[9] = 0; play_se( 217, 320, 240 ); AI_SetDownLimit( 1); - }else if( btnState[10] == 1){//״εľһ + }else if( btnState[10] == 1){//按下首次的精灵上一个 btnState[10] = 0; play_se( 217, 320, 240 ); AI_SetUpFirstMethod( 2); - }else if( btnState[11] == 1){//״εľһ + }else if( btnState[11] == 1){//按下首次的精灵下一个 btnState[11] = 0; play_se( 217, 320, 240 ); AI_SetDownFirstMethod( 2); - }else if( btnState[12] == 1){//״ε˳һ + }else if( btnState[12] == 1){//按下首次的顺序上一个 btnState[12] = 0; play_se( 217, 320, 240 ); AI_SetUpTarget( 2); - }else if( btnState[13] == 1){//״ε˳һ + }else if( btnState[13] == 1){//按下首次的顺序下一个 btnState[13] = 0; play_se( 217, 320, 240 ); AI_SetDownTarget( 2); - }else if( btnState[14] == 1){//¸ľһ + }else if( btnState[14] == 1){//按下复活的精灵上一个 btnState[14] = 0; play_se( 217, 320, 240 ); AI_SetUpResurrectMethod( 3); - }else if( btnState[15] == 1){//¸ľһ + }else if( btnState[15] == 1){//按下复活的精灵下一个 btnState[15] = 0; play_se( 217, 320, 240 ); AI_SetDownResurrectMethod( 3); - }else if( btnState[16] == 1){//¸˳һ + }else if( btnState[16] == 1){//按下复活的顺序上一个 btnState[16] = 0; play_se( 217, 320, 240 ); if( TARGET_1<=AI_target[3] && AI_target[3]<=TARGET_5){ @@ -1239,7 +1239,7 @@ BOOL AI_SettingProc() }else{ AI_target[3] = TARGET_MYPET; } - }else if( btnState[17] == 1){//¸˳һ + }else if( btnState[17] == 1){//按下复活的顺序下一个 btnState[17] = 0; play_se( 217, 320, 240 ); if( TARGET_1<=AI_target[3] && AI_target[3]<=TARGET_5){ @@ -1253,36 +1253,36 @@ BOOL AI_SettingProc() } } #ifdef _ATTACK_AI - else if(btnState[18] == 1){// ¹еľһ + else if(btnState[18] == 1){// 按下攻击功能列的精灵栏的上一个 btnState[18] = 0; play_se( 217, 320, 240 ); AI_SetUpAttackMethod(4); } - else if(btnState[19] == 1){// ¹еľһ + else if(btnState[19] == 1){// 按下攻击功能列的精灵栏的下一个 btnState[19] = 0; play_se( 217, 320, 240 ); AI_SetDownAttackMethod(4); } - else if(btnState[20] == 1){// ¹е˳һ + else if(btnState[20] == 1){// 按下攻击功能列的顺序栏的上一个 btnState[20] = 0; play_se( 217, 320, 240 ); AI_SetUpTarget(4); - }else if(btnState[21] == 1){// ¹е˳һ + }else if(btnState[21] == 1){// 按下攻击功能列的顺序栏的下一个 btnState[21] = 0; play_se( 217, 320, 240 ); AI_SetDownTarget(4); - }else if( btnState[22] == 1){//²ľһ + }else if( btnState[22] == 1){//按下补气的精灵上一个 btnState[22] = 0; play_se( 217, 320, 240 ); - // в + // 若有补气技能 if(g_bUsePS){ if(AI_method[1] == -1) AI_method[1] = g_iPSindex; else AI_method[1] = -1; } - }else if( btnState[23] == 1){//²ľһ + }else if( btnState[23] == 1){//按下补气的精灵下一个 btnState[23] = 0; play_se( 217, 320, 240 ); - // в + // 若有补气技能 if(g_bUsePS){ if(AI_method[1] == -1) AI_method[1] = g_iPSindex; else AI_method[1] = -1; @@ -1291,7 +1291,7 @@ BOOL AI_SettingProc() #endif } }else{ - //Ƿ°ť + //是否按下按钮 for( int i = 0; i < AIBtnNum; i++){ if( HitDispNo == btnId[i]){ if( mouse.onceState & MOUSE_LEFT_CRICK){ @@ -1302,12 +1302,12 @@ BOOL AI_SettingProc() } } #ifdef _AI_OTHER - // + //按下其它 if(MakeHitBox(x+317,y+168,x+386,y+193,DISP_PRIO_BOX2)) if(mouse.onceState & MOUSE_LEFT_CRICK) AI_Other_State = 1; #endif } - //˵ + //说明文字 for( int i = 0; i < AIBtnNum; i++){ if( HitDispNo == btnId[i]){ strcpy( OneLineInfoStr, Notice[i]); @@ -1345,7 +1345,7 @@ BOOL AI_SettingProc() btnId[23] = StockDispBuffer( x+d_offx[0], y+143+106, DISP_PRIO_IME3, 26066+btnState[23], 2); #endif #ifdef _AI_OTHER - StockFontBuffer(x + 322,y + 173,FONT_PRIO_FRONT,FONT_PAL_WHITE,"",0); + StockFontBuffer(x + 322,y + 173,FONT_PRIO_FRONT,FONT_PAL_WHITE,"其它功能",0); #endif char limit[8]; int dy = 102; @@ -1359,11 +1359,11 @@ BOOL AI_SettingProc() if(i == 4){ if(MAX_PROFESSION_SKILL > AI_method[i] && AI_method[i] >= 0) str = profession_skill[AI_method[i]].name; else if(AI_method[i] == MAX_PROFESSION_SKILL) - str = "ͨ"; + str = "普通攻击"; } else if(i == 1){ if(g_bUsePS && AI_method[1] != -1) str = profession_skill[g_iPSindex].name; - else str = "ʹõ"; + else str = "使用道具"; }else #endif #ifdef _AI_NEW_FIRST @@ -1378,56 +1378,56 @@ BOOL AI_SettingProc() if( MAX_MAGIC>AI_method[i] && AI_method[i]>=0) str = magic[AI_method[i]].name; else if( AI_method[i] == MAX_MAGIC) - str = "ʹõ"; + str = "使用道具"; } StockFontBuffer( x+85, y+dy, FONT_PRIO_FRONT, FONT_PAL_YELLOW, str, 0 ); limit[0] = 0; if( str != MethodName){ switch( AI_target[i]){ case TARGET_MYSELF: - str = "Լ"; + str = "自己"; break; case TARGET_MYPET: - str = ""; + str = "宠物"; break; case TARGET_MYSIDE: - str = "ҷȫ"; + str = "我方全体"; break; case TARGET_OTHERONE: - str = ""; + str = "敌人"; break; case TARGET_OTHERSIDE: - str = "ȫ"; + str = "敌人全体"; break; case TARGET_ALL: - str = "ȫ"; + str = "全体"; break; case TARGET_1: - str = "һ"; + str = "玩家一"; break; case TARGET_2: - str = "Ҷ"; + str = "玩家二"; break; case TARGET_3: - str = ""; + str = "玩家三"; break; case TARGET_4: - str = ""; + str = "玩家四"; break; case TARGET_5: - str = ""; + str = "玩家五"; break; #ifdef __ATTACK_MAGIC case TARGET_ONE_ROW: - str = "һ"; + str = "敌一排"; break; #endif default: - str = ""; + str = "错误请重设"; break; } _itoa_s( AI_limit[i], limit, 10); - strcat_s( limit, ""); + strcat_s( limit, "%"); } StockFontBuffer( x+236, y+dy, FONT_PRIO_FRONT, FONT_PAL_YELLOW, str, 0 ); if( i < 2) @@ -1588,7 +1588,7 @@ void AI_ChooseAction() int targetNo = -1; char moji[64]; battlePlayerEscFlag = FALSE; - //ս + //观战中 if( BattleMyNo >= 20 ){ if( bNewServer) lssproto_B_send( sockfd, "N" ); @@ -1608,7 +1608,7 @@ void AI_ChooseAction() old_lssproto_B_send( sockfd, "N" ); } }else{ - if( AI_First){//һ + if( AI_First){//第一次 AI_First = 0; int method = AI_method[2]; #ifdef _AI_NEW_FIRST @@ -1670,7 +1670,7 @@ void AI_ChooseAction() targetNo = GetFirstTarget( AI_target[2]); break; #ifdef __ATTACK_MAGIC - // 23: ϵһ , 24: ϵڶ , 25: µһ , 26: µڶ + // 23: 左上第一列 , 24: 左上第二列 , 25: 右下第一列 , 26: 右下第二列 case TARGET_ONE_ROW: targetNo = GetBattelTarget(); if( targetNo < 5) @@ -1688,12 +1688,12 @@ void AI_ChooseAction() break; } if( targetNo > -1){ - AI_Choosen = "ʹ״ξ"; + AI_Choosen = "使用首次精灵"; sprintf_s( moji, "J|%X|%X", method, targetNo); done = 1; } }else - StockChatBufferLine( "MP޷ʹ״εľ", FONT_PAL_WHITE); + StockChatBufferLine( "MP不足无法使用首次的精灵", FONT_PAL_WHITE); } #ifdef _AI_NEW_FIRST } @@ -1701,26 +1701,26 @@ void AI_ChooseAction() int ret; ret = AttackAIProc(2,moji); if(ret) done = 1; - else if(ret == 0) StockChatBufferLine("MP޷ʹ״εļ", FONT_PAL_WHITE); - else if(ret == -1) StockChatBufferLine("ܴŴ", FONT_PAL_WHITE); + else if(ret == 0) StockChatBufferLine("MP不足无法使用首次的技能", FONT_PAL_WHITE); + else if(ret == -1) StockChatBufferLine("技能代号错误", FONT_PAL_WHITE); } #endif } if( 0 == done){ int magic_id = -1, item_id = -1, target = -1, meat = -1; - //ҳǷ;ظĵ + //先找出是否有耐久力回复的道具 for( int i = 0; i < MAX_ITEM; i++){ - if( pc.item[i].useFlag && (str=strstr( pc.item[i].memo, ";")) && strstr( str, "ظ")){ + if( pc.item[i].useFlag && (str=strstr( pc.item[i].memo, "耐久力")) && strstr( str, "回复")){ item_id = i; - if( strstr( pc.item[i].name, "")){ + if( strstr( pc.item[i].name, "肉")){ meat = i; break; } } } - //ҳǷ;ظľmpǷ㹻 + //先找出是否有耐久力回复的精灵和mp是否足够 int method = AI_method[0]; - if( (method>-1 && method-1 && methodmp ) magic_id = method; @@ -1729,18 +1729,18 @@ void AI_ChooseAction() magic_id = method; } } - //Ҳ;Ŀ + //找补耐久力的目标 if( TARGET_1<=AI_target[0] && AI_target[0]<=TARGET_5){ target = GetCureTarget( AI_target[0]); } if( target == -1){ - if( AI_target[0] == TARGET_MYSELF){//ȲԼѪ + if( AI_target[0] == TARGET_MYSELF){//先补自己血 if( p_party[BattleMyNo]->maxHp*AI_limit[0]/100 > p_party[BattleMyNo]->hp){ target = BattleMyNo; }else if( p_party[BattleMyNo+5]->func && pet[pc.battlePetNo].hp>0 && pet[pc.battlePetNo].maxHp*AI_limit[0]/100>pet[pc.battlePetNo].hp){ target = BattleMyNo + 5; } - }else{// if( AI_target[0] == TARGET_MYPET){//ȲѪ + }else{// if( AI_target[0] == TARGET_MYPET){//先补宠物血 if( p_party[BattleMyNo+5]->func && pet[pc.battlePetNo].hp>0 && pet[pc.battlePetNo].maxHp*AI_limit[0]/100 > pet[pc.battlePetNo].hp){ target = BattleMyNo + 5; }else if( p_party[BattleMyNo]->maxHp*AI_limit[0]/100>p_party[BattleMyNo]->hp){ @@ -1750,12 +1750,12 @@ void AI_ChooseAction() } if( target > -1){ if( item_id>-1 || magic_id>-1){ - if( meat > -1){//ʹⲹ; + if( meat > -1){//使用肉补耐久力 done = 1; sprintf_s( moji,"I|%X|%X", meat, target); - AI_Choosen = "ʹظ;"; + AI_Choosen = "使用肉回复耐久力"; }else{ - if( MAX_MAGIC>AI_method[0] && AI_method[0]>=0){//ʹþ鲹; + if( MAX_MAGIC>AI_method[0] && AI_method[0]>=0){//使用精灵补耐久力 if( magic[AI_method[0]].target != MAGIC_TARGET_MYSELF || target==BattleMyNo){ if( magic_id > -1){ int method = AI_method[0]; @@ -1764,25 +1764,25 @@ void AI_ChooseAction() else target = BATTLKPKPLYAERNUM + 1; } done = 1; - AI_Choosen = "ʹ;ظ"; + AI_Choosen = "使用耐久力回复精灵"; sprintf_s( moji,"J|%X|%X", magic_id, target); }else{ - StockChatBufferLine( "޷ʹ;ظľ", FONT_PAL_WHITE); + StockChatBufferLine( "无法使用耐久力回复的精灵", FONT_PAL_WHITE); } } } - if( !done){//ʹõ߲; + if( !done){//使用道具补耐久力 if( item_id > -1){ done = 1; sprintf_s( moji,"I|%X|%X", item_id, target); - AI_Choosen = "ʹ;ظ"; + AI_Choosen = "使用耐久力回复道具"; }else{ - StockChatBufferLine( "û;ظĵ", FONT_PAL_WHITE); + StockChatBufferLine( "没有耐久力回复的道具", FONT_PAL_WHITE); } } } }else - StockChatBufferLine( "޷ظ;", FONT_PAL_WHITE); + StockChatBufferLine( "无法回复耐久力了", FONT_PAL_WHITE); } } if( 0==done){ @@ -1820,22 +1820,22 @@ void AI_ChooseAction() target = GetResurrectTarget( AI_target[3]); break; } - if( target > -1){// + if( target > -1){//宠物死了 if( MAX_MAGIC == AI_method[3]){ int i; for( i = 0; i < MAX_ITEM; i++){ - if( pc.item[i].useFlag && strstr( pc.item[i].memo, "ظ")){ - AI_Choosen = "ʹظ"; + if( pc.item[i].useFlag && strstr( pc.item[i].memo, "气绝回复")){ + AI_Choosen = "使用气绝回复道具"; done = 1; sprintf_s( moji,"I|%X|%X", i, target); break; } } if( i >= MAX_ITEM) - StockChatBufferLine( "ûظĵ", FONT_PAL_WHITE); + StockChatBufferLine( "没有气绝回复的道具", FONT_PAL_WHITE); }else{ int method = AI_method[3]; - if( method>-1 && magic[method].useFlag && (str=strstr( magic[method].memo, "״̬")) && strstr( str, "ظ")){ + if( method>-1 && magic[method].useFlag && (str=strstr( magic[method].memo, "气绝状态")) && strstr( str, "回复")){ if( pc.familySprite == 0){ if( (magic[method].mp*80/100) <= p_party[BattleMyNo]->mp ) done = 1; @@ -1844,21 +1844,21 @@ void AI_ChooseAction() done = 1; } if( done == 1){ - AI_Choosen = "ʹظ"; + AI_Choosen = "使用气绝回复精灵"; sprintf_s( moji,"J|%X|%X", method, target); } else - StockChatBufferLine( "MP޷ʹظľ", FONT_PAL_WHITE); + StockChatBufferLine( "MP不足无法使用气绝回复的精灵", FONT_PAL_WHITE); } else - StockChatBufferLine( "û趨ظľ", FONT_PAL_WHITE); + StockChatBufferLine( "没有设定气绝回复的精灵", FONT_PAL_WHITE); } } } #ifndef _ATTACK_AI - if( 0==done && (/*p_party[BattleMyNo]->maxMp*/100*AI_limit[1]/100 > p_party[BattleMyNo]->mp) ){// + if( 0==done && (/*p_party[BattleMyNo]->maxMp*/100*AI_limit[1]/100 > p_party[BattleMyNo]->mp) ){//补气 #else - if(0 == done && ((p_party[BattleMyNo]->maxMp * AI_limit[1] / 100) > p_party[BattleMyNo]->mp) ){// + if(0 == done && ((p_party[BattleMyNo]->maxMp * AI_limit[1] / 100) > p_party[BattleMyNo]->mp) ){//补气 if(g_bUsePS && AI_method[1] != -1){ sprintf_s( moji,"P|%X|%X",g_iPSindex,BattleMyNo); done = 1; @@ -1869,8 +1869,8 @@ void AI_ChooseAction() { int i; for( i = 0; i < MAX_ITEM; i++){ - if( pc.item[i].useFlag && (str=strstr( pc.item[i].memo, "")) && strstr( str, "ظ")){ - AI_Choosen = "ʹûظ"; + if( pc.item[i].useFlag && (str=strstr( pc.item[i].memo, "气")) && strstr( str, "回复")){ + AI_Choosen = "使用回复气力道具"; done = 1; sprintf_s( moji,"I|%X|%X", i, BattleMyNo); break; @@ -1884,7 +1884,7 @@ void AI_ChooseAction() MyChatBuffer.cnt = strlen(MyChatBuffer.buffer); KeyboardReturn(); #endif - StockChatBufferLine( "ûлظĵ", FONT_PAL_WHITE); + StockChatBufferLine( "没有回复气力的道具", FONT_PAL_WHITE); } */ } @@ -1892,14 +1892,14 @@ void AI_ChooseAction() if( 0 == done){ // if( BattleBpFlag & BATTLE_BP_BOOMERANG ){ // } - //ԼûѪ û + //如自己或宠物没有血 且 没有气 就逃跑 if( ( (p_party[BattleMyNo]->maxHp*AI_limit[0]/100 > p_party[BattleMyNo]->hp) || (p_party[BattleMyNo+5]->func && ( (pet[pc.battlePetNo].hp>0 && pet[pc.battlePetNo].maxHp*AI_limit[0]/100>pet[pc.battlePetNo].hp) || pet[pc.battlePetNo].hp<=0) ) ) ){ int mp_enough = FALSE; - if( 0<=AI_method[0] && AI_method[0] p_party[BattleMyNo]->mp ) mp_enough = FALSE; @@ -1908,7 +1908,7 @@ void AI_ChooseAction() mp_enough = FALSE; } } - if( mp_enough == FALSE){//û趨ʹòѪ MP + if( mp_enough == FALSE){//没有设定使用补血精灵 或 MP不足 battlePlayerEscFlag = TRUE; strcpy( moji, "E"); done = 1; @@ -1927,9 +1927,9 @@ void AI_ChooseAction() targetNo = GetBattelTarget(); if (p_party[targetNo]->level==1){ sprintf_s( moji, "T|%X", targetNo ); - AI_Choosen = "Զץ"; + AI_Choosen = "自动抓宠"; }else{ - AI_Choosen = "ץ"; + AI_Choosen = "抓宠逃跑"; battlePlayerEscFlag = TRUE; strcpy( moji, "E"); done = 1; @@ -1938,7 +1938,7 @@ void AI_ChooseAction() #endif targetNo = GetBattelTarget(); sprintf_s( moji, "H|%X", targetNo ); - AI_Choosen = "Զ"; + AI_Choosen = "自动攻击"; #ifdef _AI_CAPTURE } #endif @@ -2011,22 +2011,22 @@ void AI_ChooseAction() void AI_CloseWnd() { #ifdef _AIDENGLU_ - extern BOOL Զ½; - extern ACTION *pԶ½; - extern ACTION *; - extern ACTION *ﶯ; - Զ½=0; - if(pԶ½){ - DeathAction(pԶ½); - pԶ½=NULL; + extern BOOL 自动登陆窗口; + extern ACTION *p自动登陆窗口; + extern ACTION *方向动作; + extern ACTION *人物动作; + 自动登陆窗口=0; + if(p自动登陆窗口){ + DeathAction(p自动登陆窗口); + p自动登陆窗口=NULL; } - if((int)){ - if((int)>1000) - DeathAction(); - =NULL; - if((int)ﶯ>1000) - DeathAction(ﶯ); - ﶯ=NULL; + if((int)方向动作){ + if((int)方向动作>1000) + DeathAction(方向动作); + 方向动作=NULL; + if((int)人物动作>1000) + DeathAction(人物动作); + 人物动作=NULL; } #endif AI_State = 0; @@ -2053,14 +2053,14 @@ void AI_OtherProc(){ static int btnId[AI_OTHER_BTN]; int x,y,i; #ifdef _AI_CAPTURE - static char szFunctionName[AI_OTHER_BTN][30] = {"","Զ","Զץ"}; + static char szFunctionName[AI_OTHER_BTN][30] = {"","自动丢肉","自动抓宠"}; #else - static char szFunctionName[AI_OTHER_BTN][30] = {"","Զ"}; + static char szFunctionName[AI_OTHER_BTN][30] = {"","自动丢肉"}; #endif - static char szFunctionSwitch[2][12] = {" "," ٣ţ "}; + static char szFunctionSwitch[2][12] = {" N O "," YES "}; if(pAIOtherFunctionWnd == NULL){ - // ս + // 若在战斗中 pAIOtherFunctionWnd = MakeWindowDisp(413,lpDraw->ySize / 2 + 150,3,2,NULL,1, FALSE); //if(ProcNo == PROC_BATTLE) pAIOtherFunctionWnd = MakeWindowDisp(413,150,3,2,NULL,1, FALSE); //else pAIOtherFunctionWnd = MakeWindowDisp(413,0,3,2,NULL,1, FALSE); @@ -2086,7 +2086,7 @@ void AI_OtherProc(){ int id; id = selFontId(btnId,sizeof(btnId)/sizeof(int)); switch(id){ - // Զ + // 自动丢肉 case 1: AI_OtherSetting[0] = !AI_OtherSetting[0]; break; @@ -2094,7 +2094,7 @@ void AI_OtherProc(){ AI_OtherSetting[1] = !AI_OtherSetting[1]; break; } - // ر + // 关闭 if(HitDispNo == btnId[0]){ DeathAction(pAIOtherFunctionWnd); pAIOtherFunctionWnd = NULL; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/battlemap.cpp b/石器时代8.5客户端最新源代码/石器源码/system/battlemap.cpp index 78e2567..df75b9e 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/battlemap.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/battlemap.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* battleMap.c */ /************************/ #include "../systeminc/version.h" @@ -10,7 +10,7 @@ // ?????????? #define BATTLE_MAP_SIZE 400 -#ifdef _NEWDRAWBATTLEMAP // (ɿ) Syu ADD ԶBattleMap +#ifdef _NEWDRAWBATTLEMAP // (不可开放) Syu ADD 自动产生BattleMap #define RAND(x,y) ((x-1)+1+ (int)( (double)(y-(x-1))*rand()/(RAND_MAX+1.0)) ) int RandBattleBg = 0; #endif @@ -18,9 +18,9 @@ int RandBattleBg = 0; #ifdef __ATTACK_MAGIC // Global vars -extern int g_iRunEarthQuake; // ״: 0 --> û , 1 --> ʼ , 2 --> -extern int g_iCurRunEarthQuake; // Ŀǰλ -extern int g_iNumRunEarthQuake; // ܴ +extern int g_iRunEarthQuake; // 地震的状况: 0 --> 没地震 , 1 --> 初始化地震 , 2 --> 地震中 +extern int g_iCurRunEarthQuake; // 目前地震的位置线 +extern int g_iNumRunEarthQuake; // 地震的总次数 #endif @@ -28,27 +28,27 @@ extern int g_iNumRunEarthQuake; // extern BOOL g_bUseAlpha; #endif int MessageBoxNew(HWND hWnd,LPCSTR lpText,LPCSTR lpCaption,UINT uType); -// ?????????k? +// ?????????? int BattleMapNo = 0; -#ifdef _NEWDRAWBATTLEMAP_FIX // (ɿ)ROG ADD սͼ޸ -int BattleMapAdvance = 0; // սͼЧܸĽ +#ifdef _NEWDRAWBATTLEMAP_FIX // (不可开)ROG ADD 战斗地图修改 +int BattleMapAdvance = 0; // 战斗地图效能改进 #endif -// ?????? ???? +// ?????? ???? char *BattleMapFile[] = { #include "../systeminc/battleMapName.h" }; -// ?????????????????????? ***************************/ -// ˮرսͼ +// ?????????????????????? ***************************/ +// 水晶地表战斗地图编号 static int iCrystalBattleMap[4][3] = -{ // // // // +{ // 绿 // 蓝 // 红 // 黄 {29060,29061,29062},{29058,29059,29066},{29063,29064,29065},{29057,29067,29068} }; BOOL ReadBattleMap( int no ) { -#ifdef _NEWDRAWBATTLEMAP_FIX // (ɿ)ROG ADD սͼ޸ +#ifdef _NEWDRAWBATTLEMAP_FIX // (不可开)ROG ADD 战斗地图修改 extern void ddrawBattleMap(); ddrawBattleMap(); #else @@ -62,36 +62,36 @@ BOOL ReadBattleMap( int no ) // ???????? if( no >= BATTLE_MAP_FILES ) no = 0; - // ??????k??? + // ????????? BattleMapNo = no; // ?????????????? if( ( fp = fopen( BattleMapFile[ no ], "rb" ) ) == NULL ){ - sprintf_s( msg, "%sȡʧܡ", BattleMapFile[ no ] ); - MessageBoxNew( hWnd, msg, "սͼ", MB_OK | MB_ICONSTOP ); + sprintf_s( msg, "%s读取失败。", BattleMapFile[ no ] ); + MessageBoxNew( hWnd, msg, "战场地图错误", MB_OK | MB_ICONSTOP ); return FALSE; } - // ???????? + // ???????? fread( header, sizeof( char ), 4, fp ); header[ 4 ] = '\0'; // ???????? if( !( strstr( header, "SAB" )) ) - MessageBoxNew( hWnd, "SAB ", "սͼ", MB_OK | MB_ICONSTOP ); - // ?????? + MessageBoxNew( hWnd, "SAB 档案不存在", "战场地图错误", MB_OK | MB_ICONSTOP ); + // ?????? for( i = 0 ; i < 1089 ; i++ ){ - // ?????????? ????B????? ? + // ?????????? ????????? ? c1 = fgetc( fp ); c2 = fgetc( fp ); // ??????? tile[ i ] = ( c1 << 8 ) | c2; } - // ?????? + // ?????? fclose( fp ); - //ROG FIX սͼͼλַ + //ROG FIX 战斗地图绘图位址调整 //posX = 32 * ( -9 ) + (400 >> 1); //posY = 24 * 10 + (300 >> 1); posX = -416; posY=272; -#ifdef _NEWDRAWBATTLEMAP // Syu ADD ԶBattleMap +#ifdef _NEWDRAWBATTLEMAP // Syu ADD 自动产生BattleMap extern int nowFloor ; if(((nowFloor == 817) || (nowFloor == 8007) || (nowFloor == 8101) || (nowFloor == 8100) || @@ -111,7 +111,7 @@ BOOL ReadBattleMap( int no ) else if ( RandBattleBg == 4 ) RandBattleBg = 29025 ; RandBattleBg = RAND ( 29047 , 29049 ); - // ˮرսͼ + // 水晶地表战斗地图 if(nowFloor == 30022) RandBattleBg = iCrystalBattleMap[0][RAND(0,2)]; else if(nowFloor == 30023) RandBattleBg = iCrystalBattleMap[1][RAND(0,2)]; else if(nowFloor == 30024) RandBattleBg = iCrystalBattleMap[2][RAND(0,2)]; @@ -166,13 +166,13 @@ BOOL ReadBattleMap( int no ) // ddrawBattleMap(); #else - // ?????? + // ?????? for( i = 0 ; i < 20 ; i++ ){ x = 0; y = 0; for( j = 0 ; j < 20 ; j++ ){ - // ??????????? + // ??????????? StockDispBuffer( posX + x, posY + y, DISP_PRIO_TILE, tile[ cnt++ ], 0 ); x += 32; y -= 24; @@ -185,9 +185,9 @@ BOOL ReadBattleMap( int no ) return TRUE; } -// ??????? ***********************************************************/ -#ifdef _NEWDRAWBATTLEMAP_FIX // (ɿ)ROG ADD սͼ޸ -#define RASTER_CLEARANCE 24 //Ч +// ??????? ***********************************************************/ +#ifdef _NEWDRAWBATTLEMAP_FIX // (不可开)ROG ADD 战斗地图修改 +#define RASTER_CLEARANCE 24 //增加效能 #else #define RASTER_CLEARANCE 8 #endif @@ -212,9 +212,9 @@ void DrawBattleMap( void ) short bx , by; #ifdef __ATTACK_MAGIC - // ͼŻ + // 特殊地图编号或地震中 -#ifdef _NEWDRAWBATTLEMAP // Syu ADD ԶBattleMap +#ifdef _NEWDRAWBATTLEMAP // Syu ADD 自动产生BattleMap extern int nowFloor; if( ( BattleMapNo >= 148 && BattleMapNo <= 150 ) || 2 == g_iRunEarthQuake || nowFloor == 817 || nowFloor == 8007 || nowFloor == 8101 || nowFloor == 8100 || @@ -235,7 +235,7 @@ void DrawBattleMap( void ) by = 0; short x0, y0; long w, h; - // ??????? + // ??????? x0 = bx; y0 = by; w = rect.right - rect.left; @@ -284,8 +284,8 @@ void DrawBattleMap( void ) #endif - rect.left = 0; //?Z - rect.right = 640 + DISPLACEMENT_X; //?Z + rect.left = 0; //? + rect.right = 640 + DISPLACEMENT_X; //? /* if(BattleMapAdvance < 10){ BattleMapAdvance ++; return; @@ -294,8 +294,8 @@ void DrawBattleMap( void ) BattleMapAdvance =0;*/ for(d7=0; d7 < 480 + DISPLACEMENT_Y; d7+=RASTER_CLEARANCE){ - rect.top = d7 + piyo_tbl[(d6+value) & 63] + 12; //ƣZ - rect.bottom = rect.top + RASTER_CLEARANCE; //?Z + rect.top = d7 + piyo_tbl[(d6+value) & 63] + 12; // + rect.bottom = rect.top + RASTER_CLEARANCE; //? #ifdef D3D_ENGINE @@ -317,17 +317,17 @@ void DrawBattleMap( void ) d6 = 0; for(d7=0; d7<480 + DISPLACEMENT_Y; d7+=RASTER_CLEARANCE/2){ - rect.top = d7; //ƣZ - rect.bottom = rect.top + RASTER_CLEARANCE; //?Z + rect.top = d7; // + rect.bottom = rect.top + RASTER_CLEARANCE; //? - d0 = piyo_tbl[(d6+piyo_point) & 63] / 2; //?Z + d0 = piyo_tbl[(d6+piyo_point) & 63] / 2; //? if(d0 < 0){ //?????? rect.left = 0 - d0; - rect.right = 640 + DISPLACEMENT_X+ d0; //?Z + rect.right = 640 + DISPLACEMENT_X+ d0; //? d0 = 0; } else { rect.left = 0; - rect.right = 640 + DISPLACEMENT_X- d0; //?Z + rect.right = 640 + DISPLACEMENT_X- d0; //? } #ifdef D3D_ENGINE destrect.left = d0; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/battlemenu.cpp b/石器时代8.5客户端最新源代码/石器源码/system/battlemenu.cpp index 45c7c00..254da4c 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/battlemenu.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/battlemenu.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* battleMenu.cpp */ /************************/ #include "../systeminc/version.h" @@ -17,14 +17,14 @@ #include "../systeminc/field.h" #include "../systeminc/character.h" -// ??? +// ??? enum{ BATTLE_ATTACK, BATTLE_JUJUTU, BATTLE_CAPTURE, BATTLE_ITEM, BATTLE_WAZA, -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 BATTLE_PROWAZA, #endif }; @@ -33,7 +33,7 @@ enum{ #define BATTLE_MENU ( 1 << 0 ) #define BATTLE_MENU_PET ( 1 << 1 ) -// ?????? +// ?????? #define BATTLE_MENU_SUU 9 #define BATTLE_MENU_FONTS 9 #define BATTLE_MENU_JUJUTSU_FONTS 6 @@ -42,35 +42,35 @@ enum{ #define BATTLE_MENU_WAZA_FONTS 9 // ???????? -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 #define BATTLE_BUTTON_SUU 10 #else #define BATTLE_BUTTON_SUU 9 #endif #ifndef PK_SYSTEM_TIMER_BY_ZHU -#define BATTLE_CNT_DOWN_TIME _BATTLE_TIME_ //ÿսʱ +#define BATTLE_CNT_DOWN_TIME _BATTLE_TIME_ //每局战斗时间 #endif char BattleCmd[ BATTLE_COMMAND_SIZE ]; // ????????????? char BattleCmdBak[ BATTLE_BUF_SIZE ][ BATTLE_COMMAND_SIZE ]; -// ?????????????? +// ?????????????? int BattleCmdReadPointer; int BattleCmdWritePointer; -// ???֢t?? +// ????? char BattleStatus[ BATTLE_COMMAND_SIZE ]; -// ???֢t???????? +// ??????????? char BattleStatusBak[ BATTLE_BUF_SIZE ][ BATTLE_COMMAND_SIZE ]; -// ???֢t??????? +// ?????????? int BattleStatusReadPointer; int BattleStatusWritePointer; -// ??k? +// ??? int BattleMyNo = 0; -// Pf????? +// ????? int BattleMyMp; -// Pf????? +// ????? int BattleEscFlag = FALSE; // ???????????? @@ -78,39 +78,39 @@ int BattlePetStMenCnt; // ????? int BattleBpFlag = FALSE; -// ????k? +// ????? int BattleCmdNo = -1; -// ӧk? +// ? int BattleJujutuNo; -// ?k? +// ?? int BattleWazaNo; -// ӡP???k??????? +// ?????????? int battlePetNoBak = -2; -// ӡP???k???????? +// ??????????? int battlePetNoBak2 = -2; -// ????k? +// ????? int BattleItemNo; -// ?????`????? +// ?????????? int battlePlayerEscFlag = FALSE; -// ????V?????? +// ?????????? int BattleAnimFlag; -// ?????? +// ?????? BOOL BattleTurnReceiveFlag; #ifdef PK_SYSTEM_TIMER_BY_ZHU BOOL BattleCntDownRest; BOOL SendToServer; #endif int BattleCliTurnNo; -// ??????????k? +// ??????????? int BattleSvTurnNo; #ifdef _HUNDRED_KILL BOOL BattleHundredFlag = FALSE; #endif -// Pf?????????? +// ?????????? BOOL BattleResultWndFlag = FALSE; // ??????? @@ -128,25 +128,25 @@ static int battleMenuJujutsuFontNo[ BATTLE_MENU_JUJUTSU_FONTS ]; static int battleMenuItemFontNo[ BATTLE_MENU_ITEM_FONTS ]; static int battleMenuPetFontNo[ BATTLE_MENU_PET_FONTS ]; static int battleMenuWazaFontNo[ BATTLE_MENU_WAZA_FONTS ]; -int battleMenuFlag = FALSE; // ?????????????????? -static int battleMenuReturn = FALSE; // ???????????? -static int battlePetMenuFlag = FALSE; // ??????????? +int battleMenuFlag = FALSE; // ?????????????????? +static int battleMenuReturn = FALSE; // ???????????? +static int battlePetMenuFlag = FALSE; // ??????????? int battlePetButtonFlag = FALSE; // ?????????????? static int battleTimeUpFlag = FALSE; static int battleTargetSelectFlag = FALSE; -int battleMenuFlag2 = FALSE; // ????????v?? -int battleButtonBak = -1; // q??????? -static int battleButtonBak2 = -1; // q???????? -int battleWazaTargetBak = -1; // q???k? +int battleMenuFlag2 = FALSE; // ?????????? +int battleButtonBak = -1; // ??????? +static int battleButtonBak2 = -1; // ???????? +int battleWazaTargetBak = -1; // ???? // ?????????????? static ACTION *pActInfoWnd; static ACTION *pActWnd = NULL; -// ???????? +// ???????? static int buttonX, buttonY, buttonA; -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 int wonflag = 0 ; int prouseskill = -1 ; int SkillWnd2 = 0 ; @@ -164,7 +164,7 @@ void InitBattleMenu( void ) int i; // ??? for( i = 0 ; i < BATTLE_BUTTON_SUU ; i++ ) battleButtonDispNo[ i ] = -2; - // + //  for( i = 0 ; i < BATTLE_MENU_JUJUTSU_FONTS ; i++ ) battleMenuJujutsuFontNo[ i ] = -2; // ???? for( i = 0 ; i < BATTLE_MENU_ITEM_FONTS ; i++ ) battleMenuItemFontNo[ i ] = -2; @@ -175,12 +175,12 @@ void InitBattleMenu( void ) battleMenuFlag = FALSE; // ?????????? battleMenuReturn = TRUE; // ???????????? -// battleButtonBak = -1; // q??????? - battleButtonBak2 = -1; // q???????? - BattleEscFlag = FALSE; // Pf???????? - // Pf?????????? +// battleButtonBak = -1; // ??????? + battleButtonBak2 = -1; // ???????? + BattleEscFlag = FALSE; // ???????? + // ?????????? BattleResultWndFlag = FALSE; - // ??????u??? + // ????????? ClearBattleButton(); // ????????????? battleButtonBak = 0; @@ -193,7 +193,7 @@ void InitBattleMenu( void ) #endif pActWnd = NULL; // ???????????? pActInfoWnd = NULL; - // ????V?v???????? + // ????????????? if( battlePetNoBak != -2 ){ battlePetButtonFlag = FALSE; // ???????? }else{ @@ -202,11 +202,11 @@ void InitBattleMenu( void ) } -// ???K?????? ********************************************/ +// ????????? ********************************************/ int CheckBattle1P2P( void ) { int i, cnt = 0; - // ????? + // ????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; @@ -217,39 +217,39 @@ int CheckBattle1P2P( void ) else return 1; } -// ????V??????????? ********************************************/ +// ??????????????? ********************************************/ void CheckBattleAnimFlag( void ) { int i; - // ??????????????????i???u??????? + // ???????????????????????????? if( BattleCliTurnNo != BattleSvTurnNo ){ - // ????? + // ????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ - // ???????Re + // ??????? p_party[ i ]->atr |= ACT_ATR_BTL_CMD_END; } return; } - // ????? + // ????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ - // ???????Re + // ??????? if( ( BattleAnimFlag >> i ) & 0x00000001 ) p_party[ i ]->atr |= ACT_ATR_BTL_CMD_END; } } -// ????V?????????? ********************************************/ +// ?????????????? ********************************************/ void InitBattleAnimFlag( void ) { int i; - // ????? + // ????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ - // ???????Re + // ??????? p_party[ i ]->atr &= ~ACT_ATR_BTL_CMD_END; } } -// ????????? *******************************************************/ +// ????????? *******************************************************/ int CheckPetSuu( void ) { int i,cnt = 0; @@ -259,15 +259,15 @@ int CheckPetSuu( void ) return cnt; } -// ???Re????? *****************************************************/ +// ???????? *****************************************************/ void ClearBoxFlag( void ) { int i; - // ???Re????? + // ???????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; - // ???Re?????????? + // ????????????? p_party[i]->atr &= ~ACT_ATR_HIT_BOX_COL1; p_party[i]->atr &= ~ACT_ATR_HIT_BOX_COL2; @@ -285,12 +285,12 @@ void ClearBoxFlag( void ) p_party[ i ]->atr &= ~ACT_ATR_HIT_BOX_ALL3; p_party[ i ]->atr &= ~ACT_ATR_HIT_BOX_ALL4; p_party[ i ]->atr |= ACT_ATR_HIT; - // ???Rek???? + // ??????? p_party[ i ]->hitDispNo = -2; } } -// ??????????Re ***************************************************/ +// ?????????? ***************************************************/ int CheckBattelTarget( void ) { int i; @@ -298,7 +298,7 @@ int CheckBattelTarget( void ) for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; - // k?????? + // ?????? if( !( p_party[i]->atr & ACT_ATR_HIT_BOX ) && @@ -326,7 +326,7 @@ int CheckBattelTarget( void ) return -1; } -// ??????u??? *****************************************************/ +// ????????? *****************************************************/ void ClearBattleButton( void ) { // ???? @@ -337,21 +337,21 @@ void ClearBattleButton( void ) void BattleButtonOff( void ) { play_se( 217, 320, 240 ); - // ??????????? + // ??????????? DeathAction( pActWnd ); pActWnd = NULL; // ???????????? // ??????????????? battleTargetSelectFlag = FALSE; - // ????k? + // ????? BattleCmdNo = -1; -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 wonflag = 0 ; #endif - // ??????u??? + // ????????? ClearBattleButton(); - // ???Re????? + // ???????? ClearBoxFlag(); } @@ -382,21 +382,21 @@ void InitItem2( int x, int y ) } } -// o?????? ***********************************************************/ +// ?????? ***********************************************************/ void HpMeterDisp( int no ) { int meterX = p_party[ no ]->x; int meterY = p_party[ no ]->y - 80; int graNo; - // V?????????????? + // ?????????????? if( p_party[ no ]->func == NULL || p_party[ no ]->hp <= 0 ) return; // ????? if( p_party[ no ]->atr & ACT_ATR_TRAVEL ) return; - // ?? + // ?? if( no == BattleMyNo ){ - // ? + // ? StockDispBuffer( meterX, meterY, DISP_PRIO_IME1, CG_BATTLE_BAR_PLAYER_2, 0 ); - // o?? + // ?? StockBoxDispBuffer( meterX - 21, meterY - 3, meterX - 21 + (int)( ( (double)p_party[ BattleMyNo ]->hp / (double)p_party[ BattleMyNo ]->maxHp ) * 40.0 ), @@ -407,8 +407,8 @@ void HpMeterDisp( int no ) meterX - 21 + (int)( ( (double)p_party[ BattleMyNo ]->hp / (double)p_party[ BattleMyNo ]->maxHp ) * 40.0 ), meterY - 2, DISP_PRIO_IME2, SYSTEM_PAL_GREEN, 2 ); - // ?? -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + // ?? +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 StockBoxDispBuffer( meterX - 21, meterY + 1, meterX - 21 + (int)( ( (double)p_party[ BattleMyNo ]->mp / (double)p_party[ BattleMyNo ]->maxMp ) * 40.0 ), @@ -431,55 +431,55 @@ void HpMeterDisp( int no ) meterY + 2, DISP_PRIO_IME2, SYSTEM_PAL_YELLOW, 2 ); #endif - //cary ijѪ + //cary 秀出骑宠的宠物血量 if( p_party[ BattleMyNo ]->onRide > 0 ){ meterY += 25; meterX += 20; - // ? + // ? StockDispBuffer( meterX , meterY, DISP_PRIO_IME1, CG_BATTLE_BAR_PET_2, 0 ); - // o????????? + // ????????? StockBoxDispBuffer( meterX - 21, meterY - 1, meterX - 21 + (int)( ( (double)p_party[ BattleMyNo ]->petHp / (double)p_party[ BattleMyNo ]->petMaxHp ) * 40.0 ), meterY - 1, DISP_PRIO_IME2, SYSTEM_PAL_GREEN, 2 ); - // o????????? + // ????????? StockBoxDispBuffer( meterX - 21, meterY + 0, meterX - 21 + (int)( ( (double)p_party[ BattleMyNo ]->petHp / (double)p_party[ BattleMyNo ]->petMaxHp ) * 40.0 ), meterY + 0, DISP_PRIO_IME2, SYSTEM_PAL_GREEN, 2 ); } - }else{ // ???? + }else{ // ???? if( no == BattleMyNo + 5 ) graNo = CG_BATTLE_BAR_PET_2; else graNo = CG_BATTLE_BAR_PET; - // ? + // ? StockDispBuffer( meterX , meterY, DISP_PRIO_IME1, graNo, 0 ); - // o????????? + // ????????? StockBoxDispBuffer( meterX - 21, meterY - 1, meterX - 21 + (int)( ( (double)p_party[ no ]->hp / (double)p_party[ no ]->maxHp ) * 40.0 ), meterY - 1, DISP_PRIO_IME2, SYSTEM_PAL_GREEN, 2 ); - // o????????? + // ????????? StockBoxDispBuffer( meterX - 21, meterY + 0, meterX - 21 + (int)( ( (double)p_party[ no ]->hp / (double)p_party[ no ]->maxHp ) * 40.0 ), meterY + 0, DISP_PRIO_IME2, SYSTEM_PAL_GREEN, 2 ); - //cary ijѪ + //cary 秀出骑宠的宠物血量 if( p_party[ no ]->onRide > 0 ){ meterY += 25; meterX += 20; - // ? + // ? StockDispBuffer( meterX , meterY, DISP_PRIO_IME1, CG_BATTLE_BAR_PET, 0 ); - // o????????? + // ????????? StockBoxDispBuffer( meterX - 21, meterY - 1, meterX - 21 + (int)( ( (double)p_party[ no ]->petHp / (double)p_party[ no ]->petMaxHp ) * 40.0 ), meterY - 1, DISP_PRIO_IME2, SYSTEM_PAL_GREEN, 2 ); - // o????????? + // ????????? StockBoxDispBuffer( meterX - 21, meterY + 0, meterX - 21 + (int)( ( (double)p_party[ no ]->petHp / (double)p_party[ no ]->petMaxHp ) * 40.0 ), @@ -489,20 +489,20 @@ void HpMeterDisp( int no ) } } -// q? ************************************************************************/ +// ? ************************************************************************/ void BattleNameDisp( void ) { int i; int color = FONT_PAL_WHITE; - // q???????? + // ???????? if( nameOverTheHeadFlag != TRUE ) return; // ????????????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; - // ?? + // ?? if( i == BattleMyNo || i == ( BattleMyNo + 5 ) ) color = FONT_PAL_YELLOW; else @@ -586,7 +586,7 @@ void BattleButtonAttack( void ) } } } - strcpy( OneLineInfoStr,""); + strcpy( OneLineInfoStr,"攻击。"); } } */ @@ -650,7 +650,7 @@ void BattleButtonAttack( void ) } } } - strcpy( OneLineInfoStr,""); + strcpy( OneLineInfoStr,"攻击。"); } } @@ -689,12 +689,12 @@ void BattleButtonJujutsu( void ) } } - strcpy( OneLineInfoStr, ""); + strcpy( OneLineInfoStr, "吟唱咒术。"); #ifdef _MAGIC_NOCAST } else { - strcpy( OneLineInfoStr, "Ĭ޷"); + strcpy( OneLineInfoStr, "沉默中无法吟唱咒术。"); } #endif } @@ -855,7 +855,7 @@ void BattleButtonJujutsu( void ) if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // µڶ + // 右下第二列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL4; } @@ -871,7 +871,7 @@ void BattleButtonJujutsu( void ) if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // µһ + // 右下第一列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL3; } @@ -887,7 +887,7 @@ void BattleButtonJujutsu( void ) if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // ϵһ + // 左上第一列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL1; } @@ -903,7 +903,7 @@ void BattleButtonJujutsu( void ) if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // ϵڶ + // 左上第二列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL2; } @@ -1128,15 +1128,15 @@ void BattleButtonJujutsu( void ) if( magic[ i ].useFlag == TRUE ){ col = FONT_PAL_WHITE; - if( magic[ i ].mp > p_party[ BattleMyNo ]->mp ) col = FONT_PAL_RED; // ??ۢK?? - if( magic[ i ].field == MAGIC_FIELD_MAP ) col = FONT_PAL_GRAY; // ????? + if( magic[ i ].mp > p_party[ BattleMyNo ]->mp ) col = FONT_PAL_RED; // ???? + if( magic[ i ].field == MAGIC_FIELD_MAP ) col = FONT_PAL_GRAY; // ????? CenteringStr( magic[ i ].name, moji, MAGIC_NAME_LEN ); battleMenuJujutsuFontNo[ i ] = StockFontBuffer( x, y, FONT_PRIO_FRONT, col, moji, 2 ); y += 28; flag = TRUE; } } - if( flag == FALSE ) StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, "û", 0 ); + if( flag == FALSE ) StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, "没有咒术", 0 ); battleMenuJujutsuFontNo[ 5 ] = StockDispBuffer( ( ( WINDOW_DISP *)pActWnd->pYobi )->mx, pActWnd->y + 262 + 10, DISP_PRIO_IME3, CG_CLOSE_BTN, 2 ); } @@ -1145,52 +1145,52 @@ void BattleButtonJujutsu( void ) } } -// ????? *****************************************************************/ -void BattleButtonCapture( void )//׽ +// ????? *****************************************************************/ +void BattleButtonCapture( void )//捕捉宠物 { int i, bak; if( HitDispNo == battleButtonDispNo[ 2 ] || battleButtonBak2 == 2 ){ - // ????????? + // ????????? if( CheckPetSuu() >= 5 ){ // ?????? - strcpy( OneLineInfoStr,"ٲijˡ"); + strcpy( OneLineInfoStr,"不能再捕获更多的宠物了。"); // ????????? if( mouse.onceState & MOUSE_LEFT_CRICK ){ // ??? play_se( 220, 320, 240 ); } - // q???????? + // ???????? battleButtonBak2 = -1; }else{ // ?????? - strcpy( OneLineInfoStr,"׽"); + strcpy( OneLineInfoStr,"捕捉。"); // ????????? if( mouse.onceState & MOUSE_LEFT_CRICK || battleButtonBak2 == 2 ){ bak = battleButtonFlag[ 2 ]; // ?????? - BattleButtonOff(); // ?????u??????? + BattleButtonOff(); // ???????????? // ????????? if( bak == FALSE ){ // ?????????????? battleTargetSelectFlag = TRUE; - // ????k? + // ????? BattleCmdNo = BATTLE_CAPTURE; // ????????? battleButtonFlag[ 2 ] = TRUE; // ???????? battleButtonBak = 2; - // q???????? + // ???????? battleButtonBak2 = -1; - // ???Re???? + // ??????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; - // s???? + // ???? if( ( (ATR_EQU *)p_party[ i ]->pYobi )->group_flg == ( (ATR_EQU *)p_party[ BattleMyNo ]->pYobi )->group_flg ) continue; - // ???? + // ???? if( i == BattleMyNo ) continue; // ?????? if( p_party[ i ]->hp <= 0 ) continue; - // ???Re????????? + // ???????????? p_party[ i ]->atr |= ACT_ATR_HIT_BOX; } } @@ -1204,7 +1204,7 @@ void BattleButtonHelp( void ) { if( HitDispNo == battleButtonDispNo[ 3 ] && battleButtonFlag[ 3 ] == FALSE ){ - strcpy( OneLineInfoStr, "ȡ"); + strcpy( OneLineInfoStr, "求救。"); if( mouse.onceState & MOUSE_LEFT_CRICK ){ if( NoHelpFlag == TRUE ){ @@ -1253,11 +1253,11 @@ void BattleButtonGuard( void ) play_se( 203, 320, 240 ); } - strcpy( OneLineInfoStr, ""); + strcpy( OneLineInfoStr, "防御。"); } } #ifdef _NEW_ITEM_ -extern int ҳ; +extern int 道具栏页数; #endif void BattleButtonItem( void ) @@ -1282,7 +1282,7 @@ void BattleButtonItem( void ) #ifdef _NEW_WIN_POS_ pActWnd = MakeWindowDisp( 520, 160, 271, 281, 0, -1 , FALSE ); #ifdef _NEW_ITEM_ - ҳ=0; + 道具栏页数=0; #endif #else pActWnd = MakeWindowDisp( 380, 160, 271, 281, 0, -1 , FALSE ); @@ -1295,7 +1295,7 @@ void BattleButtonItem( void ) } } - strcpy( OneLineInfoStr, "ʹõߡ"); + strcpy( OneLineInfoStr, "使用道具。"); } if( battleButtonFlag[ 5 ] == TRUE ){ @@ -1326,12 +1326,12 @@ void BattleButtonItem( void ) y = pActWnd->y + 191 + 7; #ifdef _NEW_ITEM_ for(i=0;i<3;i++){ - if(i==ҳ){ + if(i==道具栏页数){ StockDispBuffer(513,182+i*56, DISP_PRIO_IME3,55113+i, 1); }else{ BOOL flg=FALSE; if(i){ - if(pc.״̬&1<= MAX_ITEMSTART ; i-- ){ #ifdef _NEW_ITEM_ - int ʼ = MAX_ITEMSTART+MAX_MAXHAVEITEM*ҳ; - int ߽ = ʼ+MAX_MAXHAVEITEM; + int 道具起始 = MAX_ITEMSTART+MAX_MAXHAVEITEM*道具栏页数; + int 道具结束 = 道具起始+MAX_MAXHAVEITEM; if(i>=MAX_ITEMSTART){ - if(i<ʼ||i>=߽) continue; + if(i<道具起始||i>=道具结束) continue; } #endif if( MakeHitBox( ItemBuffer[ i ].defX - 24, ItemBuffer[ i ].defY - 24, @@ -1613,8 +1613,8 @@ void BattleButtonItem( void ) play_se( 217, 320, 240 ); break; #ifdef _PET_ITEM - case ITEM_TARGET_PET: // սвɸװ - StockChatBufferLine("սвɸװ",FONT_PAL_RED); + case ITEM_TARGET_PET: // 战斗中不可更换宠物装备 + StockChatBufferLine("战斗中不可更换宠物装备",FONT_PAL_RED); break; #endif } @@ -1669,7 +1669,7 @@ void BattleButtonPet( void ) } } - strcpy( OneLineInfoStr, ""); + strcpy( OneLineInfoStr, "更换宠物。"); } if( battleButtonFlag[ 6 ] == TRUE ){ @@ -1801,7 +1801,7 @@ void BattleButtonPet( void ) battleMenuPetFontNo[ 6 ] = StockDispBuffer( ( ( WINDOW_DISP *)pActWnd->pYobi )->mx, pActWnd->y + 367, DISP_PRIO_IME3, CG_CLOSE_BTN, 2 ); } }else{ - StockFontBuffer( x + 11, y, FONT_PRIO_FRONT, 0, "ûвսij", 0 ); + StockFontBuffer( x + 11, y, FONT_PRIO_FRONT, 0, "没有参战的宠物", 0 ); battleMenuPetFontNo[ 6 ] = StockDispBuffer( ( ( WINDOW_DISP *)pActWnd->pYobi )->mx, pActWnd->y + 367, DISP_PRIO_IME3, CG_CLOSE_BTN, 2 ); } } @@ -1809,7 +1809,7 @@ void BattleButtonPet( void ) } } } -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 void BattleButtonPPLSKILL( void ) { if ( MenuToggleFlag & JOY_ESC || MenuToggleFlag & JOY_CTRL_E || MenuToggleFlag & JOY_CTRL_A) { @@ -1832,7 +1832,7 @@ void BattleButtonPPLSKILL( void ) //MenuToggleFlag &= ~JOY_CTRL_A; ( wonflag == 0 ) ? wonflag = 1 : wonflag = 0 ; } - strcpy( OneLineInfoStr, "ְҵ"); + strcpy( OneLineInfoStr, "职业技能"); } if ( wonflag == 1 ) { for ( int i = 0 ; i < 3 ; i ++ ) { @@ -1892,14 +1892,14 @@ void BattleButtonPPLSKILL( void ) use_color = FONT_PAL_GRAY; } if ( profession_skill[ AssitSkill [ j + i * 4 ] ].skillId == 11 ) - use_color = FONT_PAL_WHITE; //ѪԲmp + use_color = FONT_PAL_WHITE; //嗜血成性不做mp限制 sprintf_s( msg2 , "%s" , profession_skill[AssitSkill [ j + i * 4 ]].name ); StockFontBuffer( 20, 312, FONT_PRIO_FRONT, use_color, msg2, 0 ); - sprintf_s( msg , " %d", profession_skill[AssitSkill [ j + i * 4 ]].skill_level ) ; + sprintf_s( msg , " %d%", profession_skill[AssitSkill [ j + i * 4 ]].skill_level ) ; StockFontBuffer( 85, 310, FONT_PRIO_FRONT, use_color, msg, 0 ); - sprintf_s( msg2 , "(ķMP:%d)" , profession_skill[AssitSkill [ j + i * 4 ]].costmp ); + sprintf_s( msg2 , "(耗费MP:%d)" , profession_skill[AssitSkill [ j + i * 4 ]].costmp ); StockFontBuffer( 170, 312, FONT_PRIO_FRONT, use_color, msg2, 0 ); sprintf_s( msg , "%s" , profession_skill[AssitSkill [ j + i * 4 ]].memo ) ; @@ -1911,7 +1911,7 @@ void BattleButtonPPLSKILL( void ) prouseskill = AssitSkill [ j + i * 4 ] ; BattleSetWazaHitBox( profession_skill[AssitSkill [ j + i * 4 ] ].target , 1) ; } - else if ( profession_skill[ AssitSkill [ j + i * 4 ] ].skillId == 11 && profession_skill[AssitSkill [ j + i * 4 ]].costmp == 0 ) { //ѪԲmp + else if ( profession_skill[ AssitSkill [ j + i * 4 ] ].skillId == 11 && profession_skill[AssitSkill [ j + i * 4 ]].costmp == 0 ) { //嗜血成性不做mp限制 wonflag = 0 ; prouseskill = AssitSkill [ j + i * 4 ] ; BattleSetWazaHitBox( profession_skill[AssitSkill [ j + i * 4 ] ].target , 1) ; @@ -1951,10 +1951,10 @@ void BattleButtonPPLSKILL( void ) sprintf_s( msg2 , "%s" , profession_skill[BattleSkill [ j + i * 4 ]].name ); StockFontBuffer( 20, 312, FONT_PRIO_FRONT, use_color, msg2, 0 ); - sprintf_s( msg , " %d", profession_skill[BattleSkill [ j + i * 4 ]].skill_level ) ; + sprintf_s( msg , " %d%", profession_skill[BattleSkill [ j + i * 4 ]].skill_level ) ; StockFontBuffer( 85, 310, FONT_PRIO_FRONT, use_color, msg, 0 ); - sprintf_s( msg2 , "(ķMP:%d)" , profession_skill[BattleSkill [ j + i * 4 ]].costmp ); + sprintf_s( msg2 , "(耗费MP:%d)" , profession_skill[BattleSkill [ j + i * 4 ]].costmp ); StockFontBuffer( 170, 312, FONT_PRIO_FRONT, use_color, msg2, 0 ); sprintf_s( msg , "%s" , profession_skill[BattleSkill [ j + i * 4 ]].memo ) ; @@ -1962,7 +1962,7 @@ void BattleButtonPPLSKILL( void ) if( mouse.onceState & MOUSE_LEFT_CRICK_UP ) { if ( HitDispNo == BattleSkillBtn [ j + i * 4 ] && profession_skill[ BattleSkill [ j + i * 4 ] ].useFlag != 0) { if( p_party[ BattleMyNo ]->mp >= profession_skill[BattleSkill [ j + i * 4 ]].costmp && profession_skill[BattleSkill [ j + i * 4 ]].costmp != 0 ) { - if ( !(profession_skill[ BattleSkill [ j + i * 4 ] ].skillId == 40 && p_party[ BattleMyNo ]->hp <= 10) ) { // + if ( !(profession_skill[ BattleSkill [ j + i * 4 ] ].skillId == 40 && p_party[ BattleMyNo ]->hp <= 10) ) { //濒死攻击限制 wonflag = 0 ; prouseskill = BattleSkill [ j + i * 4 ] ; BattleSetWazaHitBox( profession_skill[BattleSkill [ j + i * 4 ] ].target , 1) ; @@ -2003,7 +2003,7 @@ void BattleButtonPPLSKILL( void ) } #ifdef _PROFESSION_ADDSKILL // if ( profession_skill[ AdvanceSkill [ j + i * 4 ] ].skillId == 2 ) - // use_color = FONT_PAL_WHITE; //Բmp + // use_color = FONT_PAL_WHITE; //针针相对不做mp限制 #endif #ifdef _PRO_ABSOLUTE_DEFENSE if ( ( profession_skill[ AdvanceSkill [ j + i * 4 ] ].skillId == 75 @@ -2018,10 +2018,10 @@ void BattleButtonPPLSKILL( void ) sprintf_s( msg2 , "%s" , profession_skill[AdvanceSkill [ j + i * 4 ]].name ); StockFontBuffer( 20, 312, FONT_PRIO_FRONT, use_color, msg2, 0 ); - sprintf_s( msg , " %d", profession_skill[AdvanceSkill [ j + i * 4 ]].skill_level ) ; + sprintf_s( msg , " %d%", profession_skill[AdvanceSkill [ j + i * 4 ]].skill_level ) ; StockFontBuffer( 85, 310, FONT_PRIO_FRONT, use_color, msg, 0 ); - sprintf_s( msg2 , "(ķMP:%d)" , profession_skill[AdvanceSkill [ j + i * 4 ]].costmp ); + sprintf_s( msg2 , "(耗费MP:%d)" , profession_skill[AdvanceSkill [ j + i * 4 ]].costmp ); StockFontBuffer( 170, 312, FONT_PRIO_FRONT, use_color, msg2, 0 ); sprintf_s( msg , "%s" , profession_skill[AdvanceSkill [ j + i * 4 ]].memo ) ; @@ -2052,7 +2052,7 @@ void BattleButtonPPLSKILL( void ) } #endif #ifdef _PROFESSION_ADDSKILL - // else if ( profession_skill[ AdvanceSkill [ j + i * 4 ] ].skillId == 2 && profession_skill[AdvanceSkill [ j + i * 4 ]].costmp == 0 ) { //Բmp + // else if ( profession_skill[ AdvanceSkill [ j + i * 4 ] ].skillId == 2 && profession_skill[AdvanceSkill [ j + i * 4 ]].costmp == 0 ) { //针针相对不做mp限制 // wonflag = 0 ; // BattleSetWazaHitBox( profession_skill[AdvanceSkill [ j + i * 4 ] ].target , 1) ; // prouseskill = AdvanceSkill [ j + i * 4 ]; @@ -2101,29 +2101,29 @@ void BattleButtonEscape( void ) if( mouse.onceState & MOUSE_LEFT_CRICK ){ BattleButtonOff(); battleButtonFlag[ 7 ] = TRUE; - // `?? + // ?? if( bNewServer) lssproto_B_send( sockfd, "E" ); else old_lssproto_B_send( sockfd, "E" ); - // ?????`????? + // ?????????? battlePlayerEscFlag = TRUE; // ?????? battleMenuReturn = TRUE; // ???????? battleButtonBak = -1; - // q???????? + // ???????? battleButtonBak2 = -1; - // ???????? + // ???????? play_se( 203, 320, 240 ); } // ?????? - strcpy( OneLineInfoStr, "ѡ"); + strcpy( OneLineInfoStr, "逃脱。"); } } // ?????????????? **************************************************/ -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 void BattleSetWazaHitBox( int no , int typeflag ) #else void BattleSetWazaHitBox( int no ) @@ -2132,7 +2132,7 @@ void BattleSetWazaHitBox( int no ) char moji[ 256 ]; int i; -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 int switchnum = 0 ; if ( typeflag == 0 ){ @@ -2150,8 +2150,8 @@ void BattleSetWazaHitBox( int no ) #endif case PETSKILL_TARGET_MYSELF: // ????? - // ???Re????????? -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + // ???????????? +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 1 ) p_party[ BattleMyNo ]->atr |= ACT_ATR_HIT_BOX; else @@ -2164,7 +2164,7 @@ void BattleSetWazaHitBox( int no ) DeathAction( pActWnd ); pActWnd = NULL; ClearBattleButton(); -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 1 ) BattleCmdNo = BATTLE_PROWAZA; else @@ -2172,11 +2172,11 @@ void BattleSetWazaHitBox( int no ) BattleCmdNo = BATTLE_WAZA; // ????? play_se( 217, 320, 240 ); - // ?k??????? + // ???????? battleWazaTargetBak = no; break; - case PETSKILL_TARGET_OTHER: // \????) + case PETSKILL_TARGET_OTHER: // ????) for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ if( p_party[ i ]->func == NULL ) continue; if( p_party[ i ]->hp <= 0 ) continue; @@ -2187,23 +2187,23 @@ void BattleSetWazaHitBox( int no ) DeathAction( pActWnd ); pActWnd = NULL; ClearBattleButton(); -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 1 ) BattleCmdNo = BATTLE_PROWAZA; else #endif BattleCmdNo = BATTLE_WAZA; play_se( 217, 320, 240 ); -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag != 1 ) #endif battleWazaTargetBak = no; break; - case PETSKILL_TARGET_ALLMYSIDE: // sul + case PETSKILL_TARGET_ALLMYSIDE: //  // ???????? if( BattleMyNo < 10 ){ - // ???Re???? + // ??????? for( i = 0 ; i < 10 ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; @@ -2215,7 +2215,7 @@ void BattleSetWazaHitBox( int no ) } // ???????? else{ - // ???Re???? + // ??????? for( i = 10 ; i < 20 ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; @@ -2230,7 +2230,7 @@ void BattleSetWazaHitBox( int no ) DeathAction( pActWnd ); pActWnd = NULL; ClearBattleButton(); -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 1 ) BattleCmdNo = BATTLE_PROWAZA; else @@ -2240,10 +2240,10 @@ void BattleSetWazaHitBox( int no ) battleWazaTargetBak = no; break; - case PETSKILL_TARGET_ALLOTHERSIDE: // ?Dul + case PETSKILL_TARGET_ALLOTHERSIDE: // ? // ???????? if( BattleMyNo >= 10 ){ - // ???Re???? + // ??????? for( i = 0 ; i < 10 ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; @@ -2255,7 +2255,7 @@ void BattleSetWazaHitBox( int no ) } // ???????? else{ - // ???Re???? + // ??????? for( i = 10 ; i < 20 ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; @@ -2267,13 +2267,13 @@ void BattleSetWazaHitBox( int no ) } // if ( typeflag == 0 ) battleTargetSelectFlag = TRUE; - // ??????????? + // ??????????? DeathAction( pActWnd ); pActWnd = NULL; - // ??????u??? + // ????????? ClearBattleButton(); - // ????k? -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + // ????? +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 1 ) BattleCmdNo = BATTLE_PROWAZA; else @@ -2282,12 +2282,12 @@ void BattleSetWazaHitBox( int no ) BattleCmdNo = BATTLE_WAZA; // ????? play_se( 217, 320, 240 ); - // ?k??????? + // ???????? battleWazaTargetBak = no; break; - case PETSKILL_TARGET_ALL: // u? - // ???Re???? + case PETSKILL_TARGET_ALL: // ? + // ??????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; @@ -2300,10 +2300,10 @@ void BattleSetWazaHitBox( int no ) battleTargetSelectFlag = TRUE; DeathAction( pActWnd ); pActWnd = NULL; - // ??????u??? + // ????????? ClearBattleButton(); - // ????k? -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + // ????? +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 1 ) BattleCmdNo = BATTLE_PROWAZA; else @@ -2312,27 +2312,27 @@ void BattleSetWazaHitBox( int no ) BattleCmdNo = BATTLE_WAZA; // ????? play_se( 217, 320, 240 ); - // ?k??????? + // ???????? battleWazaTargetBak = no; break; - case PETSKILL_TARGET_NONE: // M?k????\???? - BattleButtonOff(); // ?????u??????? + case PETSKILL_TARGET_NONE: // ????????? + BattleButtonOff(); // ???????????? battleMenuReturn = TRUE; - // ??? -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + // ??? +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 1 ) sprintf_s( moji,"P|%X|%X", prouseskill, BattleMyNo ); else #endif sprintf_s( moji,"W|%X|%X", BattleWazaNo, BattleMyNo + 5 ); - // ?? + // ?? lssproto_B_send( sockfd, moji ); - // ???????? + // ???????? play_se( 203, 320, 240 ); //andy_add -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 0 ){ battleWazaTargetBak = -1; battleTargetSelectFlag = FALSE; @@ -2340,12 +2340,12 @@ void BattleSetWazaHitBox( int no ) #endif break; - case PETSKILL_TARGET_OTHERWITHOUTMYSELF: // \??????) - // ???Re???? + case PETSKILL_TARGET_OTHERWITHOUTMYSELF: // ??????) + // ??????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; - // ???????? + // ???????? if( i == BattleMyNo + 5 ) continue; // ?????? if( p_party[ i ]->hp <= 0 ) continue; @@ -2357,7 +2357,7 @@ void BattleSetWazaHitBox( int no ) DeathAction( pActWnd ); pActWnd = NULL; ClearBattleButton(); -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 1 ) BattleCmdNo = BATTLE_PROWAZA; else @@ -2366,18 +2366,18 @@ void BattleSetWazaHitBox( int no ) BattleCmdNo = BATTLE_WAZA; // ????? play_se( 217, 320, 240 ); - // ?k??????? + // ???????? battleWazaTargetBak = no; break; - case PETSKILL_TARGET_WITHOUTMYSELFANDPET: // ?????? - // ???Re???? + case PETSKILL_TARGET_WITHOUTMYSELFANDPET: // ?????? + // ??????? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ // ?????????? if( p_party[ i ]->func == NULL ) continue; - // ???????? + // ???????? if( i == BattleMyNo + 5 ) continue; - // ???? + // ???? if( i == BattleMyNo ) continue; // ?????? if( p_party[ i ]->hp <= 0 ) continue; @@ -2386,13 +2386,13 @@ void BattleSetWazaHitBox( int no ) } // if ( typeflag == 0 ) battleTargetSelectFlag = TRUE; - // ??????????? + // ??????????? DeathAction( pActWnd ); pActWnd = NULL; - // ??????u??? + // ????????? ClearBattleButton(); - // ????k? -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + // ????? +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 if ( typeflag == 1 ) BattleCmdNo = BATTLE_PROWAZA; else @@ -2400,17 +2400,17 @@ void BattleSetWazaHitBox( int no ) BattleCmdNo = BATTLE_WAZA; // ????? play_se( 217, 320, 240 ); - // ?k??????? + // ???????? battleWazaTargetBak = no; break; -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 case PETSKILL_TARGET_ONE_ROW: for( i = 0 ; i < 5 ; i++ ) { if( p_party[i]->func == NULL ) continue; //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // µڶ + // 右下第二列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL4; } for( i = 5 ; i < 10 ; i++ ) { @@ -2418,7 +2418,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // µһ + // 右下第一列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL3; } for( i = 10 ; i < 15 ; i++ ) { @@ -2426,7 +2426,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // ϵһ + // 左上第一列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL1; } for( i = 15 ; i < 20 ; i++ ) { @@ -2434,7 +2434,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // ϵڶ + // 左上第二列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL2; } // if ( typeflag == 0 ) @@ -2463,7 +2463,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // µڶ + // 右下第二列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL8; } for( i = 5 ; i < 10 ; i++ ) { @@ -2471,7 +2471,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // µһ + // 右下第一列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL7; } for( i = 10 ; i < 15 ; i++ ) { @@ -2479,7 +2479,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // ϵһ + // 左上第一列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL5; } for( i = 15 ; i < 20 ; i++ ) { @@ -2487,7 +2487,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // ϵڶ + // 左上第二列 p_party[i]->atr |= ACT_ATR_HIT_BOX_COL6; } // if ( typeflag == 0 ) @@ -2509,7 +2509,7 @@ void BattleSetWazaHitBox( int no ) if( p_party[i]->func == NULL ) continue; if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // µڶ + // 右下第二列 p_party[i]->atr |= ACT_ATR_HIT_BOX; p_party[i+5]->atr |= ACT_ATR_HIT_BOX; } @@ -2518,7 +2518,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // µһ + // 右下第一列 p_party[i]->atr |= ACT_ATR_HIT_BOX; p_party[i-5]->atr |= ACT_ATR_HIT_BOX; @@ -2528,7 +2528,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // ϵһ + // 左上第一列 p_party[i]->atr |= ACT_ATR_HIT_BOX; p_party[i+5]->atr |= ACT_ATR_HIT_BOX; @@ -2538,7 +2538,7 @@ void BattleSetWazaHitBox( int no ) //if( FALSE == magic[BattleJujutuNo].deadTargetFlag ) if( p_party[i]->hp <= 0 ) continue; if( p_party[i]->atr & ACT_ATR_TRAVEL ) continue; - // ϵڶ + // 左上第二列 p_party[i]->atr = ACT_ATR_HIT_BOX; p_party[i-5]->atr = ACT_ATR_HIT_BOX; @@ -2594,66 +2594,66 @@ void BattleButtonWaza( void ) // ????????? if( mouse.onceState & MOUSE_LEFT_CRICK || battlePetButtonFlag == TRUE ){ bak = battleButtonFlag[ 8 ]; // ?????? - BattleButtonOff(); // ?????u??????? + BattleButtonOff(); // ???????????? // ????????? if( bak == FALSE ){ // ????????? - battleButtonFlag[ 8 ] = TRUE; //򿪼ѡ + battleButtonFlag[ 8 ] = TRUE; //打开技能选项盒 // ????????? battleWazaTargetBak = -1; - // ????k? + // ????? //BattleCmdNo = BATTLE_WAZA; - // ?????Re??? + // ???????? for( i = 0 ; i < BATTLE_MENU_WAZA_FONTS ; i++ ) battleMenuWazaFontNo[ i ] = -2; - // ????????? + // ????????? pActWnd = MakeWindowDisp( 364, 41, 272, 348, 0, -1 ); } } // ????????? battlePetButtonFlag = FALSE; // ?????? - strcpy( OneLineInfoStr, "ʹüܡ"); + strcpy( OneLineInfoStr, "使用技能。"); } // ???????? if( battleButtonFlag[ 8 ] == TRUE ){ // ????????? if( pActWnd != NULL ){ - // ?????????????? + // ?????????????? if( pActWnd->hp > 0 ){ // ????????? StockDispBuffer( ( ( WINDOW_DISP *)pActWnd->pYobi )->mx, ( ( WINDOW_DISP *)pActWnd->pYobi )->my, DISP_PRIO_MENU, CG_PET_WAZA_WND, 1 ); - // ????????? + // ????????? for( i = 0 ; i < pet[ battlePetNoBak ].maxSkill ; i++ ){ - // ????? + // ????? StockDispBuffer( ( ( WINDOW_DISP *)pActWnd->pYobi )->mx, ( ( WINDOW_DISP *)pActWnd->pYobi )->my, DISP_PRIO_IME3, CG_PET_WAZA_BAR_1 + i, 1 ); } // ???????? if( mouse.onceState & MOUSE_LEFT_CRICK ){ - // ???????? + // ???????? if( HitDispNo == battleMenuWazaFontNo[ 7 ] ){ - // ?????u??????? + // ???????????? BattleButtonOff(); } } // ???????? if( pActWnd != NULL ){ - // ?@e + // ? x = pActWnd->x + 32; y = pActWnd->y + 252; - // C? + // ? for( i = 0 ; i < pet[ battlePetNoBak ].maxSkill ; i++ ){ // ???????? if( petSkill[ battlePetNoBak ][ i ].useFlag == TRUE ){ if( HitFontNo == battleMenuWazaFontNo[ i ] ){ // ?????? char *splitPoint = petSkill[ battlePetNoBak ][ i ].memo; - // ????? + // ????? while( 1 ){ - // ????????? + // ????????? if( strlen( splitPoint ) > 24 ){ strncpy_s( moji, splitPoint, 24 ); - moji[ 24 ] = NULL; // Z?????? - // u??S???? + moji[ 24 ] = NULL; // ?????? + // ?????? if( GetStrLastByte( moji ) == 3 ){ moji[ 23 ] = NULL; splitPoint += 23; @@ -2670,7 +2670,7 @@ void BattleButtonWaza( void ) } // ???????? if( mouse.onceState & MOUSE_LEFT_CRICK ){ - // Pf???? + // ???? if( petSkill[ battlePetNoBak ][ i ].field != PETSKILL_FIELD_MAP ){ #ifdef _VARY_WOLF if(!((pet[battlePetNoBak].graNo==101428)&&(petSkill[battlePetNoBak][i].skillId==600)) @@ -2680,7 +2680,7 @@ void BattleButtonWaza( void ) ) #endif // ?????????????? -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 BattleSetWazaHitBox( i , 0 ) ; #else BattleSetWazaHitBox( i ); @@ -2688,32 +2688,32 @@ void BattleButtonWaza( void ) }else{ int flag = 0; int j; - // Pf????????????????? + // ????????????????? for( j = 0 ; j < pet[ battlePetNoBak ].maxSkill ; j++ ){ // ???????? if( petSkill[ battlePetNoBak ][ j ].useFlag == TRUE ){ - // Pf???? + // ???? if( petSkill[ battlePetNoBak ][ j ].field != PETSKILL_FIELD_MAP ) flag++; } } - // Pf?????????? + // ?????????? if( flag > 0 ){ // ??? play_se( 220, 320, 240 ); } // ?????? else{ - BattleButtonOff(); // ?????u??????? + BattleButtonOff(); // ???????????? //battleMenuReturn = TRUE; ClearBoxFlag(); - // ??????????? + // ??????????? if( bNewServer) lssproto_B_send( sockfd, "W|FF|FF" ); else old_lssproto_B_send( sockfd, "W|FF|FF" ); - // ???????? + // ???????? play_se( 203, 320, 240 ); - // ?k??????? + // ???????? battleWazaTargetBak = -1; // ?????????????? battleTargetSelectFlag = FALSE; @@ -2725,7 +2725,7 @@ void BattleButtonWaza( void ) } /* #ifndef __AI - //cary Զս + //cary 宠物的自动战斗 if( !PauseAI && AI!=AI_NONE && FALSE==battleTargetSelectFlag){ if( (BattleIntervalCnt==0 && (BattleCntDown-TimeGetTime())<=29000) || BattleIntervalCntx + 40; y = pActWnd->y + 32; - // ?????? + // ?????? if( pet[ battlePetNoBak ].freeName[ 0 ] != NULL ) CenteringStr( pet[ battlePetNoBak ].freeName, moji, PET_NAME_LEN ); else CenteringStr( pet[ battlePetNoBak ].name, moji, PET_NAME_LEN ); StockFontBuffer( x - 28, y, FONT_PRIO_FRONT, 0, moji, 0 ); y += 26; x += 18; - // ? + // ? for( i = 0 ; i < pet[ battlePetNoBak ].maxSkill ; i++ ){ // ???????? if( petSkill[ battlePetNoBak ][ i ].useFlag == TRUE ){ @@ -2812,7 +2812,7 @@ void BattleButtonWaza( void ) #else sprintf_s( moji," %-22s",petSkill[ battlePetNoBak ][ i ].name ); #endif - // Pf???? + // ???? if( petSkill[ battlePetNoBak ][ i ].field != PETSKILL_FIELD_MAP ){ #ifdef _VARY_WOLF if(!((pet[battlePetNoBak].graNo==101428)&&(petSkill[battlePetNoBak][i].skillId==600)) @@ -2833,9 +2833,9 @@ void BattleButtonWaza( void ) } y += 25; } - // ?@e + // ? y = pActWnd->y + 330; - // ????????? + // ????????? battleMenuWazaFontNo[ 7 ] = StockDispBuffer( ( ( WINDOW_DISP *)pActWnd->pYobi )->mx, y, DISP_PRIO_IME3, CG_CLOSE_BTN, 2 ); } } @@ -2856,8 +2856,8 @@ void BattleTargetSelect( void ) pActInfoWnd = MakeWindowDisp( 210, 356, 3, 2, 0, 1 ); }else{ if( pActInfoWnd->hp > 0 ){ - StockFontBuffer( pActInfoWnd->x + 38, pActInfoWnd->y + 28, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ѡ", 0 ); - StockFontBuffer( pActInfoWnd->x + 38, pActInfoWnd->y + 52, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "Ŀ", 0 ); + StockFontBuffer( pActInfoWnd->x + 38, pActInfoWnd->y + 28, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "请选择", 0 ); + StockFontBuffer( pActInfoWnd->x + 38, pActInfoWnd->y + 52, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "您的目标", 0 ); } #ifdef _NEW_WIN_POS_ if( mouse.nowPoint.y > 400 ) pActInfoWnd->y = 4; @@ -2870,7 +2870,7 @@ void BattleTargetSelect( void ) pActInfoWnd = NULL; } - //cary Զ + //cary 自动攻击 if( mouse.onceState & MOUSE_LEFT_CRICK ){ if( ( targetNo = CheckBattelTarget() ) != -1 ){ @@ -2898,7 +2898,7 @@ void BattleTargetSelect( void ) #ifdef __ATTACK_MAGIC - // оijһ + // 敌军某一人 case MAGIC_TARGET_SINGLE: sprintf_s( moji , "J|%X|%X" , BattleJujutuNo , targetNo ); @@ -2910,10 +2910,10 @@ void BattleTargetSelect( void ) break; - // оһ + // 敌军一整排 case MAGIC_TARGET_ONE_ROW: - // 23: ϵһ , 24: ϵڶ , 25: µһ , 26: µڶ + // 23: 左上第一列 , 24: 左上第二列 , 25: 右下第一列 , 26: 右下第二列 if( targetNo >= 0 && targetNo < 5 ) no = BATTLKPKPLYAERNUM + 6; else if( targetNo >= 5 && targetNo < 10 ) @@ -2932,7 +2932,7 @@ void BattleTargetSelect( void ) break; - // оȫ + // 敌军全体 case MAGIC_TARGET_ALL_ROWS: ( BattleMyNo < 10 )? no = BATTLKPKPLYAERNUM + 1 : no = BATTLKPKPLYAERNUM; @@ -3013,7 +3013,7 @@ void BattleTargetSelect( void ) } break; - //Change note ѡͳ + //Change note 道具选择对象后送出封包 case BATTLE_ITEM: //cary* switch( pc.item[ BattleItemNo ].target ){ @@ -3074,7 +3074,7 @@ void BattleTargetSelect( void ) } break; - //Change note 輼ѡͳ + //Change note 宠技选择对象后送出封包 case BATTLE_WAZA: switch( petSkill[ battlePetNoBak ][ BattleWazaNo ].target ){ case PETSKILL_TARGET_MYSELF: @@ -3152,8 +3152,8 @@ void BattleTargetSelect( void ) } break; -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ - //Change note ְҵѡͳ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 + //Change note 职业技能选择对象后送出封包 case BATTLE_PROWAZA: switch( profession_skill[prouseskill].target ){ case PETSKILL_TARGET_MYSELF: @@ -3220,7 +3220,7 @@ static int Ordinal[] = { 4+15, 2+15, 0+15, 1+15, 3+15, 4+10, 2+10, 0+10, 1+10, 3+10, 4+5, 2+5, 0+5, 1+5, 3+5, 4, 2, 0, 1, 3 }; -// ??????????Re ***************************************************/ +// ?????????? ***************************************************/ #ifdef _AI_OTHER #ifdef _AI_CAPTURE extern int AI_OtherSetting[2]; @@ -3299,7 +3299,7 @@ void BattleCntDownDisp( void ) int x = 320 - 16 + DISPLACEMENT_X / 2; int y = 240 + DISPLACEMENT_Y / 2; int i; - // ??? + // ??? #ifndef PK_SYSTEM_TIMER_BY_ZHU int BattleCntDownRest = BattleCntDown - TimeGetTime(); @@ -3310,9 +3310,9 @@ void BattleCntDownDisp( void ) #endif // ????????? -/*//ai +/*//人物ai #ifndef __AI - //cary Զս + //cary 自动战斗 if( AI!=AI_NONE && !PauseAI){ if( battleMenuFlag&BATTLE_MENU && battleTargetSelectFlag){ if( (BattleIntervalCnt==0 && BattleCntDownRest<=28000) || (BattleIntervalCnt!=0 && BattleIntervalCnthp <= 0 ){ // ?????? }else{ - // ?????????? + // ?????????? if( bNewServer) lssproto_B_send( sockfd, "W|FF|FF" ); else old_lssproto_B_send( sockfd, "W|FF|FF" ); } }else{ - // ?????hk??? + // ???????? if( ( battleMenuFlag & BATTLE_MENU && battleMenuReturn == TRUE ) || ( battleMenuFlag & BATTLE_MENU_PET && battleMenuReturn == FALSE ) ){ - // ӡP????????????????? + // ????????????????? if( battlePetNoBak == -1 || p_party[ BattleMyNo + 5 ]->hp <= 0 ){ // ?????? }else{ - // ?????????? + // ?????????? if( bNewServer) lssproto_B_send( sockfd, "W|FF|FF" ); else @@ -3474,15 +3474,15 @@ void BattleCntDownDisp( void ) // ?????? battleTargetSelectFlag = FALSE; battleMenuReturn = TRUE; - // ???????? + // ???????? play_se( 203, 320, 240 ); // ???????? battleButtonBak = battleButtonBak2; - // ??????????????? + // ??????????????? DeathAction( pActInfoWnd ); pActInfoWnd = NULL; } - // ?????K?? + // ??????? #ifndef PK_SYSTEM_TIMER_BY_ZHU sprintf_s( moji, "%2d", BattleCntDownRest / 1000 ); @@ -3494,24 +3494,24 @@ void BattleCntDownDisp( void ) sprintf( moji, "%2d", ( BattleCntDown - TimeGetTime() ) / 1000 ); #endif - // ???????? + // ???????? for( i = 0 ; i < 2 ; i++ ){ // ?????? if( *work != 0x20 ){ - // + //  StockDispBuffer( x, y, DISP_PRIO_IME1, *work - '0' + CG_CNT_DOWN_0, 0 ); } - // ???h + // ??? x += 32; - // ?????? + // ?????? work++; } //?????? if( DuelFlag == TRUE ){ - // ?????K?? - sprintf_s( moji, " %02d غ", BattleCliTurnNo + 1 ); - // + // ??????? + sprintf_s( moji, "第 %02d 回合", BattleCliTurnNo + 1 ); + //  if(ResoMode == 0 || ResoMode == 2){ StockFontBuffer( 290, 180, FONT_PRIO_BACK, FONT_PAL_YELLOW, moji, 0 ); }else if(ResoMode == 3){ @@ -3528,22 +3528,22 @@ void BattleDown( void ) { BattleCntDownFlag = FALSE; ClearBoxFlag(); - // ??????????? + // ??????????? DeathAction( pActWnd ); // ???????????? pActWnd = NULL; - // ??????u??? + // ????????? ClearBattleButton(); - // ???????hk?????????? - // ?????hk??? + // ????????????????? + // ???????? if( ( battleMenuFlag & BATTLE_MENU && battleMenuReturn == TRUE ) || ( battleMenuFlag & BATTLE_MENU_PET && battleMenuReturn == FALSE ) ){ - // ӡP????????????????? + // ????????????????? if( battlePetNoBak == -1 || p_party[ BattleMyNo + 5 ]->hp <= 0 ){ // ?????? }else{ - // ?????????? + // ?????????? if( bNewServer) lssproto_B_send( sockfd, "W|FF|FF" ); else @@ -3553,17 +3553,17 @@ void BattleDown( void ) // ?????? battleTargetSelectFlag = FALSE; battleMenuReturn = TRUE; - // ???????? + // ???????? play_se( 203, 320, 240 ); // ???????? battleButtonBak = battleButtonBak2; - // ??????????????? + // ??????????????? DeathAction( pActInfoWnd ); pActInfoWnd = NULL; } #endif -// ޸սAIתBUG +// 修复战斗AI转换的BUG #ifdef _FIX_BATTLE_AI void battleMenuFix(void) { @@ -3590,7 +3590,7 @@ void BattleMenuProc( void ) return; } - for( i = 0 ; i < 20 ; i++ ) HpMeterDisp( i ); // o?????? + for( i = 0 ; i < 20 ; i++ ) HpMeterDisp( i ); // ?????? if( p_party[ BattleMyNo ]->hp > 0 && !( BattleBpFlag & BATTLE_BP_PLAYER_MENU_NON && BattleBpFlag & BATTLE_BP_PET_MENU_NON ) ){ @@ -3715,7 +3715,7 @@ void BattleMenuProc( void ) BattleButtonItem(); BattleButtonPet(); BattleButtonEscape(); -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 BattleButtonPPLSKILL(); #endif @@ -3742,7 +3742,7 @@ void BattleMenuProc( void ) ClearBattleButton(); } } -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 battleButtonDispNo[ 0 ] = StockDispBuffer( buttonX, buttonY, DISP_PRIO_IME3, CG_BATTLE_ATT_UP - battleButtonFlag[ 0 ], 2 ); battleButtonDispNo[ 1 ] = StockDispBuffer( buttonX, buttonY, DISP_PRIO_IME3, CG_BATTLE_JUJUTSU_UP - battleButtonFlag[ 1 ], 2 ); battleButtonDispNo[ 2 ] = StockDispBuffer( buttonX, buttonY, DISP_PRIO_IME3, CG_BATTLE_CAPTURE_UP - battleButtonFlag[ 2 ], 2 ); @@ -3766,20 +3766,20 @@ void BattleMenuProc( void ) #endif if( CheckPetSuu() >= 5 ){ -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 StockDispBuffer( buttonX + 44, buttonY - 14, DISP_PRIO_IME4, CG_BTL_BUTTON_CROSS, 0 ); #else StockDispBuffer( buttonX + 28, buttonY - 18, DISP_PRIO_IME4, CG_BTL_BUTTON_CROSS, 0 ); #endif } -#ifdef _LOCKHELP_OK // (ɿ) Syu ADD ɼս +#ifdef _LOCKHELP_OK // (不可开) Syu ADD 锁定不可加入战斗 extern int nowFloor; if((nowFloor <= 8213 && nowFloor >= 8200) || (nowFloor >= 30017 && nowFloor <= 30021) ) NoHelpFlag = TRUE ; #endif if( NoHelpFlag == TRUE ){ -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 StockDispBuffer( buttonX + 28 + 54 + 4 , buttonY - 18 + 4 , DISP_PRIO_IME4, CG_BTL_BUTTON_CROSS, 0 ); #else StockDispBuffer( buttonX + 28 + 54, buttonY - 18, DISP_PRIO_IME4, CG_BTL_BUTTON_CROSS, 0 ); @@ -3787,7 +3787,7 @@ void BattleMenuProc( void ) } #ifdef _MAGIC_NOCAST if( NoCastFlag == TRUE ){ -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 StockDispBuffer( buttonX + 28 -54 - 14, buttonY - 18 + 4, DISP_PRIO_IME4, CG_BTL_BUTTON_CROSS, 0 ); #else StockDispBuffer( buttonX + 28 -54, buttonY - 18, DISP_PRIO_IME4, CG_BTL_BUTTON_CROSS, 0 ); @@ -3821,19 +3821,19 @@ void BattleMenuProc( void ) ClearBoxFlag(); -#ifdef _PETSKILL_DAMAGETOHP // 輼:ԡѪ(Ѫı) - if( battleWazaTargetBak != -1 ){//һغϵļܱ - //Ϊ˱⵱ܲʹʱ,ȴѡ,ʹѡһ - if( petSkill[battlePetNoBak][battleWazaTargetBak].field == 2 //ʾΪѡ - || petSkill[battlePetNoBak][battleWazaTargetBak].skillId == 0 //Change fix ʹԻ򱩷ʱ,ѡػ,ѡ,ǿѡ +#ifdef _PETSKILL_DAMAGETOHP // 宠技:浴血狂狼(嗜血技的变体) + if( battleWazaTargetBak != -1 ){//上一回合的技能编号 + //为了避免当这个技能不可使用时,却被当成已选择,所以再让使用者再选一次 + if( petSkill[battlePetNoBak][battleWazaTargetBak].field == 2 //被标示为不可选 + || petSkill[battlePetNoBak][battleWazaTargetBak].skillId == 0 //Change fix 人物使用针针相对或暴风雨时,若宠接着选防守或待机,则接下来宠物的选单不会出来,这里强制让选单出现 || petSkill[battlePetNoBak][battleWazaTargetBak].skillId == 2 ){ - //if( petSkill[battlePetNoBak][battleWazaTargetBak].skillId == 623 ){ //623:petskill2.txtڵļܱ + //if( petSkill[battlePetNoBak][battleWazaTargetBak].skillId == 623 ){ //623:在petskill2.txt内的技能编号 battleWazaTargetBak = -1; battlePetButtonFlag = TRUE; } else{ -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 // BattleWazaNo = battlePetNoBak; BattleSetWazaHitBox( BattleWazaNo , 0 ); #else @@ -3842,8 +3842,8 @@ void BattleMenuProc( void ) } } #else - if( battleWazaTargetBak != -1 ){ //һغϵļܱ -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ + if( battleWazaTargetBak != -1 ){ //上一回合的技能编号 +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 // BattleWazaNo = battlePetNoBak; BattleSetWazaHitBox( BattleWazaNo , 0 ); #else diff --git a/石器时代8.5客户端最新源代码/石器源码/system/battleproc.cpp b/石器时代8.5客户端最新源代码/石器源码/system/battleproc.cpp index 0208e39..e2eeb94 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/battleproc.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/battleproc.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* battleProc.cpp */ /************************/ #include "../systeminc/version.h" @@ -36,41 +36,41 @@ extern ACTION *boundary_2,*boundary_mark[2]; #ifdef __ATTACK_MAGIC // Global vars -extern int g_iRunEarthQuake; // ״: 0 --> û , 1 --> ʼ , 2 --> -extern int g_iCurRunEarthQuake; // Ŀǰλ -extern int g_iNumRunEarthQuake; // ܴ +extern int g_iRunEarthQuake; // 地震的状况: 0 --> 没地震 , 1 --> 初始化地震 , 2 --> 地震中 +extern int g_iCurRunEarthQuake; // 目前地震的位置线 +extern int g_iNumRunEarthQuake; // 地震的总次数 #endif extern BOOL BattlingFlag; int flash_pal_cnt; -PALETTEENTRY Palette2[256]; // ?????Bl +PALETTEENTRY Palette2[256]; // ????? // ????????? BOOL EncountFlag = FALSE; // ??????? BOOL DuelFlag = FALSE; -// ?????? +// ?????? BOOL NoHelpFlag = FALSE; -#ifdef _MAGIC_NOCAST//Ĭ +#ifdef _MAGIC_NOCAST//沉默 BOOL NoCastFlag = FALSE; #endif // ??????????? BOOL EncountOffFlag = FALSE; -// ???K????? +// ???????? BOOL Battle1P2PFlag; -// ?e?????? +// ??????? ACTION* pActSurprisalWnd; ACTION* pActAudienceExitWnd; -#ifdef _NEWDRAWBATTLEMAP // (ɿ) Syu ADD ԶBattleMap -static ACTION *BattleWaterAct[8]; // +#ifdef _NEWDRAWBATTLEMAP // (不可开放) Syu ADD 自动产生BattleMap +static ACTION *BattleWaterAct[8]; //环境动画 #endif -// u?????? +// ?????? extern int check_all_dead( void ); // ???????? @@ -97,24 +97,24 @@ char *BattleCmdDeb[] = extern -/* Pf *********************************************************/ +/* 佋 *********************************************************/ void battle_quake( void ) { switch(quake_vct_no){ - case 0: //??? + case 0: //??? break; - case 1: //? + case 1: //佋? quake_flg = 60; quake_vct_no = 2; break; - case 2: //? + case 2: //佋? if(quake_flg >= 16){ piyo_point += 16; } else { piyo_point += quake_flg; } piyo_point &= 63; - if(!--quake_flg){ //??? + if(!--quake_flg){ //佋??? quake_vct_no = 0; } break; @@ -124,18 +124,18 @@ void battle_quake( void ) switch( g_iRunEarthQuake ) { - // û + // 没地震 case 0: break; - // ʼ + // 初始化地震 case 1: g_iRunEarthQuake = 2; break; - // + // 地震中 case 2: if( g_iNumRunEarthQuake >= 16 ) @@ -155,7 +155,7 @@ void battle_quake( void ) #endif } -/* ?????? *********************************************************/ +/* ?????? *********************************************************/ void die_flash( void ) { int d0 = 0; @@ -164,7 +164,7 @@ void die_flash( void ) switch(flash_vct_no){ case 0: break; -//?????????? ? ?????????? +//?????????? ? ?????????? case 1: flash_vct_no++; break; @@ -216,39 +216,39 @@ void die_flash( void ) } if(WindowMode){ //?????????? flash_pal_cnt++; - if(flash_pal_cnt == 10){ //??u?? + if(flash_pal_cnt == 10){ //???? flash_pal_cnt = 0; #ifndef D3D_ENGINE lpDraw->lpPALETTE->SetEntries( 0, 0, 256, Palette2 ); #endif } else { - d0 = 1; //???? + d0 = 1; //???? } } else { #ifndef D3D_ENGINE lpDraw->lpPALETTE->SetEntries( 0, 0, 256, Palette2 ); #endif } - if(d0 == 0){ //??? + if(d0 == 0){ //??? flash_vct_no = 0; } break; } } -/* ???????k *********************************************************/ +/* ??????? *********************************************************/ void damage_dispx( void ) { - ACTION *pActLoop = pActTop->pNext; /* Id????????x */ - ACTION *pActLoopBak; /* ????????? */ + ACTION *pActLoop = pActTop->pNext; /* ???????? */ + ACTION *pActLoopBak; /* ????????? */ // ????? while(1){ - /* ?????????? */ + /* ?????????? */ if( pActLoop == pActBtm ) break; - /* ????? */ + /* ????? */ if( pActLoop->deathFlag == FALSE ){ /* Pd( pActLoop->prio ); */ - /* ?????????? */ + /* ?????????? */ if( pActLoop->func == damage_num ){ damage_num(pActLoop); } @@ -261,12 +261,12 @@ void damage_dispx( void ) /* ?????????? */ pActLoop = pActLoop->pNext; }else{ /* ?????? */ - /* q????? */ + /* ????? */ pActLoop->pPrev->pNext = pActLoop->pNext; pActLoop->pNext->pPrev = pActLoop->pPrev; /* ?????? */ pActLoopBak = pActLoop->pNext; - /* ?????? */ + /* ?????? */ ClearAction( pActLoop ); /* ???????? */ pActLoop = pActLoopBak; @@ -274,33 +274,33 @@ void damage_dispx( void ) } } -// ?e??? **************************************************************/ +// ???? **************************************************************/ void SurprisalDisp( void ) { - // ??????????? + // ??????????? if( BattleBpFlag & BATTLE_BP_ENEMY_SURPRISAL || BattleBpFlag & BATTLE_BP_PLAYER_SURPRISAL ){ - // ????????? + // ????????? if( pActSurprisalWnd == NULL ){ - // ????????? + // ????????? pActSurprisalWnd = MakeWindowDisp( 320 - 96, 240 - 48, 3, 2, NULL, 1 ); // ???????? play_se( 202, 320, 240 ); } - // ????????????? + // ????????????? if( pActSurprisalWnd->hp > 0 ){ - // ???????????? + // ???????????? if( MenuToggleFlag & JOY_CTRL_E || MenuToggleFlag & JOY_CTRL_A ){ if( pActSurprisalWnd->x < 320 - 96 + 56 ) pActSurprisalWnd->x += 6; }else{ if( pActSurprisalWnd->x > 320 - 96 ) pActSurprisalWnd->x -= 6; } - // ??????????????? + // ??????????????? if( BattleBpFlag & BATTLE_BP_ENEMY_SURPRISAL ){ - StockFontBuffer( pActSurprisalWnd->x + 38, pActSurprisalWnd->y + 40, FONT_PRIO_FRONT, 0, " ͵Ϯ ", 0 ); + StockFontBuffer( pActSurprisalWnd->x + 38, pActSurprisalWnd->y + 40, FONT_PRIO_FRONT, 0, " 遭敌偷袭 ", 0 ); } - // ???????????? + // ???????????? if( BattleBpFlag & BATTLE_BP_PLAYER_SURPRISAL ){ - StockFontBuffer( pActSurprisalWnd->x + 38, pActSurprisalWnd->y + 40, FONT_PRIO_FRONT, 0, "䲻Ĺ", 0 ); + StockFontBuffer( pActSurprisalWnd->x + 38, pActSurprisalWnd->y + 40, FONT_PRIO_FRONT, 0, "出其不意的攻击", 0 ); } } } @@ -308,7 +308,7 @@ void SurprisalDisp( void ) int xxx; -/*Battle Process******************************************************************/ +/*Battle Process处理******************************************************************/ #ifdef _AI_OTHER #ifdef _AI_CAPTURE extern int AI_OtherSetting[2]; @@ -329,14 +329,14 @@ void BattleProc( void ) skillBtn = 0 ; #endif #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 extern short chatRoomBtn ; chatRoomBtn = 0; SelRoomBtn = 0; #endif switch( SubProcNo ){ - case BATTLE_SUBPROC_INIT: //ڻ + case BATTLE_SUBPROC_INIT: //初期化 #ifdef __AI extern char *AI_Choosen; AI_Choosen = NULL; @@ -357,32 +357,32 @@ void BattleProc( void ) boundary_mark[1] = NULL; } #endif - //Action + //Action消灭 DeathAllAction(); - // սʼʱͷŵˮеĶ -#ifdef _AniRandom // Syu ADD + // 战斗初始时释放掉水世界所有的动画 +#ifdef _AniRandom // Syu ADD 随机产生环境动画 extern void AniRandomRelease(); AniRandomRelease(); #endif -#ifdef _AniCrossFrame // Syu ADD ι +#ifdef _AniCrossFrame // Syu ADD 动画层游过画面生物 extern void crossAniRelease(); crossAniRelease(); #endif -#ifdef _AniCharBubble // Syu ADD ³ +#ifdef _AniCharBubble // Syu ADD 动画层人物吐出气泡 extern void CharbubbleRelease(); CharbubbleRelease(); #endif -#ifdef _AniImmobile // Syu ADD ض +#ifdef _AniImmobile // Syu ADD 定点产生特定动画 extern void ImmobileAniRelease(); ImmobileAniRelease(); #endif -#ifdef _SPECIALSPACEANIM // Syu ADD ⳡ +#ifdef _SPECIALSPACEANIM // Syu ADD 特殊场景动画配置 extern void ReleaseSpecAnim(); ReleaseSpecAnim(); #endif -#ifdef _NEWDRAWBATTLEMAP // Syu ADD ԶBattleMap +#ifdef _NEWDRAWBATTLEMAP // Syu ADD 自动产生BattleMap if ( nowFloor == 817 || nowFloor == 8007 || nowFloor == 8101 || nowFloor == 8100 || nowFloor == 8027 || nowFloor == 8028 || nowFloor == 8029 || nowFloor == 8015 || nowFloor == 8113 || nowFloor == 8114 ) { @@ -403,28 +403,28 @@ void BattleProc( void ) slow_flg = 0; action_inf = 0; oft_test(); - // Menuʼ + // Menu初始化 InitMenu(); - // BattleMenuʼ + // BattleMenu初始化 InitBattleMenu(); pActSurprisalWnd = NULL; pActAudienceExitWnd = NULL; - // Produceʼ + // Produce初始化 ProduceInitFlag = TRUE; - // focusȡ + // 输入focus取得 GetKeyInputFocus( &MyChatBuffer ); - // ????? - // Bufferʼ + // ????? + // Buffer初始化 DispBuffer.DispCnt = 0; FontCnt = 0; - // BattleMapȡ + // BattleMap读取 #ifdef _NEW_RESOMODE //drawMap(); ReadBattleMap( BattleMapNo ); #else ReadBattleMap( BattleMapNo ); #endif - ChatProc(); // Chat + ChatProc(); // Chat处理 ChatBufferToFontBuffer(); // ?????????????????????? // ??????????????? ClearBackSurface(); @@ -441,38 +441,38 @@ void BattleProc( void ) // ??????? DispBuffer.DispCnt = 0; FontCnt = 0; - //?e??????? + //???????? if(DuelFlag == TRUE || eventEnemyFlag == 1 || vsLookFlag == 1) { -#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 µͼ +#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 新地图音乐 if ( nowFloor != 817 && nowFloor != 8007 && nowFloor != 8101 && nowFloor != 8100 && nowFloor != 8027 && nowFloor != 8028 && nowFloor != 8029 && nowFloor != 8015 && nowFloor != 8113 && nowFloor != 8114 ) { #endif - //BossսBGM + //Boss战BGM再生 if( map_bgm_no>=15 && map_bgm_no<=21) play_bgm( 13 ); else play_bgm( 6 ); if(nowFloor == 8519) play_bgm(14); -#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 µͼ +#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 新地图音乐 } else play_bgm ( 24 ) ; #endif } else { -#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 µͼ +#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 新地图音乐 if ( nowFloor != 817 && nowFloor != 8007 && nowFloor != 8101 && nowFloor != 8100 && nowFloor != 8027 && nowFloor != 8028 && nowFloor != 8029 && nowFloor != 8015 && nowFloor != 8113 && nowFloor != 8114 ) { #endif - //ͨսBGM + //通常战斗BGM再生 if( map_bgm_no>=15 && map_bgm_no<=21) play_bgm( 12 ); else play_bgm( 5 ); -#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 µͼ +#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 新地图音乐 } else play_bgm ( 24 ) ; @@ -480,18 +480,18 @@ void BattleProc( void ) } // ???????? NowTime = TimeGetTime(); - // ?????????? + // ?????????? BackBufferDrawType = DRAW_BACK_PRODUCE; - // ?? + // ?? DrawProduce( PRODUCE_HAGARE_OCHI_IN ); - // ???? + // ???? MenuProc(); // ?????? ImeProc(); // ??????? - // field menu ??????????? + // 处理 field menu ??????????? fieldProc2(); // menu flag on ????????? battleMenuFlag2 = TRUE; - // ?????????? + // 检查宠物 ?????????? for( i = 0 ; i < 5 ; i++ ){ // ???????????? if( pet[ i ].useFlag == FALSE ){ @@ -505,17 +505,17 @@ void BattleProc( void ) } // ???????? saveUserSetting(); - // ????k???? + // ???????? SubProcNo++; break; - case BATTLE_SUBPROC_IN_PRODUCE: // ?????? - // ת ?? + case BATTLE_SUBPROC_IN_PRODUCE: // ?????? + // 转景 ?? if( DrawProduce( PRODUCE_HAGARE_OCHI_IN ) == TRUE ){ // ??????? DispBuffer.DispCnt = 0; FontCnt = 0; - // ?????????????????????? */ + // ?????????????????????? */ #ifdef _NEW_RESOMODE //drawMap(); ReadBattleMap( BattleMapNo ); @@ -539,14 +539,14 @@ void BattleProc( void ) FontCnt = 0; // ???????? NowTime = TimeGetTime(); - // ?????????? + // ?????????? BackBufferDrawType = DRAW_BACK_BATTLE; - // ?????????? + // ?????????? /* ?????? */ ChatProc(); // ?????????????????????? ChatBufferToFontBuffer(); - // ??????????? + // ??????????? FlashKeyboardCursor(); // ?????? MenuProc(); @@ -563,7 +563,7 @@ void BattleProc( void ) } break; - case BATTLE_SUBPROC_RECEIVE_BC: //ÿغʼ״̬ʾ + case BATTLE_SUBPROC_RECEIVE_BC: //每回合起始人物状态显示 #ifdef _DEBUG__ if(offlineFlag == TRUE){ @@ -640,7 +640,7 @@ void BattleProc( void ) ); #endif //strcpy( BattleStatus, BattleBcDeb[ BattleDebTurnNo ] ); - //BC + //设置BC封包 set_bc(); SubProcNo++; break; @@ -651,7 +651,7 @@ void BattleProc( void ) ChatProc(); /* #ifndef __AI - //cary ͣԶ + //cary 清除暂停自动攻击 if( PauseAI == 2) PauseAI = 0; if( PauseAI == 1) @@ -663,7 +663,7 @@ void BattleProc( void ) */ // ?????????????????????? ChatBufferToFontBuffer(); - // ??????????? + // ??????????? FlashKeyboardCursor(); // ?????? MenuProc(); @@ -671,12 +671,12 @@ void BattleProc( void ) ImeProc(); // ??????????? fieldProc2(); - // ??q????????????? + // ??????????????? TimeZoneProc(); - // ӡP?? + // ?? if( BattleBpFlag & BATTLE_BP_JOIN ){ // ?????? - strcpy( OneLineInfoStr,"ȴغϽ"); + strcpy( OneLineInfoStr,"等待回合结束。"); } // ????????????????? if( EncountFlag == FALSE ){ @@ -687,7 +687,7 @@ void BattleProc( void ) } /* ????????? */ RunAction(); - // ??????????????? + // ??????????????? StockTaskDispBuffer(); } if( BattleStatusReadPointer != BattleStatusWritePointer ){ @@ -697,45 +697,45 @@ void BattleProc( void ) set_bc(); if( BattleMyNo < BATTLKPKPLYAERNUM ) { if( p_party[ BattleMyNo ]->petFall == 2 ) { - lssproto_TK_recv( sockfd, 0, "P|˳ս", FONT_PAL_YELLOW); + lssproto_TK_recv( sockfd, 0, "P|你中了落马术,座骑已退出战斗。", FONT_PAL_YELLOW); p_party[ BattleMyNo ]->petFall = 0; }else if( p_party[ BattleMyNo ]->onRide == -1 ) { - lssproto_TK_recv( sockfd, 0, "P|˹أ˳ս", FONT_PAL_YELLOW); + lssproto_TK_recv( sockfd, 0, "P|你的座骑受伤过重,已退出战斗。", FONT_PAL_YELLOW); } #ifdef _PETSKILL_BECOMEFOX else if( p_party[ BattleMyNo ]->onRide == -2 ) { - lssproto_TK_recv( sockfd, 0, "P|Ļ˳ս", FONT_PAL_YELLOW); + lssproto_TK_recv( sockfd, 0, "P|你中了媚惑术,座骑已退出战斗。", FONT_PAL_YELLOW); } #endif #ifdef _PETSKILL_BECOMEPIG else if( p_party[ BattleMyNo ]->onRide == -3 ) { - lssproto_TK_recv( sockfd, 0, "P|㴦˳ս", FONT_PAL_YELLOW); + lssproto_TK_recv( sockfd, 0, "P|你处于乌力化,座骑已退出战斗。", FONT_PAL_YELLOW); } #endif #ifdef _PETSKILL_EXPLODE else if( p_party[ BattleMyNo ]->onRide == -4 ) { - lssproto_TK_recv( sockfd, 0, "P|˱ѹ˳ս", FONT_PAL_YELLOW); + lssproto_TK_recv( sockfd, 0, "P|你中了爆裂攻击,座骑已退出战斗。", FONT_PAL_YELLOW); } #endif } - // Pf?????????? + // ?????????? CheckBattleNewPet(); - // ?P??????? + // ???????? if( BattleMyNo < BATTLKPKPLYAERNUM ){ - // ???@e + // ??? p_party[ BattleMyNo ]->mp = BattleMyMp; } - // ???K?????? + // ????????? Battle1P2PFlag = CheckBattle1P2P(); SubProcNo++; } - // ?P????????? + // ?????????? if( BattleMyNo >= 20 ){ - // ????????? + // ????????? if( pActAudienceExitWnd == NULL ){ - // ????????? + // ????????? pActAudienceExitWnd = MakeWindowDisp( 444, 4, 3, 2, NULL, 1 ); // ???????? play_se( 202, 320, 240 ); @@ -743,25 +743,25 @@ void BattleProc( void ) } break; - case BATTLE_SUBPROC_CHAR_IN: // K? + case BATTLE_SUBPROC_CHAR_IN: // ? // ??????????l if( !( s_timer & 7 ) ){ piyo_point++; piyo_point &= 63; } - // ?e??? + // ???? SurprisalDisp(); - // ????V??????????? + // ??????????????? CheckBattleAnimFlag(); /* ????????? */ RunAction(); - // ??????????????? + // ??????????????? StockTaskDispBuffer(); /* ?????? */ ChatProc(); // ?????????????????????? ChatBufferToFontBuffer(); - // ??????????? + // ??????????? FlashKeyboardCursor(); // ?????? MenuProc(); @@ -769,26 +769,26 @@ void BattleProc( void ) ImeProc(); // ??????????? fieldProc2(); - // ??q????????????? + // ??????????????? TimeZoneProc(); - // q? + // ? BattleNameDisp(); - // K??? + // ??? if( action_inf == 3 ){ action_inf = 0; - // PfӡP?????? + // ?????? BattleBpFlag &= ~BATTLE_BP_JOIN; - // u?????? + // ?????? if( check_all_dead() == 1 ){ SubProcNo = BATTLE_SUBPROC_OUT_PRODUCE_INIT; break; } - // ?e?????????? + // ??????????? if( pActSurprisalWnd != NULL ){ - // ?????? + // ?????? DeathAction( pActSurprisalWnd ); pActSurprisalWnd = NULL; - // ?e??????? + // ???????? BattleBpFlag &= ~BATTLE_BP_ENEMY_SURPRISAL; BattleBpFlag &= ~BATTLE_BP_PLAYER_SURPRISAL; @@ -796,16 +796,16 @@ void BattleProc( void ) // ??????? SubProcNo++; } - //PfD?? + //?? if( action_inf == 2 ){ - SubProcNo = BATTLE_SUBPROC_OUT_PRODUCE_INIT; //Pf??? + SubProcNo = BATTLE_SUBPROC_OUT_PRODUCE_INIT; //??? action_inf = 0; // ?????????? BattleCmd[ 0 ] = NULL; } break; - case BATTLE_SUBPROC_CMD_INPUT: // ????V? + case BATTLE_SUBPROC_CMD_INPUT: // ????? #ifdef _DEBUG__ if(offlineFlag == TRUE){ SubProcNo++; @@ -837,17 +837,17 @@ void BattleProc( void ) } - // ????V??????????? + // ??????????????? CheckBattleAnimFlag(); /* ????????? */ RunAction(); - // ??????????????? + // ??????????????? StockTaskDispBuffer(); /* ?????? */ ChatProc(); // ?????????????????????? ChatBufferToFontBuffer(); - // ??????????? + // ??????????? FlashKeyboardCursor(); // ?????? MenuProc(); @@ -855,14 +855,14 @@ void BattleProc( void ) ImeProc(); // ??????????? fieldProc2(); - // ??q????????????? + // ??????????????? TimeZoneProc(); - // q? + // ? BattleNameDisp(); break; - case BATTLE_SUBPROC_RECEIVE_MOVIE: // ????r? + case BATTLE_SUBPROC_RECEIVE_MOVIE: // ????? #ifdef _DEBUG__ if(offlineFlag == TRUE){ strcpy( BattleCmd,"BY teki_A jibun_0 flg_0 damage_0 jibun_1 flg_0 damage_0 jibun_2 flg_0 damage_0" @@ -888,17 +888,17 @@ void BattleProc( void ) piyo_point++; piyo_point &= 63; } - // ????V??????????? + // ??????????????? CheckBattleAnimFlag(); /* ????????? */ RunAction(); - // ??????????????? + // ??????????????? StockTaskDispBuffer(); /* ?????? */ ChatProc(); // ?????????????????????? ChatBufferToFontBuffer(); - // ??????????? + // ??????????? FlashKeyboardCursor(); // ?????? MenuProc(); @@ -906,11 +906,11 @@ void BattleProc( void ) ImeProc(); // ??????????? fieldProc2(); - // ??q????????????? + // ??????????????? TimeZoneProc(); - // q? + // ? BattleNameDisp(); - // ???????r? + // ???????? if( BattleCmdReadPointer != BattleCmdWritePointer ){ strcpy( BattleCmd, BattleCmdBak[ BattleCmdReadPointer ] ); BattleCmdReadPointer = ( BattleCmdReadPointer + 1 ) & ( BATTLE_BUF_SIZE-1 ); @@ -919,34 +919,34 @@ void BattleProc( void ) att_select_flg = FALSE; SubProcNo++; } - // K??? + // ??? if( Battle1P2PFlag == 2 ){ // ?????? - strcpy( OneLineInfoStr,"ȴҡ"); + strcpy( OneLineInfoStr,"等待其他玩家。"); } - // ?P?? + // ??? if( BattleMyNo >= BATTLKPKPLYAERNUM ){ - // ???? + // ???? for( i = 0 ; i < BATTLKPKPLYAERNUM ; i++ ){ - // o?????? + // ?????? HpMeterDisp( i ); } }else{ // ???????? if( BattleMyNo < 10 ){ - for( i = 0 ; i < 10 ; i++ ) HpMeterDisp( i ); // o?????? + for( i = 0 ; i < 10 ; i++ ) HpMeterDisp( i ); // ?????? }else // ???????? if( BattleMyNo >= 10 ){ - for( i = 10 ; i < 20 ; i++ ) HpMeterDisp( i ); // o?????? + for( i = 10 ; i < 20 ; i++ ) HpMeterDisp( i ); // ?????? } #ifdef _BATTLE_PK_PLAYER_FOR_40 if( BattleMyNo < 30 ){ - for( i = 20 ; i < 30 ; i++ ) HpMeterDisp( i ); // o?????? + for( i = 20 ; i < 30 ; i++ ) HpMeterDisp( i ); // ?????? }else // ???????? if( BattleMyNo >= 40 ){ - for( i = 30 ; i < 40 ; i++ ) HpMeterDisp( i ); // o?????? + for( i = 30 ; i < 40 ; i++ ) HpMeterDisp( i ); // ?????? } #endif } @@ -963,7 +963,7 @@ void BattleProc( void ) } } #endif - //??????????? + //??????????? #ifndef __AI if( mouse.onceState == MOUSE_RIGHT_CRICK) PauseAI = 1; @@ -975,14 +975,14 @@ void BattleProc( void ) #endif if( slow_flg ){ if( !( s_timer & 31 ) ){ // ???????? - piyo_point++; // ???????????? + piyo_point++; // ???????????? piyo_point &= 63; // ???????? } if( s_timer & 3 ){ // ???????????????????? - damage_dispx(); // ?????????k + damage_dispx(); // ????????? }else{ RunAction(); /* ????????? */ - battle_quake(); //Pf + battle_quake(); //佋 } } else { // ??????? if( !( s_timer & 7 ) ){ @@ -990,17 +990,17 @@ void BattleProc( void ) piyo_point &= 63; } RunAction(); /* ????????? */ - battle_quake(); //Pf + battle_quake(); //佋 } - //???????? - if( flash_vct_no ) die_flash(); //?????? - // ??????????????? + //???????? + if( flash_vct_no ) die_flash(); //?????? + // ??????????????? StockTaskDispBuffer(); /* ?????? */ ChatProc(); // ?????????????????????? ChatBufferToFontBuffer(); - // ??????????? + // ??????????? FlashKeyboardCursor(); // ?????? MenuProc(); @@ -1008,15 +1008,15 @@ void BattleProc( void ) ImeProc(); // ??????????? fieldProc2(); - // ??q????????????? + // ??????????????? TimeZoneProc(); - // q? + // ? //BattleNameDisp(); - //?????? + //?????? if( action_inf == 1 ){ SubProcNo = BATTLE_SUBPROC_RECEIVE_BC; //????? #ifndef PK_SYSTEM_TIMER_BY_ZHU - BattleCliTurnNo++; // ??????????? + BattleCliTurnNo++; // ??????????? #endif #ifdef _DEBUG__ if(offlineFlag == TRUE){ @@ -1032,24 +1032,24 @@ void BattleProc( void ) // ????????? battleMenuFlag2 = TRUE; } - //PfD?? + //?? if( action_inf == 2 ){ - SubProcNo = BATTLE_SUBPROC_OUT_PRODUCE_INIT; //Pf??? + SubProcNo = BATTLE_SUBPROC_OUT_PRODUCE_INIT; //??? action_inf = 0; // ?????????? BattleCmd[ 0 ] = NULL; } break; - case BATTLE_SUBPROC_OUT_PRODUCE_INIT: // ????? + case BATTLE_SUBPROC_OUT_PRODUCE_INIT: // ????? //?????????? fade_out_bgm(); - // ???????????? + // ???????????? CopyBackBuffer(); - // ?????????? + // ?????????? BackBufferDrawType = DRAW_BACK_PRODUCE; SubProcNo++; -#ifdef _NEWDRAWBATTLEMAP // (ɿ) Syu ADD ԶBattleMap +#ifdef _NEWDRAWBATTLEMAP // (不可开放) Syu ADD 自动产生BattleMap extern int RandBattleBg ; RandBattleBg = 0 ; for ( z = 0 ; z < 8 ; z ++ ) @@ -1063,33 +1063,33 @@ void BattleProc( void ) #endif break; - case BATTLE_SUBPROC_OUT_PRODUCE: // ?? - // ?? + case BATTLE_SUBPROC_OUT_PRODUCE: // ?? + // ?? if( DrawProduce( PRODUCE_4WAY_OUT ) == TRUE ){ #ifdef _HUNDRED_KILL BattleHundredFlag = FALSE; #endif // ???????? ChangeProc( PROC_GAME, 1 ); - // ?????u? + // ?????? DeathAllAction(); - // ????????????????? + // ????????????????? BattlingFlag = FALSE; clearPtActCharObj(); - // ??????????????????? + // ??????????????????? encountNowFlag = 0; - // ????????????????????????? + // ????????????????????????? if( bNewServer) lssproto_EO_send( sockfd, 0 ); else old_lssproto_EO_send( sockfd, 0 ); - //?????????? - // Pf??????????`??????????????? + //?????????? + // ????????????????????????? if( battleResultMsg.useFlag >= 1 ){ BattleResultWndFlag = battleResultMsg.useFlag; // ????????? - battleResultMsg.useFlag = FALSE; // ?Bl??????? + battleResultMsg.useFlag = FALSE; // ???????? } #ifdef _AI_OTHER @@ -1100,9 +1100,9 @@ void BattleProc( void ) #else for(int i=0;i= 24000 && pItem[i+9].graNo <= 24044)){ - // + // 丢掉 if(bNewServer) lssproto_DI_send(sockfd,nowGx,nowGy,i+9); else old_lssproto_DI_send(sockfd,nowGx,nowGy,i+9); } @@ -1113,7 +1113,7 @@ void BattleProc( void ) } break; - case 12: // ? + case 12: // ? break; } @@ -1141,14 +1141,14 @@ void BattleProc( void ) #endif // ???????????? if( BackBufferDrawType != DRAW_BACK_PRODUCE ){ - // Pf???? + // ???? if( BattleEscFlag == TRUE ){ - // ?????? + // ?????? SubProcNo = BATTLE_SUBPROC_OUT_PRODUCE_INIT; // ?????? BattleEscFlag = FALSE; } - // ?P??????????? + // ???????????? if( mouse.onceState & MOUSE_RIGHT_CRICK && BattleMyNo >= 20 ){ DeathAction(pActAudienceExitWnd); pActAudienceExitWnd=NULL; @@ -1159,11 +1159,11 @@ void BattleProc( void ) } // ???????? if( pActAudienceExitWnd != NULL ){ - // ?P???????????????? + // ????????????????? if( pActAudienceExitWnd->hp > 0 ){ - // ?? - StockFontBuffer( pActAudienceExitWnd->x + 30, pActAudienceExitWnd->y + 28, FONT_PRIO_FRONT, 0, "Ҽ", 0 ); - StockFontBuffer( pActAudienceExitWnd->x + 30, pActAudienceExitWnd->y + 52, FONT_PRIO_FRONT, 0, "ս", 0 ); + // ?? + StockFontBuffer( pActAudienceExitWnd->x + 30, pActAudienceExitWnd->y + 28, FONT_PRIO_FRONT, 0, "按滑鼠右键", 0 ); + StockFontBuffer( pActAudienceExitWnd->x + 30, pActAudienceExitWnd->y + 52, FONT_PRIO_FRONT, 0, "结束观战", 0 ); } } } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/character.cpp b/石器时代8.5客户端最新源代码/石器源码/system/character.cpp index 0968c04..321d0bb 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/character.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/character.cpp @@ -1,8 +1,8 @@ -#include +#include #include /* WIN32_LEAN_AND_MEAN?define???WINDOWS.H??? -??????????????????????? +??????????????????????? ????????????????? */ #define WIN32_LEAN_AND_MEAN #include @@ -39,20 +39,20 @@ enum //#define MAX_CHAROBJ 1000 #define MAX_CHAROBJ 1500 CHAROBJ charObj[MAX_CHAROBJ]; -int maxCharObj; // K?? -int tailCharObj; // ????????t -int freeCharObj; // ???????t -int searchCharObj; // ???t +int maxCharObj; // ?? +int tailCharObj; // ???????? +int freeCharObj; // ??????? +int searchCharObj; // ??? -#ifdef _AniCharBubble // Syu ADD ³ +#ifdef _AniCharBubble // Syu ADD 动画层人物吐出气泡 #define RAND(x,y) ((x-1)+1+ (int)( (double)(y-(x-1))*rand()/(RAND_MAX+1.0)) ) -bool popflag = false; // -bool waittimeflag = false; //ݽȴʱ -int waittime = 0 ; //ݽȴʱ -static ACTION *popAct; //ݶ +bool popflag = false; //人物产生气泡与否旗标 +bool waittimeflag = false; //气泡结束后等待时间旗标 +int waittime = 0 ; //气泡结束后等待时间 +static ACTION *popAct; //气泡动画 #endif -// ??????????????? +// ??????????????? int charIconOffsetY[12] = { -71, -88, -84, -88, -96, -102, -88, -88, -88, -85, -85, -88 @@ -77,21 +77,21 @@ int battleIconTbl[][2] = #ifdef _NPC_MAGICCARD struct Posstruct Positiontable[]= { - {19,12,17,12,18,11}, //0 - {18,17,16,15,17,14}, //1 - {13,18,13,16,14,15}, //2 - { 9,14,11,14,12,13}, //3 - {10, 9,12,11,13,10}, //4 - {15, 8,15,10,16, 9}, //5 - {15,12,14,13,15,12}, //6 ׯ + {19,12,17,12,18,11}, //0 玩家 + {18,17,16,15,17,14}, //1 玩家 + {13,18,13,16,14,15}, //2 玩家 + { 9,14,11,14,12,13}, //3 玩家 + {10, 9,12,11,13,10}, //4 玩家 + {15, 8,15,10,16, 9}, //5 玩家 + {15,12,14,13,15,12}, //6 庄家 /* - {23, 9,21, 9,22, 8}, //0 - {22,14,20,12,21,11}, //1 - {17,15,17,13,18,12}, //2 - {13,11,15,11,16,10}, //3 - {14, 6,16, 8,17, 7}, //4 - {19, 5,19, 7,20, 6}, //5 - {18,10,18,10,19, 9}, //6 ׯ + {23, 9,21, 9,22, 8}, //0 玩家 + {22,14,20,12,21,11}, //1 玩家 + {17,15,17,13,18,12}, //2 玩家 + {13,11,15,11,16,10}, //3 玩家 + {14, 6,16, 8,17, 7}, //4 玩家 + {19, 5,19, 7,20, 6}, //5 玩家 + {18,10,18,10,19, 9}, //6 庄家 */ }; @@ -114,13 +114,13 @@ int fonttbl[60]={ }; #endif /* - {23, 9,21, 9,22, 8, 5,-1}, //0 - {22,14,20,12,21,11, 4, 4},//1 - {17,15,17,13,18,12,-1, 5}, //2 - {13,11,15,11,16,10,-5, 1}, //3 - {18,10,16, 8,17, 7,-4,-4}, //4 - {19, 5,19, 7,20, 6, 1,-5}, //5 - {18,18,18,10,19, 9, 0, 0}, //6 ׯ + {23, 9,21, 9,22, 8, 5,-1}, //0 玩家 + {22,14,20,12,21,11, 4, 4},//1 玩家 + {17,15,17,13,18,12,-1, 5}, //2 玩家 + {13,11,15,11,16,10,-5, 1}, //3 玩家 + {18,10,16, 8,17, 7,-4,-4}, //4 玩家 + {19, 5,19, 7,20, 6, 1,-5}, //5 玩家 + {18,18,18,10,19, 9, 0, 0}, //6 庄家 */ short nameOverTheHeadFlag = 1; @@ -135,13 +135,13 @@ void charProc( ACTION *ptAct ) int no; CHAREXTRA *ext; int pFlag = 0; - // ?h?? - // PC???????q??h?? - // PC?????h????V???????h?? + // ??? + // PC??????????? + // PC?????????????????? if( pc.ptAct != ptAct ){ ext = (CHAREXTRA *)ptAct->pYobi; no = ext->charObjTblId; - // ?????V?????????????? + // ??????????????????? if( (charObj[no].status & CHR_STATUS_PARTY) == 0 ){ charMove( ptAct ); pFlag = 0; @@ -155,7 +155,7 @@ void charProc( ACTION *ptAct ) charObj[no].stockDirY = 0; } } - // ??t + // ?? #ifdef _MOVE_SCREEN if (pc.bMoveScreenMode) camMapToGamen(ptAct->mx - iScreenMoveX * GRID_SIZE, ptAct->my - iScreenMoveY * GRID_SIZE, &mx, &my); @@ -165,7 +165,7 @@ void charProc( ACTION *ptAct ) ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); - // ?????????? + // ?????????? #ifdef _NPC_PICTURE #endif drawCharStatus( ptAct ); @@ -195,7 +195,7 @@ void charProc( ACTION *ptAct ) if( pc.ptAct != ptAct ){ if( charObj[no].newFoundFlag ){ S2 xx, yy, ww, hh; - // ??????? + // ??????? realGetPos( ptAct->bmpNo, &xx, &yy ); realGetWH( ptAct->bmpNo, &ww, &hh ); xx += ptAct->x; @@ -210,14 +210,14 @@ void charProc( ACTION *ptAct ) if( 20000 <= ptAct->anim_chr_no && ptAct->anim_chr_no <= 24999 ){ // ???? if( pc.ptAct != ptAct ){ - // d?????????? + // ?????????? if( ptAct->gx < nowGx-16 || nowGx+16 < ptAct->gx || ptAct->gy < nowGy-16 || nowGy+16 < ptAct->gy ){ delCharObj( charObj[no].id ); return; } } - // i??t???????? + // ?????????? if( !itemOverlapCheck( ptAct->bmpNo, ptAct->gx, ptAct->gy ) ){ // ?????????????? setCharPrio( ptAct->bmpNo, ptAct->x, ptAct->y, 0, 0, ptAct->mx, ptAct->my @@ -238,8 +238,8 @@ void charProc( ACTION *ptAct ) ); } } -//ˮActionCharAction޸ -#ifdef _WATERANIMATION //Syu ADD ֮ +//水世界Action套用Char的Action修改 +#ifdef _WATERANIMATION //Syu ADD 泪之海动画层 void waterAniProc( ACTION *ptAct ) { float mx, my; @@ -247,13 +247,13 @@ void waterAniProc( ACTION *ptAct ) int no; CHAREXTRA *ext; int pFlag; - // ?h?? - // PC???????q??h?? - // PC?????h????V???????h?? + // ??? + // PC??????????? + // PC?????????????????? if( pc.ptAct != ptAct ){ ext = (CHAREXTRA *)ptAct->pYobi; no = ext->charObjTblId; - // ?????V?????????????? + // ??????????????????? if( (charObj[no].status & CHR_STATUS_PARTY) == 0 ){ charMove( ptAct ); pFlag = 0; @@ -267,12 +267,12 @@ void waterAniProc( ACTION *ptAct ) charObj[no].stockDirY = 0; } } - // ??t + // ?? camMapToGamen( ptAct->mx, ptAct->my, &mx, &my ); ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); - // ?????????? - // ȡ״̬ᱻƵACTION + // ?????????? + // 不取消掉人物状态会被复制到其他ACTION // drawCharStatus( ptAct ); // ????????? if( ptAct->anim_no == ANIM_HAND @@ -300,7 +300,7 @@ void waterAniProc( ACTION *ptAct ) if( pc.ptAct != ptAct ){ if( charObj[no].newFoundFlag ){ S2 xx, yy, ww, hh; - // ??????? + // ??????? realGetPos( ptAct->bmpNo, &xx, &yy ); realGetWH( ptAct->bmpNo, &ww, &hh ); xx += ptAct->x; @@ -315,17 +315,17 @@ void waterAniProc( ACTION *ptAct ) if( 20000 <= ptAct->anim_chr_no && ptAct->anim_chr_no <= 24999 ){ // ???? if( pc.ptAct != ptAct ){ - // d?????????? + // ?????????? if( ptAct->gx < nowGx-16 || nowGx+16 < ptAct->gx || ptAct->gy < nowGy-16 || nowGy+16 < ptAct->gy ){ delCharObj( charObj[no].id ); return; } } - // i??t???????? + // ?????????? if( !itemOverlapCheck( ptAct->bmpNo, ptAct->gx, ptAct->gy ) ){ // ?????????????? -#ifdef _SPECIALSPACEANIM_FIX //ROG ADD ޸ͼ +#ifdef _SPECIALSPACEANIM_FIX //ROG ADD 修改图层 setPartsPrio( ptAct->bmpNo, ptAct->x, ptAct->y, 0, 0, ptAct->mx, ptAct->my,ptAct->dispPrio); #else setCharPrio( ptAct->bmpNo, ptAct->x, ptAct->y, 0, 0, ptAct->mx, ptAct->my @@ -340,7 +340,7 @@ void waterAniProc( ACTION *ptAct ) }else{ // ???????? // ?????????????? -#ifdef _SPECIALSPACEANIM_FIX //ROG ADD ޸ͼ +#ifdef _SPECIALSPACEANIM_FIX //ROG ADD 修改图层 setPartsPrio( ptAct->bmpNo, ptAct->x, ptAct->y, 0, 0, ptAct->mx, ptAct->my,ptAct->dispPrio); #else setCharPrio( ptAct->bmpNo, ptAct->x, ptAct->y, 0, 0, ptAct->mx, ptAct->my @@ -351,10 +351,10 @@ void waterAniProc( ACTION *ptAct ) #endif } } -/* graNo Sprͼ - gx x - gy y - dispprio ͼĸ˳ +/* graNo Spr图号 + gx 产生的x座标 + gy 产生的y座标 + dispprio 图案的覆盖顺序 */ ACTION *createWaterAnimation( int graNo, int gx, int gy, int dispprio ) @@ -388,46 +388,46 @@ ACTION *createWaterAnimation( int graNo, int gx, int gy, int dispprio ) } #endif -// ???????????? +// ???????????? ACTION *createCharAction( int graNo, int gx, int gy, int dir ) { ACTION *ptAct; float mx, my; - /* ?????????K? */ + /* ?????????? */ ptAct = GetAction( PRIO_CHR, sizeof( CHAREXTRA ) ); if( ptAct == NULL ) return NULL; - // ??? + // ??? ptAct->func = charProc; - // ???????k? + // ???????? ptAct->anim_chr_no = graNo; - // h?k? + // ?? ptAct->anim_no = ANIM_STAND; // ?????????( ??? )( ??????? ) ptAct->anim_ang = dir; - // ?IT + // ? // ptAct->dispPrio = DISP_PRIO_BOX3; ptAct->dispPrio = DISP_PRIO_CHAR; - // 1???????? + // 1???????? ptAct->atr = ACT_ATR_INFO | ACT_ATR_HIT | ACT_ATR_HIDE2; - // ???t - ptAct->nextGx = gx; // ??????????hI? + // ??? + ptAct->nextGx = gx; // ??????????? ptAct->nextGy = gy; ptAct->bufCount = 0; - ptAct->gx = gx; // ???????????? + ptAct->gx = gx; // ???????????佋? ptAct->gy = gy; - ptAct->mx = (float)gx * GRID_SIZE; // ???? + ptAct->mx = (float)gx * GRID_SIZE; // ???? ptAct->my = (float)gy * GRID_SIZE; - ptAct->vx = 0; // ?h? + ptAct->vx = 0; // ?? ptAct->vy = 0; - // ??t + // ?? camMapToGamen( ptAct->mx, ptAct->my, &mx, &my ); ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); return ptAct; } -// ?????hI????????? +// ?????????????? void stockCharMovePoint( ACTION *ptAct, int nextGx, int nextGy ) { if( ptAct == NULL ) @@ -438,14 +438,14 @@ void stockCharMovePoint( ACTION *ptAct, int nextGx, int nextGy ) ptAct->bufGy[ptAct->bufCount] = nextGy; ptAct->bufCount++; }else{ - // ??????????????? + // ??????????????? ptAct->bufCount = 0; setCharWarpPoint( ptAct, nextGx, nextGy ); } } -// ?????hI????????????????? -//?????????????????k???????? +// ?????????????????????? +//????????????????????????? void correctCharMovePoint( ACTION *ptAct, int nextGx, int nextGy ) { int dx, dy; @@ -455,8 +455,8 @@ void correctCharMovePoint( ACTION *ptAct, int nextGx, int nextGy ) int nextGx2, nextGy2; if( ptAct == NULL ) return; - // ??????? - // ??????????????next?{??? + // ??????? + // ??????????????next???? if( ptAct->bufCount <= 0 ){ nextGx2 = ptAct->nextGx; nextGy2 = ptAct->nextGy; @@ -491,14 +491,14 @@ void correctCharMovePoint( ACTION *ptAct, int nextGx, int nextGy ) ptAct->bufCount++; } }else{ - // ??????????????? + // ??????????????? ptAct->bufCount = 0; nCnt--; setCharWarpPoint( ptAct, nGx[nCnt], nGy[nCnt] ); } } -// ?????hI@e +// ????? void setCharMovePoint( ACTION *ptAct, int nextGx, int nextGy ) { float dir1; @@ -568,7 +568,7 @@ void _setCharMovePoint( ACTION *ptAct, int nextGx, int nextGy ) } } -// ????????????? +// ????????????? void shiftBufCount( ACTION *ptAct ) { int i; @@ -582,7 +582,7 @@ void shiftBufCount( ACTION *ptAct ) } } -// ????h?? +// ?????? void charMove( ACTION *ptAct ) { float mx, my; @@ -590,9 +590,9 @@ void charMove( ACTION *ptAct ) return; mx = (float)ptAct->nextGx*GRID_SIZE; my = (float)ptAct->nextGy*GRID_SIZE; - // ?????????????hI?@e?? + // ???????????????? if( mx == ptAct->mx && my == ptAct->my ){ - // ?????????????@e + // ????????????? if( ptAct->bufCount > 0 ){ setCharMovePoint( ptAct, ptAct->bufGx[0], ptAct->bufGy[0] ); shiftBufCount( ptAct ); @@ -600,9 +600,9 @@ void charMove( ACTION *ptAct ) } mx = (float)ptAct->nextGx*GRID_SIZE; my = (float)ptAct->nextGy*GRID_SIZE; - // ?h??? + // ???? if( ptAct->vx != 0 || ptAct->vy != 0 ){ - // ?????????????? + // ?佋????????????? if( pointLen2( ptAct->mx, ptAct->my, mx, my ) <= ptAct->vx*ptAct->vx+ptAct->vy*ptAct->vy ){ ptAct->mx = mx; @@ -610,14 +610,14 @@ void charMove( ACTION *ptAct ) ptAct->vx = 0; ptAct->vy = 0; }else{ - // ?h + // ? ptAct->mx += ptAct->vx; ptAct->my += ptAct->vy; } - // ?h??? + // ???? ptAct->anim_no = ANIM_WALK; }else{ - // ?h????֢t? + // ?????? if( ptAct->walkFlag != 0 ) ptAct->anim_no = ANIM_STAND; ptAct->walkFlag = 0; @@ -626,7 +626,7 @@ void charMove( ACTION *ptAct ) ptAct->gy = (int)(ptAct->my/GRID_SIZE); } -// ????h????h????? +// ????????????? void charMove2( ACTION *ptAct ) { float mx, my; @@ -634,9 +634,9 @@ void charMove2( ACTION *ptAct ) return; mx = (float)ptAct->nextGx*GRID_SIZE; my = (float)ptAct->nextGy*GRID_SIZE; - // ?h??? + // ???? if( ptAct->vx != 0 || ptAct->vy != 0 ){ - // ?????????????? + // ?佋????????????? if( pointLen2( ptAct->mx, ptAct->my, mx, my ) <= ptAct->vx*ptAct->vx+ptAct->vy*ptAct->vy ){ ptAct->mx = mx; @@ -644,14 +644,14 @@ void charMove2( ACTION *ptAct ) ptAct->vx = 0; ptAct->vy = 0; }else{ - // ?h + // ? ptAct->mx += ptAct->vx; ptAct->my += ptAct->vy; } - // ?h??? + // ???? ptAct->anim_no = ANIM_WALK; }else{ - // ?h????֢t? + // ?????? if( ptAct->walkFlag != 0 ) ptAct->anim_no = ANIM_STAND; ptAct->walkFlag = 0; @@ -660,7 +660,7 @@ void charMove2( ACTION *ptAct ) ptAct->gy = (int)(ptAct->my/GRID_SIZE); } -// ????h????h????? +// ????????????? void _charMove( ACTION *ptAct ) { float mx, my; @@ -669,11 +669,11 @@ void _charMove( ACTION *ptAct ) return; mx = (float)ptAct->nextGx*GRID_SIZE; my = (float)ptAct->nextGy*GRID_SIZE; - // ?h??? + // ???? if( ptAct->vx != 0 || ptAct->vy != 0 ){ vx = ptAct->vx * nowSpdRate; vy = ptAct->vy * nowSpdRate; - // ?????????????? + // ?佋????????????? if( pointLen2( ptAct->mx, ptAct->my, mx, my ) <= vx*vx+vy*vy ){ ptAct->mx = mx; @@ -681,14 +681,14 @@ void _charMove( ACTION *ptAct ) ptAct->vx = 0; ptAct->vy = 0; }else{ - // ?h + // ? ptAct->mx += vx; ptAct->my += vy; } - // ?h??? + // ???? ptAct->anim_no = ANIM_WALK; }else{ - // ?h????֢t? + // ?????? if( ptAct->walkFlag != 0 ) ptAct->anim_no = ANIM_STAND; ptAct->walkFlag = 0; @@ -697,7 +697,7 @@ void _charMove( ACTION *ptAct ) ptAct->gy = (int)(ptAct->my/GRID_SIZE); } -// ???????I@e +// ??????? void setCharWarpPoint( ACTION *ptAct, int gx, int gy ) { if( ptAct == NULL ) @@ -712,16 +712,16 @@ void setCharWarpPoint( ACTION *ptAct, int gx, int gy ) ptAct->vy = 0; } -// ?????????@e +// ????????? // // status : ????????????? -// smsg : ?????ѩ?? +// smsg : ??????? // -// smsg???status?@e?? +// smsg???status??? // void setCharStatus( unsigned short *status, char *smsg ) { - // + //  if( strstr( smsg, "P" ) ) *status |= CHR_STATUS_P; else @@ -731,12 +731,12 @@ void setCharStatus( unsigned short *status, char *smsg ) *status |= CHR_STATUS_N; else *status &= (~CHR_STATUS_N); - // ? + // ? if( strstr( smsg, "Q" ) ) *status |= CHR_STATUS_Q; else *status &= (~CHR_STATUS_Q); - // ? + // ? if( strstr( smsg, "S" ) ) *status |= CHR_STATUS_S; else @@ -768,9 +768,9 @@ void setCharLeader( ACTION *ptAct ) int getCharType(ACTION *ptAct) { - extern int ο; + extern int 人物屏蔽开关; if(ProcNo!=PROC_GAME) return 0; - if(!ο ) return 0; + if(!人物屏蔽开关 ) return 0; CHAREXTRA *ext; int no; if( ptAct == NULL ) @@ -825,7 +825,7 @@ void delCharParty( ACTION *ptAct ) charObj[no].status &= (~CHR_STATUS_PARTY); } -// ?????P֢t??? +// ???????? void setCharWatch( ACTION *ptAct ) { CHAREXTRA *ext; @@ -837,7 +837,7 @@ void setCharWatch( ACTION *ptAct ) charObj[no].status |= CHR_STATUS_WATCH; } -// ?????P֢t??????? +// ???????????? void delCharWatch( ACTION *ptAct ) { CHAREXTRA *ext; @@ -1012,7 +1012,7 @@ void delNpcNotice( ACTION *ptAct) } #endif -// ????Pf? +// ????? void setCharBattle( ACTION *ptAct, int battleNo, short sideNo, short helpMode ) { CHAREXTRA *ext; @@ -1031,7 +1031,7 @@ void setCharBattle( ACTION *ptAct, int battleNo, short sideNo, short helpMode ) charObj[no].status &= ~CHR_STATUS_HELP; } -// ????Pf? +// ????? void delCharBattle( ACTION *ptAct ) { CHAREXTRA *ext; @@ -1043,7 +1043,7 @@ void delCharBattle( ACTION *ptAct ) charObj[no].status &= (~(CHR_STATUS_BATTLE | CHR_STATUS_HELP)); } -// +// 交易中 //void setCharBattle( ACTION *ptAct, int battleNo, short sideNo, short helpMode ) void setCharTrade( ACTION *ptAct, int battleNo ) { @@ -1057,7 +1057,7 @@ void setCharTrade( ACTION *ptAct, int battleNo ) //charObj[no].battleNo = battleNo; } -// ????Pf? +// ????? void delCharTrade( ACTION *ptAct ) { CHAREXTRA *ext; @@ -1093,7 +1093,7 @@ void delCharAngel( ACTION *ptAct ) } #endif -// ??????????? +// ??????????? void setCharUseMagic( ACTION *ptAct ) { CHAREXTRA *ext; @@ -1105,9 +1105,9 @@ void setCharUseMagic( ACTION *ptAct ) charObj[no].status |= CHR_STATUS_USE_MAGIC; } -// ??????????????????? +// ??????????????????? // ??????? -extern int ο; +extern int 人物屏蔽开关; void delCharUseMagic( ACTION *ptAct ) { @@ -1120,7 +1120,7 @@ void delCharUseMagic( ACTION *ptAct ) charObj[no].status &= (~CHR_STATUS_USE_MAGIC); } -// ????????? +// ????????? void setCharFukidashi( ACTION *ptAct, unsigned int offTime ) { CHAREXTRA *ext; @@ -1133,7 +1133,7 @@ void setCharFukidashi( ACTION *ptAct, unsigned int offTime ) ext->drawFukidashiTime = offTime + TimeGetTime(); } -// ?????? +// ?????? void drawCharStatus( ACTION *ptAct ) { CHAREXTRA *ext; @@ -1147,7 +1147,7 @@ void drawCharStatus( ACTION *ptAct ) int sideNo; int helpMode; char msg[256]; -#ifdef _AniCharBubble // Syu ADD ³ +#ifdef _AniCharBubble // Syu ADD 动画层人物吐出气泡 int RandAnimate; #endif @@ -1175,7 +1175,7 @@ void drawCharStatus( ACTION *ptAct ) #ifdef _CHAR_MANOR_ if( ext->ptmManorIcon ){ { - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ if(ATR_PAT_NO(ext->ptmManorIcon)){ ATR_PAT_BAK_NO(ext->ptmManorIcon) = ATR_PAT_NO(ext->ptmManorIcon); ATR_PAT_NO(ext->ptmManorIcon) = 0; @@ -1187,7 +1187,7 @@ void drawCharStatus( ACTION *ptAct ) } } short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ ext->ptmManorIcon->x = ptAct->x; ext->ptmManorIcon->y = ptAct->y; ext->ptmManorIcon->mx = ptAct->mx; @@ -1204,13 +1204,13 @@ void drawCharStatus( ACTION *ptAct ) if( (status & CHR_STATUS_BATTLE) != 0 ){ - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ ;//ATR_PAT_NO(ptAct) = 0; }else{ int no; U4 bmpNo; short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ realGetNo( battleIconTbl[(battleNo%10)][(sideNo%1)], &bmpNo ); // ?????????????? setCharPrio( bmpNo, ptAct->x, ptAct->y, 0,ptAct->sFamilyIcon?-(y1/2+_OTHERTEXIAOY_):-(y1/2+_FANILYTEXIAOY_), ptAct->mx, ptAct->my @@ -1226,13 +1226,13 @@ void drawCharStatus( ACTION *ptAct ) // Trade Mark if( (status & CHR_STATUS_TRADE) != 0 ){ - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ ;//ATR_PAT_NO(ptAct) = 0; }else{ U4 bmpNo; short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ realGetNo( CG_TRADE_MARK, &bmpNo ); setCharPrio( bmpNo, ptAct->x, ptAct->y, 0,ptAct->sFamilyIcon?-(y1/2+_OTHERTEXIAOY_):-(y1/2+_FANILYTEXIAOY_), ptAct->mx, ptAct->my #ifdef _SFUMATO @@ -1251,16 +1251,16 @@ void drawCharStatus( ACTION *ptAct ) ext->ptActAngelMark =createCommmonEffectAction( 101865, ptAct->gx, ptAct->gy, 0, 0, DISP_PRIO_CHAR ); }else if( (status & CHR_STATUS_ANGEL) == 0 && ext->ptActAngelMark != NULL ) { - // ?????????????? + // ?????????????? DeathAction( ext->ptActAngelMark ); ext->ptActAngelMark = NULL; }else if( (status & CHR_STATUS_ANGEL) != 0 && ext->ptActAngelMark != NULL ) { //int no; //no = (ptAct->anim_chr_no - SPR_001em) / 20; - //no %= 12; // P??????h??? + //no %= 12; // ????????? // ??????????????? short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ ext->ptActAngelMark->x = ptAct->x; ext->ptActAngelMark->y = ptAct->y + ptAct->anim_y + 140; ext->ptActAngelMark->mx = ptAct->mx; @@ -1280,15 +1280,15 @@ void drawCharStatus( ACTION *ptAct ) } #endif - // ?P??? + // ???? if( (status & CHR_STATUS_WATCH) != 0 ){ - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ ;//ATR_PAT_NO(ptAct) = 0; }else{ int no; U4 bmpNo; short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ realGetNo( CG_ICON_WATCHING, &bmpNo ); // ?????????????? setCharPrio( bmpNo, ptAct->x, ptAct->y, 0,ptAct->sFamilyIcon?-(y1/2+_OTHERTEXIAOY_):-(y1/2+_FANILYTEXIAOY_), ptAct->mx, ptAct->my @@ -1302,13 +1302,13 @@ void drawCharStatus( ACTION *ptAct ) } // ?????? if( (status & CHR_STATUS_HELP) != 0 ){ - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ ;//ATR_PAT_NO(ptAct) = 0; }else{ int no; U4 bmpNo; short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ realGetNo( CG_SPEECH_HELP, &bmpNo ); // ?????????????? setCharPrio( bmpNo, ptAct->x, ptAct->y, 0,ptAct->sFamilyIcon?-(y1/2+_OTHERTEXIAOY_-20):-(y1/2+_FANILYTEXIAOY_-20), ptAct->mx, ptAct->my @@ -1320,21 +1320,21 @@ void drawCharStatus( ACTION *ptAct ) } } // ??????? - //???????????? - //??P???????? + //???????????? + //?????????? if( (status & CHR_STATUS_LEADER) != 0 && ext->ptActLeaderMark == NULL && ((status & CHR_STATUS_BATTLE) == 0 || (status & CHR_STATUS_WATCH) == 0) ){ - // ?????????????? + // ?????????????? ext->ptActLeaderMark = createCommmonEffectAction( SPR_leader, ptAct->gx, ptAct->gy, 0, 0, DISP_PRIO_CHAR ); }else if( ((status & CHR_STATUS_LEADER) == 0 || (status & CHR_STATUS_BATTLE) != 0) && ext->ptActLeaderMark != NULL ){ - // ?????????????? + // ?????????????? DeathAction( ext->ptActLeaderMark ); ext->ptActLeaderMark = NULL; }else if( (status & CHR_STATUS_LEADER) != 0 && ext->ptActLeaderMark != NULL ){ - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct){ if(ATR_PAT_NO(ext->ptActLeaderMark)){ ATR_PAT_BAK_NO(ext->ptActLeaderMark) = ATR_PAT_NO(ext->ptActLeaderMark); ATR_PAT_NO(ext->ptActLeaderMark) = 0; @@ -1346,7 +1346,7 @@ void drawCharStatus( ACTION *ptAct ) } } short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ ext->ptActLeaderMark->x = ptAct->x; ext->ptActLeaderMark->y = ptAct->y; ext->ptActLeaderMark->mx = ptAct->mx; @@ -1366,9 +1366,9 @@ void drawCharStatus( ACTION *ptAct ) } } } - // ????? + // ????? if( (status & CHR_STATUS_USE_MAGIC) != 0 && ext->ptActMagicEffect == NULL ){ - // ???????????? + // ???????????? ext->ptActMagicEffect = createCommmonEffectAction( SPR_effect01, ptAct->gx, ptAct->gy+1, 0, 0, DISP_PRIO_CHAR ); if( pc.ptAct != NULL && pc.ptAct == ptAct ) @@ -1376,7 +1376,7 @@ void drawCharStatus( ACTION *ptAct ) else delCharUseMagic( ptAct ); }else if( ext->ptActMagicEffect != NULL ){ - // ????????????? + // ????????????? ext->ptActMagicEffect->x = ptAct->x; ext->ptActMagicEffect->y = ptAct->y; ext->ptActMagicEffect->mx = ptAct->mx; @@ -1392,23 +1392,23 @@ void drawCharStatus( ACTION *ptAct ) #endif ); }else{ - // ???????????? + // ???????????? DeathAction( ext->ptActMagicEffect ); ext->ptActMagicEffect = NULL; } } - // ?????? + // ?????? if( (status & CHR_STATUS_FUKIDASHI) != 0 ){ if( ext->drawFukidashiTime > TimeGetTime() ){ int no; U4 bmpNo; realGetNo( CG_ICON_FUKIDASI, &bmpNo ); if( SPR_001em <= ptAct->anim_chr_no && ptAct->anim_chr_no <= SPR_114bw ){ - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct){ ;//ATR_PAT_NO(ptAct) = 0; }else{ short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ setCharPrio( bmpNo, ptAct->x, ptAct->y, 20,ptAct->sFamilyIcon?-(y1/2+_OTHERTEXIAOY_):-(y1/2+_FANILYTEXIAOY_), ptAct->mx, ptAct->my #ifdef _SFUMATO , ptAct->sfumato @@ -1435,7 +1435,7 @@ void drawCharStatus( ACTION *ptAct ) if(!ext1->ptStreetVendor){ if(ptAct->TitleText.flg==1){ short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ PutTitleText(ptAct->x-ptAct->TitleText.len/2,ptAct->y-(y1/2+45)-12,0,ptAct->TitleText,0); } } @@ -1456,11 +1456,11 @@ void drawCharStatus( ACTION *ptAct ) StockFontBuffer( ptAct->x-GetStrWidth( msg )/2, ptAct->y-10, FONT_PRIO_BACK, ptAct->charNameColor, msg, 0 ); } -#ifdef _GM_MARK // WON ADD GM ʶ +#ifdef _GM_MARK // WON ADD GM 识别 { int graNo = ptAct->anim_chr_no ; - //֣ǣ + //三种GM造形 if( (graNo == 100420) || (graNo == 100425) || (graNo == 100445) ){ static count1=1, count2=0; char msg[256]; @@ -1472,20 +1472,20 @@ void drawCharStatus( ACTION *ptAct ) } count2++; - sprintf_s( msg , "ǣ"); + sprintf_s( msg , "GM"); StockFontBuffer( ptAct->x-GetStrWidth( msg )/2, ptAct->y-110, FONT_PRIO_BACK, count1, msg, 1); } } #endif -#ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _GM_IDENTIFY // Rog ADD GM识别 int i; sprintf_s( msg , ptAct->gm_name); for(i=2;i>0;i--) StockFontBuffer( ptAct->x-GetStrWidth( msg )/2, ptAct->y-110-i, FONT_PRIO_BACK, i , msg, 1); #endif -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 // if( ptAct->profession_class != 0 ){ { @@ -1493,9 +1493,9 @@ void drawCharStatus( ACTION *ptAct ) switch(pc.profession_class){ case 0: sprintf_s( msg , ""); break; - case 1: sprintf_s( msg , "ʿ"); break; - case 2: sprintf_s( msg , "ʦ"); break; - case 3: sprintf_s( msg , "׷"); break; + case 1: sprintf_s( msg , "白狼勇士"); break; + case 2: sprintf_s( msg , "闇灵巫师"); break; + case 3: sprintf_s( msg , "追猎者"); break; } sprintf_s( pc.profession_class_name , "%s" , msg ) ; //StockFontBuffer( ptAct->x-GetStrWidth( msg )/2, ptAct->y-110, FONT_PRIO_BACK, FONT_PAL_YELLOW, msg, 1); @@ -1506,15 +1506,15 @@ void drawCharStatus( ACTION *ptAct ) #endif -#ifdef _AniCharBubble // Syu ADD ³ +#ifdef _AniCharBubble // Syu ADD 动画层人物吐出气泡 if ( ( (nowFloor == 817) || (nowFloor == 8007) || (nowFloor == 8101) || (nowFloor == 8100) || (nowFloor == 8027) || (nowFloor == 8028) || (nowFloor == 8029) || nowFloor == 8113 || nowFloor == 8114 || (nowFloor == 8015) ) && (popflag == false) && (waittimeflag == false)) { - RandAnimate = RAND ( 101508 , 101509 ); //ѡȡݻ + RandAnimate = RAND ( 101508 , 101509 ); //随机选取左气泡或右气泡 if ( popAct == NULL ) { - //ݲʱҪƫֵ + //做左、右气泡产生时需要的偏移值 if( RandAnimate == 101508 ) popAct = createWaterAnimation( RandAnimate , nowGx + 2 , nowGy - 1 , 30 ); if( RandAnimate == 101509 ) @@ -1523,7 +1523,7 @@ void drawCharStatus( ACTION *ptAct ) } } if ( waittimeflag == false && popAct != NULL) - if ( popAct->anim_cnt == 6 ) //ŵһ + if ( popAct->anim_cnt == 6 ) //拨放到最后一张 { if ( popAct != NULL) { @@ -1533,7 +1533,7 @@ void drawCharStatus( ACTION *ptAct ) popflag = false; waittimeflag = true; } - if ( waittimeflag == true ) //ʱȴһβʱ + if ( waittimeflag == true ) //计时等待下一次产生时间 { waittime ++ ; if (waittime > 350 ) @@ -1565,7 +1565,7 @@ void drawCharStatus( ACTION *ptAct ) ext->ptActEmotion = NULL; //pattern( ext->ptActEmotion, ANM_NOMAL_SPD, ANM_LOOP ); }else{ - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct){ if(ATR_PAT_NO(ext->ptActEmotion)){ ATR_PAT_BAK_NO(ext->ptActEmotion) = ATR_PAT_NO(ext->ptActEmotion); ATR_PAT_NO(ext->ptActEmotion) = 0; @@ -1577,7 +1577,7 @@ void drawCharStatus( ACTION *ptAct ) } } short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ pattern( ext->ptActEmotion, ANM_NOMAL_SPD, ANM_LOOP ); setCharPrio( ext->ptActEmotion->bmpNo, ext->ptActEmotion->x, ext->ptActEmotion->y, 0,ptAct->sFamilyIcon?-(y1/2+_OTHERTEXIAOY_):-(y1/2+_FANILYTEXIAOY_), @@ -1592,11 +1592,11 @@ void drawCharStatus( ACTION *ptAct ) } #endif #ifdef _STREET_VENDOR - extern int ο; + extern int 人物屏蔽开关; if(ext->ptStreetVendor){ BOOL pand = FALSE; - if(ο){ + if(人物屏蔽开关){ if(pc.ptAct == ptAct) pand = TRUE; }else pand = TRUE; if(pand){ @@ -1622,7 +1622,7 @@ void drawCharStatus( ACTION *ptAct ) #ifdef _MIND_ICON if( ext->ptMindIcon){ - //ɾͿ߶ʾ + //这里删除掉就可以走动显示 if( ((ptAct->sMindIcon != SPR_asleep) && (ptAct->sMindIcon != SPR_cafe) && (ptAct->sMindIcon != SPR_accent) ) && @@ -1632,7 +1632,7 @@ void drawCharStatus( ACTION *ptAct ) ext->ptMindIcon = NULL; } else{ - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct){ if(ATR_PAT_NO(ext->ptMindIcon)){ ATR_PAT_BAK_NO(ext->ptMindIcon) = ATR_PAT_NO(ext->ptMindIcon); ATR_PAT_NO(ext->ptMindIcon) = 0; @@ -1644,7 +1644,7 @@ void drawCharStatus( ACTION *ptAct ) } } short x1,y1; - if(ȡߴ( ptAct,&x1,&y1)){ + if(获取动画尺寸( ptAct,&x1,&y1)){ ext->ptMindIcon->x = ptAct->x; ext->ptMindIcon->y = ptAct->y; ext->ptMindIcon->mx = ptAct->mx; @@ -1664,7 +1664,7 @@ void drawCharStatus( ACTION *ptAct ) #endif #ifdef _NPC_EVENT_NOTICE - if( ext->ptNoticeIcon){//ɾͿ߶ʾ + if( ext->ptNoticeIcon){//这里删除掉就可以走动显示 { { if(!ATR_PAT_NO(ext->ptNoticeIcon) ){ @@ -1674,7 +1674,7 @@ void drawCharStatus( ACTION *ptAct ) } short x1,y1,x2,y2; y2=x2=0; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ ext->ptNoticeIcon->x = ptAct->x; ext->ptNoticeIcon->y = ptAct->y; ext->ptNoticeIcon->mx = ptAct->mx; @@ -1696,9 +1696,9 @@ void drawCharStatus( ACTION *ptAct ) #endif #ifdef _SHOWFAMILYBADGE_ - if( ext->ptFamilyIcon){//ɾͿ߶ʾ + if( ext->ptFamilyIcon){//这里删除掉就可以走动显示 { - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ if(ATR_PAT_NO(ext->ptFamilyIcon)){ ATR_PAT_BAK_NO(ext->ptFamilyIcon) = ATR_PAT_NO(ext->ptFamilyIcon); ATR_PAT_NO(ext->ptFamilyIcon) = 0; @@ -1711,7 +1711,7 @@ void drawCharStatus( ACTION *ptAct ) } short x1,y1,x2,y2; y2=x2=0; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ ext->ptFamilyIcon->x = ptAct->x; ext->ptFamilyIcon->y = ptAct->y; ext->ptFamilyIcon->mx = ptAct->mx; @@ -1719,7 +1719,7 @@ void drawCharStatus( ACTION *ptAct ) pattern( ext->ptFamilyIcon, ANM_NOMAL_SPD, ANM_LOOP ); #ifdef _CHARTITLE_ if(ext->ptTitleIcon){ - ȡߴ(ext->ptTitleIcon,&x2,&y2); + 获取动画尺寸(ext->ptTitleIcon,&x2,&y2); x2=x2/2; } #endif @@ -1753,9 +1753,9 @@ void drawCharStatus( ACTION *ptAct ) #endif #ifdef FAMILY_MANOR_ - if( ext->ptmFamilyIcon ){//ɾͿ߶ʾ + if( ext->ptmFamilyIcon ){//这里删除掉就可以走动显示 { - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ if(ATR_PAT_NO(ext->ptmFamilyIcon)){ ATR_PAT_BAK_NO(ext->ptmFamilyIcon) = ATR_PAT_NO(ext->ptmFamilyIcon); ATR_PAT_NO(ext->ptmFamilyIcon) = 0; @@ -1767,7 +1767,7 @@ void drawCharStatus( ACTION *ptAct ) } } short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ ext->ptmFamilyIcon->x = ptAct->x; ext->ptmFamilyIcon->y = ptAct->y; ext->ptmFamilyIcon->mx = ptAct->mx; @@ -1788,9 +1788,9 @@ void drawCharStatus( ACTION *ptAct ) #endif #ifdef _CHARTITLE_ - if( ext->ptTitleIcon ){//ɾͿ߶ʾ + if( ext->ptTitleIcon ){//这里删除掉就可以走动显示 { - if(ο && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ + if(人物屏蔽开关 && ProcNo==PROC_GAME && pc.ptAct != ptAct ){ if(ATR_PAT_NO(ext->ptTitleIcon)){ ATR_PAT_BAK_NO(ext->ptTitleIcon) = ATR_PAT_NO(ext->ptTitleIcon); ATR_PAT_NO(ext->ptTitleIcon) = 0; @@ -1803,7 +1803,7 @@ void drawCharStatus( ACTION *ptAct ) } short x1,y1,x2,y2; y2=x2=0; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ ext->ptTitleIcon->x = ptAct->x; ext->ptTitleIcon->y = ptAct->y; ext->ptTitleIcon->mx = ptAct->mx; @@ -1828,17 +1828,17 @@ void drawCharStatus( ACTION *ptAct ) #ifdef _ITEM_FIREWORK - if (ext->pActFirework[0]) // Ҫ̻ + if (ext->pActFirework[0]) // 有要放烟火 { float fX, fY; camMapToGamen((float)ext->pActFirework[0]->gx * GRID_SIZE, (float)ext->pActFirework[0]->gy * GRID_SIZE, &fX, &fY); ext->pActFirework[0]->x = (int)fX; ext->pActFirework[0]->y = (int)fY; - // һ̻,typeҪô + // 如果第一个烟火放完了,再来以type来决定接下来要怎么放 if (pattern(ext->pActFirework[0], ANM_NOMAL_SPD, ANM_NO_LOOP)) { - if (ext->pActFirework[0]->damage == 0) // һм + if (ext->pActFirework[0]->damage == 0) // 一个放中间二个左右 { int nGX, nGY; @@ -1859,7 +1859,7 @@ void drawCharStatus( ACTION *ptAct ) ext->pActFirework[1]->gy = nGY + 2; ext->pActFirework[0]->damage = -1; } - else if (ext->pActFirework[0]->damage == 1) // м + else if (ext->pActFirework[0]->damage == 1) // 中间三次 { ext->pActFirework[1] = GetAction(PRIO_CHR, 0); ext->pActFirework[1]->anim_chr_no = ext->pActFirework[0]->anim_chr_no; @@ -1867,14 +1867,14 @@ void drawCharStatus( ACTION *ptAct ) ext->pActFirework[1]->anim_ang = 1; ext->pActFirework[1]->actNo = 0; ext->pActFirework[1]->dispPrio = DISP_PRIO_RESERVE; - ext->pActFirework[1]->level = 1; // level + ext->pActFirework[1]->level = 1; // level 拿来当计数用 ext->pActFirework[1]->gx = ext->pActFirework[0]->gx; ext->pActFirework[1]->gy = ext->pActFirework[0]->gy; ext->pActFirework[0]->damage = -2; } else if (ext->pActFirework[0]->damage == 2 || ext->pActFirework[0]->damage == -1) ext->pActFirework[0]->damage = -2; - else if (ext->pActFirework[0]->damage == 3) // һȦ, + else if (ext->pActFirework[0]->damage == 3) // 绕人物四周一圈, 共三次 { ext->pActFirework[1] = GetAction(PRIO_CHR, 0); ext->pActFirework[1]->anim_chr_no = ext->pActFirework[0]->anim_chr_no; @@ -1882,7 +1882,7 @@ void drawCharStatus( ACTION *ptAct ) ext->pActFirework[1]->anim_ang = 1; ext->pActFirework[1]->actNo = 0; ext->pActFirework[1]->dispPrio = DISP_PRIO_RESERVE; - ext->pActFirework[1]->level = 10; // level + ext->pActFirework[1]->level = 10; // level 拿来当计数用 ext->pActFirework[1]->damage = ext->pActFirework[0]->damage; ext->pActFirework[1]->gx = ext->pActFirework[0]->bufGx[0] - 2; ext->pActFirework[1]->gy = ext->pActFirework[0]->bufGy[0] - 2; @@ -1906,7 +1906,7 @@ void drawCharStatus( ACTION *ptAct ) ext->pActFirework[1]->y = (int)fY; if (pattern(ext->pActFirework[1], ANM_NOMAL_SPD, ANM_NO_LOOP)) { - if (--ext->pActFirework[1]->level >= 0) // 㻹Ҫܼ + if (--ext->pActFirework[1]->level >= 0) // 计算还要跑几次 { ext->pActFirework[1]->anim_frame_cnt = 0; ext->pActFirework[1]->anim_cnt = 0; @@ -1993,10 +1993,10 @@ void drawCharStatus( ACTION *ptAct ) //if( iShowdamage[i] == 0) continue; if( iShowdamage[i] > 0 ){ if( iShowdamage[i] == 1111){ - sprintf_s( buf,"ɹ"); + sprintf_s( buf,"成功"); color = FONT_PAL_BLUE; }else if( iShowdamage[i] == 2222 ){ - sprintf_s( buf,"ʧ"); + sprintf_s( buf,"失败"); color = FONT_PAL_PURPLE; }else{ sprintf_s( buf,"-%d",iShowdamage[i]); @@ -2102,7 +2102,7 @@ void drawCharStatus( ACTION *ptAct ) createCommmonEffectAction( 101865, ptAct->gx, ptAct->gy, 0, 0, DISP_PRIO_CHAR ); } else if( ((ptAct->picture>>24) & 0x000000ff) != 2 && ext->ptActPicture != NULL ) { - // ?????????????? + // ?????????????? DeathAction( ext->ptActAngelMark ); ext->ptActAngelMark = NULL; } @@ -2111,12 +2111,12 @@ void drawCharStatus( ACTION *ptAct ) if( ptAct->anim_chr_no == pictable[((ptAct->picture&0x00ff0000)>>16)&0x000000ff] ){ //int no; //no = (ptAct->anim_chr_no - SPR_001em) / 20; - //no %= 12; // P??????h??? + //no %= 12; // ????????? // ??????????????? short x1,y1; - if(ȡߴ(ptAct,&x1,&y1)){ + if(获取动画尺寸(ptAct,&x1,&y1)){ ext->ptActPicture->x = ptAct->x; ext->ptActPicture->y = ptAct->y + ptAct->anim_y + 140; ext->ptActPicture->mx = ptAct->mx; @@ -2139,7 +2139,7 @@ void drawCharStatus( ACTION *ptAct ) int no; U4 bmpNo; no = (ptAct->anim_chr_no - SPR_001em) / 20; - no %= 12; // P??????h??? + no %= 12; // ????????? realGetNo( CG_TRADE_MARK, &bmpNo ); // ?????????????? setCharPrio( bmpNo, ptAct->x, ptAct->y, 0, charIconOffsetY[no], ptAct->mx, ptAct->my @@ -2153,7 +2153,7 @@ void drawCharStatus( ACTION *ptAct ) #endif } -#ifdef _AniCharBubble // Syu ADD ³ +#ifdef _AniCharBubble // Syu ADD 动画层人物吐出气泡 void CharbubbleRelease() { if ( popAct != NULL ) @@ -2165,7 +2165,7 @@ void CharbubbleRelease() waittimeflag = false; } #endif -// ????????????q? +// ????????????? void setCharNameColor( ACTION *ptAct, int color ) { CHAREXTRA *ext; @@ -2178,47 +2178,47 @@ void setCharNameColor( ACTION *ptAct, int color ) charObj[no].charNameColor = color; } -// ?o??????? ///////////////////////////////////////////////// +// ???????? ///////////////////////////////////////////////// ACTION *createCommmonEffectAction( int graNo, int gx, int gy, int anim, int dir, int prio ) { ACTION *ptAct; float mx, my; - /* ?????????K? */ + /* ?????????? */ ptAct = GetAction( PRIO_CHR, 0 ); if( ptAct == NULL ) return NULL; - // ???????k? + // ???????? ptAct->anim_chr_no = graNo; - // h?k? + // ?? ptAct->anim_no = anim; // ?????????( ??? )( ??????? ) ptAct->anim_ang = dir; - // ?IT + // ? ptAct->dispPrio = prio; - // 1???????? + // 1???????? ptAct->atr = ACT_ATR_HIDE2; - // ???t - ptAct->nextGx = gx; // ??????????hI? + // ??? + ptAct->nextGx = gx; // ??????????? ptAct->nextGy = gy; - ptAct->gx = gx; // ???????????? + ptAct->gx = gx; // ???????????佋? ptAct->gy = gy; - ptAct->mx = (float)gx * GRID_SIZE; // ???? + ptAct->mx = (float)gx * GRID_SIZE; // ???? ptAct->my = (float)gy * GRID_SIZE; - ptAct->vx = 0; // ?h? + ptAct->vx = 0; // ?? ptAct->vy = 0; - // ??t + // ?? camMapToGamen( ptAct->mx, ptAct->my, &mx, &my ); ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); return ptAct; } -// ?o??????????????? ///////////////////////////////// -// ???????????????????????? +// ???????????????? ///////////////////////////////// +// ???????????????????????? void commmonEffectNoLoop( ACTION *ptAct ) { float mx, my; - // ??t + // ?? camMapToGamen( ptAct->mx, ptAct->my, &mx, &my ); ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); @@ -2231,7 +2231,7 @@ void commmonEffectNoLoop( ACTION *ptAct ) #endif ); else{ - // ??????????????????? + // ??????????????????? DeathAction( ptAct ); ptAct = NULL; } @@ -2241,39 +2241,39 @@ ACTION *createCommmonEffectNoLoop( int graNo, int gx, int gy, int anim, int dir, { ACTION *ptAct; float mx, my; - /* ?????????K? */ + /* ?????????? */ ptAct = GetAction( PRIO_CHR, 0 ); if( ptAct == NULL ) return NULL; - // ??? + // ??? ptAct->func = commmonEffectNoLoop; - // ???????k? + // ???????? ptAct->anim_chr_no = graNo; - // h?k? + // ?? ptAct->anim_no = anim; // ?????????( ??? )( ??????? ) ptAct->anim_ang = dir; - // ?IT + // ? ptAct->dispPrio = prio; - // 1???????? + // 1???????? ptAct->atr = ACT_ATR_HIDE2; - // ???t - ptAct->nextGx = gx; // ??????????hI? + // ??? + ptAct->nextGx = gx; // ??????????? ptAct->nextGy = gy; - ptAct->gx = gx; // ???????????? + ptAct->gx = gx; // ???????????佋? ptAct->gy = gy; - ptAct->mx = (float)gx * GRID_SIZE; // ???? + ptAct->mx = (float)gx * GRID_SIZE; // ???? ptAct->my = (float)gy * GRID_SIZE; - ptAct->vx = 0; // ?h? + ptAct->vx = 0; // ?? ptAct->vy = 0; - // ??t + // ?? camMapToGamen( ptAct->mx, ptAct->my, &mx, &my ); ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); return ptAct; } -// ???h?? ///////////////////////////////////////////////////////// +// ????? ///////////////////////////////////////////////////////// void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, int effectno, int effectparam1, int effectparam2 ) { @@ -2285,7 +2285,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ext = (CHAREXTRA *)ptAct->pYobi; no = ext->charObjTblId; switch( action ){ - // ??֢t + // ?? case 0: ptAct->bufCount = 0; ptAct->anim_no = ANIM_STAND; @@ -2295,7 +2295,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, // ??? case 31: - // ??֢t???G?{?????????? + // ???????????????? // ????????? setCharWarpPoint( ptAct, x, y ); ptAct->bufCount = 0; @@ -2305,24 +2305,24 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, charObj[no].stockDir = -1; break; - // ?? + // ?? case 30: - // ???????????? + // ??佋?????????? charObj[no].stockDir = dir; charObj[no].stockDirX = x; charObj[no].stockDirY = y; if( (x == ptAct->nextGx && y == ptAct->nextGy) || ABS( ABS( x - ptAct->nextGx ) - ABS( y - ptAct->nextGy ) ) > 1 ) break; - // ? + // ? case 1: - // NPC????????h???????V?????? + // NPC????????????????????? if( (charObj[no].status & CHR_STATUS_PARTY) != 0 && (charObj[no].status & CHR_STATUS_LEADER) != 0 ){ // ?????????????? if( ptAct->bufCount < sizeof( ptAct->bufGx )/sizeof( int ) ) correctCharMovePoint( ptAct, x, y ); else{ - // ???????????????????????? + // ???????????????????????? stockCharMovePoint( ptAct, x, y ); charObj[no].stockDir = -1; // ????????? @@ -2367,18 +2367,18 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ptAct->anim_ang = dir; break; - // ? + // ? case 5: ptAct->anim_no = ANIM_DEAD; ptAct->anim_no_bak = -1; ptAct->anim_ang = dir; break; - // ?? + // ?? case 6: break; - // ????? + // ????? case 7: break; @@ -2386,7 +2386,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, case 8: /* UsedMagic */ break; - // X?? + // ?? case 10: ptAct->anim_no = ANIM_DEAD; ptAct->anim_no_bak = -1; @@ -2400,7 +2400,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ptAct->anim_ang = dir; break; - // ?? + // ?? case 12: ptAct->anim_no = ANIM_HAND; ptAct->anim_no_bak = -1; @@ -2414,14 +2414,14 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ptAct->anim_ang = dir; break; - // W? + // ? case 14: ptAct->anim_no = ANIM_ANGRY; ptAct->anim_no_bak = -1; ptAct->anim_ang = dir; break; - // v?? + // ?? case 15: ptAct->anim_no = ANIM_SAD; ptAct->anim_no_bak = -1; @@ -2435,7 +2435,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ptAct->anim_ang = dir; break; - // ??h???? + // ?????? case 17: ptAct->anim_no = ANIM_WALK; ptAct->anim_no_bak = -1; @@ -2449,14 +2449,14 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ptAct->anim_ang = dir; break; - // ??֢t??????? + // ????????? case 19: ptAct->anim_no = ANIM_STAND; ptAct->anim_no_bak = -1; ptAct->anim_ang = dir; break; - // Pfѩ + //  case 20: if( effectno >= 0 ){ setCharBattle( ptAct, effectno, effectparam1, effectparam2 ); @@ -2469,7 +2469,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ptAct->anim_ang = dir; break; - // ????ѩ + // ???? case 21: if( effectno == 1 ) setCharLeader( ptAct ); @@ -2478,7 +2478,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ptAct->anim_ang = dir; break; - // ?Pѩ + // ? case 22: if( effectno == 1 ) setCharWatch( ptAct ); @@ -2488,12 +2488,12 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ptAct->anim_ang = dir; break; - // ???????????q? + // ???????????? case 23: setCharNameColor( ptAct, effectno ); break; - // + // 交易中 case 32: if( effectno >= 0 ){ setCharTrade( ptAct, effectno ); @@ -2598,7 +2598,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ext->pActFirework[1] = NULL; } ext->pActFirework[0] = GetAction(PRIO_CHR, 0); - ext->pActFirework[0]->damage = effectno; // damage type (effectno = type) + ext->pActFirework[0]->damage = effectno; // 借用 damage 来储存 type (effectno = type) ext->pActFirework[0]->anim_chr_no = effectparam1; ext->pActFirework[0]->anim_no = ANIM_STAND; ext->pActFirework[0]->anim_ang = 1; @@ -2638,8 +2638,8 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, } //changePcAct(x, y, dir, 60 , giver , actionNum , petaction) //changePcAct( card , damage , dir, 60 , player , actionNum , action); - //effectno ֵʩߵλñ - if( effectparam2 == 3 ){ //ħ + //effectno 传来的值代表施放者的位置编号 + if( effectparam2 == 3 ){ //魔法牌 ext->pActMagiccard[0] = GetAction(PRIO_CHR,0); ext->pActMagiccard[0]->anim_chr_no = effectparam1; ext->pActMagiccard[0]->dispPrio = DISP_PRIO_RESERVE; @@ -2650,7 +2650,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ext->pActMagiccard[0]->gx = Positiontable[effectno].petX+1 + x; ext->pActMagiccard[0]->gy = Positiontable[effectno].petY-1 + y; } - }else if( effectparam2 == 0 ){ //ӡǷ + }else if( effectparam2 == 0 ){ //被封印或是放弃出牌 ext->pActMagiccard[0] = GetAction(PRIO_CHR,0); ext->pActMagiccard[0]->anim_chr_no = 101290; ext->pActMagiccard[0]->dispPrio = DISP_PRIO_RESERVE; @@ -2669,14 +2669,14 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, ext->pActMagiccard[i]->gx = Positiontable[effectno].petX + x; ext->pActMagiccard[i]->gy = Positiontable[effectno].petY + y; ext->pActMagiccard[i]->dispPrio = DISP_PRIO_RESERVE; - ext->pActMagiccard[i]->anim_ang = dir;//1; // + ext->pActMagiccard[i]->anim_ang = dir;//1; //方向 } ext->pActMagiccard[1]->anim_no = ANIM_STAND; - if( effectparam2 == 1 ) //ƹ + if( effectparam2 == 1 ) //宠牌攻击 ext->pActMagiccard[2]->anim_no = ANIM_ATTACK; - else if( effectparam2 == 2 ) //Ʒ + else if( effectparam2 == 2 ) //宠牌防御 ext->pActMagiccard[2]->anim_no = ANIM_GUARD; } #ifdef _MOVE_SCREEN @@ -2698,7 +2698,7 @@ void changeCharAct( ACTION *ptAct, int x, int y, int dir, int action, } // ID?? -// ??k 0? ... ID????t / -1 ... ??? +// ??: 0? ... ID???? / -1 ... ??? int searchCharObjId( int id ) { int i; @@ -2722,8 +2722,8 @@ int searchCharObjId( int id ) return no; } -// ??? -// ??kTRUE ... ??????? +// ??? +// ??:TRUE ... ??????? BOOL checkCharObjPoint( int gx, int gy, short type ) { int i; @@ -2737,8 +2737,8 @@ BOOL checkCharObjPoint( int gx, int gy, short type ) return FALSE; } -// ????????? -// ??k1 ... ?????????????? +// ????????? +// ??:1 ... ?????????????? // 0 ... ???? #ifdef _ANGEL_SUMMON int checkCharObjPointStatus( int gx, int gy, short type, unsigned status ) @@ -2759,8 +2759,8 @@ int checkCharObjPointStatus( int gx, int gy, short type, unsigned short status ) return 0; } -// ????????? -// ??k1 ... ???????????????? +// ????????? +// ??:1 ... ???????????????? // 0 ... ???? #ifdef _ANGEL_SUMMON int checkCharObjPointNotStatus( int gx, int gy, short type, unsigned status ) @@ -2781,8 +2781,8 @@ int checkCharObjPointNotStatus( int gx, int gy, short type, unsigned short statu return 0; } -#ifdef _CHAR_PROFESSION // WON ADD ְҵ -#ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +#ifdef _GM_IDENTIFY // Rog ADD GM识别 void setNpcCharObj( int id, int graNo, int gx, int gy, int dir, char *fmname, char *name, char *freeName, int level, char *petname, int petlevel, int nameColor, int walk, int height, int charType, int profession_class, char *gm_name ) @@ -2909,7 +2909,7 @@ void setNpcCharObj( int id, int graNo, int gx, int gy, int dir, char *fmname, charObj[no].ptAct->itemNameColor = nameColor; -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 charObj[no].ptAct->profession_class = profession_class; #endif #ifdef _NPC_PICTURE @@ -2917,7 +2917,7 @@ void setNpcCharObj( int id, int graNo, int gx, int gy, int dir, char *fmname, charObj[no].ptAct->picturetemp = ((((picture)&0x00ff0000)>>16)&0x000000ff);//(picture&0x0000ffff); //charObj[no].ptAct->anim_no = ((((picture)&0x0000ff00)>>8 )&0x000000ff); #endif -#ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _GM_IDENTIFY // Rog ADD GM识别 if( strlen( gm_name ) <= GM_NAME_LEN ) strcpy( charObj[no].ptAct->gm_name, gm_name ); #endif @@ -2932,14 +2932,14 @@ BOOL setReturnPetObj( int id, int graNo, int gx, int gy, int dir, char *name, char *freeName, int level, int nameColor, int walk, int height, int charType ) { int no; - // K??????????? + // ??????????? if( (no = searchCharObjId( id )) >= 0 ) - // ????? + // ????? return FALSE; - // ??K?????????K? + // ???????????? no = getCharObjBuf(); if( no < 0 ) - return FALSE; // ???????????? + return FALSE; // ???????????? charObj[no].ptAct = NULL; charObj[no].use = CHAROBJ_USE_VIEW; charObj[no].type = getAtrCharObjType( charType ); @@ -2970,17 +2970,17 @@ void setItemCharObj( int id, int graNo, int gx, int gy, int dir, int classNo, ch int no; BOOL existFlag = FALSE; CHAREXTRA *ext; - // K??????????? + // ??????????? if( (no = searchCharObjId( id )) >= 0 ) existFlag = TRUE; - // ??K?????????K? + // ???????????? if( !existFlag ){ no = getCharObjBuf(); if( no < 0 ) - return; // ???????????? + return; // ???????????? charObj[no].ptAct = createCharAction( graNo, gx, gy, dir ); if( charObj[no].ptAct == NULL ) - // K??????????o??????????? + // ????????????????????? return; charObj[no].use = CHAROBJ_USE_VIEW; ext = (CHAREXTRA *)charObj[no].ptAct->pYobi; @@ -2997,12 +2997,12 @@ void setItemCharObj( int id, int graNo, int gx, int gy, int dir, int classNo, ch if( strlen( info ) <= 60 ) strcpy( charObj[no].info, info ); charObj[no].charType = ACT_ATR_TYPE_ITEM; - charObj[no].newFoundFlag = 0; // D????????? - // ???????????k?V?? + charObj[no].newFoundFlag = 0; // ????????? + // ?????????????? if( charObj[no].ptAct == NULL ) return; charObj[no].ptAct->anim_chr_no = graNo; - // 1??????????name?V?? + // 1??????????name??? if( strlen( info ) <= ITEM_NAME_LEN ) strcpy( charObj[no].ptAct->name, info ); else @@ -3019,17 +3019,17 @@ void setMoneyCharObj( int id, int graNo, int gx, int gy, int dir, int money, cha int no; BOOL existFlag = FALSE; CHAREXTRA *ext; - // K??????????? + // ??????????? if( (no = searchCharObjId( id )) >= 0 ) existFlag = TRUE; - // ??K?????????K? + // ???????????? if( !existFlag ){ no = getCharObjBuf(); if( no < 0 ) - return; // ???????????? + return; // ???????????? charObj[no].ptAct = createCharAction( graNo, gx, gy, dir ); if( charObj[no].ptAct == NULL ) - // K??????????o??????????? + // ????????????????????? return; charObj[no].use = CHAROBJ_USE_VIEW; ext = (CHAREXTRA *)charObj[no].ptAct->pYobi; @@ -3046,12 +3046,12 @@ void setMoneyCharObj( int id, int graNo, int gx, int gy, int dir, int money, cha if( strlen( info ) <= 60 ) strcpy( charObj[no].info, info ); charObj[no].charType = ACT_ATR_TYPE_GOLD; - charObj[no].newFoundFlag = 0; // D????????? - // ???????????k?V?? + charObj[no].newFoundFlag = 0; // ????????? + // ?????????????? if( charObj[no].ptAct == NULL ) return; charObj[no].ptAct->anim_chr_no = graNo; - // 1??????????name?V?? + // 1??????????name??? if( strlen( info ) <= CHAR_NAME_LEN ) strcpy( charObj[no].ptAct->name, info ); else @@ -3059,20 +3059,20 @@ void setMoneyCharObj( int id, int graNo, int gx, int gy, int dir, int money, cha charObj[no].ptAct->atr |= ACT_ATR_TYPE_GOLD; } -// ??????????x -// ??kcharObj???? +// ?????????? +// ??:charObj???? // -1 ... ??????? int getCharObjBuf( void ) { int i; int ret; - // ???????????? + // ???????????? if( maxCharObj >= MAX_CHAROBJ ) return -1; ret = freeCharObj; - // D?????k? + // ?????? maxCharObj++; - // ???K??t + // ????? if( freeCharObj+1 > tailCharObj ) tailCharObj = freeCharObj+1; // ??????????? @@ -3093,9 +3093,9 @@ int getCharObjBuf( void ) return ret; } -// ???????N?????????? -// ? ?type ... ????????????k? -// ??k??????atr?@e??Nͣk +// ????????????????? +// ? ?:type ... ????????????? +// ??:??????atr??? int getAtrCharType( int type ) { switch( type ){ @@ -3106,16 +3106,16 @@ int getAtrCharType( int type ) // ??? case CHAR_TYPEPET: return ACT_ATR_TYPE_PET; - // ??\ + // ?? default: return ACT_ATR_TYPE_OTHER; } return 0; } -// ?????????????????? -// ? ?type ... ????????????k? -// ??kcharObj?type?@e??Nͣk +// ?????????????????? +// ? ?:type ... ????????????? +// ??:charObj?type??? int getAtrCharObjType( int type ) { int ret; @@ -3138,7 +3138,7 @@ int getAtrCharObjType( int type ) return ret; } -// ID?????????????? +// ID?????????????? // ?????NULL ACTION *getCharObjAct( int id ) { @@ -3151,7 +3151,7 @@ ACTION *getCharObjAct( int id ) } -// ???????????? +// ???????????? void delCharObj( int id ) { int i; @@ -3163,7 +3163,7 @@ void delCharObj( int id ) return; } no = searchCharObjId( id ); - // ID??????? + // ID??????? if( no >= 0 ){ if( charObj[no].ptAct != NULL ){ ext = (CHAREXTRA *)charObj[no].ptAct->pYobi; @@ -3241,13 +3241,13 @@ void delCharObj( int id ) charObj[no].use = CHAROBJ_USE_FREE; charObj[no].status = 0; charObj[no].stockDir = -1; - // K??? + // ??? if( maxCharObj > 0 ) maxCharObj--; - // ?????t??q??????????t??? + // ???????????????????? if( freeCharObj > no ) freeCharObj = no; - // K?????????S? + // ?????????? for( i = tailCharObj; i > 0; i-- ){ if( charObj[i-1].use != CHAROBJ_USE_FREE ){ tailCharObj = i; @@ -3393,7 +3393,7 @@ void resetCharObj( void ) } -// ??????????????????????? +// ??????????????????????? void clearPtActCharObj( void ) { int i; @@ -3409,7 +3409,7 @@ void clearPtActCharObj( void ) } -// ????????????????????u?????? +// ?????????????????????????? void restorePtActCharObjAll( void ) { int i; @@ -3433,8 +3433,8 @@ void restorePtActCharObjAll( void ) ext->charObjTblId = i; // NPC???????? - // \?PC???????? - // ?Y + // ?PC???????? + // ? if( charObj[i].type == CHAROBJ_TYPE_NPC || charObj[i].type == CHAROBJ_TYPE_USER_NPC ) { @@ -3446,7 +3446,7 @@ void restorePtActCharObjAll( void ) // Item???????? if( charObj[i].type == CHAROBJ_TYPE_ITEM ) { - // 1??????????name?V?? + // 1??????????name??? if( strlen( charObj[i].info ) <= ITEM_NAME_LEN ) { strcpy( charObj[i].ptAct->name, charObj[i].info ); @@ -3461,7 +3461,7 @@ void restorePtActCharObjAll( void ) // ?????????? if( charObj[i].type == CHAROBJ_TYPE_MONEY ) { - // 1??????????name?V?? + // 1??????????name??? if( strlen( charObj[i].info ) <= CHAR_NAME_LEN ) { strcpy( charObj[i].ptAct->name, charObj[i].info ); @@ -3486,10 +3486,10 @@ void restorePtActCharObj( int id ) if( id < 0 ) return; - // K??????????? + // ??????????? if( (no = searchCharObjId( id )) < 0 ) { - // ?????? + // ?????? return; } @@ -3500,7 +3500,7 @@ void restorePtActCharObj( int id ) createCharAction( charObj[no].graNo, charObj[no].gx, charObj[no].gy, charObj[no].dir ); if( charObj[no].ptAct == NULL ) { - // ??????????????? + // ??????????????? return; } @@ -3516,7 +3516,7 @@ void restorePtActCharObj( int id ) } -// ????t? +// ????? void setMovePointCharObj( int id, int nextGx, int nextGy ) { int no; @@ -3532,7 +3532,7 @@ void setMovePointCharObj( int id, int nextGx, int nextGy ) /////////////////////////////////////////////////////////////////////////// -// i??????i????????????????????? +// ??????????????????????????? typedef struct { @@ -3551,7 +3551,7 @@ void initItemOverlapCheck( void ) } -// ??k TRUE ... i???? +// ??: TRUE ... ???? // FALSE ... ?? BOOL itemOverlapCheck( unsigned int bmpNo, int gx, int gy ) { @@ -3582,20 +3582,20 @@ BOOL itemOverlapCheck( unsigned int bmpNo, int gx, int gy ) /////////////////////////////////////////////////////////////////////////// -// ???????? +// ???????? -// ?????????????? +// ?????????????? void limitCantClientDir( short *dir ) { - // dir?????????????? + // dir?????????????? if( ((*dir) % 2) == 0 ) { (*dir)++; } } -// dirk? 0 ?? 7 ??????? +// dir? 0 ?? 7 ??????? void ajustClientDir( short *dir ) { if( *dir < 0 ) @@ -3627,7 +3627,7 @@ void getPetRoute( ACTION *ptAct ) if( ptAct->bufCount > 0 ) return; - // ???Re????????? + // ???????????? if( nowGx != oldGx || nowGy != oldGy ) return; @@ -3687,13 +3687,13 @@ void getPetRoute( ACTION *ptAct ) } -// ?h?? +// ??? BOOL petMoveProc( ACTION *ptAct ) { PETEXTRA *pe = (PETEXTRA *)ptAct->pYobi; - // d?????????? - // ???8?????? + // ?????????? + // ???8?????? if( ABS( ptAct->gx - nowGx ) >= 13 || ABS( ptAct->gy - nowGy ) >= 13 || (pe->createTime+8000 < TimeGetTime() && ptAct->vx == 0 && ptAct->vy == 0) ) @@ -3718,7 +3718,7 @@ BOOL petMoveProc( ACTION *ptAct ) if( ptAct->vx == 0 && ptAct->vy == 0 ) { - // ?h????????t??? + // ???????????? getPetRoute( ptAct ); } charMove( ptAct ); @@ -3754,7 +3754,7 @@ BOOL uprisePetProc( ACTION *ptAct ) 0, 0, ptAct->dispPrio ); } - // ??????????? + // ??????????? if( pe->createTime+1200 < TimeGetTime() ) { restorePtActCharObj( pe->id ); @@ -3766,7 +3766,7 @@ BOOL uprisePetProc( ACTION *ptAct ) } -// ?????????? +// ?????????? BOOL petCircleOutProc( ACTION *ptAct ) { PETEXTRA *pe = (PETEXTRA *)ptAct->pYobi; @@ -3804,7 +3804,7 @@ BOOL petCircleOutProc( ACTION *ptAct ) dx = (float)pe->r * CosT( angle ); dy = (float)pe->r * SinT( angle ); - // ??t + // ?? camMapToGamen( ptAct->mx+dx, ptAct->my+dy, &mx, &my ); ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); @@ -3826,7 +3826,7 @@ BOOL petCircleOutProc( ACTION *ptAct ) } -// ????????? +// ????????? BOOL petCircleInProc( ACTION *ptAct ) { PETEXTRA *pe = (PETEXTRA *)ptAct->pYobi; @@ -3870,7 +3870,7 @@ BOOL petCircleInProc( ACTION *ptAct ) dx = (float)pe->r * CosT( angle ); dy = (float)pe->r * SinT( angle ); - // ??t + // ?? camMapToGamen( ptAct->mx+dx, ptAct->my+dy, &mx, &my ); ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); @@ -3902,7 +3902,7 @@ void petProc( ACTION *ptAct ) switch( pe->mode ) { - // ?????????? + // ?????:????? case 0: if( !petMoveProc( ptAct ) ) { @@ -3910,8 +3910,8 @@ void petProc( ACTION *ptAct ) } break; - // ????? - // ???????????? + // ?????: + // ???????????:? case 1: if( !uprisePetProc( ptAct ) ) { @@ -3919,7 +3919,7 @@ void petProc( ACTION *ptAct ) } break; - // ?????????? + // ?????:????? case 2: if( !petCircleOutProc( ptAct ) ) { @@ -3927,7 +3927,7 @@ void petProc( ACTION *ptAct ) } break; - // ?????????? + // ????:?????? case 3: if( !petCircleInProc( ptAct ) ) { @@ -3936,7 +3936,7 @@ void petProc( ACTION *ptAct ) break; } - // ??t + // ?? camMapToGamen( ptAct->mx, ptAct->my, &mx, &my ); ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); @@ -3968,42 +3968,42 @@ void petProc( ACTION *ptAct ) -// ?????????? +// ?????????? ACTION *createPetAction( int graNo, int gx, int gy, int dir, int mode, int moveDir, int id ) { ACTION *ptAct; float mx, my; PETEXTRA *pe; - /* ?????????K? */ + /* ?????????? */ ptAct = GetAction( PRIO_CHR, sizeof( PETEXTRA ) ); if( ptAct == NULL ) return NULL; - // ??? + // ??? ptAct->func = petProc; - // ???????k? + // ???????? ptAct->anim_chr_no = graNo; - // h?k? + // ?? ptAct->anim_no = ANIM_STAND; // ?????????( ??? )( ??????? ) ptAct->anim_ang = dir; - // ?IT + // ? ptAct->dispPrio = DISP_PRIO_CHAR; - // 1???????? + // 1???????? ptAct->atr = ACT_ATR_INFO | ACT_ATR_HIT | ACT_ATR_HIDE2; - // ???t - ptAct->nextGx = gx; // ??????????hI? + // ??? + ptAct->nextGx = gx; // ??????????? ptAct->nextGy = gy; ptAct->bufCount = 0; - ptAct->gx = gx; // ???????????? + ptAct->gx = gx; // ???????????佋? ptAct->gy = gy; - ptAct->mx = (float)gx * GRID_SIZE; // ???? + ptAct->mx = (float)gx * GRID_SIZE; // ???? ptAct->my = (float)gy * GRID_SIZE; - ptAct->vx = 0; // ?h? + ptAct->vx = 0; // ?? ptAct->vy = 0; - // ??t + // ?? camMapToGamen( ptAct->mx, ptAct->my, &mx, &my ); ptAct->x = (int)(mx+.5); ptAct->y = (int)(my+.5); @@ -4030,7 +4030,7 @@ ACTION *createPetAction( int graNo, int gx, int gy, int dir, int mode, int moveD -void þֹĶΪվ( void ) +void 设置静止的动作为站立( void ) { int i=0; for(i;i86) strLen=86; for(i=0;icnt = 0; pNowStrBuffer->buffer[ 0 ] = NULL; pNowStrBuffer->cursor=0; @@ -603,11 +603,11 @@ void ChatProc( void ) ChatHistory.nowNo++; // ???????? if( ChatHistory.nowNo >= MAX_CHAT_HISTORY ) ChatHistory.nowNo = 0; - // V?????????? + // ?????????? pNowStrBuffer->cnt = 0; pNowStrBuffer->buffer[ 0 ] = NULL; pNowStrBuffer->cursor=0; - // ????????V???????? + // ???????????????? StrToNowStrBuffer1( ChatHistory.str[ ChatHistory.nowNo ] ); } #ifdef _TALK_WINDOW @@ -619,7 +619,7 @@ void ChatProc( void ) } } -// ??????????? **************************************************/ +// ??????????? **************************************************/ void FlashKeyboardCursor( void ) { if(pNowStrBuffer==NULL) return; @@ -674,17 +674,17 @@ void KeyboardTab( void ) { int i,flag = 0; - // V???????? + // ???????? if( pNowStrBuffer == NULL ) return; - // ?K????? ******************************* + // ?????? ******************************* for( i = 0 ; i < MAX_CHAT_REGISTY_STR ; i++ ){ if( pNowStrBuffer == &chatRegistryStr[ i ] ){ flag = TRUE; break; } } - // ?K??? ******************************* + // ???? ******************************* if( flag == TRUE ){ // ??????????? if( joy_con[ 1 ] & JOY_RSHIFT || joy_con[ 1 ] & JOY_LSHIFT ){ @@ -696,11 +696,11 @@ void KeyboardTab( void ) // ???????? if( i >= MAX_CHAT_REGISTY_STR ) i = 0; } - // V???????h + // ??????? GetKeyInputFocus( &chatRegistryStr[ i ] ); } - // ??????????????? + // ??????????????? CursorFlashCnt = 20; #ifdef _CHANNEL_MODIFY static DWORD dwChannelChangeTime = TimeGetTime(); @@ -712,7 +712,7 @@ void KeyboardTab( void ) switch(TalkMode){ case PC_ETCFLAG_CHAT_MODE_ID: strcpy(secretName,""); - // ڶƵлһƵ + // 已在队伍频道切回一般频道 if(pc.etcFlag & PC_ETCFLAG_CHAT_MODE){ pc.etcFlag &= ~PC_ETCFLAG_CHAT_MODE; if(bNewServer) lssproto_FS_send(sockfd,pc.etcFlag); @@ -720,11 +720,11 @@ void KeyboardTab( void ) } break; case PC_ETCFLAG_CHAT_TELL_ID: - // Ƶر,һƵ + // 密语频道关闭,跳到下一个频道 if(!(pc.etcFlag & PC_ETCFLAG_CHAT_TELL)) TalkMode++; else break; case PC_ETCFLAG_CHAT_PARTY_ID: - // ޶һƵ + // 无队伍跳到下一个频道 if(partyModeFlag == 0) TalkMode++; else{ pc.etcFlag |= PC_ETCFLAG_CHAT_MODE; @@ -733,25 +733,25 @@ void KeyboardTab( void ) break; } case PC_ETCFLAG_CHAT_FM_ID: - // Ƶп,صƵ + // 若队频有开,关掉队频 if(pc.etcFlag & PC_ETCFLAG_CHAT_MODE){ pc.etcFlag &= ~PC_ETCFLAG_CHAT_MODE; if(bNewServer) lssproto_FS_send(sockfd,pc.etcFlag); else old_lssproto_FS_send(sockfd,pc.etcFlag); } - // Ƶر,һƵ + // 家族频道关闭,跳到下一个频道 if(!(pc.etcFlag & PC_ETCFLAG_CHAT_FM)) TalkMode++; else break; #ifdef _CHAR_PROFESSION case PC_ETCFLAG_CHAT_OCC_ID: - // ְҵƵر,һƵ + // 职业频道关闭,跳到下一个频道 if(!(pc.etcFlag & PC_ETCFLAG_CHAT_OCC)) TalkMode++; break; #endif #ifdef _CHATROOMPROTOCOL case PC_ETCFLAG_CHAT_CHAT_ID: - // Ƶ + // 聊天室频道 if(!(pc.etcFlag & PC_ETCFLAG_CHAT_CHAT)){ secretFlag = FALSE; selChar = -1; @@ -761,7 +761,7 @@ void KeyboardTab( void ) #endif #ifdef _CHANNEL_WORLD case PC_ETCFLAG_CHAT_WORLD_ID: - // Ƶ + // 世界频道 if(!(pc.etcFlag & PC_ETCFLAG_CHAT_WORLD)){ if((pc.etcFlag & PC_ETCFLAG_ALL_SERV)){ TalkMode++; @@ -773,7 +773,7 @@ void KeyboardTab( void ) #endif #ifdef _CHANNEL_ALL_SERV case PC_ETCFLAG_ALL_SERV_ID: - // Ƶ + // 星球频道 if(!(pc.etcFlag & PC_ETCFLAG_ALL_SERV)){ TalkMode = 0; } @@ -846,7 +846,7 @@ void KeyboardReturn( void ) //ttom static bool first_keydown=true; if(!first_keydown) { - //cary ʮ + //cary 十七 static DWORD PreTime=TimeGetTime(),CurTime; if(((CurTime=TimeGetTime())-PreTime)<500) return; @@ -878,10 +878,10 @@ void KeyboardReturn( void ) //end //ttom char bakNo; - // ????????????????? + // ????????????????? if( GetImeString() != NULL ) return; - // ????V??? ******************************* + // ??????? ******************************* if( pNowStrBuffer == &MyChatBuffer ){ if( pNowStrBuffer->cnt == 0 ) return; @@ -945,7 +945,7 @@ void KeyboardReturn( void ) #endif // ?????? bakNo = ChatHistory.newNo; - // ??????k?? + // ???????? ChatHistory.newNo++; // ???????? if( ChatHistory.newNo >= MAX_CHAT_HISTORY ) @@ -978,11 +978,11 @@ void KeyboardReturn( void ) ChatHistory.newNo = bakNo; }else{ //end - // q???????? + // ???????? if( strcmp( pNowStrBuffer->buffer, ChatHistory.str[ bakNo ] ) != 0 ){ - // ????????? + // ????????? strcpy( ChatHistory.str[ ChatHistory.newNo ], pNowStrBuffer->buffer ); - // ?????????V + // ????????? SaveChatHistoryStr( ChatHistory.newNo ); }else{ // ?????????? @@ -997,32 +997,32 @@ void KeyboardReturn( void ) *( pNowStrBuffer->buffer )= '\0'; }else - // ???? ********************************** + // ???? ********************************** if( pNowStrBuffer == &shougouChange ){ - // ?????? + // ?????? DeathAction( pActMenuWnd3 ); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus( &MyChatBuffer ); - // ???????? + // ???????? play_se( 203, 320, 240 ); - // q?? + // ?? if( bNewServer) lssproto_FT_send( sockfd, shougouChange.buffer ) ; /* ../doc/lssproto.html line 1792 */ else old_lssproto_FT_send( sockfd, shougouChange.buffer ) ; /* ../doc/lssproto.html line 1792 */ }else - // q??? ********************************** + // ??? ********************************** if( pNowStrBuffer == &petNameChange ){ - // ?????? + // ?????? DeathAction( pActMenuWnd3 ); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus( &MyChatBuffer ); - // ???????? + // ???????? play_se( 203, 320, 240 ); - // q?? + // ?? if( bNewServer) lssproto_KN_send( sockfd, petStatusNo, petNameChange.buffer ) ; /* ../doc/lssproto.html line 1792 */ else @@ -1038,9 +1038,9 @@ void KeyboardReturn( void ) #endif char *buffer=pNowStrBuffer->buffer; - //пɷʱ + //尚可放入新行时 if(pNowStrBuffer->cnt < pNowStrBuffer->len-pNowStrBuffer->lineLen){ - //һȫΪspace + //放入一行全部为space的新行 if((pNowStrBuffer->cursor)%pNowStrBuffer->lineLen == 0) StockStrBufferChar(' '); while((pNowStrBuffer->cursor)%pNowStrBuffer->lineLen) @@ -1052,17 +1052,17 @@ void KeyboardReturn( void ) if( pNowStrBuffer == &MailStr ){ // ???????????? if( MailStr.cnt < MailStr.len - MailStr.lineLen ){ - // ?Z?? + // ??? if( MailStr.cnt % MailStr.lineLen == 0 ) StockStrBufferChar( ' ' ); - // ??Z???????V?? + // ??????????? while( MailStr.cnt % MailStr.lineLen ) StockStrBufferChar( ' ' ); } } - // ????V??? **************************** -#ifdef _FRIENDCHANNEL // + // ??????? **************************** +#ifdef _FRIENDCHANNEL //聊天室命名 char temp[STR_BUFFER_SIZE]; if( pNowStrBuffer == &chatRoomName ){ GetKeyInputFocus( &MyChatBuffer ); @@ -1076,7 +1076,7 @@ void KeyboardReturn( void ) #endif #ifdef _TELLCHANNEL - if(TalkMode == 1){ //ʾ + if(TalkMode == 1){ //聊天密语显示人名 pNowStrBuffer->buffer[ 0 ] = NULL; pNowStrBuffer->cursor=0; pNowStrBuffer->cnt = 0; @@ -1091,15 +1091,15 @@ void KeyboardReturn( void ) idKeyReturn = 1; } - // ??????????????? + // ??????????????? CursorFlashCnt = 20; } extern STR_BUFFER idKey; extern STR_BUFFER passwd; extern STR_BUFFER selCharName; -/* һԪĿǰString buffer -parameter: c: Ԫ */ +/* 将单一字元储放至目前的输入String buffer +parameter: c: 字元 */ void StockStrBufferChar(char c) { if(BYTE(c)>0x1f){ @@ -1111,7 +1111,7 @@ void StockStrBufferChar(char c) /*if(!(('0'<=c && c<='9') || ('A'<=c && c<='Z') || ('a'<=c && c<='z'))) return;*/ }else if(pNowStrBuffer==&selCharName){ - if(' '==c || ''==c|| ','==c || '|'==c || '\\'==c) + if(' '==c || ' '==c|| ','==c || '|'==c || '\\'==c) return; }else if(pNowStrBuffer==&SubBuffer){ if('&'==c || '|'==c ) @@ -1128,8 +1128,8 @@ void StockStrBufferChar(char c) } } -/* ˫λԪԪĿǰString buffer -parameter: lpc: ˫λԪԪ */ +/* 将双位元字元储放至目前的输入String buffer +parameter: lpc: 双位元的字元 */ void StockStrBufferDBChar(char *lpc) { int cnt,cursor; @@ -1164,12 +1164,12 @@ void StockChatBufferLine( char *str_, unsigned char color ) #endif { char *str=str_; - extern int ; - extern int 忪; - if(忪){ - char [1024]={0}; - LCMapString (0x804,0x4000000,str_, strlen(str_),,1024); - str = ; + extern int 编码; + extern int 繁体开关; + if(繁体开关){ + char 繁体[1024]={0}; + LCMapString (0x804,0x4000000,str_, strlen(str_),繁体,1024); + str = 繁体; }else{ str = str_; } @@ -1295,7 +1295,7 @@ void ChatBufferToFontBuffer( void ) if(g_bTalkWindow) return; #endif int i, j, k = 0; - int x = 8, y = 400; // ? + int x = 8, y = 400; // ? @@ -1304,7 +1304,7 @@ void ChatBufferToFontBuffer( void ) if( j < 0 ) j = MAX_CHAT_LINE - 1; - // ??????????? + // ??????????? if( ChatLineSmoothY > 0 ) k = NowMaxChatLine + 1; else @@ -1314,7 +1314,7 @@ void ChatBufferToFontBuffer( void ) if( k > MAX_CHAT_LINE ) k = MAX_CHAT_LINE; - // ?????????? + // ?????????? for( i = 0 ; i < k; i++ ){ // ????????? if( *ChatBuffer[ j ].buffer != NULL @@ -1352,7 +1352,7 @@ void ChatBufferToFontBuffer( void ) #endif #endif } - y -= _CHAT_SPACING; // ??h + y -= _CHAT_SPACING; // ?? #ifdef _FONT_SIZE y -= (int)((ChatBuffer[j].fontsize/2)*1.4); #endif @@ -1375,57 +1375,57 @@ void ChatBufferToFontBuffer( void ) extern int focusGraId( int *id, int cnt ); extern int pushGraId( int *id, int cnt ); extern int selGraId( int *id, int cnt ); - int 鰴ťID = -1; - static int ͼƬ = 0; - static int 鴰״̬=FALSE; - static int 鵱ǰҳ=0; - static int ҳ = (EXPRESSION_NOID_NUM)%48?(EXPRESSION_NOID_NUM)/48+1:(EXPRESSION_NOID_NUM)/48; + int 表情按钮ID = -1; + static int 表情图片索引 = 0; + static int 表情窗口状态=FALSE; + static int 表情当前页=0; + static int 表情总页 = (EXPRESSION_NOID_NUM)%48?(EXPRESSION_NOID_NUM)/48+1:(EXPRESSION_NOID_NUM)/48; int chatBtnGraNo[] = { CG_FIELD_CHAT_BTN_OFF, CG_FIELD_CHAT_BTN_ON }; - StockDispBuffer(40, 559, DISP_PRIO_IME3, chatBtnGraNo[ͼƬ], 1); + StockDispBuffer(40, 559, DISP_PRIO_IME3, chatBtnGraNo[表情图片索引], 1); if( MakeHitBox(40-10, 559-10,40+10,559+10, DISP_PRIO_IME4 ) == TRUE ) { - ShowBottomLineString(FONT_PAL_WHITE, "顣"); + ShowBottomLineString(FONT_PAL_WHITE, "聊天表情。"); if(mouse.onceState & MOUSE_LEFT_CRICK){ - 鵱ǰҳ=1; - ͼƬ=1; - if(鴰״̬) 鴰״̬=FALSE; - else 鴰״̬=TRUE; + 表情当前页=1; + 表情图片索引=1; + if(表情窗口状态) 表情窗口状态=FALSE; + else 表情窗口状态=TRUE; play_se(203, 320, 240); - }else ͼƬ=0; + }else 表情图片索引=0; } - if(鴰״̬){ + if(表情窗口状态){ if( joy_trg[ 0 ] & JOY_ESC ) { MenuToggleFlag|=JOY_ESC; play_se(203, 320, 240); - 鴰״̬=FALSE; + 表情窗口状态=FALSE; } - int ťID[2]; + int 方向按钮ID[2]; StockDispBuffer(120, 447, DISP_PRIO_IME3, 55103, 1); - ťID[0]=StockDispBuffer(89, 535, DISP_PRIO_IME4, 55104, 2); - ťID[1]=StockDispBuffer(152, 535, DISP_PRIO_IME4, 55105, 2); - int ID= selGraId(ťID,2); - if(ID==0){// - if(鵱ǰҳ>1) 鵱ǰҳ--; - }else if(ID==1){// - if(鵱ǰҳ < ҳ) 鵱ǰҳ++; + 方向按钮ID[0]=StockDispBuffer(89, 535, DISP_PRIO_IME4, 55104, 2); + 方向按钮ID[1]=StockDispBuffer(152, 535, DISP_PRIO_IME4, 55105, 2); + int 按下ID= selGraId(方向按钮ID,2); + if(按下ID==0){//按方向左 + if(表情当前页>1) 表情当前页--; + }else if(按下ID==1){//按方向右 + if(表情当前页 < 表情总页) 表情当前页++; } - int start=(鵱ǰҳ-1)*48; - int end = (鵱ǰҳ*48 < EXPRESSION_NOID_NUM ?鵱ǰҳ*48:EXPRESSION_NOID_NUM); + int start=(表情当前页-1)*48; + int end = (表情当前页*48 < EXPRESSION_NOID_NUM ?表情当前页*48:EXPRESSION_NOID_NUM); int x,y; for(y=0;y<6;y++){ for(x=0;x<8;x++){ - 鰴ťID=StockDispBuffer(19+x*29, 362+y*29, DISP_PRIO_IME4, EXPRESSION_NOID_START+start, 2); - if(selGraId(&鰴ťID,1)!=-1){ - 鴰״̬=FALSE; + 表情按钮ID=StockDispBuffer(19+x*29, 362+y*29, DISP_PRIO_IME4, EXPRESSION_NOID_START+start, 2); + if(selGraId(&表情按钮ID,1)!=-1){ + 表情窗口状态=FALSE; play_se(203, 320, 240); - char [128]; - sprintf_s(,"#%d",start+1); - strcat_s(MyChatBuffer.buffer,); + char 表情内容[128]; + sprintf_s(表情内容,"#%d",start+1); + strcat_s(MyChatBuffer.buffer,表情内容); MyChatBuffer.cursor=strlen(MyChatBuffer.buffer); MyChatBuffer.cnt=strlen(MyChatBuffer.buffer); } @@ -1440,53 +1440,53 @@ void ChatBufferToFontBuffer( void ) } /*******************************************************************************/ -/* ??????S??u????? -/* ??k S?? -/* u?? -/* ??? +/* ????????????? +/* ?? ?:? +/* ?:? +/* ??:? /*******************************************************************************/ int GetStrLastByte( char *str ) { int byte = 0; - // ?????????? + // ?????????? while( !( *str == '\0' ) ){ // ( *str == ( char )0x81 && *( str + 1 ) == ( char )0x51 ) ) ){ - // u???? + // ???? if(IsDBCSLeadByte(*str)){ - // u??????????? + // ??????????? if( *( str + 1 ) == NULL ) return 3; // ?? - str += 2; // ?????? - byte = 2; // u??? + str += 2; // ?????? + byte = 2; // ??? - }else{ // S???? + }else{ // ???? - str ++; // ?????? - byte = 1; // S??? + str ++; // ?????? + byte = 1; // ??? } } return byte; } /*******************************************************************************/ -/* ?????????????? -/* ??k ???? +/* ?????????????? +/* ?? ???? /*******************************************************************************/ #ifndef _NEWFONT_ int GetStrWidth( char *str ) { int width = 0; - // ?????????? + // ?????????? while(!( *str == '\0' ) ){ if(IsDBCSLeadByte(*str)){ str += 2; - width += FONT_SIZE; // ȫεsize + width += FONT_SIZE; // 全形的size }else{ str ++; - width += FONT_SIZE>>1; // εsize + width += FONT_SIZE>>1; // 半形的size } } return width; @@ -1500,14 +1500,14 @@ int GetStrWidth( char *str ) #endif /*******************************************************************************/ -/* V??????x +/* ?????? /*******************************************************************************/ void GetKeyInputFocus( STR_BUFFER *pStrBuffer ) { pNowStrBuffer = pStrBuffer; } -// ?????????V????????? ********************************************/ +// ?????????????????? ********************************************/ void GetClipboad( void ) { HGLOBAL hMem; @@ -1515,16 +1515,16 @@ void GetClipboad( void ) /* ???????????? */ OpenClipboard( hWnd ); - /* ?????????????????????x */ + /* ????????????????????? */ hMem = GetClipboardData( CF_TEXT ); - /* ?????????? */ + /* ?????????? */ if( hMem == NULL ){ CloseClipboard(); return; } /* ????????????? */ lpMem = (LPTSTR)GlobalLock( hMem ); - /* ?????????????????@e */ + /* ????????????????? */ // SetWindowText( hwStrE, lpMem ); // lstrcpy( chat_input_buf, lpMem ); @@ -1540,17 +1540,17 @@ void SetClipboad( void ) HGLOBAL hMem; LPTSTR lpMem; - // V???????? + // ???????? if( pNowStrBuffer == NULL ) return; - // ??????? + // ??????? if( pNowStrBuffer->buffer[ 0 ] == NULL ) return; - /* ?????????? */ + /* ?????????? */ hMem = GlobalAlloc( GHND, 512 ); - /* ????????????????????x */ + /* ???????????????????? */ lpMem = ( LPTSTR )GlobalLock( hMem ); // lstrcpy( lpMem, chat_input_buf ); - /* ????????????????? */ + /* ????????????????? */ lstrcpy( lpMem, pNowStrBuffer->buffer ); /* ??????????????? */ GlobalUnlock( hMem ); @@ -1558,10 +1558,10 @@ void SetClipboad( void ) OpenClipboard( hWnd ); /* ??????????? */ EmptyClipboard(); - /* ???????????????????????? */ + /* ???????????????????????? */ SetClipboardData( CF_TEXT, hMem ); /* ???????????? */ CloseClipboard(); - /* ?????????? */ + /* ?????????? */ //GlobalFree( hMem ); } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/directdraw.cpp b/石器时代8.5客户端最新源代码/石器源码/system/directdraw.cpp index 4c97534..2f41dff 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/directdraw.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/directdraw.cpp @@ -1,4 +1,4 @@ -/**** SYSTEM INCLUDE ****/ +/**** SYSTEM INCLUDE ****/ #include #include #include @@ -11,32 +11,32 @@ #include "../systeminc/map.h" #include "../systeminc/anim_tbl.h" -#define PAL_CHANGE_INTERVAL_WIN 120 // ?????????????????? -#define PAL_CHANGE_INTERVAL_FULL 60 // ???????????????????? +#define PAL_CHANGE_INTERVAL_WIN 120 // ?????????????????? +#define PAL_CHANGE_INTERVAL_FULL 60 // ???????????????????? int MessageBoxNew(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType); #ifdef _NEW_COLOR_ extern int NewColor16Flg; #endif //---------------------------------------------------------------------------// -// ??????e? // +// ??????? // //---------------------------------------------------------------------------// DIRECT_DRAW *lpDraw; // DirectDraw?????????? BOOL DDinitFlag = FALSE; // DirectDraw?????? HFONT hFont; // ???????? -int displayBpp; // ?? +int displayBpp; // ?? -int rBitLShift; // ?????????k -int gBitLShift; // ?????????k -int bBitLShift; // ?????????k +int rBitLShift; // ????????? +int gBitLShift; // ????????? +int bBitLShift; // ????????? -int rBitRShift; // ?????????k -int gBitRShift; // ?????????k -int bBitRShift; // ?????????k +int rBitRShift; // ????????? +int gBitRShift; // ????????? +int bBitRShift; // ????????? -PALETTEENTRY Palette[256]; // ?????Bl -PALETTE_STATE PalState; // ????֢t?Bl +PALETTEENTRY Palette[256]; // ????? +PALETTE_STATE PalState; // ????? BOOL PalChangeFlag; // ??????????? #ifdef _HI_COLOR_32 unsigned int highColor32Palette[256]; @@ -51,7 +51,7 @@ BOOL g_bUseAlpha = FALSE; extern BOOL g_bUseAlpha = FALSE; #endif -#ifdef _READ16BITBMPVARIABLES // _READ16BITBMP ҪIJ +#ifdef _READ16BITBMPVARIABLES //关 _READ16BITBMP 后还须要的参数 BOOL g_bUseAlpha = FALSE; #endif @@ -71,7 +71,7 @@ char *palFileName[] = { }; const int MAX_PAL = sizeof(palFileName) / sizeof(palFileName[0]); -// ??k?????????????? +// ???????????????? int getBitCount(int bit) { int i, j, k; @@ -95,14 +95,14 @@ BOOL InitDirectDraw(void) HANDLE hErrorLogFile; HRESULT hResult; char szErrMsg[256]; - DDSCAPS ddscaps; // ??????????e???Bl + DDSCAPS ddscaps; // ????????????? if ((hResult = DirectDrawCreate(NULL, &lpDraw->lpDD, NULL)) != DD_OK){ hErrorLogFile = CreateFile("ErrorLog.txt", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); sprintf_s(szErrMsg, "DirectDrawCreate error(1):error result (%x)", hResult); WriteFile(hErrorLogFile, szErrMsg, sizeof(szErrMsg), &dwWriteByte, NULL); CloseHandle(hErrorLogFile); if ((hResult = DirectDrawCreate((GUID *)DDCREATE_EMULATIONONLY, &lpDraw->lpDD, NULL)) != DD_OK){ - MessageBoxNew(hWnd, "DirectDrawCreate Error", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "DirectDrawCreate Error", "确定", MB_OK | MB_ICONSTOP); hErrorLogFile = CreateFile("ErrorLog.txt", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); sprintf_s(szErrMsg, "DirectDrawCreate error(2):error result (%x)", hResult); WriteFile(hErrorLogFile, szErrMsg, sizeof(szErrMsg), &dwWriteByte, NULL); @@ -111,7 +111,7 @@ BOOL InitDirectDraw(void) } } if ((hResult = lpDraw->lpDD->QueryInterface(IID_IDirectDraw2, (LPVOID *)&lpDraw->lpDD2)) != DD_OK){ - MessageBoxNew(hWnd, "QueryInterface Error", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "QueryInterface Error", "确定", MB_OK | MB_ICONSTOP); hErrorLogFile = CreateFile("ErrorLog.txt", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); sprintf_s(szErrMsg, "QueryInterface error:error result (%x)", hResult); WriteFile(hErrorLogFile, szErrMsg, sizeof(szErrMsg), &dwWriteByte, NULL); @@ -158,7 +158,7 @@ BOOL InitDirectDraw(void) } #endif if (lpDraw->lpDD2->SetCooperativeLevel(hWnd, DDSCL_NORMAL) != DD_OK){ - MessageBoxNew(hWnd, "SetCooperativeLevel Error", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "SetCooperativeLevel Error", "确定", MB_OK | MB_ICONSTOP); return FALSE; } @@ -167,7 +167,7 @@ BOOL InitDirectDraw(void) lpDraw->ddsd.dwFlags = DDSD_CAPS; lpDraw->ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE; if ((hResult = lpDraw->lpDD2->CreateSurface(&lpDraw->ddsd, &lpDraw->lpFRONTBUFFER, NULL)) != DD_OK){ - MessageBoxNew(hWnd, "洦ʧܡ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "主画面处理失败。", "确定", MB_OK | MB_ICONSTOP); hErrorLogFile = CreateFile("ErrorLog.txt", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); sprintf_s(szErrMsg, "Create frontbuffer error(1):error result (%x)", hResult); WriteFile(hErrorLogFile, szErrMsg, sizeof(szErrMsg), &dwWriteByte, NULL); @@ -175,7 +175,7 @@ BOOL InitDirectDraw(void) return FALSE; } if (lpDraw->lpDD2->CreateClipper(0, &lpDraw->lpCLIPPER, NULL) != DD_OK){ - MessageBoxNew(hWnd, "clipperʧܡ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "clipper处理失败。", "确定", MB_OK | MB_ICONSTOP); return FALSE; } lpDraw->lpCLIPPER->SetHWnd(0, hWnd); @@ -187,7 +187,7 @@ BOOL InitDirectDraw(void) lpDraw->ddsd.dwWidth = lpDraw->xSize; lpDraw->ddsd.dwHeight = lpDraw->ySize; if ((hResult = lpDraw->lpDD2->CreateSurface(&lpDraw->ddsd, &lpDraw->lpBACKBUFFER, NULL)) != DD_OK){ - MessageBoxNew(hWnd, "ݴʧ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "暂存区处理失败", "确定", MB_OK | MB_ICONSTOP); hErrorLogFile = CreateFile("ErrorLog.txt", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); sprintf_s(szErrMsg, "Create backbuffer error:error result (%x)", hResult); WriteFile(hErrorLogFile, szErrMsg, sizeof(szErrMsg), &dwWriteByte, NULL); @@ -198,7 +198,7 @@ BOOL InitDirectDraw(void) if(g_bUseAlpha){ lpDraw->ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_SYSTEMMEMORY; if((hResult = lpDraw->lpDD2->CreateSurface(&lpDraw->ddsd,&lpDraw->lpBACKBUFFERSYS,NULL)) != DD_OK){ - MessageBoxNew(hWnd,"ݴʧ(sys)","ȷ",MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd,"暂存区处理失败(sys)","确定",MB_OK | MB_ICONSTOP); hErrorLogFile = CreateFile("ErrorLog.txt",GENERIC_WRITE,FILE_SHARE_READ,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL); sprintf_s(szErrMsg,"Create backbuffer error:error result (%x)",hResult); WriteFile(hErrorLogFile,szErrMsg,sizeof(szErrMsg),&dwWriteByte,NULL); @@ -215,7 +215,7 @@ BOOL InitDirectDraw(void) #endif { if (lpDraw->lpDD2->SetCooperativeLevel(hWnd, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN | DDSCL_ALLOWMODEX) != DD_OK){ - MessageBoxNew(hWnd, "SetCooperativeLevel Error", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "SetCooperativeLevel Error", "确定", MB_OK | MB_ICONSTOP); return FALSE; } lpDraw->lpDD2->SetDisplayMode(lpDraw->xSize, lpDraw->ySize, displayBpp, 0, 0); @@ -225,7 +225,7 @@ BOOL InitDirectDraw(void) lpDraw->ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE | DDSCAPS_FLIP | DDSCAPS_COMPLEX; lpDraw->ddsd.dwBackBufferCount = 1; if ((hResult = lpDraw->lpDD2->CreateSurface(&lpDraw->ddsd, &lpDraw->lpFRONTBUFFER, NULL)) != DD_OK){ - MessageBoxNew(hWnd, "洦ʧܶ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "主画面处理失败二。", "确定", MB_OK | MB_ICONSTOP); hErrorLogFile = CreateFile("ErrorLog.txt", GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); sprintf_s(szErrMsg, "Create frontbuffer error(2):error result (%x)", hResult); WriteFile(hErrorLogFile, szErrMsg, sizeof(szErrMsg), &dwWriteByte, NULL); @@ -244,7 +244,7 @@ BOOL InitDirectDraw(void) lpDraw->ddsd.dwHeight = lpDraw->ySize; lpDraw->ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_SYSTEMMEMORY; if((hResult = lpDraw->lpDD2->CreateSurface(&lpDraw->ddsd,&lpDraw->lpBACKBUFFERSYS,NULL)) != DD_OK){ - MessageBoxNew(hWnd,"ݴʧܶ(sys)","ȷ",MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd,"暂存区处理失败二(sys)","确定",MB_OK | MB_ICONSTOP); hErrorLogFile = CreateFile("ErrorLog.txt",GENERIC_WRITE,FILE_SHARE_READ,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL); sprintf_s(szErrMsg,"Create backbuffer error:error result (%x)",hResult); WriteFile(hErrorLogFile,szErrMsg,sizeof(szErrMsg),&dwWriteByte,NULL); @@ -267,56 +267,56 @@ BOOL InitDirectDraw(void) if (lpDraw->lpBACKBUFFER->GetPixelFormat(&ddPixelFormat) != DD_OK) return FALSE; - rBitRShift = 8 - getBitCount(ddPixelFormat.dwRBitMask); // ?????????k - gBitRShift = 8 - getBitCount(ddPixelFormat.dwGBitMask); // ?????????k - bBitRShift = 8 - getBitCount(ddPixelFormat.dwBBitMask); // ?????????k + rBitRShift = 8 - getBitCount(ddPixelFormat.dwRBitMask); // ????????? + gBitRShift = 8 - getBitCount(ddPixelFormat.dwGBitMask); // ????????? + bBitRShift = 8 - getBitCount(ddPixelFormat.dwBBitMask); // ????????? - rBitLShift = getBitCount(ddPixelFormat.dwBBitMask) + getBitCount(ddPixelFormat.dwGBitMask); // ?????????k - gBitLShift = getBitCount(ddPixelFormat.dwBBitMask); // ?????????k - bBitLShift = 0; // ?????????k + rBitLShift = getBitCount(ddPixelFormat.dwBBitMask) + getBitCount(ddPixelFormat.dwGBitMask); // ????????? + gBitLShift = getBitCount(ddPixelFormat.dwBBitMask); // ????????? + bBitLShift = 0; // ????????? } else #endif #ifdef _HI_COLOR_16 - // ???????????????ѩ?x?? + // ?????????????????? if (displayBpp == 16){ // ??????????NULL???? if (lpDraw->lpBACKBUFFER == NULL) return FALSE; - DDPIXELFORMAT ddPixelFormat; // ????ѩ?Bl - // ?Bl???? + DDPIXELFORMAT ddPixelFormat; // ????? + // ????? ZeroMemory(&ddPixelFormat, sizeof(DDPIXELFORMAT)); ddPixelFormat.dwSize = sizeof(DDPIXELFORMAT); if (lpDraw->lpBACKBUFFER->GetPixelFormat(&ddPixelFormat) != DD_OK) return FALSE; - rBitRShift = 8 - getBitCount(ddPixelFormat.dwRBitMask); // ?????????k - gBitRShift = 8 - getBitCount(ddPixelFormat.dwGBitMask); // ?????????k - bBitRShift = 8 - getBitCount(ddPixelFormat.dwBBitMask); // ?????????k + rBitRShift = 8 - getBitCount(ddPixelFormat.dwRBitMask); // ????????? + gBitRShift = 8 - getBitCount(ddPixelFormat.dwGBitMask); // ????????? + bBitRShift = 8 - getBitCount(ddPixelFormat.dwBBitMask); // ????????? - rBitLShift = getBitCount(ddPixelFormat.dwBBitMask) + getBitCount(ddPixelFormat.dwGBitMask); // ?????????k - gBitLShift = getBitCount(ddPixelFormat.dwBBitMask); // ?????????k - bBitLShift = 0; // ?????????k + rBitLShift = getBitCount(ddPixelFormat.dwBBitMask) + getBitCount(ddPixelFormat.dwGBitMask); // ????????? + gBitLShift = getBitCount(ddPixelFormat.dwBBitMask); // ????????? + bBitLShift = 0; // ????????? } #endif - // ?????????? + // ?????????? if ((lpBattleSurface = CreateSurface(DEF_APPSIZEX, DEF_APPSIZEY, DEF_COLORKEY, DDSCAPS_VIDEOMEMORY)) == NULL){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd ,"VideoRam BattleSurfaceʧܣ" ,"ȷ",MB_OK | MB_ICONSTOP ); + MessageBoxNew( hWnd ,"建立VideoRam BattleSurface失败!" ,"确定",MB_OK | MB_ICONSTOP ); #endif if ((lpBattleSurface = CreateSurface(DEF_APPSIZEX, DEF_APPSIZEY, DEF_COLORKEY, DDSCAPS_SYSTEMMEMORY)) == NULL){ - MessageBoxNew(hWnd, "BattleSurfaceʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "建立BattleSurface失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } } #ifdef _READ16BITBMP if(g_bUseAlpha){ if((lpBattleSurfaceSys = CreateSurface(DEF_APPSIZEX,DEF_APPSIZEY,DEF_COLORKEY,DDSCAPS_SYSTEMMEMORY)) == NULL){ - MessageBoxNew(hWnd,"BattleSurface(sys)ʧܣ","ȷ",MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd,"建立BattleSurface(sys)失败!","确定",MB_OK | MB_ICONSTOP); return FALSE; } } @@ -340,19 +340,19 @@ BOOL InitPalette(void) FILE *fp; PALETTEENTRY pal[32] = { - // ????? + // ????? { 0x00, 0x00, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, // 0:? - { 0x80, 0x00, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, // 1:?? + { 0x80, 0x00, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, // 1:?? { 0x00, 0x80, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, // 2:??? { 0x80, 0x80, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, // 3:??? - { 0x00, 0x00, 0x80, PC_NOCOLLAPSE | PC_RESERVED }, // 4:?? + { 0x00, 0x00, 0x80, PC_NOCOLLAPSE | PC_RESERVED }, // 4:?? { 0x80, 0x00, 0x80, PC_NOCOLLAPSE | PC_RESERVED }, // 5:??? - { 0x00, 0x80, 0x80, PC_NOCOLLAPSE | PC_RESERVED }, // 6:??? + { 0x00, 0x80, 0x80, PC_NOCOLLAPSE | PC_RESERVED }, // 6:??? { 0xc0, 0xc0, 0xc0, PC_NOCOLLAPSE | PC_RESERVED }, // 7:??? { 0xc0, 0xdc, 0xc0, PC_NOCOLLAPSE | PC_RESERVED }, // 8:? { 0xa6, 0xca, 0xf0, PC_NOCOLLAPSE | PC_RESERVED }, // 9:? - //ϵͳɫ// ???????? + //新系统色盘// ???????? { 0xde, 0x00, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, { 0xff, 0x5f, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, { 0xff, 0xff, 0xa0, PC_NOCOLLAPSE | PC_RESERVED }, @@ -360,7 +360,7 @@ BOOL InitPalette(void) { 0x50, 0xd2, 0xff, PC_NOCOLLAPSE | PC_RESERVED }, { 0x28, 0xe1, 0x28, PC_NOCOLLAPSE | PC_RESERVED }, - //ϵͳɫ// ???????? + //新系统色盘// ???????? { 0xf5, 0xc3, 0x96, PC_NOCOLLAPSE | PC_RESERVED }, { 0xe1, 0xa0, 0x5f, PC_NOCOLLAPSE | PC_RESERVED }, { 0xc3, 0x7d, 0x46, PC_NOCOLLAPSE | PC_RESERVED }, @@ -368,21 +368,21 @@ BOOL InitPalette(void) { 0x46, 0x41, 0x37, PC_NOCOLLAPSE | PC_RESERVED }, { 0x28, 0x23, 0x1e, PC_NOCOLLAPSE | PC_RESERVED }, - // ????? + // ????? { 0xff, 0xfb, 0xf0, PC_NOCOLLAPSE | PC_RESERVED }, // 246:? { 0xa0, 0xa0, 0xa4, PC_NOCOLLAPSE | PC_RESERVED }, // 247:? - { 0x80, 0x80, 0x80, PC_NOCOLLAPSE | PC_RESERVED }, // 248:? - { 0xff, 0x00, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, // 249: + { 0x80, 0x80, 0x80, PC_NOCOLLAPSE | PC_RESERVED }, // 248:? + { 0xff, 0x00, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, // 249: { 0x00, 0xff, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, // 250:? { 0xff, 0xff, 0x00, PC_NOCOLLAPSE | PC_RESERVED }, // 251:? - { 0x00, 0x00, 0xff, PC_NOCOLLAPSE | PC_RESERVED }, // 252: + { 0x00, 0x00, 0xff, PC_NOCOLLAPSE | PC_RESERVED }, // 252: { 0xff, 0x00, 0xff, PC_NOCOLLAPSE | PC_RESERVED }, // 253:? - { 0x00, 0xff, 0xff, PC_NOCOLLAPSE | PC_RESERVED }, // 254:? + { 0x00, 0xff, 0xff, PC_NOCOLLAPSE | PC_RESERVED }, // 254:? { 0xff, 0xff, 0xff, PC_NOCOLLAPSE | PC_RESERVED } // 255:? }; - // ?????????@e + // ????????? for (i = 0; i < 10; i++){ Palette[i].peBlue = pal[i].peBlue; Palette[i].peGreen = pal[i].peGreen; @@ -395,7 +395,7 @@ BOOL InitPalette(void) Palette[i + 246].peFlags = PC_EXPLICIT; } - // ?????????@e + // ????????? for (i = 0; i < 6; i++){ Palette[i + 10].peBlue = pal[i + 10].peBlue; Palette[i + 10].peGreen = pal[i + 10].peGreen; @@ -408,17 +408,17 @@ BOOL InitPalette(void) Palette[i + 240].peFlags = PC_NOCOLLAPSE | PC_RESERVED; } - //ֻеһβ(ûгʼʱ)// ???????????k????? + //只有第一次才作(没有初始化时)// ???????????????? if (PalState.flag == FALSE){ fp = fopen(palFileName[0], "rb"); if (fp == NULL){ - MessageBoxNew(hWnd, "ɫ̵ȡʧ", "Error", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "色盘档读取失败", "Error", MB_OK | MB_ICONSTOP); return FALSE; } else{ - //ʹõĵɫ趨// ?????????@e + //可自由使用的调色盘设定// ????????? for (i = 16; i < 240; i++){ - //// ???????? + //档案读入// ???????? Palette[i].peBlue = fgetc(fp); Palette[i].peGreen = fgetc(fp); Palette[i].peRed = fgetc(fp); @@ -437,7 +437,7 @@ BOOL InitPalette(void) #if 0 else{ - // ?????????@e + // ????????? for( i = 16; i < 240; i++ ){ // ?????????? if( WindowMode ){ @@ -450,7 +450,7 @@ BOOL InitPalette(void) #endif lpDraw->lpDD2->CreatePalette(DDPCAPS_8BIT, Palette, &lpDraw->lpPALETTE, NULL); if (lpDraw->lpPALETTE == NULL){ - MessageBoxNew(hWnd, "ɫ̴ʧ", "Error", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "调色盘处理失败", "Error", MB_OK | MB_ICONSTOP); return FALSE; } // WON REM @@ -458,8 +458,8 @@ BOOL InitPalette(void) //#ifdef _STONDEBUG_ if (displayBpp == 8){ if (lpDraw->lpFRONTBUFFER->SetPalette(lpDraw->lpPALETTE) != DD_OK){ - MessageBoxNew(hWnd, "ɫ̴ʧ", "Error", MB_OK); - MessageBoxNew(hWnd, "ʹãλԪ߲ɫ򣳣λԪ߲ɫģʾ", "Error", MB_OK); + MessageBoxNew(hWnd, "调色盘处理失败", "Error", MB_OK); + MessageBoxNew(hWnd, "请使用16位元高彩色或32位元高彩色模示", "Error", MB_OK); return FALSE; } } @@ -467,13 +467,13 @@ BOOL InitPalette(void) // Robin 05/02 #ifdef SWITCH_MODE if( lpDraw->lpFRONTBUFFER->SetPalette( lpDraw->lpPALETTE ) != DD_OK ){ - if( MessageBoxNew(hWnd, "ʹãɫʾģʾ", "ȷ", MB_RETRYCANCEL | MB_ICONEXCLAMATION ) == IDCANCEL) + if( MessageBoxNew(hWnd, "请使用256色的显示模示", "确定", MB_RETRYCANCEL | MB_ICONEXCLAMATION ) == IDCANCEL) return FALSE; return FALSE; } #else while( lpDraw->lpFRONTBUFFER->SetPalette( lpDraw->lpPALETTE ) != DD_OK ){ - if( MessageBoxNew(hWnd, "ʹãɫʾģʾ", "ȷ", MB_RETRYCANCEL | MB_ICONEXCLAMATION ) == IDCANCEL) + if( MessageBoxNew(hWnd, "请使用256色的显示模示", "确定", MB_RETRYCANCEL | MB_ICONEXCLAMATION ) == IDCANCEL) return FALSE; } #endif @@ -493,7 +493,7 @@ BOOL InitPalette(void) else #endif if (displayBpp == 16){ - // ?????????????? + // ?????????????? highColorPalette[0] = 0; for (i = 1; i < 256; i++){ highColorPalette[i] = @@ -514,9 +514,9 @@ void PaletteChange(int palNo, int time) // ???????? if (palNo >= MAX_PAL) return; - // ????k? + // ????? PalState.palNo = palNo; - // ??????? + // ??????? PalState.time = time; // ???????? if (PalState.time <= 0) @@ -532,45 +532,45 @@ BOOL IsSurfaceExpired(SURFACE_INFO *surface) #endif -// ɫ̴ ***************************************************************/ +// 色盘处理 ***************************************************************/ void PaletteProc(void) { FILE *fp; // ???????? - static PALETTEENTRY pal[256]; // ?????Bl - static float dRed[256]; // ????? - static float dGreen[256]; // ????? - static float dBlue[256]; // ????? - static float dRedBak[256]; // ????? - static float dGreenBak[256]; // ????? - static float dBlueBak[256]; // ????? + static PALETTEENTRY pal[256]; // ????? + static float dRed[256]; // ????? + static float dGreen[256]; // ????? + static float dBlue[256]; // ????? + static float dRedBak[256]; // ????? + static float dGreenBak[256]; // ????? + static float dBlueBak[256]; // ????? static int timeCnt; // ???????? static int changeCnt; // ????????? static int palNoBak = 0; // ????? static int openFlag = FALSE; // ??????????? int i; - // ???????????? + // ???????????? if (palNoBak == PalState.palNo && openFlag == FALSE) return; // ??????????? if (palNoBak != PalState.palNo){ // ???????????? fp = fopen(palFileName[PalState.palNo], "rb"); - // ?????????@e + // ????????? for (i = 16; i < 240; i++){ pal[i].peBlue = fgetc(fp); pal[i].peGreen = fgetc(fp); pal[i].peRed = fgetc(fp); - // 168??( 0, 0, 0 )?? + // 168??( 0, 0, 0 )?? if (i == 168){ pal[168].peBlue = 0; pal[168].peGreen = 0; pal[168].peRed = 0; } - // ????? + // ????? dBlueBak[i] = Palette[i].peBlue; dGreenBak[i] = Palette[i].peGreen; dRedBak[i] = Palette[i].peRed; - // ?? + // ?? dBlue[i] = (float)(pal[i].peBlue - Palette[i].peBlue) / (float)PalState.time; dGreen[i] = (float)(pal[i].peGreen - Palette[i].peGreen) / (float)PalState.time; dRed[i] = (float)(pal[i].peRed - Palette[i].peRed) / (float)PalState.time; @@ -583,31 +583,31 @@ void PaletteProc(void) } #endif } - fclose(fp); // ?????? - timeCnt = 0; // ???????????????????? - changeCnt = 0; // ????????????????????; + fclose(fp); // ?????? + timeCnt = 0; // ???????????????????? + changeCnt = 0; // ????????????????????; palNoBak = PalState.palNo; // ?????? openFlag = TRUE; // ????? } // ????? timeCnt++; - // ???? + // ???? if (timeCnt <= PalState.time){ - // ?????????@e + // ????????? for (i = 16; i < 240; i++){ - // ????? + // ????? dBlueBak[i] += dBlue[i]; dGreenBak[i] += dGreen[i]; dRedBak[i] += dRed[i]; - // ????? + // ????? Palette[i].peBlue = (BYTE)dBlueBak[i]; Palette[i].peGreen = (BYTE)dGreenBak[i]; Palette[i].peRed = (BYTE)dRedBak[i]; } } else{ - // ??????????u??????k???? - // ?????????@e + // ???????????????????? + // ????????? for (i = 16; i < 240; i++){ Palette[i].peBlue = pal[i].peBlue; Palette[i].peGreen = pal[i].peGreen; @@ -616,11 +616,11 @@ void PaletteProc(void) openFlag = FALSE; // ?????? transEffectPaletteStatus = 2; } - // ?????????????????? + // ?????????????????? if (changeCnt == 0 || openFlag == FALSE){ // ????????????? PalChangeFlag = TRUE; - // ???????@e + // ??????? //lpDraw->lpPALETTE->SetEntries( 0, 0, 256, Palette ); } // ???????? @@ -628,7 +628,7 @@ void PaletteProc(void) // ?????????? if (transmigrationEffectFlag) { - // ?????? + // ?????? if (changeCnt >= 10) changeCnt = 0; } if (WindowMode){ @@ -642,9 +642,9 @@ void PaletteProc(void) } //---------------------------------------------------------------------------// -// ?? ?i?_????????????????????????? // -// ?? ?? // -// ?k ?? // +// ?? :??????????????????????????? // +// ?? :?? // +// ? :?? // //---------------------------------------------------------------------------// extern RECT g_clientRect; @@ -693,9 +693,9 @@ void Flip(void) } //---------------------------------------------------------------------------// -// ?? ????????????? // -// ?? DIRECT_DRAW *lpDraw : DirectDraw???Bl // -// ?k ?? // +// ?? :????????????? // +// ?? :DIRECT_DRAW *lpDraw : DirectDraw??? // +// ? :?? // //---------------------------------------------------------------------------// void ClearBackSurface(void) { @@ -721,9 +721,9 @@ void ClearBackSurface(void) } //---------------------------------------------------------------------------// -// ?? ?????????? // -// ?? DIRECT_DRAW *lpDraw : DirectDraw???Bl // -// ?k ?? // +// ?? :?????????? // +// ?? :DIRECT_DRAW *lpDraw : DirectDraw??? // +// ? :?? // //---------------------------------------------------------------------------// void ClearSurface(LPDIRECTDRAWSURFACE lpSurface) { @@ -731,7 +731,7 @@ void ClearSurface(LPDIRECTDRAWSURFACE lpSurface) ZeroMemory(&ddbltfx, sizeof(DDBLTFX)); ddbltfx.dwSize = sizeof(DDBLTFX); - ddbltfx.dwFillColor = DEF_COLORKEY; // a?@e + ddbltfx.dwFillColor = DEF_COLORKEY; // ? lpSurface->Blt(NULL, NULL, NULL, DDBLT_COLORFILL | DDBLT_WAIT, &ddbltfx); @@ -741,9 +741,9 @@ void ClearSurface(LPDIRECTDRAWSURFACE lpSurface) // ??????????????????? int BmpOffBits; //---------------------------------------------------------------------------// -// ?? ????????????????????? // -// ?? char * pFile : ?????????? // -// ??kLPBITMAPINFO : NULL .????Or???? // +// ?? :????????????????????? // +// ?? :char * pFile : ?????????? // +// ??:LPBITMAPINFO : NULL .????Or???? // // NULL??.LPBITMAPINFO???? // //---------------------------------------------------------------------------// LPBITMAPINFO LoadDirectDrawBitmap(char *pFile) @@ -753,20 +753,20 @@ LPBITMAPINFO LoadDirectDrawBitmap(char *pFile) BITMAPFILEHEADER BmpFileHeader; LPBITMAPINFO lpBmpInfo; - //??????? + //??????? if ((hFile = OpenFile(pFile, &ofSt, OF_READ)) == HFILE_ERROR) return (LPBITMAPINFO)NULL; // File Open Error - //????????????????? + //????????????????? _hread(hFile, &BmpFileHeader, sizeof(BITMAPFILEHEADER)); - //?????????? + //?????????? if ((lpBmpInfo = (LPBITMAPINFO)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, BmpFileHeader.bfSize)) == NULL){ - MessageBoxNew(hWnd, "Heapüʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "Heap的配置记忆体失败!", "确定", MB_OK | MB_ICONSTOP); return (LPBITMAPINFO)NULL; //Memory Error } - //???????? + //???????? _hread(hFile, (void *)lpBmpInfo, BmpFileHeader.bfSize); //???????? @@ -779,11 +779,11 @@ LPBITMAPINFO LoadDirectDrawBitmap(char *pFile) } //---------------------------------------------------------------------------// -// ?? ???????????? // -// ?? short bxsize : ?θϐD???Ρ) // -// short bysize : ?θϐD?c?(Ρ) // -// DWORD ColorKey : a???k?(0?255) // -// ??k? ... ?????????? / ... NULL // +// ?? :???????????? // +// ?? :short bxsize : ?赶怐???巍纰) // +// short bysize : ?赶怐?c?(巍纰) // +// DWORD ColorKey : ????(0?255) // +// ??:? ... ?????????? /  ... NULL // //---------------------------------------------------------------------------// LPDIRECTDRAWSURFACE CreateSurface(short bxsize, short bysize, DWORD ColorKey, unsigned int VramOrSysram) { @@ -808,18 +808,18 @@ LPDIRECTDRAWSURFACE CreateSurface(short bxsize, short bysize, DWORD ColorKey, un //---------------------------------------------------------------------------// -// ?? ???????e??????? // -// ?? LPDIRECTDRAWSURFACE lpSurface : ?????? // -// short Xpoint : ???????t // -// short Ypoint : ??????t // -// LPBITMAPINFO pInfo : ??????????Bl // -// ?k ?? // +// ?? :?????????????? // +// ?? :LPDIRECTDRAWSURFACE lpSurface : ?????? // +// short Xpoint : ??????? // +// short Ypoint : ?????? // +// LPBITMAPINFO pInfo : ?????????? // +// ? :?? // //---------------------------------------------------------------------------// -// ????????????? ? StretchDIBits ?? ? +// ????????????? ? StretchDIBits ?? ? void DrawBitmapToSurface(LPDIRECTDRAWSURFACE lpSurface, int offsetX, int offsetY, LPBITMAPINFO pBmpInfo) { HDC hDcDest; - // e?????k????????????? + // ?????????????????? lpSurface->GetDC(&hDcDest); StretchDIBits(hDcDest, 0, 0, @@ -846,23 +846,23 @@ void DrawBitmapToSurface(LPDIRECTDRAWSURFACE lpSurface, int offsetX, int offsetY return; } -// ????????????? ? memcpy ?? ?****************************/ +// ????????????? ? memcpy ?? ?****************************/ #ifdef _READ16BITBMP void DrawBitmapToSurface2(SURFACE_INFO *surface_info,LPDIRECTDRAWSURFACE lpSurfaceSys,int offsetX,int offsetY,int sizeX,int sizeY,LPBITMAPINFO pBmpInfo) { LPDIRECTDRAWSURFACE lpSurface = surface_info->lpSurface; - DDSURFACEDESC ddsd; // ??????Bl - char *pDest; //Ŀĵָ// ?I????? - char *pSource; //Դָ// ??????? - short *pDest2; //Ŀĵָ(WORD type)// ?I??????????? - int surfacePitch; //source face // ?????????? - int bmpWidth; //bmpͼĿ// ???????? + DDSURFACEDESC ddsd; // ?????? + char *pDest; //目的地指标// ?????? + char *pSource; //来源指标// ??????? + short *pDest2; //目的地指标(WORD type)// ???????????? + int surfacePitch; //source face 宽度// ?????????? + int bmpWidth; //bmp图的宽度// ???????? int i; #ifdef _READ16BITBMP DDSURFACEDESC ddsdsys; - short *pDestSys; //Ŀĵָ systemmemory + short *pDestSys; //目的地指标 systemmemory int surfacePitchSys; //source face #endif #ifdef _HI_COLOR_32 @@ -876,7 +876,7 @@ void DrawBitmapToSurface2(SURFACE_INFO *surface_info,LPDIRECTDRAWSURFACE lpSurfa #ifdef _READ16BITBMP if(lpSurfaceSys == NULL ) return; #endif - // ?Bl???? + // ????? ZeroMemory( &ddsd, sizeof( DDSURFACEDESC ) ); ddsd.dwSize = sizeof( DDSURFACEDESC ); #ifdef _READ16BITBMP @@ -929,31 +929,31 @@ void DrawBitmapToSurface2(SURFACE_INFO *surface_info,LPDIRECTDRAWSURFACE lpSurfa for( i = 0 ; i < sizeY ; i++ ){ if(ResoMode == 1){ _asm{ - mov edi,[pDest] //?I???? - mov esi,[pSource] //?????? + mov edi,[pDest] //????? + mov esi,[pSource] //?????? mov eax,[sizeX] //???????? // mov ah,al // shr ax,1 mov cx,ax - inc esi //?????????????? + inc esi //?????????????? loop_100: - mov al,[esi] //??????? - // cmp al,240 //????a? + mov al,[esi] //??????? + // cmp al,240 //????? // jne loop_200 //????????? - // xor al,al //??a?? + // xor al,al //???? //loop_200: mov [edi],al //???????? - inc esi //??????? - inc esi //??????? - inc edi //?I????? - // dec ah //?? - dec cx //?? - jne loop_100 //?????????? + inc esi //??????? + inc esi //??????? + inc edi //?????? + // dec ah //?? + dec cx //?? + jne loop_100 //?????????? } - // ???????????????? ?????????? ? + // ???????????????? ?????????? ? pSource -= bmpWidth*2; } else { #ifdef _HI_COLOR_32 @@ -1093,10 +1093,10 @@ void DrawBitmapToSurface2(SURFACE_INFO *surface_info,LPDIRECTDRAWSURFACE lpSurfa } //HiO???????? - // ???????????????? ?????????? ? + // ???????????????? ?????????? ? pSource -= bmpWidth; } - // ??????????????? + // ??????????????? pDest += surfacePitch; #ifdef _READ16BITBMP pDestSys += surfacePitchSys; @@ -1108,7 +1108,7 @@ void DrawBitmapToSurface2(SURFACE_INFO *surface_info,LPDIRECTDRAWSURFACE lpSurfa // ??????????????????? if( lpSurface->Unlock( NULL ) != DD_OK ){ - //MessageBoxNew( hWnd, "SurfaceUnlockʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + //MessageBoxNew( hWnd, "Surface的Unlock失败!", "确定", MB_OK | MB_ICONSTOP ); return; } #ifdef _READ16BITBMP @@ -1123,12 +1123,12 @@ void DrawSurfaceFromPalette(SURFACE_INFO* surface_info) { int sizeX, sizeY; DDSURFACEDESC ddsd; - BYTE *pSource; //Դָ// + BYTE *pSource; //来源指标// LPDIRECTDRAWSURFACE lpSurface = surface_info->lpSurface; if (lpSurface == NULL) return; - //Ϊ256ɫ + //如果不为256色补丁 if (surface_info->colordepth > 0) return; - //԰δı䲢Ҳлɫ̣ôͷأʹûе + //如果调试板未改变并且不是切换调色板过程,那么就返回,使用缓存中的数据 if (surface_info->palNo == PalState.palNo && PalState.time == 1) return; sizeX = surface_info->sizeX; sizeY = surface_info->sizeY; @@ -1177,12 +1177,12 @@ void DrawBitmapToSurface2(SURFACE_INFO *surface_info, int offsetX, int offsetY, #ifdef _CACHE_SURFACE_ LPDIRECTDRAWSURFACE lpSurface = surface_info->lpSurface; DDSURFACEDESC ddsd; - char *pDest; //Ŀĵָ// - char *pCache; // - char *pSource; //Դָ// + char *pDest; //目的地指标// + char *pCache; //缓存 + char *pSource; //来源指标// BYTE *alphatemp; - int surfacePitch; //source face // - int bmpWidth; //bmpͼĿ// + int surfacePitch; //source face 宽度// + int bmpWidth; //bmp图的宽度// int i; if (lpSurface == NULL) return; @@ -1281,7 +1281,7 @@ void DrawBitmapToSurface2(SURFACE_INFO *surface_info, int offsetX, int offsetY, #endif } } - else //256ɫ + else //256色 缓存数据 { memcpy(pCache, pSource, sizeX); } @@ -1320,7 +1320,7 @@ void DrawBitmapToSurface2(SURFACE_INFO *surface_info, int offsetX, int offsetY, #endif } } - else //256ɫ + else //256色 { memcpy(pCache, pSource, sizeX); } @@ -1340,11 +1340,11 @@ void DrawBitmapToSurface2(SURFACE_INFO *surface_info, int offsetX, int offsetY, #else LPDIRECTDRAWSURFACE lpSurface = surface_info->lpSurface; DDSURFACEDESC ddsd; - char *pDest; //Ŀĵָ// - char *pSource; //Դָ// + char *pDest; //目的地指标// + char *pSource; //来源指标// BYTE *alphatemp; - int surfacePitch; //source face // - int bmpWidth; //bmpͼĿ// + int surfacePitch; //source face 宽度// + int bmpWidth; //bmp图的宽度// int i; if( lpSurface == NULL ) return; @@ -1495,10 +1495,10 @@ void DrawBitmapToSurface2(SURFACE_INFO *surface_info, int offsetX, int offsetY, #endif } -// ?????? **************************************************************/ +// ?????? **************************************************************/ void DrawBox(RECT *rect, unsigned char color, BOOL fill) { - DDSURFACEDESC ddsd; // ??????Bl + DDSURFACEDESC ddsd; // ?????? #ifdef _READ16BITBMP DDSURFACEDESC ddsdsys; int surfacePitchsys,bottomSys; @@ -1511,14 +1511,14 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) int *pDestSys32; #endif #endif - char *pDest; // ?I????? - short *pDest2; // ?I??????????? + char *pDest; // ?????? + short *pDest2; // ???????????? int surfacePitch; // ?????????? int i, j; // ??????? - int bottom; // ?_???????? + int bottom; // ????????? int w; // ?? - int h; // ? - short pixel; // 16BitColor????ѩ + int h; // ? + short pixel; // 16BitColor???? //??????????????? if (ResoMode == 1){ @@ -1540,7 +1540,7 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) if (fill != 2 && (w <= 2 || h <= 2)) return; if (fill == 2 && w == 0) return; - // ?Bl???? + // ????? ZeroMemory(&ddsd, sizeof(DDSURFACEDESC)); ddsd.dwSize = sizeof(DDSURFACEDESC); #ifdef _READ16BITBMP @@ -1550,9 +1550,9 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) } #endif - // ?????????????????( i?? ddsd ?ѩ?V????? ) + // ?????????????????( ?? ddsd ??????? ) if (lpDraw->lpBACKBUFFER->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL) != DD_OK){ - //MessageBoxNew( hWnd, "Surfacelockʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + //MessageBoxNew( hWnd, "Surface的lock失败!", "确定", MB_OK | MB_ICONSTOP ); return; } #ifdef _READ16BITBMP @@ -1567,7 +1567,7 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) // ?????????? surfacePitch = ddsd.lPitch; - // D????????????? + // ????????????? #ifdef _HI_COLOR_32 if (displayBpp == 32){ // 32 Bit Color @@ -1605,7 +1605,7 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) int pixel; surfacePitch = surfacePitch >> 1; pDest32 = (int *)ddsd.lpSurface + rect->top * surfacePitch + rect->left + 1; - // ?_????????գk + // ????????? bottom = (h - 1) * surfacePitch; #ifdef _READ16BITBMP bottomSys = ( h - 1 ) * surfacePitchsys; @@ -1615,10 +1615,10 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) // ???? for (i = 0; i < w - 2; i++){ - // ?_?? + // ??? *(pDest32 + i) = pixel; *(pDest32 + surfacePitch + i) = pixel; - // ??_?? + // ???? *(pDest32 + bottom - surfacePitch + i) = pixel; *(pDest32 + bottom + i) = pixel; #ifdef _READ16BITBMP @@ -1631,13 +1631,13 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) #endif } - // D??? - *(pDest32 + surfacePitch + surfacePitch + 1) = pixel; // ? - *(pDest32 + surfacePitch + surfacePitch + w - 4) = pixel; // ? + // ??? + *(pDest32 + surfacePitch + surfacePitch + 1) = pixel; // ? + *(pDest32 + surfacePitch + surfacePitch + w - 4) = pixel; // ? *(pDest32 + bottom - (surfacePitch + surfacePitch) + 1) = pixel; // ?? *(pDest32 + bottom - (surfacePitch + surfacePitch) + w - 4) = pixel; // ?? - // ??????????????? + // ??????????????? pDest32 += surfacePitch - 1; #ifdef _READ16BITBMP if(g_bUseAlpha){ @@ -1649,15 +1649,15 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) } #endif - // ??? + // ??? for (i = 0; i < h - 2; i++){ - // ??_?? + // ???? *pDest32 = pixel; *(pDest32 + 1) = pixel; - // ??_?? + // ???? *(pDest32 + w - 1) = pixel; *(pDest32 + w - 2) = pixel; - // ??????????????? + // ??????????????? pDest32 += surfacePitch; #ifdef _READ16BITBMP if(g_bUseAlpha){ @@ -1675,7 +1675,7 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) if (displayBpp == 16){ // 16 Bit Color - // ?_????????գk + // ????????? bottom = (h - 1) * surfacePitch; #ifdef _READ16BITBMP bottomSys = ( h - 1 ) * surfacePitchsys; @@ -1685,10 +1685,10 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) // ???? for (i = 0; i < w - 2; i++){ - // ?_?? + // ??? *(pDest2 + i) = pixel; *(pDest2 + surfacePitch + i) = pixel; - // ??_?? + // ???? *(pDest2 + bottom - surfacePitch + i) = pixel; *(pDest2 + bottom + i) = pixel; #ifdef _READ16BITBMP @@ -1701,13 +1701,13 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) #endif } - // D??? - *(pDest2 + surfacePitch + surfacePitch + 1) = pixel; // ? - *(pDest2 + surfacePitch + surfacePitch + w - 4) = pixel; // ? + // ??? + *(pDest2 + surfacePitch + surfacePitch + 1) = pixel; // ? + *(pDest2 + surfacePitch + surfacePitch + w - 4) = pixel; // ? *(pDest2 + bottom - (surfacePitch + surfacePitch) + 1) = pixel; // ?? *(pDest2 + bottom - (surfacePitch + surfacePitch) + w - 4) = pixel; // ?? - // ??????????????? + // ??????????????? pDest2 += surfacePitch - 1; #ifdef _READ16BITBMP if(g_bUseAlpha){ @@ -1719,15 +1719,15 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) } #endif - // ??? + // ??? for (i = 0; i < h - 2; i++){ - // ??_?? + // ???? *pDest2 = pixel; *(pDest2 + 1) = pixel; - // ??_?? + // ???? *(pDest2 + w - 1) = pixel; *(pDest2 + w - 2) = pixel; - // ??????????????? + // ??????????????? pDest2 += surfacePitch; #ifdef _READ16BITBMP if(g_bUseAlpha){ @@ -1743,42 +1743,42 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) else{ // 8 Bit Color - // ?_??????? + // ???????? bottom = (h - 1) * surfacePitch; // ???? for (i = 0; i < w - 2; i++){ - // ?_?? + // ??? *(pDest + i) = color; *(pDest + i + surfacePitch) = color; - // ??_?? + // ???? *(pDest + i + bottom) = color; *(pDest + i + bottom - surfacePitch) = color; } - // D??? - *(pDest + surfacePitch + surfacePitch + 1) = color; // ? - *(pDest + surfacePitch + surfacePitch + w - 4) = color; // ? + // ??? + *(pDest + surfacePitch + surfacePitch + 1) = color; // ? + *(pDest + surfacePitch + surfacePitch + w - 4) = color; // ? *(pDest + bottom - (surfacePitch + surfacePitch) + 1) = color; // ?? *(pDest + bottom - (surfacePitch + surfacePitch) + w - 4) = color; // ?? - // ??????????????? + // ??????????????? pDest += surfacePitch - 1; - // ??? + // ??? for (i = 0; i < h - 2; i++){ - // ??_?? + // ???? *pDest = color; *(pDest + 1) = color; - // ??_?? + // ???? *(pDest + w - 1) = color; *(pDest + w - 2) = color; - // ??????????????? + // ??????????????? pDest += surfacePitch; } } } - else if (fill == 1){ // D?????? + else if (fill == 1){ // ?????? #ifdef _HI_COLOR_32 if (displayBpp == 32){ int pixel; @@ -1787,7 +1787,7 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) pDest32 = (int *)ddsd.lpSurface + rect->top * surfacePitch + rect->left + 1; pixel = highColor32Palette[color]; - // ??????? + // ??????? for (i = 0; i < w - 2; i++){ *(pDest32 + i) = pixel; #ifdef _READ16BITBMP @@ -1918,8 +1918,8 @@ void DrawBox(RECT *rect, unsigned char color, BOOL fill) void DrawAutoMapping(int x, int y, unsigned char *autoMap, int w, int h) { - DDSURFACEDESC ddsd; // ??????Bl - char *ptDest; // ?I????? + DDSURFACEDESC ddsd; // ?????? + char *ptDest; // ?????? char *tmpPtDest; // ??? char *tmpPtDest2; // ???? int surfacePitch; // ?????????? @@ -1961,19 +1961,19 @@ void DrawAutoMapping(int x, int y, unsigned char *autoMap, int w, int h) else{ pc_color = 0; } - // ?Bl???? + // ????? ZeroMemory(&ddsd, sizeof(DDSURFACEDESC)); ddsd.dwSize = sizeof(DDSURFACEDESC); - // ?????????????????( i?? ddsd ?ѩ?V????? ) + // ?????????????????( ?? ddsd ??????? ) if (lpDraw->lpBACKBUFFER->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL) != DD_OK) { - //MessageBoxNew( hWnd, "Surfacelockʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + //MessageBoxNew( hWnd, "Surface的lock失败!", "确定", MB_OK | MB_ICONSTOP ); return; } // ?????????? surfacePitch = ddsd.lPitch; - // D????????????? + // ????????????? ptDest = (char *)(ddsd.lpSurface) + (y + yy) * surfacePitch; if (displayBpp == 8){ ptDest += (x + xx); @@ -1992,7 +1992,7 @@ void DrawAutoMapping(int x, int y, unsigned char *autoMap, int w, int h) tmpPtDest += (surfacePitch + 2); } ptDest = tmpPtDest2 + (surfacePitch + 2)*hh / 2 - (surfacePitch - 2)*ww / 2; - // ???????????????? + // ???????????????? *(ptDest - 1) = pc_color; *(ptDest) = pc_color; *(ptDest + 1) = pc_color; @@ -2018,7 +2018,7 @@ void DrawAutoMapping(int x, int y, unsigned char *autoMap, int w, int h) } ptDest = tmpPtDest2 + (surfacePitch + 4)*hh - (surfacePitch - 4)*ww; color = highColor32Palette[pc_color]; - // ???????????????? + // ???????????????? *(int *)(ptDest - 4) = color; *(int *)(ptDest) = color; *(int *)(ptDest + 4) = color; @@ -2044,7 +2044,7 @@ void DrawAutoMapping(int x, int y, unsigned char *autoMap, int w, int h) } ptDest = tmpPtDest2 + (surfacePitch + 4)*hh / 2 - (surfacePitch - 4)*ww / 2; color = highColorPalette[pc_color]; - // ???????????????? + // ???????????????? *(short*)(ptDest - 2) = color; *(short*)(ptDest) = color; *(short*)(ptDest + 2) = color; @@ -2054,7 +2054,7 @@ void DrawAutoMapping(int x, int y, unsigned char *autoMap, int w, int h) // ??????????????????? if (lpDraw->lpBACKBUFFER->Unlock(NULL) != DD_OK) { - //MessageBoxNew( hWnd, "SurfaceUnlockʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + //MessageBoxNew( hWnd, "Surface的Unlock失败!", "确定", MB_OK | MB_ICONSTOP ); return; } @@ -2062,7 +2062,7 @@ void DrawAutoMapping(int x, int y, unsigned char *autoMap, int w, int h) } -// ????????????????? +// ????????????????? int getAutoMapColor(unsigned int GraphicNo) { int index = 0; @@ -2073,13 +2073,13 @@ int getAutoMapColor(unsigned int GraphicNo) int color; int i, j; - // real.bin?G?k?????????????? + // real.bin???????????????? if (realGetImage(GraphicNo, (unsigned char **)&graBuf, &width, &height) == FALSE) return 0; - // ??????Χ???? + // ?????????? for (i = 0; i < height; i++){ for (j = 0; j < width; j++){ index = graBuf[i*width + j]; - if (index != DEF_COLORKEY){ // a??????? + if (index != DEF_COLORKEY){ // ??????? red += Palette[index].peRed; green += Palette[index].peGreen; blue += Palette[index].peBlue; @@ -2089,16 +2089,16 @@ int getAutoMapColor(unsigned int GraphicNo) } if (cnt == 0) return 0; - // ???k??????????????S? + // ?????????????????? color = getNearestColorIndex(RGB(red / cnt, green / cnt, blue / cnt), Palette, 256); return color; } //---------------------------------------------------------------------------// -// ?entry?????palette?????color??k?????index??? +// ?entry?????palette?????color???????index??? //---------------------------------------------------------------------------// -//ref Ѱɫӽɫ +//ref 寻找色盘中最接近的颜色 int getNearestColorIndex(COLORREF color, PALETTEENTRY *palette, int entry) { double distance, mindist; @@ -2123,9 +2123,9 @@ int getNearestColorIndex(COLORREF color, PALETTEENTRY *palette, int entry) //---------------------------------------------------------------------------// -// ?????????? // +// ?????????? // //---------------------------------------------------------------------------// -//ref ͼЧ +//ref 画出地图的特效 void DrawMapEffect(void) { DDSURFACEDESC ddsd; @@ -2296,7 +2296,7 @@ void DrawMapEffect(void) if (buf->mode == 0){ #ifdef _HI_COLOR_32 if (displayBpp == 32){ - // ????? + // ????? *(ptDest32 - surfacePitch - 1) = highColor32Palette[8]; *(ptDest32 - surfacePitch) = highColor32Palette[255]; *(ptDest32 - surfacePitch + 1) = highColor32Palette[8]; @@ -2310,7 +2310,7 @@ void DrawMapEffect(void) else #endif if (displayBpp == 16){ - // ????? + // ????? *(ptDest2 - surfacePitch - 1) = highColorPalette[8]; *(ptDest2 - surfacePitch) = highColorPalette[255]; *(ptDest2 - surfacePitch + 1) = highColorPalette[8]; @@ -2322,7 +2322,7 @@ void DrawMapEffect(void) *(ptDest2 + surfacePitch + 1) = highColorPalette[8]; } else{ - // ????? + // ????? *(ptDest - surfacePitch - 1) = (char)8; *(ptDest - surfacePitch) = (char)255; *(ptDest - surfacePitch + 1) = (char)8; @@ -2337,7 +2337,7 @@ void DrawMapEffect(void) else if (buf->mode == 1){ #ifdef _HI_COLOR_32 if (displayBpp == 32){ - // ????? + // ????? *(ptDest32 - surfacePitch) = highColor32Palette[251]; *(ptDest32 - 1) = highColor32Palette[251]; *(ptDest32) = highColor32Palette[251]; @@ -2347,7 +2347,7 @@ void DrawMapEffect(void) else #endif if (displayBpp == 16){ - // ????? + // ????? *(ptDest2 - surfacePitch) = highColorPalette[251]; *(ptDest2 - 1) = highColorPalette[251]; *(ptDest2) = highColorPalette[251]; @@ -2355,7 +2355,7 @@ void DrawMapEffect(void) *(ptDest2 + surfacePitch) = highColorPalette[251]; } else{ - // ????? + // ????? *(ptDest - surfacePitch) = (char)251; *(ptDest - 1) = (char)251; *(ptDest) = (char)251; @@ -2366,7 +2366,7 @@ void DrawMapEffect(void) else if (buf->mode == 2){ #ifdef _HI_COLOR_32 if (displayBpp == 32){ - // ??????? + // ??????? *(ptDest32) = highColor32Palette[251]; *(ptDest32 + 1) = highColor32Palette[255]; *(ptDest32 + surfacePitch) = highColor32Palette[255]; @@ -2375,14 +2375,14 @@ void DrawMapEffect(void) else #endif if (displayBpp == 16){ - // ??????? + // ??????? *(ptDest2) = highColorPalette[251]; *(ptDest2 + 1) = highColorPalette[255]; *(ptDest2 + surfacePitch) = highColorPalette[255]; *(ptDest2 + surfacePitch + 1) = highColorPalette[251]; } else{ - // ??????? + // ??????? *(ptDest) = (char)251; *(ptDest + 1) = (char)255; *(ptDest + surfacePitch) = (char)255; @@ -2392,7 +2392,7 @@ void DrawMapEffect(void) else if (buf->mode == 3){ #ifdef _HI_COLOR_32 if (displayBpp == 32){ - // ??????? + // ??????? *(ptDest32) = highColor32Palette[255]; *(ptDest32 + 1) = highColor32Palette[251]; *(ptDest32 + surfacePitch) = highColor32Palette[251]; @@ -2401,14 +2401,14 @@ void DrawMapEffect(void) else #endif if (displayBpp == 16){ - // ??????? + // ??????? *(ptDest2) = highColorPalette[255]; *(ptDest2 + 1) = highColorPalette[251]; *(ptDest2 + surfacePitch) = highColorPalette[251]; *(ptDest2 + surfacePitch + 1) = highColorPalette[255]; } else{ - // ??????? + // ??????? *(ptDest) = (char)255; *(ptDest + 1) = (char)251; *(ptDest + surfacePitch) = (char)251; @@ -2418,7 +2418,7 @@ void DrawMapEffect(void) else if (buf->mode == 4){ #ifdef _HI_COLOR_32 if (displayBpp == 32){ - // ??????? + // ??????? *(ptDest32) = highColor32Palette[251]; *(ptDest32 + 1) = highColor32Palette[193]; *(ptDest32 + surfacePitch) = highColor32Palette[193]; @@ -2427,14 +2427,14 @@ void DrawMapEffect(void) else #endif if (displayBpp == 16){ - // ??????? + // ??????? *(ptDest2) = highColorPalette[251]; *(ptDest2 + 1) = highColorPalette[193]; *(ptDest2 + surfacePitch) = highColorPalette[193]; *(ptDest2 + surfacePitch + 1) = highColorPalette[193]; } else{ - // ??????? + // ??????? *(ptDest) = (char)251; *(ptDest + 1) = (char)193; *(ptDest + surfacePitch) = (char)193; @@ -2444,68 +2444,68 @@ void DrawMapEffect(void) else if (buf->mode == 5){ #ifdef _HI_COLOR_32 if (displayBpp == 32){ - // ????? + // ????? *(ptDest32) = highColor32Palette[198]; } else #endif if (displayBpp == 16){ - // ????? + // ????? *(ptDest2) = highColorPalette[198]; } else{ - // ????? + // ????? *(ptDest) = (char)198; } } else if (buf->mode == 6){ #ifdef _HI_COLOR_32 if (displayBpp == 32){ - // ????? + // ????? *(ptDest32) = highColor32Palette[193]; } else #endif if (displayBpp == 16){ - // ????? + // ????? *(ptDest2) = highColorPalette[193]; } else{ - // ????? + // ????? *(ptDest) = (char)193; } } else if (buf->mode == 7){ #ifdef _HI_COLOR_32 if (displayBpp == 32){ - // ????? + // ????? *(ptDest32) = highColor32Palette[208]; } else #endif if (displayBpp == 16){ - // ????? + // ????? *(ptDest2) = highColorPalette[208]; } else{ - // ????? + // ????? *(ptDest) = (char)208; } } else if (buf->mode == 8){ #ifdef _HI_COLOR_32 if (displayBpp == 32){ - // ??? + // ??? *(ptDest32) = highColor32Palette[251]; } else #endif if (displayBpp == 16){ - // ??? + // ??? *(ptDest2) = highColorPalette[251]; } else{ - // ??? + // ??? *(ptDest) = (char)251; } } @@ -2576,12 +2576,12 @@ void DrawMapEffect(void) -// ???????????? ????? ?************************************/ +// ???????????? ????? ?************************************/ void DrawDebugLine(unsigned char color) { - DDSURFACEDESC ddsd; // ??????Bl - char *pDest; // ?I????? - short *pDest2; // ?I??????????? + DDSURFACEDESC ddsd; // ?????? + char *pDest; // ?????? + short *pDest2; // ???????????? int surfacePitch; // ?????????? int i, j, k, l, m; short pixel; @@ -2589,16 +2589,16 @@ void DrawDebugLine(unsigned char color) // ???????????? if (WindowMode) return; - // ?Bl???? + // ????? ZeroMemory(&ddsd, sizeof(DDSURFACEDESC)); ddsd.dwSize = sizeof(DDSURFACEDESC); - // ?????????????????( i?? ddsd ?ѩ?V????? ) + // ?????????????????( ?? ddsd ??????? ) if (lpDraw->lpFRONTBUFFER->Lock(NULL, &ddsd, DDLOCK_WAIT, NULL) != DD_OK){ - //MessageBoxNew( hWnd, "Surfacelockʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + //MessageBoxNew( hWnd, "Surface的lock失败!", "确定", MB_OK | MB_ICONSTOP ); return; } - //?? + //?? j = lpDraw->xSize; k = lpDraw->ySize; l = 8; @@ -2614,19 +2614,19 @@ void DrawDebugLine(unsigned char color) int pixel; int *pDest32; pixel = highColor32Palette[color]; - // D????????????? + // ????????????? pDest32 = (int *)ddsd.lpSurface + j; // ?????????? surfacePitch = ddsd.lPitch >> 1; - // ??? + // ??? for (i = 0; i < k; i++) { - // ?????? + // ?????? for (m = 0; m < l; m++) { *(pDest32 + m) = pixel; } - // ??????????????? + // ??????????????? pDest32 += surfacePitch; } } @@ -2635,55 +2635,55 @@ void DrawDebugLine(unsigned char color) if (displayBpp == 16) { pixel = highColorPalette[color]; - // D????????????? + // ????????????? pDest2 = (short *)ddsd.lpSurface + j; // ?????????? surfacePitch = ddsd.lPitch >> 1; - // ??? + // ??? for (i = 0; i < k; i++) { - // ?????? + // ?????? for (m = 0; m < l; m++) { *(pDest2 + m) = pixel; } - // ??????????????? + // ??????????????? pDest2 += surfacePitch; } } else { - // D????????????? + // ????????????? pDest = (char *)(ddsd.lpSurface) + j; // ?????????? surfacePitch = ddsd.lPitch; - // ??? + // ??? for (i = 0; i < k; i++) { - // ?????? + // ?????? memset(pDest, color, l); - // ??????????????? + // ??????????????? pDest += surfacePitch; } } // ??????????????????? if (lpDraw->lpFRONTBUFFER->Unlock(NULL) != DD_OK){ - MessageBoxNew(hWnd, "SurfaceUnlockʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "Surface的Unlock失败!", "确定", MB_OK | MB_ICONSTOP); return; } return; } //---------------------------------------------------------------------------// -// ?? RECT???qֱ??վϐD????]? // -// ?? DIRECT_DRAW *lpDraw : DirectDraw???Bl // -// short bx : ?I??t // -// short by : ?I?t // -// LPDIRECTDRAWSURFACE lpSurface : ??????? // -// ?k DD_OK:? // +// ?? :RECT???忣帮搎匏直??忤站赶怐????]? // +// ?? :DIRECT_DRAW *lpDraw : DirectDraw??? // +// short bx : ??? // +// short by : ?? // +// LPDIRECTDRAWSURFACE lpSurface : ??????? // +// ? :DD_OK:? // //---------------------------------------------------------------------------// #ifdef _READ16BITBMP HRESULT DrawSurfaceFast( long bx, long by, LPDIRECTDRAWSURFACE lpSurface,LPDIRECTDRAWSURFACE lpSurfaceSys) @@ -2701,27 +2701,27 @@ HRESULT DrawSurfaceFast( long bx, long by, LPDIRECTDRAWSURFACE lpSurface,LPDIREC return DD_OK; } - // ?Z????? + // ?????? if( bx < 0 ){ rect.left -= bx; x0 = 0; } - // ?Z????? + // ?????? if( bx + w > lpDraw->xSize ){ rect.right -= bx + w - lpDraw->xSize; } - // ƣZ????? + // ????? if( by < 0 ){ rect.top -= by; y0 = 0; } - // ?Z????? + // ?????? if( by + h > lpDraw->ySize ){ rect.bottom -= by + h - lpDraw->ySize; } #ifdef _STONDEBUG_ - // ????????????????? + // ????????????????? SurfaceDispCnt++; #endif RECT rectD; @@ -2775,13 +2775,13 @@ HRESULT DrawSurfaceFast(short bx, short by, LPDIRECTDRAWSURFACE lpSurface) } //---------------------------------------------------------------------------// -// ?? RECT???qֱ??վϐD????]? // -// ?? DIRECT_DRAW *lpDraw : DirectDraw???Bl // -// short bx : ?I??t // -// short by : ?I?t // -// RECT * rect : ?????Bl // -// LPDIRECTDRAWSURFACE lpSurface : ??????? // -// ?k DD_OK:? // +// ?? :RECT???忣帮搎匏直??忤站赶怐????]? // +// ?? :DIRECT_DRAW *lpDraw : DirectDraw??? // +// short bx : ??? // +// short by : ?? // +// RECT * rect : ????? // +// LPDIRECTDRAWSURFACE lpSurface : ??????? // +// ? :DD_OK:? // //---------------------------------------------------------------------------// HRESULT DrawSurfaceFast2(short bx, short by, RECT *rect, LPDIRECTDRAWSURFACE lpSurface) { @@ -2794,48 +2794,48 @@ HRESULT DrawSurfaceFast2(short bx, short by, RECT *rect, LPDIRECTDRAWSURFACE lpS h = rect->bottom - rect->top; // ???????? - // ????? RECT ?????????????? + // ????? RECT ?????????????? - // u?????????? + // ?????????? if (bx >= lpDraw->xSize || bx + w <= 0 || by >= lpDraw->ySize || by + h <= 0){ return DD_OK; } - // ?Z????? + // ?????? if (bx < 0){ rect->left -= bx; x0 = 0; } - // ?Z????? + // ?????? if (bx + w > lpDraw->xSize){ rect->right -= bx + w - lpDraw->xSize; } - // ƣZ????? + // ????? if (by < 0){ rect->top -= by; y0 = 0; } - // ?Z????? + // ?????? if (by + h > lpDraw->ySize){ rect->bottom -= by + h - lpDraw->ySize; } #ifdef _STONDEBUG_ - // ????????????????? + // ????????????????? SurfaceDispCnt++; #endif - // ??????????L? + // ??????????? //return lpDraw->lpBACKBUFFER->BltFast( x0, y0, lpSurface, rect, DDBLTFAST_SRCCOLORKEY | DDBLTFAST_WAIT ); return lpDraw->lpBACKBUFFER->BltFast(x0, y0, lpSurface, rect, DDBLTFAST_WAIT); } -/* ?????????? ****************************************************/ +/* ?????????? ****************************************************/ void ReleaseDirectDraw(void) { int i; - // u???????????????? + // ???????????????? for (i = 0; i < SurfaceCnt; i++){ if (SurfaceInfo[i].lpSurface != NULL){ if (SurfaceInfo[i].lpAlphaData != NULL){ @@ -2867,24 +2867,24 @@ void ReleaseDirectDraw(void) extern void SkyIslandRelease(); SkyIslandRelease(); #endif - // ?????????? + // ?????????? if (lpBattleSurface != NULL){ // ???? lpBattleSurface->Release(); lpBattleSurface = NULL; } if (lpDraw){ - // ????? + // ????? if (lpDraw->lpPALETTE != NULL){ lpDraw->lpPALETTE->Release(); lpDraw->lpPALETTE = NULL; } - // ?????? + // ?????? if (lpDraw->lpCLIPPER != NULL){ lpDraw->lpCLIPPER->Release(); lpDraw->lpCLIPPER = NULL; } - // ????????? + // ????????? if (lpDraw->lpBACKBUFFER != NULL){ lpDraw->lpBACKBUFFER->Release(); lpDraw->lpBACKBUFFER = NULL; @@ -2901,18 +2901,18 @@ void ReleaseDirectDraw(void) } } #endif - // ??????????? + // ??????????? if (lpDraw->lpFRONTBUFFER != NULL){ lpDraw->lpFRONTBUFFER->Release(); lpDraw->lpFRONTBUFFER = NULL; } - // DirectDraw?? + // DirectDraw?? if (lpDraw->lpDD2 != NULL){ lpDraw->lpDD2->Release(); lpDraw->lpDD2 = NULL; } - // DIRECT_DRAW ?Bl? + // DIRECT_DRAW ?? HeapFree(GetProcessHeap(), NULL, lpDraw); lpDraw = NULL; } @@ -2925,7 +2925,7 @@ BOOL CheckSurfaceLost(void) { BOOL SurfaceLostFlag = FALSE; int i; - // u????????????????? + // ????????????????? for (i = 0; i < SurfaceCnt; i++){ // ?????????? if (SurfaceInfo[i].lpSurface != NULL){ @@ -2969,15 +2969,15 @@ BOOL CheckSurfaceLost(void) return SurfaceLostFlag; } -// ???????????? *************************************************/ +// ???????????? *************************************************/ void InitFont(int fontNo) { - // - //char *fontName[] = { "Microsoft JhengHei","_GB2312" }; + //宋体 + //char *fontName[] = { "Microsoft JhengHei","楷体_GB2312" }; #ifdef _NEWFONT_ - extern int ; + extern int 编码; char fontName[2][128]; - if(==950){ + if(编码==950){ sprintf(fontName[0],"Microsoft JhengHei"); sprintf(fontName[1],"Microsoft JhengHei"); }else{ @@ -2985,62 +2985,62 @@ void InitFont(int fontNo) sprintf(fontName[1],"Microsoft JhengHei"); } #else - extern int ; + extern int 编码; char fontName[2][128]; - if(==950){ + if(编码==950){ sprintf(fontName[0],"Microsoft JhengHei"); sprintf(fontName[1],"Microsoft JhengHei"); }else{ - sprintf(fontName[0],""); - sprintf(fontName[1],"_GB2312"); + sprintf(fontName[0],"宋体"); + sprintf(fontName[1],"楷体_GB2312"); } - //char *fontName[] = { "", "_GB2312" }; + //char *fontName[] = { "宋体", "楷体_GB2312" }; #endif // ????????? if (hFont != NULL){ - // ???????????? + // ???????????? DeleteObject(hFont); } //??????????????? if (ResoMode == 1){ - // MS??????e???????????????? + // MS?????????????????????? hFont = CreateFont( #ifdef _NEWFONT_ FONT_SIZE1, /* ???????? */ #else FONT_SIZE1, #endif - 0, /* ?????? */ - 0, /* ???????T */ - 0, /* ??? ????x??T */ - /* ?????^? */ + 0, /* ?????? */ + 0, /* ??????? */ + 0, /* ??? ????x?? */ + /* ?????? */ FW_NORMAL, // 0 - /* ?????lN???? */ + /* ????????? */ FALSE, - /* ?_?N???? */ + /* ?????? */ FALSE, - /* e??_?N???? */ + /* ??????? */ FALSE, - /* ???? */ - GB2312_CHARSET/*CHINESEBIG5_CHARSET*/, // ?G?? GB2312_CHARSET - /* ?ڥT */ + /* ???? */ + GB2312_CHARSET/*CHINESEBIG5_CHARSET*/, // ??? GB2312_CHARSET + /* ? */ OUT_DEFAULT_PRECIS, - /* ??????ڥT */ + /* ?????? */ CLIP_DEFAULT_PRECIS, - /* ? */ - DEFAULT_QUALITY, // ???????????????? + /* ? */ + DEFAULT_QUALITY, // ???????????????? /* ??? */ FIXED_PITCH | /* ???? */ - FF_ROMAN, // ???????????????????????MS(R) Serif???????? + FF_ROMAN, // ???????????????????????MS(R) Serif???????? fontName[fontNo]); } else { #ifdef _NEWFONT_ char strfame[128]; - if(==950){ + if(编码==950){ sprintf(strfame,"Microsoft JhengHei"); }else{ sprintf(strfame,"Microsoft JhengHei"); @@ -3051,7 +3051,7 @@ void InitFont(int fontNo) #else char strfame[128]; - if(==950){ + if(编码==950){ sprintf(strfame,"Microsoft JhengHei"); hFont = CreateFont(FONT_SIZE2,0,0,0,FW_NORMAL,FALSE,FALSE,FALSE,1, 0,0,0,17,(LPCTSTR)strfame @@ -3079,18 +3079,18 @@ void InitFont(int fontNo) } #ifdef _CHANNEL_MODIFY -char g_szChannelTitle[][13] = { "[]", "[]", "[]", "[]" +char g_szChannelTitle[][13] = { "[普]", "[密]", "[队]", "[族]" #ifdef _CHAR_PROFESSION -,"[ְ]" +,"[职]" #endif #ifdef _CHATROOMPROTOCOL -,"[]" +,"[聊]" #endif #ifdef _CHANNEL_WORLD -, "[]" +, "[世]" #endif #ifdef _CHANNEL_ALL_SERV -, "[]" +, "[星]" #endif }; extern int TalkMode; @@ -3262,12 +3262,12 @@ void PutText(char fontPrio) } } } - // 訞????? SetTextColor?????????????L? ? + // ????? SetTextColor?????????????? ? for (color = 0; color < FONT_PAL_NUM; color++){ for (i = 0; i < FontCnt; i++){ if (FontBuffer[i].fontPrio == fontPrio){ if (FontBuffer[i].color == color){ - // ????????????????? + // ????????????????? if (colorFlag == FALSE){ SetTextColor(hDc, FontPal[color]); #ifdef _READ16BITBMP @@ -3277,11 +3277,11 @@ void PutText(char fontPrio) } //??????????????? if (ResoMode == 1){ - // ????e????? + // ????????? TextOut(hDc, FontBuffer[i].x >> 1, FontBuffer[i].y >> 1, FontBuffer[i].str, (int)strlen(FontBuffer[i].str)); } else { - // ????e????? + // ????????? #ifdef _FONT_SIZE static HFONT newFont = NULL; static HFONT oldFont = NULL; @@ -3440,7 +3440,7 @@ void PutText(char fontPrio) } //---------------------------------------------------------------------------// -// ?????????V +// ????????? //---------------------------------------------------------------------------// void snapShot(void) { @@ -3452,23 +3452,23 @@ void snapShot(void) time_t longTime; FILE *fp; int w, h; - POINT clientPoint; // ??????????????????t??t + POINT clientPoint; // ???????????????????? - // ?????Bl???? + // ????????? clientPoint.x = 0; clientPoint.y = 0; - // ??????????????????x + // ?????????????????? ClientToScreen(hWnd, &clientPoint); - // V?????? + // ?????? if (_mkdir("screenshot") != 0) { if (errno != EEXIST) return; } - // V?????? - time(&longTime); // ???T??x + // ?????? + time(&longTime); // ????? localtime_s(&nowTime, &longTime); for (i = 0; i < 1000; i++) @@ -3499,7 +3499,7 @@ void snapShot(void) ddsdDesc.dwSize = sizeof(DDSURFACEDESC); if (lpDraw->lpFRONTBUFFER->Lock(NULL, &ddsdDesc, 0, NULL) != DD_OK){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd,"ǰʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + MessageBoxNew(hWnd,"前景缓冲区锁定失败!", "确定", MB_OK | MB_ICONSTOP ); #endif return; } @@ -3518,7 +3518,7 @@ void snapShot(void) BYTE *mem = new BYTE[w * h * 3], *pmem, pR, pG, pB; if (mem == NULL){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd,"ʧʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + MessageBoxNew(hWnd,"记忆体配置失败失败!", "确定", MB_OK | MB_ICONSTOP ); #endif return; } @@ -3526,20 +3526,20 @@ void snapShot(void) pmem = mem; pmem += w * h * 3; - // source face һƶbyte + // source face 一次移动二个byte ddsdDesc.lPitch >>= 1; - // work ӫĻλ,Ҫƫ + // work 是整个荧幕的位置,要作偏移 work += ddsdDesc.lPitch * g_clientPoint.y + g_clientPoint.x; for (int y = 0; y < h; y++){ pmem -= w * 3; for (int x = 0; x < w; x++){ - // 565 ʾģʽ + // 565 显示模式 if (gBitRShift == 2){ pR = (BYTE)((((work[x] & 0xf800)) >> 11) << 3); pG = (BYTE)((((work[x] & 0x07e0)) >> 5) << 2); pB = (BYTE)((work[x] & 0x001f) << 3); } - // 555 ʾģʽ + // 555 显示模式 else{ pR = (BYTE)((work[x] >> 10) << 3); pG = (BYTE)(((work[x] & 0x03e0) >> 5) << 3); @@ -3549,7 +3549,7 @@ void snapShot(void) *pmem++ = pG; *pmem++ = pR; } - // + // 换行 work += ddsdDesc.lPitch; pmem -= w * 3; } @@ -3566,7 +3566,7 @@ void snapShot(void) } -// ???????????V +// ??????????? BOOL saveBmpFile(const char *filename, BYTE *buf, int x, int y, int width, int height, int srcpitch, RGBQUAD *rgbpal, int colorCnt) @@ -3722,7 +3722,7 @@ void Draw16BitmapToSurface2(SURFACE_INFO *surface_info,LPDIRECTDRAWSURFACE lpSur pDestSys32++; } } - // һ + // 换下一行 pDest32 += surfacePitch32 - sizeX; pSource += RealBinWidth - sizeX; if(g_bUseAlpha) pDestSys32 += surfacePitchSys32 - sizeX; @@ -3749,7 +3749,7 @@ void Draw16BitmapToSurface2(SURFACE_INFO *surface_info,LPDIRECTDRAWSURFACE lpSur pDestSys++; } } - // һ + // 换下一行 pDest += surfacePitch - sizeX; pSource += RealBinWidth - sizeX; if(g_bUseAlpha) pDestSys += surfacePitchSys - sizeX; @@ -3758,7 +3758,7 @@ void Draw16BitmapToSurface2(SURFACE_INFO *surface_info,LPDIRECTDRAWSURFACE lpSur surface_info->lpSurface->Unlock(NULL); if(g_bUseAlpha) lpSurfaceSys->Unlock(NULL); - // дalpha channel + // 有带alpha channel static UCHAR a[1]; if(g_bUseAlpha){ @@ -3772,7 +3772,7 @@ void Draw16BitmapToSurface2(SURFACE_INFO *surface_info,LPDIRECTDRAWSURFACE lpSur pAlphaDest++; pAlphaSource++; } - // һ + // 换下一行 pAlphaDest += SurfaceSizeX - sizeX; pAlphaSource += RealBinWidth - sizeX; } @@ -3792,7 +3792,7 @@ int CG_NEW_STATUS_WND; int CG_NEWITEM_WND; int CG_TRADE_WND; int CG_TRADE_VIEWWND; -// [?????? +// ?????? int CG_WND_G_0; int CG_WND_G_1; int CG_WND_G_2; @@ -3802,7 +3802,7 @@ int CG_WND_G_5; int CG_WND_G_6; int CG_WND_G_7; int CG_WND_G_8; -// [??????? +// ??????? int CG_WND2_G_0; int CG_WND2_G_1; int CG_WND2_G_2; @@ -3812,11 +3812,11 @@ int CG_WND2_G_5; int CG_WND2_G_6; int CG_WND2_G_7; int CG_WND2_G_8; -// [??????? +// ??????? int CG_WND3_G_7; int CG_WND3_G_8; int CG_WND3_G_9; -// o????? +// ????? int CG_BTL_PET_CHANGE_WND; // ???????? int CG_PET_WND_VIEW; @@ -3838,9 +3838,9 @@ int CG_MAIL_WND_PET_SEND_WND; int CG_MAIL_WND_HISTORY_WND; // ????????? int CG_ALBUM_WND; -// ??????K?????? +// ???????????? int CG_CHAT_REGISTY_WND; -// ?V?[?????? +// ???????? int CG_COMMON_WIN_YORO; int CG_FIELD_HELP_WND; // ?????????? @@ -3921,23 +3921,23 @@ void SetAnimTbl() else #endif { - CG_PKSERVER_PANEL = 26192; // ѡȡϵ - CG_BATTTLE_SKILLCHOICE = 26389; // սѡ - CG_FIELD_SKILL_PANEL = 26352; // ְҵܽ - CG_FIELD_CHATROOM_PANEL = 26427; // ҽ - CG_FIELD_SV_SELL_PANEL = 35221; // ̯() - CG_FIELD_SV_SELL_PRICE_PANEL = 35223; // ۼӴ + CG_PKSERVER_PANEL = 26192; // 选取星系人物框 + CG_BATTTLE_SKILLCHOICE = 26389; // 战斗中选择技能 + CG_FIELD_SKILL_PANEL = 26352; // 职业技能介面 + CG_FIELD_CHATROOM_PANEL = 26427; // 聊天室介面 + CG_FIELD_SV_SELL_PANEL = 35221; // 摆摊介面(卖方) + CG_FIELD_SV_SELL_PRICE_PANEL = 35223; // 输入售价视窗 CG_NEW_STATUS_WND = 26386; #ifdef _PET_ITEM - CG_NEWITEM_WND = 26455; // װλӴ(бǩ) + CG_NEWITEM_WND = 26455; // 人物装备栏位视窗(有标签) #else - CG_NEWITEM_WND = 26388; // װλӴ(֡š) + CG_NEWITEM_WND = 26388; // 人物装备栏位视窗(左手、脚、手套) #endif - CG_TRADE_WND = 26328; // Ӵ + CG_TRADE_WND = 26328; // 交易主视窗 //end modified by lsh - CG_TRADE_VIEWWND = 26329; // ׼Ӵ + CG_TRADE_VIEWWND = 26329; // 交易检视视窗 CG_WND_G_0 = 26001; CG_WND_G_1 = 26002; CG_WND_G_2 = 26003; @@ -3959,19 +3959,19 @@ void SetAnimTbl() CG_WND3_G_7 = 26037; CG_WND3_G_8 = 26038; CG_WND3_G_9 = 26039; - CG_BTL_PET_CHANGE_WND = 26040; // Pf?????V?v?????? + CG_BTL_PET_CHANGE_WND = 26040; // ???????????? CG_PET_WND_VIEW = 26044; // ??????????????? - CG_PET_WND_DETAIL = 26045; // ?????????? - CG_NAME_CHANGE_WND = 26049; // q?????? + CG_PET_WND_DETAIL = 26045; // ?????????? + CG_NAME_CHANGE_WND = 26049; // ?????? CG_ITEM_WND_1 = 26061; // ?????????? - CG_JUJUTU_WND = 26068; // ????? - CG_ITEM_WND_SELECT_WND = 26070; // k????? + CG_JUJUTU_WND = 26068; // ????? + CG_ITEM_WND_SELECT_WND = 26070; // ????? CG_STATUS_WND_GROUP_WND = 26071; // ???????????? CG_MAP_WND = 26081; // ???????? CG_STATUS_WND = 26073; // ??????????????? CG_MAIL_WND = 26082; // ???????? - CG_MAIL_WND_SEND_WND = 26200; // ????????? - CG_MAIL_WND_PET_SEND_WND = 26201; // ????????????? + CG_MAIL_WND_SEND_WND = 26200; // ????????? + CG_MAIL_WND_PET_SEND_WND = 26201; // ????????????? CG_MAIL_WND_HISTORY_WND = 26203; // ?????????? CG_ALBUM_WND = 26230; // ????????? CG_CHAT_REGISTY_WND = 26232; @@ -3993,8 +3993,8 @@ HFONT CreateNewFont(int size) { #ifdef _NEWFONT_ char strfame[128]; - extern int ; - if(==950){ + extern int 编码; + if(编码==950){ sprintf(strfame,"Microsoft JhengHei"); }else{ sprintf(strfame,"Microsoft JhengHei"); @@ -4004,14 +4004,14 @@ HFONT CreateNewFont(int size) { 0,0,0,17,(LPCTSTR)strfame); #else char strfame[128]; - extern int ; - if(==950){ + extern int 编码; + if(编码==950){ sprintf(strfame,"Microsoft JhengHei"); return CreateFont(size,0,0,0,FW_NORMAL,FALSE,FALSE,FALSE,1, 0,0,0,17,(LPCTSTR)strfame); }else{ return CreateFont(size,0,0,0,400,FALSE,FALSE,FALSE,134, - OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,FIXED_PITCH|FF_ROMAN,(LPCTSTR)""); + OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,FIXED_PITCH|FF_ROMAN,(LPCTSTR)"宋体"); } #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/system/field.cpp b/石器时代8.5客户端最新源代码/石器源码/system/field.cpp index 6dfd0c5..4a6940d 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/field.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/field.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -39,17 +39,17 @@ extern int nPetItemEquipBmpNumber[PET_EQUIPNUM][2]; #include "../systeminc/field.h" -// ???????ul +// ??????? short drawFieldButtonFlag = 1; -int fieldBtnHitId[FIELD_FUNC_END]; // ????????Re? +int fieldBtnHitId[FIELD_FUNC_END]; // ????????? short drawTimeAnimeFlag = 0; extern BOOL bNewServer; extern BOOL g_bUseAlpha; -// лͼBUG -ACTION *ptActMenuWin1 = NULL;//鶯 +//新增 动作表情切换地图BUG +ACTION *ptActMenuWin1 = NULL;//表情动作窗口 -#ifdef _WATERANIMATION //Syu ADD ֮ +#ifdef _WATERANIMATION //Syu ADD 泪之海动画层 #define RAND(x,y) ((x - 1) + 1 + (int)((double)(y - (x - 1)) * rand() / (RAND_MAX + 1.0))) bool in817flag = false; #endif @@ -58,7 +58,7 @@ bool in817flag = false; void TeacherSystemWndfunc(int flag,char *data); #endif -BOOL BattlingFlag = FALSE; //for߻ϵͳ־ʹ +BOOL BattlingFlag = FALSE; //for线回系统与任务日志使用 #ifdef __ONLINEGM BOOL OnlineGmFlag = FALSE; @@ -72,21 +72,21 @@ int JobdailyGetMax = FALSE; //int PageIndex = 0; #endif -#ifdef _CLOUD_EFFECT // (ɿ) ROG ADDƲЧ +#ifdef _CLOUD_EFFECT // (不可开) ROG ADD云层效果 void CloudDraw(); #endif -#ifdef _SURFACE_ANIM //ROG ADD ̬ʾ +#ifdef _SURFACE_ANIM //ROG ADD 动态地上物显示 int ani_num = 0; BOOL breadAniFlag = FALSE; ACTION *SPACT[MAX_ANIM]; - int ProduceXY[MAX_ANIM][7] = { -1 }; //0: spr, 1: x, 2: y, 3: ʱ 4:Ȩ 5:Ƿ 6:ACTION + int ProduceXY[MAX_ANIM][7] = { -1 }; //0: spr编号, 1: x座标, 2: y座标, 3: 出现时间 4:优先权 5:是否完成 6:ACTION #else - #ifdef _SPECIALSPACEANIM // Syu ADD ⳡ + #ifdef _SPECIALSPACEANIM // Syu ADD 特殊场景动画配置 static ACTION *SPACT[MAX_ANIM]; #ifdef _SPECIALSPACEANIM_FIX - #ifdef _MOON_FAIRYLAND // ROG ADD ֮ɾ - // 0:ͼx 1:ͼy 2:ͼ 3:grano 4:ProduceXYûʹ 5:ProduceXYSPACTλ 6:ʾ˳ + #ifdef _MOON_FAIRYLAND // ROG ADD 月之仙境 + // 0:地图上x座标 1:地图上y座标 2:地图编号 3:grano 4:此ProduceXY有没有使用 5:此ProduceXY在SPACT的位置 6:显示优先顺序 int ProduceXY[TOTAL_ANIM][7] = { { 48 , 27 , 1200 , 101290 , 0 , -1 , 30}, { 36 , 28 , 8255 , 101730 , 0 , -1 , 0 }, @@ -107,31 +107,31 @@ void CloudDraw(); #endif #endif -#ifdef _AniCrossFrame // Syu ADD ι -static ACTION *WaterAct2; //ι涯 -bool delFlag = false; //ι涯ɾ -bool flag22 = true; //ι涯ʲô -bool Timeflag2 = false; //ι涯ʱ -int TimeTick2 = 0; //ι涯ʱ -int TimeTickMax2 = 0; //ι涯ʱ +#ifdef _AniCrossFrame // Syu ADD 动画层游过画面生物 +static ACTION *WaterAct2; //游过画面动画 +bool delFlag = false; //游过画面动画删除与否旗标 +bool flag22 = true; //游过画面动画的什么忘了 +bool Timeflag2 = false; //游过画面动画计时器旗标 +int TimeTick2 = 0; //游过画面动画计时器 +int TimeTickMax2 = 0; //游过画面动画计时器上限 #endif -#ifdef _AniRandom // Syu ADD -static ACTION *WaterAct[50]; // -bool Timeflag[50] = {false}; // -int TimeTick[50] = {0}; //ʱ -int TimeTickMax[50] = {0}; //ʱ -bool AniFlag = false; // +#ifdef _AniRandom // Syu ADD 随机产生环境动画 +static ACTION *WaterAct[50]; //环境动画 +bool Timeflag[50] = {false}; //环境动画产生旗标 +int TimeTick[50] = {0}; //环境动画计时器 +int TimeTickMax[50] = {0}; //环境动画计时器上限 +bool AniFlag = false; //环境动画消灭旗标 #endif -#ifdef _AniImmobile // Syu ADD ض -static ACTION *WaterAct3[30]; //㶯 -bool Updownflag = false; //㶯Ư -int XYposition[560][7] = //㶯 - //{ X, Y, ͼ, , õAction, - // Ư(1ᶯ,2ᶯ), Ưʱ} +#ifdef _AniImmobile // Syu ADD 定点产生特定动画 +static ACTION *WaterAct3[30]; //定点动画 +bool Updownflag = false; //定点动画上下漂浮旗标 +int XYposition[560][7] = //定点动画产生点阵列 + //{ X座标, Y座标, 图号, 存在与否旗标, 配置的Action编号, + // 漂浮上下旗标(1会动,2不会动), 漂浮计时器} { { 252 , 255 , 101511 , 0 , -1 , 1 , 0}, { 233 , 268 , 101510 , 0 , -1 , 1 , 0}, @@ -234,7 +234,7 @@ int XYposition[560][7] = // { 162 , 211 , 101516 , 0 , -1 , 1 , 0}, { 170 , 202 , 101510 , 0 , -1 , 1 , 0}, - //캣 101595 캣 101597 + //大红海草右 101595 大红海草左 101597 {130,181, 101595 , 0 , -1 , 2 , 0},{275,255, 101597 , 0 , -1 , 2 , 0}, {124,161, 101595 , 0 , -1 , 2 , 0},{261,265, 101597 , 0 , -1 , 2 , 0}, {243,90 , 101595 , 0 , -1 , 2 , 0},{226,250, 101597 , 0 , -1 , 2 , 0}, @@ -273,7 +273,7 @@ int XYposition[560][7] = // {360,157, 101595 , 0 , -1 , 2 , 0},{349,225, 101597 , 0 , -1 , 2 , 0}, {370,170, 101595 , 0 , -1 , 2 , 0},{341,234, 101597 , 0 , -1 , 2 , 0}, {300,254, 101595 , 0 , -1 , 2 , 0},{311,239, 101597 , 0 , -1 , 2 , 0}, - //̺ 101594 ̺ 101596 + //大绿海草右 101594 大绿海草左 101596 {129,185, 101594 , 0 , -1 , 2 , 0},{367,204, 101596 , 0 , -1 , 2 , 0}, {133,160, 101594 , 0 , -1 , 2 , 0},{340,221, 101596 , 0 , -1 , 2 , 0}, {248,87 , 101594 , 0 , -1 , 2 , 0},{330,227, 101596 , 0 , -1 , 2 , 0}, @@ -312,7 +312,7 @@ int XYposition[560][7] = // {365,154, 101594 , 0 , -1 , 2 , 0},{146,428, 101596 , 0 , -1 , 2 , 0}, {360,169, 101594 , 0 , -1 , 2 , 0},{128,405, 101596 , 0 , -1 , 2 , 0}, {373,186, 101594 , 0 , -1 , 2 , 0},{92,381 , 101596 , 0 , -1 , 2 , 0}, - // ̺ 101598 ̺ 101600 + // 中绿海草右 101598 中绿海草左 101600 {148,199, 101598 , 0 , -1 , 2 , 0},{356,218, 101600 , 0 , -1 , 2 , 0}, {120,158, 101598 , 0 , -1 , 2 , 0},{337,222, 101600 , 0 , -1 , 2 , 0}, {235,78 , 101598 , 0 , -1 , 2 , 0},{319,233, 101600 , 0 , -1 , 2 , 0}, @@ -351,7 +351,7 @@ int XYposition[560][7] = // {349,131, 101598 , 0 , -1 , 2 , 0},{132,414, 101600 , 0 , -1 , 2 , 0}, {372,177, 101598 , 0 , -1 , 2 , 0},{137,392, 101600 , 0 , -1 , 2 , 0}, {381,203, 101598 , 0 , -1 , 2 , 0},{79,374 , 101600 , 0 , -1 , 2 , 0}, - // 101599 101601 + //中蓝海草右 101599 中蓝海草左 101601 {141,202, 101599 , 0 , -1 , 2 , 0},{358,210, 101601 , 0 , -1 , 2 , 0}, {125,162, 101599 , 0 , -1 , 2 , 0},{344,230, 101601 , 0 , -1 , 2 , 0}, {243,94 , 101599 , 0 , -1 , 2 , 0},{326,229, 101601 , 0 , -1 , 2 , 0}, @@ -390,7 +390,7 @@ int XYposition[560][7] = // {363,162, 101599 , 0 , -1 , 2 , 0},{134,424, 101601 , 0 , -1 , 2 , 0}, {373,171, 101599 , 0 , -1 , 2 , 0},{127,403, 101601 , 0 , -1 , 2 , 0}, {385,192, 101599 , 0 , -1 , 2 , 0},{85,377 , 101601 , 0 , -1 , 2 , 0}, - // С̺ 101603 С̺ 101605 + // 小绿海草右 101603 小绿海草左 101605 {136,173, 101603 , 0 , -1 , 2 , 0},{349,213, 101605 , 0 , -1 , 2 , 0}, {118,158, 101603 , 0 , -1 , 2 , 0},{339,225, 101605 , 0 , -1 , 2 , 0}, {227,75 , 101603 , 0 , -1 , 2 , 0},{322,244, 101605 , 0 , -1 , 2 , 0}, @@ -429,7 +429,7 @@ int XYposition[560][7] = // {365,165, 101603 , 0 , -1 , 2 , 0},{142,398, 101605 , 0 , -1 , 2 , 0}, {373,184, 101603 , 0 , -1 , 2 , 0},{105,385, 101605 , 0 , -1 , 2 , 0}, {372,185, 101603 , 0 , -1 , 2 , 0},{71,371 , 101605 , 0 , -1 , 2 , 0}, - //С캣 101602 С캣 101604 + //小红海草右 101602 小红海草右 101604 {154,200, 101602 , 0 , -1 , 2 , 0},{349,211, 101604 , 0 , -1 , 2 , 0}, {119,157, 101602 , 0 , -1 , 2 , 0},{345,231, 101604 , 0 , -1 , 2 , 0}, @@ -486,12 +486,12 @@ int sStreetVendorBtnGraNo[] = CG_FIELD_SV_BTN_ON }; -// ۼӴ +// 输入售价视窗 extern void CheckNumber(char *buf,int num); static ACTION *pActSellPriceWnd = NULL; int SellPriceWndfunc() { - static STR_BUFFER str_bufferMoney; // ۼ,һǧ + static STR_BUFFER str_bufferMoney; // 售价输入栏,最多一千万 int x,y,iConfirm; if (pActSellPriceWnd == NULL) @@ -503,7 +503,7 @@ int SellPriceWndfunc() pActSellPriceWnd = MakeWindowDisp(winX, winY, winW, winH, CG_FIELD_SV_SELL_PRICE_PANEL, -1, FALSE); - // ۼֳʼ + // 售价文字初始化 ZeroMemory(str_bufferMoney.buffer, sizeof(str_bufferMoney.buffer)); str_bufferMoney.cnt = 0; str_bufferMoney.cursor = 0; @@ -527,7 +527,7 @@ int SellPriceWndfunc() DISP_PRIO_MENU, CG_FIELD_SV_SELL_PRICE_PANEL, 1); iConfirm = StockDispBuffer(x + 55,y + 67, DISP_PRIO_IME3, 26289, 2); - // ȷ + // 按下确定 if ((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == iConfirm) { DeathAction(pActSellPriceWnd); @@ -535,11 +535,11 @@ int SellPriceWndfunc() GetKeyInputFocus(&MyChatBuffer); return atoi(str_bufferMoney.buffer); } - // ۼ + // 滑鼠在售价区内 if (MakeHitBox(str_bufferMoney.x, str_bufferMoney.y, str_bufferMoney.x + 88, str_bufferMoney.y + 22, DISP_PRIO_BOX2) == TRUE) GetKeyInputFocus(&str_bufferMoney); CheckNumber(str_bufferMoney.buffer, 10000000); - // ʾ۸ + // 显示价格 StockFontBuffer2(&str_bufferMoney); } } @@ -547,12 +547,12 @@ int SellPriceWndfunc() return -1; } -// ̯Ӵ +// 摆摊功能视窗 extern void CheckSpace(char *buf); ACTION *pShowPet = NULL; Show_Sell_Item ShowSellItem[MAX_SELL_ITEM]; -STR_BUFFER str_bufferVendorName; // +STR_BUFFER str_bufferVendorName; // 店名 Show_Sell_Item *GetEmptyShowSellItem(Show_Sell_Item *ShowSellItem) { @@ -573,7 +573,7 @@ void StreetVendorWndfunc(bool bReset,char *data) static bool bChangePet = true,bRunSellPrice = false; static Show_Sell_Item *pShowSellItem = NULL; #ifdef _NEW_ITEM_ - extern int ҳ; + extern int 道具栏页数; static int iItemOnSell[MAX_MAXHAVEITEM*3]; #else static int iItemOnSell[MAX_MAXHAVEITEM]; @@ -585,7 +585,7 @@ void StreetVendorWndfunc(bool bReset,char *data) int winX = (lpDraw->xSize-winW)/2; int winY = (lpDraw->ySize-winH)/2; #ifdef _NEW_ITEM_ - ҳ=0; + 道具栏页数=0; #endif #ifdef _NEW_RESOMODE @@ -609,7 +609,7 @@ void StreetVendorWndfunc(bool bReset,char *data) } if (bReset) { - // ֳʼ + // 店名文字初始化 ZeroMemory(str_bufferVendorName.buffer, sizeof(str_bufferVendorName.buffer)); str_bufferVendorName.cnt = 0; str_bufferVendorName.cursor = 0; @@ -649,7 +649,7 @@ void StreetVendorWndfunc(bool bReset,char *data) pShowSellItem = GetEmptyShowSellItem(ShowSellItem); if (pShowSellItem != NULL) { - // + // 道具 if (kind == 0 && pItem[index].useFlag) { pShowSellItem->kind = kind; @@ -660,7 +660,7 @@ void StreetVendorWndfunc(bool bReset,char *data) pShowSellItem->usage = true; iItemOnSell[index - 9] = index; } - // + // 宠 else if(kind == 1 && pet[index].useFlag) { pShowSellItem->kind = kind; @@ -700,23 +700,23 @@ void StreetVendorWndfunc(bool bReset,char *data) y = pActStreetVendorWnd->y; selId = focusFontId(iSellItemBtn, sizeof(iSellItemBtn) / sizeof(int)); - // ʾ趨buttonֵλ - // ȷ + // 显示及设定button出现的位置 + // 确定 iBtn[0] = StockDispBuffer(x + 80, y + 388, DISP_PRIO_IME3, 26289, 2); - // ȡ + // 取消 iBtn[1] = StockDispBuffer(x + 230, y + 388, DISP_PRIO_IME3, 26291, 2); - // Ͼͷ + // 上卷箭头 iBtn[2] = StockDispBuffer(x + 305, y + 44, DISP_PRIO_IME3, 26331, 2); - // ¾ͷ + // 下卷箭头 iBtn[3] = StockDispBuffer(x + 305, y + 304, DISP_PRIO_IME3, 26332, 2); - // ðť + // 放置按钮 iBtn[4] = StockDispBuffer(x + 335, y + 300, DISP_PRIO_IME3, 26062, 2); - // ͷ + // 左箭头 iBtn[5] = StockDispBuffer(x + 520, y + 60, DISP_PRIO_IME3, 26047, 2); - // Ҽͷ + // 右箭头 iBtn[6] = StockDispBuffer(x + 570, y + 60, DISP_PRIO_IME3, 26048, 2); - // ʾ󷽵Ʒб + // 显示左方的物品列表 for (i = iListStart, j = 0; i < iListStart + 10; i++, j++) { if (ShowSellItem[i].usage) @@ -729,7 +729,7 @@ void StreetVendorWndfunc(bool bReset,char *data) StockFontBuffer(x + 20, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowSellItem[i].name, 0); sprintf(tempstr,"x%d",ShowSellItem[i].pile); StockFontBuffer(x + 180-getTextLength(tempstr)/2, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, tempstr, 0); - StockFontBuffer(x + 250-getTextLength("")/2, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, "", 0); + StockFontBuffer(x + 250-getTextLength("议价")/2, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, "议价", 0); }else{ StockFontBuffer(x + 20, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowSellItem[i].name, 0); sprintf(tempstr,"x%d",ShowSellItem[i].pile); @@ -741,7 +741,7 @@ void StreetVendorWndfunc(bool bReset,char *data) if (ShowSellItem[i].price == 0){ StockFontBuffer(x + 20, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowSellItem[i].name, 0); StockFontBuffer(x + 175- getTextLength(ShowSellItem[i].freeName)/2, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowSellItem[i].freeName, 0); - StockFontBuffer(x + 250-getTextLength("")/2, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, "", 0); + StockFontBuffer(x + 250-getTextLength("议价")/2, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, "议价", 0); }else{ StockFontBuffer(x + 20, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowSellItem[i].name, 0); StockFontBuffer(x + 175 - getTextLength(ShowSellItem[i].freeName)/2, y + 32 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowSellItem[i].freeName, 0); @@ -755,14 +755,14 @@ void StreetVendorWndfunc(bool bReset,char *data) if (ShowSellItem[i].kind == 0) { if (ShowSellItem[i].price == 0) - sprintf_s(szMsg, "%-20sx%3d%13s", ShowSellItem[i].name, ShowSellItem[i].pile, ""); + sprintf_s(szMsg, "%-20sx%3d%13s", ShowSellItem[i].name, ShowSellItem[i].pile, "议价"); else sprintf_s(szMsg, "%-20sx%3d%13d", ShowSellItem[i].name, ShowSellItem[i].pile, ShowSellItem[i].price); } else { if (ShowSellItem[i].price == 0) - sprintf_s(szMsg, "%-17s%-12s%8s", ShowSellItem[i].name, ShowSellItem[i].freeName, ""); + sprintf_s(szMsg, "%-17s%-12s%8s", ShowSellItem[i].name, ShowSellItem[i].freeName, "议价"); else sprintf_s(szMsg, "%-17s%-12s%8d", ShowSellItem[i].name, ShowSellItem[i].freeName, ShowSellItem[i].price); } @@ -782,7 +782,7 @@ void StreetVendorWndfunc(bool bReset,char *data) play_se(217, 320, 240); switch (i) { - // ȷ + // 确定 case 0: if (!bRunSellPrice) { @@ -791,26 +791,26 @@ void StreetVendorWndfunc(bool bReset,char *data) memset(szMsg, 0, sizeof(szMsg)); memset(szTemp, 0, sizeof(szTemp)); - // ҪĶserver + // 把要卖的东西的索引传给server for (j = 0; j < MAX_SELL_ITEM; j++) { if (ShowSellItem[j].usage) { sprintf_s(szTemp1, "%d|%d|%d|", ShowSellItem[j].kind, ShowSellItem[j].index, ShowSellItem[j].price); strcat_s(szTemp, szTemp1); - count++; // ͳ + count++; // 总数统计 } } if (count != 0) { if (str_bufferVendorName.cnt == 0 || str_bufferVendorName.cnt>16) { - sprintf_s(str_bufferVendorName.buffer, "ӭ!!"); + sprintf_s(str_bufferVendorName.buffer, "欢迎光临!!"); str_bufferVendorName.cnt = 10; } sprintf_s(szMsg, "S|%d|%s%s", count, szTemp, str_bufferVendorName.buffer); lssproto_STREET_VENDOR_send(sockfd, szMsg); - // ̯,Ҫ + // 摆摊有骑宠,要下马 if (pc.ridePetNo > -1) { char buf[64]; @@ -832,7 +832,7 @@ void StreetVendorWndfunc(bool bReset,char *data) } else break; - // ȡ + // 取消 case 1: if (i == 1) { @@ -851,24 +851,24 @@ void StreetVendorWndfunc(bool bReset,char *data) pActSellPriceWnd = NULL; GetKeyInputFocus(&MyChatBuffer); break; - // Ͼ + // 上卷 case 2: iListStart--; if (iListStart < 0) iListStart = 0; break; - // ¾ + // 下卷 case 3: iListStart++; if (iListStart > 10) iListStart = 10; break; - // + // 放置 case 4: if (!bRunSellPrice) { pShowSellItem = GetEmptyShowSellItem(ShowSellItem); - // пռ + // 还有空间能卖 if (pShowSellItem != NULL && iPetOnSell[iShowPet] == -1 && pShowPet != NULL) { iPetOnSell[iShowPet] = iShowPet; @@ -883,7 +883,7 @@ void StreetVendorWndfunc(bool bReset,char *data) } } break; - // ͷ + // 左箭头 case 5: if (!bRunSellPrice) { @@ -891,7 +891,7 @@ void StreetVendorWndfunc(bool bReset,char *data) bChangePet = true; } break; - // Ҽͷ + // 右箭头 case 6: if (!bRunSellPrice) { @@ -908,7 +908,7 @@ void StreetVendorWndfunc(bool bReset,char *data) { for (i = 0; i < 10; i++) { - // ޸ļ۸ + // 修改价格 if (mouse.onceState & MOUSE_LEFT_CRICK) { if (selId == iSellItemBtn[i]) @@ -918,7 +918,7 @@ void StreetVendorWndfunc(bool bReset,char *data) break; } } - // ȡ + // 取消不卖 else if (mouse.onceState & MOUSE_RIGHT_CRICK) { if (selId == iSellItemBtn[i]) @@ -945,12 +945,12 @@ void StreetVendorWndfunc(bool bReset,char *data) #ifdef _NEW_ITEM_ for(i=0;i<3;i++){ - if(i==ҳ){ + if(i==道具栏页数){ StockDispBuffer(722,350+i*56, DISP_PRIO_IME3,55223+i, 1); }else{ BOOL flg=FALSE; if(i){ - if(pc.״̬&1<usage = true; pShowSellItem->needGetPrice = true; - sprintf_s(pShowSellItem->name, "%s", pItem[].name); - pShowSellItem->pile = pItem[].pile; + sprintf_s(pShowSellItem->name, "%s", pItem[道具索引].name); + pShowSellItem->pile = pItem[道具索引].pile; pShowSellItem->kind = 0; - pShowSellItem->index = ; + pShowSellItem->index = 道具索引; } } } @@ -1028,13 +1028,13 @@ void StreetVendorWndfunc(bool bReset,char *data) { if (!bRunSellPrice) StockDispBuffer(itemx + 25, itemy + 25, DISP_PRIO_ITEM, pItem[j * 5 + i + 9].graNo, 0); - // ۸Ӵ,disp_prio 趨menuŲڼ۸Ӵ + // 若输入价格视窗开启,disp_prio 设定成menu才不会盖在价格视窗上 else StockDispBuffer(itemx + 25, itemy + 25, DISP_PRIO_MENU, pItem[j * 5 + i + 9].graNo, 0); } if (iItemOnSell[j * 5 + i] != -1) { - // ۸Ӵ,ʾsell + // 若输入价格视窗开启,不显示sell if (!bRunSellPrice) StockFontBuffer(itemx + 25, itemy + 25, FONT_PRIO_FRONT, FONT_PAL_RED, "SELL", 0); } @@ -1046,19 +1046,19 @@ void StreetVendorWndfunc(bool bReset,char *data) if( pItem[j * 5 + i + 9].useFlag ) ShowItemup(pItem[j * 5 + i + 9].itemup,mouse.nowPoint.x,mouse.nowPoint.y); #endif - // + // 有这个道具 if (pItem[j * 5 + i + 9].useFlag && - // жϵǷѡ + // 判断道具是否被选择 (mouse.onceState & MOUSE_LEFT_DBL_CRICK) && - // û + // 还没卖 (iItemOnSell[j * 5 + i] == -1) ) { pShowSellItem = GetEmptyShowSellItem(ShowSellItem); - // пռ + // 还有空间能卖 if (pShowSellItem != NULL) { - iItemOnSell[j * 5 + i] = j * 5 + i + 9; // ¼ǸҪ + iItemOnSell[j * 5 + i] = j * 5 + i + 9; // 记录身上那个道具要被卖 play_se(217,320,240); bRunSellPrice = true; pShowSellItem->usage = true; @@ -1074,12 +1074,12 @@ void StreetVendorWndfunc(bool bReset,char *data) #endif } } - // + // 秀宠物 for (i = 0; i < MAX_PET; i++) { if (bChangePet && !bRunSellPrice) { - // ֻҲ˼趨ɳʵij + // 有这只宠且不是正在骑乘及设定成宠邮的宠 if (pet[iShowPet].useFlag == 1 && (pc.ridePetNo != iShowPet) && (pc.mailPetNo != iShowPet)) { if (pShowPet != NULL) @@ -1103,15 +1103,15 @@ void StreetVendorWndfunc(bool bReset,char *data) } if (pShowPet != NULL) { - // ʾ + // 显示宠物资料 if (iPetOnSell[iShowPet] != -1) StockFontBuffer(x + 440, y + 195, FONT_PRIO_FRONT, FONT_PAL_RED, "SELL", 0); - // ʾ + // 显示宠物名称 if (strlen(pet[iShowPet].freeName) > 0) StockFontBuffer(x + 336, y + 28, FONT_PRIO_FRONT, 0, pet[iShowPet].freeName, 0); else StockFontBuffer(x + 336, y + 28, FONT_PRIO_FRONT, 0, pet[iShowPet].name, 0); - // ʾ + // 显示宠物的属性 _itoa_s(pet[iShowPet].level, temp, 10); StockFontBuffer(x + 542, y + 92 , FONT_PRIO_FRONT, FONT_PAL_WHITE, temp, 0); _itoa_s(pet[iShowPet].atk, temp, 10); @@ -1124,7 +1124,7 @@ void StreetVendorWndfunc(bool bReset,char *data) StockFontBuffer(x + 542, y + 92 + 97, FONT_PRIO_FRONT, FONT_PAL_WHITE, temp, 0); } } - // û + // 身上没宠 if (i == MAX_PET && bChangePet) { bChangePet = false; @@ -1134,12 +1134,12 @@ void StreetVendorWndfunc(bool bReset,char *data) pShowPet = NULL; } } - // ڵ + // 滑鼠在店名区内 if (MakeHitBox(str_bufferVendorName.x, str_bufferVendorName.y, str_bufferVendorName.x + 250, str_bufferVendorName.y + 24, DISP_PRIO_BOX2) == TRUE) GetKeyInputFocus(&str_bufferVendorName); CheckSpace(str_bufferVendorName.buffer); - // ʾ + // 显示店名 StockFontBuffer2(&str_bufferVendorName); StockDispBuffer(((WINDOW_DISP *)pActStreetVendorWnd->pYobi)->mx, ((WINDOW_DISP *)pActStreetVendorWnd->pYobi)->my, @@ -1148,15 +1148,15 @@ void StreetVendorWndfunc(bool bReset,char *data) } } -// ̯ +// 摆摊购买介面 Show_Vendor_Item ShowVendorItem[MAX_SELL_ITEM]; void StreetVendorBuyWndfunc(char *data) { int i,j,x,y,selId = 0; const int iMaxBtnNum = 5; - static int iBtn[iMaxBtnNum],iBuyItemBtn[MAX_SELL_ITEM],iListStart,iTotalBuy[2]; //iTotalBuy[0]: iTotalBuy[1]: - static int iEmptyNum[2],iCurrentShow,iTotalBuyMoney; // iEmptyNum[0]:ϵλ iEmptyNum[1]:λ + static int iBtn[iMaxBtnNum],iBuyItemBtn[MAX_SELL_ITEM],iListStart,iTotalBuy[2]; //iTotalBuy[0]:买入道具数量 iTotalBuy[1]:宠物买入数量 + static int iEmptyNum[2],iCurrentShow,iTotalBuyMoney; // iEmptyNum[0]:身上道具栏空位数量 iEmptyNum[1]:宠物栏空位数量 static int iMakePetAni = -1; #ifdef _PET_ITEM static BOOL bViewPetItem = FALSE; @@ -1206,14 +1206,14 @@ void StreetVendorBuyWndfunc(char *data) x = pActStreetVendorBuyWnd->x; y = pActStreetVendorBuyWnd->y; selId = focusFontId(iBuyItemBtn, sizeof(iBuyItemBtn) / sizeof(int)); - // ʾ趨buttonֵλ - // ȷ + // 显示及设定button出现的位置 + // 确定 iBtn[0] = StockDispBuffer(x + 410, y + 378, DISP_PRIO_IME3, 26289, 2); - // ȡ + // 取消 iBtn[1] = StockDispBuffer(x + 535, y + 378, DISP_PRIO_IME3, 26291, 2); - // Ͼͷ + // 上卷箭头 iBtn[2] = StockDispBuffer(x + 300, y + 34, DISP_PRIO_IME3, 26331, 2); - // ¾ͷ + // 下卷箭头 iBtn[3] = StockDispBuffer(x + 300, y + 374, DISP_PRIO_IME3, 26332, 2); #ifdef _PET_ITEM if (bViewPetItem) @@ -1230,7 +1230,7 @@ void StreetVendorBuyWndfunc(char *data) play_se(217, 320, 240); switch (i) { - // ȷ + // 确定 case 0: { int count = 0; @@ -1238,14 +1238,14 @@ void StreetVendorBuyWndfunc(char *data) memset(szMsg, 0, sizeof(szMsg)); memset(szTemp, 0, sizeof(szTemp)); - // ҪĶserver + // 把要买的东西的索引传给server for(j = 0; j < MAX_SELL_ITEM; j++) { if (ShowVendorItem[j].bBuy) { sprintf_s(szTemp1, "%d|", ShowVendorItem[j].index); strcat_s(szTemp, szTemp1); - count++; // ͳ + count++; // 总数统计 } } if (count != 0) @@ -1256,7 +1256,7 @@ void StreetVendorBuyWndfunc(char *data) else lssproto_STREET_VENDOR_send(sockfd, "N|"); } - // ȡ + // 取消 case 1: if (i == 1) lssproto_STREET_VENDOR_send(sockfd, "N|"); @@ -1271,13 +1271,13 @@ void StreetVendorBuyWndfunc(char *data) DeathAction(pActSellPriceWnd); pActSellPriceWnd = NULL; break; - // Ͼ + // 上卷 case 2: iListStart--; if (iListStart < 0) iListStart = 0; break; - // ¾ + // 下卷 case 3: iListStart++; if (iListStart > 13) @@ -1294,7 +1294,7 @@ void StreetVendorBuyWndfunc(char *data) } } - // ʾ󷽵Ʒб + // 显示左方的物品列表 for (i = iListStart, j = 0; i < iListStart + 13; i++, j++) { iBuyItemBtn[j]=-2; @@ -1309,7 +1309,7 @@ void StreetVendorBuyWndfunc(char *data) StockFontBuffer(x + 20, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowVendorItem[i].name, 0); sprintf(tempstr,"x%d",ShowVendorItem[i].pile); StockFontBuffer(x + 180-getTextLength(tempstr)/2, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, tempstr, 0); - StockFontBuffer(x + 250-getTextLength("")/2, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, "", 0); + StockFontBuffer(x + 250-getTextLength("议价")/2, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, "议价", 0); }else{ StockFontBuffer(x + 20, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowVendorItem[i].name, 0); sprintf(tempstr,"x%d",ShowVendorItem[i].pile); @@ -1319,7 +1319,7 @@ void StreetVendorBuyWndfunc(char *data) } #else if (ShowVendorItem[i].price == 0) - sprintf_s(szMsg, "%-20sx%3d%13s", ShowVendorItem[i].name, ShowVendorItem[i].pile, ""); + sprintf_s(szMsg, "%-20sx%3d%13s", ShowVendorItem[i].name, ShowVendorItem[i].pile, "议价"); else sprintf_s(szMsg, "%-20sx%3d%13d", ShowVendorItem[i].name, ShowVendorItem[i].pile, ShowVendorItem[i].price); #endif @@ -1332,7 +1332,7 @@ void StreetVendorBuyWndfunc(char *data) if (ShowVendorItem[i].price == 0){ StockFontBuffer(x + 20, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowVendorItem[i].name, 0); StockFontBuffer(x + 175- getTextLength(ShowVendorItem[i].freeName)/2, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowVendorItem[i].freeName, 0); - StockFontBuffer(x + 250-getTextLength("")/2, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, "", 0); + StockFontBuffer(x + 250-getTextLength("议价")/2, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, "议价", 0); }else{ StockFontBuffer(x + 20, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowVendorItem[i].name, 0); StockFontBuffer(x + 175 - getTextLength(ShowVendorItem[i].freeName)/2, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowVendorItem[i].freeName, 0); @@ -1341,7 +1341,7 @@ void StreetVendorBuyWndfunc(char *data) } #else if (ShowVendorItem[i].price == 0) - sprintf_s(szMsg, "%-17s%-12s%8s", ShowVendorItem[i].name, ShowVendorItem[i].freeName, ""); + sprintf_s(szMsg, "%-17s%-12s%8s", ShowVendorItem[i].name, ShowVendorItem[i].freeName, "议价"); else sprintf_s(szMsg, "%-17s%-12s%8d", ShowVendorItem[i].name, ShowVendorItem[i].freeName, ShowVendorItem[i].price); #endif @@ -1359,36 +1359,36 @@ void StreetVendorBuyWndfunc(char *data) //iBuyItemBtn[j] = StockFontBuffer(x + 20, y + 22 + 28 * j, FONT_PRIO_FRONT, FONT_PAL_WHITE, "", 0); } - // ʾĿϸ + // 显示项目详细资料 if (ShowVendorItem[iCurrentShow].bGetData) { - // ʾϸ + // 显示道具详细资料 if (ShowVendorItem[iCurrentShow].kind == 0) { int iy = y + 198, color = ShowVendorItem[iCurrentShow].color; char *splitPoint = ShowVendorItem[iCurrentShow].memo; - // ͼ + // 清除宠物图 if (pShowPet != NULL) { DeathAction(pShowPet); pShowPet = NULL; } - // ʾ + // 显示道具 StockDispBuffer(x + 415, y + 100, DISP_PRIO_ITEM, ShowVendorItem[iCurrentShow].bmpNo, 0); - // ʾߵµʯ + // 显示道具底下的石板 StockDispBuffer(x + 415, y + 100, DISP_PRIO_IME3, 26269, 0); - // ʾ + // 显示道具名称 StockFontBuffer(x + 325, y + 150, FONT_PRIO_FRONT, color, ShowVendorItem[iCurrentShow].name, 0); - // ʾ;ö - sprintf_s(szMsg, ";ö(%s)", ShowVendorItem[iCurrentShow].damage); + // 显示道具耐久度 + sprintf_s(szMsg, "耐久度(%s)", ShowVendorItem[iCurrentShow].damage); StockFontBuffer(x + 325, y + 174, FONT_PRIO_FRONT, color, szMsg, 0); #ifdef _NPC_ITEMUP ShowItemup(ShowVendorItem[iCurrentShow].itemup,x+325+250,y+194); #endif - // ʾ + // 显示道具叙述 while (1) { if (strlen(splitPoint) > 28) @@ -1416,19 +1416,19 @@ void StreetVendorBuyWndfunc(char *data) } } } - // ʾϸ + // 显示宠物详细资料 else { if (pShowPet != NULL) { #ifdef _PET_ITEM - // ʾϵ + // 显示宠物身上道具 if (bViewPetItem) { int nY = 251, nColor; char *splitPoint; - // ʾװĵͼװ + // 显示宠物装备栏的底图及装备 for (i = 0; i < PET_EQUIPNUM; i++) { StockDispBuffer(ItemBuffer[i].defX, ItemBuffer[i].defY, DISP_PRIO_IME3, nPetItemEquipBmpNumber[i][0], 0); @@ -1437,7 +1437,7 @@ void StreetVendorBuyWndfunc(char *data) } for (i = 0; i < PET_EQUIPNUM; i++) { - // ʾװ + // 显示装备内容 if (MakeHitBox( ItemBuffer[i].defX - 26, ItemBuffer[i].defY - 26, ItemBuffer[i].defX + 26, ItemBuffer[i].defY + 23, DISP_PRIO_IME3) == TRUE) { @@ -1445,17 +1445,17 @@ void StreetVendorBuyWndfunc(char *data) { nColor = ShowVendorItem[iCurrentShow].oPetItemInfo[i].color; splitPoint = ShowVendorItem[iCurrentShow].oPetItemInfo[i].memo; - // װ + // 装备名称 StockFontBuffer(x + 325, y + 195, FONT_PRIO_FRONT, nColor, ShowVendorItem[iCurrentShow].oPetItemInfo[i].name,0); - // ;ö - sprintf_s(szMsg, ";ö(%s)", ShowVendorItem[iCurrentShow].oPetItemInfo[i].damage); + // 耐久度 + sprintf_s(szMsg, "耐久度(%s)", ShowVendorItem[iCurrentShow].oPetItemInfo[i].damage); StockFontBuffer(x + 325, y + 215, FONT_PRIO_FRONT, nColor, szMsg, 0); #ifdef _NPC_ITEMUP ShowItemup(ShowVendorItem[iCurrentShow].itemup,x+325+250,y+235); #endif - // ʾ + // 显示道具叙述 while (1) { if (strlen(splitPoint) > 28) @@ -1489,68 +1489,68 @@ void StreetVendorBuyWndfunc(char *data) else #endif { - // ʾ + // 显示宠物名字 StockFontBuffer(x + 325, y + 35, FONT_PRIO_FRONT, FONT_PAL_WHITE, ShowVendorItem[iCurrentShow].name, 0); - // ʾת - sprintf_s(szMsg, "%d ת", ShowVendorItem[iCurrentShow].trans); + // 显示宠物转生数 + sprintf_s(szMsg, "%d 转", ShowVendorItem[iCurrentShow].trans); StockFontBuffer(x + 570, y + 35, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - // ʾﱻĺ + // 显示宠物被改后的名字 //StockFontBuffer(x + 325, y + 55, FONT_PRIO_FRONT, FONT_PAL_RED, ShowVendorItem[iCurrentShow].freeName, 0); - // ʾȼ,,Ѫ,,,, + // 显示宠物等级,,血,攻,防,敏,四属性 #ifdef _NEWFONT_ - sprintf_s(szMsg, " ǰ ԭʼ Ԥ ɳ "); + sprintf_s(szMsg, " 当前 原始 预测 成长 其它"); #else - sprintf_s(szMsg, " ǰ ԭʼ Ԥ ɳ "); + sprintf_s(szMsg, " 当前 原始 预测 成长 其它"); #endif StockFontBuffer(x + 325, y + 60, FONT_PRIO_FRONT, FONT_PAL_GREEN, szMsg, 0); - sprintf_s(szMsg, "Lv%d", ShowVendorItem[iCurrentShow].level); + sprintf_s(szMsg, "Lv:%d", ShowVendorItem[iCurrentShow].level); StockFontBuffer(x + 325, y + 80, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); #ifdef _PETBLESS_ if(ShowVendorItem[iCurrentShow].maxhp < 0 ){ - sprintf_s(szMsg, "Ѫ%d", abs(ShowVendorItem[iCurrentShow].maxhp)); + sprintf_s(szMsg, "血:%d", abs(ShowVendorItem[iCurrentShow].maxhp)); StockFontBuffer(x + 325, y + 100, FONT_PRIO_FRONT, FONT_PAL_RED, szMsg, 0); } else{ - sprintf_s(szMsg, "Ѫ%d", ShowVendorItem[iCurrentShow].maxhp); + sprintf_s(szMsg, "血:%d", ShowVendorItem[iCurrentShow].maxhp); StockFontBuffer(x + 325, y + 100, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); } if(ShowVendorItem[iCurrentShow].attack < 0 ){ - sprintf_s(szMsg, "%d", abs(ShowVendorItem[iCurrentShow].attack)); + sprintf_s(szMsg, "攻:%d", abs(ShowVendorItem[iCurrentShow].attack)); StockFontBuffer(x + 325, y + 120, FONT_PRIO_FRONT, FONT_PAL_RED, szMsg, 0); } else { - sprintf_s(szMsg, "%d", ShowVendorItem[iCurrentShow].attack); + sprintf_s(szMsg, "攻:%d", ShowVendorItem[iCurrentShow].attack); StockFontBuffer(x + 325, y + 120, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); } if(ShowVendorItem[iCurrentShow].defence < 0 ){ - sprintf_s(szMsg, "%d", abs(ShowVendorItem[iCurrentShow].defence)); + sprintf_s(szMsg, "防:%d", abs(ShowVendorItem[iCurrentShow].defence)); StockFontBuffer(x + 325, y + 140, FONT_PRIO_FRONT, FONT_PAL_RED, szMsg, 0); } else{ - sprintf_s(szMsg, "%d", ShowVendorItem[iCurrentShow].defence); + sprintf_s(szMsg, "防:%d", ShowVendorItem[iCurrentShow].defence); StockFontBuffer(x + 325, y + 140, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); } if(ShowVendorItem[iCurrentShow].dex < 0 ){ - sprintf_s(szMsg, "%d", abs(ShowVendorItem[iCurrentShow].dex)); + sprintf_s(szMsg, "敏:%d", abs(ShowVendorItem[iCurrentShow].dex)); StockFontBuffer(x + 325, y + 160, FONT_PRIO_FRONT, FONT_PAL_RED, szMsg, 0); } else{ - sprintf_s(szMsg, "%d", ShowVendorItem[iCurrentShow].dex); + sprintf_s(szMsg, "敏:%d", ShowVendorItem[iCurrentShow].dex); StockFontBuffer(x + 325, y + 160, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); } #else - sprintf_s(szMsg, "Lv%d", ShowVendorItem[iCurrentShow].level); + sprintf_s(szMsg, "Lv:%d", ShowVendorItem[iCurrentShow].level); StockFontBuffer(x + 325, y + 80, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - sprintf_s(szMsg, "Ѫ%d", ShowVendorItem[iCurrentShow].maxhp); + sprintf_s(szMsg, "血:%d", ShowVendorItem[iCurrentShow].maxhp); StockFontBuffer(x + 325, y + 100, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - sprintf_s(szMsg, "%d", ShowVendorItem[iCurrentShow].attack); + sprintf_s(szMsg, "攻:%d", ShowVendorItem[iCurrentShow].attack); StockFontBuffer(x + 325, y + 120, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - sprintf_s(szMsg, "%d", ShowVendorItem[iCurrentShow].defence); + sprintf_s(szMsg, "防:%d", ShowVendorItem[iCurrentShow].defence); StockFontBuffer(x + 325, y + 140, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - sprintf_s(szMsg, "%d", ShowVendorItem[iCurrentShow].dex); + sprintf_s(szMsg, "敏:%d", ShowVendorItem[iCurrentShow].dex); StockFontBuffer(x + 325, y + 160, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); #endif sprintf_s(szMsg, "%d", ShowVendorItem[iCurrentShow].ylv); @@ -1614,24 +1614,24 @@ void StreetVendorBuyWndfunc(char *data) - sprintf_s(szMsg, "أ%d", ShowVendorItem[iCurrentShow].earth/10); + sprintf_s(szMsg, "地:%d", ShowVendorItem[iCurrentShow].earth/10); StockFontBuffer(x + 560, y + 80, FONT_PRIO_FRONT, FONT_PAL_GREEN, szMsg, 0); - sprintf_s(szMsg, "ˮ%d", ShowVendorItem[iCurrentShow].water/10); + sprintf_s(szMsg, "水:%d", ShowVendorItem[iCurrentShow].water/10); StockFontBuffer(x + 560, y + 100, FONT_PRIO_FRONT, FONT_PAL_BLUE, szMsg, 0); - sprintf_s(szMsg, "%d", ShowVendorItem[iCurrentShow].fire/10); + sprintf_s(szMsg, "火:%d", ShowVendorItem[iCurrentShow].fire/10); StockFontBuffer(x + 560, y + 120, FONT_PRIO_FRONT, FONT_PAL_RED, szMsg, 0); - sprintf_s(szMsg, "磺%d", ShowVendorItem[iCurrentShow].wind/10); + sprintf_s(szMsg, "风:%d", ShowVendorItem[iCurrentShow].wind/10); StockFontBuffer(x + 560, y + 140, FONT_PRIO_FRONT, FONT_PAL_YELLOW, szMsg, 0); - sprintf_s(szMsg, "ң%d", ShowVendorItem[iCurrentShow].fidelity); + sprintf_s(szMsg, "忠:%d", ShowVendorItem[iCurrentShow].fidelity); StockFontBuffer(x + 560, y + 160, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - // ʾ輼 + // 显示宠技 for (i = 0; i < ShowVendorItem[iCurrentShow].maxSkill; i++) { - sprintf_s(szMsg, " %d%s", i + 1, ShowVendorItem[iCurrentShow].skillname[i]); + sprintf_s(szMsg, "技 %d:%s", i + 1, ShowVendorItem[iCurrentShow].skillname[i]); StockFontBuffer(x + 325, y + 190 + i * 20, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); } } @@ -1639,12 +1639,12 @@ void StreetVendorBuyWndfunc(char *data) } } - // Ŀ + // 处理左方项目 int kind; for (i = 0; i < 13; i++) { - // ѡҪ + // 选定要买 if (mouse.onceState & MOUSE_LEFT_CRICK) { //selId = focusFontId(iBuyItemBtn, sizeof(iBuyItemBtn) / sizeof(int)); @@ -1652,20 +1652,20 @@ void StreetVendorBuyWndfunc(char *data) { kind = ShowVendorItem[i + iListStart].kind; - // ѵѡȡ + // 若已点选则取消 if (ShowVendorItem[i + iListStart].bBuy) { ShowVendorItem[i + iListStart].bBuy = false; iTotalBuy[kind]--; iTotalBuyMoney -= ShowVendorItem[i + iListStart].price; } - // ǷƷ + // 是否是议价物品 else if (ShowVendorItem[i + iListStart].price > 0) { - // ϻпλ + // 身上还有空位 if (iEmptyNum[kind] > iTotalBuy[kind]) { - // ϵǮ㹻 + // 身上的钱足够 if ((iTotalBuyMoney + ShowVendorItem[i + iListStart].price) <= pc.gold) { ShowVendorItem[i + iListStart].bBuy = true; @@ -1673,22 +1673,22 @@ void StreetVendorBuyWndfunc(char *data) iTotalBuyMoney += ShowVendorItem[i + iListStart].price; } else - StockChatBufferLine("ʯҲ㣡", FONT_PAL_RED); + StockChatBufferLine("石币不足!", FONT_PAL_RED); } else { if (kind == 0) - StockChatBufferLine("ϵλ㣡", FONT_PAL_RED); + StockChatBufferLine("身上道具栏位不足!", FONT_PAL_RED); else if (kind == 1) - StockChatBufferLine("ϳλ㣡", FONT_PAL_RED); + StockChatBufferLine("身上宠物栏栏位不足!", FONT_PAL_RED); } } else - StockChatBufferLine("Ʒɵѡ", FONT_PAL_RED); + StockChatBufferLine("议价物品不可点选!", FONT_PAL_RED); break; } } - // Ŀ + // 看项目内容 else if (mouse.onceState & MOUSE_RIGHT_CRICK) { if (HitFontNo == iBuyItemBtn[i]) @@ -1719,10 +1719,10 @@ void StreetVendorBuyWndfunc(char *data) } } - // ʾϵǮ + // 显示身上的钱 sprintf_s(szMsg, "%d", pc.gold); StockFontBuffer(x + 380, y + 336, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - // ʾѡƷܼ + // 显示点选的物品的总价 sprintf_s(szMsg, "%d", iTotalBuyMoney); StockFontBuffer(x + 525, y + 336, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); if (iMakePetAni > -1) @@ -1742,7 +1742,7 @@ void StreetVendorBuyWndfunc(char *data) int nPetItemPlace; #endif getStringToken(data, '|', 1, sizeof(szMsg) - 1, szMsg); - // + // 贩卖物基本资料 if (szMsg[0] == 'B') { getStringToken(data, '|', 2, sizeof(szMsg) - 1, szMsg); @@ -1765,7 +1765,7 @@ void StreetVendorBuyWndfunc(char *data) ShowVendorItem[i].usage = true; } } - // ϸ + // 贩卖物详细资料 else if (szMsg[0] == 'D') { getStringToken(data, '|', 2, sizeof(szMsg) - 1, szMsg); @@ -1857,26 +1857,26 @@ void StreetVendorBuyWndfunc(char *data) #ifdef _PET_ITEM for (int j = 0; j < MAX_PET_ITEM; j++) { - // װλ + // 装备位置 if (getStringToken(data, '|', 16 + i + j * 6, sizeof(szMsg) - 1, szMsg)) continue; nPetItemPlace = atoi(szMsg); - // + // 名字 getStringToken(data, '|', 17 + i + j * 6, sizeof(ShowVendorItem[index].oPetItemInfo[nPetItemPlace].name) - 1, ShowVendorItem[index].oPetItemInfo[nPetItemPlace].name); - // ˵ + // 说明 getStringToken(data, '|', 18 + i + j * 6, sizeof(ShowVendorItem[index].oPetItemInfo[nPetItemPlace].memo) - 1, ShowVendorItem[index].oPetItemInfo[nPetItemPlace].memo); - // ;ö + // 耐久度 getStringToken(data, '|', 19 + i + j * 6, sizeof(ShowVendorItem[index].oPetItemInfo[nPetItemPlace].damage) - 1, ShowVendorItem[index].oPetItemInfo[nPetItemPlace].damage); - // ɫ + // 文字颜色 getStringToken(data, '|', 20 + i + j * 6, sizeof(szMsg) - 1, szMsg); ShowVendorItem[index].oPetItemInfo[nPetItemPlace].color = atoi(szMsg); - // ͼ + // 图号 getStringToken(data, '|', 21 + i + j * 6, sizeof(szMsg) - 1, szMsg); ShowVendorItem[index].oPetItemInfo[nPetItemPlace].bmpNo = atoi(szMsg); } @@ -1889,7 +1889,7 @@ void StreetVendorBuyWndfunc(char *data) } #else -#ifdef _TABLEOFSKILL // (ɿ) Syu ADD 7.0 \ܱ +#ifdef _TABLEOFSKILL // (不可开) Syu ADD 7.0 新增人物技能表单 int SkillWnd = 0 ; ACTION *pActSkillWnd; short skillBtn = 0; @@ -1899,7 +1899,7 @@ int skillBtnGraNo[] = CG_FIELD_SKILL_BTN_OFF, CG_FIELD_SKILL_BTN_ON }; -// ְҵӴ +// 职业技能视窗 void SkillWndfunc() { int x , y , j ; @@ -1909,7 +1909,7 @@ void SkillWndfunc() if (pActSkillWnd == NULL) { pActSkillWnd = MakeWindowDisp(354, 0, 300, 456, 0, -1); -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 x = pActSkillWnd->x; y = pActSkillWnd->y; #endif @@ -1997,12 +1997,12 @@ void SkillWndfunc() use_color = FONT_PAL_GRAY; sprintf_s(msg, "%s", profession_skill[AssitSkill[j + i * 4]].name); StockFontBuffer(355, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0); - sprintf_s(msg, "%d", profession_skill[AssitSkill[j + i * 4]].skill_level); + sprintf_s(msg, "%d%", profession_skill[AssitSkill[j + i * 4]].skill_level); StockFontBuffer(440, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0); - sprintf_s(msg, "(ķMP:%d)", profession_skill[AssitSkill[j + i * 4]].costmp); + sprintf_s(msg, "(耗费MP:%d)", profession_skill[AssitSkill[j + i * 4]].costmp); StockFontBuffer(500, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0); sprintf_s(msg, "%s", profession_skill[AssitSkill[j + i * 4]].memo); -#ifdef _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol +#ifdef _OUTOFBATTLESKILL // (不可开) Syu ADD 非战斗时技能Protocol if (mouse.onceState & MOUSE_LEFT_CRICK && profession_skill[AssitSkill[j + i * 4]].useFlag == 0) { if (pc.mp >= profession_skill[AssitSkill[j + i * 4]].costmp && profession_skill[AssitSkill[j + i * 4]].costmp != 0) @@ -2042,12 +2042,12 @@ void SkillWndfunc() sprintf_s(msg, "%s", profession_skill[BattleSkill[j + i * 4]].name); StockFontBuffer(355, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0); - sprintf_s(msg, "%d", profession_skill[BattleSkill[j + i * 4]].skill_level); + sprintf_s(msg, "%d%", profession_skill[BattleSkill[j + i * 4]].skill_level); StockFontBuffer(440, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0); - sprintf_s(msg, "(ķMP:%d)", profession_skill[BattleSkill[j + i * 4]].costmp); + sprintf_s(msg, "(耗费MP:%d)", profession_skill[BattleSkill[j + i * 4]].costmp); StockFontBuffer(500, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0); sprintf_s(msg, "%s", profession_skill[BattleSkill[j + i * 4]].memo); -#ifdef _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol +#ifdef _OUTOFBATTLESKILL // (不可开) Syu ADD 非战斗时技能Protocol if (mouse.onceState & MOUSE_LEFT_CRICK && profession_skill[BattleSkill[j + i * 4]].useFlag == 0) { if (pc.mp >= profession_skill[BattleSkill[j + i * 4]].costmp && profession_skill[BattleSkill[j + i * 4]].costmp != 0) @@ -2087,12 +2087,12 @@ void SkillWndfunc() sprintf_s(msg, "%s", profession_skill[AdvanceSkill[j + i * 4]].name); StockFontBuffer(355, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0); - sprintf_s(msg, "%d", profession_skill[AdvanceSkill[j + i * 4]].skill_level); + sprintf_s(msg, "%d%", profession_skill[AdvanceSkill[j + i * 4]].skill_level); StockFontBuffer(440, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0); - sprintf_s(msg, "(ķMP:%d)" , profession_skill[AdvanceSkill[j + i * 4]].costmp); + sprintf_s(msg, "(耗费MP:%d)" , profession_skill[AdvanceSkill[j + i * 4]].costmp); StockFontBuffer(500, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0); sprintf_s(msg, "%s", profession_skill[AdvanceSkill[j + i * 4]].memo); -#ifdef _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol +#ifdef _OUTOFBATTLESKILL // (不可开) Syu ADD 非战斗时技能Protocol if (mouse.onceState & MOUSE_LEFT_CRICK && profession_skill[AdvanceSkill[j + i * 4]].useFlag == 0) { if (pc.mp >= profession_skill[AdvanceSkill[j + i * 4]].costmp && profession_skill[AdvanceSkill[j + i * 4]].costmp != 0) @@ -2144,7 +2144,7 @@ void SkillWndfunc() #endif #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 ACTION *pChatRoomWnd; short chatRoomBtn = 0; short SelRoomBtn = 0; @@ -2165,7 +2165,7 @@ int menuBtnGraNo[] = CG_FIELD_MENU_BTN_ON }; -// ??? +// ??? short cardBtn = 0; short cardBtnFocus = 0; int cardBtnGraNo[] = @@ -2295,7 +2295,7 @@ int redmemoyGraNo[] = }; #endif unsigned int mailLampFlashTime = 0; -// ӡP??? +// ??? short joinBattleBtn = 0; short joinBattleBtnFocus = 0; short joinBattleBtnEnableFlag = 1; @@ -2305,7 +2305,7 @@ int joinBattleBtnGraNo[] = CG_FIELD_JOIN_BTL_BTN_OFF, CG_FIELD_JOIN_BTL_BTN_ON }; -// nP??? +// ??? short duelBtn = 0; short duelBtnFocus = 0; int duelBtnGraNo[] = @@ -2326,10 +2326,10 @@ int actBtnGraNo[] = }; short charActionAnimeChangeProcNo; short charActionAnimeChangeWindowFlag; -// ???ӡP?nPϣ??????? +// ????OK??????? short etcSwitchProcNo; short etcSwitchChangeFlag = 0; -// ????? +// ????? int amPmAnimeTime; int amPmAnimeX; int amPmAnimeGraNoIndex0, amPmAnimeGraNoIndex1; @@ -2356,7 +2356,7 @@ short etcSendFlag = 0; short nowFieldMenuOpenFlag = 0; // ?????????????????? // ??????????????????????? unsigned int fieldBtnPushTime = 0; -// ?????????t? +// ?????????? unsigned int fieldInfoTime = 0; // ?????? void initCharActionAnimeChange( void ); @@ -2376,7 +2376,7 @@ static short joinChannel2Proc = 0; struct tm serverAliveTime; time_t serverAliveLongTime; -// ????????????? +// ????????????? void initFieldProc( void ) { int i; @@ -2386,7 +2386,7 @@ void initFieldProc( void ) cardBtn = 0; partyBtn = 0; tradeBtn = 0; -// initPcAll()?s???@e?????????????? +// initPcAll()?????????????????? // mailLamp = 0; #ifdef __PHONEMESSAGE msgBtn = 0; //LeiBoy 2002 Jan.26 @@ -2395,11 +2395,11 @@ void initFieldProc( void ) sStreetVendorBtn = 0; sStreetVendorBuyBtn = 0; #else - #ifdef _TABLEOFSKILL // (ɿ) Syu ADD 7.0 \ܱ + #ifdef _TABLEOFSKILL // (不可开) Syu ADD 7.0 新增人物技能表单 skillBtn = 0 ; #endif #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 chatRoomBtn = 0; SelRoomBtn = 0; TalkMode = 0; @@ -2446,7 +2446,7 @@ void resetFieldProc(void) helpBtn = 0; } -// ????????? +// ????????? void fieldProc( void ) { int selId; @@ -2457,14 +2457,14 @@ void fieldProc( void ) // ?????? rand2(); - // ??????????????????? + // ??????????????????? actionShortCutKeyProc(); - // ?????????????????????????? - // r??????????? + // ?????????????????????????? + // ??????????? if (etcSwitchChangeFlag && eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0) { - if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { if (bNewServer) lssproto_FS_send(sockfd, pc.etcFlag); @@ -2475,35 +2475,35 @@ void fieldProc( void ) } } - // \?????????????? + // ?????????????? if (CheckMenuFlag() || windowTypeWN > -1 || actBtn == 1 || menuBtn == 1 || channelWNFlag == 1) drawFieldButtonFlag = 0; else drawFieldButtonFlag = 1; - // ?????????????????????????? + // ?????????????????????????? nowFieldMenuOpenFlag = 0; - // ????????[??????????? + // ??????????????????? if (windowTypeWN != -1) nowFieldMenuOpenFlag = 1; - // ???????????????? + // ???????????????? if (actBtn == 1) nowFieldMenuOpenFlag = 1; - // ???ӡP?nPϣ?????????????? + // ????OK?????????????? if (menuBtn == 1) nowFieldMenuOpenFlag = 1; - // ?????????????????????????1T?1024? + // ?????????????????????????1?1024? amPmAnimeTime = (SaTime.hour + 832) % 1024; amPmAnimeGraNoIndex0 = amPmAnimeTime / 256; amPmAnimeGraNoIndex1 = (amPmAnimeGraNoIndex0 + 1) % 4; amPmAnimeX = (amPmAnimeTime % 256) / 4; - // ????h????????? + // ????????????? if (nowVx != 0 || nowVy != 0) walkFlag = TRUE; - // ???????????????????????????? + // ???????????????????????????? if (etcSendFlag) { if (prSendFlag == 0 && jbSendFlag == 0 && duelSendFlag == 0) @@ -2513,10 +2513,10 @@ void fieldProc( void ) } // ????????????????????? - // \??u???????? - // ?????? + // ?????????? + // ?????? #if 1 - // ?????????????? + // ?????????????? selId = selGraId(fieldBtnHitId, sizeof(fieldBtnHitId) / sizeof(int)); pushId = pushGraId(fieldBtnHitId, sizeof(fieldBtnHitId) / sizeof(int)); focusId = focusGraId(fieldBtnHitId, sizeof(fieldBtnHitId) / sizeof(int)); @@ -2525,7 +2525,7 @@ void fieldProc( void ) #else if (etcSendFlag == 0 && walkFlag == FALSE) { - // ?????????????? + // ?????????????? selId = selGraId(fieldBtnHitId, sizeof(fieldBtnHitId) / sizeof(int)); pushId = pushGraId(fieldBtnHitId, sizeof(fieldBtnHitId) / sizeof(int)); focusId = focusGraId(fieldBtnHitId, sizeof(fieldBtnHitId) / sizeof(int)); @@ -2534,17 +2534,17 @@ void fieldProc( void ) selId = -1; #endif - // {e??????????????????? + // ??????????????????? if (/* nowFloor == 32021 || */nowFloor == 31706 || nowFloor == 10204 || (10601 <= nowFloor && nowFloor <= 10605) || nowFloor == 10919 || nowFloor == 10920 || nowFloor == 20711 || nowFloor == 20712 || nowFloor == 1008 || nowFloor == 1021 || nowFloor == 3008 || nowFloor == 3021 -#ifdef _LOCKPARTYFLOOR // (ɿ) Syu ADD Ӳӵĵͼ +#ifdef _LOCKPARTYFLOOR // (可开放) Syu ADD 增加不可组队的地图编号 || ( nowFloor <= 8213 && nowFloor >= 8200 ) #endif - || ( nowFloor >= 30017 && nowFloor <= 30021 ) || ( nowFloor == 7025 ) // ɭ׽ + || ( nowFloor >= 30017 && nowFloor <= 30021 ) || ( nowFloor == 7025 ) // 森林捉宠活动 #ifdef _THEATER - || nowFloor == 17001 // 糡 + || nowFloor == 17001 // 剧场 #endif #ifdef _NPC_MAGICCARD || nowFloor == 17003 || nowFloor == 17005 @@ -2557,10 +2557,10 @@ void fieldProc( void ) else partyBtnEnableFlag = 1; - // {e??????ӡP?????P????????????C???? + // ??????????????????????????? if (nowFloor < 10000 && (nowFloor / 1000 > 0) && (nowFloor % 1000 == 7) || nowFloor == 130) { - joinBattleHelpMsgFlag = 0; // ?PC + joinBattleHelpMsgFlag = 0; // ? joinBattleBtnEnableFlag = 1; } else @@ -2568,12 +2568,12 @@ void fieldProc( void ) || nowFloor == 10919 || nowFloor == 10920 || nowFloor == 20711 || nowFloor == 20712 || nowFloor == 10204) { - joinBattleHelpMsgFlag = 2; // ӡP????C? + joinBattleHelpMsgFlag = 2; // ????? joinBattleBtnEnableFlag = 0; } else { - joinBattleHelpMsgFlag = 1; // ӡPC + joinBattleHelpMsgFlag = 1; //  joinBattleBtnEnableFlag = 1; } @@ -2597,12 +2597,12 @@ void fieldProc( void ) { if (menuBtn == 0) { - // ??????????????????????????? - // ????????????? + // ??????????????????????????? + // ????????????? closeCharActionAnimeChange(); closeJoinChannelWN(); - // \??????????? + // ??????????? if (CheckMenuFlag()) InitMenu2(); @@ -2626,13 +2626,13 @@ void fieldProc( void ) { #ifdef _THEATER if (pc.iTheaterMode & 0x00000002) - StockChatBufferLine("רı", FONT_PAL_RED); + StockChatBufferLine("请专心表演", FONT_PAL_RED); else #endif //_THEATER { #ifdef _MOVE_SCREEN if(pc.bMoveScreenMode) - StockChatBufferLine("״̬޷̯",FONT_PAL_RED); + StockChatBufferLine("特殊状态无法摆摊",FONT_PAL_RED); else #endif { @@ -2653,7 +2653,7 @@ void fieldProc( void ) sStreetVendorBtn = 2; iOldGX = nowGx; iOldGY = nowGy; - // ׼ӼPKѡر + // 交易及组队及PK选项关闭 pc.etcFlag &= ~PC_ETCFLAG_TRADE; pc.etcFlag &= ~PC_ETCFLAG_PARTY; pc.etcFlag &= ~PC_ETCFLAG_DUEL; @@ -2729,7 +2729,7 @@ void fieldProc( void ) lssproto_STREET_VENDOR_send(sockfd, "N|"); } } - // ڰ̯̯˹ʱ߶ȡ + // 在摆摊或是向摆摊的人购买时走动则取消 if ((pc.iOnStreetVendor == 1 || sStreetVendorBuyBtn == 2) && (iOldGX != nowGx || iOldGY != nowGy)) { if (pc.iOnStreetVendor == 1) @@ -2765,7 +2765,7 @@ void fieldProc( void ) } if (skillBtn == 1) { - //ҪӴʽ + //主要技能视窗函式 SkillWndfunc(); if (((joy_trg[0] & JOY_ESC) && GetImeString() == NULL) || CheckMenuFlag()) { @@ -2789,7 +2789,7 @@ void fieldProc( void ) #endif //_TABLEOFSKILL #endif //_BACK_VERSION #endif //_STREET_VENDOR - // ????? + // ????? if (pushId == FIELD_FUNC_CARD) { cardBtn = 1; @@ -2799,19 +2799,19 @@ void fieldProc( void ) int dx, dy; int flag; - // ??????????? + // ??????????? getRouteData(pc.dir, &dx, &dy); flag = checkCharObjPoint(nowGx+dx, nowGy+dy, CHAROBJ_TYPE_USER_NPC); - // ?????V????????????? + // ?????????????????? if (partyModeFlag == 0 && flag == TRUE && eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0 #ifdef _THEATER && pc.iTheaterMode == 0 #endif ) { - if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { - // ?? + // ?? if (bNewServer) lssproto_AAB_send(sockfd, nowGx, nowGy); else @@ -2821,7 +2821,7 @@ void fieldProc( void ) } #ifdef _THEATER if (pc.iTheaterMode > 0) - StockChatBufferLine("רı", FONT_PAL_RED); + StockChatBufferLine("请专心表演", FONT_PAL_RED); #endif play_se(217, 320, 240); // ????? } @@ -2842,13 +2842,13 @@ void fieldProc( void ) if (selId == FIELD_FUNC_SIGNIN) { #ifdef _RIDEQUERY_ - lssproto_RideQuery_send(sockfd);// + lssproto_RideQuery_send(sockfd);//骑宠封包 fieldBtnPushTime = TimeGetTime(); play_se(217, 320, 240); #endif #ifdef _CHARSIGNDAY_ - lssproto_SignDay_send(sockfd);// + lssproto_SignDay_send(sockfd);//骑宠封包 fieldBtnPushTime = TimeGetTime(); play_se(217, 320, 240); #endif @@ -2886,25 +2886,25 @@ void fieldProc( void ) extern void AI_CloseWnd(); AI_CloseWnd(); #endif - extern ACTION* ̳Ƕַ; - if(̳Ƕַ){ - DeathAction(̳Ƕַ); + extern ACTION* 商城动作地址; + if(商城动作地址){ + DeathAction(商城动作地址); windowTypeWN = -1; wnCloseFlag = 1; - ̳Ƕַ = 0; + 商城动作地址 = 0; }else{ - extern ̳ļ_ ̳ļ[5]; + extern 商城文件_ 商城文件[5]; extern int util_mkint(char *buffer, int value); extern void util_SendMesg(int fd, int func, char *buffer); extern int util_mkstring(char *buffer, char *value); int checksum=0; char buf[1024*4*4]; memset(buf,0,1024*4*4); - checksum += util_mkstring(buf,̳ļ[0].MD5); - checksum += util_mkstring(buf,̳ļ[1].MD5); - checksum += util_mkstring(buf,̳ļ[2].MD5); - checksum += util_mkstring(buf,̳ļ[3].MD5); - checksum += util_mkstring(buf,̳ļ[4].MD5); + checksum += util_mkstring(buf,商城文件[0].MD5码); + checksum += util_mkstring(buf,商城文件[1].MD5码); + checksum += util_mkstring(buf,商城文件[2].MD5码); + checksum += util_mkstring(buf,商城文件[3].MD5码); + checksum += util_mkstring(buf,商城文件[4].MD5码); util_mkint(buf, checksum); util_SendMesg(sockfd, 203, buf); } @@ -2918,7 +2918,7 @@ void fieldProc( void ) marketBtnFocus = 0; #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 if (pushId == FIELD_FUNC_CHATROOM) { if( selId == FIELD_FUNC_CHATROOM) @@ -2935,7 +2935,7 @@ void fieldProc( void ) else { /* - // WON ADD ֹ̫Ƶ + // WON ADD 防止传送太频繁 { unsigned int now_time = (unsigned int)time(NULL); static unsigned int old_time = 0; @@ -3020,10 +3020,10 @@ void fieldProc( void ) int dx, dy; int flag; - // ??????????? + // ??????????? getRouteData(pc.dir, &dx, &dy); flag = checkCharObjPoint(nowGx+dx, nowGy+dy, CHAROBJ_TYPE_USER_NPC); - // ?????V????????????? + // ?????????????????? if (partyModeFlag == 0 && flag == TRUE && eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0 && tradeFlag == 0 #ifdef _STREET_VENDOR @@ -3034,7 +3034,7 @@ void fieldProc( void ) #endif ) { - if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { //if (bNewServer) // lssproto_TD_send(sockfd, "D|D"); @@ -3047,11 +3047,11 @@ void fieldProc( void ) } #ifdef _STREET_VENDOR if (pc.iOnStreetVendor == 1) - StockChatBufferLine("̯вýн", FONT_PAL_RED); + StockChatBufferLine("摆摊中不得进行交易", FONT_PAL_RED); #endif #ifdef _THEATER if (pc.iTheaterMode > 0) - StockChatBufferLine("רı", FONT_PAL_RED); + StockChatBufferLine("请专心表演", FONT_PAL_RED); #endif //play_se(217, 320, 240); // ????? } @@ -3069,7 +3069,7 @@ void fieldProc( void ) if (selId == FIELD_FUNC_ANGEL) { - if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { //lssproto_WN_send( sockfd, nowGx, nowGy, WINDOW_MESSAGETYPE_ANGELMESSAGE, , WINDOW_BUTTONTYPE_YES, msg ) ; if (angelFlag) @@ -3078,11 +3078,11 @@ void fieldProc( void ) { if (helpBtn == 0) { - // ???ӡP?nPϣ??????????????????????? - // ????????????? + // ????OK??????????????????????? + // ????????????? closeEtcSwitch(); closeJoinChannelWN(); - // \??????????? + // ??????????? if (CheckMenuFlag()) InitMenu2(); HelpProcNo = 0; @@ -3188,7 +3188,7 @@ void fieldProc( void ) { char buf[64]; - lssproto_TK_recv(sockfd, 0, "P|ȼ塣", 0); + lssproto_TK_recv(sockfd, 0, "P|请先加入家族。", 0); sprintf_s(buf, "S|P", selId); if (bNewServer) lssproto_FM_send(sockfd, buf); @@ -3247,22 +3247,22 @@ void fieldProc( void ) partyBtn = 1; if (partyBtnEnableFlag == 0) { - // {e????????????? + // ????????????? partyBtn = 0; play_se(220, 320, 240); // ??? } else if (selId == FIELD_FUNC_PARTY) { - // ?????V??????h? + // ???????????? if (partyModeFlag == 0) { int dx, dy; int flag; - // ?Pf????????????????? + // ?????????????????? getRouteData(pc.dir, &dx, &dy); flag = checkCharObjPointNotStatus(nowGx+dx, nowGy+dy, (CHAROBJ_TYPE_USER_NPC | CHAROBJ_TYPE_PARTY_OK), CHR_STATUS_BATTLE); - // ????????????? + // ????????????? if (flag == 1 && eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0 #ifdef _STREET_VENDOR && (pc.iOnStreetVendor == 0 || sStreetVendorBuyBtn == 2) @@ -3272,9 +3272,9 @@ void fieldProc( void ) #endif ) { - if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime+FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { - // M????????????????????????? + // ????????????????????????? if (bNewServer) lssproto_PR_send(sockfd, nowGx, nowGy, 1); else @@ -3287,21 +3287,21 @@ void fieldProc( void ) } #ifdef _STREET_VENDOR if (pc.iOnStreetVendor == 1) - StockChatBufferLine("̯в", FONT_PAL_RED); + StockChatBufferLine("摆摊中不得组队", FONT_PAL_RED); #endif #ifdef _THEATER if (pc.iTheaterMode > 0) - StockChatBufferLine("רı", FONT_PAL_RED); + StockChatBufferLine("请专心表演", FONT_PAL_RED); #endif } else - // ???????h? + // ???????? { if (eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0) { - if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { - // M???????? + // ???????? if (bNewServer) lssproto_PR_send(sockfd, nowGx, nowGy, 0); else @@ -3373,14 +3373,14 @@ void fieldProc( void ) // LeiBoy 2002 Feb. 2 --- Cell Phone's Messages Button -- END #endif #ifdef _RENWU_ - extern BOOL ѯ; + extern BOOL 任务查询开关; extern int HelpProc(); - if(ѯ) + if(任务查询开关) if (HelpProc()==1) { actBtn = 0; - ѯ=FALSE; + 任务查询开关=FALSE; } #endif @@ -3439,7 +3439,7 @@ void fieldProc( void ) time_t longTime; time(&longTime); localtime_s(&nowTime, &longTime); - fprintf(logf, "[%02d-%02d-%02d %02d:%02d:%02d] ״̬=%d; =%d; ֵ=%d\r\n", + fprintf(logf, "[%02d-%02d-%02d %02d:%02d:%02d] 状态=%d; 标记=%d; 值=%d\r\n", (nowTime.tm_year % 100), nowTime.tm_mon + 1, nowTime.tm_mday, nowTime.tm_hour, nowTime.tm_min, nowTime.tm_sec, tradeStatus, MenuToggleFlag, MenuToggleFlag & JOY_CTRL_T); @@ -3496,7 +3496,7 @@ void fieldProc( void ) if ((partyModeFlag == 0 || (partyModeFlag == 1 && (pc.status & CHR_STATUS_LEADER) != 0)) && flag == 1 && eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0) { - if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { if (bNewServer) { @@ -3537,7 +3537,7 @@ void fieldProc( void ) if ((partyModeFlag == 0 || (partyModeFlag == 1 && (pc.status & CHR_STATUS_LEADER) != 0)) && flag == TRUE && eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0) { - if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { if (bNewServer) lssproto_DU_send(sockfd, nowGx, nowGy); @@ -3572,7 +3572,7 @@ void fieldProc( void ) #ifdef _THEATER if (pc.iTheaterMode & 0x00000001) { - StockChatBufferLine("רĿ", FONT_PAL_RED); + StockChatBufferLine("请专心看表演", FONT_PAL_RED); actBtn = 0; } else @@ -3640,7 +3640,7 @@ void fieldProc2(void) menuBtn = 0; } -#ifdef _AniCrossFrame // Syu ADD ι +#ifdef _AniCrossFrame // Syu ADD 动画层游过画面生物 void crossAniRelease() { if (WaterAct2 != NULL) @@ -3652,7 +3652,7 @@ void crossAniRelease() } #endif -#ifdef _AniImmobile // Syu ADD ض +#ifdef _AniImmobile // Syu ADD 定点产生特定动画 void ImmobileAniRelease() { Updownflag = false; @@ -3666,7 +3666,7 @@ void ImmobileAniRelease() WaterAct3[XYposition[i][4]] = NULL; XYposition[i][3] = 0 ; XYposition[i][4] = -1 ; -// XYposition[i][5] = 1 ; //Ư2ʲ +// XYposition[i][5] = 1 ; //新增不漂浮的旗标2,故不做 XYposition[i][6] = 0 ; } } @@ -3674,7 +3674,7 @@ void ImmobileAniRelease() } #endif -#ifdef _AniRandom // Syu ADD +#ifdef _AniRandom // Syu ADD 随机产生环境动画 void AniRandomRelease() { for (int i = 0; i < 50; i ++) @@ -3689,22 +3689,22 @@ void AniRandomRelease() #endif -// ??????????T???? +// ?????????????? void drawField(void) { - int leftUpPanelX = 0; // ???????? + int leftUpPanelX = 0; // ???????? int leftUpPanelY = 0; - int rightUpPanelX = 504 + DISPLACEMENT_X ; // ???????? + int rightUpPanelX = 504 + DISPLACEMENT_X ; // ???????? int rightUpPanelY = 0; int i; -#ifdef _WATERANIMATION //Syu ADD ֮ +#ifdef _WATERANIMATION //Syu ADD 泪之海动画层 int Createflag = 0; int RandAnimate = 0 ; #endif -#ifdef _AniRandom // Syu ADD +#ifdef _AniRandom // Syu ADD 随机产生环境动画 int x1 , y1; #endif -#ifdef _AniCrossFrame // Syu ADD ι +#ifdef _AniCrossFrame // Syu ADD 动画层游过画面生物 int x2 , y2; #endif @@ -3712,8 +3712,8 @@ void drawField(void) #ifdef _STONDEBUG__MSG char msg[256]; - // ?????Echo?????????? - // G??????????????????????? + // ?????Echo?????????? + // ??????????????????????? sprintf_s(msg, "%s Server Alive -> %02d/%02d/%02d %02d:%02d:%02d", selectServerName2[selectServerIndex], (serverAliveTime.tm_year % 100), serverAliveTime.tm_mon+1, serverAliveTime.tm_mday, @@ -3723,14 +3723,14 @@ void drawField(void) #endif #endif -#ifdef _SPECIALSPACEANIM // Syu ADD ⳡ +#ifdef _SPECIALSPACEANIM // Syu ADD 特殊场景动画配置 SpecAnim(nowFloor); #endif -#ifdef _AniCrossFrame // Syu ADD ι +#ifdef _AniCrossFrame // Syu ADD 动画层游过画面生物 if ((nowFloor == 817) || (nowFloor == 8007) || (nowFloor == 8101) || (nowFloor == 8100) || (nowFloor == 8027) || (nowFloor == 8028) || (nowFloor == 8029) || (nowFloor == 8015) || (nowFloor == 8113) || (nowFloor == 8114) ) { - //ι涯 Start + //游过画面动画 Start if (flag22 == false) { if (WaterAct2 != NULL && Timeflag2 == false) @@ -3738,7 +3738,7 @@ void drawField(void) DeathAction(WaterAct2); WaterAct2 = NULL; Timeflag2 = true; - //һγֵĵȴʱ + //结束后下一次出现的等待时间 TimeTickMax2 = RAND(500, 1500); } } @@ -3759,7 +3759,7 @@ void drawField(void) RandAnimate = RAND(0, 2); if (RandAnimate > 1) RandAnimate = RAND(101512, 101515); - //¡¡ϡĸ + //有右下、左下、右上、左上四个方向 else { RandAnimate = RAND(0, 4); @@ -3771,13 +3771,13 @@ void drawField(void) x2 = RAND(2, 3); else if (RandAnimate == 101521 || RandAnimate == 101523 || (RandAnimate <= 101587 && RandAnimate >= 101582)) - x2 = RAND(4, 5); // + x2 = RAND(4, 5); //左上 else if (RandAnimate == 101522 || RandAnimate == 101520 || (RandAnimate <= 101593 && RandAnimate >= 101588)) - x2 = RAND(6, 7); // + x2 = RAND(6, 7); //右上 } - //뻭λ - if (x2 == 0) // + //决定进入画面的位置 + if (x2 == 0) // 左下 { x2 = RAND(50, lpDraw->xSize); y2 = 0 ; @@ -3789,7 +3789,7 @@ void drawField(void) y2 = RAND(50, lpDraw->ySize); WaterAct2 = MakeAnimDisp(x2, y2, RandAnimate, 18); } - else if (x2 == 2) // + else if (x2 == 2) // 右下 { x2 = RAND(0, lpDraw->xSize); y2 = 0 ; @@ -3801,7 +3801,7 @@ void drawField(void) y2 = RAND(50, lpDraw->ySize); WaterAct2 = MakeAnimDisp(x2, y2, RandAnimate, 18); } - else if (x2 == 4) // + else if (x2 == 4) // 左上 { x2 = RAND(50, lpDraw->xSize); y2 = lpDraw->ySize ; @@ -3813,7 +3813,7 @@ void drawField(void) y2 = RAND(50, lpDraw->ySize); WaterAct2 = MakeAnimDisp(x2, y2, RandAnimate, 18); } - else if (x2 == 6) // + else if (x2 == 6) // 右上 { x2 = 0 ; y2 = RAND(50, lpDraw->ySize); @@ -3836,20 +3836,20 @@ void drawField(void) } #endif -#ifdef _AniImmobile // Syu ADD ض +#ifdef _AniImmobile // Syu ADD 定点产生特定动画 if (nowFloor == 817) { in817flag = true ; for (i = 0; i < 560; i++) { - //ж϶㶯Ƿ 32 * 32Χ + //判断定点动画产生点是否在人物 32 * 32范围内 if ((nowGx > XYposition[i][0] - 16) && (nowGx < XYposition[i][0] + 16) && (nowGy > XYposition[i][1] - 16) && (nowGy < XYposition[i][1] + 16)) { - //жǷѲ + //判断是否已产生 if (XYposition[i][3] == 0) { - //ACTION + //配置ACTION for (int j = 0; j < 30; j++) { if (WaterAct3[j] == NULL) @@ -3866,9 +3866,9 @@ void drawField(void) } else { - //㶯Ư + //做定点动画的漂浮 XYposition[i][6]++; - //ʱ̶ + //时间固定 if (XYposition[i][6] > 65) { XYposition[i][6] = 0; @@ -3890,7 +3890,7 @@ void drawField(void) } } } -// ϲ +// 合并 if (XYposition[i][3] == 1) { if ((nowGx < XYposition[i][0] - 16) || (nowGx > XYposition[i][0] + 16 ) || @@ -3927,22 +3927,22 @@ void drawField(void) } #endif -#ifdef _AniRandom // Syu ADD +#ifdef _AniRandom // Syu ADD 随机产生环境动画 if ((nowFloor == 817) || (nowFloor == 8007) || (nowFloor == 8100) || (nowFloor == 8101) || - (nowFloor == 8029) || (nowFloor == 8028) || (nowFloor == 8027) || (nowFloor == 8015) || (nowFloor == 8113) || (nowFloor == 8114) ) //жϵͼ + (nowFloor == 8029) || (nowFloor == 8028) || (nowFloor == 8027) || (nowFloor == 8015) || (nowFloor == 8113) || (nowFloor == 8114) ) //判断地图 { AniFlag = true; for (i = 0; i < 50; i++) { if (Timeflag[i] == false) { - //񣬲񶼲ȴʱ + //随机决定产生与否,不论与否都产生等待时间 Createflag = RAND(0, 3); if (Createflag > 0) { if (WaterAct[i] == NULL) { - //Χ 30 * 30 Χ + //产生范围在人物 30 * 30 范围中 x1 = RAND(nowGx - 15, nowGx + 15); y1 = RAND(nowGy - 15, nowGy + 15); RandAnimate = RAND(0, 6); @@ -3962,7 +3962,7 @@ void drawField(void) } } } - //ŵĻʱ + //活着的环境动画计时 for (i = 0; i < 50; i++) { if (Timeflag[i] == true) @@ -3976,7 +3976,7 @@ void drawField(void) } } } - //𶯻 + //消灭动画 else if (((nowFloor != 817) && (nowFloor != 8007) && (nowFloor != 8100) && (nowFloor != 8101) && (nowFloor != 8113) && (nowFloor != 8114) && (nowFloor != 8027) && (nowFloor != 8028) && (nowFloor != 8029) && (nowFloor != 8015)) && (AniFlag == true)) { @@ -4020,7 +4020,7 @@ void drawField(void) //#ifdef __FAMILY_UI_ if (bNewServer) - // ?????? + // ?????? #ifdef _SPECIAL_LOGO #ifdef _SA_VERSION_25 StockDispBuffer(leftUpPanelX + 148, leftUpPanelY + 27, DISP_PRIO_MENU, CG_FIELD_MENU_LEFT_NEW, 0); @@ -4036,24 +4036,24 @@ void drawField(void) #ifdef _MO_SIGN_IN - static int ʱ; + static int 临时; #ifdef _CHARSIGNADY_NO_ extern PC pc; - static DWORD ʱ¼ = TimeGetTime() + 300; - if(!pc.ǩ){ - if(ʱ¼ < TimeGetTime()){ - ʱ¼ = TimeGetTime() + 300; - if(ʱ) ʱ =0; - else ʱ=1; + static DWORD 时间记录 = TimeGetTime() + 300; + if(!pc.签到标记){ + if(时间记录 < TimeGetTime()){ + 时间记录 = TimeGetTime() + 300; + if(临时) 临时 =0; + else 临时=1; } - }else ʱ = signInBtn; + }else 临时 = signInBtn; #else - ʱ = signInBtn; + 临时 = signInBtn; #endif - fieldBtnHitId[FIELD_FUNC_SIGNIN] = StockDispBuffer(leftUpPanelX + 207, leftUpPanelY + 19, DISP_PRIO_IME3, signInBtnGraNo[ʱ], 2); + fieldBtnHitId[FIELD_FUNC_SIGNIN] = StockDispBuffer(leftUpPanelX + 207, leftUpPanelY + 19, DISP_PRIO_IME3, signInBtnGraNo[临时], 2); if (signInBtnFocus) #ifdef _SA_VERSION_25 - ShowBottomLineString(FONT_PAL_WHITE, "ѯ"); + ShowBottomLineString(FONT_PAL_WHITE, "骑宠查询。"); #endif #endif @@ -4062,7 +4062,7 @@ void drawField(void) fieldBtnHitId[FIELD_FUNC_CHANGETEAM] = StockDispBuffer(leftUpPanelX + 241, leftUpPanelY + 19, DISP_PRIO_IME3, schangeteamBtnGraNo[changeteamBtn], 2); #endif if (changeteamBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "ӳл"); + ShowBottomLineString(FONT_PAL_WHITE, "队长切换。"); #endif @@ -4070,33 +4070,33 @@ void drawField(void) #ifdef _SA_VERSION_25 fieldBtnHitId[FIELD_FUNC_MARKET] = StockDispBuffer(leftUpPanelX + 271, leftUpPanelY + 19, DISP_PRIO_IME3, marketBtnGraNo[marketBtn], 2); if (marketBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "̳ǹܡ"); + ShowBottomLineString(FONT_PAL_WHITE, "商城功能。"); #endif #endif #ifdef _STREET_VENDOR fieldBtnHitId[FIELD_FUNC_STREET_VENDOR] = StockDispBuffer(leftUpPanelX + 176, leftUpPanelY + 19, DISP_PRIO_IME3, sStreetVendorBtnGraNo[pc.iOnStreetVendor], 2); if (sStreetVendorBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "̯ܡ"); + ShowBottomLineString(FONT_PAL_WHITE, "摆摊功能。"); #else #ifdef _TABLEOFSKILL fieldBtnHitId[FIELD_FUNC_SKILL] = StockDispBuffer(leftUpPanelX + 108, leftUpPanelY + 28, DISP_PRIO_IME3, skillBtnGraNo[skillBtn], 2); if (skillBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "ְҵܡ"); + ShowBottomLineString(FONT_PAL_WHITE, "职业技能。"); #endif #endif - // ???????? + // ???????? fieldBtnHitId[FIELD_FUNC_MENU] = StockDispBuffer(leftUpPanelX + 52, leftUpPanelY + 28, DISP_PRIO_IME3, menuBtnGraNo[menuBtn], 2); if (menuBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "Ϸ趨"); - // ???? + ShowBottomLineString(FONT_PAL_WHITE, "游戏设定。"); + // ???? fieldBtnHitId[FIELD_FUNC_CARD] = StockDispBuffer(leftUpPanelX + 52, leftUpPanelY + 28, DISP_PRIO_IME3, cardBtnGraNo[cardBtn], 2); if (cardBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "Ƭ"); + ShowBottomLineString(FONT_PAL_WHITE, "交换名片。"); // Robin 04/12 Trade fieldBtnHitId[FIELD_FUNC_TRADE] = StockDispBuffer(leftUpPanelX + 104 + 10, leftUpPanelY + 28 - 10, DISP_PRIO_IME3, tradeBtnGraNo[tradeBtn], 2); if (tradeBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "нס"); + ShowBottomLineString(FONT_PAL_WHITE, "进行交易。"); #ifdef __PHONEMESSAGE // LeiBoy 2002 Jan.26 --- Cell Phone's Messages Button -- BEGIN @@ -4108,12 +4108,12 @@ void drawField(void) if (msgBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "ѣ̳ǡ"); + ShowBottomLineString(FONT_PAL_WHITE, "(免费)积分商城。"); // LeiBoy 2002 Jan.26 --- Cell Phone's Messages Button -- END #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 if (SelRoomBtn == 1 || chatRoomBtn == 1) fieldBtnHitId[FIELD_FUNC_CHATROOM] = StockDispBuffer(leftUpPanelX + 141, leftUpPanelY + 29, DISP_PRIO_IME3, chatRoomBtnGraNo[1], 2); else @@ -4121,9 +4121,9 @@ void drawField(void) if (chatRoomBtnFocus) { if(strcmp(pc.chatRoomNum, "") == 0) - ShowBottomLineString(FONT_PAL_WHITE, "ѡƵ"); + ShowBottomLineString(FONT_PAL_WHITE, "选择频道"); else - ShowBottomLineString(FONT_PAL_WHITE, "Ƶ"); + ShowBottomLineString(FONT_PAL_WHITE, "开启频道"); } #endif //#ifdef __FAMILY_UI_ @@ -4143,29 +4143,29 @@ void drawField(void) #endif fieldBtnHitId[FIELD_FUNC_CHANNEL] = StockDispBuffer(leftUpPanelX + 115, leftUpPanelY + 28, DISP_PRIO_IME3, channelBtnGraNo[channelBtn], 2); if (channelBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "幦ܡ"); + ShowBottomLineString(FONT_PAL_WHITE, "家族功能。"); } //#endif - // ?????? + // ?????? fieldBtnHitId[FIELD_FUNC_PARTY] = StockDispBuffer(leftUpPanelX + 52, leftUpPanelY + 28, DISP_PRIO_IME3, partyBtnGraNo[partyBtn], 2); if (partyBtnFocus) { - // ?????C - // {e??????????????????? + // ????? + // ??????????????????? if (partyBtnEnableFlag == 0) - ShowBottomLineString(FONT_PAL_WHITE, "ܼ顣"); + ShowBottomLineString(FONT_PAL_WHITE, "不能加入队伍。"); else - ShowBottomLineString(FONT_PAL_WHITE, "顣"); + ShowBottomLineString(FONT_PAL_WHITE, "加入队伍。"); } - // ??????? + // ??????? if (mailLampDrawFlag) StockDispBuffer(leftUpPanelX + 52, leftUpPanelY + 28, DISP_PRIO_IME3, CG_FIELD_MAIL_LAMP, 0); #ifdef _RED_MEMOY_ StockDispBuffer(rightUpPanelX + 40, rightUpPanelY + 31, DISP_PRIO_MENU, CG_FIELD_MENU_RIGHT, 0); fieldBtnHitId[FIELD_FUNC_RED_MEMOY] = StockDispBuffer(rightUpPanelX - 34, rightUpPanelY + 19, DISP_PRIO_IME3, redmemoyGraNo[redmemoyBtn], 2); - if (redmemoyBtnFocus) ShowBottomLineString(FONT_PAL_WHITE, ""); + if (redmemoyBtnFocus) ShowBottomLineString(FONT_PAL_WHITE, "发红包。"); #else StockDispBuffer(rightUpPanelX + 54, rightUpPanelY + 33, DISP_PRIO_MENU, CG_FIELD_MENU_RIGHT, 0); #endif @@ -4173,31 +4173,31 @@ void drawField(void) if (joinBattleBtnFocus) { #ifdef _NEW_MATCH - ShowBottomLineString(FONT_PAL_WHITE, "ս"); + ShowBottomLineString(FONT_PAL_WHITE, "加入战斗。"); #else if (joinBattleHelpMsgFlag == 1) - ShowBottomLineString(FONT_PAL_WHITE, "ս"); + ShowBottomLineString(FONT_PAL_WHITE, "加入战斗。"); else if (joinBattleHelpMsgFlag == 2) - ShowBottomLineString(FONT_PAL_WHITE, "ܼս"); + ShowBottomLineString(FONT_PAL_WHITE, "不能加入战斗。"); else - ShowBottomLineString(FONT_PAL_WHITE,"ս"); + ShowBottomLineString(FONT_PAL_WHITE,"观战。"); #endif } - // ?ƢnP??? + // ???? fieldBtnHitId[FIELD_FUNC_DUEL] = StockDispBuffer(rightUpPanelX + 38, rightUpPanelY + 32, DISP_PRIO_IME3, duelBtnGraNo[duelBtn], 2); if (duelBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "Ҿ"); + ShowBottomLineString(FONT_PAL_WHITE, "跟其他玩家决斗。"); if (helpBtnFocus) #ifdef _NEW_MATCH - ShowBottomLineString(FONT_PAL_WHITE, "ս"); + ShowBottomLineString(FONT_PAL_WHITE, "观战。"); #else - ShowBottomLineString(FONT_PAL_WHITE, "ѯ"); + ShowBottomLineString(FONT_PAL_WHITE, "任务查询。"); #endif fieldBtnHitId[FIELD_FUNC_HELP] = StockDispBuffer(rightUpPanelX + 115, rightUpPanelY + 33, DISP_PRIO_IME3, helpBtnGraNo[helpBtn], 2); fieldBtnHitId[FIELD_FUNC_ACT] = StockDispBuffer(rightUpPanelX + 68, rightUpPanelY + 32, DISP_PRIO_IME3, actBtnGraNo[actBtn], 2); if (actBtnForcus) - ShowBottomLineString(FONT_PAL_WHITE, "ĸֶ"); + ShowBottomLineString(FONT_PAL_WHITE, "人物的各种动作。"); // ????? if (drawTimeAnimeFlag) @@ -4206,18 +4206,18 @@ void drawField(void) StockDispBuffer(rightUpPanelX + 104 + 64 - amPmAnimeX, rightUpPanelY + 21, DISP_PRIO_MENU, amPmAnimeGraNo[amPmAnimeGraNoIndex1], 0); } else - // ??????????????????????????? + // ??????????????????????????? StockDispBuffer(rightUpPanelX + 68, rightUpPanelY + 32, DISP_PRIO_MENU, CG_FIELD_MENU_RIGHT_BACK, 0); #ifdef _ANGEL_SUMMON fieldBtnHitId[FIELD_FUNC_ANGEL] = StockDispBuffer(leftUpPanelX + 104 + 10 + 158, leftUpPanelY + 20, DISP_PRIO_IME3, angelBtnGraNo[angelBtn], 2); if (angelBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "ٻ"); + ShowBottomLineString(FONT_PAL_WHITE, "精灵的召唤。"); #endif #ifdef _TEACHER_SYSTEM fieldBtnHitId[FIELD_FUNC_TEACHER] = StockDispBuffer(leftUpPanelX + 305, leftUpPanelY + 20, DISP_PRIO_IME3, iTeacherSystemBtnGraNo[sTeacherSystemBtn > 0 ? 1:0], 2); if (sTeacherSystemBtnFocus) - ShowBottomLineString(FONT_PAL_WHITE, "ʦϵͳ"); + ShowBottomLineString(FONT_PAL_WHITE, "导师系统。"); #endif } else @@ -4233,14 +4233,14 @@ BOOL checkFieldMenuFlag(void) return nowFieldMenuOpenFlag; } -// ?????????????? +// ?????????????? // ??? void initCharActionAnimeChange(void) { charActionAnimeChangeProcNo = 0; } -// ??????? +// ??????? void closeCharActionAnimeChange(void) { charActionAnimeChangeProcNo = 1000; @@ -4254,42 +4254,42 @@ int charActionAnimeChange(void) int focusId = 0; char *msg[] = { - " ", - " վ ", - " ", - " ", - " ͷ ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " Ͷ " + " 坐 下 ", + " 站 立 ", + " 挥 手 ", + " 走 动 ", + " 点 头 ", + " 晕 倒 ", + " 高 兴 ", + " 攻 击 ", + " 生 气 ", + " 防 御 ", + " 悲 伤 ", + " 受 伤 ", + " 投 掷 " #ifdef __EMOTION - ," " - ," " + ," 打 呼 " + ," 冷 场 " #endif }; char *msg2[] = { - "µĶ (Ctrl+1)", - "վĶ (Ctrl+7)", - "ֵĶ (Ctrl+2)", - "߶Ķ (Ctrl+8)", - "ͷĶ (Ctrl+3)", - "εĶ (Ctrl+9)", - "˵Ķ (Ctrl+4)", - "Ķ (Ctrl+0)", - "Ķ (Ctrl+5)", - "Ķ (Ctrl+-)", - "˵Ķ (Ctrl+6)", - "˵Ķ (Ctrl+=)", - "ͶĶ (Ctrl+\\)" + "坐下的动作。 (Ctrl+1)", + "站立的动作。 (Ctrl+7)", + "挥手的动作。 (Ctrl+2)", + "走动的动作。 (Ctrl+8)", + "点头的动作。 (Ctrl+3)", + "晕倒的动作。 (Ctrl+9)", + "高兴的动作。 (Ctrl+4)", + "攻击的动作。 (Ctrl+0)", + "生气的动作。 (Ctrl+5)", + "防御的动作。 (Ctrl+-)", + "悲伤的动作。 (Ctrl+6)", + "受伤的动作。 (Ctrl+=)", + "投掷的动作。 (Ctrl+\\)" #ifdef __EMOTION - ,"˯Ķ" - ,"䳡Ķ" + ,"睡觉的动作。" + ,"冷场的动作。" #endif }; int i, j; @@ -4298,15 +4298,15 @@ int charActionAnimeChange(void) { 5, // ? ? 3, // ? ? - 6, // ?? - 4, // ? + 6, // ?? + 4, //  ? 11, // ???? - 2, // X?? + 2, // ?? 7, // ? ? 0, // ? ? - 8, // W ? + 8, //  ? 10, // ??? - 9, // v?? + 9, // ?? 1, // ???? 12 // ??? }; @@ -4319,28 +4319,28 @@ int charActionAnimeChange(void) for (i = 0; i < sizeof(btnId) / sizeof(int); i++) btnId[i] = -2; - // ?????? + // ?????? w = 3; h = 6; x = 440; y = 16; - // лͼBUG + //新增 动作表情切换地图BUG ptActMenuWin1 = MakeWindowDisp(x, y, w, h, NULL, 1); -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 x = ptActMenuWin1->x; y = ptActMenuWin1->y; #endif charActionAnimeChangeProcNo++; } - // лͼBUG + //新增 动作表情切换地图BUG if (ptActMenuWin1 != NULL) { id = -1; focusId = -1; - // лͼBUG + //新增 动作表情切换地图BUG if (ptActMenuWin1->hp >= 1) { - // ????kRe + // ???? id = selGraId(btnId, sizeof(btnId) / sizeof(int)); focusId = focusGraId(btnId, sizeof(btnId) / sizeof(int)); @@ -4383,26 +4383,26 @@ int charActionAnimeChange(void) } } - // \????????????????????? + // ????????????????????? if (CheckMenuFlag()) id = 100; - else if ((joy_trg[0] & JOY_ESC) && GetImeString() == NULL) // ESC???????? + else if ((joy_trg[0] & JOY_ESC) && GetImeString() == NULL) // ESC???????? { id = 100; - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? } - else if (charActionAnimeChangeProcNo == 1000) // ??????????? + else if (charActionAnimeChangeProcNo == 1000) // ??????????? id = 100; // ????? if (id == 0) - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? else if (1 <= id && id <= 13) { id--; if (eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0) { - if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { if (bNewServer) lssproto_AC_send(sockfd, nowGx, nowGy, chgTbl[id]); @@ -4412,7 +4412,7 @@ int charActionAnimeChange(void) fieldBtnPushTime = TimeGetTime(); } } - // ????????k????????????????? + // ????????????????????????? id = -1; play_se(217, 320, 240); // ????? } @@ -4427,17 +4427,17 @@ int charActionAnimeChange(void) #endif if (id >= 0) { - // лͼBUG + //新增 动作表情切换地图BUG DeathAction(ptActMenuWin1); ptActMenuWin1 = NULL; return 1; } - // лͼBUG + //新增 动作表情切换地图BUG if (ptActMenuWin1->hp >= 1) { btnId[0] = StockDispBuffer(x + 96, y + 258, DISP_PRIO_MENU, CG_CLOSE_BTN, 2); if (focusId == 0) - ShowBottomLineString(FONT_PAL_WHITE, "رնӴ"); + ShowBottomLineString(FONT_PAL_WHITE, "关闭动作视窗"); #ifdef __EMOTION for (i = 0; i < 7; i++) #else @@ -4466,21 +4466,21 @@ int charActionAnimeChange(void) return 0; } -// ???ӡP?nPϣ????????? +// ????OK????????? // ??? void initEtcSwitch(void) { etcSwitchProcNo = 0; } -// ??????? +// ??????? void closeEtcSwitch(void) { etcSwitchProcNo = 1000; } -// ???ӡP?nPϣ?????? -// ??k: 0 ... ??? +// ????OK?????? +// ??: 0 ... ??? // !0 ... ???? #ifdef _CHANNEL_MODIFY void SaveChatData(char *msg,char KindOfChannel,bool bCloseFile); @@ -4504,57 +4504,57 @@ int etcSwitch(void) int focusId = 0; char *msg[] = { - " ӣ", - " ", - "Ƭ", + "组 队:", + "决 斗:", + "交换名片:", #ifndef _CHANNEL_MODIFY - " 죺", + "聊 天:", #else #ifdef _NEWFONT_ - "Ƶ ", + "频 道 开 关", #else - "Ƶ ", + "频 道 开 关", #endif #endif - " ף", + "交 易:", #ifdef __ONLINEGM - " ", + "线 上 回 报", #endif //#ifdef _JOBDAILY -// " ־", +// "任 务 日 志", //#endif }; char *msg2[] = { - " ", - " ٣ţ", + " N O", + " YES", //" Other" }; #ifndef _CHANNEL_MODIFY char *msg3[] = { - " ȫ Ա", - " " + " 全 员", + " 队 伍" }; #endif char *msg4[] = { - "趨Ƿ˼Ķ顣", - "趨Ƿ˵ս", - "趨ǷƬ", + "设定是否接受其他人加入你的队伍。", + "设定是否接受其他人的挑战。", + "设定是否接受名片交换。", #ifndef _CHANNEL_MODIFY - "趨ݿԱķΧ", + "设定聊天内容可以被听到的范围。", #else - "趨ƵĿرա", + "设定各个频道的开启或关闭。", #endif - "趨Ƿܽס" + "设定是否接受交易。" #ifdef __ONLINEGM , - "ϻرϵͳ", + "开启线上回报系统", #endif //#ifdef _JOBDAILY -// "鿴־", +// "查看任务日志", //#endif }; @@ -4575,17 +4575,17 @@ int etcSwitch(void) }; #ifdef _CHANNEL_MODIFY char *pszChannel[] = { - "Ƶ", - "Ƶ", + "密语频道", + "家族频道", #ifdef _CHAR_PROFESSION - "ְҵƵ", + "职业频道", #endif - "Ի" + "对话储存" #ifdef _CHANNEL_WORLD - ,"Ƶ" + ,"世界频道" #endif #ifdef _CHANNEL_ALL_SERV - ,"Ƶ" + ,"星球频道" #endif }; int iChannelSwitch[] = { @@ -4606,9 +4606,9 @@ int etcSwitch(void) /*#ifdef _JOBDAILY char *msg5[] = { - " ", - "һҳ", - "һҳ" + "关 闭", + "上一页", + "下一页" }; #endif*/ @@ -4620,7 +4620,7 @@ int etcSwitch(void) for (i = 0; i < sizeof(btnId) / sizeof(int); i++) btnId[i] = -2; - // ?????? + // ?????? w = 3; h = 5; x = 16; @@ -4628,14 +4628,14 @@ int etcSwitch(void) //y = 72; y = 16; ptActMenuWin = MakeWindowDisp(x, y, w, h, NULL, 1); //ptActMenuWin = MakeWindowDisp(x, y, w, h+1, NULL, 1); -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 x = ptActMenuWin->x; y = ptActMenuWin->y; #endif etcSwitchProcNo++; } #ifdef _CHANNEL_MODIFY - // ƵӴ + // 频道开关视窗 if (etcSwitchProcNo == 100) { w = 3; @@ -4697,7 +4697,7 @@ int etcSwitch(void) case 1: if (pc.familyleader <= 0) { - StockChatBufferLine("δ", FONT_PAL_RED); + StockChatBufferLine("你尚未加入家族", FONT_PAL_RED); pc.etcFlag &= ~iChannelSwitch[id]; } break; @@ -4705,7 +4705,7 @@ int etcSwitch(void) case 2: if (pc.profession_class == 0) { - StockChatBufferLine("δְ", FONT_PAL_RED); + StockChatBufferLine("你尚未就职", FONT_PAL_RED); pc.etcFlag &= ~iChannelSwitch[id]; } break; @@ -4754,7 +4754,7 @@ int etcSwitch(void) DeathAction(pActChannelWin); pActChannelWin = NULL; if ((pf = fopen("data\\channel.dat","w+")) == NULL) - StockChatBufferLine("Ƶ趨ȡʧ", FONT_PAL_RED); + StockChatBufferLine("频道设定档读取失败", FONT_PAL_RED); else { char buf[5]; @@ -4780,7 +4780,7 @@ int etcSwitch(void) iChannelbtnId[0] = StockDispBuffer(x + 96, h * 48 - 24, DISP_PRIO_IME3, CG_CLOSE_BTN, 2); if (focusId == 0) - ShowBottomLineString(FONT_PAL_WHITE, "رѡӴ"); + ShowBottomLineString(FONT_PAL_WHITE, "关闭选单视窗。"); for (i = 0; i < sizeof(pszChannel) / sizeof(char*); i++) { @@ -4796,7 +4796,7 @@ int etcSwitch(void) int ret = iOnlineGmProc(); if (ret) - { // ر + { // 关闭 GetKeyInputFocus(&MyChatBuffer); OnlineGmFlag = FALSE; return 1; @@ -4835,11 +4835,11 @@ int etcSwitch(void) return 1; } if(pActJobdailyWin->hp >= 1){ - StockFontBuffer(274,94,FONT_PRIO_FRONT,FONT_PAL_YELLOW," ־",0); - StockFontBuffer(x+30,118,FONT_PRIO_FRONT,FONT_PAL_GREEN," --------------------˵--------------------",0); - StockFontBuffer(x+440,118,FONT_PRIO_FRONT,FONT_PAL_GREEN,"״̬",0); + StockFontBuffer(274,94,FONT_PRIO_FRONT,FONT_PAL_YELLOW,"任 务 日 志",0); + StockFontBuffer(x+30,118,FONT_PRIO_FRONT,FONT_PAL_GREEN,"编号 --------------------任务说明--------------------",0); + StockFontBuffer(x+440,118,FONT_PRIO_FRONT,FONT_PAL_GREEN,"状态",0); - if(JobdailyGetFlag){ //ѽյ + if(JobdailyGetFlag){ //把接收到的资料秀出 char buf[20]; for(i=0;i<10;i++){ sprintf_s(buf,"%d",jobdaily[i+PageIndex*10].JobId); @@ -4860,8 +4860,8 @@ int etcSwitch(void) y1 = y+30+23+196+45; x2 = x1 + 48; y2 = y1 + 22; - if(i==1) if(PageIndex==0) continue; //һҳ - if(i==2) if(PageIndex==MaxPage-1) continue; //һҳ + if(i==1) if(PageIndex==0) continue; //上一页 + if(i==2) if(PageIndex==MaxPage-1) continue; //下一页 if(MakeHitBox(x1,y1,x2,y2,DISP_PRIO_BOX2)){ if(mouse.onceState & MOUSE_LEFT_CRICK) id = i+1; focusId = i+1; @@ -4888,7 +4888,7 @@ int etcSwitch(void) if(PageIndex==MaxPage) PageIndex--; } - if(focusId == 1) ShowBottomLineString(FONT_PAL_WHITE,"ر־Ӵ"); + if(focusId == 1) ShowBottomLineString(FONT_PAL_WHITE,"关闭任务日志视窗。"); for(i = 0;i < sizeof(msg5)/sizeof(char*);i++){ StockFontBuffer(x+80+i*150,y+30+26+196+45,FONT_PRIO_FRONT,FONT_PAL_YELLOW,msg5[i],0); @@ -4911,7 +4911,7 @@ int etcSwitch(void) focusId = -1; if (ptActMenuWin->hp >= 1) { - // ????kRe + // ???? id = selGraId(btnId, sizeof(btnId) / sizeof(int)); focusId = focusGraId(btnId, sizeof(btnId) / sizeof(int)); @@ -4930,19 +4930,19 @@ int etcSwitch(void) } } - // \????????????????????? + // ????????????????????? if (CheckMenuFlag()) id = 100; - else if (((joy_trg[0] & JOY_ESC) && GetImeString() == NULL)) // ESC???????? + else if (((joy_trg[0] & JOY_ESC) && GetImeString() == NULL)) // ESC???????? { id = 100; - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? } - else if (etcSwitchProcNo == 1000) // ??????????? + else if (etcSwitchProcNo == 1000) // ??????????? id = 100; // ????? if (id == 0) - play_se( 203, 320, 240 ); // ???????? + play_se( 203, 320, 240 ); // ???????? else #ifdef _CHANNEL_MODIFY if (id == 4) @@ -4967,7 +4967,7 @@ int etcSwitch(void) } else { - StockChatBufferLine("ս޷ϻرϵͳ...", FONT_PAL_RED); + StockChatBufferLine("战斗中无法开启线上回报系统...", FONT_PAL_RED); return 0; } } @@ -4982,7 +4982,7 @@ int etcSwitch(void) etcSwitchProcNo = 201; return 0; }else{ - StockChatBufferLine("ս޷־...",FONT_PAL_RED); + StockChatBufferLine("战斗中无法开启任务日志...",FONT_PAL_RED); return 0; } } @@ -4991,17 +4991,17 @@ int etcSwitch(void) if (1 <= id && id <= sizeof(msg) / sizeof(char*)) { id--; - // ???????????? + // ???????????? if (pc.etcFlag & mask[id]) pc.etcFlag &= ~mask[id]; else - // ???????? + // ???????? { #ifdef _STREET_VENDOR if (pc.iOnStreetVendor == 1 || sStreetVendorBuyBtn == 2) { if (mask[id] == PC_ETCFLAG_TRADE || mask[id] == PC_ETCFLAG_PARTY || mask[id] == PC_ETCFLAG_DUEL) - StockChatBufferLine("̯вɿסӼս", FONT_PAL_RED); + StockChatBufferLine("摆摊中不可开交易、组队及对战功能", FONT_PAL_RED); else pc.etcFlag |= mask[id]; } @@ -5013,7 +5013,7 @@ int etcSwitch(void) } if (eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0) { - if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { if (bNewServer) lssproto_FS_send(sockfd, pc.etcFlag); @@ -5021,10 +5021,10 @@ int etcSwitch(void) old_lssproto_FS_send(sockfd, pc.etcFlag); fieldBtnPushTime = TimeGetTime(); } - else // ?????????????????????? ???? + else // ?????????????????????? ???? etcSwitchChangeFlag = 1; } - // ????????k????????????????? + // ????????????????????????? id = -1; play_se(217, 320, 240); //????? } @@ -5040,12 +5040,12 @@ int etcSwitch(void) { btnId[0] = StockDispBuffer(x + 96, h * 48 - 24 , DISP_PRIO_IME3, CG_CLOSE_BTN, 2); if (focusId == 0) - ShowBottomLineString(FONT_PAL_WHITE, "رѡӴ"); + ShowBottomLineString(FONT_PAL_WHITE, "关闭选单视窗。"); for (i = 0; i < sizeof(msg) / sizeof(char*); i++) { StockFontBuffer(x + 20, y + i * 30 + 26, FONT_PRIO_FRONT, FONT_PAL_WHITE, msg[i], 0); - if (i != 3 && i != 5) //޸ѡע + if (i != 3 && i != 5) //修改主选单必须注意 StockFontBuffer(x + 105, y + i * 30 + 26, FONT_PRIO_FRONT, FONT_PAL_WHITE, msg2[((pc.etcFlag & mask[i]) ? 1:0)], 0); #ifndef _CHANNEL_MODIFY else @@ -5060,8 +5060,8 @@ int etcSwitch(void) return 0; } -// ?????Q?N?? -// ??k 0 ... ??? +// ???????? +// ??: 0 ... ??? // 1 ... "??"???????? int disconnectServer( void ) { @@ -5071,8 +5071,8 @@ int disconnectServer( void ) int id = 0; char *msg[] = { - "ж", - "صͷ" + "与服务器切断连线", + "回到开头画面" }; int i; int ret = 0; @@ -5081,7 +5081,7 @@ int disconnectServer( void ) if (ptActMenuWin == NULL) { - // \??????????? + // ??????????? if (CheckMenuFlag()) InitMenu2(); closeEtcSwitch(); @@ -5091,19 +5091,19 @@ int disconnectServer( void ) for (i = 0; i < sizeof(btnId) / sizeof(int); i++) btnId[i] = -2; - // ?????? + // ?????? w = 5; h = 3; x = (lpDraw->xSize - w * 64) / 2; y = (lpDraw->ySize - h * 48) / 2; ptActMenuWin = MakeWindowDisp(x, y, w, h, NULL, 1, FALSE); -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 x = ptActMenuWin->x; y = ptActMenuWin->y; #endif } #ifdef _AIDENGLU_ - extern int Զ½Ƿ; + extern int 自动登陆是否开启; #endif if (ptActMenuWin != NULL) { @@ -5114,7 +5114,7 @@ int disconnectServer( void ) if ( id >= 0 #ifdef _AIDENGLU_ - || Զ½Ƿ + || 自动登陆是否开启 #endif ) { @@ -5130,15 +5130,15 @@ int disconnectServer( void ) StockFontBuffer(x+ xx, y + (i + 1) * yy, FONT_PRIO_FRONT, FONT_PAL_WHITE, msg[i], 0); } - xx = (w * 64 - strlen("ȷ") / 2 * 17) / 2; - btnId[0] = StockFontBuffer(x + xx, y + 3 * yy, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȷ", 2); + xx = (w * 64 - strlen("确定") / 2 * 17) / 2; + btnId[0] = StockFontBuffer(x + xx, y + 3 * yy, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "确定", 2); } } return ret; } -// ????????q? +// ????????? void drawFieldInfoWin(void) { static ACTION *ptActMenuWin = NULL; @@ -5160,7 +5160,7 @@ void drawFieldInfoWin(void) if (ptActMenuWin == NULL) { - // \??????????? + // ??????????? if (CheckMenuFlag()) { // ????????????????? @@ -5172,13 +5172,13 @@ void drawFieldInfoWin(void) closeCharActionAnimeChange(); closeJoinChannelWN(); - // ?????? + // ?????? w = 4; h = 2; x = (lpDraw->xSize - w * 64) / 2; y = (lpDraw->ySize - 24 - h * 48) / 2; ptActMenuWin = MakeWindowDisp(x, y, w, h, NULL, 3, FALSE); -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 x = ptActMenuWin->x; y = ptActMenuWin->y; #endif @@ -5203,7 +5203,7 @@ void drawFieldInfoWin(void) } } -// ??????????????????? +// ??????????????????? void actionShortCutKeyProc(void) { unsigned int key[] = @@ -5225,7 +5225,7 @@ void actionShortCutKeyProc(void) int i; BOOL pushFlag = FALSE; - // ????h?????????? + // ?????????????? if (moveRouteCnt != 0 || nowVx != 0 || nowVy != 0) return; @@ -5245,10 +5245,10 @@ void actionShortCutKeyProc(void) { #ifdef _THEATER if (pc.iTheaterMode & 0x00000001) - StockChatBufferLine("רĿ", FONT_PAL_RED); + StockChatBufferLine("请专心看表演", FONT_PAL_RED); else #endif - if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? + if (fieldBtnPushTime + FIELD_BTN_PUSH_WAIT < TimeGetTime())// ?? { if (bNewServer) lssproto_AC_send(sockfd, nowGx, nowGy, i); @@ -5267,24 +5267,24 @@ static ACTION *ptActLeaderFuncWin = NULL; #ifndef _FM_MODIFY char channelName[9][20] = { - " ", - "Ƶ ", - "Ƶ ", - "Ƶ ", - "Ƶ ", - " 峤㲥 ", - " 뿪Ƶ ", - " 峤 ", - " " + " 家族资料 ", + "家族频道 1", + "家族频道 2", + "家族频道 3", + "家族频道 4", + " 族长广播 ", + " 离开频道 ", + " 族长功能 ", + " 离 开 " }; #else char channelName[5][20] = { - " ", - " 峤 ", - "岼", - " رչ㲥 ", - " " + " 家族资料 ", + " 族长功能 ", + "家族布告栏", + " 关闭广播 ", + " 家族徽章 " }; #endif @@ -5350,7 +5350,7 @@ void joinChannelWN(void) if (ptActChannelWin == NULL) { ptActChannelWin = MakeWindowDisp(x, y, w, h, NULL, 1, FALSE); -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 x = ptActChannelWin->x; y = ptActChannelWin->y; #endif @@ -5361,11 +5361,11 @@ void joinChannelWN(void) { if (ptActChannelWin->hp >= 1) { - // ESC???????? + // ESC???????? if (((joy_trg[0] & JOY_ESC) && GetImeString() == NULL)) { closeJoinChannelWN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? } if (CheckMenuFlag()) closeJoinChannelWN(); @@ -5511,49 +5511,49 @@ void joinChannelWN(void) switch (selId) { case 0: - ShowBottomLineString(FONT_PAL_WHITE, "鿴ϸϡ"); + ShowBottomLineString(FONT_PAL_WHITE, "查看家族详细资料。"); break; case 1: case 2: case 3: if (pc.channel == selId) - sprintf_s(buf, "ĿǰƵ"); + sprintf_s(buf, "你目前在这个频道。"); else - sprintf_s(buf, "鿴Ƶ"); + sprintf_s(buf, "查看这个聊天频道。"); ShowBottomLineString(FONT_PAL_WHITE, buf); break; case 5: - ShowBottomLineString(FONT_PAL_WHITE, "峤ȫϵԱ㲥"); + ShowBottomLineString(FONT_PAL_WHITE, "族长对全星系的族员广播。"); break; case 6: - ShowBottomLineString(FONT_PAL_WHITE, "˳ĿǰƵ"); + ShowBottomLineString(FONT_PAL_WHITE, "退出目前的频道。"); break; case 7: - ShowBottomLineString(FONT_PAL_WHITE, "峤רùܡ"); + ShowBottomLineString(FONT_PAL_WHITE, "族长专用功能。"); break; default: if (selgraId == 0) - ShowBottomLineString(FONT_PAL_WHITE, "뿪Ƶѡ"); + ShowBottomLineString(FONT_PAL_WHITE, "离开聊天频道选单。"); break; } #else switch (selId) { case 0: - ShowBottomLineString(FONT_PAL_WHITE, "鿴ϸϡ"); + ShowBottomLineString(FONT_PAL_WHITE, "查看家族详细资料。"); break; case 1: - ShowBottomLineString(FONT_PAL_WHITE, "峤רùܡ"); + ShowBottomLineString(FONT_PAL_WHITE, "族长专用功能。"); break; case 2: - ShowBottomLineString(FONT_PAL_WHITE, "ʹü岼ܡ"); + ShowBottomLineString(FONT_PAL_WHITE, "使用家族布告栏功能。"); break; case 3: - ShowBottomLineString(FONT_PAL_WHITE, "ر峤㲥ܡ"); + ShowBottomLineString(FONT_PAL_WHITE, "关闭族长广播功能。"); break; default: if (selgraId == 0) - ShowBottomLineString(FONT_PAL_WHITE, "뿪Ƶѡ"); + ShowBottomLineString(FONT_PAL_WHITE, "离开聊天频道选单。"); break; } #endif @@ -5576,8 +5576,8 @@ static TchannelData channelData; char pageStr[2][10] = { - "һҳ", - "һҳ", + "上一页", + "下一页", }; static int pageNum; @@ -5636,7 +5636,7 @@ void joinChannel2WN(void) DeathAction(ptActLeaderFuncWin); ptActLeaderFuncWin = NULL; ptActChannel2Win = MakeWindowDisp(x, y, w, h, NULL, 1); -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 x = ptActChannel2Win->x; y = ptActChannel2Win->y; #endif @@ -5648,10 +5648,10 @@ void joinChannel2WN(void) switch (selId) { case 0: - ShowBottomLineString(FONT_PAL_WHITE, "뱾Ƶ"); + ShowBottomLineString(FONT_PAL_WHITE, "加入本频道。"); break; case 1: - ShowBottomLineString(FONT_PAL_WHITE, "رӴ"); + ShowBottomLineString(FONT_PAL_WHITE, "关闭这个视窗。"); break; } @@ -5666,7 +5666,7 @@ void joinChannel2WN(void) else old_lssproto_FM_send(sockfd, buf); closeJoinChannelWN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? break; case 1: if (pc.channel == channelData.index) @@ -5678,7 +5678,7 @@ void joinChannel2WN(void) old_lssproto_FM_send(sockfd, buf); } closeJoinChannel2WN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? break; case 2: if (pageNum > 0) @@ -5691,8 +5691,8 @@ void joinChannel2WN(void) } } - fontBtnId[0] = StockFontBuffer(x + 240, y + 340, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " ", 2); - fontBtnId[1] = StockFontBuffer(x + 340, y + 340, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " ", 2); + fontBtnId[0] = StockFontBuffer(x + 240, y + 340, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " 加 入 ", 2); + fontBtnId[1] = StockFontBuffer(x + 340, y + 340, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " 离 开 ", 2); switch (pageNum) { @@ -5711,11 +5711,11 @@ void joinChannel2WN(void) } StockFontBuffer(x + 25, y + 25, FONT_PRIO_FRONT, FONT_PAL_WHITE, channelName[channelData.index], 0); - StockFontBuffer(x + 25, y + 50, FONT_PRIO_FRONT, FONT_PAL_WHITE, "[ Ƶ Ա ]", 0); + StockFontBuffer(x + 25, y + 50, FONT_PRIO_FRONT, FONT_PAL_WHITE, "[ 频 道 成 员 ]", 0); - sprintf_s(buf, "Ŀǰ %d λԱڱ", channelData.num); + sprintf_s(buf, "目前有 %d 位家族成员在本星球。", channelData.num); StockFontBuffer(x + 200, y + 25, FONT_PRIO_FRONT, FONT_PAL_WHITE, buf, 0); - sprintf_s(buf, " %d ڱƵ", channelData.joinNum); + sprintf_s(buf, "有 %d 人在本频道。", channelData.joinNum); StockFontBuffer(x + 280, y + 50, FONT_PRIO_FRONT, FONT_PAL_WHITE, buf, 0); for (i = 0 ; i < channelData.num; i++) @@ -5776,18 +5776,18 @@ void leaderFuncWN(void) if (ptActLeaderFuncWin == NULL) { ptActLeaderFuncWin = MakeWindowDisp(x, y, w, h, NULL, 1, FALSE); -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 x = ptActLeaderFuncWin->x; y = ptActLeaderFuncWin->y; #endif } else if (ptActLeaderFuncWin->hp >= 1) { - // ESC???????? + // ESC???????? if (((joy_trg[0] & JOY_ESC) && GetImeString() == NULL)) { closeJoinChannelWN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? } if (CheckMenuFlag()) closeJoinChannelWN(); @@ -5811,7 +5811,7 @@ void leaderFuncWN(void) else old_lssproto_FM_send(sockfd, buf); closeJoinChannelWN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? return; } if (selId == 2) @@ -5822,7 +5822,7 @@ void leaderFuncWN(void) else old_lssproto_FM_send(sockfd, buf); closeJoinChannelWN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? return; } @@ -5834,7 +5834,7 @@ void leaderFuncWN(void) else old_lssproto_FM_send(sockfd, buf); closeJoinChannelWN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? return; } if (selId == 4) @@ -5845,7 +5845,7 @@ void leaderFuncWN(void) else old_lssproto_FM_send(sockfd, buf); closeJoinChannelWN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? return; } @@ -5857,10 +5857,10 @@ void leaderFuncWN(void) else old_lssproto_FM_send(sockfd, buf); closeJoinChannelWN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? return; } -#ifdef _ADD_FAMILY_TAX // WON ADD ׯ԰˰ +#ifdef _ADD_FAMILY_TAX // WON ADD 增加庄园税收 if (selId == 6) { sprintf_s(buf, "L|FMTAX|W"); @@ -5869,7 +5869,7 @@ void leaderFuncWN(void) else old_lssproto_FM_send(sockfd, buf); closeJoinChannelWN(); - play_se(203, 320, 240); // ???????? + play_se(203, 320, 240); // ???????? return; } #endif @@ -5882,56 +5882,56 @@ void leaderFuncWN(void) #endif { if (pc.channel == 5) - btnId[1] = StockFontBuffer(x + 22, y + 65 + 36 * 0, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " 峤㲥 ", 2); + btnId[1] = StockFontBuffer(x + 22, y + 65 + 36 * 0, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " 族长广播 ", 2); else - btnId[1] = StockFontBuffer(x + 22, y + 65 + 36 * 0, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 峤㲥 ", 2); + btnId[1] = StockFontBuffer(x + 22, y + 65 + 36 * 0, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 族长广播 ", 2); - btnId[2] = StockFontBuffer(x + 22, y + 65 + 36 * 1, FONT_PRIO_FRONT, FONT_PAL_WHITE, "Ա", 2); + btnId[2] = StockFontBuffer(x + 22, y + 65 + 36 * 1, FONT_PRIO_FRONT, FONT_PAL_WHITE, "家族成员管理", 2); - btnId[3] = StockFontBuffer(x + 22, y + 65 + 36 * 2, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 뺯 ", 2); - //btnId[4] = StockFontBuffer(x + 22, y + 65 + 36 * 3, FONT_PRIO_FRONT, FONT_PAL_WHITE, " ѧϰͬ ", 2); - //btnId[5] = StockFontBuffer(x + 22, y + 65 + 36 * 4, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 峤λ ", 2); - btnId[5] = StockFontBuffer(x + 22, y + 65 + 36 * 3, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 峤λ ", 2); + btnId[3] = StockFontBuffer(x + 22, y + 65 + 36 * 2, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 家族邀请函 ", 2); + //btnId[4] = StockFontBuffer(x + 22, y + 65 + 36 * 3, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 学习同意书 ", 2); + //btnId[5] = StockFontBuffer(x + 22, y + 65 + 36 * 4, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 族长让位 ", 2); + btnId[5] = StockFontBuffer(x + 22, y + 65 + 36 * 3, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 族长让位 ", 2); -#ifdef _ADD_FAMILY_TAX // WON ADD ׯ԰˰ - btnId[6] = StockFontBuffer(x + 22, y + 65 + 36 * 5, FONT_PRIO_FRONT, FONT_PAL_WHITE, "ׯ԰˰", 2); +#ifdef _ADD_FAMILY_TAX // WON ADD 增加庄园税收 + btnId[6] = StockFontBuffer(x + 22, y + 65 + 36 * 5, FONT_PRIO_FRONT, FONT_PAL_WHITE, "调整庄园税率", 2); #endif } // shan begin #ifdef _FMVER21 if (pc.familyleader == FMMEMBER_ELDER) { - btnId[1] = StockFontBuffer(x + 22, y + 65 + 36 * 0, FONT_PRIO_FRONT, FONT_PAL_GRAY, " 峤㲥 ", 0); - btnId[2] = StockFontBuffer(x + 22, y + 65 + 36 * 1, FONT_PRIO_FRONT, FONT_PAL_WHITE, "Ա", 2); + btnId[1] = StockFontBuffer(x + 22, y + 65 + 36 * 0, FONT_PRIO_FRONT, FONT_PAL_GRAY, " 族长广播 ", 0); + btnId[2] = StockFontBuffer(x + 22, y + 65 + 36 * 1, FONT_PRIO_FRONT, FONT_PAL_WHITE, "家族成员管理", 2); - btnId[3] = StockFontBuffer(x + 22, y + 65 + 36 * 2, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 뺯 ", 2); - btnId[4] = StockFontBuffer(x + 22, y + 65 + 36 * 3, FONT_PRIO_FRONT, FONT_PAL_WHITE, " ѧϰͬ ", 2); - btnId[5] = StockFontBuffer(x + 22, y + 65 + 36 * 4, FONT_PRIO_FRONT, FONT_PAL_GRAY, " 峤λ ", 0); + btnId[3] = StockFontBuffer(x + 22, y + 65 + 36 * 2, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 家族邀请函 ", 2); + btnId[4] = StockFontBuffer(x + 22, y + 65 + 36 * 3, FONT_PRIO_FRONT, FONT_PAL_WHITE, " 学习同意书 ", 2); + btnId[5] = StockFontBuffer(x + 22, y + 65 + 36 * 4, FONT_PRIO_FRONT, FONT_PAL_GRAY, " 族长让位 ", 0); -#ifdef _ADD_FAMILY_TAX // WON ADD ׯ԰˰ - btnId[6] = StockFontBuffer(x + 22, y + 65 + 36 * 5, FONT_PRIO_FRONT, FONT_PAL_GRAY, " ׯ԰˰ ", 0); +#ifdef _ADD_FAMILY_TAX // WON ADD 增加庄园税收 + btnId[6] = StockFontBuffer(x + 22, y + 65 + 36 * 5, FONT_PRIO_FRONT, FONT_PAL_GRAY, " 调整庄园税率 ", 0); #endif } #endif // shan end if (selId == 1) - ShowBottomLineString(FONT_PAL_WHITE, "峤ȫϵԱ㲥"); + ShowBottomLineString(FONT_PAL_WHITE, "族长对全星系的族员广播。"); else if (selId == 2) - ShowBottomLineString(FONT_PAL_WHITE, "Աб"); + ShowBottomLineString(FONT_PAL_WHITE, "家族成员列表。"); else if (selId == 3) - ShowBottomLineString(FONT_PAL_WHITE, "ι뺯"); + ShowBottomLineString(FONT_PAL_WHITE, "制作家族参观邀请函。"); else if (selId == 4) - ShowBottomLineString(FONT_PAL_WHITE, "ѧϰͬ顣"); -#ifdef _ADD_FAMILY_TAX // WON ADD ׯ԰˰ + ShowBottomLineString(FONT_PAL_WHITE, "制作学习骑乘同意书。"); +#ifdef _ADD_FAMILY_TAX // WON ADD 增加庄园税收 else if (selId == 6) - ShowBottomLineString(FONT_PAL_WHITE, "ׯ԰Ʒ˰ա"); + ShowBottomLineString(FONT_PAL_WHITE, "调整庄园内物品税收。"); #endif } } -#ifdef _SURFACE_ANIM //ROG ADD ̬ʾ +#ifdef _SURFACE_ANIM //ROG ADD 动态地上物显示 int ReadAniFile(int floor) { HANDLE hFile; @@ -5939,7 +5939,7 @@ int ReadAniFile(int floor) char fileName[32]; ani_num = 0; int col = 0, row = 0; - breadAniFlag = TRUE; //ȡ + breadAniFlag = TRUE; //读取档案旗标 sprintf_s(fileName, "map\\%d.ani", floor); for (int i = 0; i < MAX_ANIM; i++) { @@ -5954,7 +5954,7 @@ int ReadAniFile(int floor) ProduceXY[row][5] = 0 ; row++; } - ani_num = row; //õͼܶ + ani_num = row; //该地图总动画数 CloseHandle(hFile); return 1; @@ -6061,7 +6061,7 @@ void ReleaseSpecAnim () #else -#ifdef _SPECIALSPACEANIM // Syu ADD ⳡ +#ifdef _SPECIALSPACEANIM // Syu ADD 特殊场景动画配置 void SpecAnim (int floor) { int j = 0; @@ -6116,7 +6116,7 @@ void ReleaseSpecAnim() #endif #endif -#ifdef _CLOUD_EFFECT // (ɿ) ROG ADDƲЧ +#ifdef _CLOUD_EFFECT // (不可开) ROG ADD云层效果 void CloudDraw() { static DWORD SlowDraw; @@ -6158,16 +6158,16 @@ void TeacherSystemWndfunc(int flag, char *data) memset(szBuf, 0, sizeof(szBuf)); switch (flag) { - // ֻһ + // 只有一个人 case 0: winW = 5; winH = 2; // get name - getStringToken(data, '|', 2, sizeof(szBuf[0]) - 1, szBuf[0]); // 浼ʦ - getStringToken(data, '|', 3, sizeof(szBuf[6]) - 1, szBuf[6]); // ȡʦ index + getStringToken(data, '|', 2, sizeof(szBuf[0]) - 1, szBuf[0]); // 存导师的名字 + getStringToken(data, '|', 3, sizeof(szBuf[6]) - 1, szBuf[6]); // 取出导师 index iIndex[0] = atoi(szBuf[6]); break; - // һͬһ + // 一人以上在同一格 case 1: winW = 5; winH = 5; @@ -6176,19 +6176,19 @@ void TeacherSystemWndfunc(int flag, char *data) // get name for (i = 0; i < iGetNum; i++) { - getStringToken(data, '|', 3 + i * 2, sizeof(szBuf[i]) - 1, szBuf[i]); // 浼ʦ - getStringToken(data, '|', 4 + i * 2, sizeof(szBuf[6]) - 1, szBuf[6]); // ȡʦ index + getStringToken(data, '|', 3 + i * 2, sizeof(szBuf[i]) - 1, szBuf[i]); // 存导师的名字 + getStringToken(data, '|', 4 + i * 2, sizeof(szBuf[6]) - 1, szBuf[6]); // 取出导师 index iIndex[i] = atoi(szBuf[6]); } break; - // ʾʦ + // 显示导师资料 case 2: winW = 5; winH = 3; - getStringToken(data, '|', 2, sizeof(szBuf[0]) - 1, szBuf[0]); // 浼ʦ - getStringToken(data, '|', 3, sizeof(szBuf[6]) - 1, szBuf[6]); // ȡڲ״̬ + getStringToken(data, '|', 2, sizeof(szBuf[0]) - 1, szBuf[0]); // 存导师的名字 + getStringToken(data, '|', 3, sizeof(szBuf[6]) - 1, szBuf[6]); // 取出在不在线状态 iOnline = atoi(szBuf[6]); - getStringToken(data, '|', 4, sizeof(szBuf[1]) - 1, szBuf[1]); // ϵ ip + getStringToken(data, '|', 4, sizeof(szBuf[1]) - 1, szBuf[1]); // 存星系 ip break; case 3: winW = 5; @@ -6198,10 +6198,10 @@ void TeacherSystemWndfunc(int flag, char *data) case 4: winW = 5; winH = 3; - getStringToken(data, '|', 2, sizeof(szBuf[0]) - 1, szBuf[0]); // ѧ - getStringToken(data, '|', 3, sizeof(szBuf[6]) - 1, szBuf[6]); // ȡڲ״̬ + getStringToken(data, '|', 2, sizeof(szBuf[0]) - 1, szBuf[0]); // 存学生的名字 + getStringToken(data, '|', 3, sizeof(szBuf[6]) - 1, szBuf[6]); // 取出在不在线状态 iOnline = atoi(szBuf[6]); - getStringToken(data, '|', 4, sizeof(szBuf[1]) - 1, szBuf[1]); // ϵ ip + getStringToken(data, '|', 4, sizeof(szBuf[1]) - 1, szBuf[1]); // 存星系 ip break; case 5: winW = 5; @@ -6231,14 +6231,14 @@ void TeacherSystemWndfunc(int flag, char *data) { if (!bOpen) bOpen = TRUE; - // ֻһѯǷҪԷĵʦ + // 只有一个人询问是否要对方当你的导师 if (flag == 0) { - sprintf_s(szMsg, "Ƿ϶ %s", szBuf[0]); + sprintf_s(szMsg, "你是否将认定 %s", szBuf[0]); StockFontBuffer(winX + 20, winY + 20, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - StockFontBuffer(winX + 20, winY + 36, FONT_PRIO_FRONT, FONT_PAL_WHITE, "Ϊĵʦ", 0); - iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȷ ", 2); - iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȡ ", 2); + StockFontBuffer(winX + 20, winY + 36, FONT_PRIO_FRONT, FONT_PAL_WHITE, "成为你的导师?", 0); + iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "确 定", 2); + iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "取 消", 2); if (mouse.onceState & MOUSE_LEFT_CRICK) { for (i = 0; i < 2; i++) @@ -6246,7 +6246,7 @@ void TeacherSystemWndfunc(int flag, char *data) if (HitFontNo == iFontId[i]) { play_se(217, 320, 240); - // ȷ + // 确定 if (i == 0) { sprintf_s(szMsg, "O|%d", iIndex[0]); @@ -6261,12 +6261,12 @@ void TeacherSystemWndfunc(int flag, char *data) } } } - // һͬһѯǷҪԷĵʦ + // 一人以上在同一格询问是否要对方当你的导师 else if (flag == 1) { - sprintf_s(szMsg, "ѡ˭Ϊĵʦأ"); + sprintf_s(szMsg, "选谁作为你的导师呢?"); StockFontBuffer(winX + 20, winY + 20, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - iFontId[0] = StockFontBuffer(winX + winW / 2 * 64, winY + (winH - 1)* 48, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȡ ", 2); + iFontId[0] = StockFontBuffer(winX + winW / 2 * 64, winY + (winH - 1)* 48, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "取 消", 2); for (i = 0; i < iGetNum; i++) iFontId[i+1] = StockFontBuffer(winX + 20, winY + 46 + i * 24, FONT_PRIO_FRONT, FONT_PAL_WHITE, szBuf[i], 2); if (mouse.onceState & MOUSE_LEFT_CRICK) @@ -6276,7 +6276,7 @@ void TeacherSystemWndfunc(int flag, char *data) if (HitFontNo == iFontId[i]) { play_se(217,320,240); - // ѡ˵ʦ + // 选好了导师 if (i != 0) { sprintf_s(szMsg, "O|%d", iIndex[i-1]); @@ -6291,17 +6291,17 @@ void TeacherSystemWndfunc(int flag, char *data) } } } - // ʾʦ + // 显示导师资料 else if (flag == 2) { - sprintf_s(szMsg, "ʦ״̬"); + sprintf_s(szMsg, "导师状态"); StockFontBuffer(winX + 130, winY + 20, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - sprintf_s(szMsg, "ʦ%s", szBuf[0]); + sprintf_s(szMsg, "导师姓名:%s", szBuf[0]); StockFontBuffer(winX + 20, winY + 36, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - StockFontBuffer(winX + 20, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "״̬", 0); + StockFontBuffer(winX + 20, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "状态:", 0); StockFontBuffer(winX + 66, winY + 52, FONT_PRIO_FRONT, iOnline == 1 ? FONT_PAL_YELLOW : FONT_PAL_RED, iOnline == 1 ? "Online" : "Offline", 0); - StockFontBuffer(winX + 148, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "ϵ", 0); + StockFontBuffer(winX + 148, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "星系:", 0); if (iOnline == 1) { for (i = 0; i < MAX_GMSV; i++) @@ -6317,9 +6317,9 @@ void TeacherSystemWndfunc(int flag, char *data) } } else - StockFontBuffer(winX + 190, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "", 0); - iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " ", 2); - iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȡʦʸ", 2); + StockFontBuffer(winX + 190, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "无", 0); + iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "关 闭", 2); + iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "取消导师资格", 2); if (mouse.onceState & MOUSE_LEFT_CRICK) { for (i = 0; i < 2; i++) @@ -6328,7 +6328,7 @@ void TeacherSystemWndfunc(int flag, char *data) { play_se(217,320,240); sTeacherSystemBtn = 0; - // ȡʦʸ + // 取消导师资格 if (i != 0) sTeacherSystemBtn = 5; DeathAction(pActTeacherSystemWnd); @@ -6339,13 +6339,13 @@ void TeacherSystemWndfunc(int flag, char *data) } } } - // ȷǷҪȡʦ + // 确认是否真的要取消导师 else if (flag == 3) { - StockFontBuffer(winX + 20, winY + 20, FONT_PRIO_FRONT, FONT_PAL_WHITE, "ȡʦֵ", 0); - StockFontBuffer(winX + 20, winY + 40, FONT_PRIO_FRONT, FONT_PAL_WHITE, "ȷҪȡʦ", 0); - iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȷ ", 2); - iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȡ ", 2); + StockFontBuffer(winX + 20, winY + 20, FONT_PRIO_FRONT, FONT_PAL_WHITE, "取消导师将会减少你的魅力值,", 0); + StockFontBuffer(winX + 20, winY + 40, FONT_PRIO_FRONT, FONT_PAL_WHITE, "你确定要取消导师?", 0); + iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "确 定", 2); + iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "取 消", 2); if (mouse.onceState & MOUSE_LEFT_CRICK) { for (i = 0; i < 2; i++) @@ -6353,7 +6353,7 @@ void TeacherSystemWndfunc(int flag, char *data) if (HitFontNo == iFontId[i]) { play_se(217,320,240); - // ȡʦʸ + // 取消导师资格 if (i == 0) lssproto_TEACHER_SYSTEM_send(sockfd, "C|"); DeathAction(pActTeacherSystemWnd); @@ -6366,17 +6366,17 @@ void TeacherSystemWndfunc(int flag, char *data) } } #ifdef _TEACHER_SYSTEM_2 - // ʾѧ + // 显示学生资料 else if (flag == 4) { - sprintf_s(szMsg, "ѧ״̬"); + sprintf_s(szMsg, "学生状态"); StockFontBuffer(winX + 130, winY + 20, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - sprintf_s(szMsg, "ѧ%s", szBuf[0]); + sprintf_s(szMsg, "学生姓名:%s", szBuf[0]); StockFontBuffer(winX + 20, winY + 36, FONT_PRIO_FRONT, FONT_PAL_WHITE, szMsg, 0); - StockFontBuffer(winX + 20, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "״̬", 0); + StockFontBuffer(winX + 20, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "状态:", 0); StockFontBuffer(winX + 66, winY + 52, FONT_PRIO_FRONT, iOnline == 1 ? FONT_PAL_YELLOW : FONT_PAL_RED, iOnline == 1 ? "Online" : "Offline", 0); - StockFontBuffer(winX + 148, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "ϵ", 0); + StockFontBuffer(winX + 148, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "星系:", 0); if (iOnline == 1) { for (i = 0; i < MAX_GMSV; i++) @@ -6392,9 +6392,9 @@ void TeacherSystemWndfunc(int flag, char *data) } } else - StockFontBuffer(winX + 190, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "", 0); - iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " ", 2); - iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȡѧʸ", 2); + StockFontBuffer(winX + 190, winY + 52, FONT_PRIO_FRONT, FONT_PAL_WHITE, "无", 0); + iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "关 闭", 2); + iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "取消学生资格", 2); if (mouse.onceState & MOUSE_LEFT_CRICK) { for (i = 0; i < 2; i++) @@ -6403,7 +6403,7 @@ void TeacherSystemWndfunc(int flag, char *data) { play_se(217,320,240); sTeacherSystemBtn = 0; - // ȡѧʸ + // 取消学生资格 if (i != 0) sTeacherSystemBtn = 7; DeathAction(pActTeacherSystemWnd); @@ -6414,12 +6414,12 @@ void TeacherSystemWndfunc(int flag, char *data) } } } - // ȷǷҪȡѧ + // 确认是否真的要取消学生 else if (flag == 5) { - StockFontBuffer(winX + 20, winY + 20, FONT_PRIO_FRONT, FONT_PAL_WHITE, "ȷҪȡѧ", 0); - iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȷ ", 2); - iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ȡ ", 2); + StockFontBuffer(winX + 20, winY + 20, FONT_PRIO_FRONT, FONT_PAL_WHITE, "你确定要取消学生?", 0); + iFontId[0] = StockFontBuffer(winX + 64, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "确 定", 2); + iFontId[1] = StockFontBuffer(winX + (winW + 1) * 32, winY + winH * 30, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "取 消", 2); if (mouse.onceState & MOUSE_LEFT_CRICK) { for (i = 0; i < 2; i++) @@ -6427,7 +6427,7 @@ void TeacherSystemWndfunc(int flag, char *data) if (HitFontNo == iFontId[i]) { play_se(217,320,240); - // ȡѧʸ + // 取消学生资格 if (i == 0) lssproto_TEACHER_SYSTEM_send(sockfd, "D|"); DeathAction(pActTeacherSystemWnd); diff --git a/石器时代8.5客户端最新源代码/石器源码/system/font.cpp b/石器时代8.5客户端最新源代码/石器源码/system/font.cpp index b0455d7..b2dfdfc 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/font.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/font.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #define ASCII(a) a-'A'+10 @@ -29,7 +29,7 @@ char* sunday( char* str, char* subStr) } for(i=0;iNextChatBuffer; - while(pHAIH) //лڽ + while(pHAIH) //如果链中还存在结点 { CHAT_BUFFER* pTemp; pTemp = pHAIH; @@ -233,7 +233,7 @@ void NewStockFontBuffer(CHAT_BUFFER *chatbuffer,int x,unsigned char color,char * void StockFontBuffer2( STR_BUFFER *strBuffer ) { - int lineDist = 0; //о + int lineDist = 0; //行距 int splitPoint = 0; int bakSplitPoint,cursor; BOOL SetCursor=FALSE; @@ -242,16 +242,16 @@ void StockFontBuffer2( STR_BUFFER *strBuffer ) strBuffer->hitFontNo = -2; return; } - //Ҫʱ + //需要分行时 if( strBuffer->lineLen != 0 ){ cursor=strBuffer->cursor; while( strlen( strBuffer->buffer + splitPoint ) >= strBuffer->lineLen ){ bakSplitPoint=splitPoint; - //copyһеִ + //copy一行的字串 strncpy_s( splitStr, strBuffer->buffer + splitPoint, strBuffer->lineLen ); *( splitStr + strBuffer->lineLen ) = NULL; if( GetStrLastByte( splitStr ) == 3 ){ - //ָDBCSʱ˻һbyte + //分割到中DBCS时,退回一个byte splitPoint = strBuffer->lineLen - 1 + splitPoint; *( splitStr + strBuffer->lineLen - 1 ) = NULL; }else @@ -278,8 +278,8 @@ void StockFontBuffer2( STR_BUFFER *strBuffer ) #ifdef _FONT_SIZE FontBuffer[ FontCnt ].size = 0; #endif -//Hook_typeǺŲ -#ifdef _SAHOOK //Syu ADD Hookʽ +//定义Hook_type用来处理星号产生 +#ifdef _SAHOOK //Syu ADD Hook程式 if( strBuffer->filterFlag == HOOK_TYPE){ extern int HOOK_PASSWD_NUM; for(int i = 0 ; i < HOOK_PASSWD_NUM ; i++) @@ -296,8 +296,8 @@ void StockFontBuffer2( STR_BUFFER *strBuffer ) FontBuffer[ FontCnt ].str[ i ] = '*'; FontBuffer[ FontCnt ].str[ i ] = NULL; }else{ - extern int ; - if(==950){ + extern int 编码; + if(编码==950){ extern char* GB2312ToBIG5(const char* szBIG5String); strcpy( FontBuffer[ FontCnt ].str, GB2312ToBIG5((const char *)strBuffer->buffer)); }else @@ -329,18 +329,18 @@ void StockFontBuffer2( STR_BUFFER *strBuffer ) //ONLINEGM USE int StockFontBuffer3( STR_BUFFER *strBuffer ) { - int lineDist = 0; //о + int lineDist = 0; //行距 int splitPoint = 0; int bakSplitPoint,cursor; BOOL SetCursor=FALSE; char splitStr[ 256 ]; cursor=strBuffer->cursor; - //Ҫʱ + //需要分行时 while( strlen( strBuffer->buffer + splitPoint ) >= (unsigned)strBuffer->lineLen-1 ){ bakSplitPoint=splitPoint; - strcpy( splitStr , strBuffer->buffer + splitPoint ); //һ - *( splitStr + strBuffer->lineLen ) = NULL; //ָ + strcpy( splitStr , strBuffer->buffer + splitPoint ); //一个字 + *( splitStr + strBuffer->lineLen ) = NULL; //指向最后 splitPoint = strBuffer->lineLen + splitPoint; StockFontBuffer( strBuffer->x, strBuffer->y , strBuffer->fontPrio, 0 , splitStr, 0 ); @@ -352,7 +352,7 @@ int StockFontBuffer3( STR_BUFFER *strBuffer ) lineDist += strBuffer->lineDist; return 1; } - if(!SetCursor){ // α겻軻 + if(!SetCursor){ // 游标不需换行 strBuffer->imeX = strBuffer->x + (strBuffer->cursor-splitPoint)*(FONT_SIZE>>1); strBuffer->imeY = strBuffer->y + lineDist; } @@ -363,7 +363,7 @@ int StockFontBuffer3( STR_BUFFER *strBuffer ) void StockFontBufferFamily( STR_BUFFER *strBuffer ) { - int lineDist = 0; //о + int lineDist = 0; //行距 int splitPoint = 0; int bakSplitPoint,cursor; BOOL SetCursor=FALSE; @@ -372,22 +372,22 @@ void StockFontBufferFamily( STR_BUFFER *strBuffer ) strBuffer->hitFontNo = -2; return; } - int ; + int 行字数; if( strBuffer->lineLen != 0 ){ cursor=strBuffer->cursor; - if(lineDist) = strBuffer->lineLen; - else = 38; - while( strlen( strBuffer->buffer + splitPoint ) >= ){ + if(lineDist) 行字数 = strBuffer->lineLen; + else 行字数 = 38; + while( strlen( strBuffer->buffer + splitPoint ) >=行字数 ){ bakSplitPoint=splitPoint; - //copyһеִ - strncpy_s( splitStr, strBuffer->buffer + splitPoint, ); - *( splitStr + ) = NULL; + //copy一行的字串 + strncpy_s( splitStr, strBuffer->buffer + splitPoint, 行字数 ); + *( splitStr +行字数 ) = NULL; if( GetStrLastByte( splitStr ) == 3 ){ - //ָDBCSʱ˻һbyte - splitPoint = - 1 + splitPoint; - *( splitStr + - 1 ) = NULL; + //分割到中DBCS时,退回一个byte + splitPoint = 行字数 - 1 + splitPoint; + *( splitStr + 行字数 - 1 ) = NULL; }else - splitPoint = + splitPoint; + splitPoint =行字数 + splitPoint; if(lineDist) StockFontBuffer( strBuffer->x-60, strBuffer->y + lineDist, strBuffer->fontPrio, 0, splitStr, 0 ); else @@ -401,8 +401,8 @@ void StockFontBufferFamily( STR_BUFFER *strBuffer ) SetCursor=TRUE; } lineDist += strBuffer->lineDist; - if(lineDist) = strBuffer->lineLen; - else = 38; + if(lineDist) 行字数 = strBuffer->lineLen; + else 行字数 = 38; } if(!SetCursor){ if(lineDist) @@ -424,8 +424,8 @@ void StockFontBufferFamily( STR_BUFFER *strBuffer ) #ifdef _FONT_SIZE FontBuffer[ FontCnt ].size = 0; #endif - //Hook_typeǺŲ -#ifdef _SAHOOK //Syu ADD Hookʽ + //定义Hook_type用来处理星号产生 +#ifdef _SAHOOK //Syu ADD Hook程式 if( strBuffer->filterFlag == HOOK_TYPE){ extern int HOOK_PASSWD_NUM; for(int i = 0 ; i < HOOK_PASSWD_NUM ; i++) @@ -442,8 +442,8 @@ void StockFontBufferFamily( STR_BUFFER *strBuffer ) FontBuffer[ FontCnt ].str[ i ] = '*'; FontBuffer[ FontCnt ].str[ i ] = NULL; }else { - extern int ; - if(==950){ + extern int 编码; + if(编码==950){ extern char* GB2312ToBIG5(const char* szBIG5String); strcpy( FontBuffer[ FontCnt ].str, GB2312ToBIG5((const char *)strBuffer->buffer) ); }else diff --git a/石器时代8.5客户端最新源代码/石器源码/system/gamemain.cpp b/石器时代8.5客户端最新源代码/石器源码/system/gamemain.cpp index 167f027..0ad751e 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/gamemain.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/gamemain.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* gamemain.cpp */ /************************/ #include "../systeminc/version.h" @@ -51,20 +51,20 @@ extern Landed PcLanded; #endif -int Ƿؿ_1; -int ; +int 是否重开登组队_1; +int 编码; int MessageBoxNew(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType); #ifdef _OPTIMIZATIONFLIP_ -#define NO_DRAW_MAX_CNT 5 // ?????????? +#define NO_DRAW_MAX_CNT 5 // ?????????? #else -#define NO_DRAW_MAX_CNT 6 // ?????????? -//#define FRAME_SKIP 1 // ???????? ??? ???? +#define NO_DRAW_MAX_CNT 6 // ?????????? +//#define FRAME_SKIP 1 // ???????? ??:? ???:? #endif -// ?????????v???L? +// ????????????? void ChangeWindowMode(void); -// ??T???@e?? +// ??????? void SetResoMode(int Mode); void StrToNowStrBuffer(char *str); void StrToNowStrBuffer1(char *str); @@ -78,10 +78,10 @@ static char no_wait_cnt = 0; int debug_info_flag = 0; //---------------------------------------------------------------------------// -// ??????e? // +// ??????? // //---------------------------------------------------------------------------// -// ????????? +// ????????? int FrameRate; int DrawFrameCnt; DWORD DrawFrameTime; @@ -93,14 +93,14 @@ static int fontNo = 0; int GameState; #ifdef _OPTIMIZATIONFLIP_ -//ʱ +//过程时间 DWORD ProcTime = 8; -//ѭʱ +//循环时间 DWORD SystemTime = 16; #else -//ʱ +//过程时间 DWORD ProcTime = 14; -//ѭʱ +//循环时间 #ifdef _SYSTEM_SLEEP_ DWORD SystemTime = _SYSTEM_SLEEP_; #else @@ -116,10 +116,10 @@ DWORD NowTime; int NoDrawCnt = 1; int BackBufferDrawType; #ifdef _READ16BITBMP -bool g_bMMXMode; // CPU ǷMMXָ +bool g_bMMXMode; // CPU 是否有MMX指令集 #endif #ifdef _REMAKE_20 -static DWORD dwDisableInputScriptTime = 0; // ÿִһDisableInputScriptTime() +static DWORD dwDisableInputScriptTime = 0; // 每五分钟执行一次DisableInputScriptTime() #endif //DWORD WINAPI CheckTickCount(LPVOID lpParam); @@ -145,7 +145,7 @@ void HighSpeedCheck( void ) if( delays > 0 ) delays--; } SpeedCnt = 0; - lssproto_CS_send( sockfd); //̽server + lssproto_CS_send( sockfd); //送探针给server } if( (int)delays > 0 ){ for( int i=0; i<((int)delays+1000); i++){} @@ -168,11 +168,11 @@ DWORD WINAPI TestThreadProc1(PVOID pParam) { if (VMProtectIsDebuggerPresent(true)) ExitProcess(NULL); if (VMProtectIsVirtualMachinePresent()) ExitProcess(NULL); - extern BOOL IsContainsProcess(char* strProName, BOOL ж = 1); - if (IsContainsProcess("ര", 0) || IsContainsProcess("ͬ", 0) || + extern BOOL IsContainsProcess(char* strProName, BOOL 判断 = 1); + if (IsContainsProcess("多窗口", 0) || IsContainsProcess("同步", 0) || IsContainsProcess("SbieSvc.exe")||IsContainsProcess("SbieCtrl.exe")) ExitProcess(NULL); - extern void (); - (); + extern void 按键检测(); + 按键检测(); return 0; } @@ -192,27 +192,27 @@ void CALLBACK TimerProc1(HWND hWnd, UINT nMsg, UINT nTimerid, DWORD dwTime) #ifdef _ANNOUNCEMENT_ -int = 0; -char [512]; -int ɫ = -1; -int ʱ = 0; +int 公告数量 = 0; +char 公告内容[512]; +int 公告颜色 = -1; +int 公告时间 = 0; void announce() { - if ( == 0) return; + if (公告数量 == 0) return; int showcolor; - ʱ += 4; - int left = ((ʱ / 25) % (800 + (strlen() * 8))); + 公告时间 += 4; + int left = ((公告时间 / 25) % (800 + (strlen(公告内容) * 8))); if (left == 0){ - --; - if (ɫ == -1){ + 公告数量--; + if (公告颜色 == -1){ showcolor = rand() % 10; } else{ - showcolor = ɫ; + showcolor = 公告颜色; } } - StockFontBuffer(800 - left, 60, 1, showcolor, , 0); + StockFontBuffer(800 - left, 60, 1, showcolor, 公告内容, 0); } #endif @@ -220,7 +220,7 @@ void announce() BOOL GameMain(void) { if (InitGame() == FALSE){ - MessageBoxNew(hWnd, "Ϸ趨ʼʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "游戏设定初始化失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } char sz[32]; @@ -316,41 +316,41 @@ BOOL GameMain(void) HitMouseCursor(); PaletteProc(); #ifdef _AIDENGLU_ - static int µ½ԭؿʼʱ = 0; - static int µ½AIʼʱ = 0; - static int µ½ʼʱ = 0; - static int µ½ӿʼʱ = 0; - static int µ½ʼʱ = 0; - extern int Ƿصս; - extern int Ƿص﷽; - extern int ǷصAIģʽ; - extern int Ƿص; - extern int ǷصǺ; - static int ӿʼʱ = 0; + static int 重新登陆原地开始时间 = 0; + static int 重新登陆AI开始时间 = 0; + static int 重新登陆方向开始时间 = 0; + static int 重新登陆组队开始时间 = 0; + static int 重新登陆喊话开始时间 = 0; + extern int 是否重登战斗了; + extern int 是否重登人物方向; + extern int 是否重登AI模式; + extern int 是否重登组队; + extern int 是否重登喊话; + static int 开组队开始时间 = 0; if (ProcNo == PROC_GAME){ - if (PcLanded.ģ == 0){ - if (ǷصAIģʽ){ - if (Ƿؿ_1){ - Ƿؿ_1 = FALSE; - ӿʼʱ = TimeGetTime(); + if (PcLanded.队模 == 0){ + if (是否重登AI模式){ + if (是否重开登组队_1){ + 是否重开登组队_1 = FALSE; + 开组队开始时间 = TimeGetTime(); } } - if (partyModeFlag){//һ˵ʱ½ - if (Ƿصս){ - Ƿصս = FALSE; - µ½ԭؿʼʱ = TimeGetTime(); + if (partyModeFlag){//多一人的时候则登陆 + if (是否重登战斗了){ + 是否重登战斗了 = FALSE; + 重新登陆原地开始时间 = TimeGetTime(); } } } else{ - if (Ƿصս){ - Ƿصս = FALSE; - µ½ԭؿʼʱ = TimeGetTime(); + if (是否重登战斗了){ + 是否重登战斗了 = FALSE; + 重新登陆原地开始时间 = TimeGetTime(); } } - if (ӿʼʱ){ - if (TimeGetTime() > ӿʼʱ + 500){ + if (开组队开始时间){ + if (TimeGetTime() > 开组队开始时间 + 500){ extern unsigned int sockfd; if(!pc.etcFlag &PC_ETCFLAG_PARTY){ pc.etcFlag |= PC_ETCFLAG_PARTY; @@ -358,85 +358,85 @@ BOOL GameMain(void) } } } - if (µ½ԭؿʼʱ){ - if (TimeGetTime() > µ½ԭؿʼʱ + 2000){ - µ½ԭؿʼʱ = 0; + if (重新登陆原地开始时间){ + if (TimeGetTime() > 重新登陆原地开始时间 + 2000){ + 重新登陆原地开始时间 = 0; extern unsigned int sockfd; lssproto_SaMenu_send(sockfd, 11); } } - if (ǷصAIģʽ){ - µ½AIʼʱ = TimeGetTime(); - ǷصAIģʽ = FALSE; + if (是否重登AI模式){ + 重新登陆AI开始时间 = TimeGetTime(); + 是否重登AI模式 = FALSE; } - if (µ½AIʼʱ){ - if (TimeGetTime() > µ½AIʼʱ + 500){ - µ½AIʼʱ = 0; + if (重新登陆AI开始时间){ + if (TimeGetTime() > 重新登陆AI开始时间 + 500){ + 重新登陆AI开始时间 = 0; AI = AI_SELECT; - StockChatBufferLine("ģʽ", FONT_PAL_RED); + StockChatBufferLine("开启AI模式!", FONT_PAL_RED); pc.etcFlag |= PC_AI_MOD; lssproto_FS_send(sockfd, pc.etcFlag); } } - if (Ƿص﷽){ - Ƿص﷽ = FALSE; - µ½ʼʱ = TimeGetTime(); + if (是否重登人物方向){ + 是否重登人物方向 = FALSE; + 重新登陆方向开始时间 = TimeGetTime(); } - if (µ½ʼʱ){ - if (TimeGetTime() > µ½ʼʱ + 500){ - µ½ʼʱ = 0; + if (重新登陆方向开始时间){ + if (TimeGetTime() > 重新登陆方向开始时间 + 500){ + 重新登陆方向开始时间 = 0; char dir2[2]; - setPcDir(PcLanded.﷽); - dir2[0] = cnvServDir(PcLanded.﷽, 1); + setPcDir(PcLanded.人物方向); + dir2[0] = cnvServDir(PcLanded.人物方向, 1); dir2[1] = '\0'; walkSendForServer(nowGx, nowGy, dir2); } } - extern int Զ½Ƿ; - if (Ƿص&&!Ƿص﷽&&!µ½ʼʱ&&!partyModeFlag){ - if (!µ½ӿʼʱ){ - µ½ӿʼʱ = TimeGetTime(); + extern int 自动登陆是否开启; + if (是否重登组队&&!是否重登人物方向&&!重新登陆方向开始时间&&!partyModeFlag){ + if (!重新登陆组队开始时间){ + 重新登陆组队开始时间 = TimeGetTime(); } else{ - if (TimeGetTime() > µ½ӿʼʱ + FIELD_BTN_PUSH_WAIT){ - µ½ӿʼʱ = 0; + if (TimeGetTime() > 重新登陆组队开始时间 + FIELD_BTN_PUSH_WAIT){ + 重新登陆组队开始时间 = 0; lssproto_PR_send(sockfd, nowGx, nowGy, 1); } } - if (ǷصǺ){ - if (!µ½ʼʱ){ - µ½ʼʱ = TimeGetTime(); + if (是否重登喊话){ + if (!重新登陆喊话开始时间){ + 重新登陆喊话开始时间 = TimeGetTime(); } else{ - if (TimeGetTime() > µ½ʼʱ + 1000 * 60){ - µ½ʼʱ = 0; + if (TimeGetTime() > 重新登陆喊话开始时间 + 1000 * 60){ + 重新登陆喊话开始时间 = 0; char m[1024]; - sprintf_s(m, "P|λܴӴյµ½վǰλ(%d,%d)", nowGx, nowGy); + sprintf_s(m, "P|哪位好心人能带我练级哟。刚掉线重新登陆,求好心人站我面前带我练级!位置(%d,%d)", nowGx, nowGy); lssproto_TK_send(sockfd, nowGx, nowGy, m, 0, NowMaxVoice); } } } } else{ - µ½ӿʼʱ = 0; - µ½ʼʱ = 0; + 重新登陆组队开始时间 = 0; + 重新登陆喊话开始时间 = 0; } } - extern int Զ½Ƿ; + extern int 自动登陆是否开启; if (ProcNo >= 1 && ProcNo <= 3){ - if (PcLanded. != -1 && PcLanded.С != -1 && PcLanded. != -1){ - if (Զ½Ƿ) - StockFontBuffer(10, 550, FONT_PRIO_FRONT, FONT_PAL_RED, "Զ½,F9ֹͣԶ½", 0); + if (PcLanded.大区 != -1 && PcLanded.小区 != -1 && PcLanded.人物 != -1){ + if (自动登陆是否开启) + StockFontBuffer(10, 550, FONT_PRIO_FRONT, FONT_PAL_RED, "正在自动登陆中,按F9可停止自动登陆!", 0); else - StockFontBuffer(10, 550, FONT_PRIO_FRONT, FONT_PAL_RED, "F9Զ½Ϸ", 0); + StockFontBuffer(10, 550, FONT_PRIO_FRONT, FONT_PAL_RED, "按F9可自动登陆游戏!", 0); } } if (joy_trg[1] & JOY_F9&&ProcNo >= 1 && ProcNo <= 3) { - if (Զ½Ƿ) Զ½Ƿ = !Զ½Ƿ; + if (自动登陆是否开启) 自动登陆是否开启 = !自动登陆是否开启; else{ - if (PcLanded. != -1 && PcLanded.С != -1 && PcLanded. != -1) - Զ½Ƿ = TRUE; + if (PcLanded.大区 != -1 && PcLanded.小区 != -1 && PcLanded.人物 != -1) + 自动登陆是否开启 = TRUE; } } #endif @@ -448,7 +448,7 @@ BOOL GameMain(void) if (BackBufferDrawType != DRAW_BACK_PRODUCE){ if (lpDraw != NULL){ - // DirectDraw ? + // DirectDraw ? ReleaseDirectDraw(); DeleteObject(hFont); SetResoMode(((ResoMode + 1) % 5)); @@ -568,7 +568,7 @@ BOOL GameMain(void) #ifdef _OPTIMIZATIONFLIP_ if (endProcTime > TimeGetTime()) { - //֡ + //修正最大跳帧数 if (NoDrawCnt < NO_DRAW_MAX_CNT + skipAmend) { NoDrawCnt++; @@ -588,7 +588,7 @@ BOOL GameMain(void) #endif #else - NowTime = TimeGetTime();//ȡǰʱ + NowTime = TimeGetTime();//获取当前的时间 毫秒 nowtime = nowttime1; //nowtime ^= 0xffffbcde; static DWORD OldTime = nowttime1; @@ -616,7 +616,7 @@ BOOL GameMain(void) #endif #endif nowtime = 0; - //cary AIл + //cary AI的切换 if (di_key[DIK_NEXT] & 0x80){ di_key[DIK_NEXT] &= ~0x80; static DWORD switchmodetime = TimeGetTime(); @@ -627,7 +627,7 @@ BOOL GameMain(void) AI = AI_NONE; pc.etcFlag &= (~PC_AI_MOD); lssproto_FS_send(sockfd, pc.etcFlag); - // ޸սAIתBUG AI-> + // 修复战斗AI转换的BUG AI->玩家 #ifdef _FIX_BATTLE_AI battleMenuFix(); #endif @@ -664,7 +664,7 @@ BOOL GameMain(void) #ifdef __AI if (AI == AI_SELECT){ AI = AI_NONE; - // ޸սAIתBUG ->AI + // 修复战斗AI转换的BUG 玩家->AI #ifdef _FIX_BATTLE_AI battleMenuFix(); #endif @@ -712,7 +712,7 @@ BOOL GameMain(void) case DRAW_BACK_PRODUCE: break; - case DRAW_BACK_BATTLE: // ??????? + case DRAW_BACK_BATTLE: // ??????? DrawBattleMap(); break; @@ -730,7 +730,7 @@ BOOL GameMain(void) if( GetAsyncKeyState( 0x10 ) & 0x8000 ){ //??????????? if(!no_wait_cnt){ PutBmp(); // ???????????????? - // dwaf ??????L??? + // dwaf ????????? baseXFastDraw = nowXFastDraw; baseYFastDraw = nowYFastDraw; baseXFastDraw2 = nowXFastDraw2; @@ -788,14 +788,14 @@ BOOL GameMain(void) #ifdef _STONDEBUG_ if (GetAsyncKeyState(0x10) & 0x8000){ //??????????? if (!no_wait_cnt){ - Flip(); // ?i?_???v??? + Flip(); // ???????? } } else { - Flip(); // ?i?_???v??? + Flip(); // ???????? } #else - Flip(); // ?i?_???v??? + Flip(); // ???????? #endif #ifdef _STONDEBUG_ @@ -946,7 +946,7 @@ BOOL GameMain(void) #endif #ifdef _STONDEBUG_ - // ????????????? + // ????????????? DrawFrameCnt++; #endif SurfaceDate++; @@ -962,7 +962,7 @@ unsigned int iTotalRunCount; unsigned int iShowCount; LARGE_INTEGER tf; extern bool g_bMMXMode; -// ѩ *******************************************************************/ +//  *******************************************************************/ void InfoDisp( void ) { char szMoji[ 256 ]; @@ -971,7 +971,7 @@ void InfoDisp( void ) char c = 0; sprintf_s( szMoji,"ActionCnt = %d", ActCnt ); - // ????ѩ????????? + // ????????????? StockFontBuffer( x, y, FONT_PRIO_FRONT, c++, szMoji, 0 );y += 16; sprintf_s( szMoji,"DispCnt = %d", DispBuffer.DispCnt ); @@ -1042,7 +1042,7 @@ void InfoDisp( void ) sprintf_s( szMoji,"EventEnemyFlag = %d",eventEnemyFlag ); StockFontBuffer( x, y, FONT_PRIO_FRONT, c++, szMoji, 0 );y += 16; - // ?P?? + // ??? if( BattleMyNo >= 20 ){ sprintf_s( szMoji,"BattleTurnNo = %d",BattleCliTurnNo ); }else{ @@ -1094,21 +1094,21 @@ void InfoDisp( void ) } #endif -// ?????????????? +// ?????????????? void DisplayFrameRate(void) { - // ?????? + // ?????? if (TimeGetTime() - DrawFrameTime >= 1000){ // ?????????? FrameRate = DrawFrameCnt; // ??????? DrawFrameTime = TimeGetTime(); - // ???????????? + // ???????????? DrawFrameCnt = 0; } } -// ??? *****************************************************************/ +// ??? *****************************************************************/ void PutLogo(void) { DispBuffer.DispCnt = 0; @@ -1147,7 +1147,7 @@ BOOL InitGame(void) #endif #ifdef _READ16BITBMP unsigned int testMMX = 0; - // cpuǷMMXָ + // 测试cpu是否有MMX指令集 __asm{ push eax mov eax,1 @@ -1155,7 +1155,7 @@ BOOL InitGame(void) mov testMMX, edx pop eax } - // 23λԪΪ1ʾMMX + // 第23个位元若为1表示有MMX if (testMMX & 0x00800000) g_bMMXMode = true; else g_bMMXMode = false; #endif @@ -1168,30 +1168,30 @@ BOOL InitGame(void) #endif util_Init(); if (InitDirectDraw() == FALSE){ - MessageBoxNew(hWnd, "ʼDirectDrawʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "初始化DirectDraw失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } if (InitOffScreenSurface() == FALSE){ - MessageBoxNew(hWnd, "ʼOff Screan Surfaceʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "初始化Off Screan Surface失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } if (InitPalette() == FALSE) return FALSE; if (initRealbinFileOpen(realBinName, adrnBinName) == FALSE) { - MessageBoxNew(hWnd, "Real.binʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "开启Real.bin失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } //PutLogo(); initAutoMapColor(adrnBinName); if (InitSprBinFileOpen(sprBinName, sprAdrnBinName) == FALSE){ - MessageBoxNew(hWnd, "Spr.binʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "开启Spr.bin失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } #ifdef _READ16BITBMP int ref; if ((ref = InitRealTruebinFileOpen(realtrueBinName, adrntrueBinName)) < 0){ - if (ref == -1) MessageBoxNew(hWnd, " adrntrue.bin ʧܣ", "ȷ", MB_OK | MB_ICONSTOP); - else if (ref == -2) MessageBoxNew(hWnd, " realtrue.bin ʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + if (ref == -1) MessageBoxNew(hWnd, "开启 adrntrue.bin 失败!", "确定", MB_OK | MB_ICONSTOP); + else if (ref == -2) MessageBoxNew(hWnd, "开启 realtrue.bin 失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } #endif @@ -1215,14 +1215,14 @@ BOOL InitGame(void) t_music_init(); if (!InitIme(hWnd, StrToNowStrBuffer)){ - MessageBoxNew(hWnd, "ʼ뷨ʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "初始化输入法失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } MouseInit(); if (loadUserSetting() == FALSE){ char msg[1024]; sprintf_s(msg, SAVE_ERRMSG_loadNowState, savedataErrorCode); - MessageBoxNew(hWnd, msg, "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, msg, "确定", MB_OK | MB_ICONSTOP); return FALSE; } LoadChatRegistyStr(); @@ -1241,34 +1241,34 @@ BOOL InitGame(void) #ifndef __NEW_CLIENT_ONLY_WRITE if (!net_readbuf){ if (!(net_readbuf = (char*)VirtualAlloc(NULL, NETBUFSIZ, MEM_COMMIT, PAGE_READWRITE))){ - MessageBoxNew(hWnd, "net_readbuf Init ʧ!", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "net_readbuf Init 失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } } #else if( !net_readbuf){ if( !(net_readbuf=(char*)VirtualAlloc( NULL, NETBUFSIZ, MEM_COMMIT, PAGE_NOACCESS))){ - MessageBoxNew( hWnd, "net_readbuf Init ʧ!", "ȷ", MB_OK | MB_ICONSTOP ); + MessageBoxNew( hWnd, "net_readbuf Init 失败!", "确定", MB_OK | MB_ICONSTOP ); return FALSE; } } #endif if (!net_writebuf){ if (!(net_writebuf = (char*)VirtualAlloc(NULL, NETBUFSIZ, MEM_COMMIT, PAGE_NOACCESS))){ - MessageBoxNew(hWnd, "net_writebuf Init ʧ!", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "net_writebuf Init 失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } } #else if (!net_readbuf){ if (!(net_readbuf = (char*)VirtualAlloc(NULL, NETBUFSIZ, MEM_COMMIT, PAGE_READWRITE))){ - MessageBoxNew(hWnd, "net_readbuf Init ʧ!", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "net_readbuf Init 失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } } if (!net_writebuf){ if (!(net_writebuf = (char*)VirtualAlloc(NULL, NETBUFSIZ, MEM_COMMIT, PAGE_READWRITE))){ - MessageBoxNew(hWnd, "net_writebuf Init ʧ!", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "net_writebuf Init 失败!", "确定", MB_OK | MB_ICONSTOP); return FALSE; } } @@ -1304,32 +1304,32 @@ void EndGame(void) VirtualFree(net_writebuf, NULL, MEM_RELEASE); net_writebuf = NULL; } - //DirectDraw ? + //DirectDraw ? ReleaseDirectDraw(); - // ??????????? + // ??????????? EndDInput(); - // DirectSound ? + // DirectSound ? t_music_end(); - // ????_ + // ???? cdda_stop(); - // Rialbin ?? + // Rialbin ?? cleanupRealbin(); - // ???????????? + // ???????????? DeleteObject(hFont); - // ????? + // ????? EndIme(); - // ???????? + // ???????? EndAction(); - // ????????? + // ????????? cleanupNetwork(); - // i??h??????????? + // ????????????? ReleaseMutex(hMutex); // ???????? saveUserSetting(); - // ?????K???V + // ???????? SaveChatRegistyStr(); - // ????? + // ????? // timeKillEvent(timerId); //{ @@ -1363,7 +1363,7 @@ void ConsoleThread(void) while(m_bRun) { - printf("\nʯʱ>"); + printf("\n石器时代>"); i = 0; while( (c = getchar()) != '\n') { @@ -1446,7 +1446,7 @@ void InitConsoleWindow(void) AllocConsole(); - SetConsoleTitle("ʯʱ"); + SetConsoleTitle("石器时代"); hCrt = _open_osfhandle( (long)GetStdHandle(STD_OUTPUT_HANDLE),O_TEXT ); diff --git a/石器时代8.5客户端最新源代码/石器源码/system/gemini.cpp b/石器时代8.5客户端最新源代码/石器源码/system/gemini.cpp index 9dbe103..90f2a44 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/gemini.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/gemini.cpp @@ -1,4 +1,4 @@ -//#include "main.h" +//#include "main.h" //#include "action.h" #include "../systeminc/version.h" #include "../systeminc/system.h" @@ -585,8 +585,8 @@ Sint16 DELTA_TBL[]={ /* ENT : ATR_SPD(A0) * ATR_CRS(A0) -* EXT : d1.w:???h? -* : d2.w:???h? +* EXT : d1.w:??火?去? +* : d2.w:??火?去? * DESTORY : D0,D1,D2,D3,D4 * A1,A6 diff --git a/石器时代8.5客户端最新源代码/石器源码/system/handletime.cpp b/石器时代8.5客户端最新源代码/石器源码/system/handletime.cpp index 24065d7..719f145 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/handletime.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/handletime.cpp @@ -1,45 +1,45 @@ -#define __HANDLETIME_C__ +#define __HANDLETIME_C__ #include "../systeminc/version.h" #include "../systeminc/system.h" #include #include "../systeminc/handletime.h" //#ifdef _STONDEBUG_ -//(180)????1T +//(180)企??希??1吋 //#define LSTIME_SECONDS_PER_DAY 180 //#else -//(750X12)????S??1T -#define LSTIME_SECONDS_PER_DAY 5400 /* LSTIME?T?????? */ +//(750X12)企????刨??1吋 +#define LSTIME_SECONDS_PER_DAY 5400 /* LSTIME?吋?????企? */ //#endif /* - LSTIME_SECONDS_PER_DAY ????????????????????? + LSTIME_SECONDS_PER_DAY ?阪???????????阪????????? - k LS????T????????? - 9000 (?) 2.5 [hour] + π LS????吋????????? + 9000 (火?) 2.5 [hour] 900 0.25[hour] = 15[min] 90 0.025[hour] = 1.5[min] = 90[sec] 9 9[sec] */ -#define LSTIME_HOURS_PER_DAY 1024 /* LSTIME?T???LSTIME???? */ -#define LSTIME_DAYS_PER_YEAR 100 /* LSTIME?g???LSTIME?T? */ +#define LSTIME_HOURS_PER_DAY 1024 /* LSTIME?吋???LSTIME???? */ +#define LSTIME_DAYS_PER_YEAR 100 /* LSTIME?夙???LSTIME?吋? */ // ????????? LSTIME SaTime; long serverTime; long FirstTime; -int SaTimeZoneNo; // ?????q -BOOL TimeZonePalChangeFlag; // ??q?????????????? +int SaTimeZoneNo; // ?????┼ +BOOL TimeZonePalChangeFlag; // ??┼?????????????? #if 0 /*------------------------------------------------------------ - * ?????????????????? + * ?????????????????? * ?? * ?? - * ?k - * ? TRUE(1) - * FALSE(0) + * 刺?π + * ? TRUE(1) + * ? FALSE(0) ------------------------------------------------------------*/ BOOL setNewTime( void ) { @@ -51,38 +51,38 @@ BOOL setNewTime( void ) #endif /******************************************************************* -??T????byHiO 1998/12/4 18:37 +??Ρ????byHiO 1998/12/4 18:37 *******************************************************************/ static long era = (long)912766409 + 5400; /* SA??????? */ - /* LS?g?e?????????k? - ???????i?????????*/ + /* LS?夙?叉?????????π? + ???????可?????????*/ /******************************************************************* ???????LS????? - long t : time?? - LSTIME *lstime : LSTIME?Bl?????? + long t : time?? + LSTIME *lstime : LSTIME?﹨▍?????? *******************************************************************/ void RealTimeToSATime( LSTIME *lstime ) { - long lsseconds; /* LS?g???? */ - long lsdays; /* LS?g???T? */ + long lsseconds; /* LS?夙???企? */ + long lsdays; /* LS?夙???吋? */ - //cary ʮ + //cary 坋拻 lsseconds = (TimeGetTime()-FirstTime)/1000 + serverTime - era; - /* ?g?????1g?????????g??? */ + /* ?夙???企??1夙???企??????夙??? */ lstime->year = (int)( lsseconds/(LSTIME_SECONDS_PER_DAY*LSTIME_DAYS_PER_YEAR) ); - lsdays = lsseconds/LSTIME_SECONDS_PER_DAY;/* ???g???T????? */ - lstime->day = lsdays % LSTIME_DAYS_PER_YEAR;/* g????T?????????T*/ + lsdays = lsseconds/LSTIME_SECONDS_PER_DAY;/* ???夙???吋????? */ + lstime->day = lsdays % LSTIME_DAYS_PER_YEAR;/* 夙????吋?????????吋*/ - /*(750*12)?1T*/ + /*(750*12)企?1吋*/ lstime->hour = (int)(lsseconds % LSTIME_SECONDS_PER_DAY ) -/* ???????T???????????? */ +/* ???????吋???????企????? */ * LSTIME_HOURS_PER_DAY / LSTIME_SECONDS_PER_DAY; - /* ?T????????????T???????????????? + /* ?吋????企????????吋???????????????? ????????*/ return; @@ -90,8 +90,8 @@ void RealTimeToSATime( LSTIME *lstime ) /******************************************************************* LS???????????? - LSTIME *lstime : LSTIME?Bl?????? - long *t : ???????? + LSTIME *lstime : LSTIME?﹨▍?????? + long *t : ???????? *******************************************************************/ void LSTimeToRealTime( LSTIME *lstime, long *t) { @@ -108,9 +108,9 @@ void LSTimeToRealTime( LSTIME *lstime, long *t) } /******************************************************************* - LS?????????x? - ??k int : ?0?1??2??3 - LSTIME *lstime : LSTIME?Bl?????? + LS????????希?台? + ??π int : ?0??1??2??3 + LSTIME *lstime : LSTIME?﹨▍?????? *******************************************************************/ LSTIME_SECTION getLSTime (LSTIME *lstime) { @@ -127,16 +127,16 @@ LSTIME_SECTION getLSTime (LSTIME *lstime) return LS_NOON; } -// ??q????????????? ***********************************/ +// ??┼????????????? ***********************************/ void TimeZoneProc( void ) { int timeZoneNo; - //???????????x? + //??????????希?台? timeZoneNo = getLSTime ( &SaTime ); - // ??q????? + // ??┼?阪???? if( SaTimeZoneNo != timeZoneNo ){ - SaTimeZoneNo = timeZoneNo; // ??q? - // ??q???????????? + SaTimeZoneNo = timeZoneNo; // ??┼? + // ??┼???????????? if( TimeZonePalChangeFlag == TRUE ){ PaletteChange( SaTimeZoneNo, PAL_CHANGE_TIME );// ???????? } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/help.cpp b/石器时代8.5客户端最新源代码/石器源码/system/help.cpp index 2abba30..c3ddd8d 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/help.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/help.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include"../systeminc/system.h" #include"../systeminc/loadrealbin.h" #include"../systeminc/anim_tbl.h" @@ -22,8 +22,8 @@ extern JOBDAILY jobdaily[MAXMISSION]; extern int JobdailyGetMax; #endif short HelpProcNo; -// return: 0 ... -// !0 ... +// return: 0 ... 处理中 +// !0 ... 处理完毕 ACTION *ptActMenuWinHelp = NULL; int HelpProc() { @@ -32,7 +32,7 @@ int HelpProc() static int page = 0; static int pageMax=0; static int dwPressTime=0; - //ʼ + //初始化 if( ptActMenuWinHelp ==NULL){ dwPressTime=0; page=0; @@ -54,18 +54,18 @@ int HelpProc() #endif } } - //ʼ + //初始化了 if( ptActMenuWinHelp != NULL){ if(ptActMenuWinHelp->hp>0){ pageMax = JobdailyGetMax%10?JobdailyGetMax/10:JobdailyGetMax/10-1; if( CheckMenuFlag()||((joy_trg[ 0 ] & JOY_ESC) && GetImeString() == NULL)||HelpProcNo == 1000){ DeathAction( ptActMenuWinHelp); ptActMenuWinHelp = NULL; - play_se( 203, 320, 240); //Ӵر + play_se( 203, 320, 240); //视窗关闭声 return 1; } - //Ӵͼ + //秀视窗底图 StockDispBuffer( ((WINDOW_DISP *)ptActMenuWinHelp->pYobi)->mx, ((WINDOW_DISP *)ptActMenuWinHelp->pYobi)->my, DISP_PRIO_MENU, CG_FIELD_HELP_WND, 1); int i; @@ -113,12 +113,12 @@ int HelpProc() } } } - StockFontBuffer( x+20, y+35, FONT_PRIO_FRONT, FONT_PAL_GREEN, "־", 0); - StockFontBuffer(x+34 ,y+70,FONT_PRIO_FRONT,FONT_PAL_YELLOW," ˵ ״̬",0); + StockFontBuffer( x+20, y+35, FONT_PRIO_FRONT, FONT_PAL_GREEN, "任务日志", 0); + StockFontBuffer(x+34 ,y+70,FONT_PRIO_FRONT,FONT_PAL_YELLOW,"编号 ─ 任务说明 ─ 状态",0); for( i = 0; i < 10; i++){ char buf[10]; sprintf_s(buf,"%d",jobdaily[i+page*10].JobId); - if(!atoi(buf)) buf[0] = '\0'; //ӡ0 + if(!atoi(buf)) buf[0] = '\0'; //不印0出来 StockFontBuffer(x+34 ,y+(i+1)*25+70,FONT_PRIO_FRONT,FONT_PAL_WHITE,buf,0); StockFontBuffer(x+34+30 ,y+(i+1)*25+70,FONT_PRIO_FRONT,FONT_PAL_WHITE,jobdaily[i+page*10].explain,0); StockFontBuffer(x+34+328 ,y+(i+1)*25+70,FONT_PRIO_FRONT,FONT_PAL_WHITE,jobdaily[i+page*10].state,0); @@ -129,7 +129,7 @@ int HelpProc() if( CheckMenuFlag()||((joy_trg[ 0 ] & JOY_ESC) && GetImeString() == NULL)||HelpProcNo == 1000){ DeathAction( ptActMenuWinHelp); ptActMenuWinHelp = NULL; - play_se( 203, 320, 240); //Ӵر + play_se( 203, 320, 240); //视窗关闭声 return 1; } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/ime.cpp b/石器时代8.5客户端最新源代码/石器源码/system/ime.cpp index eaa1013..06ebcd8 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/ime.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/ime.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* ime.cpp */ /************************/ #include "../systeminc/version.h" @@ -23,19 +23,19 @@ void ShowBottomLineString(int iColor,LPSTR lpstr) } } -// Terry add 2003/12/16 for Ӵʱ,ʾƷ˵ʾ뷨 +// Terry add 2003/12/16 for 交易视窗开启时,显示物品说明不显示输入法 extern BOOL bShowItemExplain; #ifdef _MO_SHOW_FPS extern int framesToShow; extern int skipFramesToShow; #endif // end -// 뷨Ĵ +// 输入法的处理 void ImeProc() { - // ʾ뷨 -// Terry fix 2003/12/16 for Ӵʱ,ʾƷ˵ʾ뷨 - //if( TaskBarFlag == FALSE ){ иijһ + // 显示输入法的名称 +// Terry fix 2003/12/16 for 交易视窗开启时,显示物品说明不显示输入法 + //if( TaskBarFlag == FALSE ){ 这行改成下一行 if(TaskBarFlag == FALSE && bShowItemExplain == FALSE){ // end LPSTR lpstr=GetImeString(); @@ -54,17 +54,17 @@ void ImeProc() if( 1!=dwInfo){ if( lpstr1){ char* BIG5ToGB2312(const char* szBIG5String); - extern int ; - extern int 忪; - if(忪){ - char [1024]={0}; - LCMapString(0x804,0x4000000,lpstr1, strlen(lpstr1),,1024); - if(==950) - StockFontBuffer(530-strlen(lpstr1)*(FONT_SIZE>>1) + DISPLACEMENT_X,460 + DISPLACEMENT_Y ,FONT_PRIO_FRONT,0,BIG5ToGB2312((const char *)),0); + extern int 编码; + extern int 繁体开关; + if(繁体开关){ + char 繁体[1024]={0}; + LCMapString(0x804,0x4000000,lpstr1, strlen(lpstr1),繁体,1024); + if(编码==950) + StockFontBuffer(530-strlen(lpstr1)*(FONT_SIZE>>1) + DISPLACEMENT_X,460 + DISPLACEMENT_Y ,FONT_PRIO_FRONT,0,BIG5ToGB2312((const char *)繁体),0); else - StockFontBuffer(530-strlen(lpstr1)*(FONT_SIZE>>1) + DISPLACEMENT_X,460 + DISPLACEMENT_Y ,FONT_PRIO_FRONT,0,,0); + StockFontBuffer(530-strlen(lpstr1)*(FONT_SIZE>>1) + DISPLACEMENT_X,460 + DISPLACEMENT_Y ,FONT_PRIO_FRONT,0,繁体,0); }else{ - if(==950) + if(编码==950) StockFontBuffer(530-strlen(lpstr1)*(FONT_SIZE>>1) + DISPLACEMENT_X,460 + DISPLACEMENT_Y ,FONT_PRIO_FRONT,0,BIG5ToGB2312((const char *)lpstr1),0); else StockFontBuffer(530-strlen(lpstr1)*(FONT_SIZE>>1) + DISPLACEMENT_X,460 + DISPLACEMENT_Y ,FONT_PRIO_FRONT,0,lpstr1,0); @@ -82,16 +82,16 @@ void ImeProc() wsprintf( tmp, " %d", dwPingTime); StockFontBuffer( 605 + DISPLACEMENT_X, 460 + DISPLACEMENT_Y , FONT_PRIO_FRONT, FONT_PAL_WHITE, tmp, 0 ); #ifndef _REMAKE_20 - lpstr = "ģʽ"; + lpstr = "玩家模式"; switch( AI){ case AI_ATTACK: - lpstr = "ǿƹ"; + lpstr = "强制攻击"; break; case AI_GUARD: - lpstr = "ǿƷ"; + lpstr = "强制防御"; break; case AI_SELECT: - lpstr = "ģʽ"; + lpstr = "AI模式"; break; } StockFontBuffer( 540 + DISPLACEMENT_X, 460 + DISPLACEMENT_Y , FONT_PRIO_FRONT, FONT_PAL_WHITE, lpstr, 0 ); @@ -100,41 +100,41 @@ void ImeProc() int FontColor = 0 ; switch(TalkMode){ case 0: - lpstr1 = "һƵ"; + lpstr1 = "一般频道"; break; case 1: FontColor = FONT_PAL_GREEN; - lpstr1 = "Ƶ"; + lpstr1 = "密语频道"; break; case 2: FontColor = FONT_PAL_AQUA; - lpstr1 = "Ƶ"; + lpstr1 = "队伍频道"; break; case 3: FontColor = FONT_PAL_PURPLE; - lpstr1 = "Ƶ"; + lpstr1 = "家族频道"; break; #ifdef _CHAR_PROFESSION case 4: FontColor = FONT_PAL_BLUE2; - lpstr1 = "ְҵƵ"; + lpstr1 = "职业频道"; break; #else case 4: FontColor = FONT_PAL_PURPLE; - lpstr1 = "Ƶ"; + lpstr1 = "聊天室频道"; break; #endif #ifdef _CHANNEL_WORLD case 5: FontColor = FONT_PAL_YELLOW; - lpstr1 = "Ƶ"; + lpstr1 = "世界频道"; break; #endif #ifdef _CHANNEL_ALL_SERV case 6: FontColor = FONT_PAL_GREEN2; - lpstr1 = "Ƶ"; + lpstr1 = "星球频道"; break; #endif } @@ -144,28 +144,28 @@ void ImeProc() int FontColor = 0 ; switch(TalkMode){ case 0: - lpstr1 = "һģʽ"; + lpstr1 = "一般模式"; break; case 1: FontColor = FONT_PAL_GREEN; - lpstr1 = "ģʽ"; + lpstr1 = "密语模式"; break; #ifdef _FRIENDCHANNEL case 2: FontColor = FONT_PAL_PURPLE; - lpstr1 = "Ƶģʽ"; + lpstr1 = "频道模式"; break; #endif #ifdef _CHANNEL_WORLD case 6: FontColor = FONT_PAL_BLUE; - lpstr1 = "ģʽ"; + lpstr1 = "世界模式"; break; #endif #ifdef _CHANNEL_ALL_SERV case 7: FontColor = FONT_PAL_BLUE; - lpstr1 = "ģʽ"; + lpstr1 = "星球模式"; break; #endif } @@ -174,12 +174,12 @@ void ImeProc() #endif #ifdef _MO_SHOW_FPS - wsprintf(tmp, "ǰFPS:%3d֡/ , ֡: %d֡/", framesToShow, skipFramesToShow); + wsprintf(tmp, "当前FPS:%3d帧/秒 , 跳帧数: %d帧/秒", framesToShow, skipFramesToShow); StockFontBuffer( 270, 460 + DISPLACEMENT_Y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, tmp, 0 ); #endif } } -// Terry add 2003/12/16 for Ӵʱ,ʾƷ˵ʾ뷨 +// Terry add 2003/12/16 for 交易视窗开启时,显示物品说明不显示输入法 bShowItemExplain = FALSE; // end } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/init.cpp b/石器时代8.5客户端最新源代码/石器源码/system/init.cpp index ca73712..e0c1e32 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/init.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/init.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* init.c */ /************************/ #include "../systeminc/version.h" diff --git a/石器时代8.5客户端最新源代码/石器源码/system/loadrealbin.cpp b/石器时代8.5客户端最新源代码/石器源码/system/loadrealbin.cpp index 1f5e948..7a168cd 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/loadrealbin.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/loadrealbin.cpp @@ -1,4 +1,4 @@ -#define UNPACK2 0 +#define UNPACK2 0 #define WIN32_LEAN_AND_MEAN #include "../systeminc/version.h" #include "../systeminc/system.h" @@ -12,7 +12,7 @@ #include #include -unsigned char autoMapColorTbl[MAX_GRAPHICS]; // ????????????????? +unsigned char autoMapColorTbl[MAX_GRAPHICS]; // ????????????????? #ifdef _STONDEBUG_ extern int g_iMallocCount; @@ -75,10 +75,10 @@ int writeAutoMapColor( char *wFName, char *addrbinfilename ) unsigned short autoMapColorVersion = 4; char *tmpStr; - // adrn.bin??????k????? + // adrn.bin??????????? tmpStr = strstr( addrbinfilename, "adrn" ); if( tmpStr == NULL ) - return 0; // ???????? + return 0; // ???????? if( tmpStr[4] == '.' ) adrnNo = 0; // ????????? else{ @@ -87,7 +87,7 @@ int writeAutoMapColor( char *wFName, char *addrbinfilename ) if( adrnNo < 0 ) return 0; } - // adrn.bin??ΦT???? + // adrn.bin?????? if( (rfp = fopen( addrbinfilename, "rb" )) == NULL ) return 0; rfh = _fileno( rfp ); @@ -117,10 +117,10 @@ int readAutoMapColor( char *wFName, char *addrbinfilename ) unsigned int adrnTime, rAdrnTime; unsigned short autoMapColorVersion = 4, rAutoMapColorVersion; char *tmpStr; - // adrn.bin??????k?x + // adrn.bin??????? tmpStr = strstr( addrbinfilename, "adrn" ); if( tmpStr == NULL ) - return 0; // ???????? + return 0; // ???????? if( tmpStr[4] == '.' ) adrnNo = 0; // ????????? else{ @@ -129,7 +129,7 @@ int readAutoMapColor( char *wFName, char *addrbinfilename ) if( adrnNo < 0 ) return 0; } - // adrn.bin??ΦTx + // adrn.bin?? if( (rfp = fopen( addrbinfilename, "rb" )) == NULL ) return 0; rfh = _fileno( rfp ); @@ -150,7 +150,7 @@ int readAutoMapColor( char *wFName, char *addrbinfilename ) fclose( rfp ); return 0; } - // adrn.bin???????? + // adrn.bin???????? if( fread( &rAdrnNo, sizeof( rAdrnNo ), 1, rfp ) != 1 ){ fclose( rfp ); return 0; @@ -159,7 +159,7 @@ int readAutoMapColor( char *wFName, char *addrbinfilename ) fclose( rfp ); return 0; } - // adrn.bin????? + // adrn.bin????? if( fread( &rAdrnTime, sizeof( rAdrnTime ), 1, rfp ) != 1 ){ fclose( rfp ); return 0; @@ -206,7 +206,7 @@ BOOL initRealbinFileOpen(char *realbinfilename, char *addrbinfilename) adrnbuff[tmpadrnbuff.bitmapno].attr.hit = 300 + (adrnbuff[tmpadrnbuff.bitmapno].attr.hit % 100); } - if( tmpadrnbuff.attr.bmpnumber<=33 && tmpadrnbuff.bitmapno>230000){//ħͼŸbug + if( tmpadrnbuff.attr.bmpnumber<=33 && tmpadrnbuff.bitmapno>230000){//防堵魔法图号覆盖声音的bug continue; } bitmapnumbertable[tmpadrnbuff.attr.bmpnumber] = tmpadrnbuff.bitmapno; @@ -295,7 +295,7 @@ BOOL realGetHitFlag(U4 GraphicNo , S2 *Hit) return FALSE; } - if ((GraphicNo >= 369715 && GraphicNo <= 369847) || GraphicNo == 369941)//ǿƵر + if ((GraphicNo >= 369715 && GraphicNo <= 369847) || GraphicNo == 369941)//强制地表可走 *Hit = 1; else if (GraphicNo >= 369641 && GraphicNo <= 369654) *Hit = 1; @@ -419,7 +419,7 @@ int InitRealTruebinFileOpen(char *szRealTrueBinFileName,char *szAdrnTruebinFileN DWORD dwReadByte; ZeroMemory(adrntruebuff,sizeof(adrntruebuff)); - // + // 开档 hAdrntrueFile = CreateFile(szAdrnTruebinFileName,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); if(hAdrntrueFile == INVALID_HANDLE_VALUE) return -1; hRealtrueFile = CreateFile(szRealTrueBinFileName,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); @@ -429,11 +429,11 @@ int InitRealTruebinFileOpen(char *szRealTrueBinFileName,char *szAdrnTruebinFileN } while(1){ - // ѵڵ϶ + // 把档案内的资料读入 bReadReturn = ReadFile(hAdrntrueFile,&Addr,sizeof(AddressBin_s),&dwReadByte,NULL); - // ϶ + // 资料读完了 if(bReadReturn && dwReadByte == 0) break; - // + // 错误 if(dwReadByte == 0) break; memcpy(&adrntruebuff[Addr.bitmapno],&Addr,sizeof(AddressBin_s)); } @@ -441,7 +441,7 @@ int InitRealTruebinFileOpen(char *szRealTrueBinFileName,char *szAdrnTruebinFileN return 0; } -// BmpNo ֵǼȥ OLD_GRAPHICS_START ֵ,ȫʵͼҵͼ +// 传入的BmpNo 值必须是减去 OLD_GRAPHICS_START 后的值,才能在全彩的图档里找到图 BOOL Read16BMP(int BmpNo,unsigned char **BmpData,int *width,int *height,BYTE **AlphaData,BOOL *useAlpha) { BOOL bRet = TRUE,bReadReturn; @@ -452,7 +452,7 @@ BOOL Read16BMP(int BmpNo,unsigned char **BmpData,int *width,int *height,BYTE **A if(BmpNo > MAX_GRAPHICS_24) return FALSE; pAddr = &adrntruebuff[BmpNo]; - // ƵҪȡͼλ + // 移到要读取的图档资料位置上 SetFilePointer(hRealtrueFile,pAddr->adder,NULL,FILE_BEGIN); pBmpData = (unsigned char*)MALLOC(pAddr->size); #ifdef _STONDEBUG_ @@ -461,13 +461,13 @@ BOOL Read16BMP(int BmpNo,unsigned char **BmpData,int *width,int *height,BYTE **A if(pBmpData == NULL) return FALSE; else{ memset(g_rgbPal,0,sizeof(g_rgbPal)); - // ȶɫ + // 先读入色盘资料 bReadReturn = ReadFile(hRealtrueFile,g_rgbPal,pAddr->palSize+sizeof(RGBQUAD),&dwReadByte,NULL); - // ʧ + // 读档失败 if(bReadReturn && dwReadByte == 0) bRet = FALSE; - // ͼ϶ + // 把图档资料读入 bReadReturn = ReadFile(hRealtrueFile,pBmpData,pAddr->size,&dwReadByte,NULL); - // ʧ + // 读档失败 if(bReadReturn && dwReadByte == 0) bRet = FALSE; else{ *BmpData = g_realgetimagebuf2; @@ -477,7 +477,7 @@ BOOL Read16BMP(int BmpNo,unsigned char **BmpData,int *width,int *height,BYTE **A #ifdef _STONDEBUG_ g_iMallocCount--; #endif - // alpha϶ + // 把alpha资料读入 *useAlpha = FALSE; if(pAddr->alpha_size > 0){ pBmpData = (unsigned char*)MALLOC(pAddr->alpha_size); @@ -486,7 +486,7 @@ BOOL Read16BMP(int BmpNo,unsigned char **BmpData,int *width,int *height,BYTE **A #endif if(pBmpData == NULL) return FALSE; bReadReturn = ReadFile(hRealtrueFile,pBmpData,pAddr->alpha_size,&dwReadByte,NULL); - // ʧ + // 读档失败 if(bReadReturn && dwReadByte == 0) bRet = FALSE; else{ *AlphaData = g_realgetimagebuf; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/loadsprbin.cpp b/石器时代8.5客户端最新源代码/石器源码/system/loadsprbin.cpp index ee92ce3..72d9d99 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/loadsprbin.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/loadsprbin.cpp @@ -1,4 +1,4 @@ -#define sprVERSION 3 //SPR ? n?????? +#define sprVERSION 3 //SPR ? ?????? #include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/loadsprbin.h" @@ -116,7 +116,7 @@ BOOL InitSprBinFileOpen(char *SPR_BIN, char *SPRADRN_BIN) } - //Change fix Ͷû趨SoundNo,սʱᵱ + //Change fix 投掷动作没有设定SoundNo,战斗时会当 if (no >= 1965 && no < 1987) { //for(int kk=1965;kk<1987;kk++) //{ diff --git a/石器时代8.5客户端最新源代码/石器源码/system/lssproto_cli.cpp b/石器时代8.5客户端最新源代码/石器源码/system/lssproto_cli.cpp index 6a6cd03..d331a04 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/lssproto_cli.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/lssproto_cli.cpp @@ -1,4 +1,4 @@ -/*#ifdef __NEW_PROTOCOL +/*#ifdef __NEW_PROTOCOL /* output by ./lsgen.perl 0.41 ( 1998 May) * made Mon Jun 12 11:17:33 2000 @@ -95,31 +95,31 @@ void old_lssproto_FC_send( int fd ) /* 166 :
  • clienttoserver W( int x, int y, string direction);
    -167 : (Walk)?????????????????????e???????? -168 : ????????????????????????????????? -169 : ???Re??????????????????u?u???????qn? -170 : ??????????W???????????????????????? -171 : ?????????????????\??????????????? +167 : (Walk)卷?????????????????????叉???????? +168 : ??卷??????????????????????????????? +169 : ???刪叉??????????????????「?ㄆ???????〈孓? +170 : ??????????W???????????????????????? +171 : ???火???卷???????????兝??????????????? 172 : ?????????? -173 : ????????????????MC???????????????MC +173 : ?????????卷????卷???MC???????????????MC 174 : ???????????????????????????????????? -175 : ????֢t???????????????????? +175 : 卷????┤????卷?????╱??????????? 176 : 177 : 178 : 179 :

    180 :
    181 :
    int x,y -182 :
    ?????????????????? +182 :
    卷?????????????????火? 183 : 184 :
    string direction -185 :
    ???? a,b,c,d,e,f,g,h???????h?? -186 : a?(dx,dy)=(0,-1)???????? h??(-1,-1) -187 : A,B,C,D,E,F,G,H ????????????? -188 : ???????????????? "ccae"??? -189 : ?????????????????"G"?? -190 : ????????????11??n??????? -191 : ????????????? +185 :
    ????? a,b,c,d,e,f,g,h???阪????去?? +186 : a?(dx,dy)=(0,-1)???????? h??(-1,-1) +187 : A,B,C,D,E,F,G,H ?????????????? +188 : ???????????????? "ccae"??? +189 : 更?????????????????"G"?? +190 : ????????????1卷1更??▋??????? +191 : ?更???????????? 192 : 193 :
    194 :
    @@ -139,11 +139,11 @@ void old_lssproto_W_send( int fd,int x,int y,char* direction ) } /* 198 :
  • clienttoserver w( int x, int y, string direction);
    -199 : ?o????u?i?????????????????????h????? -200 : ???????????????????MC?????????OK?????? -201 : ??MC??????????MC?????????????????w????????? -202 : ???????????????????????????????? CHAR_EVENT_ALTERRATIVE -203 : ??????????????????????????u??????G??????????????????? +199 : ??????「?可?????????????????????去?????? +200 : ??????????????????卷??MC?????????OK?????? +201 : ??MC?╱??????卷???MC????????????卷?????w????????? +202 : ???????????????????????????????? CHAR_EVENT_ALTERRATIVE +203 : ????????????????????阪??????守??????二????????希????????卷??? 204 :
    205 :
    206 :
    @@ -162,35 +162,35 @@ void old_lssproto_w_send( int fd,int x,int y,char* direction ) } /* 212 :
  • clienttoserver EV( int event,int seqno,int x, int y, int dir);
    -213 : ??????????????????_????D??? -214 : ?????e??????????????? +213 : ??????????????????北????伶??? +214 : ?????叉???????????????? 215 : 216 :

    217 :
    218 :
    int event -219 :
    ???????char_base.h????????e???????
    +219 :
    ???????char_base.h????????叉???????
    220 :
     221 : typedef enum
     222 : {
    -223 : 	CHAR_EVENT_NONE,		?????D???
    -224 : 	CHAR_EVENT_NPC,			?eNPC???
    -225 : 	CHAR_EVENT_ENEMY,		?e??????????
    +223 : 	CHAR_EVENT_NONE,		?????伶???
    +224 : 	CHAR_EVENT_NPC,			?叉NPC???
    +225 : 	CHAR_EVENT_ENEMY,		?叉???????????
     226 : 	CHAR_EVENT_WARP,		???????
    -227 : 	CHAR_EVENT_ALTERRATIVE,		??????????????????????????????
    +227 : 	CHAR_EVENT_ALTERRATIVE,		??????阪??????????????????????????
     228 : 	CHAR_EVENTNUM,
     229 : }CHAR_EVENT;
     230 : 	    
     231 : 	
    -232 : CHAR_EVENT_NPC????O??NPC?????????????????? -233 : ???????EV????????????Re??q??????????
    +232 : CHAR_EVENT_NPC????Μ??NPC?????????????????? +233 : ???????EV????????????刪κ??〈??????????
    234 :
    int seqno -235 :
    ??????????No?e?????????????T?????????????? +235 :
    ??????????No?▄?????????????冉?????????????? 236 : ??????????????? -237 : ?????EV????n?????????? +237 : ?????EV????▋?????????? 238 :
    int x,y -239 :
    ??t +239 :
    希??ㄅ 240 :
    int dir -241 :
    ????????????t??????????????S???i?????-1? +241 :
    ??????????希??ㄅ??????????????Π??希?可?????-1? 242 :
    243 :
    244 :
    @@ -211,12 +211,12 @@ void old_lssproto_EV_send( int fd,int event,int seqno,int x,int y,int dir ) } /* 261 :
  • clienttoserver EN( int x, int y );
    -262 : ?????????e????????????????????? -263 : ????????????????????????????? +262 : ?????????叉?????????????????????? +263 : ??卷??????????????????????????? 264 :

    265 :
    266 :
    int x,y -267 :
    ??????????????????????? +267 :
    ??????????????????????火? 268 :
    269 :
    270 :
    @@ -234,12 +234,12 @@ void old_lssproto_EN_send( int fd,int x,int y ) } /* 273 :
  • clienttoserver DU( int x, int y);
    -274 : ????????????i?????????????????? -275 : ????????????????????????????? +274 : ????????????可?????????????????? +275 : ??卷??????????????????????????? 276 :

    277 :
    278 :
    int x,y -279 :
    ??????????????????????? +279 :
    ??????????????????????火? 280 :
    281 :
    282 :
    @@ -257,7 +257,7 @@ void old_lssproto_DU_send( int fd,int x,int y ) } /* 298 :
  • clienttoserver EO( int dummy );
    -299 : ????????????????????????? +299 : ????????????????????????? 300 :
    301 :
    int dummy 302 :
    ??????????????? @@ -278,7 +278,7 @@ void old_lssproto_EO_send( int fd,int dummy ) } /* 309 :
  • clienttoserver BU( int dummy );
    -310 : ???????????????e???????? +310 : ???????????????κ???????? 311 :
    312 :
    int dummy 313 :
    ??????????????? @@ -299,10 +299,10 @@ void old_lssproto_BU_send( int fd,int dummy ) } /* 320 :
  • clienttoserver JB( int x, int y );
    -321 : \?Pf?ӡP??????????? EN ????? +321 : 兝?·卯?·???????????? EN ???刺?? 322 :
    323 :
    int x, int y; -324 :
    ???????????? +324 :
    ???????????火? 325 :
    326 :
    327 :
    @@ -321,10 +321,10 @@ void old_lssproto_JB_send( int fd,int x,int y ) } /* 331 :
  • clienttoserver LB( int x, int y );
    -332 : \?Pf??P??????????? EN ????? +332 : 兝?·卯??·???????????? EN ???刺?? 333 :
    334 :
    int x, int y; -335 :
    ???????????? +335 :
    ???????????火? 336 :
    337 :
    338 :
    @@ -343,22 +343,22 @@ void old_lssproto_LB_send( int fd,int x,int y ) } /* 354 :
  • clienttoserver B( string command );
    -355 : ??????????????Pf??????e???????k????????e????????????D???ul?e??????D???ul??????????ul???

    +355 : ??????????????·卯??????叉???????吻????????叉????????????¥???「▍?叉??????¥???「▍??????????「▍???

    356 :
      -357 :
    • H|?k?(%X)(0?19)
      G?????k??e

      -358 :
    • E
      `???

      -359 :
    • G
      \??

      +357 :
    • H|?吻?(%X)(0?19)
      二?????吻??叉

      +358 :
    • E
      匝???

      +359 :
    • G
      ??

      360 :
    • N
      ??????

      -361 :
    • T|?k?(%X)
      ??

      -362 :
    • J|?k?(%X)|?k?(%X)? -363 :
      ???????k???????????k???? +361 :
    • T|?吻?(%X)
      卦??

      +362 :
    • J|?吻?(%X)|?吻?(%X)? +363 :
      ???????吻???????????吻???? 364 : ???(0?5)?

      -365 :
    • W|????k?(%X)|?k?(%X)
      -366 : ?????????????????k?????????k?? +365 :
    • W|????吻?(%X)|?吻?(%X)
      +366 : ?????????????????吻?????????吻?? 367 : ???(0?7)

      -368 :
    • S|????k?(%d)?
      ????????????????

      -369 :
    • I|?????k?(%X)|?k?(%X)? -370 :
      ???????????????k???????????????k???? +368 :
    • S|????吻?(%d)?
      ????????????????

      +369 :
    • I|?????吻?(%X)|?吻?(%X)? +370 :
      ???????????????吻???????????????吻???? 371 : ???(5?19)?

      372 :
    373 :
    @@ -377,58 +377,58 @@ void old_lssproto_B_send( int fd,char* command ) /* 542 :
  • clienttoserver SKD( int dir , int index );
    543 : (SKillDir) -544 : e???????????? +544 : 叉????????????? 545 :

    546 :
    547 :
    int dir -548 :
    ?????? +548 :
    ??????? 549 :
    int index -550 :
    ????????????index. +550 :
    希??????????牙??index. 551 :
    -552 : ???????G?????????????????????? +552 : ???牙????二??????????????????希???? 553 :
     554 : 
     555 :       ?????????????
    -556 :       rpcgen C???????????????????G??????
    +556 :       rpcgen C???????????????????二??????
     557 :       ?????????enum
     558 : 
    -559 :       ???q??????????s???????
    +559 :       ????〈??????????????????
     560 :       typedef enum
     561 :       {
     562 :       SKILL_FIRE,
    -563 :       SKILL_MAGICIAN,         ??
    -564 :       SKILL_PRIEST,           ?
    +563 :       SKILL_MAGICIAN,         ???
    +564 :       SKILL_PRIEST,           齥?
     565 :       SKILL_ALOTOFTHINGS,     ????
    -566 :                               ????
    -567 :                              7(?) + 8 (?? ) + 4*(???????)
    +566 :                               ?????
    +567 :                              7(??) + 8 (?? ) + 4*(???????)
     568 :       SKILL_AVOIDRATEUP,      ???????? 3% ?????
    -569 :       SKILL_DETERMINEITEM,    ????
    +569 :       SKILL_DETERMINEITEM,    ?????
     570 : 
    -571 :       SKILL_DETERMINOTHERS,   J??
    -572 :                              0 ??Re???(?)
    -573 :                              1 ?????????????V??
    -574 :                                  ???????V???????
    +571 :       SKILL_DETERMINOTHERS,   ︰??
    +572 :                              0 ??刪叉???(?)
    +573 :                              1 ?????????????向??
    +574 :                                  ???????向???????
     575 :                              2 ?????
     576 :                              3 NPC
     577 :                              4 ????
    -578 :                              5 
    +578 :                              5 ?
     579 : 
     580 :       SKILL_FIRECUT,         ???  5 %
     581 :       SKILL_THUNDERCUT,      ????  5 %
    -582 :       SKILL_ICECUT,          ??  5 %
    -583 :       SKILL_MERCHANT,         ??20% ??100% ?? 5%?????
    -584 :       SKILL_HEALER,          ?
    -585 :                               ?????????k??????????
    -586 :                               1 
    +582 :       SKILL_ICECUT,          爪??  5 %
    +583 :       SKILL_MERCHANT,         ??20% ??100% ?? 5%?????
    +584 :       SKILL_HEALER,          齥?
    +585 :                               ?????????吻??????????
    +586 :                               1 ?
     587 :                               2 ???
    -588 :                               3 ?
    -589 :                               4 ?
    +588 :                               3 ??
    +589 :                               4 ?
     590 :                               5 ??
     591 :                               6 ??
     592 :                               7 HP 1 ???
     593 :                               8 HP ???????
    -594 :       ????u?
    -595 :       ????????????
    +594 :       ????「?
    +595 :       ?????????????
     596 :       0  0
     597 :       1 50
     598 :       2 57
    @@ -438,7 +438,7 @@ void old_lssproto_B_send( int fd,char* command )
     602 :       6 85
     603 :       7 92
     604 :       8 100
    -605 :       ?????????( 100 ??? )??k??? 1 10 ????
    +605 :       ?????????( 100 ??? )??π??? 1 10 ????
     606 :       ??? + ?????
     607 :       0 0
     608 :       1 1
    @@ -450,15 +450,15 @@ void old_lssproto_B_send( int fd,char* command )
     614 :       7 7
     615 :       8 8
     616 : 
    -617 :       SKILL_FIST,             ?
    -618 :       SKILL_SWORD,            ??
    -619 :       SKILL_AXE,              ??
    -620 :       SKILL_SPEAR,            ??
    -621 :       SKILL_BOW,              ??
    -622 :       SKILL_CANE,             ?
    +617 :       SKILL_FIST,             ???
    +618 :       SKILL_SWORD,            ???
    +619 :       SKILL_AXE,              ???
    +620 :       SKILL_SPEAR,            ???
    +621 :       SKILL_BOW,              ???
    +622 :       SKILL_CANE,             ??
     623 : 
    -624 :       SKILL_LARGEVOICE,       ??   Lv 8
    -625 :                               ?????????? TK ?
    +624 :       SKILL_LARGEVOICE,       ???   Lv 8
    +625 :                               ?????????? TK ?
     626 :       SKILL_NUM
     627 :       }SKILL_ID;
     628 :       
    @@ -478,23 +478,23 @@ void old_lssproto_SKD_send( int fd,int dir,int index ) } /* 633 :
  • clienttoserver ID( int x, int y, int haveitemindex,int toindex);
    -634 : (useItemDir)?????????????????????????????????????????? -635 : ??????????? +634 : (useItemDir)??????????????????????????????????????????? +635 : ???????????? 636 : 637 : 638 :
    639 :
    int x,y -640 :
    ?x,y ? +640 :
    希?x,y ?火 641 :
    int haveitemindex -642 :
    ????????????????????? +642 :
    ????????????????????? 643 :
    int toindex -644 :
    M?????????????????????????index???????????????? +644 :
    Κ?????????????????????????index???????????????? 645 :
    -646 : 	      = 0
    +646 : 	  希    = 0
     647 : 	  ???  = 1 ?5
    -648 : 	  ??    = 6 ?10 ?S N ?0?4?n??????????
    +648 : 	  ??    = 6 ?10 ?S N ?0?4?▋??希????????
     649 : 	
    -650 : n?u??????????????-1?????
    +650 : ▋?「????希??????????-1?????
    651 :
    652 :
    653 :
    @@ -521,12 +521,12 @@ void old_lssproto_ID_send( int fd,int x,int y,int haveitemindex,int toindex ) /* 662 :
  • clienttoserver PI( int x, int y,int dir );
    663 : (PickupItem) -664 : ??????????K????????9??????

    +664 : ??????????℉????????9??????

    665 :
    666 :
    int x,y -667 :
    ?x,y ? +667 :
    希?x,y ?火 668 :
    int dir -669 :
    ????????K????? ????K?????? +669 :
    ??????????℉????? ????℉?????? 670 :
    671 :
    672 :
    @@ -547,15 +547,15 @@ void old_lssproto_PI_send( int fd,int x,int y,int dir ) /* 676 :
  • clienttoserver DI( int x, int y, int itemindex);
    677 : (DropItem) -678 : ?????t??t???????????t???????t? -679 : e????itemindex??????t???????q?t?? +678 : ?????ㄅ??ㄅ???????????ㄅ????????ㄅ? +679 : 叉????itemindex??????ㄅ??????希?〈?ㄅ?? 680 :

    681 : 682 :
    683 :
    int x,y -684 :
    ?x,y ? +684 :
    希?x,y ?火 685 :
    int itemindex -686 :
    t?????????????? +686 :
    ㄅ?????????????? 687 :
    688 :
    689 :
    @@ -576,12 +576,12 @@ void old_lssproto_DI_send( int fd,int x,int y,int itemindex ) /* 693 :
  • clienttoserver DG( int x, int y, int amount );
    694 : (DropGold) -695 : ???t??SA?????t???D??

    +695 : ???ㄅ??SA?????ㄅ??火?乃??

    696 :
    697 :
    int x,y -698 :
    ?x,y ? +698 :
    希?x,y ?火 699 :
    int amount -700 :
    t?????? +700 :
    ㄅ?????? 701 :
    702 :
    703 :
    @@ -601,15 +601,15 @@ void old_lssproto_DG_send( int fd,int x,int y,int amount ) /* 706 :
  • clienttoserver DP( int x, int y,int petindex);
    707 : (DropPet) -708 : ????t?????t?e???? -709 : petindex??????t???????q?t?? +708 : ????ㄅ??????ㄅ?叉???? +709 : petindex??????ㄅ??????希?〈?ㄅ?? 710 :

    711 : 712 :
    713 :
    int x,y -714 :
    ?x,y ? +714 :
    希?x,y ?火 715 :
    int petindex -716 :
    t???????index????????k???????????? +716 :
    ㄅ???????index????????吻???????????? 717 :
    718 :
    719 :
    @@ -629,22 +629,22 @@ void old_lssproto_DP_send( int fd,int x,int y,int petindex ) /* 741 :
  • clienttoserver MI( int fromindex , int toindex);
    742 : (MoveItem)
    -743 : ??????h/?/??????????????? -744 : ?h???????

    +743 : ??????去/??/????????????????? +744 : ?去???????

    745 :
    746 :
    int fromindex -747 :
    ?h????????????? +747 :
    ?去????????????? 748 :
    int toindex -749 :
    ???????????? +749 :
    ????????????? 750 :
    -751 : ??????G?? +751 : ???????二?? 752 :
      -753 :
    • 0 ??????( d ) -754 :
    • 1 ??????( l ) -755 :
    • 2 ???????????() -756 :
    • 3 ?ߦ?????1 -757 :
    • 4 ?ߦ?????2 -758 :
    • ???? ????? +753 :
    • 0 ???????( 卡 ) +754 :
    • 1 ???????( ▍ ) +755 :
    • 2 ????????????() +756 :
    • 3 ?此??????1 +757 :
    • 4 ?此??????2 +758 :
    • ???? ????? 759 :
    760 :
    761 :
    @@ -662,16 +662,16 @@ void old_lssproto_MI_send( int fd,int fromindex,int toindex ) /* 788 :
  • clienttoserver MSG( int index , string message , int color );
    789 : (MeSsaGe) -790 : ??????????????????index???????? +790 : ??????????????????index?希??????? 791 : ???????????

    792 :
    793 :
    int index -794 :
    ?????????????????? +794 :
    ?????????????????? 795 :
    string message -796 :
    ???????????EUC???????????? -797 : ???????????????????????????? +796 :
    ???????????EUC????????????更 +797 : ???????????????????????╱????? 798 :
    int color -799 :
    ??????? +799 :
    ??????? 800 :
    801 :
    802 :
    @@ -692,20 +692,20 @@ void old_lssproto_MSG_send( int fd,int index,char* message,int color ) /* 830 :
  • clienttoserver PMSG( int index, int petindex, int itemindex, string message , int color );
    831 : (PetMeSsaGe) -832 : ??????????????????????index???????? -833 : ?????????????????????????

    +832 : ??????????????????????index?希??????? +833 : ?????????????????????????

    834 :
    835 :
    int index -836 :
    ?????????????????? +836 :
    ?????????????????? 837 :
    int petindex -838 :
    ?k?????????? +838 :
    ?吻?????????? 839 :
    int itemindex -840 :
    ?k???????????? +840 :
    ?吻???????????? 841 :
    string message -842 :
    ???????????EUC???????????? -843 : ???????????????????????????? +842 :
    ???????????EUC????????????更 +843 : ???????????????????????╱????? 844 :
    int color -845 :
    ??????? +845 :
    ??????? 846 :
    847 :
    848 :
    @@ -735,14 +735,14 @@ void old_lssproto_AB_send( int fd ) /* 921 :
  • clienttoserver DAB( int index );
    922 : (DeleteAddressBookitem)???????????????????? -923 : ???????????????????????????AB?? -924 : ???????????????????????????? -925 : ????????? +923 : ?????????????????阪???????????AB?? +924 : ??????????????牙??????????????? +925 : ????╱????? 926 :
    927 :
    int index -928 :
    ??????index.??????0???? +928 :
    ??????index.??????0???? 929 :
    -930 : ???????????????{??????????? +930 : ???????????????叻?刺?????????? 931 :
    932 :
    933 :
    @@ -759,12 +759,12 @@ void old_lssproto_DAB_send( int fd,int index ) /* 935 :
  • clienttoserver AAB( int x, int y );
    936 : (AddAddressBookitem) -937 : ??q?????????????????????? -938 : ???????????????????? -939 : ?????AB???????????????????? +937 : ??〈?????????????????????? +938 : ???????????????阪?????? +939 : ?????AB???????????????牙????? 940 :
    941 :
    int x,y -942 :
    ????? +942 :
    希?????火 943 :
    944 :
    945 :
    @@ -783,14 +783,14 @@ void old_lssproto_AAB_send( int fd,int x,int y ) /* 948 :
  • clienttoserver L( int dir);
    949 : (Look) -950 : dir ?????????????????????????D -951 : ???????????????M???????????????? -952 : ??????????????????????????????? -953 : ???????????????????????????Y???? -954 : ??q?????(a?NPC?????)??????q???NPC?n -955 : ?????????n????????????????NPC? -956 : ??h?????????????????????l?????? -957 : TK????????????? +950 : dir ????????????????????????????伶 +951 : ???????????????﹐???????????????? +952 : ??????????????????????????????? +953 : ????????????????????????????即???? +954 : ??〈?????(仟??NPC?????)??????〈???NPC?▋ +955 : ???????????孓?????????????????NPC? +956 : ??去???????????更??????????ρ?????? +957 : TK????????????? 958 :
    959 :
    960 :
    @@ -807,47 +807,47 @@ void old_lssproto_L_send( int fd,int dir ) /* 962 :
  • clienttoserver TK( int x, int y, string message ,int color, int area);
    963 : (TalK) -964 : ????????????????????

    +964 : ???????????????刺?????

    965 :
    966 :
    int x,y -967 :
    ????? +967 :
    希?????火 968 :
    string message -969 :
    string ???, "|" ?2???????????????? -970 : ????????2???????????????2?? +969 :
    string ????, "|" ?2???????????????? +970 : ???更?????2???????????阪?????2?? 971 : ????????????????? 972 : ????????????????????? 973 :
      974 :
    • P??
      -975 : Id?C???"P"??????????????V +975 : !卡?C更???"P"??????????????向 976 : ?????????????????????????? -977 : ??????Id??????????????? -978 : ?????????????????Id?"P"? -979 : ????????Re???????d???? -980 : ???????TK??????????TK??????? -981 : ???????"P"?????????V??? +977 : ???更???!卡???????更???????? +978 : ??????????????更???!卡?"P"? +979 : ????????刪叉????束???吳???? +980 : ???????TK??????????TK??????? +981 : ?更??????"P"?????????向??? 982 :
      -983 : ?????? +983 : 更???????ㄩ 984 :
      -985 : 		  "P|??????????!!"
      +985 : 		  "P|???????????!!"
       986 : 		  
      987 :
      -988 : ???????????????????d??e -989 : ?????????????????????Re? -990 : ???????C?????????'!' ?u? -991 : ??V????????????????'!'???T -992 : ????????????????u???S??? -993 : ?????????!?????????????? -994 : ??????d?????? +988 : ????????????????束???吳??叉 +989 : ???????????更???????????刪叉? +990 : ??更???牙??C????牙?????'!' ?「?更 +991 : ??向????????????????'!'???劫 +992 : ????????????????「?更??刨?更?? +993 : ?????????!?????????????? +994 : ???束???吳?????? 995 : -996 : 998 : 999 :
      "..."??????????? +996 :
      "..."?????????希?? 997 :
      1000 :
    1001 :
    int color -1002 :
    ???? +1002 :
    更???? 1003 :
    int area -1004 :
    ?????????d?????e???? +1004 :
    ??????束???吳?????叉???? 1005 : 1006 :
    1007 :
    @@ -869,16 +869,16 @@ void old_lssproto_TK_send( int fd,int x,int y,char* message,int color,int area ) } /* 1071 :
  • clienttoserver M(int fl , int x1 , int y1 , int x2, int y2 );
    -1072 : ??????????????????M???????????? -1073 : ????????MC??????????????????? -1074 : ?????????????????????????? +1072 : ????????????????刺??M???????????? +1073 : ????????MC??????????????????? +1074 : 卷??????????????希???????????? 1075 :
    1076 :
    int fl -1077 :
    ???k? +1077 :
    ???吻? 1078 :
    int x1 -1079 :
    ?X +1079 :
    ?X 1080 :
    int y1 -1081 :
    ?Y +1081 :
    ?Y 1082 :
    int x2 1083 :
    ??X 1084 :
    int y2 @@ -903,8 +903,8 @@ void old_lssproto_M_send( int fd,int fl,int x1,int y1,int x2,int y2 ) } /* 1128 :
  • clienttoserver C( int index );
    -1129 : ????ѩ??????????index CA ?????????? -1130 : C ???????????????????????? +1129 : ???????????????index CA ????????刺?? +1130 : C ?刺??????????????????刺????? 1131 :
    1132 :
    1133 :
    @@ -924,21 +924,21 @@ void old_lssproto_C_send( int fd,int index ) 1347 : ??????????????? 1348 :
    1349 :
    string category -1350 :
    ???ѩ?????????????e? +1350 :
    ?????????????????叉? 1351 :
      -1352 :
    • P u????? -1353 :
    • C ? -1354 :
    • I u???? -1355 :
    • S u??? -1356 :
    • T u? -1357 :
    • M ?????? +1352 :
    • P 「????? +1353 :
    • C ?火 +1354 :
    • I 「???? +1355 :
    • S 「??? +1356 :
    • T 「? +1357 :
    • M ?希????? 1358 :
    • E ???????? 1359 :
    • K0 - K4 ??????? 1360 :
    • D ID 1361 :
    1362 :
    -1363 : ????ѩ????????????????????? -1364 : ??????????????? +1363 : ?????????????????????????? +1364 : ??更????????????? 1365 :
    1366 :
    1367 :
    @@ -954,15 +954,15 @@ void old_lssproto_S_send( int fd,char* category ) } /* 1745 :
  • clienttoserver FS( int flg);
    -1746 : (FlgSet)????V????DUELϣ????????????????????On/Off???

    +1746 : (FlgSet)????向????DUEL???????????????????????On/Off???

    1747 : 1748 :
    1749 :
    int flg 1750 :
    0 bit 0: ??Off 1: ??On
    -1751 : ???t??1 bit 0: PfN??off 1: PfN??On
    +1751 : ?????1 bit 0: ·卯代??off 1: ·卯代??On
    1752 : 2 bit 0: DUEL off 1: DUEL On
    -1753 : 3 bit 0: ?G???????? 1: ??????????????????
    -1754 : 4 bit 0: ??OK 1: ???r
    +1753 : 3 bit 0: ?二???????? 1: ???????????????????
    +1754 : 4 bit 0: ???OK 1: ????呀
    1755 :
    1756 :
    1757 :
    @@ -979,7 +979,7 @@ void old_lssproto_FS_send( int fd,int flg ) } /* 1774 :
  • clienttoserver HL( int flg);
    -1775 : (HeLp)???????@e??????ON?????\??Pf?????????

    +1775 : (HeLp)??????? 叉??????ON?????兝??·卯?????????

    1776 : 1777 :
    1778 :
    int flg @@ -1000,13 +1000,13 @@ void old_lssproto_HL_send( int fd,int flg ) } /* 1795 :
  • clienttoserver PR( int x, int y,int request);
    -1796 : (PartyRequest)???V?or? ??????

    +1796 : (PartyRequest)???向?or?? ??????

    1797 : 1798 :
    1799 :
    int x,y -1800 :
    ?x,y ? +1800 :
    希?x,y ?火 1801 :
    int request -1802 :
    0: ???1: ??????? +1802 :
    0: ????1: ??????? 1803 :
    1804 :
    1805 :
    @@ -1025,11 +1025,11 @@ void old_lssproto_PR_send( int fd,int x,int y,int request ) } /* 1824 :
  • clienttoserver KS( int petarray);
    -1825 : (Kyoryu Select)Pf??????k???

    +1825 : (Kyoryu Select)·卯??????︻????

    1826 : 1827 :
    1828 :
    int petarray -1829 :
    0 ? 4 ??????k??????????????????????Pf??????????????????-1?V??? +1829 :
    0 ? 4 ??????︻??????????????????????·卯??????????????????-1?向??? 1830 :
    1831 :
    1832 :
    @@ -1046,27 +1046,27 @@ void old_lssproto_KS_send( int fd,int petarray ) } /* 1852 :
  • clienttoserver AC( int x, int y, int actionno);
    -1853 : (action)?W?????????

    +1853 : (action)?凹?????牙????

    1854 : 1855 :
    1856 :
    int x,y -1857 :
    ?x,y ? +1857 :
    希?x,y ?火 1858 :
    int actionno -1859 :
    ???????????????????????????????????????????(CA)????? -1860 : ???????e??????????????????k????????n?????G??
    +1859 :
    ???????????????????????????????????????????(CA)????? +1860 : ???????▄??????????????????吻????????▋?????二??
    1861 :
    1862 : 1863 : 1864 : 1865 : -1866 : +1866 : 1867 : -1868 : +1868 : 1869 : -1870 : +1870 : 1871 : -1872 : -1873 : +1872 : +1873 : 1874 : 1875 : 1876 : @@ -1089,23 +1089,23 @@ void old_lssproto_AC_send( int fd,int x,int y,int actionno ) } /* 1883 :
  • clienttoserver MU( int x, int y, int array, int toindex);
    -1884 : (magic use)???????????????????????????????????? -1885 : ??????????? +1884 : (magic use)??????????????????????????????????????? +1885 : ???????????? 1886 : 1887 : 1888 :
    1889 :
    int x,y -1890 :
    ?x,y ? +1890 :
    希?x,y ?火 1891 :
    int array -1892 :
    ????????????? P ? Jn(n ?\????)?n??????????? +1892 :
    ?????????????? P ? Jn(n ?吒????)?▋??????????? 1893 :
    int toindex -1894 :
    M??????????????????????index???????????????? +1894 :
    Κ???????????????????????index???????????????? 1895 :
    -1896 : 	      = 0
    +1896 : 	  希    = 0
     1897 : 	  ???  = 1 ?5
    -1898 : 	  ??    = 6 ?10 ?S N ?0?4?n??????????
    +1898 : 	  ??    = 6 ?10 ?S N ?0?4?▋??希????????
     1899 : 	
    -1900 : n?u??????????????-1?????
    +1900 : ▋?「????希??????????-1?????
    1901 :
    1902 :
    1903 :
    @@ -1126,25 +1126,25 @@ void old_lssproto_MU_send( int fd,int x,int y,int array,int toindex ) } /* 1907 :
  • clienttoserver PS( int havepetindex, int havepetskill, int toindex, string data);
    -1908 : (PetSkill use )??????????????????????? +1908 : (PetSkill use )??????????????????????? 1909 : 1910 :
    1911 :
    int havepetindex -1912 :
    ?k??????????? +1912 :
    ?吻??????????? 1913 :
    int havepetskill -1914 :
    ?k????????? +1914 :
    ?吻????????? 1915 :
    int toindex -1916 :
    M??????????????????????index???????????????? +1916 :
    Κ???????????????????????index???????????????? 1917 :
    -1918 : 	      = 0
    +1918 : 	  希    = 0
     1919 : 	  ???  = 1 ?5
    -1920 : 	  ??    = 6 ?10 ?S N ?0?4?n??????????
    +1920 : 	  ??    = 6 ?10 ?S N ?0?4?▋??希????????
     1921 : 	
    -1922 : n?u??????????????-1?????
    +1922 : ▋?「????希??????????-1?????
    1923 :
    1924 :
    string data -1925 :
    ?ѩ????????????haveitemindex1|haveitemindex2|haveitemindex3|...
    -1926 : ??????????k??V????? +1925 :
    至??????????????haveitemindex1|haveitemindex2|haveitemindex3|...
    +1926 : ??????????吻??向????? 1927 : 1928 :
    1929 : @@ -1168,14 +1168,14 @@ void old_lssproto_PS_send( int fd,int havepetindex,int havepetskill,int toindex, /* 1963 :
  • clienttoserver ST( int titleindex );
    1964 : (SelectTitle) -1965 : ??????titleindex ? -1 ??????????????? +1965 : ??????titleindex ? -1 ??????????????? 1966 : ??

    1967 :
    1968 :
    int titleindex -1969 :
    ?k????? +1969 :
    ?吻????? 1970 :
    1971 : ????Txt?????????????????????????? -1972 : ?Gl???? +1972 : ?二ρ???? 1973 :
    1974 :
    1975 :
    @@ -1194,13 +1194,13 @@ void old_lssproto_ST_send( int fd,int titleindex ) /* 1979 :
  • clienttoserver DT( int titleindex );
    1980 : (DeleteTitle) -1981 : ???????

    +1981 : ???????

    1982 :
    1983 :
    int titleindex -1984 :
    ???????????? +1984 :
    ???????????? 1985 :
    -1986 : ????Txt?????????????????????????????G -1987 : l???? +1986 : ????Txt?????????????????????????????二 +1987 : ρ???? 1988 :
    1989 :
    1990 :
    @@ -1218,16 +1218,16 @@ void old_lssproto_DT_send( int fd,int titleindex ) /* 1993 :
  • clienttoserver FT( string data );
    1994 : (inputFreeTitle) -1995 : ?V?????V????

    +1995 : 希?向?????向????

    1996 :
    1997 :
    string data -1998 :
    ?V?????EUC???????????????? -1999 : ??????????????????1?info??? -2000 : ????????????????????????? -2001 : ???????????? +1998 :
    希?向?????EUC???????????????? +1999 : ???????????????????1?info?牙?? +2000 : ?????????更???????????????? +2001 : ???????╱????? 2002 :
    -2003 : ??????Txt?????????Gl???????????? -2004 : ?CHARINDEX?n???Ch????????????????? +2003 : ??????Txt??????更???二ρ???????????? +2004 : 希?CHARINDEX?▋???Ch????????????????? 2005 : ??? 2006 :
    2007 :
    @@ -1249,7 +1249,7 @@ void old_lssproto_FT_send( int fd,char* data ) 2021 : ??????????????

    2022 :
    2023 :
    int skillid -2024 :
    ???????????0=l?, 1=??, 2=Ǧ?, 3=?? +2024 :
    ???????????0=▍?, 1=??, 2=舌?, 3=??? 2025 :
    2026 :
    2027 :
    @@ -1267,15 +1267,15 @@ void old_lssproto_SKUP_send( int fd,int skillid ) /* 2030 :
  • clienttoserver KN( int havepetindex, string data );
    2031 : (inputKyoryuName) -2032 : ????q?V????

    +2032 : ?????〈?向????

    2033 :
    2034 :
    int havepetindex -2035 :
    ????k?? +2035 :
    ????吻?? 2036 :
    string data -2037 :
    ???????????q????? +2037 :
    希????????????〈????? 2038 : 2039 :
    -2040 : ??????Txt?????????Gl???????????? +2040 : ??????Txt??????更???二ρ???????????? 2041 : ??????????????????? 2042 :
    2043 :
    @@ -1295,28 +1295,28 @@ void old_lssproto_KN_send( int fd,int havepetindex,char* data ) /* 2166 :
  • clienttoserver WN( int x, int y, int seqno, int objindex, int select, string data );
    2167 :
    -2168 : ??????n???
    +2168 : ?????牙?▋??刺?
    2169 :
    2170 :
    2171 :
    int x,y -2172 :
    ???????x,y? +2172 :
    ???????x,y?火 2173 :
    int seqno -2174 :
    ????????seqno?????? +2174 :
    ????????seqno?????刺? 2175 :
    int objindex -2176 :
    ????????objindex?????? +2176 :
    ????????objindex?????刺? 2177 :
    int select -2178 :
    ??????k????????k?????????WN ?buttontype ?define?i????? +2178 :
    ??????︻?????????︻??????????WN ?buttontype ?define?可???刺?? 2179 :
    string data -2180 :
    ??V?????????????V??????? -2181 : k???????????k??k???1??? -2182 : ?????????k??????????????????????????? -2183 :

    ?????
    -2184 : ????k??k??????????
    -2185 : ????k????????k??????|??
    -2186 : ??\ ??1 ??2 ?3 +2180 :
    ??向?????????????向??????? +2181 : ︻????????????︻???吻???1??? +2182 : ?????????︻???????????????????????????? +2183 :

    ??????
    +2184 : ????ㄩ︻???吻??????????
    +2185 : ????ㄩ︻?????????吻??????|??
    +2186 : ??兝 ㄩ??ㄩ1 ??ㄩ2 ?ㄩ3 2187 : -2188 :


    ?????????
    -2189 : ??????????(kk?)????????(kk?)?????????(kk?)?kh
    +2188 :


    ?????????
    +2189 : ??????????(︻?吻?)????????(︻?吻?)?????????(︻?吻?)?πν
    2190 : 2191 :
    2192 :
    @@ -1340,18 +1340,18 @@ void old_lssproto_WN_send( int fd,int x,int y,int seqno,int objindex,int select, /* 2238 :
  • clienttoserver SP( int x, int y, int dir );
    2239 : (SetPosition)
    -2240 : ?????????????? -2241 : ??????????????????
    +2240 : ???????希???????? +2241 : ?????????????火?????
    2242 :
    2243 :
    2244 :
    int x,y, dir -2245 :
    ?,??? +2245 :
    ?火,??? 2246 :
    2247 :
    2248 :
    2249 :
    2250 :
    -2251 : +2251 : 2252 : */ @@ -1367,18 +1367,18 @@ void old_lssproto_SP_send( int fd,int x,int y,int dir ) /* 2253 :
  • clienttoserver ClientLogin(string cdkey,string passwd);
    -2254 : ??????????????????????????????? -2255 : ?????????????????????????????? -2256 : ??????????????????????????????? -2257 : ???O????????ѩ?????????????????? -2258 : ??????????????????T????????? +2254 : ??????????????????????????????? +2255 : ??????????????????????????????? +2256 : ??????????????????????????????? +2257 : ???Μ??????????????????????????? +2258 : 岌????????????阪??????冉????????? 2259 : 2260 :

    2261 :
    2262 :
    string cdkey 2263 :
    CDKEY 2264 :
    string passwd -2265 :
    ????????????????????? +2265 :
    ????????更????????????? 2266 :
    2267 :
    2268 :
    @@ -1396,28 +1396,28 @@ void old_lssproto_ClientLogin_send( int fd,char* cdkey,char* passwd ) } /* 2284 :
  • clienttoserver CreateNewChar(int dataplacenum, string charname,int imgno , int faceimgno, int vital, int str, int tgh, int dex, int earth, int water, int fire, int wind, int hometown);
    -2285 : ???????????? +2285 : ???????????? 2286 :

    2287 :
    2288 :
    int dataplacenum -2289 :
    ????k??????????????????????????????????????????Re??? +2289 :
    ????吻???????????????????????????????????牙???????刪κ??? 2290 :
    string charname -2291 :
    ???(????????????????)? -2292 : ???????????????????????????? +2291 :
    ????(??????????????更??)? +2292 : ??更?????????????????????╱????? 2293 :
    int imgno -2294 :
    ?????????k?? +2294 :
    ?????????吻?? 2295 :
    int faceimgno -2296 :
    ????k??????????? +2296 :
    ????吻???????????? 2297 :
    int vital, str,tgh dex 2298 :
    ??????? 2299 :
    int earth, water, fire, wind -2300 :
    ?Nͣk +2300 :
    ?﹫π 2301 :
    int hometown -2302 :
    ?0???k?J???? +2302 :
    ?0???π?仔???? 2303 :
    string option 2304 :
  • actionno
    ??0
    ????1
    X??2
    出??2
    ?????3
    ?4
    卷?4
    ??5
    ??6
    ??6
    ??7
    W?8
    v??9
    凹?8
    听??9
    ???10
    ????11
    ???12
    -2305 : ????????????????e?????????k -2306 : ???????????????????????????? +2305 : ??????????????????叉?????????π +2306 : ?????????????????????更??????? 2307 : ????? 2308 :
    2309 :
    @@ -1451,11 +1451,11 @@ void old_lssproto_CreateNewChar_send( int fd,int dataplacenum,char* charname,int } /* 2338 :
  • clienttoserver CharDelete(string charname);
    -2339 : ?????? +2339 : ?????? 2340 :

    2341 :
    2342 :
    string charname -2343 :
    ????????????????????????? +2343 :
    ?????????????????????????? 2344 :
    2345 :
    2346 :
    @@ -1471,11 +1471,11 @@ void old_lssproto_CharDelete_send( int fd,char* charname ) } /* 2366 :
  • clienttoserver CharLogin(string charname);
    -2367 : ??????????????????????? +2367 : ??????????????????????? 2368 :

    2369 :
    2370 :
    string charname -2371 :
    ?????????????????????????? +2371 :
    ??????????????????????????? 2372 :
    2373 :
    2374 :
    @@ -1490,7 +1490,7 @@ void old_lssproto_CharLogin_send( int fd,char* charname ) } /* 2391 :
  • clienttoserver CharList( void );
    -2392 : ???????x?? +2392 : ???????台?? 2393 :

    2394 :
    2395 :
    @@ -1505,7 +1505,7 @@ void old_lssproto_CharList_send( int fd ) } /* 2438 :
  • clienttoserver CharLogout(void);
    -2439 : ????????????????????????? +2439 : ????????????????????????? 2440 : ????? 2441 :
    2442 :
    @@ -1523,7 +1523,7 @@ void old_lssproto_CharLogout_send( int fd ) /* 2459 :
  • clienttoserver ProcGet(void);
    -2460 : proc ????x????????????????????????? +2460 : proc ????台?????????????????????????? 2461 :
    2462 :
    2463 :
    @@ -1538,7 +1538,7 @@ void old_lssproto_ProcGet_send( int fd ) } /* 2477 :
  • clienttoserver PlayerNumGet(void);
    -2478 : ????????????x??? +2478 : ????????????台??? 2479 :
    2480 :
    2481 :
    @@ -1553,11 +1553,11 @@ void old_lssproto_PlayerNumGet_send( int fd ) } /* 2495 :
  • clienttoserver Echo( string test);
    -2496 : ????????????????????????? +2496 : ????????????????????????? 2497 :

    2498 :
    2499 :
    string test -2500 :
    ???????????????? +2500 :
    ????更???????????? 2501 :
    2502 :
    2503 :
    @@ -1573,16 +1573,16 @@ void old_lssproto_Echo_send( int fd,char* test ) } /* 2517 :
  • clienttoserver Shutdown( string passwd, int min);
    -2518 : ???????????

    -2519 : ??????????????h???????????????????????????? -2520 : ??????????denyaccept()????????????????????? -2521 : ???closeallsockets()?????????????????????? +2518 : ???????????

    +2519 : ??????????????去??????希?????????????????????希?? +2520 : ??????????denyaccept()????????????????????? +2521 : ???closeallsockets()?????????????????????? 2522 :

    2523 :
    2524 :
    string passwd -2525 :
    ???????????????????@e????? +2525 :
    ??????????????????? 叉????? 2526 :
    int min -2527 :
    ????????????????????@e??? +2527 :
    ????希???????????????希? 叉??? 2528 :
    2529 :
    2530 :
    @@ -1622,7 +1622,7 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) lssproto_GetMessageInfo( &msgid , funcname , sizeof(funcname),lssproto.token_list); /* 209 :
  • servertoclient XYD( int x, int y, int dir );
    -210 : ?Pf??????????t???????? +210 : ?·卯??????????ㄅ?????????? 211 :

    */ @@ -1638,15 +1638,15 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 247 :
  • servertoclient EV(int seqno,int result);
    -248 : ???????EV?n???????? -249 : ???????????????????????? -250 : ???? +248 : ???????EV?▋???刺????? +249 : ????????????????卷???????? +250 : ???? 251 : 252 :
    253 :
    int seqno -254 :
    ??????EV?seqno?n???? +254 :
    ??????EV?seqno?▋???? 255 :
    int result -256 :
    ???0:??????? 1:?????????????n??G??????????????? +256 :
    ???0:?????自?? 1:?????????????▋??二??????????????? 257 :
    258 :
    259 :
    @@ -1663,13 +1663,13 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 285 :
  • servertoclient EN(int result,int field);
    -286 : ???????EN??DU?n??????????????????????????????????? +286 : ???????EN??DU?▋???刺???????????卷????????????????????? 287 : 288 :
    289 :
    int result -290 :
    ???0:???????or???? 1:??Pfϣ?2:n??Pfϣ?????Pf????G ??????????????? +290 :
    ???0:??????自?or???? 1:???·卯???2:▋??·卯???????·卯????二 ??????????????? 291 :
    int field -292 :
    ????????k?? +292 :
    ????????吻?? 293 :
    294 :
    295 :
    @@ -1687,11 +1687,11 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 342 :
  • servertoclient RS( string data );
    -343 : Pf???x????????????Gl?
    -344 : RS|k?(10)|?????????(10)|EXP(62),k?|?????????|EXP,???,????|????|????

    -345 : k????k?5??????","???????????????????????k??-2?
    -346 : 2???4????????k??0?4)??????k???????????????????","????
    -347 : ????????q?"|"??????????????????????"|"???? +343 : ·卯???台????????????二ρ?
    +344 : RS|吻?(10)|?????????(10)|EXP(62),吻?|?????????|EXP,???,?????|?????|?????

    +345 : 吻????π?5希??希????","????????╱???????????????吻??-2?
    +346 : 2???4????????吻??0?4)??????π????????????????????","????
    +347 : ?????????〈?"|"????????????????????????"|"???? 348 : */ @@ -1703,8 +1703,8 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 349 :
  • servertoclient RD( string data );
    -350 : ???????x?????????????Gl?
    -351 : RD|x?(??)DP(62)|??DP(62)|

    +350 : ???????台?????????????二ρ?
    +351 : RD|台?(??)DP(62)|???DP(62)|

    352 : 353 : */ @@ -1717,124 +1717,124 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 377 :
  • servertoclient B( string command );
    -378 : Pf???????u?????k??u? ?16???
    -379 : ???[?k?]????????????k????? -380 : q??????????q???????????D?????????? +378 : ·卯???????「?????π??「? ?更?16???
    +379 : ???[?吻?]????????????吻????? +380 : 〈??????????〈???????????¥?????????? 381 :

    382 :

    383 : ??????? 384 :

    -385 : ?????????u?????????????????????
    -386 : ???( BATTLESTR_ADD( ?? ) )????????????????????????????????????
    -387 : ????????????u??k????????k????????????(???????????)
    +385 : ????????希?「??????更?????????更???????
    +386 : ???( BATTLESTR_ADD( 更?? ) )?????????????更????????????????????????
    +387 : ????????????「??π????????π????????更??????(???????????)
    388 : 389 :
    -390 : ???????????s????????
    -391 : ---???????
    -392 : ---?????G???
    -393 : ---?????????
    -394 : ---?????\?
    -395 : ---??????????
    -396 : ---????????
    -397 : ---?????????????????
    -398 : ---?????????????????
    -399 : ---????????????????
    -400 : ---?????????
    +390 : ???????????ㄩ????????
    +391 : ---?????ㄩ??
    +392 : ---?????ㄩ二???
    +393 : ---?????ㄩ????
    +394 : ---?????ㄩ?
    +395 : ---?????ㄩ?????
    +396 : ---?????ㄩ???
    +397 : ---?????ㄩ????????????
    +398 : ---?????ㄩ????????????
    +399 : ---?????ㄩ???????????
    +400 : ---?????ㄩ????
    401 :
    402 :
      -403 :
    • BH|????G??????
      -404 : BH|??Dk?|駍Dk?|???|????|駍Dk?|???|????|?????????駍Dk??FF?????????????????
      +403 :
    • BH|????二??????
      +404 : BH|??¥吻?|?¥吻?|???|????|?¥吻?|???|????|???????刺???¥吻??FF?????????????????
      405 :
      406 : -407 : (G???) B|BH|attack_0|defense_A|flag_2|damage_32|defense_B|flag_2|damage_32|FF|
      -408 : ???0k?(attack_0)Ak(defense_A)?0x32???????(damage_32)???Bk(defense_B)????????0x32????(damage_32)??????????

      +407 : (二???) B|BH|attack_0|defense_A|flag_2|damage_32|defense_B|flag_2|damage_32|FF|
      +408 : ???0吻?(attack_0)A吻(defense_A)?0x32???????(damage_32)???B吻(defense_B)????????0x32????(damage_32)??????????

      409 : 410 : (???????) B|BH|attack_0|defense_A|flag_2|dagame_32|counter_0|flag_10|damage_16|FF|
      -411 : ???0k?(attack_0)?Ak????(defense_A)????0x32(damage_32)???????0k(counter_0)???????(flag_10)????0x16(damage_16)?????????????????Dh??????q?????????k????

      +411 : ???0吻?(attack_0)?A吻????(defense_A)????0x32(damage_32)???????0吻(counter_0)???????(flag_10)????0x16(damage_16)?????????????????伶去???????〈?????????︻????

      412 : -413 : (?????) B|BH|attack_0|defense_A|flag_202|dagame_32|gardian_B|FF|
      -414 : ???0k?(attack_0)?Ak????(defense_A)????0x32(damage_32)?????????Bk????????????????????

      +413 : (?????) B|BH|attack_0|defense_A|flag_202|dagame_32|gardian_B|FF|
      +414 : ???0吻?(attack_0)?A吻????(defense_A)????0x32(damage_32)?????????B吻????????????????????

      415 :
      416 : -417 :
    • BT|?????????
      -418 : BT|??Dk?|駍Dk?|???|
      -419 : ????????????????????????????? -420 : ????????????????????Re???

      +417 :
    • BT|?????卦?????
      +418 : BT|??¥吻?|?¥吻?|???|
      +419 : ?????????卦????????卦??????????????? +420 : ?????????????????????刪叉???

      421 : -422 :
    • BE|????`????
      -423 : BE|`??Dk?|駍Dk?|???|
      -424 : ????????????????????????????? -425 : ????????????????????Re????????????`?? -426 : ???????BE???????`????????
      +422 :
    • BE|????匝昀????
      +423 : BE|匝??¥吻?|?¥吻?|???|
      +424 : ?????????卦????????卦??????????????? +425 : ?????????????????????刪叉????????????匝?? +426 : ???????BE????????匝????????
      427 :
      428 : 429 :
    • bg|???????????
      -430 : bg|?????Dk?|
      -431 : ????????????????h??????????????????????????????????? +430 : bg|?????¥吻?|
      +431 : ???更?????????????去????????????????更???????????????????更?? 432 : ??????????????????
      433 :
      434 : -435 :
    • BD|??????????????
      -436 : BD|???????k?|???|?????????|??k|
      -437 : ???????????????????????????????????
      +435 :
    • BD|?????????阪?????
      +436 : BD|阪???????吻?|阪???|?????????|??π|
      +437 : 阪???????????????????????????????????
      438 :
      439 : 440 :
    • BF|??????????????????
      -441 : BF|??????k?|
      -442 : ???????????????????????????????????? -443 : ??????????
      +441 : BF|??????吻?|
      +442 : ????????????????????????????????????? +443 : ??????????
      444 :
      445 : -446 :
    • BJ|??????????????
      -447 : BJ|????k?|?D?????k?|?D?????k?|?????k?|?????k?|???|FF|
      -448 : ?????????????????????k???Q??????????FF????? +446 :
    • BJ|??????????????
      +447 : BJ|????吻?|?¥?????吻?|?¥?????吻?|?????吻?|?????吻?|???|FF|
      +448 : ?????????????????????吻???㎝??????????FF????? 449 :
      450 :
      451 : -452 :
    • BB|?????s???????
      -453 : BB|??Dk?|?s???|駍Dk?|???|????|駍Dk?|???|FF|
      -454 : ?k??????s????V??????G???i??
      -455 : ?s???????????????????????????????????
      +452 :
    • BB|??????叫???????
      +453 : BB|??¥吻?|??叫???|?¥吻?|???|????|?¥吻?|???|FF|
      +454 : ?吻???????叫????向???????二???可??
      +455 : ??叫???????????????????????????????????????
      456 : 457 :
      -458 :
    • BM|??????????Ш?????
      -459 : BM|???????????k?|?????????|
      -460 : ??????Чk??
      -461 : ---????????
      -462 : ---?
      -463 : ---???
      -464 : ---??
      -465 : ---??
      -466 : ---????
      -467 : ---???
      +458 :
    • BM|??????????阪?????
      +459 : BM|?????阪??????吻?|?????????|
      +460 : ??????吻??
      +461 : ---?ㄩ????????
      +462 : ---?ㄩ?
      +463 : ---?ㄩ??
      +464 : ---?ㄩ??
      +465 : ---?ㄩ?
      +466 : ---?ㄩ??佣?
      +467 : ---?ㄩ??
      468 :
      469 : 470 :
    • BO|?????????????
      -471 : BO|??Dk?|駍Dk?|???|????|駍Dk?|???|FF|
      -472 : ?k??????s????V??????G???i??
      +471 : BO|??¥吻?|?¥吻?|???|????|?¥吻?|???|FF|
      +472 : ?吻???????叫????向???????二???可??
      473 :
      474 : -475 :
    • BS|????????V?????
      -476 : BS|????k?[0?19](%X)|???|??k?|???|??|q|
      -477 : ?????????????????????????????????
      -478 : ?????????????????????????????????????????BS??????????
      +475 :
    • BS|????????向?????
      +476 : BS|????吻?[0?19](%X)|???|??吻?|???|??|?〈|
      +477 : ???????????????????????????更???????
      +478 : ?????????????????????????????????????????BS??????????
      479 : -480 :
    • BU|????Pf??I??????
      -481 : ???????????????????????֢t???w????????r??????????????????????Pf??I?????????????????
      +480 :
    • BU|????·卯??兌??????
      +481 : ????????????????????????┤???ㄈ????????┴??????????????????????·卯??兌?????????????????
      482 :
      483 : -484 :
    • BV|?????????Nͨ?????
      -485 : BV|????????k?|???Nͧk?|
      -486 : ???Nͧk???
      -487 : ---?N
      -488 : ---?ԢN
      -489 : ---??N
      -490 : ---??N
      -491 : ---??N
      +484 :
    • BV|?????????﹫阪?????
      +485 : BV|阪????????吻?|阪???﹫吻?|
      +486 : 阪???﹫吻???
      +487 : ---?ㄩ?﹫
      +488 : ---?ㄩ﹫
      +489 : ---?ㄩ?﹫
      +490 : ---?ㄩ?﹫
      +491 : ---?ㄩ?﹫
      492 :
      493 : -494 :
    • BY|?????l??????
      -495 : BY|駍Dk?|??Dk?|???|????|??Dk?|???|????|?????????G?????V?v?????
      +494 :
    • BY|?????▍??????
      +495 : BY|?¥吻?|??¥吻?|???|????|??¥吻?|???|????|???????刺??二?????向?▔?????
      496 :
      497 :
    498 : @@ -1842,38 +1842,38 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) 500 : ?????????????? 501 : 502 :
      -503 :
    • BC|?????????????????????u??i?????????
      -504 : BC|k?[0?19](%X)|???(%s)|??k?(%X)|???(%X)|HP(%X)|???(%X)|???

      -505 : ?????s????????
      -506 : ---???????
      -507 : ---??????
      -508 : ---??????????????
      -509 : ---?????
      -510 : ---???????
      -511 : ---??????
      -512 : ---??????
      -513 : ---????????
      -514 : ---???????
      +503 :
    • BC|?????????????????????「??可?????????
      +504 : BC|吻?[0?19](%X)|????(%s)|??吻?(%X)|???(%X)|HP(%X)|???(%X)|???

      +505 : ?????ㄩ????????
      +506 : ---?????ㄩ??
      +507 : ---?????ㄩ?昀
      +508 : ---?????ㄩ?????????
      +509 : ---?????ㄩ?
      +510 : ---?????ㄩ??
      +511 : ---?????ㄩ??
      +512 : ---?????ㄩ?
      +513 : ---?????ㄩ??佣?
      +514 : ---?????ㄩ??
      515 :
      -516 :
    • BP|?????????????????o????????
      -517 : BP|?k?[0?19](%X)|???(%X)|?????(%X)|???

      -518 : ?????s????????
      -519 : ---????????
      -520 : ---???????e???????
      -521 : ---?????????????????
      +516 :
    • BP|????希?????????????????????
      +517 : BP|希?吻?[0?19](%X)|???(%X)|?????(%X)|???

      +518 : ?????ㄩ????????
      +519 : ---?????ㄩ希???
      +520 : ---?????ㄩ希?自?▄???????
      +521 : ---?????ㄩ????????????
      522 :
    523 :

    -524 : ?????????e??????????????????? +524 : ?????????叉??????????????????? 525 :

    526 :
      -527 :
    • BA|??????????????????????M??????????????????u???????
      +527 :
    • BA|??????????????????????Κ??????????????????「???????
      528 : BA|?????????(%X)|????(%X)| 529 :

      -530 : ?????????????O??????k????????????????? +530 : ?????????????Μ??????吻????????????????? 531 : ????????????????????????????????????? -532 : ??????????????????????????_?????????????????????
      -533 : ??????????u?????????????????????? -534 : ?????????????????? +532 : ??????????????????????????于??????????????????????
      +533 : ??????????「?????????????????????? +534 : ?????????????????? 535 :
    536 :
    537 :
    @@ -1893,16 +1893,16 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) 722 :
  • servertoclient I( string data );
    723 : (item)
    724 :
    -725 : ????ѩ?S I ?u??????????n?????e???????k??????? -726 : ??????????? +725 : ??????S I ?「??????????▋?????叉???????吻??????? +726 : 佃??????????? 727 : 728 :
    729 :
    string data -730 :
    ????ѩ? -731 : ????????????????? +730 :
    ?????? +731 : ???????????????????? 732 : ??????????????????????? -733 : ??????????S I???????i????Id????????????? -734 : ?????????????k????????Re???
    +733 : ??????????S I???????可????!卡????????????? +734 : 至?????????????吻????????刪κ???
    735 :
    736 :
    737 :
    @@ -1920,25 +1920,25 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 763 :
  • servertoclient SI( int fromindex, int toindex );
    764 : (SwapItem) -765 : ????????????????s?MI?i???? -766 : ??????????????Gl?????????? -767 : ?????????SI????????????? -768 : ????????(???????????)?? -769 : ???????????h?????????????Gl????? -770 : ????????????????????????????? -771 : ?????????u????????? -772 : ???????????????????????????? -773 : ?????????????????????????????????? -774 : ??????????????? -775 : ?k???k??????????????Gl??? +765 : ?????????????????MI?可???? +766 : ??????????????二ρ?????????? +767 : ??????????SI????????????? +768 : ??阪??????(?????????阪?????)?? +769 : ???????????去?????????????二ρ????? +770 : ?????????????????????????????? +771 : ???阪???????守????????? +772 : ???阪?????????????????????????? +773 : ?????????????????????????????????? +774 : ?????????阪??????? +775 : ?吻???吻?阪?????????????二ρ??? 776 : 777 :
    778 :
    int fromindex -779 :
    ?h????????????? +779 :
    ?去????????????? 780 :
    int toindex -781 :
    ???????????? +781 :
    ????????????? 782 :
    -783 : ???s??MI?i????? +783 : ??????MI?可????? 784 :
    785 :
    786 :
    @@ -1957,21 +1957,21 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) 806 :
  • servertoclient MSG( int aindex , string text , int color );
    807 : (MeSsaGe) 808 : ???????????????????????????????? -809 : ????????G??????????????????? -810 : ?????????????????T?????????????? +809 : ????????二??????????????????? +810 : ?????????????????T??????????????? 811 :
    812 :
    int aindex -813 :
    ??????????????????????{e???? +813 :
    ??????????????????????叻叉???? 814 : ?????????????????? 815 :
    string text -816 :
    ?????????????????????????????mm/dd hh:mm|text...|graphicsno|lv|name|itemgraphicsno -817 : ??????????????T????V?????????????????????k?? -818 : G????-1???????????????V????????mm/dd hh:mm|text|-1 -819 : ?????????????????????k???t?????? -820 : lv????????????????????q??t???????????????????? -821 : itemgraphicsno ?????????????k???t?????? +816 :
    ????????????????╱???????????????mm/dd hh:mm|text...|graphicsno|lv|name|itemgraphicsno +817 : ??????????????吋至????向??????????????????????吻?? +818 : 二????-1???????????????㎏????????mm/dd hh:mm|text|-1 +819 : ?????????????????????吻???宇?????? +820 : lv?????????????????????〈??宇???????????????????? +821 : itemgraphicsno ?????????????吻???宇?????? 822 :
    int color -823 :
    ? +823 :
    ? 824 :
    825 :
    826 :
    @@ -1993,23 +1993,23 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 851 :
  • servertoclient PME( int objindex, int graphicsno, int x, int y, int dir, int flg, int no, string cdata );
    852 : (PetMeSsaEffect) -853 : ?????????????K?????

    +853 : ?????????????仕?牙????

    854 :
    855 :
    int objindex -856 :
    ??????????k?? +856 :
    ??????????吻?? 857 :
    int graphicsno -858 :
    K????????k? +858 :
    仕????????吻? 859 :
    int x,y -860 :
    ???t????? +860 :
    ???ㄅ????? 861 :
    int dir; -862 :
    ???????????? +862 :
    ????????????? 863 :
    int flg 864 :
    ?????(0)??????(1)? 865 :
    int no -866 :
    ?ҧk?? +866 :
    ?吻?? 867 :
    string cdata -868 :
    C ?????V???????????????????????????????????? -869 : ????????????????????????????????? +868 :
    C ?????向???????????????????????????????????? +869 : ???╱?????????????????????????????? 870 : ????????C ?????????? 871 :
    872 :
    @@ -2041,31 +2041,31 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 882 :
  • servertoclient AB( string data );
    -883 : ???????????????????????u?? +883 : ???????????????????????「??? 884 :
    885 :
    string data -886 :
    ѩ??????????ѩ??????????????????q? +886 :
    ?????牙?????╱???????????????????????〈? 887 : ??????????????????????????? -888 : ??????????? -889 : ?????????????? -890 : ??|K?|...??????? +888 : ????希??????? +889 : ??????????????? +890 : ??|匠?|...??????? 891 : -892 : ???????????????? +892 : ?希??????????????? 893 :
    -894 : ????|q(??)|????k|duelpoint|???|??k? +894 : ????|?〈(更??)|????π|duelpoint|???|??吻? 895 : 896 :
    -897 : ?????? N??q????????? 4(N-1)+1k?? -898 : ??????????????????????????V?? -899 : ????????????????V?????q??????????????S????? -901 : ????0????????1???????????? -902 : ??k????????????????????? -903 : setup.cf?? servernumber=n ?n?k?????? -904 : {??u????q????????????q?AB -905 : ???????q?ѩ????????????? -906 : ??????????????q?ѩ?????? -907 : 2T?????????? +897 : ?????? N???〈????????? 4(N-1)+1吻?? +898 : ??????????????????????????㎏?? +899 : ????????????????㎏??????〈更??????????????????? +901 : ????0????????1???????????? +902 : ??π????????????????希????? +903 : setup.cf?? servernumber=n ?n?π?????? +904 : 叻???守?????〈????????????〈?AB +905 : ????????〈??????????????? +906 : ???????????????〈???????? +907 : 2冉?????????? 908 : 909 :
    910 :
    @@ -2081,8 +2081,8 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 913 :
  • servertoclient ABI( int num, string data );
    -914 : AB?Ol\?num ????????????k???????V????? -915 : data???AB?????
    +914 : AB?Μ▍吭?num ??希??????????吻???????向????? +915 : data???AB?????
    916 :
    917 :
    918 :
    @@ -2102,16 +2102,16 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) 1011 :
  • servertoclient TK( int index,string message ,int color);
    1012 :
    1013 :
    index -1014 :
    ????????????????-1 ????????? +1014 :
    ????????????????-1 ?????????╱ 1015 : ?????????????
    1016 :
    string -1017 :
    string ???, "|" ?2???????????????? -1018 : ????????2???????????????2?? +1017 :
    string ????, "|" ?2???????????????? +1018 : ???更?????2???????????阪?????2?? 1019 : ????????????????? 1020 : ????????????????????? 1021 :
      1022 :
    • "P" ???
      -1023 : ???????????????????????? +1023 : ??????????希?????????????? 1024 : ?????????????????????? 1025 :
       1026 : 		  "P|?????"
      @@ -2120,12 +2120,12 @@ int lssproto_ClientDispatchMessage(int fd ,char*line)
       1029 : 	          
       1030 : 	          F|charaindex|?????
       1031 : 	          
      -1032 : ???????????e???charaindex?????? -1033 : ?????????
      +1032 : ???更????????叉???charaindex?????? +1033 : ??????牙???
      1034 : 1035 :
    1036 :
    color -1037 :
    ????????e??? +1037 :
    ????????叉??? 1038 :
    1039 :
    1040 :
    @@ -2188,54 +2188,54 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 1135 :
  • servertoclient C( string data );
    1136 : (Characters) -1137 : ??????? CA ???????????????????? C +1137 : ??????? CA ????????????????????? C 1138 : ???????????????????????? 1139 :

    1140 :
    1141 :
    string data -1142 :
    ??????? ???3????????????? -1143 : ?????.???????????????S'|'????? +1142 :
    ??????? ???3????????????? +1143 : ?????.???????????????'|'????? 1144 : ???? 1145 : 1146 :
      -1147 :
    • ??S???????????12???
      -1148 : ??????? +1147 :
    • ?????????????12???
      +1148 : ???????? 1149 : 1150 : WHICHTYPE|CHARINDEX|X|Y|DIR|BASEIMG|LEVEL|NAMECOLOR|NAME|SELFTITLE|WALKABLE|HEIGHT|POPUPNAMECOLOR 1151 : ???????????????????????????
      1152 : -1153 : WHICHTYPE ???????????????????? -1154 : ????????????????????e???????
      +1153 : WHICHTYPE ???????????????????? +1154 : ????????????????????叉???????
      1155 :
       1156 : 		typedef enum
       1157 : 		{
       1158 : 		    CHAR_TYPENONE,          ?????
       1159 : 		    CHAR_TYPEPLAYER,        ?????
      -1160 : 		    CHAR_TYPEENEMY,         
      +1160 : 		    CHAR_TYPEENEMY,         ?
       1161 : 		    CHAR_TYPEPET,           ???
       1162 : 		    CHAR_TYPEDOOR,          ??
      -1163 : 		    CHAR_TYPEBOX ,          ?
      -1164 : 		    CHAR_TYPEMSG ,          ?Y
      +1163 : 		    CHAR_TYPEBOX ,          ??
      +1164 : 		    CHAR_TYPEMSG ,          ?即
       1165 : 		    CHAR_TYPEWARP ,         ??????
      -1166 : 		    CHAR_TYPESHOP ,         
      +1166 : 		    CHAR_TYPESHOP ,         ?
       1167 : 		    CHAR_TYPEHEALER ,       ????
      -1168 : 		    CHAR_TYPEOLDMAN ,       ?
      -1169 : 		    CHAR_TYPEROOMADMIN,     ۥh?
      +1168 : 		    CHAR_TYPEOLDMAN ,       ??
      +1169 : 		    CHAR_TYPEROOMADMIN,     自去?
       1170 : 		    CHAR_TYPETOWNPEOPLE,    ?????
      -1171 : 		    CHAR_TYPEDENGON,        ?\
      -1172 : 		    CHAR_TYPEADM,           ?\
      +1171 : 		    CHAR_TYPEDENGON,        ??吭
      +1172 : 		    CHAR_TYPEADM,           ??吭
       1173 : 		    CHAR_TYPETEMPLE,        Temple master
       1174 : 		    CHAR_TYPESTORYTELLER,   ???
      -1175 : 		    CHAR_TYPERANKING,       ۥh????????
      -1176 : 		    CHAR_TYPEOTHERNPC,      ??\???n?????NPC
      -1177 : 		    CHAR_TYPEPRINTPASSMAN,  ??????????NPC
      -1178 : 		    CHAR_TYPENPCENEMY,      ?e
      -1179 : 		    CHAR_TYPEACTION,        ??????T???NPC
      -1180 : 		    CHAR_TYPEWINDOWMAN,     ???????NPC??????)
      +1175 : 		    CHAR_TYPERANKING,       自去?????牙???
      +1176 : 		    CHAR_TYPEOTHERNPC,      ??兝???▋?????NPC
      +1177 : 		    CHAR_TYPEPRINTPASSMAN,  ????????牙??NPC
      +1178 : 		    CHAR_TYPENPCENEMY,      ?叉?
      +1179 : 		    CHAR_TYPEACTION,        ??????劫???NPC
      +1180 : 		    CHAR_TYPEWINDOWMAN,     ?????牙??NPC??????)
       1181 : 		    CHAR_TYPESAVEPOINT,     ???????
       1182 : 		    CHAR_TYPEWINDOWHEALER,  ?????????????
      -1183 : 		    CHAR_TYPEITEMSHOP,	    ?
      -1184 : 		    CHAR_TYPESTONESHOP,	    l?????????
      +1183 : 		    CHAR_TYPEITEMSHOP,	    ??
      +1184 : 		    CHAR_TYPESTONESHOP,	    吸?????????
       1185 : 		    CHAR_TYPEDUELRANKING,   DUEL?????NPC
       1186 : 		    CHAR_TYPEWARPMAN,	    ?????NPC
       1187 : 		    CHAR_TYPEEVENT,	    ????NPC
      @@ -2247,52 +2247,52 @@ int lssproto_ClientDispatchMessage(int fd ,char*line)
       1193 : 		}CHAR_TYPE;
       1194 : 		  
      1195 : -1196 : ???\???????NPC??????????? -1197 : ????????d?????u??????? -1198 : ????????????????????????? -1199 : ????????????????????????? +1196 : ???兝???????NPC???????????? +1197 : ????????吳?????「??????? +1198 : ????????????????????????? +1199 : ????????????????????????? 1200 : ?????????????????????????? -1201 : ????????ѩ???ѩ????????? -1202 : ???????????????????????? -1203 : ??????????????????uh??? +1201 : ??????牙???????????????? +1202 : ???????????????????牙????? +1203 : 阪??????????????????守去???? 1204 : ??????????? SELFTITLE?????????? -1205 : ?????S???????????????????? +1205 : ????????????????????????? 1206 : ?????????????????(CA)??????? -1207 : ?????CHARINDEX????????????{ -1208 : e???k??BASEIMG?????k??LEVEL??? -1209 : ?????(0????????k?NPC?????) -1210 : WALKABLE?1??????G?????????0??G +1207 : ??牙???CHARINDEX?????????????叻 +1208 : 叉???吻??BASEIMG?牙????吻??LEVEL??? +1209 : ?????(0??牙??????π?NPC?????) +1210 : WALKABLE?1??????二?????????0??二 1211 : ???????????HEIGHT???????????? -1212 : ?????e? +1212 : ?????叉? 1213 : -1214 : ???????q????? +1214 : ????????〈????? 1215 : ????????????????'|'?????? -1216 : ?????????????????????????' -1217 : |'?????????????????O??'|'?? -1218 : ??????????????q?????? -1219 : ?????????S??????????? -1220 : ????????????????????@e -1221 : ??????q????????
      +1216 : ?????????????????????????' +1217 : |'????更?????????????Μ??'|'?? +1218 : ????????????????〈?????? +1219 : ???????????????????? +1220 : ????????????????????? 叉 +1221 : ???????〈????????
      1222 : -1223 :
    • ??S???????????6???
      -1224 : ??????? +1223 :
    • ?????????????6???
      +1224 : ???????? 1225 : INDEX|X|Y|BASEIMG|LEVEL|ITEM1LINEINFO -1226 : ????????????????ѩ???? +1226 : ?????????????????????? 1227 : INDEX?????????????????INDEX???? -1228 : ??????????????X,Y????????? -1229 : ???t?BASEIMG????k??ITEM1LINEINFO?1? -1230 : info??????ѩ????????????? -1231 : ???ѩ???????????????? +1228 : ??????????????X,Y????????? +1229 : ???ㄅ?BASEIMG????吻??ITEM1LINEINFO?1? +1230 : info?牙???????????????????? +1231 : ?牙?????????????????????? 1232 : ?CA?????ITEM1LINEINFO????? -1233 : ??????????????????? +1233 : ????????????????????? 1234 : -1235 :
    • ??S???????????4???
      -1236 : ??????? +1235 :
    • ?????????????4???
      +1236 : ???????? 1237 : INDEX|X|Y|VALUE -1238 : ??????????????ѩ??????? -1239 : ?????INDEX,X,Y ??????i??VALUE ???? -1240 : ?????????????????????ѩ???? -1241 :
    • ??S???????????1???
      +1238 : ???????????????????????? +1239 : ?????INDEX,X,Y ??????可??VALUE ???? +1240 : ?????????????????????????? +1241 :
    • ?????????????1???
      1242 : INDEX 1243 : ??????C???????? 1244 :
    @@ -2315,49 +2315,49 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 1253 :
  • servertoclient CA( string data );
    1254 : (CharacterAction) -1255 : ???d?????????????֢t????? -1256 : ??????????????????? -1257 : ?????1????????????????????????? -1258 : ???????

    +1255 : ???吳?????????????┤????? +1256 : ????????????????????? +1257 : ?????1????????????????????????? +1258 : ???????

    1259 : 1260 :
    1261 :
    string data 1262 :
    CHARINDEX|X|Y|ACTION|PARAM1|PARAM2|PARAM3|PARAM4|....?? 1263 : ?????????????PARAM???????????? -1264 : ????????????????????X,Y??t?? -1265 : ???????????????t?e??? -1266 : ??????????????? +1264 : ????????????????????X,Y??ㄅ?? +1265 : ???????????????ㄅ?叉??? +1266 : ??更????????????? 1267 : 1268 : 1269 : -1270 : -1271 : -1272 : -1273 : -1274 : -1275 : -1276 : -1277 : -1278 : -1279 : -1280 : -1281 : -1282 : -1283 : -1284 : -1285 : -1286 : -1287 : -1288 : -1289 : -1290 : -1291 : -1292 : -1293 : -1294 : +1270 : +1271 : +1272 : +1273 : +1274 : +1275 : +1276 : +1277 : +1278 : +1279 : +1280 : +1281 : +1282 : +1283 : +1284 : +1285 : +1286 : +1287 : +1288 : +1289 : +1290 : +1291 : +1292 : +1293 : +1294 : 1295 : 1296 :
    ACTIONPARAM1PARAM2PARAM3PARAM4
    Stand:0?0~7
    Walk:1?0~7
    Attack:2?0~7
    Throw:3?0~7
    Damage:4?0~7
    Dead:5?0~7
    UseMagic:6?0~7
    UseItem:7?0~7
    Effect:8?0~7?????k?
    Down:10 (X??)?0~7
    Sit:11 (??)?0~7
    Hand:12 (??)?0~7
    Pleasure:13 (??)?0~7
    Angry:14 (W?)?0~7
    Sad:15 (v??)?0~7
    Guard:16 (???)?0~7
    actionwalk:17 (???????)?0~7
    nod:18 (????)?0~7
    actionstand:19 (???????????)?0~7
    Battle:20 (Pfѩ)?0~7BattleNo(-1 ????SideNoHelpNo?????????CA???????????
    Leader:21 (????ѩ)?0~70:? 1:
    Watch:22 (Pf?P)?0~70:? 1:
    namecolor:23(q?ѩ)?0~7q?k?
    Turn:30(??)?0~7
    Warp:31(???)?0~7
    Stand:0??0~7
    Walk:1??0~7
    Attack:2??0~7
    Throw:3??0~7
    Damage:4??0~7
    Dead:5??0~7
    UseMagic:6??0~7
    UseItem:7??0~7
    Effect:8??0~7?????吻?
    Down:10 (出??)??0~7
    Sit:11 (??)??0~7
    Hand:12 (??)??0~7
    Pleasure:13 (??)??0~7
    Angry:14 (凹?)??0~7
    Sad:15 (听??)??0~7
    Guard:16 (???)??0~7
    actionwalk:17 (??????卷?)??0~7
    nod:18 (????)??0~7
    actionstand:19 (???????????)??0~7
    Battle:20 (·卯?)??0~7BattleNo(-1 ??牙??SideNoHelpNo?????????CA牙????????????
    Leader:21 (?????)??0~70:牙? 1:牙
    Watch:22 (·卯?·)??0~70:牙? 1:牙
    namecolor:23(?〈??)??0~7?〈?吻?
    Turn:30(??阪?)??0~7
    Warp:31(???)??0~7
    -1297 : ACTION?k?????????Z??????? +1297 : ACTION?π????????牙??Ψ??????? 1298 :
    1299 :
    1300 :
    @@ -2376,10 +2376,10 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 1305 :
  • servertoclient CD( string data );
    1306 : (CharacterDelete) -1307 : data ??????,????????????? -1308 : ????????? -1309 : ??ID???????????????????????????? -1310 : ???? +1307 : data ??????,????????????? +1308 : 佃????????? +1309 : ??ID???????????????????????????? +1310 : ????? 1311 :
    1312 :
    1313 :
    @@ -2395,29 +2395,29 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 1315 :
  • servertoclient R( string data );
    1316 : (Radar) -1317 : ????????????????????????????? -1318 : ??????????????????????????? -1319 : ????10????????1?????

    +1317 : ?????????????????????????????? +1318 : ???????????????????????????? +1319 : ????10卷????????1希?????

    1320 : 1321 :
    1322 :
    string data -1323 :
    x ,y, kind ,???k?'|'???????????? +1323 :
    x ,y, kind ,???π?'|'???????????? 1324 : ???'|'???????? -1325 : x,y???????En?t?kind????????k???? -1326 : ??????????????e??????????? -1327 : ????????????????????????? +1325 : x,y???????‧▋?ㄅ?kind????????π???? +1326 : ???????????岌???叉??????????? +1327 : ????????????????????阪?????? 1328 : ????????? 1329 : -1330 : -1331 : +1330 : +1331 : 1332 : 1333 : 1334 : 1335 : 1336 :
    kind?k?
    E
    kind?π??
    E?
    P?????
    S?
    G??
    I????(???)
    1337 :
    -1338 : data??"12|22|E|13|24|P|14|28|P" -1339 : ??????????????? +1338 : data??ㄩ"12|22|E|13|24|P|14|28|P" +1339 : ??更????????????? 1340 :
    1341 :
    1342 :
    @@ -2434,121 +2434,121 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 1369 :
  • servertoclient S( string data );
    1370 : (Status) -1371 : ?????????????? -1372 : ???? ???????(??)? ????????????? -1373 : 1?????????????????2???????? -1374 : ???????????????????S??'|'????????? -1375 : 2???????????????
    +1371 : ?????????????? +1372 : ???? ??????更?(?更?)?? ????????????? +1373 : 1更?????????????希?????2更???????? +1374 : ??????????????????????'|'????????? +1375 : 2????????????????
    1376 :
    1377 :
      -1378 :
    • P u?????

      +1378 :
    • P 「?????

      1379 : kubun hp maxhp mp maxmp str tough exp maxexp exp 1380 : level attackpower deffencepower 1381 : fixdex fixcharm fixluck fixfireat fixwaterat fixearthat fixwindat -1382 : gold ???? -1383 : ??index q ??
      +1382 : gold 至???? +1383 : ??index ?〈 ??
      1384 : -1385 : ????? '|' ??????q????? +1385 : ????? '|' ???????〈????? 1386 : ?????????? -1387 : ??S????????G????
      -1388 : ?????k??????
      -1389 : kubun ???V?????q???????? -1390 : ?????????????????????????k?V????????? -1391 : ?????????hp?Maxhp?kubun ????????t???????
      +1387 : ??????????二????
      +1388 : ?????π??????
      +1389 : kubun ???向?????〈???????? +1390 : ?????????????????????????吻?向????????? +1391 : ?????????hp?Maxhp?kubun ????????宇???????
      1392 : 1393 : -1394 : +1394 : 1395 : -1396 : +1396 : 1397 : -1398 : +1398 : 1399 : -1400 : -1401 : -1402 : -1403 : +1400 : +1401 : +1402 : +1403 : 1404 : 1405 : -1406 : -1407 : -1408 : +1406 : +1407 : +1408 : 1409 : -1410 : +1410 : 1411 : 1412 : 1413 : 1414 : -1415 : +1415 : 1416 : -1417 : -1418 : +1417 : +1418 : 1419 :
      kununint
      Hp(l?)hpint
      Hp(▍?)hpint
      MaxHpint
      Mp(???)int
      Mp(???)int
      MaxMpint
      Vital(l?)int
      Vital(▍?)int
      Str(??)int
      Tough(Ǧ?)int
      Dex(??)int
      Exp(??k)expint
      MaxExp(??????k)int
      Tough(舌?)int
      Dex(???)int
      Exp(??π)expint
      MaxExp(??????π)int
      Level(???)int
      Attack(???)int
      Defense(駍?)int
      fQuick(???)int
      fCharm(u?)int
      Defense(??)int
      fQuick(????)int
      fCharm(?)int
      fLuck(?)int
      fEarth()fixearthatint
      fEarth()fixearthatint
      fWater(?)int
      fFire(?)int
      fWid(?)fixwindatint
      Gold(??)int
      ??indexint
      ??indexint
      ????????int
      q??
      ????
      ?〈更??
      ??更??
      -1420 : ?l?( char ???????? )
      +1420 : ?▍?( char ????????? )
      1421 : 1422 : P10|20|10|20|10|10|10|1|2|13|13|1|100|10|???|abc|def 1423 : 1424 :

      -1425 :
    • C ?

      +1425 :
    • C ?火

      1426 : floor maxx maxy x y
      -1427 : ? | ???????
      -1428 : ?l?( char ???????? )
      +1427 : ? | ???????
      +1428 : ?▍?( char ????????? )
      1429 : 1430 : C1024|100|100|10|20 1431 : -1432 : ?????????ID1024, ???100x100 X 10,Y 20??? -1433 : ???????????????????????????? -1434 : ????????????????l??????????? -1435 : ????????????????????t?????? -1436 : ?????????????h????????????? -1437 : ???????????????k???????????? +1432 : ?????????ID1024, ???100x100 X 10,Y 20??? +1433 : ????????????????????????????? +1434 : ????????火????????ρ??????????? +1435 : ??????????卷???????????ㄅ?????? +1436 : ?????????????ν????????????? +1437 : ???????????????π???????????? 1438 : 1439 : 1440 :

      -1441 :
    • I u????

      +1441 :
    • I 「????

      1442 : (????1)|(????2)...(????n)
      -1443 : ????????????????? +1443 : ???????????????????? 1444 : ?????????????????6??????????? -1445 : ???????????????
      +1445 : ????????????????
      1446 :
      -1447 : q|q2|????|?????C|???k?|??u?|?n|???????|????
      +1447 : ?〈|?〈2|????|?????。?|???吻?|??守?|?▋|???????|????
      1448 :
      1449 :
        -1450 :
      • ?????????h?????? -1451 :
      • q2??????????????u??V??e? -1452 : ?????????????2???V???? -1453 :
      • ?????q??v????? -1454 :
      • ?????C? -1455 :
      • ???k?????k?? -1456 :
      • ??u????????????????????u??V????? -1457 : ????????????????e???????
        +1450 :
      • ???????????去??阪????? +1451 :
      • ?〈2???????????????守??向??叉? +1452 : ?????????????2???向???? +1453 :
      • ??????〈??▔????? +1454 :
      • ?????。?? +1455 :
      • ???吻?????吻?? +1456 :
      • ??守????????????????????守??向????? +1457 : ????????????????叉???????
        1458 :
         1459 : 			typedef enum
         1460 : 			{
        -1461 : 				ITEM_FIELD_ALL,			????????
        -1462 : 				ITEM_FIELD_BATTLE,		Pf???
        -1463 : 				ITEM_FIELD_MAP,			G?????
        +1461 : 				ITEM_FIELD_ALL,			????????
        +1462 : 				ITEM_FIELD_BATTLE,		·卯???
        +1463 : 				ITEM_FIELD_MAP,			二?????
         1464 : 
         1465 : 			}ITEM_FIELDTYPE;
         1466 : 	          
        1467 :
        -1468 :
      • ?n??????????????????n?V????? -1469 : ????????????e??????? +1468 :
      • ?▋??????????????????▋?向????? +1469 : ????????????叉??????? 1470 :
         1471 : 			typedef enum
         1472 : 			{
        -1473 : 				ITEM_TARGET_MYSELF,		??
        -1474 : 				ITEM_TARGET_OTHER,		\????)
        -1475 : 				ITEM_TARGET_ALLMYSIDE,		sul
        -1476 : 				ITEM_TARGET_ALLOTHERSIDE,	?Dul
        -1477 : 				ITEM_TARGET_ALL,		u?
        +1473 : 				ITEM_TARGET_MYSELF,		希??
        +1474 : 				ITEM_TARGET_OTHER,		兝??希??)
        +1475 : 				ITEM_TARGET_ALLMYSIDE,		?「▍
        +1476 : 				ITEM_TARGET_ALLOTHERSIDE,	?¥「▍
        +1477 : 				ITEM_TARGET_ALL,		「?
         1478 : 			}ITEM_TARGETTYPE;
         1479 : 		
        -1480 : ?????100?K?????????n????
        -1481 :
      • ???????????????????????? -1482 :
      • ????????????????????n?????G??
        +1480 : ?????100?℉?????????▋????
        +1481 :
      • ????????????????????????? +1482 :
      • ????????????????????▋?????二??
        1483 : -1484 : -1485 : +1484 : +1485 : 1486 : 1487 :
        0bit??????????u????????????u?????????????
        1Bit????????????????
        0bit??????????守????????????守?????????????
        1Bit????????????????
        2Bit???????????????1????????
        1488 :
        @@ -2556,66 +2556,66 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) 1490 :
      1491 :
      1492 : ??????????????
      -1493 : ?l?( char ???????? )
      +1493 : ?▍?( char ????????? )
      1494 : -1495 : I?? ? |str+2|1|??\|??|10|2|0 +1495 : I?? ? |str+2|1|??\|??|10|2|0 1496 : -1497 : ?????k??s???k? +1497 : ?????π?????π? 1498 : 1499 : 1500 : 1501 : 1502 : 1503 :
      1????A
      2????B
      3????C
      4????D
      -1504 : ?????????????????????5??????? -1505 : ????????S?????֢t???????? +1504 : ???????????牙????希??????5??????? +1505 : ?????????????┤???????? 1506 : 1507 :

      -1508 :
    • S u???

      +1508 :
    • S 「???

      1509 : (???0)|(???1)|(???2) ... (???n)
      -1510 : ??i?????????????????????? +1510 : ??可????????????????希??????? 1511 : ?????? ||| ???????? -1512 : ?????????
      -1513 : ????????|???
      +1512 : ??????????
      +1513 : ????????|???
      1514 : ????
      -1515 : ?l?( char ???????? )
      +1515 : ?▍?( char ????????? )
      1516 : 1517 : S10|2|20|2||| 1518 : 1519 : 1520 :

      -1521 :
    • T ?

      -1522 : (?0)|(?1)|(?2) ... (?n)

      -1523 : ??????????? '|' ??Q??????Q??? -1524 : ????????????????????????? +1521 :
    • T ?

      +1522 : (?0)|(?1)|(?2) ... (?n)

      +1523 : ??????????? '|' ??㎝??????㎝??? +1524 : ?????????????????????????希? 1525 : ???
      -1526 : ???????????
      -1527 : q
      +1526 : ????????????
      +1527 : ?〈
      1528 : ??????
      -1529 : ?l?( ?????? char ????????? )
      +1529 : ?▍?( ?????? char ?????????? )
      1530 : 1531 : T??|????? 1532 : 1533 : ???????????
      1534 : 1535 :
      -1536 :
    • M ??????

      -1537 : ????????????????`???????(?? -1538 : k)????????(?k??)????????????? -1539 : ??????????u???????????????? -1540 : ??????????j??????????{?HP , -1541 : MP,EXP?k??????????????????????? -1542 : ?????M????????2???????????HP? -1543 : ??k , K?????MP??????EXP???? -1544 : ????l?????? +1536 :
    • M ?希?????

      +1537 : ????????????????池呎?阪??????(?? +1538 : π)????????(??π??)????????????? +1539 : ?阪?????????「???????????????? +1540 : ???????????▏??????????叻?HP , +1541 : MP,EXP?π??????????????????????? +1542 : ?????M????????2更????????????HP? +1543 : ??π , ?匠?????MP???????EXP???? +1544 : ????▍?????? 1545 : 1546 : M54|210|8944909 1547 : -1548 : ?????HP???k?54?MP???k?210???k?8944909 -1549 : ???????????3??{??T??????? -1550 : ????????????????????M??????? -1551 : ??P?????u?????????????????? -1552 : ?????????????????????????? +1548 : ?????HP???π?54?MP???π?210???π?8944909 +1549 : ???????????3??叻?阪?池冉??????? +1550 : ?????????????????????M??????? +1551 : ??P?????「??????????????????? +1552 : ?????????????????????????? 1553 : ???? 1554 : 1555 :

      @@ -2623,112 +2623,112 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) 1557 : ??????????????index?????????? 1558 : D1000|912766409???????? 1559 :

      -1560 :
    • E ???????????)|(?)

      -1561 : ???????????????n/100
      -1562 : ???????????k?????????????+1???????????????Re??? -1563 : ??????k??????????? -1564 : ??????????????????????????????? +1560 :
    • E ???????????)|(?)

      +1561 : ???????????????n/100
      +1562 : ???????????π??????????卷卷???+1???????????????刪κ??? +1563 : ??????π??????????? +1564 : ??????????????????????????????? 1565 : 1566 :

      -1567 :
    • J0 ?J6 ????

      -1568 : ?????????
      -1569 : 0 ?6 ??????????????n?????????????d?q???ߦ? -1570 : ???????e?????????u??????ѩ???
      +1567 :
    • J0 ?J6 ?????

      +1568 : ??????????
      +1569 : 0 ?6 ???????????????▋??????????????卡?司???此? +1570 : ????????叉??????????「???????????
      1571 : J0|kubun|mp|field|target|name|comment
      1572 : ????????????????
      -1573 : kubun ???????????????????????????????????? -1574 : mp??????
      -1575 : field????????????????????e???????
      +1573 : kubun ?????????????????????????????????????? +1574 : mp?????牙??
      +1575 : field????????????????????叉???????
      1576 :
       1577 : 		typedef enum
       1578 : 		{
      -1579 : 			MAGIC_FIELD_ALL,		????????
      -1580 : 			MAGIC_FIELD_BATTLE,		Pf???
      -1581 : 			MAGIC_FIELD_MAP,		G?????
      +1579 : 			MAGIC_FIELD_ALL,		????????
      +1580 : 			MAGIC_FIELD_BATTLE,		·卯???
      +1581 : 			MAGIC_FIELD_MAP,		二?????
       1582 : 			
       1583 : 		}MAGIC_FIELDTYPE;
       1584 : 	    
      -1585 : target????n?????????????????e???????
      +1585 : target????▋?????????????????叉???????
      1586 :
       1587 : 		typedef enum
       1588 : 		{
      -1589 : 			MAGIC_TARGET_MYSELF,		??
      -1590 : 			MAGIC_TARGET_OTHER,		\????)
      -1591 : 			MAGIC_TARGET_ALLMYSIDE,		sul
      -1592 : 			MAGIC_TARGET_ALLOTHERSIDE,	?Dul
      -1593 : 			MAGIC_TARGET_ALL,		u?
      -1594 : 			MAGIC_TARGET_NONE,		M?k????\??????
      -1595 : 			MAGIC_TARGET_OTHERWITHOUTMYSELF,\??????)
      -1596 : 			MAGIC_TARGET_WITHOUTMYSELFANDPET, ??????
      -1597 : 			MAGIC_TARGET_WHOLEOTHERSIDE,    ©????ul
      +1589 : 			MAGIC_TARGET_MYSELF,		希??
      +1590 : 			MAGIC_TARGET_OTHER,		兝??希??)
      +1591 : 			MAGIC_TARGET_ALLMYSIDE,		?「▍
      +1592 : 			MAGIC_TARGET_ALLOTHERSIDE,	?¥「▍
      +1593 : 			MAGIC_TARGET_ALL,		「?
      +1594 : 			MAGIC_TARGET_NONE,		Κ?︻???????????
      +1595 : 			MAGIC_TARGET_OTHERWITHOUTMYSELF,兝??希????)
      +1596 : 			MAGIC_TARGET_WITHOUTMYSELFANDPET, 希??????
      +1597 : 			MAGIC_TARGET_WHOLEOTHERSIDE,    阬?????「▍
       1598 : 		}MAGIC_TARGETTYPE;
       1599 : 	    
      -1600 : ?????100?K?????????n????
      +1600 : ?????100?℉?????????▋????
      1601 :
      -1602 : name??
      -1603 : comment????C?
      +1602 : name???
      +1603 : comment????。??
      1604 :
      1605 :
      1606 :
    • N0 ? N3 ????????

      -1607 : ?????????ѩ?????
      +1607 : ???????????????
      1608 : N0|kubun|level|charaindex|maxhp|hp|mp|name 1609 :
      -1610 : kubun ???????????????????????????????u??????
      -1611 : 2???????????????????????1bit ? level 2bit ?charaindex??? -1612 : ??????
      +1610 : kubun ?????????????????????????????????「??????
      +1611 : 2???????????????????????1bit ? level 2bit ?charaindex??? +1612 : ??????
      1613 : charaindex ????charaindex
      -1614 : level????????
      -1615 : maxhp????MAXHP
      -1616 : hp???????HP
      -1617 : mp??????
      -1618 : name ????q?
      +1614 : level????????
      +1615 : maxhp????MAXHP
      +1616 : hp???????HP
      +1617 : mp??????
      +1618 : name ?????〈?
      1619 :

      1620 : 1621 :
    • K0?K4 ???????

      1622 : hp maxhp mp maxmp str tough exp 1623 : level attackpower deffencepower 1624 : fixdex fixcharm fixluck fixfireat fixwaterat fixearthat fixwindat -1625 : q status
      -1626 : K???0?4?e?????????e????? -1627 : ?????????0????????????????? -1628 : ?????????1??u?????? -1629 : 2???????????????????????1bit ? hp 2bit ?maxhp??? -1630 : ??????
      -1631 : ????? '|' ??????q????? +1625 : ?〈 status
      +1626 : K???0?4?叉?????????叉????? +1627 : ?????????0?????????????????? +1628 : ?????????1??「?????? +1629 : 2???????????????????????1bit ? hp 2bit ?maxhp??? +1630 : ??????
      +1631 : ????? '|' ???????〈????? 1632 : ?????????? -1633 : ??S????????G????
      -1634 : ?????k?????? +1633 : ??????????二????
      +1634 : ?????π?????? 1635 : -1636 : -1637 : -1638 : -1639 : -1640 : +1636 : +1637 : +1638 : +1639 : +1640 : 1641 : 1642 : -1643 : -1644 : +1643 : +1644 : 1645 : 1646 : -1647 : -1648 : -1649 : -1650 : +1647 : +1648 : +1649 : +1650 : 1651 : 1652 : 1653 : -1654 : -1655 : -1656 : -1657 : +1654 : +1655 : +1656 : +1657 : 1658 :
      No.(k?)int
      islive(?)int
      GRA(??k?)int
      Hp(o??)int
      MaxHp(?o??)int
      No.(吻?)int
      islive(?)int
      GRA(??吻?)int
      Hp(▊??)int
      MaxHp(??▊??)int
      Mpint
      MapMpint
      Exp(??k)int
      MaxExp(??????k)int
      Exp(??π)int
      MaxExp(??????π)int
      Level(???)int
      Attack(???)int
      Defense(駍?)int
      Quick(??)int
      Ai(?ߥT)int
      fEarth()int
      Defense(??)int
      Quick(???)int
      Ai(?冉)int
      fEarth()int
      fWater(?)int
      fFire(?)int
      fWid(?)int
      Slot(?\?)int
      q??????int
      q??
      ?????????
      Slot(??吭?)int
      ?〈阪??????int
      ?〈更??
      ????????更??
      1659 :
      -1660 : q???????????????q???????????????? -1661 : 1 ???ϣ??????????
      +1660 : ?〈阪????????????????〈?阪??????????????? +1661 : 1 ??阪???????阪?自?????
      1662 :
      1663 :
      1664 :
      -1665 : ?l?( char ???????? )
      +1665 : ?▍?( char ????????? )
      1666 : 1667 : P10|20|10|20|10|10|10|1|2|13|13|1|100|10|???|PC 1668 : @@ -2737,39 +2737,39 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) 1671 : 1672 :
    • W0?W4 ????????

      1673 : W0|skillid|field|target|name|comment| x 7
      -1674 : W0 ? W4 ??????????n??????
      -1675 : petskillid ????????k??pet_skillinfo.h?e???????
      -1676 : field ??????????????????????????e???????
      +1674 : W0 ? W4 ??????????▋??????
      +1675 : petskillid ????????吻??pet_skillinfo.h?叉???????
      +1676 : field ??????????????????????????叉???????
      1677 :
       1678 : 		typedef enum
       1679 : 		{
      -1680 : 			PETSKILL_FIELD_ALL,		????????
      -1681 : 			PETSKILL_FIELD_BATTLE,		Pf???
      -1682 : 			PETSKILL_FIELD_MAP,		G?????
      +1680 : 			PETSKILL_FIELD_ALL,		????????
      +1681 : 			PETSKILL_FIELD_BATTLE,		·卯???
      +1682 : 			PETSKILL_FIELD_MAP,		二?????
       1683 : 
       1684 : 		}PETSKILL_FIELDTYPE;
       1685 : 	  
       1686 : 	  
      -1687 : target ?????n????????????????????e???????
      +1687 : target ?????▋????????????????????叉???????
      1688 :
       1689 : 		typedef enum
       1690 : 		{
      -1691 : 			PETSKILL_TARGET_MYSELF,		??
      -1692 : 			PETSKILL_TARGET_OTHER,		\????)
      -1693 : 			PETSKILL_TARGET_ALLMYSIDE,	sul
      -1694 : 			PETSKILL_TARGET_ALLOTHERSIDE,	?Dul
      -1695 : 			PETSKILL_TARGET_ALL,		u?
      -1696 : 			PETSKILL_TARGET_NONE,		M?k????\??????
      -1697 : 			PETSKILL_TARGET_OTHERWITHOUTMYSELF,\??????) 
      -1698 : 			PETSKILL_TARGET_WITHOUTMYSELFANDPET, ??????
      +1691 : 			PETSKILL_TARGET_MYSELF,		希??
      +1692 : 			PETSKILL_TARGET_OTHER,		兝??希??)
      +1693 : 			PETSKILL_TARGET_ALLMYSIDE,	?「▍
      +1694 : 			PETSKILL_TARGET_ALLOTHERSIDE,	?¥「▍
      +1695 : 			PETSKILL_TARGET_ALL,		「?
      +1696 : 			PETSKILL_TARGET_NONE,		Κ?︻???????????
      +1697 : 			PETSKILL_TARGET_OTHERWITHOUTMYSELF,兝??希????) 
      +1698 : 			PETSKILL_TARGET_WITHOUTMYSELFANDPET, 希??????
       1699 : 		}PETSKILL_TARGETTYPE;
       1700 : 	  
      1701 :
      -1702 : name ???q?
      -1703 : comment?????n??C?
      -1704 : target|name|comment| ??????????????? -1705 : ?????????N????I?????"|"???Q??? -1706 : ???????????????
      +1702 : name ????〈?
      +1703 : comment?????▋??。??
      +1704 : target|name|comment| ?????希?????????? +1705 : ?????????代????兌?????"|"???㎝??? +1706 : ???????????牙????
      1707 :

      1708 : 1709 :
    @@ -2789,27 +2789,27 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 1715 :
  • servertoclient D( int category , int dx , int dy , string data );
    1716 : (Display) -1717 : ????????

    +1717 : ?????牙????

    1718 : 1719 :
    1720 :
    int category -1721 :
    ?????? +1721 :
    ??牙???? 1722 : -1723 : -1724 : -1726 : +1723 : +1724 : +1726 : 1728 :
    k?
    1???????????data?? -1725 : ?????k?
    2?????????data???? -1727 : ???k
    π??
    1希???????????data?更? +1725 : ?????π?
    2希?????????data?更??? +1727 : ???π
    1729 :
    int dx -1730 :
    ?????????????n?tX??a???????D -1731 : ???t??????????k?????t???? -1732 : ???? +1730 :
    ?????????????▋?ㄅX??吧????????伶 +1731 : ???ㄅ??????????π???????ㄅ???? +1732 : 丙???? 1733 :
    int dy -1734 :
    ?n?tY +1734 :
    ?▋?ㄅY 1735 :
    string data -1736 :
    ??????category???????? -1737 : ???????????????? +1736 :
    牙????????category???????? +1737 : ??更?????????????? 1738 : ????? 1739 :
    1740 :
    @@ -2833,14 +2833,14 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 1760 :
  • servertoclient FS( int flg);
    -1761 : (FlgSet)PS?????????????????֢t??????????

    +1761 : (FlgSet)PS????????????????希?┤??????????

    1762 :
    1763 :
    int flg 1764 :
    0 bit 0: ??Off 1: ??On
    -1765 : ???t??1 bit 0: PfN??off 1: PfN??On
    +1765 : ?????1 bit 0: ·卯代??off 1: ·卯代??On
    1766 : 2 bit 0: DUEL off 1: DUEL On
    -1767 : 3 bit 0: ?G???????? 1: ??????????????????
    -1768 : 4 bit 0: ??OK 1: ???r
    +1767 : 3 bit 0: ?二???????? 1: ???????????????????
    +1768 : 4 bit 0: ???OK 1: ????呀
    1769 :
    1770 :
    1771 :
    @@ -2856,7 +2856,7 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 1785 :
  • servertoclient HL( int flg);
    -1786 : (HeLp)HL????????????????Pf????????????????????

    +1786 : (HeLp)HL????????????????·卯????????阪????????????

    1787 :
    1788 :
    int flg 1789 :
    0: ??????Off 1: ??????On
    @@ -2875,15 +2875,15 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 1808 :
  • servertoclient PR( int request, int result);
    -1809 : (PartyRequest)????????PR?????????????????????????? -1810 : ?????t???I???????? +1809 : (PartyRequest)????????PR?????????????????????????? +1810 : ??????﹀???兌???????? 1811 :

    1812 : 1813 :
    1814 :
    int request -1815 :
    0: ? 1:V +1815 :
    0: ?? 1:向? 1816 :
    int result -1817 :
    0: 1: ? +1817 :
    0: ? 1: ? 1818 :
    1819 :
    1820 :
    @@ -2902,17 +2902,17 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 1835 :
  • servertoclient KS( int petarray,int result);
    -1836 : ???????KS?n???????????????????????? +1836 : ???????KS?▋??刺????????╱?????????????? 1837 : ????????????????????? -1838 : ???Pf???k???????????????????????t??????k????????? +1838 : ???·卯???︻????????????????????????ㄅ??????︻?????????? 1839 : ??????????????? 1840 :

    1841 : 1842 :
    1843 :
    int petarray -1844 :
    ????k? +1844 :
    ????吻? 1845 :
    int result -1846 :
    0: ????k????????? 1:? +1846 :
    0: ?????︻?????????? 1:? 1847 :
    1848 :
    1849 :
    @@ -2930,24 +2930,24 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 1935 :
  • servertoclient PS( int result, int havepetindex, int havepetskill, int toindex);
    -1936 : (PetSkill use result)?????????????????PS?n?????????? -1937 : result ??????????PS?n????????????????????? +1936 : (PetSkill use result)?????????????????PS?▋?????????? +1937 : result ??????????PS?▋????????????????????? 1938 : 1939 :
    1940 :
    int result -1941 :
    ???0: 1:? +1941 :
    ???0: ? 1:? 1942 :
    int havepetindex -1943 :
    ?k??????????? +1943 :
    ?吻??????????? 1944 :
    int havepetskill -1945 :
    ?k????????? +1945 :
    ?吻????????? 1946 :
    int toindex -1947 :
    M??????????????????????index???????????????? +1947 :
    Κ???????????????????????index???????????????? 1948 :
    -1949 : 	      = 0
    +1949 : 	  希    = 0
     1950 : 	  ???  = 1 ?5
    -1951 : 	  ??    = 6 ?10 ?S N ?0?4?n??????????
    +1951 : 	  ??    = 6 ?10 ?S N ?0?4?▋??希????????
     1952 : 	
    -1953 : n?u??????????????-1?????
    +1953 : ▋?「????希??????????-1?????
    1954 :
    1955 : 1956 :
    @@ -2974,7 +2974,7 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 2011 :
  • servertoclient SKUP( int point );
    2012 : (SKillUP) -2013 : ????????????????Gl????????????e??? +2013 : ????????????????二ρ????????????叉??? 2014 :
    2015 :
    2016 :
    @@ -2991,34 +2991,34 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 2047 :
  • servertoclient WN( int windowtype, int buttontype, int seqno, int objindex, string data );
    2048 : (Window)
    -2049 : ?????????????????????Gl???
    +2049 : ??????牙???????????????二ρ???
    2050 :
    2051 :
    2052 :
    int windowtype -2053 :
    ?????????????????????????????buttontype ?????? -2054 : ???????e???
    -2055 : ???????????@e??????
    +2053 :
    ??????????????????????牙???????buttontype ??????? +2054 : ???????叉???
    +2055 : ??????????? 叉??????
    2056 :
     2057 : 		typedef enum
     2058 : 		{
     2059 : 			WINDOW_MESSAGETYPE_MESSAGE,			???????
    -2060 : 			WINDOW_MESSAGETYPE_MESSAGEANDLINEINPUT,		????????V?
    -2061 : 			WINDOW_MESSAGETYPE_SELECT,			k?????
    -2062 : 			WINDOW_MESSAGETYPE_PETSELECT,			???k?????
    -2063 : 			WINDOW_MESSAGETYPE_PARTYSELECT,			??k?????
    -2064 : 			WINDOW_MESSAGETYPE_PETANDPARTYSELECT,		??????k?????
    -2065 : 			WINDOW_MESSAGETYPE_ITEMSHOPMENU,		???????????
    -2066 : 			WINDOW_MWSSAGETYPE_ITEMSHOPYMAIN,		??????????
    -2067 : 			WINDOW_MESSAGETYPE_LIMITITEMSHOPMAIN,		???M???????????????
    +2060 : 			WINDOW_MESSAGETYPE_MESSAGEANDLINEINPUT,		????????向?
    +2061 : 			WINDOW_MESSAGETYPE_SELECT,			︻??????
    +2062 : 			WINDOW_MESSAGETYPE_PETSELECT,			???︻??????
    +2063 : 			WINDOW_MESSAGETYPE_PARTYSELECT,			??︻??????
    +2064 : 			WINDOW_MESSAGETYPE_PETANDPARTYSELECT,		??????︻??????
    +2065 : 			WINDOW_MESSAGETYPE_ITEMSHOPMENU,		????????????
    +2066 : 			WINDOW_MWSSAGETYPE_ITEMSHOPYMAIN,		???????????
    +2067 : 			WINDOW_MESSAGETYPE_LIMITITEMSHOPMAIN,		???﹐???????????????
     2068 : 			WINDOW_MESSAGETYPE_PETSKILLSHOP,		?????????????
    -2069 : 			WINDOW_MESSAGETYPE_WIDEMESSAGE,			???????????
    -2070 : 			WINDOW_MESSAGETYPE_WIDEMESSAGEANDLINEINPUT,	????????V?????
    +2069 : 			WINDOW_MESSAGETYPE_WIDEMESSAGE,			?????????????
    +2070 : 			WINDOW_MESSAGETYPE_WIDEMESSAGEANDLINEINPUT,	????????向???????
     2071 : 
     2072 : 		}WINDOW_MESSAGETYPE;
     2073 : 	  
    2074 : 2075 :
    int buttontype -2076 :
    ??????e??????????????e???????
    +2076 :
    ??????叉??????????????叉???????
    2077 :
     2078 : 		#define		WINDOW_BUTTONTYPE_NONE		(0)
     2079 : 		#define		WINDOW_BUTTONTYPE_OK		(1 << 0)
    @@ -3028,80 +3028,80 @@ int lssproto_ClientDispatchMessage(int fd ,char*line)
     2083 : 		#define		WINDOW_BUTTONTYPE_PREV		(1 << 4)
     2084 : 		#define		WINDOW_BUTTONTYPE_NEXT		(1 << 5)
     2085 :             
    -2086 : ?????????????????YES????NO?????????
    +2086 : ??????????????????YES????NO?????????
    2087 : WINDOW_BUTTONTYPE_YES | WINDOW_BUTTONTYPE_NO (=12)
    2088 : ???? 2089 : 2090 :
    int seqno -2091 :
    ????????k?????????????? -2092 : ???????WN?????????????????????k???????? -2093 : ?????????????NPC????????????Re???????? +2091 :
    ????????吻?????????????? +2092 : ???????WN???????????????刺??????吻?????刺???? +2093 : ?????????????NPC?????????????刪κ???????? 2094 :
    int objindex -2095 :
    ?????????????NPC???index??t?????? -2096 : ????????????-1???V????? -2097 : ?????????????V???WN?????????k?????????? +2095 :
    ?????????????NPC???index??宇?????? +2096 : ????????????-1???向????? +2097 : ?????????????向???WN?????????π?????刺????? 2098 :
    string data -2099 :
    ???????????????????"\n"??????????s???? -2100 : ??????????????????????????h??????? -2101 : k????????????"\n"????????????????????? -2102 : ?????????????????????????e?????Q?? -2103 : ????????????????k???????q???? 1 ?? -2104 : k???????k????WN???????? -2105 :
    string data(??? -2106 :
    ???????????????????"\n"??????????s???? -2107 : ??????????????????????????h??????? -2108 : ????????"?"????????? +2099 :
    ?????????????????????"\n"?????????????? +2100 : ????????????????牙??????????去???????? +2101 : ︻?????????????"\n"????????????????????? +2102 : ?????????????????????????叉?????㎝?? +2103 : ????????????????︻????????〈???? 1 ?? +2104 : 吻???????︻?????WN??刺????刺?? +2105 :
    string data(???? +2106 :
    ?????????????????????"\n"?????????????? +2107 : ????????????????牙??????????去???????? +2108 : ?????????"?"????????? 2109 :

    ????
    -2110 : ????????????????q???????????????1?? -2111 : ?q???????????????k?????????K??????????_?????? -2112 : ?????????????????????????????????????????????????? -2113 : kh???k??C?????????????????????????kh???k??C +2110 : ???????????ㄩ?????〈????????????ㄩ???ㄩ1?? +2111 : ???〈????????????????︻??????????℉??????????囝?????? +2112 : ???????????????????????????????????ㄩ?????ㄩ??????????? +2113 : πν???吻??。???????????????????????????πν???吻??。? 2114 :

    -2115 : 0|1|????????|?????????????|???????????|?????|???????????? -2116 : K??????????|o???????|?????????????????????????| -2117 : ?|???|?????|??????\n??I?|??|?|??|?????|??????\nT?????\n??? +2115 : 0|1|????????|?????????????|???????????|??╱???|????????????? +2116 : ℉??????????|???????|?????????????????????????| +2117 : ?|???|?????|??????\n??兌?|??|?|??|?????|??????\n?????岌\n??? 2118 : 2119 :

    ????
    -2120 : ????????????????q???????????????1?? -2121 : ?q???????????????????????????????|?_?????? -2122 : ????????????????kh???k??C????????????????? -2123 : kh???k??C? +2120 : ???????????ㄩ?????〈????????????ㄩ???ㄩ1?? +2121 : ???〈????????????????????????????????|?囝?????? +2122 : ?????????????????πν???吻??。??????????????????? +2123 : πν???吻??。?? 2124 : 2125 :

    -2126 : ?|1|?????s??|?????????????????????????????|o???????| +2126 : ?|1|?????叫??|?????????????????????????????|???????| 2127 : ???????????????????????|?|??|?????| -2128 : ??????\n??I?|??|?|??|?????|??????\nT?????\n??? +2128 : ??????\n??兌?|??|?|??|?????|??????\n?????岌\n??? 2129 :

    ?????????
    2130 : ??????=??????????????
    -2131 : ?q?
    -2132 : ?????????????????????????_??????
    -2133 : q????????????u????????kh???k??????????????k??????
    -2134 : q????????????u????????kh???k??????????????k??????
    -2135 :

    ?????????
    -2136 : ???????=??? -2137 : ?q????????????????????????|?_??????
    -2138 : q??????????????u????????????????kh???k?????????
    -2139 : q??????????????u????????????????kh???k?????????
    +2131 : ???〈?
    +2132 : ?????????????????????????囝??????
    +2133 : ?〈????????????守???自?????πν???吻??????????????吻??????
    +2134 : ?〈????????????守???自?????πν???吻??????????????吻??????
    +2135 :

    ?????????
    +2136 : ???????=??? +2137 : ???〈?????????????????????????|?囝??????
    +2138 : ?〈??????????????守???自?????????????πν???吻?????????
    +2139 : ?〈??????????????守???自?????????????πν???吻?????????
    2140 : 2141 : -2142 :

    ???\?
    -2143 : ?q?????? +2142 :

    ???兝?
    +2143 : ???〈?????? 2144 : 2145 :

    -2146 : ?????s??|???????????? +2146 : ?????叫??|???????????? 2147 : 2148 :


    2149 :
    string data(?????????? -2150 :
    ???????????????????"\n"??????????s???? -2151 : ??????????????????????????h??????? -2152 : ????????"?"????????? -2153 :

    ??????x?
    -2154 : q?ѩ????????0 ???1???q?????????? -2155 : ??kh??C???kh??C +2150 :
    ?????????????????????"\n"?????????????? +2151 : ????????????????牙??????????去???????? +2152 : ?????????"?"????????? +2153 :

    ??????台?
    +2154 : 〈??????????ㄩ0 ???ㄩ1?????〈?????????? +2155 : ???πν??。?????πν??。? 2156 :

    2157 : 1????????????????????????????????? -2158 : ??????500????????? \?????????? -2159 : ???1000???D?????????? +2158 : ???????500????????? ?????????? +2159 : ???1000???伶??????????? 2160 :
    2161 :
    2162 :
    @@ -3127,20 +3127,20 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 2196 :
  • servertoclient EF( int effect, int level, string option );
    2197 : (EFfect)
    -2198 : D????????????????ul??????????
    +2198 : .????????????????「▍????牙???????
    2199 :
    2200 :
    2201 :
    int effect -2202 :
    ??k???????K????????????x????????????D??????????? +2202 :
    ??吻???????℉?????????????台????????????.??????????? 2203 :
      2204 :
    • 1:? -2205 :
    • 2:D -2206 :
    • 4:??D??e? +2205 :
    • 2:. +2206 :
    • 4:??.??叉? 2207 :
    2208 :
    int level -2209 :
    ????????????????????? +2209 :
    ??????????????牙?????牙?? 2210 :
    string option -2211 :
    ???? +2211 :
    ????? 2212 :
    2213 :
    2214 :
    @@ -3162,18 +3162,18 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) /* 2218 :
  • servertoclient SE( int x, int y, int senumber, int sw );
    2219 : (SoundEffect)
    -2220 : ???????SE?????????
    +2220 : ???????SE??????????
    2221 :
    2222 :
    2223 :
    int x,y -2224 :
    SE?D???? +2224 :
    SE?伶???火? 2225 :
    int senumber -2226 :
    ???k? +2226 :
    ???吻? 2227 :
    int sw -2228 :
    ?????????? +2228 :
    ??????????? 2229 :
      -2230 :
    • 0:?? -2231 :
    • 1:?? +2230 :
    • 0:?? +2231 :
    • 1:??? 2232 :
    2233 :
    2234 :
    @@ -3196,11 +3196,11 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 2271 :
  • servertoclient ClientLogin(string result);
    -2272 : ClientLogin??? +2272 : ClientLogin?刺?? 2273 :

    2274 :
    2275 :
    string result -2276 :
    "ok" ????????????????????? +2276 :
    "ok" ???更?????更????????????? 2277 :
    2278 :
    2279 :
    @@ -3218,22 +3218,22 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 2314 :
  • servertoclient CreateNewChar(string result,string data);
    -2315 : CreateNewChar??? +2315 : CreateNewChar?刺?? 2316 :

    2317 :
    2318 :
    string result -2319 :
    "successful" ? "failed" ??????????????? +2319 :
    "successful" ? "failed" ????????更??????? 2320 : ????? 2321 :
    string data -2322 :
    "failed" ????????????? -2323 : ????????????????????????? -2324 : ????? +2322 :
    "failed" ???????????希?更? +2323 : ????????????????刺????????? +2324 : ???更?? 2325 :
     2326 : 	    "failed bad parameter"
     2327 : 	    
    -2328 : ?????????????e???????d????? -2329 : ????????s??????????????????? -2330 : ????????????????????? +2328 : ?????????????叉???????吳????? +2329 : ??????????????????????????? +2330 : ?????????更???????????? 2331 : 2332 :
    2333 :
    @@ -3253,14 +3253,14 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 2349 :
  • servertoclient CharDelete(string result,string data);
    -2350 : CharDelete ??? +2350 : CharDelete ?刺?? 2351 :

    2352 :
    2353 :
    string result 2354 :
    "successful" ? "failed" ??????????????? 2355 :
    string data -2356 :
    "failed" ????????????? -2357 : ????????????????????????? +2356 :
    "failed" ???????????希?更? +2357 : ????????????????刺????????? 2358 : ?????????????????????? 2359 :
    2360 :
    @@ -3281,13 +3281,13 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 2376 :
  • servertoclient CharLogin(string result,string data);
    -2377 : CharaLogin??? +2377 : CharaLogin?刺?? 2378 :

    2379 :
    2380 :
    string result 2381 :
    "successful" ? "failed" ??????????????? 2382 :
    string data -2383 :
    "failed" ??? ????????????????? +2383 :
    "failed" ??? ?????更???????????? 2384 :
    2385 :
    2386 :
    @@ -3307,39 +3307,39 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 2396 :
  • servertoclient CharList(string result,string data);
    -2397 : CharList??? +2397 : CharList?刺?? 2398 :

    2399 :
    2400 :
    string result 2401 :
    "successful" ? "failed" ?????????????? 2402 :
    string data -2403 :
    result?"successful"??????????????V??? -2404 : ??????????q???????????????? -2405 : ???????????????????????????? -2406 : result ? "failed" ??????????????? -2407 : ?????????????????????????
    +2403 :
    result?"successful"??????????????卒㎏??? +2404 : ???????????〈???????????????? +2405 : ???更?????更???????????????????? +2406 : result ? "failed" ???????????希?更??? +2407 : ?????????????????????????
    2408 : dataplace|faceimage|level|maxhp|atk|def|quick|charm|earth|water|fire|wind|logincount|name|place
    2409 : 2410 :
    2411 :
    dataplace -2412 :
    ????????k?????????????????k????e??? +2412 :
    ????????吻?????????????????吻????叉??? 2413 :
    faceimage -2414 :
    ????k? +2414 :
    ????吻? 2415 :
    level 2416 :
    ??????? 2417 :
    maxhp,atk,def,quick,charm 2418 :
    ??????? 2419 :
    earth.water,fire,wind -2420 :
    ?Nͣk +2420 :
    ?﹫π 2421 :
    logincount 2422 :
    ???????? 2423 :
    name -2424 :
    ????q +2424 :
    ?????〈 2425 :
    place -2426 :
    ??????? +2426 :
    ??????? 2427 :
    -2428 : "|" ???????? ??????????????????????????S +2428 : "|" ???????? ?????????????????????????? 2430 : ??????
    2431 : 2432 :
    @@ -3360,14 +3360,14 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 2445 :
  • servertoclient CharLogout(string result , string data);
    -2446 : Logout?n???? +2446 : Logout?▋??刺?? 2447 :

    2448 :
    2449 :
    string result 2450 :
    "successful" ? "failed" ??????????????? 2451 :
    string data -2452 :
    "failed" ??????s???????(֢t)??? -2453 : ??????????????????? +2452 :
    "failed" ??????????????(┤)??? +2453 : ???希?更??????????????? 2454 :
    2455 :
    2456 :
    @@ -3385,11 +3385,11 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 2465 :
  • servertoclient ProcGet( string data);
    -2466 : ProcGet??? +2466 : ProcGet?刺?? 2467 :

    2468 :
    2469 :
    string data -2470 :
    ?????????????????ѩ???????log/proc???????????i?? +2470 :
    ???????????????????????????log/proc????????????可?? 2471 :
    2472 :
    2473 :
    @@ -3406,7 +3406,7 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 2483 :
  • servertoclient PlayerNumGet( int logincount, int player);
    -2484 : PlayerNumGet??? +2484 : PlayerNumGet?刺?? 2485 :

    2486 :
    2487 :
    int logincount,player @@ -3429,10 +3429,10 @@ int lssproto_ClientDispatchMessage(int fd ,char*line) } /* 2506 :
  • servertoclient Echo( string test );
    -2507 : Echo?n???? +2507 : Echo?▋??刺?? 2508 :
    2509 :
    string test -2510 :
    ????V???????????????? +2510 :
    ????向????更???????????? 2511 :
    2512 :
    2513 :
    diff --git a/石器时代8.5客户端最新源代码/石器源码/system/lssproto_util.cpp b/石器时代8.5客户端最新源代码/石器源码/system/lssproto_util.cpp index 4f5a150..8642968 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/lssproto_util.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/lssproto_util.cpp @@ -1,4 +1,4 @@ -#define _LSSPROTOUTIL_C_ +#define _LSSPROTOUTIL_C_ #include #include @@ -25,7 +25,7 @@ long lssproto_ringoDecompressor( unsigned char *text , long textlen , unsigned c int lssproto_AllocateCommonWork(int bufsiz) { -// Terry add for Ϊʽظдfunctionmemory leak Ҫһ˽Ƿѱй +// Terry add for 因为程式重覆呼叫此function会造成memory leak 所以要设一个旗标来了解是否已被呼叫过 static BOOL bInit; // Terry end // Nuke start @@ -38,7 +38,7 @@ int lssproto_AllocateCommonWork(int bufsiz) for (i=0;i0) { - StockDispBuffer(λ[i][0],λ[i][1], DISP_PRIO_DRAG,pc.item[MagicItemCombinData[i]].graNo, 0); + StockDispBuffer(位置[i][0],位置[i][1], DISP_PRIO_DRAG,pc.item[MagicItemCombinData[i]].graNo, 0); if(MagicItemPosState[i]){ char *splitPoint = pc.item[MagicItemCombinData[i]].memo; int color = pc.item[MagicItemCombinData[i]].color; if (pc.transmigration == 0 && pc.level < pc.item[MagicItemCombinData[i]].level) color = FONT_PAL_RED; StockFontBuffer(20, 250, FONT_PRIO_FRONT, color, pc.item[MagicItemCombinData[i]].name, 0); char damage_msg[256]; - sprintf_s(damage_msg, ";ö(%s)", pc.item[MagicItemCombinData[i]].damage); + sprintf_s(damage_msg, "耐久度(%s)", pc.item[MagicItemCombinData[i]].damage); StockFontBuffer(150, 250, FONT_PRIO_FRONT, color, damage_msg, 0); char moji[256]; int x=20; @@ -117,7 +117,7 @@ ACTION* ShowMagicItemData() } } if(flg){ - char *str="Ϸǿװǿʯ/ʯ¿ѡԷףʯ"; + char *str="上方放入待强化装备,左下需放入强化石/精灵石,右下可选择性放入祝福石"; char *splitPoint = str; char moji[256]; int x=20; @@ -144,23 +144,23 @@ ACTION* ShowMagicItemData() int id ; - id = StockFontBuffer( 70,338, FONT_PRIO_FRONT,FONT_PAL_YELLOW, " ȷ ", 2 ); + id = StockFontBuffer( 70,338, FONT_PRIO_FRONT,FONT_PAL_YELLOW, " 确 定 ", 2 ); if(id ==HitFontNo){ if( (mouse.onceState & MOUSE_LEFT_CRICK)){ // if(MagicItemCombinData[0]>0 && MagicItemCombinData[1]>0 && MagicItemCombinData[2]>0){ if(MagicItemCombinData[0]>0 && MagicItemCombinData[1]>0 ){ - char ʱ[10]={0}; - sprintf_s(ʱ,"%d|%d|%d",MagicItemCombinData[0],MagicItemCombinData[1],MagicItemCombinData[2]); + char 临时内容[10]={0}; + sprintf_s(临时内容,"%d|%d|%d",MagicItemCombinData[0],MagicItemCombinData[1],MagicItemCombinData[2]); extern int indexWN,idWN; - lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,ʱ); + lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,临时内容); windowTypeWN = -1; wnCloseFlag = 1; }else{ - StockChatBufferLine("ϵͳδϳɲ!",6); + StockChatBufferLine("系统:您未放入合成材料!",6); } } } - id = StockFontBuffer( 160,338, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " ", 2 ); + id = StockFontBuffer( 160,338, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " 关 闭 ", 2 ); if(id ==HitFontNo){ if( (mouse.onceState & MOUSE_LEFT_CRICK)){ windowTypeWN = -1; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/main.cpp b/石器时代8.5客户端最新源代码/石器源码/system/main.cpp index 458134b..213a7c6 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/main.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/main.cpp @@ -1,4 +1,4 @@ -/**** SYSTEM INCLUDE ****/ +/**** SYSTEM INCLUDE ****/ #include "../systeminc/version.h" #include "../systeminc/system.h" @@ -27,7 +27,7 @@ #include #endif #include "../systeminc/VMProtectSDK.h" -#ifdef _SAHOOK //Syu ADD Hookʽ +#ifdef _SAHOOK //Syu ADD Hook程式 #include "..\Sa_Hk.h" #include "../sahook.h" #define UM_KEYEVENT (WM_APP + 0) @@ -52,14 +52,14 @@ #ifdef _AIDENGLU_ Landed PcLanded; -int Ƿص = FALSE; -int Ƿصս = FALSE; -int ǷصAIģʽ = FALSE; -int Ƿص = FALSE; -int ǷصǺ = FALSE; -int Ƿص﷽ = FALSE; -int Ƿؿ = FALSE; -int Զ½Ƿ = 0; +int 是否重登 = FALSE; +int 是否重登战斗了 = FALSE; +int 是否重登AI模式 = FALSE; +int 是否重登组队 = FALSE; +int 是否重登喊话 = FALSE; +int 是否重登人物方向 = FALSE; +int 是否重开登组队 = FALSE; +int 自动登陆是否开启 = 0; #endif int DISPLACEMENT_X = 160; int DISPLACEMENT_Y = 120; @@ -69,10 +69,10 @@ int DEF_APPSIZEY = 600; int SCREEN_WIDTH_CENTER = DEF_APPSIZEX / 2; int SCREEN_HEIGHT_CENTER = DEF_APPSIZEY / 2; -#define REALBIN_DIR "data\\real_136.bin" // REAL.BIN?? -#define ADRNBIN_DIR "data\\adrn_136.bin" // ADRN.BIN?? -#define SPRBIN_DIR "data\\spr_115.bin" // SPR.BIN?? -#define SPRADRNBIN_DIR "data\\spradrn_115.bin" // SPRADRN.BIN?? +#define REALBIN_DIR "data\\real_136.bin" // REAL.BIN?? +#define ADRNBIN_DIR "data\\adrn_136.bin" // ADRN.BIN?? +#define SPRBIN_DIR "data\\spr_115.bin" // SPR.BIN?? +#define SPRADRNBIN_DIR "data\\spradrn_115.bin" // SPRADRN.BIN?? #ifdef _READ16BITBMP @@ -80,16 +80,16 @@ int SCREEN_HEIGHT_CENTER = DEF_APPSIZEY / 2; #define ADRNTRUEBIN_DIR "data/adrntrue_5.bin" #endif //-------------------------------------------END------------------------ -extern int ; +extern int 编码; extern char* GB2312ToBIG5(const char* szGBString); int MessageBoxNew(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType) { - if ( == 950){ - char [1024] = { 0 }; - char 1[1024] = { 0 }; - LCMapString(0x804, 0x4000000, lpText, strlen(lpText), , 1024); - LCMapString(0x804, 0x4000000, lpCaption, strlen(lpCaption), 1, 1024); - return MessageBox(hWnd, GB2312ToBIG5((const char *)), GB2312ToBIG5((const char *)1), uType); + if (编码 == 950){ + char 繁体[1024] = { 0 }; + char 繁体1[1024] = { 0 }; + LCMapString(0x804, 0x4000000, lpText, strlen(lpText), 繁体, 1024); + LCMapString(0x804, 0x4000000, lpCaption, strlen(lpCaption), 繁体1, 1024); + return MessageBox(hWnd, GB2312ToBIG5((const char *)繁体), GB2312ToBIG5((const char *)繁体1), uType); } else{ return MessageBox(hWnd, lpText, lpCaption, uType); @@ -97,27 +97,27 @@ int MessageBoxNew(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType) } //---------------------------------------------------------------------------// -// ?? ??????e? // +// ?? :??????? // //---------------------------------------------------------------------------// -HINSTANCE hInst; // ??????????e? +HINSTANCE hInst; // ??????????? HWND hWnd; // ????????? int CmdShow; // WinMain?????????????? LPSTR CmdLine; // WinMain????????????????????? -HANDLE hMutex; // i??h??????????????? -HANDLE hCheckMutex = NULL; // ³ʽõ +HANDLE hMutex; // ????????????????? +HANDLE hCheckMutex = NULL; // 给更新程式检查用的 //BOOL WindowMode = TRUE; // ???????? BOOL WindowMode = TRUE; // ?????????? // TRUE : WindowMode // FALSE : FullScreen -BOOL NoDelay = FALSE; // TCP_NODELAY ???????add by ringo +BOOL NoDelay = FALSE; // TCP_NODELAY ???????add by ringo #ifdef _NEW_RESOMODE -//ģʽ( 0 : 640 * 480 , 1 : 320 * 240 ,2 : 640 * 480, 3 : 800 * 600 , 4 : 1024 * 768 ) +//解析度模式( 0 : 640 * 480 , 1 : 320 * 240 ,2 : 640 * 480, 3 : 800 * 600 , 4 : 1024 * 768 ) int ResoMode = 3; #else int ResoMode = 0; #endif -int LowResoCmdFlag = 0; // ??T???????? +int LowResoCmdFlag = 0; // ?????????? RECT g_clientRect; POINT g_clientPoint; @@ -145,14 +145,14 @@ extern int MouseCursorFlag; #endif void GetSettings(); -/* ???????? */ +/* ???????? */ void AnalyzeCmdLine(void); -// ?????????v???L? +// ????????????? void ChangeWindowMode(void); -// ??T???@e?? +// ??????? void SetResoMode(int Mode); -// ?????????Bl +// ????????? WNDCLASS wndclass; HANDLE hProcessSnap = NULL, hParentProcess = NULL; @@ -169,7 +169,7 @@ CTalkWindow TalkWindow; #endif -char [256]; +char 标题名[256]; int getMAC(char * mac) { NCB ncb; @@ -233,11 +233,11 @@ int getMAC(char * mac) return 0; } -char [512]; +char 机器数据[512]; -void ȡ() +void 获取机器码() { - HANDLE m_hMapFile = OpenFileMapping( //ùڴ + HANDLE m_hMapFile = OpenFileMapping( //获得共享内存句柄 FILE_MAP_READ | FILE_MAP_WRITE, FALSE, #ifdef _SA_VERSION_25 @@ -245,66 +245,66 @@ void #endif if (m_hMapFile == NULL){ - HANDLE m_hMapFile = CreateFileMapping( //һĹڴ - (HANDLE)0xFFFFFFFF, //0xFFFFFFFFʾһ̼乲Ķ + HANDLE m_hMapFile = CreateFileMapping( //创建一个有名的共享内存 + (HANDLE)0xFFFFFFFF, //0xFFFFFFFF表示创建一个进程间共享的对象 NULL, - PAGE_READWRITE, //д + PAGE_READWRITE, //读写共享 0, - 1032, //С4096 + 1032, //共享区间大小4096 #ifdef _SA_VERSION_25 "shiqies"); #endif - char *str = (char *)MapViewOfFile( //ӳ䵽̵ĵַռ + char *str = (char *)MapViewOfFile( //映射到本进程的地址空间 m_hMapFile, FILE_MAP_ALL_ACCESS, 0, 0, 0); memset(str, 0, 1032); - memset(, 0, 512); + memset(机器数据, 0, 512); char userName[MAX_PATH]; DWORD size = MAX_PATH; char mac[64]; GetComputerName(userName, &size); getMAC(mac); - sprintf_s(, "%s%s", mac, userName); - memcpy(str, , 512); + sprintf_s(机器数据, "%s%s", mac, userName); + memcpy(str, 机器数据, 512); } else{ - char *str = (char *)MapViewOfFile( //ӳ䵽̵ĵַռ + char *str = (char *)MapViewOfFile( //映射到本进程的地址空间 m_hMapFile, FILE_MAP_ALL_ACCESS, 0, 0, 0); - memcpy(, str, 512); + memcpy(机器数据, str, 512); } } -BOOL ļж(char * path,char * name) +BOOL 文件判断(char * path,char * name) { - char ļ·[256]; - sprintf(ļ·,"%s%s",path,name); - BOOL ret = (access(ļ·,0)==0?TRUE:FALSE); + char 文件路径[256]; + sprintf(文件路径,"%s%s",path,name); + BOOL ret = (access(文件路径,0)==0?TRUE:FALSE); if(ret){ - ;//MessageBox(NULL,ļ·,"ʯʱ",0); + ;//MessageBox(NULL,文件路径,"石器时代",0); } return ret; } -BOOL ⰴ(char *path) +BOOL 检测按键(char *path) { - if(ļж(path,"QMScript") || - ļж(path,"Recorder.exe") || - ļж(path,"QMColorActionCtl.ocx") || - ļж(path,"ShieldModule.dat") || - ļж(path,"qmacro.ini") || - ļж(path,"wqm.exe") || - ļж(path,"Fairy_Ape")|| - ļж(path,"LAScriptX.dll")|| - ļж(path,"mly.dll")||ļж(path,"v5_hook.dll")||ļж(path,"v5_Log.dll")||ļж(path,"v5_Process_Manager.dll") + if(文件判断(path,"QMScript") || + 文件判断(path,"Recorder.exe") || + 文件判断(path,"QMColorActionCtl.ocx") || + 文件判断(path,"ShieldModule.dat") || + 文件判断(path,"qmacro.ini") || + 文件判断(path,"wqm.exe") || + 文件判断(path,"Fairy_Ape")|| + 文件判断(path,"LAScriptX.dll")|| + 文件判断(path,"mly.dll")||文件判断(path,"v5_hook.dll")||文件判断(path,"v5_Log.dll")||文件判断(path,"v5_Process_Manager.dll") ){ return TRUE; }else{ @@ -314,13 +314,13 @@ BOOL -void () +void 按键检测() { char szProcessName[MAX_PATH]; HMODULE hMods[4096]; HANDLE hProcess; DWORD aProcesses[4096], cbNeeded, cbMNeeded; - char ·[256]; + char 路径[256]; int j; if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) ) return; @@ -340,9 +340,9 @@ void break; } } - memcpy(·,szProcessName,i+1); - ·[i+1]=0; - if(ⰴ(·)){ + memcpy(路径,szProcessName,i+1); + 路径[i+1]=0; + if(检测按键(路径)){ ExitProcess(NULL); } } @@ -351,28 +351,28 @@ void return; } -BOOL IsContainsProcess(char* strProName, BOOL ж = 1) +BOOL IsContainsProcess(char* strProName, BOOL 判断 = 1) { - PROCESSENTRY32 pe32; //ṹ̵Ϣ - pe32.dwSize = sizeof(pe32); //С + PROCESSENTRY32 pe32; //定义结构体变量来保存进程的信息 + pe32.dwSize = sizeof(pe32); //填充大小 - HANDLE hProcessSnap = ::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);// + HANDLE hProcessSnap = ::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);//创建快照 if (hProcessSnap == INVALID_HANDLE_VALUE) { - //MessageBox("̿ʧ","ʾ",MB_OK); + //MessageBox("进程快照失败","提示",MB_OK); exit(1); } - //п + //遍历所有快照 BOOL bMore = ::Process32First(hProcessSnap, &pe32); while (bMore) { - if (ж == 1){ + if (判断 == 1){ if (strcmp(strProName, pe32.szExeFile) == 0) { - return TRUE; //ڸỵ́򷵻TRUE - bMore = FALSE;//ֹͣѭ + return TRUE; //如果存在该进程,则返回TRUE + bMore = FALSE;//停止循环 } else { @@ -382,8 +382,8 @@ BOOL IsContainsProcess(char* strProName, BOOL else{ if (strstr(pe32.szExeFile, strProName)) { - return TRUE; //ڸỵ́򷵻TRUE - bMore = FALSE;//ֹͣѭ + return TRUE; //如果存在该进程,则返回TRUE + bMore = FALSE;//停止循环 } else { @@ -391,7 +391,7 @@ BOOL IsContainsProcess(char* strProName, BOOL } } } - //ɨβ + //扫尾 CloseHandle(hProcessSnap); return FALSE; } @@ -431,7 +431,7 @@ bool IsInsideVPC() return rc; } -BOOL WARE() +BOOL 检测WARE() { HKEY key; unsigned char buffer[512]; @@ -584,8 +584,8 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine #ifdef _NODEBUG_ VMProtectBegin("jiance111"); - extern void (); - (); + extern void 按键检测(); + 按键检测(); if ( (IsContainsProcess("VBoxTray.exe")) || (IsContainsProcess("SbieSvc.exe")) || @@ -597,39 +597,39 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine (IsContainsProcess("vmtoolsd.exe")) || (IsContainsProcess("vmacthlp.exe")) || IsInsideVPC()|| - IsContainsProcess("ര", 0) || - IsContainsProcess("", 0)|| - IsContainsProcess("", 0) + IsContainsProcess("多窗口", 0) || + IsContainsProcess("变速", 0)|| + IsContainsProcess("宇宙", 0) ){ return FALSE; } - if (WARE()){ + if (检测WARE()){ return FALSE; } VMProtectEnd(); #endif - = GetACP(); - if ( == 950) + 编码 = GetACP(); + if (编码 == 950) { - strcpy(, GB2312ToBIG5(DEF_APPNAME)); + strcpy(标题名, GB2312ToBIG5(DEF_APPNAME)); } - ȡ(); + 获取机器码(); hInst = hInstance; CmdShow = nCmdShow; CmdLine = lpCmdLine; #ifdef _REMAKE_20 #ifndef _STONDEBUG_ - if(==950) - hMutex = CreateMutex( NULL, TRUE, ); + if(编码==950) + hMutex = CreateMutex( NULL, TRUE, 标题名 ); else hMutex = CreateMutex( NULL, TRUE, DEF_APPNAME ); if(GetLastError() == ERROR_ALREADY_EXISTS){ - MessageBoxNew(hWnd,"StoneAgeѾˣ","ȷ",MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd,"StoneAge已经起动了!","确定",MB_OK | MB_ICONSTOP); return FALSE; } #endif #endif - // һ,ø³ʽжǷʯִ + // 建立一个核心物件,让更新程式可以判断是否有石器正在执行 hCheckMutex = CreateMutex(NULL, FALSE, "CheckForUpdate"); #ifdef _STONDEBUG_ @@ -694,8 +694,8 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine // else break; // } if(!checkclientflg) { - // sprintf_s(strname, "Ϸ%d", _DEFENSETOOENNUM_); - sprintf_s(strname, "Ϸ2"); + // sprintf_s(strname, "游戏限制%d开!", _DEFENSETOOENNUM_); + sprintf_s(strname, "游戏限制2开!"); #ifdef _VMP_ MessageBoxNew(NULL,VMProtectDecryptStringA(strname), DEF_APPNAME, MB_OK | MB_ICONSTOP); #else @@ -718,13 +718,13 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine wndclass.hCursor = LoadCursor(hInstance, MAKEINTRESOURCE(SA_MOUSE1)); wndclass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); wndclass.lpszMenuName = NULL; - if ( == 950) - wndclass.lpszClassName = ; + if (编码 == 950) + wndclass.lpszClassName = 标题名; else wndclass.lpszClassName = DEF_APPNAME; if (!RegisterClass(&wndclass)){ - MessageBoxNew(NULL, "ʼӴʧܣ\nִ°װǢѯͷԱ", - "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(NULL, "初始化视窗失败!\n,请执行重新安装或洽询客服人员!", + "确定", MB_OK | MB_ICONSTOP); return FALSE; } } @@ -750,13 +750,13 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine #endif #ifdef _NEWSHOP_ - extern void ̳dzʼ(); - ̳dzʼ(); + extern void 商城初始化(); + 商城初始化(); #endif #ifdef _AIDENGLU_ - PcLanded. = PcLanded. = PcLanded.С = PcLanded.ģ = -1; - PcLanded.ǷԶ = PcLanded.ǷԶ = PcLanded.﷽ = PcLanded.½ʱʱ = FALSE; - memset(PcLanded.½, 0, 4 * 32); + PcLanded.大区 = PcLanded.人物 = PcLanded.小区 = PcLanded.队模 = -1; + PcLanded.是否自动喊话 = PcLanded.是否自动遇敌 = PcLanded.人物方向 = PcLanded.登陆延时时间 = FALSE; + memset(PcLanded.登陆人物名称, 0, 4 * 32); #endif @@ -788,7 +788,7 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine if(g_iMallocCount != 0){ char MSG[256]; sprintf_s(MSG,"g_iMallocCount = %d",g_iMallocCount); - MessageBoxNew( NULL,MSG,"ȷ", MB_OK | MB_ICONSTOP ); + MessageBoxNew( NULL,MSG,"确定", MB_OK | MB_ICONSTOP ); } #endif @@ -798,7 +798,7 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine -// ??????? ***********************************************************/ +// ??????? ***********************************************************/ void DebugKey(char *str) { char *work; @@ -807,7 +807,7 @@ void DebugKey(char *str) // ????????????? key0: ????? if ((work = strstr(str, "KEY0:"))) { - work += 5; // ???????????????? + work += 5; // ???????????????? // : ???????? while (*work != ':'){ DebugKey0[i] = *work++; @@ -818,12 +818,12 @@ void DebugKey(char *str) } } } - DebugKey0[i] = NULL; // Z?? + DebugKey0[i] = NULL; // ?? i = 0; // ????????????? key1: ????? if ((work = strstr(str, "KEY1:"))) { - work += 5; // ???????????????? + work += 5; // ???????????????? // : ???????? while (*work != ':'){ DebugKey1[i] = *work++; @@ -834,12 +834,12 @@ void DebugKey(char *str) } } } - DebugKey1[i] = NULL; // Z?? + DebugKey1[i] = NULL; // ?? i = 0; // ????????????? key1: ????? if ((work = strstr(str, "KEY2:"))) { - work += 5; // ???????????????? + work += 5; // ???????????????? // : ???????? while (*work != ':'){ DebugKey2[i] = *work++; @@ -850,7 +850,7 @@ void DebugKey(char *str) } } } - DebugKey2[i] = NULL; // Z?? + DebugKey2[i] = NULL; // ?? } @@ -862,7 +862,7 @@ void AnalyzeCmdLine(void) VMProtectBegin("AnalyzeCmdLine"); #endif if (!(addr = strstr(CmdLine, "OpenClient"))){ - MessageBoxNew(NULL, "ʹ½Ϸ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(NULL, "请使用启动器登陆游戏", "确定", MB_OK | MB_ICONSTOP); exit(0); } #ifdef _VMP_ @@ -975,10 +975,10 @@ void ChangeWindowMode(void) SetRect(&clientRect, 0, 0, lpDraw->xSize, lpDraw->ySize); AdjustWindowRectEx(&clientRect, windowStyle, FALSE, NULL); if (hWnd == NULL){ - if ( == 950) + if (编码 == 950) hWnd = CreateWindowEx(NULL, - , - , + 标题名, + 标题名, windowStyle, //CW_USEDEFAULT, //CW_USEDEFAULT, @@ -1008,11 +1008,11 @@ void ChangeWindowMode(void) NULL); } else{ - // ??????????? + // ??????????? SetWindowLong(hWnd, GWL_STYLE, windowStyle); - // ????????? + // ????????? ShowWindow(hWnd, CmdShow); - // ???????t?????? + // ????????????? SetWindowPos(hWnd, HWND_NOTOPMOST, 0, @@ -1022,35 +1022,35 @@ void ChangeWindowMode(void) //SWP_SHOWWINDOW ); SWP_FRAMECHANGED); } - // ????????? + // ????????? ShowWindow(hWnd, CmdShow); - // ??????? + // ??????? UpdateWindow(hWnd); } // ?????????????? **********************************************************/ void RecoverDirectDraw(void) { - // DirectDraw ? + // DirectDraw ? ReleaseDirectDraw(); - // ??T???@e + // ????? SetResoMode(ResoMode); // DirectDraw ??? if (InitDirectDraw() == FALSE){ - MessageBoxNew(hWnd, "Direct ʼʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "Direct 初始化失败!", "确定", MB_OK | MB_ICONSTOP); // ???????? WM_CLOSE ?????????? PostMessage(hWnd, WM_CLOSE, 0, 0L); } - // ?????????v? + // ?????????? //ChangeWindowMode(); - // ?????????????? + // ?????????????? InitOffScreenSurface(); // ??????? if (InitPalette() == FALSE){ - MessageBoxNew(hWnd, "ɫ ʼʧܣ", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "色盘 初始化失败!", "确定", MB_OK | MB_ICONSTOP); PostMessage(hWnd, WM_CLOSE, 0, 0L); } - // ?????????????????????? + // ?????????????????????? if (ProcNo == PROC_BATTLE){ // ??????? DispBuffer.DispCnt = 0; @@ -1082,25 +1082,25 @@ void RecoverDirectDraw(void) else if (fastDrawTile && ProcNo == PROC_GAME) { - repairMap(); // ?????? + repairMap(); // ?????? } // ?????????????? if (lpDraw->lpPALETTE != NULL){ // ?????????? if (WindowMode){ - // ????????????? + // ????????????? lpDraw->lpPALETTE->SetEntries(0, 0, 256, Palette); } } - // ???????V????? + // ???????????? mouse.state = MOUSE_NO_CRICK; mouse.onceState = MOUSE_NO_CRICK; - // ???w????? + // ???????? NowTime = TimeGetTime(); } //---------------------------------------------------------------------------// -// ?? ???????????? // -// ?? ?? // +// ?? :???????????? // +// ?? :?? // //---------------------------------------------------------------------------// BOOL SystemTask(void) { @@ -1115,11 +1115,11 @@ BOOL SystemTask(void) } //---------------------------------------------------------------------------// -// ?? ?????????????? // -// ?? HWND hWnd: ?????????? // -// UINT Message: ?????????? // -// WPARAM wParam: ??????????Kѩ? // -// LPARAM lParam: ??????????Kѩ? // +// ?? :?????????????? // +// ?? :HWND hWnd: ?????????? // +// UINT Message: ?????????? // +// WPARAM wParam: ??????????? // +// LPARAM lParam: ??????????? // //---------------------------------------------------------------------------// #ifdef _REMAKE_20 extern short mouseCursorMode; @@ -1129,12 +1129,12 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar switch (Message){ #ifdef _REMAKE_20 case WM_TIMER: - // 8253Ƭclock + // 重设8253晶片的clock RestoreCounter(1196); break; #endif /** ??????????? *****************************************************/ - case WM_ACTIVATE: // ???????????????????????????? + case WM_ACTIVATE: // ???????????????????????????? #ifdef SA_25 static BOOL bInactive = FALSE; if( bInactive && (LOWORD(wParam) == WA_ACTIVE || LOWORD(wParam) == WA_CLICKACTIVE)){ @@ -1164,19 +1164,19 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar if (lpDraw->lpPALETTE != NULL){ // ?????????? if (WindowMode){ - // ????????????? + // ????????????? lpDraw->lpPALETTE->SetEntries(0, 0, 256, Palette); } } } - //??????????? - //?????ϣ?? - if (keyboad_flg == TRUE){ //?????ϣ?? + //??????????? + //?????OK?? + if (keyboad_flg == TRUE){ //?????OK?? // ???????????????? if (pDInputDevice != NULL){ - // ????????????????? + // ????????????????? if (wParam == WA_INACTIVE){ - // DInput _ + // DInput  DInputActiveFlag = FALSE; // ?????????? for (int i = 0; i < 256; i++) di_key[i] = 0; @@ -1190,15 +1190,15 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar } } - //????????ϣ?? + //????????OK?? if (joy_flg == TRUE){ // ??????????????????? if (pDInputDevice2 == NULL) break; - // ????????????????? + // ????????????????? if (wParam == WA_INACTIVE){ - // DInput _ + // DInput  DInputActiveFlag = FALSE; pDInputDevice2->Unacquire(); } @@ -1209,18 +1209,18 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar } } break; - case WM_CLOSE: // ????????? - DestroyWindow(hWnd); // ??????????i?? + case WM_CLOSE: // ????????? + DestroyWindow(hWnd); // ???????????? // WM_DESTROY ?????????? break; - case WM_DESTROY: // ???????????? + case WM_DESTROY: // ???????????? - PostQuitMessage(0); // WM_QUIT ???????? ( ???? ) + PostQuitMessage(0); // WM_QUIT ???????? ( ???? ) break; #ifdef _REMAKE_20 #ifndef _STONDEBUG_ case WM_ACTIVATEAPP: - // еӴ,뿪Ϸ + // 如果被切到别的视窗,离开游戏 if(!wParam){ SendMessage(hWnd,WM_CLOSE,0,0); } @@ -1229,32 +1229,32 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar #endif #if 0 - case WM_PALETTECHANGED: // ??????????? + case WM_PALETTECHANGED: // ??????????? // DirectDraw?????????? if( lpDraw == NULL ) break; // ?????????????? if( lpDraw->lpPALETTE == NULL ) break; // ?????????? //if( WindowMode ){ - // ????????????? + // ????????????? lpDraw->lpPALETTE->SetEntries( 0, 0, 256, Palette ); //} break; //if( (HWND)wParam == hWnd ) break; - case WM_PALETTEISCHANGING: // ??????????? + case WM_PALETTEISCHANGING: // ??????????? // DirectDraw?????????? if( lpDraw == NULL ) break; // ?????????????? if( lpDraw->lpPALETTE == NULL ) break; // ?????????? //if( WindowMode ){ - // ????????????? + // ????????????? lpDraw->lpPALETTE->SetEntries( 0, 0, 256, Palette ); //} break; - case WM_QUERYNEWPALETTE: // ???????????????????????? + case WM_QUERYNEWPALETTE: // ???????????????????????? // DirectDraw?????????? if( lpDraw == NULL ) break; @@ -1263,16 +1263,16 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar // ?????????? //if( WindowMode ){ - // ????????????? + // ????????????? lpDraw->lpPALETTE->SetEntries( 0, 0, 256, Palette ); //} break; #endif - /** ??V?????? *****************************************************/ + /** ???????? *****************************************************/ - case WM_KEYDOWN: // ??V??? + case WM_KEYDOWN: // ????? if (SurfaceBusyFlag == TRUE){ SurfaceBusyFlag = FALSE; @@ -1322,7 +1322,7 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar break; #ifdef _REMAKE_20 case WM_HOTKEY: - // еӴ,뿪Ϸ + // 如果被切到别的视窗,离开游戏 SendMessage(hWnd,WM_CLOSE,0,0); break; #endif @@ -1330,25 +1330,25 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar // ??????????? if (SurfaceBusyFlag == TRUE){ SurfaceBusyFlag = FALSE; - MessageBoxNew(hWnd, "SurfaceBusyFlag error!", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "SurfaceBusyFlag error!", "确定", MB_OK | MB_ICONSTOP); RecoverDirectDraw(); } switch (wParam){ case VK_RETURN: #ifdef _REMAKE_20 #ifndef _STONDEBUG_ - // Ӵģʽ뿪Ϸ + // 缩成视窗模式离开游戏 SendMessage(hWnd,WM_CLOSE,0,0); break; #endif #else - // ???I?? + // ????? if (BackBufferDrawType == DRAW_BACK_PRODUCE) break; // DirectDraw?????????? if (lpDraw == NULL) break; - // ???????????? + // ???????????? if (WindowMode == TRUE) WindowMode = FALSE; else WindowMode = TRUE; #ifdef _TALK_WINDOW @@ -1359,19 +1359,19 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar #endif ChangeMode(WindowMode); - // DirectDraw ? + // DirectDraw ? ReleaseDirectDraw(); - // ??T???@e + // ????? SetResoMode(ResoMode); // DirectDraw ??? InitDirectDraw(); - // ?????????????? + // ?????????????? InitOffScreenSurface(); - // ?????????v? + // ?????????? ChangeWindowMode(); - // u?????????? + // ?????????? //SendMessage( HWND_BROADCAST, WM_PAINT, NULL, NULL ); // ??????? @@ -1379,7 +1379,7 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar //PostMessage( hWnd, WM_CLOSE, 0, 0L ); PostMessage(hWnd, WM_SYSKEYDOWN, VK_RETURN, 0L); } - // ?????????????????????? + // ?????????????????????? if (ProcNo == PROC_BATTLE){ // ??????? DispBuffer.DispCnt = 0; @@ -1411,20 +1411,20 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar else if (fastDrawTile && ProcNo == PROC_GAME) { - repairMap(); // ?????? + repairMap(); // ?????? } // ?????????????? if (lpDraw->lpPALETTE != NULL){ // ?????????? if (WindowMode){ - // ????????????? + // ????????????? lpDraw->lpPALETTE->SetEntries(0, 0, 256, Palette); } } - // ???????V????? + // ???????????? mouse.state = MOUSE_NO_CRICK; mouse.onceState = MOUSE_NO_CRICK; - // ???w????? + // ???????? NowTime = TimeGetTime(); break; #endif @@ -1436,17 +1436,17 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar break; } break; - case WM_CHAR: // ?V??? - // ????????? + case WM_CHAR: // ???? + // ????????? StockStrBufferChar((char)wParam); break; - case WM_MOUSEMOVE: // ????h???? + case WM_MOUSEMOVE: // ???????? //SetCursor( wndclass.hCursor ); - // ????????t????? + // ????????????? MouseNowPoint(LOWORD(lParam), HIWORD(lParam)); #ifndef _TALK_WINDOW if (mouse.flag == TRUE){ - ShowCursor(FALSE); // ????????? + ShowCursor(FALSE); // ????????? mouse.flag = FALSE; } #else @@ -1465,15 +1465,15 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar RecoverDirectDraw(); } break; - case WM_NCMOUSEMOVE: // ??????????????? - // ???????V????? + case WM_NCMOUSEMOVE: // ??????????????? + // ???????????? mouse.state = MOUSE_NO_CRICK; mouse.onceState = MOUSE_NO_CRICK; if (mouse.flag == FALSE){ #ifdef _TALK_WINDOW g_iCursorCount = ShowCursor( TRUE ); #else - ShowCursor(TRUE); // ???????? + ShowCursor(TRUE); // ???????? #endif mouse.flag = TRUE; } @@ -1485,16 +1485,16 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar #endif #ifdef _REMAKE_20 - // ʹǷİ» + // 检查使用者是否真的按下滑鼠 if(!IsLMouseButtonDown()) mouseCursorMode = 0; else #endif - // ???????????????t????? + // ???????????????????? MouseCrickLeftDownPoint(LOWORD(lParam), HIWORD(lParam)); break; case WM_LBUTTONUP: // ?????(????) - // ???????????????t????? + // ???????????????????? MouseCrickLeftUpPoint(LOWORD(lParam), HIWORD(lParam)); break; @@ -1503,24 +1503,24 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar if (ProcNo == PROC_80_LOGIN) break; #endif - // ??????????????????t????? + // ??????????????????????? MouseDblCrickLeftUpPoint(LOWORD(lParam), HIWORD(lParam)); break; case WM_RBUTTONDOWN: // ?????(????) #ifdef _REMAKE_20 - // ʹǷİ» + // 检查使用者是否真的按下滑鼠 if(!IsRMouseButtonDown()) mouseCursorMode = 0; else #endif - // ???????????????t????? + // ???????????????????? MouseCrickRightDownPoint(LOWORD(lParam), HIWORD(lParam)); break; case WM_RBUTTONUP: // ?????(????) - // ???????????????t????? + // ???????????????????? MouseCrickRightUpPoint(LOWORD(lParam), HIWORD(lParam)); break; case WM_RBUTTONDBLCLK: // ???????? - // ??????????????????t????? + // ??????????????????????? MouseDblCrickRightUpPoint(LOWORD(lParam), HIWORD(lParam)); break; case WM_MBUTTONDOWN: // ?????(????) @@ -1538,8 +1538,8 @@ LRESULT CALLBACK WindMsgProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lPar } break; - //ԶHook MsgType -#ifdef _SAHOOK //Syu ADD Hookʽ + //自订Hook Msg传送Type +#ifdef _SAHOOK //Syu ADD Hook程式 case UM_KEYEVENT: TCHAR ac[2]; BYTE bKeyState[256]; @@ -1568,7 +1568,7 @@ void SetResoMode(int Mode){ ResoMode = Mode; lpDraw = (DIRECT_DRAW *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, (DWORD)sizeof(DIRECT_DRAW)); if (lpDraw == NULL){ - MessageBoxNew(hWnd, "HeapAlloc Error ( DIRECT_DRAW )", "ȷ", MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd, "HeapAlloc Error ( DIRECT_DRAW )", "确定", MB_OK | MB_ICONSTOP); return; } switch (Mode){ @@ -1591,7 +1591,7 @@ void SetResoMode(int Mode){ DISPLACEMENT_Y = 0; break; case 2: - //ɱ + //可变 lpDraw->xSize = 640; lpDraw->ySize = 480; SurfaceSizeX = 64; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/map.cpp b/石器时代8.5客户端最新源代码/石器源码/system/map.cpp index eccbf8a..730064f 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/map.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/map.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -25,7 +25,7 @@ #include "../systeminc/savedata.h" #include "../systeminc/tool.h" -// ?????L???(1 ... ?L?) +// ?????﹩丙???(1 ... ?﹩丙?) const short fastDrawTile = 1; short fastDrawTileFlag = 1; @@ -35,7 +35,7 @@ int baseXFastDraw, baseYFastDraw; int amountXFastDraw2 = 0, amountYFastDraw2 = 0; int nowXFastDraw2, nowYFastDraw2; int baseXFastDraw2, baseYFastDraw2; -#define SEARCH_AREA 11 // ?????????d??????????? +#define SEARCH_AREA 11 // ?????????吳??????????? enum { @@ -43,7 +43,7 @@ enum MOUSE_CURSOR_MODE_MOVE }; -// ??????? +// ??????? char nowFloorName[FLOOR_NAME_LEN+1]; int nowFloor; int nowFloorGxSize, nowFloorGySize; @@ -63,24 +63,24 @@ int mapAreaWidth, mapAreaHeight; unsigned short tile[MAP_X_SIZE * MAP_Y_SIZE]; // ??????? unsigned short parts[MAP_X_SIZE * MAP_Y_SIZE]; // ??????? unsigned short event[MAP_X_SIZE * MAP_Y_SIZE]; // ???? -unsigned short hitMap[MAP_X_SIZE * MAP_Y_SIZE]; // ??????Re +unsigned short hitMap[MAP_X_SIZE * MAP_Y_SIZE]; // ??????刪叉 -// ??????????hw???? +// ???????????去ㄈ???? BOOL mapEmptyFlag; short mapEmptyDir; int mapEmptyGx, mapEmptyGy; short getMapAreaX1[2], getMapAreaY1[2], getMapAreaX2[2], getMapAreaY2[2]; short getMapAreaCnt; unsigned int mapEmptyStartTime; -// ????????? +// ????阪????? BOOL floorChangeFlag = FALSE; -// ??????????? +// ??????╱????? BOOL loginFlag; -// ?????????2??????????? +// ?????????2??????????? BOOL warpEffectFlag = FALSE; -BOOL warpEffectStart = FALSE; // ????????? -BOOL warpEffectOk = FALSE; // ?????????ϣ -// ??????? +BOOL warpEffectStart = FALSE; // ????????? +BOOL warpEffectOk = FALSE; // ??????????? +// ???????? float viewPointX; float viewPointY; int viewOffsetX = SCREEN_WIDTH_CENTER; @@ -89,8 +89,8 @@ int viewOffsetY = SCREEN_HEIGHT_CENTER; int iScreenMoveX = 0, iScreenMoveY = 0; #endif -// ?h?? -#define MOVE_CLICK_WAIT_TIME 250 // ?? +// ?去?? +#define MOVE_CLICK_WAIT_TIME 250 // ??企 short moveAddTbl[8][2] = { { -1, 1 }, // 0 @@ -111,7 +111,7 @@ short moveRouteGx[MOVE_MAX]; short moveRouteGy[MOVE_MAX]; char moveRouteDir[MOVE_MAX]; -#define MOVE_MAX2 2 // ???????h????k +#define MOVE_MAX2 2 // ???????去?????π short moveRouteCnt2 = 0; short moveRoute2[MOVE_MAX2]; @@ -128,7 +128,7 @@ BOOL mouseDblRightOn = FALSE; unsigned int mouseLeftPushTime; unsigned int beforeMouseLeftPushTime; -// ?????????I???e? +// ????????牙?!???叉? enum { @@ -159,21 +159,21 @@ int charPrioCnt; // ????????? short nowEncountPercentage; // ??????? -short nowEncountExtra; // ???????? -short minEncountPercentage; // ???????? -short maxEncountPercentage; // ???????? +short nowEncountExtra; // ???????卹? +short minEncountPercentage; // ???????? +short maxEncountPercentage; // ????????? short sendEnFlag; // EN??????????? short encountNowFlag; // ???????? // ??????? int eventId = 0; // ??????ID -short eventWarpSendFlag; // ??????????? -short eventWarpSendId; // ??????????ID -short eventEnemySendFlag; // ?e?????????????? -short eventEnemySendId; // ?e?????????????ID -short eventEnemyFlag; // ?e??????????? +short eventWarpSendFlag; // ??????????? +short eventWarpSendId; // ??????????ID +short eventEnemySendFlag; // ?叉?????????????? +short eventEnemySendId; // ?叉?????????????ID +short eventEnemyFlag; // ?叉???????????? short etcEventFlag = 0; -short vsLookFlag; // ?P???? +short vsLookFlag; // ?·???? // ????????? #define AUTO_MAPPING_W 54 @@ -183,29 +183,29 @@ unsigned char autoMappingBuf[AUTO_MAPPING_H][AUTO_MAPPING_W]; /* #define AUTO_MAPPING_SEE_W 30 #define AUTO_MAPPING_SEE_H 30 -unsigned int readMapAfterFrame = 10000; // ??????????????? +unsigned int readMapAfterFrame = 10000; // ???????????????? unsigned short autoMapSeeFlagBuf[AUTO_MAPPING_SEE_H*AUTO_MAPPING_SEE_W]; BOOL autoMapSeeFlag = FALSE; int autoMapSeeFloor; int autoMapSeeGx, autoMapSeeGy; */ -// ???????? -// 1 ... ?????? -// 0 ... G +// ????????? +// 1 ... ??????? +// 0 ... 二 int transmigrationEffectFlag; -// ??????????????????????? -// 1 ... ?????? -// 0 ... ? +// ???????????????????????? +// 1 ... ????阪?? +// 0 ... ? int transEffectPaletteStatus; -// ??????????????????? -// ??????????r?????? +// ???????????????????? +// ??????????┴?????? unsigned int transEffectPaletteAfterWaitTime; -// ?h?? +// ?去?? void onceMoveProc(void); void partyMoveProc(void); void getPartyTbl(void); @@ -217,9 +217,9 @@ void MoveScreenProc(void); //#define MAP_CACHE_PROC #ifdef MAP_CACHE_PROC -#define MAX_MAP_CACHE_SIZE 3 // ???????????? -#define MAP_CACHE_X_SIZE 800 // ????????? -#define MAP_CACHE_Y_SIZE 1200 // ????????? +#define MAX_MAP_CACHE_SIZE 3 // ????????????? +#define MAP_CACHE_X_SIZE 800 // ?????????? +#define MAP_CACHE_Y_SIZE 1200 // ?????????? #define MAP_CACHE_X_BYTE ((MAP_CACHE_X_SIZE+7)/8) #define MAP_CACHE_Y_BYTE MAP_CACHE_Y_SIZE int mapCacheFloorNo[MAX_MAP_CACHE_SIZE]; @@ -345,7 +345,7 @@ void initMap(void) // ????????? void resetMap(void) { - // ?h????hI???????? + // ?去????去!???????? nowGx = (int)(nowX / GRID_SIZE); nowGy = (int)(nowY / GRID_SIZE); nextGx = nowGx; @@ -387,7 +387,7 @@ void resetMap(void) } /////////////////////////////////////////////////////////////////////////// -// ???????????????????????t?? +// ???????????????????????宇?? void createMap(int fl, int maxx, int maxy) { FILE *fp; @@ -401,7 +401,7 @@ void createMap(int fl, int maxx, int maxy) sprintf(floorname, "map\\%d.dat", fl); if ((fp = fopen(floorname, "rb")) == NULL) { - // ??????????? + // ???????????? _mkdir("map"); if ((fp = fopen(floorname, "wb")) == NULL) return; @@ -427,7 +427,7 @@ void createMap(int fl, int maxx, int maxy) if (maxx != ox || maxy != oy) { fclose(fp); - // ?????????V??????????? + // ?????????㎏??????????? if ((fp = fopen(floorname, "wb")) == NULL) return; fwrite(&maxx, sizeof(int), 1, fp); @@ -447,7 +447,7 @@ void createMap(int fl, int maxx, int maxy) } } -// ???????????????????????? +// ?????????????????????????? void setEventMemory(int x, int y, unsigned short ev) { event[(y - mapAreaY1) * mapAreaWidth + (x - mapAreaX1)] = ev; @@ -455,9 +455,9 @@ void setEventMemory(int x, int y, unsigned short ev) // ??????????? // -// ?????(x1,y1)-(x2,y2)?d????????????? +// ?????火(x1,y1)-(x2,y2)?吳????????????? // -// tile, parts, event ?_?????B?????? +// tile, parts, event ?︵?????﹨?????? // BOOL writeMap(int floor, int x1, int y1, int x2, int y2, unsigned short *tile , unsigned short *parts, unsigned short *event) { @@ -465,7 +465,7 @@ BOOL writeMap(int floor, int x1, int y1, int x2, int y2, unsigned short *tile , char filename[255]; int fWidth, fHeight, fOffset, mWidth, width, height, fx, fy, mx, my, len, len2, i, j; - // ???????? + // ?????????? sprintf_s(filename, "map\\%d.dat", floor); // ???????? @@ -526,12 +526,12 @@ BOOL writeMap(int floor, int x1, int y1, int x2, int y2, unsigned short *tile , len2 = my * mWidth + mx; for (i = 0; i < height; i++) { - // ????????????? + // ?????????????? for (j = 0; j < width; j++) { event[len2+j] |= (MAP_SEE_FLAG | MAP_READ_FLAG); if (nowFloor == floor && (mapAreaX1 <= x1 + j && x1 + j < mapAreaX2 && mapAreaY1 <= y1 + i && y1 + i < mapAreaY2)) - // ???????????????????????? + // ?????????????????????????? setEventMemory(x1 + j, y1 + i, event[len2 + j]); } fseek(fp, sizeof(short) * len + fOffset, SEEK_SET); @@ -544,20 +544,20 @@ BOOL writeMap(int floor, int x1, int y1, int x2, int y2, unsigned short *tile , return TRUE; } -// ?????????? +// ??????????? // -// ?????(x1,y1)-(x2,y2)?d???????????? +// ?????火(x1,y1)-(x2,y2)?吳????????????? // BOOL readMap(int floor, int x1, int y1, int x2, int y2, unsigned short *tile, unsigned short *parts, unsigned short *event) { FILE *fp; char filename[255]; -#ifdef _FIX_DEL_MAP // WON ҳͼ +#ifdef _FIX_DEL_MAP // WON 党淏俙模喲華芞 char list[10]; #endif int fWidth, fHeight, fOffset, mWidth, width, height, fx, fy, mx, my, len, len2, i; //printf("floor=%d x1=%d y1=%d x2=%d y2=%d\n",floor,x1,y1,x2,y2); - // ???????? + // ?????????? sprintf_s(filename, "map\\%d.dat", floor); // ???????? @@ -568,18 +568,18 @@ BOOL readMap(int floor, int x1, int y1, int x2, int y2, unsigned short *tile, un //memset(parts, 193, MAP_X_SIZE * MAP_Y_SIZE * sizeof(short)); #else _mkdir("map"); - // ????????? + // ?????????? fp = fopen(filename, "wb"); fclose(fp); #endif - // ??????????T???? + // ???????????冉???? if ((fp = fopen(filename, "rb")) == NULL) return FALSE; } -#ifdef _FIX_DEL_MAP // WON ҳͼ +#ifdef _FIX_DEL_MAP // WON 党淏俙模喲華芞 fseek(fp, 0, SEEK_SET); - if (!fread(list, sizeof(char), 1, fp)) { // ҳͼͼ + if (!fread(list, sizeof(char), 1, fp)) { // 俙模喲裁華芞冞潼郜 //andy_add memset(tile, 193, MAP_X_SIZE * MAP_Y_SIZE * sizeof(short)); //memset(parts, 193, MAP_X_SIZE * MAP_Y_SIZE * sizeof(short)); @@ -657,7 +657,7 @@ BOOL readMap(int floor, int x1, int y1, int x2, int y2, unsigned short *tile, un return TRUE; } // -// ????t@e +// ???牙?ㄅ 叉 // void setMap(int floor, int gx, int gy) { @@ -665,7 +665,7 @@ void setMap(int floor, int gx, int gy) setWarpMap(gx, gy); } // -// ????t???? +// ????ㄅ???阪? // void setWarpMap(int gx, int gy) { @@ -685,18 +685,18 @@ void setWarpMap(int gx, int gy) viewPointX = nowX; viewPointY = nowY; wnCloseFlag = 1; -#ifdef _AniCrossFrame // Syu ADD ι +#ifdef _AniCrossFrame // Syu ADD 雄賒脯蚔徹賒醱汜昜 extern void crossAniRelease(); crossAniRelease(); #endif -#ifdef _SURFACE_ANIM //ROG ADD ̬ +#ifdef _SURFACE_ANIM //ROG ADD 雄怓部劓 extern void ReleaseSpecAnim (); ReleaseSpecAnim(); #endif } -#ifdef _NEWDRAWBATTLEMAP // (ɿ) Syu ADD ԶBattleMap -//ROG ADD Զ +#ifdef _NEWDRAWBATTLEMAP // (祥褫羲溫) Syu ADD 赻雄莉汜BattleMap +//ROG ADD 赻雄齬唗 typedef struct{ int x; int y; @@ -743,24 +743,24 @@ void ddrawBattleMap(void) PARTS tempTiles[MAX_CHAR_PRIO_BUF / 2]; draw_map_bgm_flg = 0; - // ????????t?????????????? + // ????????ㄅ?阪?????????????? if (nowGx != oldGx || nowGy != oldGy) { if (readMap(nowFloor, mapAreaX1, mapAreaY1, mapAreaX2, mapAreaY2, &tile[0], &parts[0], &event[0])) { - // hitMap[]????Re????@e + // hitMap[]????刪叉???? 叉 readHitMap(mapAreaX1, mapAreaY1, mapAreaX2, mapAreaY2, &tile[0], &parts[0], &event[0], &hitMap[0]); if (mapEmptyFlag) { if (!checkEmptyMap(mapEmptyDir)) { mapEmptyFlag = FALSE; - autoMappingInitFlag = TRUE; // ????????? + autoMappingInitFlag = TRUE; // ?????????? } } else - autoMappingInitFlag = TRUE; // ????????? -// readMapAfterFrame = 0; // ???????????????????????? + autoMappingInitFlag = TRUE; // ?????????? +// readMapAfterFrame = 0; // ????????????????????????? } else return; @@ -796,14 +796,14 @@ void ddrawBattleMap(void) y = ty; while (i >= 0 && j >= 0) { - // ??? + // ???牙 if (tile[i * mapAreaWidth+j] > CG_INVISIBLE || parts[i * mapAreaWidth+j] > CG_INVISIBLE) { - // ??????? + // ????????? if (x >= (-SURFACE_WIDTH >> 1) && x < DEF_APPSIZEX + (SURFACE_WIDTH >> 1) && y >= (-SURFACE_HEIGHT >> 1) && y < DEF_APPSIZEY + (SURFACE_HEIGHT >> 1)) { -//ROG ADD ʾ +//ROG ADD 華奻昜珆尨 if (parts[i * mapAreaWidth+j] > CG_INVISIBLE) { realGetNo(parts[i * mapAreaWidth + j], &bmpNo); @@ -840,7 +840,7 @@ void ddrawBattleMap(void) ty -= SURFACE_HEIGHT >> 1; } } -//ROG ADD ʾ +//ROG ADD 華奻昜珆尨 if (partsCnt > 0) { qsort(tempParts, partsCnt, sizeof(PARTS), (CMPFUNC*)sort_parts); @@ -873,24 +873,24 @@ void drawMap(void) draw_map_bgm_flg = 0; // readMapAfterFrame++; - // ????????t?????????????? + // ????????ㄅ?阪?????????????? if (nowGx != oldGx || nowGy != oldGy) { if (readMap(nowFloor, mapAreaX1, mapAreaY1, mapAreaX2, mapAreaY2, &tile[0], &parts[0], &event[0])) { - // hitMap[]????Re????@e + // hitMap[]????刪叉???? 叉 readHitMap(mapAreaX1, mapAreaY1, mapAreaX2, mapAreaY2, &tile[0], &parts[0], &event[0], &hitMap[0]); if (mapEmptyFlag) { if (!checkEmptyMap(mapEmptyDir)) { mapEmptyFlag = FALSE; - autoMappingInitFlag = TRUE; // ????????? + autoMappingInitFlag = TRUE; // ?????????? } } else - autoMappingInitFlag = TRUE; // ????????? -// readMapAfterFrame = 0; // ???????????????????????? + autoMappingInitFlag = TRUE; // ?????????? +// readMapAfterFrame = 0; // ????????????????????????? } else return; @@ -918,7 +918,7 @@ void drawMap(void) ty = nowYFastDraw2 + (-mapAreaX1 + mapAreaY2 - 1) * SURFACE_HEIGHT / 2; #if 1 - // ????k??????????? + // ????吻??????????? // // [map] // 16 @@ -943,36 +943,36 @@ void drawMap(void) // if (i==30) while (i >= 0 && j >= 0) { - // ??? + // ???牙 if (tile[i * mapAreaWidth+j] > CG_INVISIBLE) { #if 0 - // ????????(???) + // ?????????(???) if (193 <= tile[i * mapAreaWidth + j] && tile[i * mapAreaWidth+j] <= 196) play_environment(0, x, y); #endif - // ??????? + // ????????? if (x >= (-SURFACE_WIDTH >> 1) && x < DEF_APPSIZEX + (SURFACE_WIDTH >> 1) && y >= (-SURFACE_HEIGHT >> 1) && y < DEF_APPSIZEY + (SURFACE_HEIGHT >> 1)) StockDispBuffer(x, y, DISP_PRIO_TILE, tile[i * mapAreaWidth + j], 0); } else { - // {????????? - // ?????????? + // 叻????????? + // ??????????? if (20 <= tile[i * mapAreaWidth + j] && tile[i * mapAreaWidth + j] <= 39) play_environment(tile[i * mapAreaWidth + j], x, y); - else if (40 <= tile[i * mapAreaWidth + j] && tile[i * mapAreaWidth + j] <= 59)// ??????????? + else if (40 <= tile[i * mapAreaWidth + j] && tile[i * mapAreaWidth + j] <= 59)// ???????????? { play_map_bgm(tile[i * mapAreaWidth + j]); draw_map_bgm_flg = 1; } } - // ??? + // ???牙 if (parts[i * mapAreaWidth+j] > CG_INVISIBLE) { #if 0 - // ????????(???) + // ?????????(???) if (parts[i * mapAreaWidth+j] == 10011) play_environment(2, x, y); else if (parts[i * mapAreaWidth + j] == 10012) @@ -986,22 +986,22 @@ void drawMap(void) } #endif realGetNo(parts[i * mapAreaWidth + j], &bmpNo); - // ??????? + // ????????? realGetPos(bmpNo, &xx, &yy); realGetWH(bmpNo, &ww, &hh); xx += x; yy += y; if (xx < DEF_APPSIZEX && xx + ww - 1 >= 0 && yy < DEF_APPSIZEY && yy + hh - 1 >= 0) - // ?IT?e????K??? + // 牙?!冉?叉????仕??? setPartsPrio(bmpNo, x, y, 0, 0, (float)(mapAreaX1 + j) * GRID_SIZE, (float)(mapAreaY1 + i) * GRID_SIZE, -1); } else { - // {????????? - // ?????????? + // 叻????????? + // ??????????? if (20 <= parts[i * mapAreaWidth + j] && parts[i * mapAreaWidth + j] <= 39) play_environment(parts[i * mapAreaWidth + j], x, y); - else if (40 <= parts[i * mapAreaWidth + j] && parts[i * mapAreaWidth + j] <= 59)// ??????????? + else if (40 <= parts[i * mapAreaWidth + j] && parts[i * mapAreaWidth + j] <= 59)// ???????????? { play_map_bgm(parts[i * mapAreaWidth + j]); draw_map_bgm_flg = 1; @@ -1025,7 +1025,7 @@ void drawMap(void) } } #else - // ????k??????????? + // ????吻??????????? // // [map] // 16 @@ -1043,25 +1043,25 @@ void drawMap(void) ty = y; for (j = 0; j < mapAreaWidth; j++) { - // ??? + // ???牙 if (tile[i * mapAreaWidth + j] > CG_INVISIBLE) { - // ??????? + // ????????? if (x >= (-SURFACE_WIDTH >> 1) && x < DEF_APPSIZEX + (SURFACE_WIDTH >> 1) && y >= (-SURFACE_HEIGHT >> 1) && y < DEF_APPSIZEY + (SURFACE_HEIGHT >> 1)) StockDispBuffer(x, y, DISP_PRIO_TILE, tile[i * mapAreaWidth + j], 0); } - // ??? + // ???牙 if (parts[i * mapAreaWidth + j] > CG_INVISIBLE) { realGetNo(parts[i * mapAreaWidth + j], &bmpNo); - // ??????? + // ????????? realGetPos(bmpNo, &xx, &yy); realGetWH(bmpNo, &ww, &hh); xx += x; yy += y; if (xx < DEF_APPSIZEX && xx + ww - 1 >= 0 && yy < DEF_APPSIZEY && yy + hh - 1 >= 0) - // ?IT?e????K??? + // 牙?!冉?叉????仕??? setPartsPrio(bmpNo, x, y, 0, 0, (float)(mapAreaX1 + j) * GRID_SIZE, (float)(mapAreaY1 + i) * GRID_SIZE, -1); } x += SURFACE_WIDTH >> 1; @@ -1090,7 +1090,7 @@ void drawMap(void) } } -// ?????L?? +// ?????﹩丙?? void drawMap2(void) { int i, j, x, y, tx, ty; @@ -1106,24 +1106,24 @@ void drawMap2(void) } draw_map_bgm_flg = 0; // readMapAfterFrame++; - // ????????t?????????????? + // ????????ㄅ?阪?????????????? if (nowGx != oldGx || nowGy != oldGy) { if (readMap(nowFloor, mapAreaX1, mapAreaY1, mapAreaX2, mapAreaY2, &tile[0], &parts[0], &event[0])) { - // hitMap[]????Re????@e?? + // hitMap[]????刪叉???? 叉?? readHitMap(mapAreaX1, mapAreaY1, mapAreaX2, mapAreaY2, &tile[0], &parts[0], &event[0], &hitMap[0]); if (mapEmptyFlag) { if (!checkEmptyMap(mapEmptyDir)) { mapEmptyFlag = FALSE; - autoMappingInitFlag = TRUE; // ????????? + autoMappingInitFlag = TRUE; // ?????????? } } else - autoMappingInitFlag = TRUE; // ????????? -// readMapAfterFrame = 0; // ???????????????????????? + autoMappingInitFlag = TRUE; // ?????????? +// readMapAfterFrame = 0; // ????????????????????????? } else return; @@ -1153,7 +1153,7 @@ void drawMap2(void) amountYFastDraw2 = nowYFastDraw2 - baseYFastDraw2; tx = nowXFastDraw2 + (mapAreaX1 + mapAreaY2 - 1) * SURFACE_WIDTH / 2; ty = nowYFastDraw2 + (-mapAreaX1 + mapAreaY2 - 1) * SURFACE_HEIGHT / 2; - // ????k??????????? + // ????吻??????????? // // [map] // 16 @@ -1175,12 +1175,12 @@ void drawMap2(void) y = ty; while (i >= 0 && j >= 0) { - // ??? + // ???牙 if (tile[i * mapAreaWidth + j] > CG_INVISIBLE) { if (amountXFastDraw2 != 0 || amountYFastDraw2 != 0) { - // ??V????????????? + // ????向????????????? if ((-SURFACE_WIDTH >> 1) < x && x < DEF_APPSIZEX + (SURFACE_WIDTH >> 1) && (-SURFACE_HEIGHT >> 1) < y && y < DEF_APPSIZEY + (SURFACE_HEIGHT >> 1)) { @@ -1212,17 +1212,17 @@ void drawMap2(void) } else { - // {????????? - // ?????????? + // 叻????????? + // ??????????? if (20 <= tile[i * mapAreaWidth + j] && tile[i * mapAreaWidth + j] <= 39) play_environment(tile[i * mapAreaWidth + j], x, y); - else if (40 <= tile[i * mapAreaWidth + j] && tile[i * mapAreaWidth + j] <= 59)// ??????????? + else if (40 <= tile[i * mapAreaWidth + j] && tile[i * mapAreaWidth + j] <= 59)// ???????????? { play_map_bgm(tile[i * mapAreaWidth + j]); draw_map_bgm_flg = 1; } } - // ??? + // ???牙 if (parts[i * mapAreaWidth + j] > CG_INVISIBLE) { //printf("parts[i * mapAreaWidth + j]=%d i=%d j=%d\n",parts[i * mapAreaWidth + j],i,j); @@ -1230,7 +1230,7 @@ void drawMap2(void) realGetNo(parts[i * mapAreaWidth + j], &bmpNo); - // ??????? + // ????????? realGetPos(bmpNo, &xx, &yy); realGetWH(bmpNo, &ww, &hh); xx += x; @@ -1240,11 +1240,11 @@ void drawMap2(void) } else { - // {????????? - // ?????????? + // 叻????????? + // ??????????? if (20 <= parts[i * mapAreaWidth + j] && parts[i * mapAreaWidth + j] <= 39) play_environment(parts[i * mapAreaWidth + j], x, y); - else if (40 <= parts[i * mapAreaWidth + j] && parts[i * mapAreaWidth + j] <= 59)// ??????????? + else if (40 <= parts[i * mapAreaWidth + j] && parts[i * mapAreaWidth + j] <= 59)// ???????????? { play_map_bgm(parts[i * mapAreaWidth + j]); draw_map_bgm_flg = 1; @@ -1279,17 +1279,17 @@ void drawMap2(void) oldGy = nowGy; } -// ????? +// ?????牙 void drawTile(void) { int i, j, x, y, tx, ty; - // ????????? + // ?????????? if (readMap(nowFloor, mapAreaX1, mapAreaY1, mapAreaX2, mapAreaY2, &tile[0], &parts[0], &event[0])) - readHitMap(mapAreaX1, mapAreaY1, mapAreaX2, mapAreaY2, &tile[0], &parts[0], &event[0], &hitMap[0]); // hitMap[]????Re????@e?? + readHitMap(mapAreaX1, mapAreaY1, mapAreaX2, mapAreaY2, &tile[0], &parts[0], &event[0], &hitMap[0]); // hitMap[]????刪叉???? 叉?? tx = nowXFastDraw2 + (((mapAreaX1 + mapAreaY2 - 1) * SURFACE_WIDTH) >> 1); ty = nowYFastDraw2 + (((-mapAreaX1 + mapAreaY2 - 1) * SURFACE_HEIGHT) >> 1); - // ????k??????????? + // ????吻??????????? // // [map] // 16 @@ -1312,10 +1312,10 @@ void drawTile(void) y = ty; while (i >= 0 && j >= 0) { - // ??? + // ???牙 if (tile[i * mapAreaWidth + j] > CG_INVISIBLE) { - // ??????? + // ????????? if (x >= (-SURFACE_WIDTH >> 1) && x < (DEF_APPSIZEX + (SURFACE_WIDTH >> 1)) && y >= (-SURFACE_HEIGHT >> 1) && y < (DEF_APPSIZEY + (SURFACE_HEIGHT >> 1))) StockDispBuffer(x, y, DISP_PRIO_TILE, tile[i * mapAreaWidth + j], 0); @@ -1345,7 +1345,7 @@ void redrawMap(void) oldGy = -1; } #if 1 -static unsigned char BitTable[] = /* ??????????????? */ +static unsigned char BitTable[] = /* ????杆??????????? */ { 0x00 , 0x80 , 0x40 , 0xC0 , 0x20 , 0xA0 , 0x60 , 0xE0 , 0x10 , 0x90 , 0x50 , 0xD0 , 0x30 , 0xB0 , 0x70 , 0xF0 , @@ -1380,7 +1380,7 @@ static unsigned char BitTable[] = /* ???? 0x0F , 0x8F , 0x4F , 0xCF , 0x2F , 0xAF , 0x6F , 0xEF , 0x1F , 0x9F , 0x5F , 0xDF , 0x3F , 0xBF , 0x7F , 0xFF }; -static unsigned short crctab16[] = /* crc ?????? */ +static unsigned short crctab16[] = /* crc ?????? */ { 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, 0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, @@ -1434,7 +1434,7 @@ BOOL mapCheckSum(int floor, int x1, int y1, int x2, int y2, int tileSum, int par unsigned short parts[MAP_X_SIZE*MAP_Y_SIZE]; unsigned short event[MAP_X_SIZE*MAP_Y_SIZE]; - // ????????????? + // ?????????????? readMap(floor, x1, y1, x2, y2, tile, parts, event); for (i = 0; i < height; i++) @@ -1462,7 +1462,7 @@ BOOL mapCheckSum(int floor, int x1, int y1, int x2, int y2, int tileSum, int par lssproto_M_send(sockfd, floor, x1, y1, x2, y2); else old_lssproto_M_send(sockfd, floor, x1, y1, x2, y2); - //ͼ쳣 + //党淏華芞祑都 if (loginFlag) loginFlag = FALSE; @@ -1476,7 +1476,7 @@ BOOL mapCheckSum(int floor, int x1, int y1, int x2, int y2, int tileSum, int par unsigned short tile[MAP_X_SIZE*MAP_Y_SIZE]; unsigned short parts[MAP_X_SIZE*MAP_Y_SIZE]; unsigned short event[MAP_X_SIZE*MAP_Y_SIZE]; - // ????????????? + // ?????????????? readMap(floor, x1, y1, x2, y2, tile, parts, event); for (i = 0; i < height; i++) @@ -1496,7 +1496,7 @@ BOOL mapCheckSum(int floor, int x1, int y1, int x2, int y2, int tileSum, int par if (tileSum == tilesum && partsSum == objsum && eventSum == eventsum) { - // ?????????????????? + // ??????????????????? if (loginFlag) { redrawMap(); @@ -1522,7 +1522,7 @@ BOOL mapCheckSum(int floor, int x1, int y1, int x2, int y2, int tileSum, int par #endif -// ????????????Reѩ???? +// ????????????刪叉????? #if 1 void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned short *parts, unsigned short *event, unsigned short *hitMap) { @@ -1542,16 +1542,16 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s { for (j = 0; j < width; j++) { - // ???????Re + // ???????刪叉 if (tile[i * width + j] > CG_INVISIBLE || (60 <= tile[i * width + j] && tile[i * width + j] <= 79)) { realGetNo(tile[i * width + j], &bmpNo); - // ???Re?? + // ???刪叉??? realGetHitFlag(bmpNo, &hit); - // ???Re?????????@e + // ???刪叉????????? 叉 if (hit == 0 && hitMap[i * width + j] != 2) hitMap[i * width + j] = 1; - else if (hit == 2) // hit?2??????Re??? + else if (hit == 2) // hit?2??????刪叉??? hitMap[i * width + j] = 2; } else @@ -1559,8 +1559,8 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s // 0??11?????????????? switch (tile[i * width + j]) { - case 0: // 0.bmp(???)???????Re????? - // ???????????????????? + case 0: // 0.bmp(????)???????刪叉????? + // ????????????????????? if ((event[i * width + j] & MAP_SEE_FLAG) == 0) break; case 1: @@ -1569,7 +1569,7 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s case 6: case 9: case 10: - // ???Re???????@e??? + // ???刪叉??????? 叉??? if (hitMap[i * width + j] != 2) hitMap[i * width + j] = 1; break; @@ -1587,13 +1587,13 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s { for (j = 0; j < width; j++) { - // ???????Re + // ???????刪叉 if (parts[i * width + j] > CG_INVISIBLE) { realGetNo(parts[i * width + j], &bmpNo); - // ???Re?? + // ???刪叉??? realGetHitFlag(bmpNo, &hit); - // ???Re?????????@e + // ???刪叉????????? 叉 if (hit == 0) { realGetHitPoints(bmpNo, &hitX, &hitY); @@ -1606,8 +1606,8 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s } } } - // ???Re?????????????? - // ?ɤ???????? + // ???刪叉?????????卷????? + // ???卷??????? else if (hit == 2) { realGetHitPoints(bmpNo, &hitX, &hitY); @@ -1638,12 +1638,12 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s else if (60 <= parts[i * width + j] && parts[i * width + j] <= 79) { realGetNo(parts[i * width + j], &bmpNo); - // ???Re?? + // ???刪叉??? realGetHitFlag(bmpNo, &hit); - // ???Re?????????@e + // ???刪叉????????? 叉 if (hit == 0 && hitMap[i * width + j] != 2) hitMap[i * width + j] = 1; - // hit?2??????Re??? + // hit?2??????刪叉??? else if (hit == 2) hitMap[i * width + j] = 2; } @@ -1658,7 +1658,7 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s case 6: case 9: case 10: - // ???Re???????@e??? + // ???刪叉??????? 叉??? if (hitMap[i * width + j] != 2) hitMap[i * width + j] = 1; break; @@ -1669,7 +1669,7 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s } } - // ?e?????????????? + // ?叉?????????岌????? if ((event[i * width + j] & 0x0fff) == EVENT_NPC) hitMap[i * width + j] = 1; } @@ -1693,11 +1693,11 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s { for (j = 0; j < width; j++) { - // ???????????????????? + // ????????????????????? if ((event[i * width + j] & MAP_READ_FLAG) == 0) continue; - // ???????Re + // ???????刪叉 if (tile[i * width + j] > CG_INVISIBLE #if 0 || (60 <= tile[i * width + j] && tile[i * width + j] <= 79)) @@ -1706,12 +1706,12 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s #endif { realGetNo(tile[i * width + j], &bmpNo); - // ???Re?? + // ???刪叉??? realGetHitFlag(bmpNo, &hit); - // ???Re?????????@e + // ???刪叉????????? 叉 if (hit == 0 && hitMap[i * width + j] != 2) hitMap[i*width+j] = 1; - // hit?2??????Re??? + // hit?2??????刪叉??? else if (hit == 2) hitMap[i * width + j] = 2; } @@ -1721,14 +1721,14 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s // 0??11?????????????? switch (tile[i * width + j]) { - case 0: // 0.bmp(???)???????Re????? + case 0: // 0.bmp(????)???????刪叉????? case 1: case 2: case 5: case 6: case 9: case 10: - // ???Re???????@e??? + // ???刪叉??????? 叉??? if (hitMap[i * width + j] != 2) hitMap[i * width + j] = 1; break; @@ -1738,13 +1738,13 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s } } #endif - // ???????Re + // ???????刪叉 if (parts[i * width + j] > CG_INVISIBLE) { realGetNo(parts[i * width + j], &bmpNo); - // ???Re?? + // ???刪叉??? realGetHitFlag(bmpNo, &hit); - // ???Re?????????@e + // ???刪叉????????? 叉 if (hit == 0) { realGetHitPoints(bmpNo, &hitX, &hitY); @@ -1757,8 +1757,8 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s } } } - // ???Re?????????????? - // ?ɤ???????? + // ???刪叉?????????卷????? + // ???卷??????? else if (hit == 2) { realGetHitPoints(bmpNo, &hitX, &hitY); @@ -1776,12 +1776,12 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s else if (60 <= parts[i * width + j] && parts[i * width + j] <= 79) { realGetNo(parts[i * width + j], &bmpNo); - // ???Re?? + // ???刪叉??? realGetHitFlag(bmpNo, &hit); - // ???Re?????????@e + // ???刪叉????????? 叉 if (hit == 0 && hitMap[i * width + j] != 2) hitMap[i * width + j] = 1; - // hit?2??????Re??? + // hit?2??????刪叉??? else if (hit == 2) hitMap[i * width + j] = 2; } @@ -1798,7 +1798,7 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s case 6: case 9: case 10: - // ???Re???????@e??? + // ???刪叉??????? 叉??? if (hitMap[i * width + j] != 2) hitMap[i * width + j] = 1; break; @@ -1808,7 +1808,7 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s } } #endif - // ?e?????????????? + // ?叉?????????岌????? if ((event[i * width + j] & 0x0fff) == EVENT_NPC) hitMap[i * width + j] = 1; } @@ -1816,8 +1816,8 @@ void readHitMap(int x1, int y1, int x2, int y2, unsigned short *tile, unsigned s } #endif // -// ???Re????? -// ??kTRUE ... V? +// ???刪叉????? +// ??πㄩTRUE ... 向? // #ifdef _ITEM_PATH BOOL ITEMPATHFLAG = FALSE; @@ -1832,7 +1832,7 @@ BOOL checkHitMap(int gx, int gy) if (pc.skywalker) return FALSE; - // ????d???V? + // ????吳???向? if (x < 0 || mapAreaWidth <= x || y < 0 || mapAreaHeight <= y) return TRUE; #ifdef _ITEM_PATH @@ -1842,7 +1842,7 @@ BOOL checkHitMap(int gx, int gy) return FALSE; } #endif - // ???Re????V? + // ???刪叉????向? if (hitMap[y * mapAreaWidth + x] == 1) return TRUE; @@ -1850,11 +1850,11 @@ BOOL checkHitMap(int gx, int gy) } // -// ?hI?????????h????????????r?? +// ?去!??????????去????????????┴?? // BOOL checkEmptyMap(int dir) { - // ?????t???11??????????????TRUE?? + // ?????ㄅ???11????????????????TRUE?刺? int i, gx, gy, tx, ty, len; BOOL flag = FALSE; @@ -1975,7 +1975,7 @@ BOOL checkEmptyMap(int dir) return flag; } -// d?????????? +// 吳?????????? void checkAreaLimit(short *x1, short *y1, short *x2, short *y2) { if (*x1 < 0) @@ -1989,7 +1989,7 @@ void checkAreaLimit(short *x1, short *y1, short *x2, short *y2) } /////////////////////////////////////////////////////////////////////////// -// ???????????????? +// ???????????????牙?? // void drawGrid(void) { @@ -2001,7 +2001,7 @@ void drawGrid(void) // ???????????????? if ((MenuToggleFlag & JOY_CTRL_M) == 0) mapWndFontNo[0] = -2; - // Pf??????????????? + // ·卯??????????????? if (BattleResultWndFlag <= 0) resultWndFontNo[0] = -2; @@ -2014,14 +2014,14 @@ void drawGrid(void) yy = mouseMapGy * GRID_SIZE; camMapToGamen((float)xx, (float)yy, &x, &y); - // ?????????????????????? + // ???????????????????牙??? #if 0 if (mouse.level < DISP_PRIO_MENU || mapWndFontNo[0] == HitDispNo || resultWndFontNo[0] == HitDispNo) #else if (mouse.level < DISP_PRIO_MENU) #endif { - // ????????? + // ?????????牙 if (mouseCursorMode == MOUSE_CURSOR_MODE_NORMAL) StockDispBuffer((int)(x + .5), (int)(y + .5), DISP_PRIO_GRID, CG_GRID_CURSOR, 0); //cary 2002.1.15 else @@ -2030,8 +2030,8 @@ void drawGrid(void) // } } - // ?????l - // fieldProc(); moveProc(); ?????????????? + // ?????ρ + // fieldProc(); moveProc(); ?????????????? mouseLeftCrick = FALSE; mouseLeftOn = FALSE; mouseRightCrick = FALSE; @@ -2044,11 +2044,11 @@ void drawGrid(void) if ((mouse.onceState & MOUSE_LEFT_CRICK)) { #ifdef _MOVE_SCREEN - if (!pc.bCanUseMouse) // 糡ģʽʱƶ + if (!pc.bCanUseMouse) // 曄部耀宒奀偌賑扷祥夔痄雄 #endif { #ifdef _THEATER - // pc.iTheaterMode 0 ʱʾڱ,Ҫ pc.bCanUseMouse 趨Ϊ TRUE + // 絞 pc.iTheaterMode 湮衾 0 奀桶尨淏婓桶栳,垀眕猁參 pc.bCanUseMouse 扢隅峈 TRUE if (pc.iTheaterMode > 0) pc.bCanUseMouse = TRUE; #endif @@ -2060,11 +2060,11 @@ void drawGrid(void) if ((mouse.state & MOUSE_LEFT_CRICK)) { #ifdef _MOVE_SCREEN - if (!pc.bCanUseMouse) // 糡ģʽʱƶ + if (!pc.bCanUseMouse) // 曄部耀宒奀偌賑扷祥夔痄雄 #endif { #ifdef _THEATER - // pc.iTheaterMode 0 ʱʾڱ,Ҫ pc.bCanUseMouse 趨Ϊ TRUE + // 絞 pc.iTheaterMode 湮衾 0 奀桶尨淏婓桶栳,垀眕猁參 pc.bCanUseMouse 扢隅峈 TRUE if (pc.iTheaterMode > 0) pc.bCanUseMouse = TRUE; #endif @@ -2086,8 +2086,8 @@ void drawGrid(void) if ((mouse.onceState & MOUSE_RIGHT_DBL_CRICK)) mouseDblRightOn = TRUE; #endif - // ???????????????????h??????? - // Pf??????????????????h??????? + // ???????????????????去??????? + // ·卯??????????????????去??????? if (mapWndFontNo[0] == HitDispNo || resultWndFontNo[0] == HitDispNo) mouseLeftCrick = FALSE; } @@ -2100,7 +2100,7 @@ void drawGrid(void) } /////////////////////////////////////////////////////////////////////////// -// ?h?? +// ?去?? //Terry add 2003/11/25 bool g_bTradesystemOpen = false; //end @@ -2140,8 +2140,8 @@ void moveProc(void) } else if (tglSw == 3 || tglSw == 4) { - // ???Re?????? - // ????Re?????? + // ???刪叉牙?????? + // ????刪叉牙?????? char msg[256]; int x, y, xx, yy, color; @@ -2229,12 +2229,12 @@ void moveProc(void) } #endif - // ????????????? + // ????????????? if (sendEnFlag == 0 && eventWarpSendFlag == 0 && eventEnemySendFlag == 0) etcEventFlag = 0; - // ????Y?????????? + // ????即?????????? // ?????????????? if (mouseLeftCrick) { @@ -2250,12 +2250,12 @@ void moveProc(void) mouseLeftCrick = FALSE; //end } - // ???????????? + // ?????阪??????? if (mouseRightCrick) { - // ????? + // ????阪? turnAround(); - // ????? + // ????? getItem(); } #ifdef _MOUSE_DBL_CLICK @@ -2263,25 +2263,25 @@ void moveProc(void) { } #endif - // ?hI?k - // O?????????V????? + // ?去!?︻? + // Μ??????????向???至?? // ????????????????? if ((partyModeFlag == 0 || (pc.status & CHR_STATUS_LEADER) != 0) && etcSendFlag == 0 && etcEventFlag == 0) { - // ??????????h?????? + // ??????企????去?????? if (mouseLeftPushTime >= MOVE_MODE_CHANGE_TIME) mouseCursorMode = MOUSE_CURSOR_MODE_MOVE; - // ?h?????? + // ?去?????? if (mouseCursorMode == MOUSE_CURSOR_MODE_MOVE) { - // ????????G?????? + // ????????二?????? if (mouseLeftCrick) mouseCursorMode = MOUSE_CURSOR_MODE_NORMAL; else - // ???????t??hI??? + // ???????ㄅ??去!??? { - // ??????? + // ??????? if (befortime + MOVE_CLICK_WAIT_TIME <= TimeGetTime()) { befortime = TimeGetTime(); @@ -2292,11 +2292,11 @@ void moveProc(void) } } else - // G?????? + // 二?????? if (mouseLeftCrick) { - // ???????t??hI??? - // ??????? + // ???????ㄅ??去!??? + // ??????? if (befortime + MOVE_CLICK_WAIT_TIME <= TimeGetTime()) { befortime = TimeGetTime(); @@ -2307,13 +2307,13 @@ void moveProc(void) } } - // ?????k?????? + // ?????吻?????? getPartyTbl(); - // ??????????h?? + // ??????????去?? if (partyModeFlag == 0 || (pc.status & CHR_STATUS_LEADER) != 0) onceMoveProc(); else - // ??????????h?? + // ??????????去?? partyMoveProc(); #ifdef _MOVE_SCREEN if (pc.bMoveScreenMode) @@ -2342,11 +2342,11 @@ short _encountFlag = 0; short _warpEventFlag = 0; short _enemyEventFlag = 0; int _enemyEventDir; -short justGoalFlag = 0; // ???????????? +short justGoalFlag = 0; // ????????????? #ifdef MAX_AIRPLANENUM short _partyTbl[MAX_AIRPLANENUM]; #else -short _partyTbl[MAX_PARTY]; // ?????ѩ???????? +short _partyTbl[MAX_PARTY]; // ?????????????? #endif void _etcEventCheck(void); @@ -2390,14 +2390,14 @@ void updateMapArea(void) void onceMoveProc(void) { int dir; - // ???????????L???? + // ??????卷?????﹩??╱??? nowSpdRate = 1.0F; - // ????????h?????? + // ????????去?????? if (mapEmptyFlag) return; if (sendEnFlag == 0 && eventWarpSendFlag == 0 && eventEnemySendFlag == 0) { - //cary say eventִУ͸server + //cary say 垀衄event腔硒俴ㄛ冞跤server if (_execEtcEvent()) return; if ((float)nextGx * GRID_SIZE == nowX && (float)nextGy * GRID_SIZE == nowY) @@ -2431,16 +2431,16 @@ void onceMoveProc(void) } } } - // ??????????\????????hI?@e?? + // ??????????兝????????去!? 叉?? setPartyMovePoint(); - // ??????????????????????? + // ??????????????????????? justGoalFlag = 0; - // ????????h?????? + // ????????去?????? if (mapEmptyFlag) return; - // ???h????h???????? + // ???去????去???????? _mapMove(); - // ???????h?? + // ???????去?? _partyMapMove(); updateMapArea(); @@ -2457,8 +2457,8 @@ void partyMoveProc(void) int i; ACTION *ptAct, *ptActNext; - // ????????????????hI?????@e? - // ???????????????????@e????? + // ????????????????去!????? 叉? + // ??????????????????火? 叉????? #ifdef MAX_AIRPLANENUM for (i = 0; i < MAX_AIRPLANENUM; i++) #else @@ -2472,13 +2472,13 @@ void partyMoveProc(void) // ????? if (party[_partyTbl[i]].id != pc.id) { - // ?????????????hI?@e?? + // ?????????????去!? 叉?? if ((float)ptAct->nextGx * GRID_SIZE == ptAct->mx && (float)ptAct->nextGy * GRID_SIZE == ptAct->my) { - // ?????????????@e + // ????????火????? 叉 if (ptAct->bufCount > 0) { - // ????????????L?? + // ????????????﹩?? if (i == 0) { nowSpdRate = 1.0F; @@ -2506,10 +2506,10 @@ void partyMoveProc(void) // ???? else { - // ?????????????hI?@e?? + // ?????????????去!? 叉?? if ((float)nextGx * GRID_SIZE == nowX && (float)nextGy * GRID_SIZE == nowY) { - // ?????????????@e + // ????????火????? 叉 if (ptAct->bufCount > 0) { _setMapMovePoint(ptAct->bufGx[0], ptAct->bufGy[0]); @@ -2530,7 +2530,7 @@ void partyMoveProc(void) else break; } - // ?h?? + // ?去?? #ifdef MAX_AIRPLANENUM for (i = 0; i < MAX_AIRPLANENUM; i++) #else @@ -2556,7 +2556,7 @@ void partyMoveProc(void) } /////////////////////////////////////////////////////////////////////////// -// ?????hI?@e +// ?????去!? 叉 void _setMapMovePoint(int _nextGx, int _nextGy) { float dx, dy, len, dir1; @@ -2564,7 +2564,7 @@ void _setMapMovePoint(int _nextGx, int _nextGy) nextGx = _nextGx; nextGy = _nextGy; - // ?h????? + // ?去????? dx = nextGx * GRID_SIZE - nowX; dy = nextGy * GRID_SIZE - nowY; len = (float)sqrt((double)(dx * dx + dy * dy)); @@ -2580,7 +2580,7 @@ void _setMapMovePoint(int _nextGx, int _nextGy) } nowVx = dx * MOVE_SPEED; nowVy = dy * MOVE_SPEED; - // PC?????@e + // PC?????? 叉 if (dx != 0 || dy != 0) { dir1 = Atan(dx, dy) + 22.5F; @@ -2589,13 +2589,13 @@ void _setMapMovePoint(int _nextGx, int _nextGy) setPcDir(dir); setPcWalkFlag(); } - // PC?????????t?i??? + // PC?????????ㄅ?可??? setPcPoint(); } /////////////////////////////////////////////////////////////////////////// -// ???????????h???? -// ???????????????@e???? +// ???????????去???? +// ??????????????火? 叉???? void setPcMovePointToChar(int gx, int gy) { if (partyModeFlag != 0 && (pc.status & CHR_STATUS_LEADER) != 0) @@ -2606,7 +2606,7 @@ void setPcMovePointToChar(int gx, int gy) } /////////////////////////////////////////////////////////////////////////// -// ???????????h???\??????h??? +// ???????????去???兝??????去??? void setPartyMovePoint(void) { int i; @@ -2624,15 +2624,15 @@ void setPartyMovePoint(void) { ptAct = party[_partyTbl[i]].ptAct; - // ??????????? + // ??????????? if ((float)ptAct->nextGx * GRID_SIZE == ptAct->mx && (float)ptAct->nextGy * GRID_SIZE == ptAct->my) { - // ?????????????@e + // ????????火????? 叉 if (ptAct->bufCount > 0) { setCharMovePoint(ptAct, ptAct->bufGx[0], ptAct->bufGy[0]); shiftBufCount(ptAct); - // ?????????J? + // ????????火?仔? #ifdef MAX_AIRPLANENUM if (_partyTbl[i + 1] >= 0 && (i + 1) < MAX_AIRPLANENUM) #else @@ -2652,7 +2652,7 @@ void setPartyMovePoint(void) } /////////////////////////////////////////////////////////////////////////// -// ?h?? +// ?去?? void _mapMove(void) { float nGx, nGy, vx, vy; @@ -2664,19 +2664,19 @@ void _mapMove(void) vx = nowVx * nowSpdRate; vy = nowVy * nowSpdRate; - // ?????????h????????? + // ??????????去?????????? if (pointLen2(nowX, nowY, nGx, nGy) <= vx * vx + vy * vy) { - // ?????????????? + // ??????????????? nowX = nGx; nowY = nGy; nowVx = 0; nowVy = 0; - justGoalFlag = 1; // ??????? + justGoalFlag = 1; // ???????? } else { - // ?h + // ?去 nowX += vx; nowY += vy; } @@ -2705,7 +2705,7 @@ void _mapMove(void) nowGx = (int)(nowX / GRID_SIZE); nowGy = (int)(nowY / GRID_SIZE); } - // PC?????????t?i??? + // PC?????????ㄅ?可??? setPcPoint(); } @@ -2715,7 +2715,7 @@ void _partyMapMove(void) { int i; - // ???????????h???\??????h?? + // ???????????去???兝??????去?? if (partyModeFlag != 0 && (pc.status & CHR_STATUS_LEADER) != 0) { #ifdef MAX_AIRPLANENUM @@ -2733,7 +2733,7 @@ void _partyMapMove(void) } /////////////////////////////////////////////////////////////////////////// -// ?????ѩ???? +// ?????????? void getPartyTbl(void) { int i, j; @@ -2744,13 +2744,13 @@ void getPartyTbl(void) // ??????? for (i = 0; i < MAX_AIRPLANENUM; i++) _partyTbl[i] = -1; - // ?????k??????? + // ?????吻??????? for (i = 0, j = 0; i < MAX_AIRPLANENUM; i++) #else // ??????? for (i = 0; i < MAX_PARTY; i++) _partyTbl[i] = -1; - // ?????k??????? + // ?????吻??????? for (i = 0, j = 0; i < MAX_PARTY; i++) #endif { @@ -2764,7 +2764,7 @@ void getPartyTbl(void) } /////////////////////////////////////////////////////////////////////////// -// ??????????? +// ??????????? enum { etcEventMode_None, @@ -2820,7 +2820,7 @@ void _etcEventCheck(void) } else if (_checkEncount()) { - //cary ɰ + //cary 導唳郣菩 if (!bNewServer) { _etcEventFlag = TRUE; @@ -2858,7 +2858,7 @@ BOOL _execEtcEvent(void) _sendWarpEvent(); break; case etcEventMode_LocalEncount: - //cary ɰ + //cary 導唳郣菩 if (!bNewServer) _sendEncount(); //end test @@ -2963,7 +2963,7 @@ BOOL _checkWarpEvent(int gx, int gy) // ??? if (_eventWarpNo == EVENT_WARP) return TRUE; - // ????? + // ?????? else if (_eventWarpNo == EVENT_WARP_MONING && timeZoneNo == LS_MORNING) return TRUE; // ?????? @@ -2987,18 +2987,18 @@ void _sendWarpEvent(void) else old_lssproto_EV_send(sockfd, _eventWarpNo, eventId, nowGx, nowGy, -1); eventId++; - wnCloseFlag = 1; // [????????? + wnCloseFlag = 1; // 吝?????????? #ifdef __AI void AI_CloseWnd(); // AI_CloseWnd(); #endif - closeEtcSwitch(); // ?@e??????? - closeCharActionAnimeChange(); // ????????????? + closeEtcSwitch(); // ? 叉???????? + closeCharActionAnimeChange(); // ?????????????? closeJoinChannelWN(); - // ????? + // ????? SubProcNo = 200; - // ??????? + // ????????? warpEffectProc(); warpEffectFlag = TRUE; floorChangeFlag = TRUE; @@ -3008,7 +3008,7 @@ void _sendWarpEvent(void) } /////////////////////////////////////////////////////////////////////////// -// ?e???????????? +// ?叉???????????? // // ???????? BOOL _checkEnemyEvent(int gx, int gy) @@ -3069,7 +3069,7 @@ void _checkEmptyMap(void) BOOL checkEmptyMapData(int _gx, int _gy, int dir) { - // ?????t???11??????????????TRUE?? + // ?????ㄅ???11????????????????TRUE?刺? int i, gx, gy, tx, ty, len, egx, egy; BOOL flag = FALSE; @@ -3197,21 +3197,21 @@ BOOL checkEmptyMapData(int _gx, int _gy, int dir) return flag; } -// ?????nok??????(x,y)??h? -// ???????q???? +// ?????no吻??????(x,y)??去? +// ???????〈???? void goFrontPartyCharacter(int no, int x, int y) { int i, ox, oy; ACTION *ptAct; if(no <=0) return; - // ????ѩ?????????????? + // ???????????????????? if (party[0].ptAct == NULL) return; - // ?????h????? + // ?????去????? ptAct = party[0].ptAct; if (ptAct->bufCount > 0 || (float)ptAct->nextGx*GRID_SIZE != ptAct->mx || (float)ptAct->nextGy*GRID_SIZE != ptAct->my) return; - // I??????q???????????? + // 兌??????〈????????????? for (i = no-1; i >= 0; i--) { #ifdef MAX_AIRPLANENUM @@ -3253,7 +3253,7 @@ void goFrontPartyCharacter(int no, int x, int y) } } -// ?????hI?@e +// ?????去!? 叉 void setMapMovePoint(int _nextGx, int _nextGy) { float dx, dy, len, dir1, rate = 1.0F; @@ -3261,7 +3261,7 @@ void setMapMovePoint(int _nextGx, int _nextGy) nextGx = _nextGx; nextGy = _nextGy; - // ?h????? + // ?去????? dx = nextGx * GRID_SIZE - nowX; dy = nextGy * GRID_SIZE - nowY; len = (float)sqrt((double)(dx * dx + dy * dy)); @@ -3278,7 +3278,7 @@ void setMapMovePoint(int _nextGx, int _nextGy) nowVx = dx * MOVE_SPEED * rate; nowVy = dy * MOVE_SPEED * rate; - // PC?????@e + // PC?????? 叉 if (dx != 0 || dy != 0) { dir1 = Atan(dx, dy) + 22.5F; @@ -3287,11 +3287,11 @@ void setMapMovePoint(int _nextGx, int _nextGy) setPcDir(dir); setPcWalkFlag(); } - // PC?????????t?i??? + // PC?????????ㄅ?可??? setPcPoint(); } -// ?????hI?@e??L????? +// ?????去!? 叉??﹩????? void setMapMovePoint2(int _nextGx, int _nextGy) { float dx, dy, len, dir1, rate = 1.0F; @@ -3309,7 +3309,7 @@ void setMapMovePoint2(int _nextGx, int _nextGy) nextGx = _nextGx; nextGy = _nextGy; - // ?h????? + // ?去????? dx = nextGx * GRID_SIZE - nowX; dy = nextGy * GRID_SIZE - nowY; len = (float)sqrt((double)(dx * dx + dy * dy)); @@ -3325,7 +3325,7 @@ void setMapMovePoint2(int _nextGx, int _nextGy) } nowVx = dx * MOVE_SPEED * rate; nowVy = dy * MOVE_SPEED * rate; - // PC?????@e + // PC?????? 叉 if (dx != 0 || dy != 0) { dir1 = Atan(dx, dy) + 22.5F; @@ -3334,19 +3334,19 @@ void setMapMovePoint2(int _nextGx, int _nextGy) setPcDir(dir); setPcWalkFlag(); } - // PC?????????t?i??? + // PC?????????ㄅ?可??? setPcPoint(); } -// ????h?? +// ????去?? void mapMove2(void) { float dx, dy; - // ?h??? + // ?去??? if (nowVx != 0 || nowVy != 0) { - // ?????????????? + // ??????????????? dx = (float)nextGx * GRID_SIZE; dy = (float)nextGy * GRID_SIZE; if (pointLen2(nowX, nowY, dx, dy) <= nowVx * nowVx + nowVy * nowVy) @@ -3356,7 +3356,7 @@ void mapMove2(void) nowVx = 0; nowVy = 0; } - // ?h + // ?去 else { nowX += nowVx; @@ -3377,12 +3377,12 @@ void mapMove2(void) nowGx = (int)(nowX / GRID_SIZE); nowGy = (int)(nowY / GRID_SIZE); - // PC?????????t?i??? + // PC?????????ㄅ?可??? setPcPoint(); } /////////////////////////////////////////////////////////////////////////// -// ???????? +// ??????阪?? // void turnAround(void) { @@ -3394,13 +3394,13 @@ void turnAround(void) // PC????????????? if (pc.ptAct == NULL) return; - // ?h?N???????? + // ?去?代???????? if (nowVx != 0 || nowVy != 0) return; // ??????????????????? if (etcSendFlag != 0 || etcEventFlag != 0) return; - // ??????????? + // ????????????? #ifdef _MOVE_SCREEN if (pc.bMoveScreenMode) { @@ -3416,10 +3416,10 @@ void turnAround(void) tmpDir = Atan(tmpX, tmpY) + 22.5F; AdjustDir(&tmpDir); dir = (int)(tmpDir / 45); - // ???i???????? + // ???可???????? if (pc.ptAct->anim_ang == dir) return; - // ?? + // ?? if (turnSendTime+FIELD_BTN_PUSH_WAIT < TimeGetTime()) { setPcDir(dir); @@ -3427,8 +3427,8 @@ void turnAround(void) dir2[1] = '\0'; walkSendForServer(nowGx, nowGy, dir2); turnSendTime = TimeGetTime(); - extern int Ҽ; - if(Ҽ){ + extern int 衵瑩馴僻; + if(衵瑩馴僻){ lssproto_AC_send(sockfd, nowGx, nowGy, 0); setPcAction(0); @@ -3443,22 +3443,22 @@ void turnAround2(int dir) char dir2[2]; static unsigned int turnSendTime = 0; - // ?????????????? + // ??????????????? if (dir < 0 || 7 < dir) return; // PC????????????? if (pc.ptAct == NULL) return; - // ?h?N???????? + // ?去?代???????? if (nowVx != 0 || nowVy != 0) return; // ??????????????????? if (etcSendFlag != 0 || etcEventFlag != 0) return; - // ???i???????? + // ???可???????? if (pc.ptAct->anim_ang == dir) return; - // ?? + // ?? if (turnSendTime + FIELD_BTN_PUSH_WAIT < TimeGetTime()) { setPcDir(dir); @@ -3470,9 +3470,9 @@ void turnAround2(int dir) } /////////////////////////////////////////////////////////////////////////// -// ?h????? +// ?去????? // -// ????dir??1?h?????????x?? +// ????dir???1卷?去?????????台?? void getRouteData(int dir, int *x, int *y) { switch (dir) @@ -3529,7 +3529,7 @@ int getDirData(int gx1, int gy1, int gx2, int gy2) { float tmpDir, tmpX, tmpY; - // ?????? + // ????????? tmpX = (float)(gx2 - gx1); tmpY = (float)(gy2 - gy1); tmpDir = Atan(tmpX, tmpY) + 22.5F; @@ -3538,8 +3538,8 @@ int getDirData(int gx1, int gy1, int gx2, int gy2) return (int)(tmpDir / 45); } -// (gx1,gy2)????(gx2,gy2)???????????? -// ??kTRUE ... ????? +// (gx1,gy2)?????(gx2,gy2)????????????? +// ??πㄩTRUE ... ????? BOOL checkGridAround(int gx1, int gy1, int gx2, int gy2) { if (((gx1 == gx2) && ABS(gy2 - gy1) == 1) || (ABS(gx2 - gx1) == 1 && (gy1 == gy2)) || (ABS(gx2 - gx1) == 1 && ABS(gy2 - gy1) == 1)) @@ -3763,7 +3763,7 @@ char cnvServDir(int dir, int mode) } /////////////////////////////////////////////////////////////////////////// -// ?????????I???e? +// ????????牙?!???叉? // ??? void initCharPartsPrio(void) { @@ -3779,7 +3779,7 @@ void setPartsPrio(int graNo, int x, int y, int dx, int dy, float mx, float my, i CHAR_PARTS_PRIORITY *ptc, *prePtc; BOOL flag; - // ?????????? + // ??????????? if (charPrioCnt >= MAX_CHAR_PRIO_BUF) return; @@ -3805,7 +3805,7 @@ void setPartsPrio(int graNo, int x, int y, int dx, int dy, float mx, float my, i addCharPartsPrio(&charPrioBufTop, &charPrioBuf[charPrioCnt]); else { - // ???K?????????? + // ???仕?????????? flag = FALSE; ptc = charPrioBufTop.next; for (i = 0; i < charPrioCnt && ptc != NULL; i++, ptc = ptc->next) @@ -3838,7 +3838,7 @@ void setCharPrio(int graNo, int x, int y, int dx, int dy, float mx, float my) CHAR_PARTS_PRIORITY *ptc, *prePtc; BOOL flag; - // ?????????? + // ??????????? if (charPrioCnt >= MAX_CHAR_PRIO_BUF) return; // ????????????? @@ -3862,7 +3862,7 @@ void setCharPrio(int graNo, int x, int y, int dx, int dy, float mx, float my) addCharPartsPrio(&charPrioBufTop, &charPrioBuf[charPrioCnt]); else { - // ???K?????????? + // ???仕?????????? flag = FALSE; ptc = charPrioBufTop.next; for (i = 0; i < charPrioCnt && ptc != NULL; i++, ptc = ptc->next) @@ -3881,18 +3881,18 @@ void setCharPrio(int graNo, int x, int y, int dx, int dy, float mx, float my) charPrioCnt++; } -// ??????????I?????? -// ??k?????????q?? TRUE +// ????????丙??!?????? +// ??πㄩ?????????〈?? TRUE BOOL checkPrioPartsVsChar(CHAR_PARTS_PRIORITY *ptc, CHAR_PARTS_PRIORITY *ptp) { short hit, prioType; S2 w, h; - // ??I???e?????? + // 丙??!???叉?????? realGetPrioType(ptp->graNo, &prioType); - // ???Re?? + // ???刪叉??? realGetHitFlag(ptp->graNo, &hit); - // ??Ģl? prioType == 3 ?????? + // 卷??岌▍? prioType == 3 ?????? if (hit != 0 && prioType == 3) return FALSE; // ???? @@ -3908,10 +3908,10 @@ BOOL checkPrioPartsVsChar(CHAR_PARTS_PRIORITY *ptc, CHAR_PARTS_PRIORITY *ptp) } #if 0 // ???? - // ????i?????? + // ????可?????? else if (prioType == 2) { - // ??@e?????????? + // ?? 叉?????????? if ((ptc->mx <= ptp->mx && ptc->my >= ptp->my) || (ptc->mx < ptp->mx-GRID_SIZE || ptc->my > ptp->my+GRID_SIZE)) return FALSE; else @@ -3927,13 +3927,13 @@ BOOL checkPrioPartsVsChar(CHAR_PARTS_PRIORITY *ptc, CHAR_PARTS_PRIORITY *ptp) realGetHitPoints(ptp->graNo, &w, &h); if (ptc->x > ptp->x) { - // PC????D??? + // PC??岌??¥??? if (ptp->y - (w - 1) * SURFACE_HEIGHT / 2 <= ptc->y) return FALSE; } else if (ptc->x < ptp->x) { - // PC????D??? + // PC??岌??¥??? if (ptp->y - (h - 1) * SURFACE_HEIGHT / 2 <= ptc->y) return FALSE; } @@ -3947,13 +3947,13 @@ BOOL checkPrioPartsVsChar(CHAR_PARTS_PRIORITY *ptc, CHAR_PARTS_PRIORITY *ptp) realGetHitPoints(ptp->graNo, &w, &h); if (ptc->x >= ptp->x) { - // PC????D??? + // PC??岌??¥??? if (ptp->y - (w - 1) * SURFACE_HEIGHT / 2 < ptc->y) return FALSE; } else { - // PC????D??? + // PC??岌??¥??? if (ptp->y - (h - 1) * SURFACE_HEIGHT / 2 < ptc->y) return FALSE; } @@ -3962,7 +3962,7 @@ BOOL checkPrioPartsVsChar(CHAR_PARTS_PRIORITY *ptc, CHAR_PARTS_PRIORITY *ptp) return TRUE; } -// pt1???pt2?V?? +// pt1???pt2??向?? void insertCharPartsPrio(CHAR_PARTS_PRIORITY *pt1, CHAR_PARTS_PRIORITY *pt2) { if (pt1 == NULL || pt2 == NULL) @@ -3974,7 +3974,7 @@ void insertCharPartsPrio(CHAR_PARTS_PRIORITY *pt1, CHAR_PARTS_PRIORITY *pt2) pt1->pre = pt2; } -// pt1????p2?D??? +// pt1????p2?乃??? void addCharPartsPrio(CHAR_PARTS_PRIORITY *pt1, CHAR_PARTS_PRIORITY *pt2) { if (pt1 == NULL || pt2 == NULL) @@ -3992,7 +3992,7 @@ void delCharPartsPrio(CHAR_PARTS_PRIORITY *pt1) { if (pt1 == NULL) return; - // Id???????????? + // !卡???????????? if (pt1->pre == NULL) return; (pt1->pre)->next = pt1->next; @@ -4000,7 +4000,7 @@ void delCharPartsPrio(CHAR_PARTS_PRIORITY *pt1) (pt1->next)->pre = pt1->pre; } -// ?????? +// ????牙?? void stockCharParts(void) { int i; @@ -4036,13 +4036,13 @@ void stockCharParts(void) /////////////////////////////////////////////////////////////////////////// // ?????? // -#if 0 // ??????????????Re????? +#if 0 // ????????岌??????刪叉????? // -// NPC????????????? +// NPC????????????? // ??????????????????? // -// ??kTRUE ... ????D -// FALSE ... ??? +// ??πㄩTRUE ... ????伶 +// FALSE ... ???? BOOL checkNpcEvent(int gx, int gy, int dx, int dy) { int x, y, ev; @@ -4051,10 +4051,10 @@ BOOL checkNpcEvent(int gx, int gy, int dx, int dy) y = gy - mapAreaY1; ev = (event[(y + dy) * mapAreaWidth + (x + dx)] & 0x0fff); - // ?hI?NPC + // ?去!?NPC if (ev == EVENT_NPC) { - // ?h??? + // ?去??? resetMap(); return TRUE; } @@ -4161,24 +4161,24 @@ BOOL createAutoMap(int floor, int gx, int gy) len2 += mWidth; } fclose (fp); - // ???@e + // ??? 叉 for (i = 0; i < AUTO_MAPPING_H; i++) { for (j = 0; j < AUTO_MAPPING_W; j++) { - // ??????????????????? + // ?????????????????牙??? if (event[i * AUTO_MAPPING_W + j] & MAP_SEE_FLAG) { autoMappingBuf[i][j] = autoMapColorTbl[tile[i * AUTO_MAPPING_W + j]]; } } } - // ???@e + // ??? 叉 for (i = 0; i < AUTO_MAPPING_H; i++) { for (j = 0; j < AUTO_MAPPING_W; j++) { - // ??????????????????? + // ?????????????????牙??? if (event[i*AUTO_MAPPING_W+j] & MAP_SEE_FLAG) { index = autoMapColorTbl[parts[i * AUTO_MAPPING_W + j]]; @@ -4189,9 +4189,9 @@ BOOL createAutoMap(int floor, int gx, int gy) int k, l; realGetNo(parts[i * AUTO_MAPPING_W + j], &bmpNo); - // ???Re?? + // ???刪叉??? realGetHitFlag(bmpNo, &hit); - // ???Re?????????@e + // ???刪叉????????? 叉 if (hit == 0) { realGetHitPoints(bmpNo, &hitX, &hitY); @@ -4215,7 +4215,7 @@ BOOL createAutoMap(int floor, int gx, int gy) } /* -// ??????????? +// 卷???????????? void readAutoMapSeeFlag(void) { FILE *fp; @@ -4230,7 +4230,7 @@ void readAutoMapSeeFlag(void) int x1, y1, x2, y2; - // ???????? + // ?????????? sprintf_s(filename, "map\\%d.dat", nowFloor); // ???????? @@ -4294,7 +4294,7 @@ void readAutoMapSeeFlag(void) fclose (fp); - // G?????????????????????????? + // 二??????????????????牙???????? for (i = 0; i < AUTO_MAPPING_SEE_H; i++) { for (j = 0; j < AUTO_MAPPING_SEE_W; j++) @@ -4311,7 +4311,7 @@ void readAutoMapSeeFlag(void) } -// ???????????? +// 卷???????????? void writeAutoMapSeeFlag(void) { FILE *fp; @@ -4326,13 +4326,13 @@ void writeAutoMapSeeFlag(void) int x1, y1, x2, y2; - // ?????????????????? + // ??????????????????? if (!autoMapSeeFlag) return; autoMapSeeFlag = FALSE; - // ???????? + // ?????????? sprintf_s(filename, "map\\%d.dat", autoMapSeeFloor); // ???????? @@ -4417,7 +4417,7 @@ void initMapCache(void) mapCacheUse = 0; } -// ?hI???????????????????? +// ?去!???????????????????? BOOL checkMapCache(int gx, int gy, short *buf, int size, int floor, int gxSize, int gySize) { #define MAP_CACHE_RANGE 14 @@ -4430,7 +4430,7 @@ BOOL checkMapCache(int gx, int gy, short *buf, int size, int floor, int gxSize, int dir, dx, dy, cnt, i, mask; unsigned char bit, tbit; - // ?h????????????d????? + // ?去????╱????????吳????? tbit = 0; for (cnt = 0; cnt < size; cnt++) { @@ -4496,7 +4496,7 @@ BOOL checkMapCache(int gx, int gy, short *buf, int size, int floor, int gxSize, gx += dx; gy += dy; } - // ????d????????????? + // ????吳?????????????? bit = 0; for (i = 0, mask = 1; i < 2; i++, mask <<= 1) { @@ -4523,8 +4523,8 @@ void clearMapCacheFlag(int no) memset(mapCacheFlag[no], 0, MAP_CACHE_X_BYTE*MAP_CACHE_Y_BYTE); } -// e?t??????????? -// ??kTRUE ... ???????? +// 叉?ㄅ??????????? +// ??πㄩTRUE ... ???????? // FALSE ... ???????? BOOL checkMapCacheFlag(int floor, int gxSize, int gySize, int x1, int y1, int x2, int y2) { @@ -4533,7 +4533,7 @@ BOOL checkMapCacheFlag(int floor, int gxSize, int gySize, int x1, int y1, int x2 BOOL ret = TRUE; BOOL thisFloorCacheFlag = FALSE; - // e????k??????? + // 叉????吻???????? j = mapCacheUse; for (i = 0; i < MAX_MAP_CACHE_SIZE; i++) { @@ -4548,16 +4548,16 @@ BOOL checkMapCacheFlag(int floor, int gxSize, int gySize, int x1, int y1, int x2 if (j >= MAX_MAP_CACHE_SIZE) j = 0; } - // ???????? + // ????????? if (!thisFloorCacheFlag) { BOOL flag; unsigned int tmpTime; - // ??????????????t?????????? + // ???????????????????????? if (gxSize < 100 || gySize < 100) return FALSE; - // ?????????????????S? + // ?????????????????Π? flag = FALSE; for (i = 0; i < MAX_MAP_CACHE_SIZE; i++) { @@ -4567,7 +4567,7 @@ BOOL checkMapCacheFlag(int floor, int gxSize, int gySize, int x1, int y1, int x2 break; } } - // ???????k????????? + // ????????吻????????? if (!flag) { i = 0; @@ -4581,7 +4581,7 @@ BOOL checkMapCacheFlag(int floor, int gxSize, int gySize, int x1, int y1, int x2 } } } - // ?????K? + // ?????仕? mapCacheUse = i; mapCacheFloorNo[i] = floor; mapCacheFloorGxSize[i] = gxSize; @@ -4589,7 +4589,7 @@ BOOL checkMapCacheFlag(int floor, int gxSize, int gySize, int x1, int y1, int x2 clearMapCacheFlag(i); ret = FALSE; } - // ?????????????K? + // ?????????????仕? mapCacheLastTime[mapCacheUse] = TimeGetTime(); if (x1 < 0) x1 = 0; @@ -4599,7 +4599,7 @@ BOOL checkMapCacheFlag(int floor, int gxSize, int gySize, int x1, int y1, int x2 x2 = mapCacheFloorGxSize[mapCacheUse]; if (y2 > mapCacheFloorGySize[mapCacheUse]) y2 = mapCacheFloorGySize[mapCacheUse]; - // ???d?? + // ???吳?? if (x1 > x2 || y1 > y2) return FALSE; @@ -4623,7 +4623,7 @@ BOOL checkMapCacheFlag(int floor, int gxSize, int gySize, int x1, int y1, int x2 for (j = yByteStart; j <= yByteEnd; j++) { if ((mapCacheFlag[mapCacheUse][j * MAP_CACHE_X_BYTE + i] & bits) != bits) - // ????????????? + // ?????????????? ret = FALSE; mapCacheFlag[mapCacheUse][j * MAP_CACHE_X_BYTE + i] |= bits; } @@ -4632,12 +4632,12 @@ BOOL checkMapCacheFlag(int floor, int gxSize, int gySize, int x1, int y1, int x2 return ret; } -// ????ѩ?EVENT_ALTERRATIVE?????TRUE??? +// ???????EVENT_ALTERRATIVE?????TRUE?刺?? BOOL checkMapCacheEvent(int x1, int y1, int x2, int y2) { int x, y, w, h, i, j; - // ????????d??????????? + // ????????吳?????????刺?? // ??????????????? if (x1 >= mapAreaX2 || x2 < 0 || y1 >= mapAreaY2 || y2 < 0) return TRUE; @@ -4746,7 +4746,7 @@ void initMapEffect(BOOL bFirstRun) #endif } -// ??????????x?@e??? +// ??????????台?牙 叉??? MAP_EFFECT *getMapEffectBuf(void) { MAP_EFFECT *buf; @@ -4765,7 +4765,7 @@ MAP_EFFECT *getMapEffectBuf(void) return buf; } -// ????????????? +// ?????????????? void delMapEffectBuf(MAP_EFFECT *buf) { if (buf == (MAP_EFFECT*)NULL) @@ -4782,7 +4782,7 @@ void delMapEffectBuf(MAP_EFFECT *buf) buf->type = MAP_EFFECT_TYPE_NONE; } -// ?h??? +// ?去???卹 void mapEffectDirHosei(int *x, int *y) { if (mapEffectMoveDir < 0) @@ -4817,7 +4817,7 @@ void mapEffectDirHosei(int *x, int *y) } } -// sprdisp.cpp?PutBmp()????? +// sprdisp.cpp??PutBmp()????? void drawMapEffect(void) { if (mapEffectDrawFlag) @@ -4827,7 +4827,7 @@ void drawMapEffect(void) } } -// ???????? +// ???????? void mapEffectProc(void) { mapEffectRain(); @@ -4843,7 +4843,7 @@ void mapEffectProc(void) #endif if (transEffectPaletteStatus == 2 && transEffectPaletteAfterWaitTime == 0) transEffectPaletteAfterWaitTime = GetTickCount(); - // ?????????r??V??????????? + // ?????????┴??向??????????? else if (transEffectPaletteStatus == 2 && (GetTickCount() - transEffectPaletteAfterWaitTime) > 2500) { transEffectPaletteStatus = 0; @@ -4874,7 +4874,7 @@ void mapEffectRain(void) hosei1 = 370; hosei2 = -50; } - // ?D + // ?伶 if (mapEffectRainLevel) { if (mapEffectRainLevel < 3) @@ -4916,7 +4916,7 @@ void mapEffectRain(void) } } } - // ?h?? + // ?去?? buf = useBufMapEffect; while (buf != (MAP_EFFECT *)NULL) { @@ -4927,7 +4927,7 @@ void mapEffectRain(void) mapEffectDirHosei(&buf->x, &buf->y); if (ww <= buf->x || hh <= buf->y) { - // ?h? + // ?去? MAP_EFFECT *buf2 = buf->next; delMapEffectBuf(buf); buf = buf2; @@ -4940,7 +4940,7 @@ void mapEffectRain(void) } } -// D?????? +// .?????? void mapEffectSnow(void) { short mapEffectSnowWaitTime = 0; @@ -4960,7 +4960,7 @@ void mapEffectSnow(void) hosei1 = 370; hosei2 = -50; } - // DD + // .伶 if (mapEffectSnowLevel) { if (mapEffectSnowLevel < 3) @@ -5022,7 +5022,7 @@ void mapEffectSnow(void) } } } - // ?h?? + // ?去?? buf = useBufMapEffect; while (buf != (MAP_EFFECT*)NULL) { @@ -5033,7 +5033,7 @@ void mapEffectSnow(void) mapEffectDirHosei(&buf->x, &buf->y); if (ww + 100 <= buf->x || hh <= buf->y) { - // ?h? + // ?去? MAP_EFFECT *buf2 = buf->next; delMapEffectBuf(buf); buf = buf2; @@ -5046,7 +5046,7 @@ void mapEffectSnow(void) } } -// ?????????e? +// ?????????叉? void setEffectStar(MAP_EFFECT *buf, int gx, int gy, int ggx, int ggy, int type) { if (buf) @@ -5063,7 +5063,7 @@ void setEffectStar(MAP_EFFECT *buf, int gx, int gy, int ggx, int ggy, int type) void calEffectStar(MAP_EFFECT *buf) { float mx, my; - // ??t + // ??牙?ㄅ camMapToGamen((float)buf->gx * GRID_SIZE, (float)buf->gy * GRID_SIZE, &mx, &my); buf->x = (int)(mx + .5) + buf->ggx; buf->y = (int)(my + .5) + buf->ggy; @@ -5343,27 +5343,27 @@ void mapEffectStar(void) { calEffectStar(buf[i]); // ???? - // ??? + // ???? if (SaTime.hour < NOON_TO_EVENING + 20 || NIGHT_TO_MORNING + 70 < SaTime.hour) buf[i]->mode = 5; // ???? - // ??? + // ???? else if ((NOON_TO_EVENING + 20 <= SaTime.hour && SaTime.hour < NOON_TO_EVENING +30) || NIGHT_TO_MORNING + 60 < SaTime.hour) buf[i]->mode = 6; // ???? - // ??? + // ???? else if ((NOON_TO_EVENING + 30 <= SaTime.hour && SaTime.hour < NOON_TO_EVENING + 40) || NIGHT_TO_MORNING + 40 < SaTime.hour) buf[i]->mode = 8; else { if (buf[i]->type2 == 0) { - // ????????? - // ?????????? + // ???ㄩ??????? + // ???ㄩ???????? if (SaTime.hour < NOON_TO_EVENING + 50 || NIGHT_TO_MORNING + 30 < SaTime.hour) buf[i]->mode = 4; - // ??????????? - // ???????? + // ???ㄩ????????? + // ???ㄩ?????? else if (SaTime.hour < NOON_TO_EVENING + 80 || NIGHT_TO_MORNING + 20 < SaTime.hour) buf[i]->mode = 1; else @@ -5390,7 +5390,7 @@ void mapEffectStar(void) } } -// ??????? +// ??????? void mapEffectFallingStar(void) { static MAP_EFFECT *buf = NULL; @@ -5442,7 +5442,7 @@ void mapEffectFallingStar(void) buf->ey = 120; break; } - // ?? + // ?? if ((rand() % 10) < 6) buf->mode = 8; else @@ -5509,7 +5509,7 @@ void mapEffectFallingStar(void) buf->ey = 80; break; } - // ?? + // ?? if ((rand() % 10) < 6) buf->mode = 8; else @@ -5546,7 +5546,7 @@ void mapEffectFallingStar(void) buf->ey = 40; break; } - // ?? + // ?? if ((rand() % 10) < 6) buf->mode = 8; else @@ -5601,7 +5601,7 @@ void mapEffectFallingStar(void) buf->ey = 120; break; } - // ?? + // ?? if ((rand() % 10) < 6) buf->mode = 8; else @@ -5627,7 +5627,7 @@ void mapEffectFallingStar(void) } } -// D?????? +// .?????? void mapEffectSnow2(int n) { short mapEffectSnowWaitTime = 0; @@ -5645,7 +5645,7 @@ void mapEffectSnow2(int n) } for (k = 0; k < n; k++) { - // DD + // .伶 if (mapEffectSnowLevel) { if (mapEffectSnowLevel < 3) @@ -5707,7 +5707,7 @@ void mapEffectSnow2(int n) } } } - // ?h?? + // ?去?? i = 0; buf = useBufMapEffect; while (buf != (MAP_EFFECT*)NULL) @@ -5719,7 +5719,7 @@ void mapEffectSnow2(int n) mapEffectDirHosei(&buf->x, &buf->y); if (ww + 100 <= buf->x || hh <= buf->y) { - // ?h? + // ?去? MAP_EFFECT *buf2 = buf->next; delMapEffectBuf(buf); buf = buf2; @@ -5753,7 +5753,7 @@ void mapEffectRain2(int n) } for (k = 0; k < n; k++) { - // ?D + // ?伶 if (mapEffectRainLevel) { if (mapEffectRainLevel < 3) @@ -5795,7 +5795,7 @@ void mapEffectRain2(int n) } } } - // ?h?? + // ?去?? i = 0; buf = useBufMapEffect; while (buf != (MAP_EFFECT*)NULL) @@ -5807,7 +5807,7 @@ void mapEffectRain2(int n) mapEffectDirHosei(&buf->x, &buf->y); if (ww <= buf->x || hh <= buf->y) { - // ?h? + // ?去? MAP_EFFECT *buf2 = buf->next; delMapEffectBuf(buf); buf = buf2; @@ -5839,7 +5839,7 @@ void mapEffectKamiFubuki(void) hosei1 = 470; hosei2 = -50; } - // ????D + // ????伶 if (mapEffectKamiFubukiLevel) { if (mapEffectKamiFubukiLevel < 3) @@ -5903,7 +5903,7 @@ void mapEffectKamiFubuki(void) } } } - // ?h?? + // ?去?? i = 0; buf = useBufMapEffect; while (buf != (MAP_EFFECT*)NULL) @@ -5924,7 +5924,7 @@ void mapEffectKamiFubuki(void) mapEffectDirHosei(&buf->x, &buf->y); if (hh <= buf->y) { - // ?h? + // ?去? MAP_EFFECT *buf2 = buf->next; delMapEffectBuf(buf); buf = buf2; @@ -5939,7 +5939,7 @@ void mapEffectKamiFubuki(void) } /////////////////////////////////////////////////////////////////////////// -// ??????????????????????? +// ?????火???????????????火???? // void camMapToGamen(float sx, float sy, float *ex, float *ey) { @@ -5949,19 +5949,19 @@ void camMapToGamen(float sx, float sy, float *ex, float *ey) y0 = (sy - viewPointY) / GRID_SIZE; x = + x0 * tx + y0 * tx; y = - x0 * ty + y0 * ty; - //?? + //???火 *ex = x + viewOffsetX; *ey = y + viewOffsetY; } // -// ?????????(????????)???? +// ???火???????火(????????)???? // void camGamenToMap(float sx, float sy, float *ex, float *ey) { float x0, y0, x, y; - // ?? + // ???火 x0 = sx - viewOffsetX; y0 = sy - viewOffsetY; x = x0 - (float)SURFACE_WIDTH / (float)SURFACE_HEIGHT * y0; @@ -5999,8 +5999,8 @@ void mapEffectDice(void) case 1: if (TimeGetTime() - dwDiceTimer > 100) { -#ifdef _CHAR_PROFESSION // WON ADD ְҵ - #ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _CHAR_PROFESSION // WON ADD 昜眥珛 + #ifdef _GM_IDENTIFY // Rog ADD GM妎梗 setNpcCharObj(0, 26400 + i, 13, 9, 0, "", "", "", 1, "", 1, 0, 1, 0, 48, 0, gm_name); #else #ifdef _NPC_PICTURE @@ -6010,7 +6010,7 @@ void mapEffectDice(void) #endif #endif #else - #ifdef _GM_IDENTIFY // Rog ADD GMʶ + #ifdef _GM_IDENTIFY // Rog ADD GM妎梗 setNpcCharObj(0, 26400 + i, 13, 9, 0, "", "", "", 1, "", 1, 0, 1, 0, 48, gm_name); #else #ifdef _NPC_PICTURE @@ -6029,8 +6029,8 @@ void mapEffectDice(void) } break; case 2: -#ifdef _CHAR_PROFESSION // WON ADD ְҵ - #ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _CHAR_PROFESSION // WON ADD 昜眥珛 + #ifdef _GM_IDENTIFY // Rog ADD GM妎梗 setNpcCharObj(0, 26410 + d1, 12, 8, 0, "", "", "", 1, "", 1, 0, 1, 0, 48, 0, ""); setNpcCharObj(1, 26416 + d2, 13, 9, 0, "", "", "", 1, "", 1, 0, 1, 0, 48, 0, ""); #else diff --git a/石器时代8.5客户端最新源代码/石器源码/system/math2.cpp b/石器时代8.5客户端最新源代码/石器源码/system/math2.cpp index 3217ee3..a8eda11 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/math2.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/math2.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* math2.c */ /************************/ #include @@ -136,7 +136,7 @@ double atan_table[ ATAN_DIV + 1 ] = { 45.000000 }; -/* ?T ? ????? ??? ?*******************************************************/ +/* ?冉 ? ????? ??? ?*******************************************************/ void AdjustDir( float *dir ) { if( *dir >= 360.0 ){ @@ -161,20 +161,20 @@ void AdjustDir( int *dir ) } } -/* ????????????? ***********************************************************/ +/* ????????????? ***********************************************************/ float SinT( float theat ) { float ans; - /* ?T */ + /* ?冉 */ AdjustDir( &theat ); - /* ?????????? */ + /* ?????????? */ ans = ( float )SinTbl[ (int)theat ]; return ans; } -/* ????????????? ***********************************************************/ +/* ????????????? ***********************************************************/ float CosT( float theat ) { float ans; @@ -265,7 +265,7 @@ float Atan( float x, float y ) return r; } -/* ?????D *************************************************************************/ +/* ?????伶 *************************************************************************/ int Rnd( int min, int max ) { int rnd; @@ -360,7 +360,7 @@ int rand2( void ) #endif -/* ????????? *******************************************************************/ +/* ?????????? *******************************************************************/ float pointLen( float x1, float y1, float x2, float y2 ) { float x, y; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/menu.cpp b/石器时代8.5客户端最新源代码/石器源码/system/menu.cpp index 8da8c42..d312f3f 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/menu.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/menu.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/font.h" #include "../other/caryIme.h" @@ -23,24 +23,24 @@ #include "../systeminc/talkwindow.h" #endif #ifdef _MAGIC_ITEM_ -ACTION* ߹⻷Act=NULL; +ACTION* 道具光环Act=NULL; extern ACTION* MagicItemActAddr; extern int MagicItemCombinData[3]; extern int MagicItemPosState[4]; #endif #ifdef _RENWU_ -BOOL ѯ=FALSE; +BOOL 任务查询开关=FALSE; #endif extern int MessageBoxNew(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType); -int 忪 = FALSE; -int 鿪 = TRUE; -int ο = FALSE; -int Ҽ = FALSE; +int 繁体开关 = FALSE; +int 经验开关 = TRUE; +int 人物屏蔽开关 = FALSE; +int 右键攻击 = FALSE; #ifdef _PETBLESS_ -int ףڿ = FALSE; -char ף[128]; -int ףѡ; +int 祝福窗口开关 = FALSE; +char 祝福窗口内容[128]; +int 祝福窗口选中; #endif @@ -48,7 +48,7 @@ int ף extern void ShowBottomLineString(int iColor, LPSTR lpstr); extern Landed PcLanded; #endif -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 #ifdef _SYUTEST3 #define MENU_STATUS_0 25 #else @@ -57,7 +57,7 @@ extern Landed PcLanded; #else #define MENU_STATUS_0 12 #endif -#ifdef _DROPPETWND // (ɿ) Syu ADD ȷ +#ifdef _DROPPETWND // (可开放) Syu ADD 丢弃宠物确认 #define MENU_PET_0 24 #else #define MENU_PET_0 20 @@ -65,7 +65,7 @@ extern Landed PcLanded; #define MENU_ITEM_0 40 #define MENU_MAIL_0 40 #define MENU_ALBUM_0 20 -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 #define MENU_TRADE_0 22 #endif #define MENU_BANK_0 20 @@ -81,21 +81,21 @@ extern BOOL g_bUseAlpha; #endif // ???? -#define MAX_CHAT_REGISTY_STR 8 // ??????K??? -#define MAX_CHAT_REGISTY_STR_LEN 26 // ??????K???? +#define MAX_CHAT_REGISTY_STR 8 // ????????? +#define MAX_CHAT_REGISTY_STR_LEN 26 // ?????????? -#ifdef _DROPPETWND // (ɿ) Syu ADD ȷ -bool DropPetWndflag = false; //Ӵʾ -short DropI = -1; //ݴiֵ +#ifdef _DROPPETWND // (可开放) Syu ADD 丢弃宠物确认 +bool DropPetWndflag = false; //丢弃宠物视窗显示与否旗标 +short DropI = -1; //暂存i值 #endif #ifdef _NEW_ITEM_ -int ҳ = 0; -int жҵ() +int 道具栏页数 = 0; +int 判断玩家道具数量() { int ret = MAX_MAXHAVEITEM + MAX_ITEMSTART; - if (pc.״̬ & 1 << 1){ + if (pc.道具栏状态 & 1 << 1){ ret += MAX_MAXHAVEITEM; - if (pc.״̬ & 1 << 2){ + if (pc.道具栏状态 & 1 << 2){ ret += MAX_MAXHAVEITEM; } } @@ -103,54 +103,54 @@ int } #endif #ifdef _DIEJIA_ -//ƷǷܶѵ +//物品是否能堆叠 BOOL ItemCanPile(int flg) { return (flg & 1 << 6); } #endif -#ifdef _AniCrossFrame // Syu ADD ι +#ifdef _AniCrossFrame // Syu ADD 动画层游过画面生物 #define RAND(x,y) ((x-1)+1+ (int)((double)(y-(x-1))*rand()/(RAND_MAX+1.0))) int UpDownflag = 0; #endif -#define CAHT_REGISTY_STR_FILE_NAME "data\\chatreg.dat" // ?????K??V???? -static int systemWndFontNo[MENU_SYSTEM_0]; // ???Rek? -unsigned int systemWndNo; // ?????k? -STR_BUFFER chatRegistryStr[MAX_CHAT_REGISTY_STR]; // ??????K??V?????? +#define CAHT_REGISTY_STR_FILE_NAME "data\\chatreg.dat" // ??????????? +static int systemWndFontNo[MENU_SYSTEM_0]; // ???? +unsigned int systemWndNo; // ?????? +STR_BUFFER chatRegistryStr[MAX_CHAT_REGISTY_STR]; // ?????????????? int MouseCursorFlag = FALSE; // ??????? -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի -char talkmsg[4][256]; //еݴBuffer -int talkwndx = 300, talkwndy = 350; //ʼλ -bool talkwndflag = false; //Ƿҷ -bool tradetalkwndflag = false; //ǷԻ +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 +char talkmsg[4][256]; //四行的暂存Buffer +int talkwndx = 300, talkwndy = 350; //起始位置 +bool talkwndflag = false; //是否可以拖曳旗标 +bool tradetalkwndflag = false; //是否产生对话窗旗标 #endif -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 STR_BUFFER MymoneyBuffer; bool Moneyflag = false; #endif STR_BUFFER TradeBuffer; -bool Tradeflag = false; //λFocus -bool TradeBtnflag = false; //ťʾ +bool Tradeflag = false; //输入位置Focus旗标 +bool TradeBtnflag = false; //金额放置钮显示开关 // ??? -int mapWndFontNo[MENU_MAP_0]; // ???Rek? -static unsigned int mapWndNo; // ?????k? -int MapWmdFlagBak; // Pf??h????????????? +int mapWndFontNo[MENU_MAP_0]; // ???? +static unsigned int mapWndNo; // ?????? +int MapWmdFlagBak; // ??????????????? // ????? -static int statusWndFontNo[MENU_STATUS_0]; // ???Rek? -static int statusWndBtnFlag[MENU_STATUS_0]; // ??????? -static unsigned int statusWndNo; // ?????k? -STR_BUFFER shougouChange; // ?????????? +static int statusWndFontNo[MENU_STATUS_0]; // ???? +static int statusWndBtnFlag[MENU_STATUS_0]; // ??????? +static unsigned int statusWndNo; // ?????? +STR_BUFFER shougouChange; // ?????????? int StatusUpPoint; // ???????????? #ifdef _TRADESYSTEM2 -static int tradeWndFontNo[MENU_TRADE_0]; // ???Rek? -static int tradeWndBtnFlag[MENU_TRADE_0]; // ??????? +static int tradeWndFontNo[MENU_TRADE_0]; // ???? +static int tradeWndBtnFlag[MENU_TRADE_0]; // ??????? #endif -static unsigned int tradeWndNo = 0; // ?????k? +static unsigned int tradeWndNo = 0; // ?????? int showindex[7] = { 0, 0, 0, 0, 0, 0, 0 }; @@ -176,11 +176,11 @@ struct showitem { char damage[128]; }; static int tradePetIndex = -1; -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ -//ΪҷߣΪҷΪҷǮ -//ΪԷߣΪԷΪԷǮ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 +//1~15为我方道具,16~20为我方宠物,21为我方金钱 +//22~36为对方道具,37~41为对方宠物,42为对方金钱 -static showitem opp_item[MAX_MAXHAVEITEM]; //׵Ϊ15 +static showitem opp_item[MAX_MAXHAVEITEM]; //交易道具阵列增为15个 struct showpet { char opp_petname[128]; char opp_petfreename[128]; @@ -204,27 +204,27 @@ struct showpet { char opp_fusion[64]; #endif #ifdef _PET_ITEM - PetItemInfo oPetItemInfo[MAX_PET_ITEM]; // ϵĵ + PetItemInfo oPetItemInfo[MAX_PET_ITEM]; // 宠物身上的道具 #endif -}; //Է׳ݴ +}; //对方交易宠物能力暂存 static showpet opp_pet[5]; #ifdef _NEW_ITEM_ int itemflag[MAX_MAXHAVEITEM * 3]; #else int itemflag[MAX_MAXHAVEITEM]; #endif -static ACTION *SecondActPet; //ڶӴAction -bool MainTradeWndflag = true; //Ӵʾflag -bool SecondTradeWndflag = false; //ڶӴʾflag -ACTION *SecondTradeWnd; //ڶӴ -ACTION *TradeTalkWnd = NULL; //ԻӴ -int ShowPetNum = 0; //ʾij -static int SecondtradeWndFontNo[6]; //ڶӴİť -int mytradelist[51] = { -1 }; //ҷҳ˳嵥 -int opptradelist[51] = { -1 }; //Էҳ˳嵥 -int drag1Y = 67, drag2Y = 257; //ҷťʼλ -int tmpdrag1Y, tmpdrag2Y; //קʼλ -bool dragflag1 = false, dragflag2 = false; //ҷť +static ACTION *SecondActPet; //第二视窗宠物Action +bool MainTradeWndflag = true; //主视窗显示与否的flag +bool SecondTradeWndflag = false; //第二视窗显示与否的flag +ACTION *SecondTradeWnd; //第二视窗 +ACTION *TradeTalkWnd = NULL; //对话视窗 +int ShowPetNum = 0; //检视正在显示的宠物号 +static int SecondtradeWndFontNo[6]; //第二视窗的按钮 +int mytradelist[51] = { -1 }; //我方卷页内容顺序清单 +int opptradelist[51] = { -1 }; //对方卷页内容顺序清单 +int drag1Y = 67, drag2Y = 257; //拖曳钮初始位置 +int tmpdrag1Y, tmpdrag2Y; //拖拽开始位置 +bool dragflag1 = false, dragflag2 = false; //拖曳钮启动与否旗标 int locknum = -1, locknum2 = -1; #endif static PET tradePet[2]; @@ -233,7 +233,7 @@ static char tradepetindexget[128] = "-1"; static bool g_bPetItemWndFlag = false; #endif -static ACTION *pActPet3 = NULL; //ʱӴҷPet Action +static ACTION *pActPet3 = NULL; //交易时主视窗我方Pet Action static ACTION *pActPet4 = NULL; static ACTION *pActPet5 = NULL; @@ -255,21 +255,21 @@ struct tradelist { int itemup; #endif }; -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 static tradelist tradeList[45]; #endif static int mine_itemindex[2] = { -1, -1 }; static char mine_itemname[2][128]; static int bankGold; -static int bankWndFontNo[MENU_TRADE_0]; // ???Rek? -static int bankWndBtnFlag[MENU_TRADE_0]; // ??????? +static int bankWndFontNo[MENU_TRADE_0]; // ???? +static int bankWndBtnFlag[MENU_TRADE_0]; // ??????? static int cashGold = 0; static int totalGold = 0; static int bankGoldInc = 0; static int bankGoldCnt = 0; -#ifdef _TELLCHANNEL //ROG ADD Ƶ +#ifdef _TELLCHANNEL //ROG ADD 密语频道 BOOL MultiTells = FALSE; ACTION *pActMsgWnd; int CharNum = 0; @@ -277,11 +277,11 @@ char TellInfo[10][128]; char name[10][32]; int index[10]; char reSendMsg[STR_BUFFER_SIZE]; -int TalkMode = 0; //0:һ 1: 2: 3: 4:ְҵ -char secretName[32] = { "" }; //Ҫ֮˵ +int TalkMode = 0; //0:一般 1:密语 2: 队伍 3:家族 4:职业 +char secretName[32] = { "" }; //要密之人的名称 #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 typedef struct{ char roomNo[4]; char chiefName[CHAR_NAME_LEN+1]; @@ -295,36 +295,36 @@ typedef struct{ }CHATINFO; CHATINFO chatInfo; -bool secretFlag = FALSE; // -bool BtnType = FALSE; //ťʾ +bool secretFlag = FALSE; //密语旗标 +bool BtnType = FALSE; //按钮显示用 bool setRoomFlag = FALSE; -bool assentFlag = FALSE; //ͬӴ +bool assentFlag = FALSE; //同意视窗旗标 bool scrollFlag = FALSE; -char roomInfo[MAX_ROOM_NUM][64]; //ѡ +char roomInfo[MAX_ROOM_NUM][64]; //选择聊天室用 char memInfo[64]; //member information -int scrlBtnIndex = 0; //scrollλ -int BtnNo = 0; //ť -int firMemNo = 0; //һԱ -int selChar = -1; //Ҫ֮˵ı -int closeBtn ,leaveBtn ,delBtn,chaBtn,outBtn,scrlHBtn,scrlLBtn; //ťͼ +int scrlBtnIndex = 0; //scroll位移 +int BtnNo = 0; //按钮编号 +int firMemNo = 0; //第一个成员 +int selChar = -1; //要密之人的编号 +int closeBtn ,leaveBtn ,delBtn,chaBtn,outBtn,scrlHBtn,scrlLBtn; //按钮图档 int roomIndex[MAX_ROOM_NUM]; int roomNum = 0; int memIndex = 0; //member index -static int ChatRoomBtn[ 16 ]; //Ұť -STR_BUFFER chatRoomName; //趨 -ACTION *pSetRoomWnd; //趨 -ACTION *pAssentWnd; //ͬӴ -ACTION *pChtChanlWnd; //Ӵ -ACTION *pSelChanlWnd; //ѡӴ +static int ChatRoomBtn[ 16 ]; //聊天室按钮 +STR_BUFFER chatRoomName; //设定聊天室名称用 +ACTION *pSetRoomWnd; //设定聊天室名称用 +ACTION *pAssentWnd; //同意视窗用 +ACTION *pChtChanlWnd; //聊天室视窗用 +ACTION *pSelChanlWnd; //选择聊天室视窗用 #endif -#ifdef _TIMEBAR_FUNCTION //ʱbarʽ +#ifdef _TIMEBAR_FUNCTION //时间bar函式 ACTION *pTimeBarWnd; char timeBarTitle[32]; int timeBarRange; int timeBarCurPos; bool timeBarFlag = FALSE; -bool barHolder[2]; //лʱ +bool barHolder[2]; //用来切换时间条 void DrawTimeBar(); /////////TEST///////////////// int StartTime = 0; @@ -333,49 +333,49 @@ int timBarIdent = -1; #endif // ??? -static int petWndFontNo[MENU_PET_0]; // ???Rek? -static int petWndBtnFlag[MENU_PET_0]; // ??????? -static unsigned int petWndNo; // ????????k? -int petStatusNo; // ????????????????k? -int mixPetNo; // ????????k? +static int petWndFontNo[MENU_PET_0]; // ???? +static int petWndBtnFlag[MENU_PET_0]; // ??????? +static unsigned int petWndNo; // ????????? +int petStatusNo; // ????????????????? +int mixPetNo; // ????????? static ACTION *pActPet; // ????????????? -BOOL BattlePetReceiveFlag; // ӡP????????????? +BOOL BattlePetReceiveFlag; // ????????????? #ifdef _STANDBYPET BOOL StandbyPetSendFlag = FALSE; #endif -STR_BUFFER petNameChange; // ????q???? -int BattlePetReceivePetNo = -1; // ????????k? -int SelectWazaNo; // k???k? +STR_BUFFER petNameChange; // ???????? +int BattlePetReceivePetNo = -1; // ????????? +int SelectWazaNo; // ???? // ???? -static int itemWndFontNo[MENU_ITEM_0]; // ???Rek? -static int itemWndBtnFlag[MENU_ITEM_0]; // ??????? +static int itemWndFontNo[MENU_ITEM_0]; // ???? +static int itemWndBtnFlag[MENU_ITEM_0]; // ??????? static unsigned int itemWndNo; -static int jujutuNo = -1; // k?????ӧk? -int itemNo = -1; // k?????????k? -static int itemWndDropGold; // ???? -static int itemWndDropGoldInc; // ????? -static int itemWndDropGoldCnt; // ?????????? +static int jujutuNo = -1; // ?????? +int itemNo = -1; // ?????????? +static int itemWndDropGold; // ???? +static int itemWndDropGoldInc; // ????? +static int itemWndDropGoldCnt; // ?????????? -static int tradeWndDropGold = 0; // trade???? -static int tradeWndDropGoldInc = 0; // trade????? -static int tradeWndDropGoldCnt = 0; // trade?????????? +static int tradeWndDropGold = 0; // trade???? +static int tradeWndDropGoldInc = 0; // trade????? +static int tradeWndDropGoldCnt = 0; // trade?????????? static int tradeWndDropGoldSend = 0; static int tradeWndDropGoldGet = 0; #ifdef _PET_ITEM -static int nSelectPet; // 򿪵ʱ¼Ŀǰõij +static int nSelectPet; // 打开道具栏时记录目前作用的宠物 #endif -ACTION *pActPet2; // ?????????????? -BOOL ItemMixRecvFlag; // ?????? -int ItemMixPetNo = -1; // ?????????k? -static unsigned int ItemUseTime = 0; // ??????????? +ACTION *pActPet2; // ?????????????? +BOOL ItemMixRecvFlag; // ?????? +int ItemMixPetNo = -1; // ?????????? +static unsigned int ItemUseTime = 0; // ??????????? // ????????? ITEM_BUFFER ItemBuffer[MAX_ITEM]; #ifdef _PET_ITEM -// ÿһĵһװʱĵͼͼ,ڶDzװʱĵͼͼ +// 每一项的第一个是能装备时的底图图号,第二个是不能装时的底图图号 int nPetItemEquipBmpNumber[PET_EQUIPNUM][2] = { {26463, 26470}, {26460, 26467}, {26458, 26465}, {26461, 26468}, {26459, 26466}, @@ -383,43 +383,43 @@ int nPetItemEquipBmpNumber[PET_EQUIPNUM][2] = }; #endif // ??? -#define MAIL_HISTORY_FILE_NAME "data\\mail.dat" // ??V???? +#define MAIL_HISTORY_FILE_NAME "data\\mail.dat" // ?????? #ifdef _TRANS_6 -char *TransmigrationStr[ 7 ] = { "","Ҽ","","","","","½" }; +char *TransmigrationStr[ 7 ] = { "","壹","贰","参","肆","伍","陆" }; #else -char *TransmigrationStr[6] = { "", "Ҽ", "", "", "", "" }; +char *TransmigrationStr[6] = { "零", "壹", "贰", "参", "肆", "伍" }; int Transmigrationcolor[6] = {0,4,5,3,6,2}; #endif static int mailWndFontNo[MENU_MAIL_0]; -static int mailWndBtnFlag[MENU_MAIL_0]; // ??????? -static MAIL_WND_TYPE mailWndNo; // ???????????k? -static MAIL_WND_TYPE mailWndNoBak; // q?????????k? -static int mailViewWndPageNo; // ???????????k? -static int mailSendWndPageNo; // ?G??????????k? -static int mailPetSendWndPageNo; // ?????????????k? -static int mailItemNo; // ??????????????k? -static int mailWndSendFlag[MAX_ADR_BOOK]; // ??????? -int mailHistoryWndPageNo; // ???????????k? -int mailHistoryWndSelectNo; // k?????k? -static int mailHistoryWndNowPageNo; // ??????k? -STR_BUFFER MailStr; // ?? -MAIL_HISTORY MailHistory[MAX_ADR_BOOK]; // ???????? -ACTION *pActLetter[4]; // ????????????????? +static int mailWndBtnFlag[MENU_MAIL_0]; // ??????? +static MAIL_WND_TYPE mailWndNo; // ???????????? +static MAIL_WND_TYPE mailWndNoBak; // ?????????? +static int mailViewWndPageNo; // ???????????? +static int mailSendWndPageNo; // ???????????? +static int mailPetSendWndPageNo; // ?????????????? +static int mailItemNo; // ??????????????? +static int mailWndSendFlag[MAX_ADR_BOOK]; // ??????? +int mailHistoryWndPageNo; // ???????????? +int mailHistoryWndSelectNo; // ?????? +static int mailHistoryWndNowPageNo; // ??????? +STR_BUFFER MailStr; // ?? +MAIL_HISTORY MailHistory[MAX_ADR_BOOK]; // ???????? +ACTION *pActLetter[4]; // ????????????????? ACTION *pActMailItem = NULL; // ???????????????? // ???? -#define ALBUM_FILE_NAME "data\\album.dat" // ????V???? -#define ALBUM_FILE_NAME_4 "data\\album_4.dat" // ????V???? -#define ALBUM_FILE_NAME_5 "data\\album_5.dat" // ????V???? -#define ALBUM_FILE_NAME_6 "data\\album_6.dat" // ????V???? -#define ALBUM_FILE_NAME_7 "data\\album_7.dat" // ????V???? -#define ALBUM_FILE_NAME_8 "data\\album_8.dat" // ????V???? -#define ALBUM_FILE_NAME_9 "data\\album_9.dat" // ????V???? -#define ALBUM_FILE_NAME_10 "data\\album_10.dat" // ????V???? -#define ALBUM_FILE_NAME_11 "data\\album_11.dat" // ????V???? +#define ALBUM_FILE_NAME "data\\album.dat" // ???????? +#define ALBUM_FILE_NAME_4 "data\\album_4.dat" // ???????? +#define ALBUM_FILE_NAME_5 "data\\album_5.dat" // ???????? +#define ALBUM_FILE_NAME_6 "data\\album_6.dat" // ???????? +#define ALBUM_FILE_NAME_7 "data\\album_7.dat" // ???????? +#define ALBUM_FILE_NAME_8 "data\\album_8.dat" // ???????? +#define ALBUM_FILE_NAME_9 "data\\album_9.dat" // ???????? +#define ALBUM_FILE_NAME_10 "data\\album_10.dat" // ???????? +#define ALBUM_FILE_NAME_11 "data\\album_11.dat" // ???????? #define ALBUM_FILE_NAME_12 "data\\album_12.dat" #define ALBUM_FILE_NAME_13 "data\\album_13.dat" #define ALBUM_FILE_NAME_14 "data\\album_14.dat" @@ -461,28 +461,28 @@ ACTION *pActMailItem = NULL; // ???????????????? static int albumWndFontNo[MENU_ALBUM_0]; static int albumWndBtnFlag[MENU_ALBUM_0]; static unsigned int albumWndNo; -static int albumWndPageNo; // ???k? -static int albumNo; // ????k? -// ????????????????Bl +static int albumWndPageNo; // ???? +static int albumNo; // ????? +// ???????????????? PET_ALBUM_TBL PetAlbumTbl[] = { #include "../systeminc/petName.h" // ??????????? }; -PET_ALBUM PetAlbum[MAX_PET_KIND]; // ?????Bl -int AlbumIdCnt = 0; // ??????????????????? +PET_ALBUM PetAlbum[MAX_PET_KIND]; // ????? +int AlbumIdCnt = 0; // ??????????????????? // ????????? int IdEncryptionTbl[16] = { 48, 158, 98, 23, 134, 29, 92, 67, 70, 28, 235, 20, 189, 48, 57, 125 }; -// Pf??????? -int resultWndFontNo[MENU_BTL_RESULT_0]; // ???Rek? -int ResultWndTimer; // ??????????? +// ??????? +int resultWndFontNo[MENU_BTL_RESULT_0]; // ???? +int ResultWndTimer; // ??????????? // ????? #define TASK_BAR 7 #define TASK_BAR_X 320 #define TASK_BAR_Y 468 + DISPLACEMENT_Y BOOL TaskBarFlag = FALSE; // ???????? -// Terry add 2003/12/16 for Ӵʱ,ʾƷ˵ʾ뷨 +// Terry add 2003/12/16 for 交易视窗开启时,显示物品说明不显示输入法 BOOL bShowItemExplain = FALSE; // end static int taskBarFontNo[TASK_BAR]; @@ -490,41 +490,41 @@ static int taskBarX = TASK_BAR_X, taskBarY = TASK_BAR_Y + 24; // ?????? unsigned int MenuToggleFlag; -#ifdef _NEWREQUESTPROTOCOL // (ɿ) Syu ADD ProtocolҪϸ +#ifdef _NEWREQUESTPROTOCOL // (不可开) Syu ADD 新增Protocol要求细项 #define CHAR_MAX_DETAIL 8 char CharDetail[CHAR_MAX_DETAIL][16] ; char DetailDesc[CHAR_MAX_DETAIL][64] = { - "ħԡ" , - "ˮħԡ" , - "ħԡ" , - "ħԡ" , - "ħȣ" , - "ˮħȣ" , - "ħȣ" , - "ħȣ" + "地魔法抗性 :" , + "水魔法抗性 :" , + "火魔法抗性 :" , + "风魔法抗性 :" , + "地魔法熟练度:" , + "水魔法熟练度:" , + "火魔法熟练度:" , + "风魔法熟练度:" }; #endif #ifdef _MAG_MENU int DetailDescicon[CHAR_MAX_DETAIL]={26479, 26475, 26477, 26481, 26478, 26474, 26476, 26480}; -char DetailDescchar[4][4]={"","ˮ","",""}; +char DetailDescchar[4][4]={"地","水","火","风"}; #endif #ifdef _ALCHEPLUS int iCharAlchePlus[25]; char sAlchePlus_list[25][16] = { - "ʯ", "ľ", "", "", "Ƥ", - "", "", "צ", "", "Ҷ", - "", "", "", "", "ʯ", - "", "", "˯", "ظ", "", - "ˮ", "", "ˮ", "", "" + "石", "木", "骨", "牙", "皮", + "贝壳", "壳", "爪", "花", "叶", + "线", "黏土", "鳞", "毒", "石化", + "混乱", "酒醉", "睡眠", "回复", "复活", + "水晶", "地", "水", "火", "风" }; -int iAlchePlusIcon[25] = { 26536, 26529, 26545, 26534, 26535, /*"ʯ", "ľ", "", "", "Ƥ"*/ -26540, 26548, 26533, 26541, 26549, /*"", "", "צ", "", "Ҷ"*/ -26551, 26552, 26553, 26542, 26537, /*"", "", "", "", "ʯ"*/ -26546, 26544, 26550, 26538, 26547, /*"", "", "˯", "ظ", ""*/ -26531, 26539, 26530, 26532, 26543 }; /*"ˮ", "", "ˮ", "", ""*/ +int iAlchePlusIcon[25] = { 26536, 26529, 26545, 26534, 26535, /*"石", "木", "骨", "牙", "皮"*/ +26540, 26548, 26533, 26541, 26549, /*"贝壳", "壳", "爪", "花", "叶"*/ +26551, 26552, 26553, 26542, 26537, /*"线", "黏土", "鳞", "毒", "石化"*/ +26546, 26544, 26550, 26538, 26547, /*"混乱", "酒醉", "睡眠", "回复", "复活"*/ +26531, 26539, 26530, 26532, 26543 }; /*"水晶", "地", "水", "火", "风"*/ #endif // ?????????????? @@ -546,19 +546,19 @@ int RIDEPET_getRIDEno(int index, int ti); int RIDEPET_getPETindex_New(int PetNo, int learnCode); #endif -static char *monoStereoStr[] = { " ", -" " }; +static char *monoStereoStr[] = { " 单声道 ", +" 立体声 " }; -static char *mouseCursor[] = { " ", -" ƽ " }; +static char *mouseCursor[] = { " 正 常 ", +" 平 滑 " }; -#define WINDOW_CREATE_FRAME 10 // ?????????????? +#define WINDOW_CREATE_FRAME 10 // ?????????????? -// ???????????????? +// ???????????????? extern unsigned char crs_change_tbl[]; -// ???????????????? +// ???????????????? extern unsigned char crs_change_tbl2[]; -// T???? +// ???? extern unsigned char crs_bound_tbl[][32]; #ifdef _STREET_VENDOR @@ -570,26 +570,26 @@ extern BOOL OnlineGmFlag; #endif #ifdef _PET_ITEM -/* 0x01:PET_HEAD // ͷ - 0x02:PET_WING // - 0x04:PET_TOOTH // - 0x08:PET_PLATE // - 0x10:PET_BACK // - 0x20:PET_CLAW // צ - 0x40:PET_FOOT // () +/* 0x01:PET_HEAD // 头 + 0x02:PET_WING // 翼 + 0x04:PET_TOOTH // 牙 + 0x08:PET_PLATE // 身体 + 0x10:PET_BACK // 背 + 0x20:PET_CLAW // 爪 + 0x40:PET_FOOT // 脚(鳍) */ -// ֵͬijװͲװIJλ +// 不同种的宠物会有能装和不能装的部位 unsigned char byShowPetItemBackground[MAX_PET_SPECIES + 1] = { - /* ȭ ˿˶ ڱ */ + /* 乌力 布比 拳击手 克克尔 凯比 布克 蝙蝠 乌宝宝 飞天蛙 飞龙*/ 0x5d, 0x5d, 0x7d, 0x5d, 0x5d, 0x7d, 0x5f, 0x5d, 0x5f, 0x7f, - /* ͷ ڹ ΰ */ + /* 大舌头 乌龟 鲨鱼 海主人 猪鱼龙 呼拔拔 人龙 三角龙 雷龙 暴龙*/ 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, 0x7d, 0x7d, 0x5d, 0x5d, 0x7d, - /* ˮ Ϳ ϻ ë ϵ ϵ ɽ ϵ ϵ*/ + /* 水龙 猩猩 巴克 老虎 长毛象 鸟系 羊系 穿山甲 特殊系 软体系*/ 0x5d, 0x7d, 0x7d, 0x5d, 0x5d, 0x5f, 0x5d, 0x5d, 0x09, 0x1d, - /* С Ƥ Ϻз ϵ ţϵ ϵ*/ + /* 小鱼 贝壳 棘皮 鱼龙 虾蟹 鲸豚 魟系 海牛系 大鲨鱼 旗鱼系*/ 0x5d, 0x79, 0x1d, 0x5d, 0x79, 0x5d, 0x5d, 0x5d, 0x5d, 0x5d, - /* ϵ ϵ ںϳ*/ + /* 大鱼系 鳄龙系 融合宠*/ 0x5d, 0x5d, 0x00 }; #endif @@ -600,7 +600,7 @@ int charDetailPage = 3; bool DrawJigsawFlag = false; int JigsawIdx = 0; int JigsawImg[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }; -int JigsawOK[][3] = {//ͼ,һͼ,ͼͼ +int JigsawOK[][3] = {//道具图号,第一块图号,底图图号 { 25151, 25261, 25241 }, { 25152, 25270, 25242 }, { 25153, 25279, 25243 }, { 25154, 25288, 25244 }, { 25155, 25297, 25245 }, { 25156, 25306, 25246 }, { 25157, 25315, 25247 }, { 25158, 25324, 25248 }, { 25159, 25333, 25249 }, { 25150, 25252, 25250 } }; void SetJigsaw(int img, char *str) @@ -628,7 +628,7 @@ bool CheckJigsaw(int img) } #endif -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 bool SkillWndflag = false ; short SkillWnd = 0 ; ACTION *pActSkillMenuWnd; @@ -710,14 +710,14 @@ void SkillWndfunc2() { sprintf_s( msg , "%s" , profession_skill[AssitSkill [ j + i * 4 ]].name ); StockFontBuffer( 355, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0 ); - sprintf_s( msg , "%d", profession_skill[AssitSkill [ j + i * 4 ]].skill_level ) ; + sprintf_s( msg , "%d%", profession_skill[AssitSkill [ j + i * 4 ]].skill_level ) ; StockFontBuffer( 440, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0 ); - sprintf_s( msg , "(ķMP:%d)" , profession_skill[AssitSkill [ j + i * 4 ]].costmp ); + sprintf_s( msg , "(耗费MP:%d)" , profession_skill[AssitSkill [ j + i * 4 ]].costmp ); StockFontBuffer( 500, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0 ); sprintf_s( msg , "%s" , profession_skill[AssitSkill [ j + i * 4 ]].memo ) ; -#ifdef _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol +#ifdef _OUTOFBATTLESKILL // (不可开) Syu ADD 非战斗时技能Protocol if ( mouse.onceState & MOUSE_LEFT_CRICK && profession_skill[ AssitSkill [ j + i * 4 ] ].useFlag == 0 ) { if( pc.mp >= profession_skill[AssitSkill [ j + i * 4 ]].costmp && profession_skill[AssitSkill [ j + i * 4 ]].costmp != 0 ) { lssproto_BATTLESKILL_send ( sockfd , AssitSkill [ j + i * 4 ] ) ; @@ -753,14 +753,14 @@ void SkillWndfunc2() { sprintf_s( msg , "%s" , profession_skill[BattleSkill [ j + i * 4 ]].name ); StockFontBuffer( 355, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0 ); - sprintf_s( msg , "%d", profession_skill[BattleSkill [ j + i * 4 ]].skill_level ) ; + sprintf_s( msg , "%d%", profession_skill[BattleSkill [ j + i * 4 ]].skill_level ) ; StockFontBuffer( 440, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0 ); - sprintf_s( msg , "(ķMP:%d)" , profession_skill[BattleSkill [ j + i * 4 ]].costmp ); + sprintf_s( msg , "(耗费MP:%d)" , profession_skill[BattleSkill [ j + i * 4 ]].costmp ); StockFontBuffer( 500, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0 ); sprintf_s( msg , "%s" , profession_skill[BattleSkill [ j + i * 4 ]].memo ) ; -#ifdef _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol +#ifdef _OUTOFBATTLESKILL // (不可开) Syu ADD 非战斗时技能Protocol if ( mouse.onceState & MOUSE_LEFT_CRICK && profession_skill[ BattleSkill [ j + i * 4 ]].useFlag == 0 ) { if( pc.mp >= profession_skill[BattleSkill [ j + i * 4 ]].costmp && profession_skill[BattleSkill [ j + i * 4 ]].costmp != 0 ) { lssproto_BATTLESKILL_send ( sockfd , BattleSkill [ j + i * 4 ] ) ; @@ -796,14 +796,14 @@ void SkillWndfunc2() { sprintf_s( msg , "%s" , profession_skill[AdvanceSkill [ j + i * 4 ]].name ); StockFontBuffer( 355, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0 ); - sprintf_s( msg , "%d", profession_skill[AdvanceSkill [ j + i * 4 ]].skill_level ) ; + sprintf_s( msg , "%d%", profession_skill[AdvanceSkill [ j + i * 4 ]].skill_level ) ; StockFontBuffer( 440, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0 ); - sprintf_s( msg , "(ķMP:%d)" , profession_skill[AdvanceSkill [ j + i * 4 ]].costmp ); + sprintf_s( msg , "(耗费MP:%d)" , profession_skill[AdvanceSkill [ j + i * 4 ]].costmp ); StockFontBuffer( 500, 310 + DISPLACEMENT_Y, FONT_PRIO_FRONT, use_color, msg, 0 ); sprintf_s( msg , "%s" , profession_skill[AdvanceSkill [ j + i * 4 ]].memo ) ; -#ifdef _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol +#ifdef _OUTOFBATTLESKILL // (不可开) Syu ADD 非战斗时技能Protocol if ( mouse.onceState & MOUSE_LEFT_CRICK && profession_skill[AdvanceSkill [ j + i * 4 ]].useFlag == 0 ) { if( pc.mp >= profession_skill[AdvanceSkill [ j + i * 4 ]].costmp && profession_skill[AdvanceSkill [ j + i * 4 ]].costmp != 0 ) { lssproto_BATTLESKILL_send ( sockfd , AdvanceSkill [ j + i * 4 ] ) ; @@ -843,15 +843,15 @@ void SkillWndfunc2() { } #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 void TradeTalk(char *msg) { char buf[256]; if (pActMenuWnd4 != NULL || SecondTradeWnd != NULL) { sprintf_s(buf, "%s", msg); - //жǷ˫˵ + //判断是否由买卖双方说出 if (strstr(buf, pc.name) || strstr(buf, opp_name)) { - //ת + //内容转移 while (1){ if (strlen(msg) > 44) { strncpy_s(buf, msg, 44); @@ -888,13 +888,13 @@ void LockAndOkfunction() char mypetbuff[1024]; char oppitembuff[1024]; char opppetbuff[1024]; - // ˫԰ȷ״̬ + // 双方皆按下确定键状态 if (pc.trade_confirm == 4) { - // ȷ + // 处理按下确定键 if ((MainTradeWndflag == true && HitDispNo == tradeWndFontNo[0]) || //andy_reEdit 2003/04/27 (SecondTradeWndflag == true && HitDispNo == SecondtradeWndFontNo[2])){ - // ˫Ʒbuffer + // 对双方交易物品做成buffer sprintf_s(myitembuff, "T|%s|%s|K|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|I|%d|" , opp_sockfd, opp_name , tradeList[1].data, tradeList[2].data @@ -927,41 +927,41 @@ void LockAndOkfunction() tradeStatus = 2; } } - // ԷLockҷҪLock + // 对方按下Lock或我方要按下Lock键 if (pc.trade_confirm == 1 || pc.trade_confirm == 3) { if ((MainTradeWndflag == true && HitDispNo == tradeWndFontNo[0]) || //andy_reEdit 2003/04/27 (SecondTradeWndflag == true && HitDispNo == SecondtradeWndFontNo[2])) { - //ԷδLock״̬ 2 + //对方尚未Lock进入状态 2 if (pc.trade_confirm == 1) pc.trade_confirm = 2; - //ԷѾLock״̬ 4 + //对方已经Lock进入状态 4 if (pc.trade_confirm == 3) pc.trade_confirm = 4; sprintf_s(buffer, "T|%s|%s|C|confirm", opp_sockfd, opp_name); lssproto_TD_send(sockfd, buffer); } } - // Lock ȷ End + // 处理 Lock 、 确定键 End } #endif -// ?????????? ***************************************************/ +// ?????????? ***************************************************/ void WindowDisp(ACTION *pAct) { - // ??Bl????? + // ??????? WINDOW_DISP *pYobi = (WINDOW_DISP *)pAct->pYobi; int i, j; int x = pAct->x + 32, y = pAct->y + 24; - // ?hk??? + // ???? switch (pAct->actNo){ - case 0: // ???????? + case 0: // ???????? StockBoxDispBuffer(pYobi->mx - pYobi->nowX, pYobi->my - pYobi->nowY, pYobi->mx + pYobi->nowX, pYobi->my + pYobi->nowY, pYobi->boxDispPrio, SYSTEM_PAL_BLACK, 0); - // ???? + // ???? pYobi->nowX += pAct->dx; pYobi->nowY += pAct->dy; // ???????? @@ -971,7 +971,7 @@ void WindowDisp(ACTION *pAct) // ????? if (pYobi->wndType == -1) pAct->actNo = 1; else - // ?_??????? + // ???????? if (pYobi->wndType == -2) pAct->actNo = 3; else pAct->actNo = 2; } @@ -979,16 +979,16 @@ void WindowDisp(ACTION *pAct) case 1: // ????? pAct->hp = 1; break; - case 2: // ?????? + case 2: // ?????? for (j = 0; j < pYobi->sizeY; j++){ - // Ƥ + //  if (j == 0){ for (i = 0; i < pYobi->sizeX; i++){ - // ?Z + // ? if (i == 0) StockDispBuffer(x, y, DISP_PRIO_MENU, pYobi->wndType + 0, pYobi->hitFlag); - // ?Z + // ? else if (i == pYobi->sizeX - 1) StockDispBuffer(x, y, DISP_PRIO_MENU, pYobi->wndType + 2, pYobi->hitFlag); - // ?? + // ?? #ifdef _READ16BITBMP else if(g_bUseAlpha){ if(pYobi->wndType == CG_WND_G_0) StockDispBuffer( x, y, DISP_PRIO_MENU, pYobi->wndType + 1, pYobi->hitFlag ); @@ -997,18 +997,18 @@ void WindowDisp(ACTION *pAct) } #endif else StockDispBuffer(x, y, DISP_PRIO_MENU, pYobi->wndType + 1, pYobi->hitFlag); - x += 64; // ???? + x += 64; // ???? } } else - // ? + // ? if (j == pYobi->sizeY - 1){ for (i = 0; i < pYobi->sizeX; i++){ - // ?Z + // ? if (i == 0) StockDispBuffer(x, y, DISP_PRIO_MENU, pYobi->wndType + 6, pYobi->hitFlag); - // ?Z + // ? else if (i == pYobi->sizeX - 1) StockDispBuffer(x, y, DISP_PRIO_MENU, pYobi->wndType + 8, pYobi->hitFlag); - // ?? + // ?? #ifdef _READ16BITBMP else if(g_bUseAlpha){ if(pYobi->wndType == CG_WND_G_0) StockDispBuffer( x, y, DISP_PRIO_MENU, pYobi->wndType + 7, pYobi->hitFlag ); @@ -1017,15 +1017,15 @@ void WindowDisp(ACTION *pAct) } #endif else StockDispBuffer(x, y, DISP_PRIO_MENU, pYobi->wndType + 7, pYobi->hitFlag); - x += 64; // ???? + x += 64; // ???? } } else - // ?? + // ?? for (i = 0; i < pYobi->sizeX; i++){ - // ?Z + // ? if (i == 0) StockDispBuffer(x, y, DISP_PRIO_MENU, pYobi->wndType + 3, pYobi->hitFlag); - // ?Z + // ? #ifdef _READ16BITBMP else if(g_bUseAlpha){ if( i == pYobi->sizeX - 1 ){ @@ -1037,18 +1037,18 @@ void WindowDisp(ACTION *pAct) } #endif else if (i == pYobi->sizeX - 1) StockDispBuffer(x, y, DISP_PRIO_MENU, pYobi->wndType + 5, pYobi->hitFlag); - // ?? + // ?? else StockDispBuffer(x, y, DISP_PRIO_MENU, pYobi->wndType + 4, pYobi->hitFlag); - x += 64; // ???? + x += 64; // ???? } - x = pAct->x + 32; // ?Z??? - y += 48; // ???? + x = pAct->x + 32; // ???? + y += 48; // ???? } - // ????? + // ????? if (pYobi->titleNo != 0) StockDispBuffer(pYobi->titleX, pYobi->titleY, DISP_PRIO_IME3, pYobi->titleNo, pYobi->hitFlag); pAct->hp = 1; break; - case 3: // ?_????? + case 3: // ?????? // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ // ???? @@ -1060,7 +1060,7 @@ void WindowDisp(ACTION *pAct) pYobi->yesNoResult = FALSE; } } - // ?_????????? + // ?????????? StockDispBuffer(pYobi->mx, pYobi->my, DISP_PRIO_YES_NO_WND, CG_COMMON_WIN_YORO, 1); // ????? pYobi->yesDispNo = StockDispBuffer(pYobi->mx, pYobi->my, DISP_PRIO_YES_NO_BTN, CG_COMMON_YES_BTN, 2); @@ -1070,26 +1070,26 @@ void WindowDisp(ACTION *pAct) } } -// ????????? **************************************************************/ -// ?? int x,y ???? -// int sizeX,sizeY ????????????O????????????O?? -// int titleNo ????????????k????????????? -// int wndType ???????????Re??? -// ????????????Re??? -// ???????????Re?? -// ????????????Re?? -// ??_?????????Re??? -// -1??? +// ????????? **************************************************************/ +// ??: int x,y ???? +// int sizeX,sizeY ?????????????????????????? +// int titleNo ????????????????????????? +// int wndType ?:????????????? +// ?:?????????????? +// ?:???????????? +// ?:????????????? +// ?:????????????? +// -1:??? //****************************************************************************************/ ACTION *MakeWindowDisp(int x, int y, int sizeX, int sizeY, int titleNo, int wndType -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 , BOOL fixType /*= TRUE*/ #endif ) { ACTION *pAct; WINDOW_DISP *pYobi; -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600模式 if (fixType == TRUE){ if (x > 320){ x += DISPLACEMENT_X; @@ -1105,18 +1105,18 @@ ACTION *MakeWindowDisp(int x, int y, int sizeX, int sizeY, int titleNo, int wndT pAct = GetAction(PRIO_JIKI, sizeof(WINDOW_DISP)); if (pAct == NULL) return NULL; - // ??? + // ??? pAct->func = WindowDisp; - // ?IT + // ? pAct->dispPrio = DISP_PRIO_MENU; - // ???Re?? + // ????? pAct->atr |= ACT_ATR_HIT; - // ??? + // ??? pAct->atr |= ACT_ATR_HIDE; - // ??Bl????? + // ??????? pYobi = (WINDOW_DISP *)pAct->pYobi; - // ???? + // ???? pAct->x = x; pAct->y = y; pYobi->titleX = x + (sizeX * 64) / 2; @@ -1124,7 +1124,7 @@ ACTION *MakeWindowDisp(int x, int y, int sizeX, int sizeY, int titleNo, int wndT // ?????? pYobi->sizeX = sizeX; pYobi->sizeY = sizeY; - // ????k??? + // ??????? pYobi->titleNo = titleNo; pYobi->boxDispPrio = DISP_PRIO_MENU; // ?????????? @@ -1134,7 +1134,7 @@ ACTION *MakeWindowDisp(int x, int y, int sizeX, int sizeY, int titleNo, int wndT else if (wndType == 3) pYobi->wndType = CG_WND_G_0; else if (wndType == 4){ pYobi->wndType = -2; - // ???Re??? + // ?????? pYobi->yesDispNo = -2; pYobi->noDispNo = -2; pYobi->boxDispPrio = DISP_PRIO_YES_NO_WND; @@ -1144,28 +1144,28 @@ ACTION *MakeWindowDisp(int x, int y, int sizeX, int sizeY, int titleNo, int wndT // YesNo ?????? pYobi->yesNoResult = -1; - // ???Re??? + // ?????? if (wndType >= 2) pYobi->hitFlag = FALSE; else pYobi->hitFlag = TRUE; - // ??? - // ?????????_??????? + // ??? + // ???????????????? if (wndType == -1 || wndType == 4){ pYobi->mx = sizeX / 2 + pAct->x; pYobi->my = sizeY / 2 + pAct->y; } - else{ // [???????? + else{ // ???????? pYobi->mx = (sizeX * 64) / 2 + pAct->x; pYobi->my = (sizeY * 48) / 2 + pAct->y; } - // ?? + // ?? pAct->dx = (pYobi->mx - pAct->x) / WINDOW_CREATE_FRAME; pAct->dy = (pYobi->my - pAct->y) / WINDOW_CREATE_FRAME; return pAct; } -// ???????????? ***********************************************/ +// ???????????? ***********************************************/ void AnimDisp(ACTION *pAct) { int flag = FALSE; @@ -1174,12 +1174,12 @@ void AnimDisp(ACTION *pAct) // ????? switch (pAct->actNo){ - case ANIM_DISP_PET: // ??? + case ANIM_DISP_PET: // ??? - // ???????? + // ???????? if (pAct->hitDispNo == HitDispNo && mouse.autoState & MOUSE_LEFT_CRICK) { - // ?? + // ?? pAct->anim_ang++; // ???????? if (pAct->anim_ang >= 8) pAct->anim_ang = 0; @@ -1190,28 +1190,28 @@ void AnimDisp(ACTION *pAct) break; - case ANIM_DISP_PET_SEND: // ?????????????h + case ANIM_DISP_PET_SEND: // ????????????? - // h?k? + // ?? pAct->anim_no = ANIM_WALK; // ?????????( ??? )( ??????? ) pAct->anim_ang = 2; - // ? + // ? pAct->crs = crs_change_tbl2[pAct->anim_ang]; // ????? pAct->dx++; - // ?????????L + // ????????? if (pAct->dx % 3 == 0){ - // ?????L + // ????? if (pAct->spd < 20){ pAct->spd++; } } - // ?????????L + // ????????? if (pAct->dx % 5 == 0){ if (pAct->dy >= 2) pAct->dy--; } - // ?h?? + // ??? gemini(pAct); // ??????? @@ -1221,22 +1221,22 @@ void AnimDisp(ACTION *pAct) pActMailItem->x = pAct->x; } } - // ????????????? + // ????????????? if (pAct->x <= -100){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ???? + // ???? DeathAction(pActPet); pActPet = NULL; - // ???????? + // ???????? DeathAction(pActMailItem); pActMailItem = NULL; // ???????? mailWndNo = MAIL_WND_VIEW; - // ???????? + // ???????? play_se(203, 320, 240); - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); } // ??????? @@ -1244,22 +1244,22 @@ void AnimDisp(ACTION *pAct) break; - case ANIM_DISP_PET_RECIEVE: // ???????????h + case ANIM_DISP_PET_RECIEVE: // ??????????? - // h?k? + // ?? pAct->anim_no = ANIM_WALK; // ?????????( ??? )( ??????? ) pAct->anim_ang = 6; - // ? + // ? pAct->crs = crs_change_tbl2[pAct->anim_ang]; // ????? pAct->dx++; - // ?????L + // ????? if (pAct->spd > 0){ - // ?????????L + // ????????? if (pAct->dx % 3 == 0){ pAct->spd--; - // ??????h???? + // ?????????? if (pAct->spd <= 0){ pAct->actNo = ANIM_DISP_PET_MAIN; // ??????? @@ -1269,12 +1269,12 @@ void AnimDisp(ACTION *pAct) } } } - // ?????????L + // ????????? if (pAct->dx % 8 == 0){ - // ????????L + // ???????? if (pAct->dy < 12) pAct->dy++; } - // ?h?? + // ??? gemini(pAct); // ??????? @@ -1289,43 +1289,43 @@ void AnimDisp(ACTION *pAct) break; - case ANIM_DISP_PET_MAIN: // ?????hk?? + case ANIM_DISP_PET_MAIN: // ??????? - // ????? + // ????? if (Rnd(0, 4) >= 2){ pAct->actNo = ANIM_DISP_PET_WALK; - // ????? + // ????? pAct->anim_ang = Rnd(0, 7); - // ???@e + // ??? pAct->crs = crs_change_tbl2[pAct->anim_ang]; - // ?????h???? + // ????????? pAct->spd = Rnd(1, 12); // ??????????? pAct->dy = 13 - pAct->spd; } else pAct->actNo = Rnd(ANIM_DISP_PET_STAND, ANIM_DISP_PET_DEAD); - // q????????????? + // ????????????? pAct->anim_no_bak = -1; break; - case ANIM_DISP_PET_WALK: // ? + case ANIM_DISP_PET_WALK: // ? - // h?k? + // ?? pAct->anim_no = ANIM_WALK; - // ?h?? + // ??? gemini(pAct); // ??????? if (pattern(pAct, pAct->dy, ANM_NO_LOOP)){ - // ??????? + // ??????? if (Rnd(0, 3) == 0){ pAct->actNo = ANIM_DISP_PET_MAIN; } else{ - // q????????????? + // ????????????? pAct->anim_no_bak = -1; } } @@ -1333,48 +1333,48 @@ void AnimDisp(ACTION *pAct) return; } // ???????? - // + //  if (pActPet->y < pActMenuWnd->y + 64){ pActPet->y = pActMenuWnd->y + 64; - // ???@e + // ??? pAct->crs = crs_bound_tbl[0][pAct->crs]; - // ??@e + // ?? pAct->anim_ang = crs_change_tbl[pAct->crs]; } // ? if (pActPet->y > pActMenuWnd->y + 424 - 32){ pActPet->y = pActMenuWnd->y + 424 - 32; - // ???@e + // ??? pAct->crs = crs_bound_tbl[2][pAct->crs]; - // ??@e + // ?? pAct->anim_ang = crs_change_tbl[pAct->crs]; } // ? if (pActPet->x < pActMenuWnd->x + 32){ pActPet->x = pActMenuWnd->x + 32; - // ???@e + // ??? pAct->crs = crs_bound_tbl[3][pAct->crs]; - // ??@e + // ?? pAct->anim_ang = crs_change_tbl[pAct->crs]; } // ? if (pActPet->x > pActMenuWnd->x + 272 - 32){ pActPet->x = pActMenuWnd->x + 272 - 32; - // ???@e + // ??? pAct->crs = crs_bound_tbl[1][pAct->crs]; - // ??@e + // ?? pAct->anim_ang = crs_change_tbl[pAct->crs]; } break; - case ANIM_DISP_PET_STAND: // r? + case ANIM_DISP_PET_STAND: // ? - // h?k? + // ?? pAct->anim_no = ANIM_STAND; // ??????? if (pattern(pAct, ANM_NOMAL_SPD, ANM_NO_LOOP)){ - // ??????? + // ??????? pAct->actNo = ANIM_DISP_PET_MAIN; } @@ -1382,17 +1382,17 @@ void AnimDisp(ACTION *pAct) case ANIM_DISP_PET_ATTACK: // ?? - // h?k? + // ?? pAct->anim_no = ANIM_ATTACK; // ??????? if (pattern(pAct, ANM_NOMAL_SPD, ANM_NO_LOOP)){ - // ??????? + // ??????? if (Rnd(0, 1) == 0){ pAct->actNo = ANIM_DISP_PET_MAIN; } else{ - // q????????????? + // ????????????? pAct->anim_no_bak = -1; } } @@ -1401,12 +1401,12 @@ void AnimDisp(ACTION *pAct) case ANIM_DISP_PET_GUARD: // ??? - // h?k? + // ?? pAct->anim_no = ANIM_GUARD; // ??????? if (pattern(pAct, ANM_NOMAL_SPD, ANM_NO_LOOP)){ - // ??????? + // ??????? if (Rnd(0, 1) == 0){ pAct->actNo = ANIM_DISP_PET_MAIN; } @@ -1416,31 +1416,31 @@ void AnimDisp(ACTION *pAct) case ANIM_DISP_PET_DAMAGE: // ???? - // h?k? + // ?? pAct->anim_no = ANIM_DAMAGE; // ??????? if (pattern(pAct, ANM_NOMAL_SPD, ANM_NO_LOOP)){ - // ??????? + // ??????? if (Rnd(0, 1) == 0){ pAct->actNo = ANIM_DISP_PET_MAIN; } else{ - // q????????????? + // ????????????? pAct->anim_no_bak = -1; } } break; - case ANIM_DISP_PET_DEAD: // ? + case ANIM_DISP_PET_DEAD: // ? - // h?k? + // ?? pAct->anim_no = ANIM_DEAD; // ??????? if (pattern(pAct, ANM_NOMAL_SPD, ANM_NO_LOOP)){ - // ??????? + // ??????? if (Rnd(0, 2) == 0){ pAct->actNo = ANIM_DISP_PET_MAIN; } @@ -1448,18 +1448,18 @@ void AnimDisp(ACTION *pAct) break; - case ANIM_DISP_PET_ITEM: // ???????? + case ANIM_DISP_PET_ITEM: // ???????? // ??????? pattern(pAct, ANM_NOMAL_SPD, ANM_LOOP); break; - case ANIM_DISP_LETTER_MOVE: // ??h + case ANIM_DISP_LETTER_MOVE: // ?? - // ?h + // ? if (pAct->x < 245) pAct->x += 5; - // ????????? + // ????????? else{ pAct->actNo = ANIM_DISP_LETTER; // ??????? @@ -1468,84 +1468,84 @@ void AnimDisp(ACTION *pAct) } break; - case ANIM_DISP_LETTER: // ???????? + case ANIM_DISP_LETTER: // ???????? // ??????? pattern(pAct, ANM_NOMAL_SPD, ANM_LOOP); break; - case ANIM_DISP_MIX_PET_INIT: // ??????? + case ANIM_DISP_MIX_PET_INIT: // ??????? - // ?????h???? + // ????????? pAct->spd = 11;//Rnd( 6, 12 ); // ??????????? pAct->dy = 14 - pAct->spd; - // h?k? + // ?? pAct->anim_no = ANIM_WALK; - // ????????S? + // ????????? for (i = MAX_ITEMSTART; i < MAX_ITEM; i++){ if (ItemBuffer[i].mixFlag >= 1){ pAct->dx = i; break; } } - // ?h? + // ?? pAct->actNo = ANIM_DISP_MIX_PET_MOVE; break; - case ANIM_DISP_MIX_PET_MOVE: // ?????????h + case ANIM_DISP_MIX_PET_MOVE: // ????????? - // ?ԡ@e + // ?佋 x = ItemBuffer[pAct->dx].defX; y = ItemBuffer[pAct->dx].defY; // ???? radar(pAct, &x, &y); - // h?k? + // ?? pAct->anim_no = ANIM_WALK; // ????????? if (y >= pAct->spd / 2){ - // ???@e + // ??? pAct->crs = x; - // ??@e??Ԩ???????? + // ????佋???????? if (pAct->level == FALSE){ pAct->anim_ang = crs_change_tbl[pAct->crs]; - // ?????????? + // ?????????? pAct->level = TRUE; } - // ?h?? + // ??? gemini(pAct); // ??????? pattern(pAct, pAct->dy, ANM_LOOP); } // ????? else{ - // ??????????? + // ??????????? pAct->level = FALSE; - // ?????? + // ?????? play_se(204, 320, 240); // ?????????????? if (pAct->delta == 1){ // ??????? pAct->actNo = ANIM_DISP_MIX_PET_MOJI; - // h?k? + // ?? pAct->anim_no = ANIM_STAND; - // ?????h???? + // ????????? pAct->spd = 10;//Rnd( 6, 12 ); // ??????????? pAct->dy = 14 - pAct->spd; - // ?????? + // ?????? for (i = MAX_ITEMSTART; i < MAX_ITEM; i++){ if (ItemBuffer[i].mixFlag >= 1){ ItemBuffer[i].mixFlag = 4; @@ -1558,7 +1558,7 @@ void AnimDisp(ACTION *pAct) break; } - // ?h????w??? + // ???????? pAct->spd = (int)((double)pAct->spd * 0.79); // ???????? if (pAct->spd < 2) pAct->spd = 2; @@ -1572,7 +1572,7 @@ void AnimDisp(ACTION *pAct) #endif ItemBuffer[pAct->dx].mixFlag = 3; - // ???????S? + // ???????? for (i = pAct->dx + 1; i < MAX_ITEM; i++){ if (ItemBuffer[i].mixFlag >= 1){ pAct->dx = i; @@ -1582,18 +1582,18 @@ void AnimDisp(ACTION *pAct) // ???????? if (i >= MAX_ITEM){ - // ???????????S? + // ???????????? for (i = MAX_ITEMSTART; i < MAX_ITEM; i++){ - // ??????????? + // ??????????? if (pc.item[i].useFlag == FALSE){ - // ????e + // ???? pAct->dx = i; break; } else - // ???????????? + // ???????????? if (ItemBuffer[i].mixFlag >= 1){ - // ????e + // ???? pAct->dx = i; break; } @@ -1604,7 +1604,7 @@ void AnimDisp(ACTION *pAct) } break; - case ANIM_DISP_MIX_PET_MOJI: // ????????????? + case ANIM_DISP_MIX_PET_MOJI: // ????????????? // ??????? pattern(pAct, 1, ANM_LOOP); @@ -1620,20 +1620,20 @@ void AnimDisp(ACTION *pAct) // ??? case 0: case 3: - // ??@e + // ?? pAct->anim_ang++; // ???????? if (pAct->anim_ang >= 8) pAct->anim_ang = 0; // ????? if (pAct->hp == 0){ - // ?????? + // ?????? play_se(216, 320, 240); } // ??????? if (pAct->hp == 3){ pAct->dir++; pAct->hp = 0; - // ?????? + // ?????? pAct->mp--; if (pAct->mp < 4) pAct->mp = 4; } @@ -1643,7 +1643,7 @@ void AnimDisp(ACTION *pAct) // ??? case 1: case 2: - // ??@e + // ?? pAct->anim_ang--; // ???????? if (pAct->anim_ang < 0) pAct->anim_ang = 7; @@ -1651,21 +1651,21 @@ void AnimDisp(ACTION *pAct) break; } - // ??????? + // ??????? if (pAct->dir >= pAct->delta){ - // ??? + // ??? if (pAct->dir == pAct->delta){ pAct->dir++; - // ???? + // ???? char moji[256]; - // ???? + // ???? moji[0] = NULL; - // ???????????? + // ???????????? for (i = MAX_ITEMSTART; i < MAX_ITEM; i++){ - // ?????????? + // ?????????? if (ItemBuffer[i].mixFlag >= TRUE){//ttom char work[256]; - // ??? + // ??? sprintf_s(work, "%d|", i); strcat_s(moji, work); // ?????? @@ -1674,73 +1674,73 @@ void AnimDisp(ACTION *pAct) // ???|???????? moji[strlen(moji) - 1] = NULL; - // ?????????????????? + // ?????????????????? if (bNewServer) lssproto_PS_send(sockfd, mixPetNo, SelectWazaNo, 0, moji); else old_lssproto_PS_send(sockfd, mixPetNo, SelectWazaNo, 0, moji); - // r?????? + // ?????? ItemMixRecvFlag = TRUE; } - // r?????? + // ?????? if (ItemMixRecvFlag == FALSE){ - // ?????? + // ?????? play_se(115, 320, 240); - // ???????? + // ???????? for (i = MAX_ITEMSTART; i < MAX_ITEM; i++){ ItemBuffer[i].mixFlag = FALSE; } - // ?????h???? + // ????????? pAct->spd = 11; // ??????????? pAct->dy = 14 - pAct->spd; - // ??? + // ??? pAct->actNo = ANIM_DISP_MIX_PET_END; } } break; - case ANIM_DISP_MIX_PET_END: // ??????? + case ANIM_DISP_MIX_PET_END: // ??????? - // ?ԡ@e + // ?佋 x = 750; y = 240; // ???? radar(pAct, &x, &y); - // h?k? + // ?? pAct->anim_no = ANIM_WALK; // ????????? if (y >= pAct->spd / 2){ - // ???@e + // ??? pAct->crs = x; - // ??@e??Ԩ???????? + // ????佋???????? if (pAct->level == FALSE){ pAct->anim_ang = crs_change_tbl[pAct->crs]; - // ?????????? + // ?????????? pAct->level = TRUE; } - // ?h?? + // ??? gemini(pAct); // ??????? pattern(pAct, pAct->dy, ANM_LOOP); } // ????? else{ - // ?????? + // ?????? DeathAction(pAct); pActPet2 = NULL; - // ????k???? + // ???????? ItemMixPetNo = -1; } break; -#ifdef _AniCrossFrame // Syu ADD ι +#ifdef _AniCrossFrame // Syu ADD 动画层游过画面生物 case ANIM_DISP_CROSSFRAME: { extern bool delFlag; @@ -1748,15 +1748,15 @@ void AnimDisp(ACTION *pAct) pAct->anim_no = ANIM_WALK; pAct->anim_ang = 2; pAct->crs = crs_change_tbl2[pAct->anim_ang]; - //ƶٶ + //移动速度 pAct->spd = 1; - //ʾ㼶 + //显示层级 pAct->dispPrio = DISP_PRIO_JIKI; if (pAct->dx % 5 == 0){ if (pAct->dy >= 2) pAct->dy--; } gemini(pAct); - //ַλ + //各种方向位移 if (((pAct->anim_chr_no > 101511) && (pAct->anim_chr_no < 101516)) || (pAct->anim_chr_no == 101517) || (pAct->anim_chr_no == 101519)) { @@ -1783,13 +1783,13 @@ void AnimDisp(ACTION *pAct) pAct->y = pAct->y; } else if ((pAct->anim_chr_no == 101520) || (pAct->anim_chr_no == 101522) || - (pAct->anim_chr_no <= 101593 && pAct->anim_chr_no >= 101588)) // + (pAct->anim_chr_no <= 101593 && pAct->anim_chr_no >= 101588)) //右上 { pAct->x++; pAct->y--; } else if ((pAct->anim_chr_no == 101521) || (pAct->anim_chr_no == 101523) || - (pAct->anim_chr_no <= 101587 && pAct->anim_chr_no >= 101582)) // + (pAct->anim_chr_no <= 101587 && pAct->anim_chr_no >= 101582)) //左上 { pAct->x--; pAct->y--; @@ -1799,7 +1799,7 @@ void AnimDisp(ACTION *pAct) pAct->x++; pAct->y++; } - //ӫĻΧ + //超出荧幕范围消灭 if ((pAct->x <= -100 || pAct->y <= -100 || pAct->x >= 740 || pAct->y >= 580) && delFlag == true && flag22 == true) { flag22 = false; @@ -1810,7 +1810,7 @@ void AnimDisp(ACTION *pAct) break; #endif #ifdef _THEATER - case ANIM_DISP_THEATER_NPC: // 糡NPCʾ + case ANIM_DISP_THEATER_NPC: // 剧场NPC显示 { float fX, fY; @@ -1824,13 +1824,13 @@ void AnimDisp(ACTION *pAct) ); switch (ATR_CHR_ACT(pAct)) { - case 0: // - case 1: // - case 2: // ε - case 5: // - case 10: // - case 12: // Ͷ - pattern(pAct, ANM_NOMAL_SPD, ANM_NO_LOOP); // ظ + case 0: // 攻击 + case 1: // 受伤 + case 2: // 晕倒 + case 5: // 坐下 + case 10: // 防御 + case 12: // 投掷 + pattern(pAct, ANM_NOMAL_SPD, ANM_NO_LOOP); // 不重覆动作 break; default: pattern(pAct, ANM_NOMAL_SPD, ANM_LOOP); @@ -1841,18 +1841,18 @@ void AnimDisp(ACTION *pAct) #endif } - // ?????h????? + // ?????????? if (ANIM_DISP_PET_MAIN <= pAct->actNo && pAct->actNo <= ANIM_DISP_PET_DEAD){ // ???????????? if (pAct->hitDispNo == HitDispNo && mouse.autoState & MOUSE_LEFT_CRICK){ - // ?h??? + // ???? pAct->actNo = ANIM_DISP_PET_WALK; - // ????? + // ????? pAct->anim_ang = Rnd(0, 7); - // ???@e + // ??? pAct->crs = crs_change_tbl2[pAct->anim_ang]; - // ?????h???? + // ????????? pAct->spd = 15; pAct->dy = 2; @@ -1861,30 +1861,30 @@ void AnimDisp(ACTION *pAct) } } -// ??????????? ***********************************************/ +// ??????????? ***********************************************/ ACTION *MakeAnimDisp(int x, int y, int sprNo, int mode) { ACTION *pAct; - // ?????????x + // ????????? pAct = GetAction(PRIO_JIKI, NULL); if (pAct == NULL) return NULL; - // ??? + // ??? pAct->func = AnimDisp; - // ???Re?? + // ????? pAct->atr |= ACT_ATR_HIT; pAct->anim_chr_no = sprNo; - // h?k? + // ?? pAct->anim_no = ANIM_STAND; // ?????????( ??? )( ??????? ) pAct->anim_ang = 1; - /* ?IT */ + /* ? */ pAct->dispPrio = DISP_PRIO_BOX3; - /* ???t */ + /* ??? */ pAct->x = x; pAct->y = y; - // ???@e + // ??? pAct->actNo = mode; // ?????????? if (pAct->actNo == ANIM_DISP_PET){ @@ -1902,7 +1902,7 @@ ACTION *MakeAnimDisp(int x, int y, int sprNo, int mode) return pAct; } -// ???????V ****************************************************************/ +// ??????? ****************************************************************/ BOOL SaveMailHistory(int no) { FILE *fp; @@ -1912,13 +1912,13 @@ BOOL SaveMailHistory(int no) return FALSE; } #ifdef _MORECHARACTERS_ - // ????????????????????????? - extern int ﵱǰҳ; - fseek(fp, sizeof(MAIL_HISTORY)* MAX_ADR_BOOK * (selectPcNo + ﵱǰҳ * 2), SEEK_SET); + // ????????????????????????? + extern int 多人物当前页数; + fseek(fp, sizeof(MAIL_HISTORY)* MAX_ADR_BOOK * (selectPcNo + 多人物当前页数 * 2), SEEK_SET); #else fseek(fp, sizeof(MAIL_HISTORY)* MAX_ADR_BOOK * (selectPcNo), SEEK_SET); #endif - // ??????k????????????????? + // ??????????????????????? fseek(fp, sizeof(MAIL_HISTORY)* no, SEEK_CUR); // ??????? @@ -1933,15 +1933,15 @@ BOOL SaveMailHistory(int no) return TRUE; } -// ?????????? ****************************************************************/ +// ?????????? ****************************************************************/ BOOL LoadMailHistory(void) { FILE *fp; - MAIL_HISTORY work[MAX_ADR_BOOK * 2]; // ?????????Bl + MAIL_HISTORY work[MAX_ADR_BOOK * 2]; // ????????? - // ??????????? + // ??????????? if ((fp = fopen(MAIL_HISTORY_FILE_NAME, "rb")) == NULL){ - // ?????ɤ?? + // ??????? if ((fp = fopen(MAIL_HISTORY_FILE_NAME, "wb")) != NULL){ // ??????? fwrite(MailHistory, sizeof(MAIL_HISTORY), MAX_ADR_BOOK, fp); @@ -1955,10 +1955,10 @@ BOOL LoadMailHistory(void) // ???????????? if (fread(work, sizeof(MAIL_HISTORY), MAX_ADR_BOOK * 2, fp) < MAX_ADR_BOOK * 2){ // ??????? - // ?????ɤ?? + // ??????? if ((fp = fopen(MAIL_HISTORY_FILE_NAME, "wb")) != NULL){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd, "ɾǰmailϡ", "ȷ", MB_OK | MB_ICONSTOP ); + MessageBoxNew( hWnd, "删除以前的mail资料。", "确定", MB_OK | MB_ICONSTOP ); #endif // ??????? fwrite(MailHistory, sizeof(MAIL_HISTORY), MAX_ADR_BOOK, fp); @@ -1970,13 +1970,13 @@ BOOL LoadMailHistory(void) } #ifdef _MORECHARACTERS_ - // ?????????????????? - extern int ﵱǰҳ; - fseek(fp, sizeof(MAIL_HISTORY)* MAX_ADR_BOOK * (selectPcNo + ﵱǰҳ * 2), SEEK_SET); + // ?????????????????? + extern int 多人物当前页数; + fseek(fp, sizeof(MAIL_HISTORY)* MAX_ADR_BOOK * (selectPcNo + 多人物当前页数 * 2), SEEK_SET); #else fseek(fp, sizeof(MAIL_HISTORY)* MAX_ADR_BOOK * (selectPcNo), SEEK_SET); #endif - // ?????? + // ?????? if (fread(MailHistory, sizeof(MAIL_HISTORY), MAX_ADR_BOOK, fp) < MAX_ADR_BOOK){ fclose(fp); // ???????? @@ -1988,7 +1988,7 @@ BOOL LoadMailHistory(void) return TRUE; } -// ?????K???V ****************************************************************/ +// ???????? ****************************************************************/ BOOL SaveChatRegistyStr(void) { FILE *fp; @@ -1996,7 +1996,7 @@ BOOL SaveChatRegistyStr(void) // ???????????? if ((fp = fopen(CAHT_REGISTY_STR_FILE_NAME, "r+b")) == NULL){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd, "¼ĵ¼ʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + MessageBoxNew( hWnd, "记录聊天的登录文字失败!1", "确定", MB_OK | MB_ICONSTOP ); #endif return FALSE; } @@ -2005,7 +2005,7 @@ BOOL SaveChatRegistyStr(void) if (fwrite(chatRegistryStr, sizeof(STR_BUFFER), MAX_CHAT_REGISTY_STR, fp) < MAX_CHAT_REGISTY_STR){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd, "¼ĵ¼ʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + MessageBoxNew( hWnd, "记录聊天的登录文字失败!2", "确定", MB_OK | MB_ICONSTOP ); #endif fclose(fp);// ???????? return FALSE; @@ -2019,35 +2019,35 @@ BOOL SaveChatRegistyStr(void) return TRUE; } -// ?????K?????? ****************************************************************/ +// ??????????? ****************************************************************/ BOOL LoadChatRegistyStr(void) { FILE *fp; int i; - // ??????????? + // ??????????? if ((fp = fopen(CAHT_REGISTY_STR_FILE_NAME, "rb")) == NULL){ - // ?????ɤ?? + // ??????? if ((fp = fopen(CAHT_REGISTY_STR_FILE_NAME, "wb")) != NULL){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd, "ĵ¼ֵ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "建立聊天的登录文字档案!", "确定", MB_OK ); #endif - // ??????K??V?????????? + // ?????????????????? for (i = 0; i < 8; i++){ - // ??? ??@e + // ??? ?? chatRegistryStr[i].buffer[0] = NULL; chatRegistryStr[i].cnt = 0; chatRegistryStr[i].cursor = 0; - // ???? + // ???? chatRegistryStr[i].len = MAX_CHAT_REGISTY_STR_LEN; - // ???? + // ???? chatRegistryStr[i].lineLen = 0; // ????? chatRegistryStr[i].lineDist = 20; - // ??? + // ??? chatRegistryStr[i].color = 0; - // ???? - // ????I?? + // ???? + // ?????? chatRegistryStr[i].fontPrio = FONT_PRIO_FRONT; } // ??????? @@ -2060,11 +2060,11 @@ BOOL LoadChatRegistyStr(void) return FALSE; } - // ?????? + // ?????? if (fread(chatRegistryStr, sizeof(STR_BUFFER), MAX_CHAT_REGISTY_STR, fp) < MAX_CHAT_REGISTY_STR){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd, "ĵ¼ʧܣ", "ȷ", MB_OK | MB_ICONSTOP ); + MessageBoxNew( hWnd, "载入聊天的登录文字资料失败!1", "确定", MB_OK | MB_ICONSTOP ); #endif fclose(fp); // ???????? return FALSE; @@ -2081,7 +2081,7 @@ BOOL LoadChatRegistyStr(void) #ifdef __ALBUM_47 int MAX_PET_TBL; #endif -// ?????V ****************************************************************/ +// ????? ****************************************************************/ BOOL SaveAlbum(int no) { FILE *fp; @@ -2091,15 +2091,15 @@ BOOL SaveAlbum(int no) if (0 <= no && no < MAX_PET_TBL){ if (fp = fopen(ALBUM_FILE_NAME_48, "r+b")){ if (0 != fseek(fp, (16 + sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew(hWnd, "ಾʧܣ", "ȷ", MB_OK); + MessageBoxNew(hWnd, "储存相簿资料失败!1", "确定", MB_OK); if (0 != fseek(fp, 16 + sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew(hWnd, "ಾʧܣ", "ȷ", MB_OK); + MessageBoxNew(hWnd, "储存相簿资料失败!2", "确定", MB_OK); if (fwrite(&PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose(fp); } else - MessageBoxNew(hWnd, "ಾʧܣ", "ȷ", MB_OK); + MessageBoxNew(hWnd, "储存相簿资料失败!3", "确定", MB_OK); } return ret; #elif defined(__ALBUM_46) @@ -2107,14 +2107,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s(&fp, ALBUM_FILE_NAME_47, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2123,14 +2123,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s(&fp, ALBUM_FILE_NAME_46, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2139,14 +2139,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if( !fopen_s( &fp,ALBUM_FILE_NAME_45, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2155,14 +2155,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s(&fp, ALBUM_FILE_NAME_44, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2171,14 +2171,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s( &fp,ALBUM_FILE_NAME_43, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2187,14 +2187,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s( &fp,ALBUM_FILE_NAME_42, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2203,14 +2203,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s(&fp, ALBUM_FILE_NAME_41, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2219,14 +2219,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if( !fopen_s( &fp,ALBUM_FILE_NAME_40, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2235,14 +2235,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s( &fp,ALBUM_FILE_NAME_39, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2251,14 +2251,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s( &fp,ALBUM_FILE_NAME_38, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2267,14 +2267,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s( &fp,ALBUM_FILE_NAME_37, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; @@ -2283,14 +2283,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if( !fopen_s( &fp,ALBUM_FILE_NAME_36, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; #elif defined(__ALBUM_34) @@ -2298,14 +2298,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s(&fp, ALBUM_FILE_NAME_35, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; #elif defined(__ALBUM_33) @@ -2313,14 +2313,14 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if( !fopen_s(&fp, ALBUM_FILE_NAME_34, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; #elif defined(__ALBUM_32) @@ -2328,40 +2328,40 @@ BOOL SaveAlbum(int no) if( 0 <= no && no < MAX_PET_TBL ){ if(!fopen_s(&fp, ALBUM_FILE_NAME_33, "r+b")){ if( 0 != fseek( fp, (16+sizeof(PET_ALBUM)*MAX_PET_KIND)*AlbumIdCnt, SEEK_SET)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); if( 0 != fseek( fp, 16+sizeof(PET_ALBUM)*no, SEEK_CUR)) - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); if( fwrite( &PetAlbum[no], sizeof(PET_ALBUM), 1, fp) >= 1) ret = TRUE; fclose( fp ); }else - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!3", "确定", MB_OK ); } return ret; #else // ???????????? if ((fopen_s(&fp, ALBUM_FILE_NAME, "r+b")) != NULL){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!1", "确定", MB_OK ); #endif return FALSE; } - // \??????? + // ??????? for (int i = 0; i < AlbumIdCnt; i++){ - // ???????????? + // ???????????? fseek(fp, 16, SEEK_CUR); fseek(fp, sizeof(PET_ALBUM)* MAX_PET_KIND, SEEK_CUR); } - // ??????? + // ??????? fseek(fp, 16, SEEK_CUR); - // ??????????k????? + // ??????????????? fseek(fp, sizeof(PET_ALBUM)* no, SEEK_CUR); // ??????? if (fwrite(&PetAlbum[no], sizeof(PET_ALBUM), 1, fp) < 1){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd, "ಾʧܣ", "ȷ", MB_OK ); + MessageBoxNew( hWnd, "储存相簿资料失败!2", "确定", MB_OK ); #endif fclose(fp);// ???????? return FALSE; @@ -2420,7 +2420,7 @@ BOOL LoadAlbum_4( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - // ?????????? + // ?????????? // ???????????? id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); @@ -2474,24 +2474,24 @@ BOOL ConvertAlbum1_4( char *user) if( ( fopen_s( &fp,ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -2561,7 +2561,7 @@ BOOL LoadAlbum_47(char *user) } while (1){ if (fread(id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd(1, 100); for (i = 0; i < 16; i++) @@ -2577,7 +2577,7 @@ BOOL LoadAlbum_47(char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if (strcmp(id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if (fseek(fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek(fp, (sizeof(PET_ALBUM)*MAX_PET_KIND + 16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -2592,7 +2592,7 @@ BOOL LoadAlbum_47(char *user) } } else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if (fread(PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite(PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose(fp); @@ -2616,31 +2616,31 @@ BOOL ConvertAlbumTo47(char *user, char *oldfile, DWORD num) if ((fp = fopen(oldfile, "r+b")) == NULL) return FALSE; while (1){ - //ID + //读入ID if (fread(id2, 16, 1, fp) < 1){ fclose(fp); return FALSE; } - //ID + //ID解码 for (i = 0; i < 16; i++){ id2[i] ^= IdEncryptionTbl[i]; } id2[id2[15]] = NULL; if (strcmp(user, id2) != 0){ - //ID - if (fseek(fp, sizeof(PET_ALBUM)* num, SEEK_CUR) != 0){//һ + //ID不符 + if (fseek(fp, sizeof(PET_ALBUM)* num, SEEK_CUR) != 0){//下一个 fclose(fp); return FALSE; } } else{ - //ҵID¼ + //找到ID纪录 if (fread(OldAlbum, sizeof(PET_ALBUM), num, fp) < num){ fclose(fp); return FALSE; } for (DWORD i = 0; i < num; i++){ - if (440 <= i && i <= 461) continue; //Q + if (440 <= i && i <= 461) continue; //修正乌力Q 问题 CopyMemory(&PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum(i); } @@ -2660,25 +2660,25 @@ BOOL ConvertAlbum1_47(char *user) if ((fp = fopen(ALBUM_FILE_NAME, "r+b")) == NULL) return FALSE; while (1){ - //ID + //读入ID if (fread(id2, sizeof(id2), 1, fp) < 1){ fclose(fp); return FALSE; } - //ID + //ID解码 for (i = 0; i < 16; i++){ id2[i] ^= IdEncryptionTbl[i]; } id2[id2[15]] = NULL; if (strcmp(user, id2) != 0){ - //ID - if (fseek(fp, sizeof(PET_ALBUM)* MAX_PET_KIND_1, SEEK_CUR) != 0){//һ + //ID不符 + if (fseek(fp, sizeof(PET_ALBUM)* MAX_PET_KIND_1, SEEK_CUR) != 0){//找下一个 fclose(fp); return FALSE; } } else{ - // + //读入资料 if (fread(OldAlbum, sizeof(PET_ALBUM), MAX_PET_KIND_1, fp) < MAX_PET_KIND_1){ fclose(fp); return FALSE; @@ -2747,7 +2747,7 @@ BOOL LoadAlbum_46( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -2763,7 +2763,7 @@ BOOL LoadAlbum_46( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -2777,7 +2777,7 @@ BOOL LoadAlbum_46( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -2801,30 +2801,30 @@ BOOL ConvertAlbumTo46( char *user, char *oldfile, DWORD num) if( ( fopen_s(&fp, oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -2844,24 +2844,24 @@ BOOL ConvertAlbum1_46( char *user) if( ( fopen_s( &fp,ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -2930,7 +2930,7 @@ BOOL LoadAlbum_45( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -2946,7 +2946,7 @@ BOOL LoadAlbum_45( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -2960,7 +2960,7 @@ BOOL LoadAlbum_45( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -2984,30 +2984,30 @@ BOOL ConvertAlbumTo45( char *user, char *oldfile, DWORD num) if( ( fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -3027,24 +3027,24 @@ BOOL ConvertAlbum1_45( char *user) if( ( fopen_s(&fp, ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -3113,7 +3113,7 @@ BOOL LoadAlbum_44( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -3129,7 +3129,7 @@ BOOL LoadAlbum_44( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -3143,7 +3143,7 @@ BOOL LoadAlbum_44( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -3167,30 +3167,30 @@ BOOL ConvertAlbumTo44( char *user, char *oldfile, DWORD num) if( ( fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -3210,24 +3210,24 @@ BOOL ConvertAlbum1_44( char *user) if( ( fopen_s(&fp, ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -3296,7 +3296,7 @@ BOOL LoadAlbum_43( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -3312,7 +3312,7 @@ BOOL LoadAlbum_43( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -3326,7 +3326,7 @@ BOOL LoadAlbum_43( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -3350,30 +3350,30 @@ BOOL ConvertAlbumTo43( char *user, char *oldfile, DWORD num) if( ( fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -3393,24 +3393,24 @@ BOOL ConvertAlbum1_43( char *user) if( ( fopen_s(&fp, ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -3479,7 +3479,7 @@ BOOL LoadAlbum_42( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -3495,7 +3495,7 @@ BOOL LoadAlbum_42( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -3509,7 +3509,7 @@ BOOL LoadAlbum_42( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -3533,30 +3533,30 @@ BOOL ConvertAlbumTo42( char *user, char *oldfile, DWORD num) if( ( fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -3576,24 +3576,24 @@ BOOL ConvertAlbum1_42( char *user) if( ( fopen_s( &fp,ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -3662,7 +3662,7 @@ BOOL LoadAlbum_41( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -3678,7 +3678,7 @@ BOOL LoadAlbum_41( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -3692,7 +3692,7 @@ BOOL LoadAlbum_41( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -3716,30 +3716,30 @@ BOOL ConvertAlbumTo41( char *user, char *oldfile, DWORD num) if( ( fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -3759,24 +3759,24 @@ BOOL ConvertAlbum1_41( char *user) if( ( fopen_s( &fp,ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -3845,7 +3845,7 @@ BOOL LoadAlbum_40( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -3861,7 +3861,7 @@ BOOL LoadAlbum_40( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -3875,7 +3875,7 @@ BOOL LoadAlbum_40( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -3899,30 +3899,30 @@ BOOL ConvertAlbumTo40( char *user, char *oldfile, DWORD num) if( ( fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -3942,24 +3942,24 @@ BOOL ConvertAlbum1_40( char *user) if( ( fopen_s(&fp, ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -4028,7 +4028,7 @@ BOOL LoadAlbum_39( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -4044,7 +4044,7 @@ BOOL LoadAlbum_39( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -4058,7 +4058,7 @@ BOOL LoadAlbum_39( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -4082,30 +4082,30 @@ BOOL ConvertAlbumTo39( char *user, char *oldfile, DWORD num) if( (fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -4125,24 +4125,24 @@ BOOL ConvertAlbum1_39( char *user) if( ( fopen_s( &fp,ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -4211,7 +4211,7 @@ BOOL LoadAlbum_38( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -4227,7 +4227,7 @@ BOOL LoadAlbum_38( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -4241,7 +4241,7 @@ BOOL LoadAlbum_38( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -4265,30 +4265,30 @@ BOOL ConvertAlbumTo38( char *user, char *oldfile, DWORD num) if( ( fopen_s(&fp, oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -4308,24 +4308,24 @@ BOOL ConvertAlbum1_38( char *user) if( ( fopen_s( &fp,ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -4394,7 +4394,7 @@ BOOL LoadAlbum_37( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -4410,7 +4410,7 @@ BOOL LoadAlbum_37( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -4424,7 +4424,7 @@ BOOL LoadAlbum_37( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -4448,30 +4448,30 @@ BOOL ConvertAlbumTo37( char *user, char *oldfile, DWORD num) if( ( fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -4491,24 +4491,24 @@ BOOL ConvertAlbum1_37( char *user) if( ( fopen_s( &fp,ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -4577,7 +4577,7 @@ BOOL LoadAlbum_36( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -4593,7 +4593,7 @@ BOOL LoadAlbum_36( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -4607,7 +4607,7 @@ BOOL LoadAlbum_36( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -4631,30 +4631,30 @@ BOOL ConvertAlbumTo36( char *user, char *oldfile, DWORD num) if( ( fopen_s(&fp, oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; } for( DWORD i = 0; i < num; i++){ - if( 440 <= i && i <= 461 ) continue; //Q + if( 440 <= i && i <= 461 ) continue; //修正乌力Q 问题 CopyMemory( &PetAlbum[i], &OldAlbum[i], sizeof(PET_ALBUM)); SaveAlbum( i); } @@ -4674,24 +4674,24 @@ BOOL ConvertAlbum1_36( char *user) if( ( fopen_s( &fp,ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -4760,7 +4760,7 @@ BOOL LoadAlbum_35( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -4776,7 +4776,7 @@ BOOL LoadAlbum_35( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -4790,7 +4790,7 @@ BOOL LoadAlbum_35( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -4814,24 +4814,24 @@ BOOL ConvertAlbumTo35( char *user, char *oldfile, DWORD num) if( ( fopen_s(&fp, oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; @@ -4856,24 +4856,24 @@ BOOL ConvertAlbum1_35( char *user) if( ( fopen_s(&fp, ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -4942,7 +4942,7 @@ BOOL LoadAlbum_34( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -4958,7 +4958,7 @@ BOOL LoadAlbum_34( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -4972,7 +4972,7 @@ BOOL LoadAlbum_34( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -4996,24 +4996,24 @@ BOOL ConvertAlbumTo34( char *user, char *oldfile, DWORD num) if( ( fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; @@ -5038,24 +5038,24 @@ BOOL ConvertAlbum1_34( char *user) if( ( fopen_s(&fp, ALBUM_FILE_NAME, "r+b" ) ) != NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -5124,7 +5124,7 @@ BOOL LoadAlbum_33( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -5140,7 +5140,7 @@ BOOL LoadAlbum_33( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -5154,7 +5154,7 @@ BOOL LoadAlbum_33( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -5178,24 +5178,24 @@ BOOL ConvertAlbumTo33( char *user, char *oldfile, DWORD num) if( ( fopen_s( &fp,oldfile, "r+b" ) ) != NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; @@ -5220,24 +5220,24 @@ BOOL ConvertAlbum1_33( char *user) if( ( fp = fopen( ALBUM_FILE_NAME, "r+b" ) ) == NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -5306,7 +5306,7 @@ BOOL LoadAlbum_32( char *user) } while( 1 ){ if( fread( id2, sizeof(id2), 1, fp) < 1){ - //Ҳʺŵļ¼ + //找不到此帐号的记录 id[15] &= 0xf; id[id[15]] = Rnd( 1, 100); for( i = 0 ; i < 16 ; i++) @@ -5322,7 +5322,7 @@ BOOL LoadAlbum_32( char *user) id2[15] &= 0xf; id2[id2[15]] = NULL; if( strcmp( id, id2) != 0){ - //Ǵʺŵļ¼ + //不是此帐号的记录 if( fseek( fp, sizeof(PET_ALBUM)*MAX_PET_KIND, SEEK_CUR) != 0){ fseek( fp, (sizeof(PET_ALBUM)*MAX_PET_KIND+16)*AlbumIdCnt, SEEK_SET); id[15] &= 0xf; @@ -5336,7 +5336,7 @@ BOOL LoadAlbum_32( char *user) return FALSE; } }else{ - //ҵʺŵļ¼ + //找到此帐号的记录 if( fread( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fwrite( PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp); fclose( fp); @@ -5360,24 +5360,24 @@ BOOL ConvertAlbumTo32( char *user, char *oldfile, DWORD num) if( ( fp = fopen( oldfile, "r+b" ) ) == NULL ) return FALSE; while( 1){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * num, SEEK_CUR ) != 0 ){//下一个 fclose( fp ); return FALSE; } }else{ - //ҵID¼ + //找到ID纪录 if( fread( OldAlbum, sizeof( PET_ALBUM ), num, fp ) < num ){ fclose( fp ); return FALSE; @@ -5402,24 +5402,24 @@ BOOL ConvertAlbum1_32( char *user) if( ( fp = fopen( ALBUM_FILE_NAME, "r+b" ) ) == NULL ) return FALSE; while( 1 ){ - //ID + //读入ID if( fread( id2, sizeof( id2 ), 1, fp ) < 1 ){ fclose( fp ); return FALSE; } - //ID + //ID解码 for( i = 0 ; i < 16 ; i++ ){ id2[ i ] ^= IdEncryptionTbl[ i ]; } id2[ id2[ 15 ] ] = NULL; if( strcmp( user, id2 ) != 0 ){ - //ID - if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//һ + //ID不符 + if( fseek( fp, sizeof( PET_ALBUM ) * MAX_PET_KIND_1, SEEK_CUR ) != 0 ){//找下一个 fclose( fp ); return FALSE; } }else{ - // + //读入资料 if( fread( OldAlbum, sizeof( PET_ALBUM ), MAX_PET_KIND_1, fp ) < MAX_PET_KIND_1 ){ fclose( fp ); return FALSE; @@ -5444,16 +5444,16 @@ BOOL ConvertAlbum1_32( char *user) #endif -// ???????? ****************************************************************/ +// ???????? ****************************************************************/ BOOL LoadAlbum(void) { char id[32]; - // ?????x + // ????? extern char szUser[]; CopyMemory(id, szUser, 32); ecb_crypt("f;encor1c", id, 32, DES_DECRYPT); - // ????x + // ???? id[15] = strlen(id); #if defined(__ALBUM_47) @@ -6722,10 +6722,10 @@ BOOL LoadAlbum(void) FILE *fp; // ????????? AlbumIdCnt = 0; - // ??????????? + // ??????????? if ((fp = fopen(ALBUM_FILE_NAME, "r+b")) == NULL){ - // ?????ɤ?? + // ??????? if ((fp = fopen(ALBUM_FILE_NAME, "wb")) != NULL){ // ???????????? id[id[15]] = Rnd(1, 100); @@ -6737,10 +6737,10 @@ BOOL LoadAlbum(void) // ????????? fwrite(id, sizeof(id), 1, fp); - // ?????Bl?????? + // ??????????? for (i = 0; i < MAX_PET_KIND; i++){ int j; - // q??? + // ??? for (j = 0; j < PET_NAME_LEN + 1; j++){ PetAlbum[i].name[j] = Rnd(1, 255); PetAlbum[i].freeName[j] = Rnd(1, 255); @@ -6767,11 +6767,11 @@ BOOL LoadAlbum(void) return FALSE; } - // ??S??????? ????? ? + // ????????? ????? ? while (1){ - // ?????? + // ?????? if (fread(id2, sizeof(id2), 1, fp) < 1){ - // ?????????? + // ?????????? // ???????????? id[id[15]] = Rnd(1, 100); // ?????? @@ -6789,18 +6789,18 @@ BOOL LoadAlbum(void) for (i = 0; i < 16; i++){ id2[i] ^= IdEncryptionTbl[i]; } - // ????????? + // ????????? id2[id2[15]] = NULL; // ?????? if (strcmp(id, id2) != 0){ - // ???????????????????? + // ???????????????????? if (fseek(fp, sizeof(PET_ALBUM)* MAX_PET_KIND, SEEK_CUR) != 0){ fclose(fp); // ???????? return FALSE; } } else{// ???? - // ?????????? + // ?????????? if (fread(PetAlbum, sizeof(PET_ALBUM), MAX_PET_KIND, fp) < MAX_PET_KIND){ fclose(fp); // ???????? return FALSE; @@ -6817,76 +6817,76 @@ BOOL LoadAlbum(void) #endif } -// ??????????^M?? **************************************************/ +// ???????????? **************************************************/ void InitOhtaParam(void) { - LoadMailHistory(); // ?????????? - LoadChatHistoryStr(); // ???????????? + LoadMailHistory(); // ?????????? + LoadChatHistoryStr(); // ???????????? //LoadReadNameShield(); //LoadReadSayShield(); - mailLamp = CheckMailNoReadFlag(); // t???? + mailLamp = CheckMailNoReadFlag(); // ???? StatusUpPoint = 0; // ??????????????? - battleResultMsg.useFlag = 0; // Pf???????? + battleResultMsg.useFlag = 0; // ???????? MapWmdFlagBak = 0; } -// ???t???? ****************************************************************/ +// ??????? ****************************************************************/ BOOL CheckMailNoReadFlag(void) { int i, j; - // ??? + // ??? for (i = 0; i < MAX_ADR_BOOK; i++){ - // ????? + // ????? for (j = 0; j < MAIL_MAX_HISTORY; j++){ - // t??????? + // ??????? if (MailHistory[i].noReadFlag[j] >= TRUE) return TRUE; } } return FALSE; } -// ???????? ****************************************************************/ +// ???????? ****************************************************************/ void CheckNewPet(int sprNo) { - int tblNo = sprNo - 100250; // ?????k? + int tblNo = sprNo - 100250; // ?????? int albumNo; - // ????k? + // ????? #if defined(__ALBUM_47) - if (tblNo > 1800){ //Сħ + if (tblNo > 1800){ //小恶魔 tblNo -= 1208; } - else if (tblNo > 1755){ //Ϲħ + else if (tblNo > 1755){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; } - else if (tblNo > 1739){ //1710 ){ // + else if (tblNo > 1739){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; } - else if (tblNo > 1686){ //ںϳ + else if (tblNo > 1686){ //海底融合宠 tblNo -= 1175; } - else if (tblNo > 1641){ //4 ׳2 8.0һϲ + else if (tblNo > 1641){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; } - else if (tblNo > 1635){ // + else if (tblNo > 1635){ //麒麟 tblNo -= 1148; } - else if (tblNo > 1634){ //èŮ1 èŮ2 + else if (tblNo > 1634){ //猫女1 猫女2 tblNo -= 1149; } - else if (tblNo > 1616){// ۷1 ۷2 1 2 ʨ1 ʨ2 + else if (tblNo > 1616){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; } - else if (tblNo > 1568){// + else if (tblNo > 1568){//机人龙 tblNo -= 1103; } - else if (tblNo > 1564){//ɫ + else if (tblNo > 1564){//黄色飞龙 tblNo -= 1101; } else if (tblNo > 1516){ tblNo -= 1055; } - else if (tblNo == 1516){// + else if (tblNo == 1516){//修正乌力王 tblNo = 455; } else if (tblNo > 1509){ @@ -6956,29 +6956,29 @@ void CheckNewPet(int sprNo) tblNo -= (333 + 56); } #elif defined(__ALBUM_46) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; - }else if (tblNo > 1739 ){ //1710 ){ // + }else if (tblNo > 1739 ){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7026,29 +7026,29 @@ void CheckNewPet(int sprNo) tblNo -= (333+56); } #elif defined(__ALBUM_45) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; - }else if (tblNo > 1739 ){ //1710 ){ // + }else if (tblNo > 1739 ){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7096,29 +7096,29 @@ void CheckNewPet(int sprNo) tblNo -= (333+56); } #elif defined(__ALBUM_44) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; - }else if (tblNo > 1739 ){ //1710 ){ // + }else if (tblNo > 1739 ){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7166,29 +7166,29 @@ void CheckNewPet(int sprNo) tblNo -= (333+56); } #elif defined(__ALBUM_43) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; - }else if (tblNo > 1739 ){ //1710 ){ // + }else if (tblNo > 1739 ){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7236,29 +7236,29 @@ void CheckNewPet(int sprNo) tblNo -= (333+56); } #elif defined(__ALBUM_42) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; - }else if (tblNo > 1739 ){ //1710 ){ // + }else if (tblNo > 1739 ){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7306,29 +7306,29 @@ void CheckNewPet(int sprNo) tblNo -= (333+56); } #elif defined(__ALBUM_41) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; - }else if (tblNo > 1739 ){ //1710 ){ // + }else if (tblNo > 1739 ){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7376,29 +7376,29 @@ void CheckNewPet(int sprNo) tblNo -= (333+56); } #elif defined(__ALBUM_40) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; - }else if (tblNo > 1739 ){ //1710 ){ // + }else if (tblNo > 1739 ){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7446,29 +7446,29 @@ void CheckNewPet(int sprNo) tblNo -= (333+56); } #elif defined(__ALBUM_39) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; - }else if (tblNo > 1739 ){ //1710 ){ // + }else if (tblNo > 1739 ){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7517,27 +7517,27 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_38) - if( tblNo > 1755 ){ //Ϲħ + if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; - }else if (tblNo > 1739 ){ //1710 ){ // + }else if (tblNo > 1739 ){ //1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7586,25 +7586,25 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_37) - if (tblNo > 1710 ){ // + if (tblNo > 1710 ){ // 间隔骑宠后的 飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //ںϳ + }else if (tblNo > 1686 ){ //海底融合宠 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7653,23 +7653,23 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_36) - if (tblNo > 1686 ){ //4 ׳2 8.0һϲ + if (tblNo > 1686 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7718,21 +7718,21 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_35) - if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7781,21 +7781,21 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_34) - if (tblNo > 1639 ){ //4 + if (tblNo > 1639 ){ //鸡年兽4 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 麒麟 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7846,17 +7846,17 @@ void CheckNewPet(int sprNo) if (tblNo > 1635 ){ tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 麒麟 tblNo -= 1149; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7905,19 +7905,19 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_32) - if ( tblNo > 1634 ){ //èŮ1 èŮ2 + if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -7966,17 +7966,17 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_31) - if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8025,15 +8025,15 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_30) - if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8082,15 +8082,15 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_29) - if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8139,15 +8139,15 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_28) - if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8197,15 +8197,15 @@ void CheckNewPet(int sprNo) #elif defined(__ALBUM_27) - if ( tblNo > 1616 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8255,15 +8255,15 @@ void CheckNewPet(int sprNo) #elif defined(__ALBUM_26) - if ( tblNo > 1616 ){// ۷1 ۷2 1 2 + if ( tblNo > 1616 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8312,15 +8312,15 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_25) - if( tblNo > 1616 ){// + if( tblNo > 1616 ){//布里萨尔 tblNo -= 1146; - }else if ( tblNo > 1568 ){// + }else if ( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8369,13 +8369,13 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_24) - if( tblNo > 1568 ){// + if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8426,7 +8426,7 @@ void CheckNewPet(int sprNo) #elif defined(__ALBUM_23) if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8475,7 +8475,7 @@ void CheckNewPet(int sprNo) } #elif defined(__ALBUM_22) - if ( tblNo == 1516 ){// + if ( tblNo == 1516 ){//修正乌力王 tblNo = 455; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -8801,9 +8801,9 @@ void CheckNewPet(int sprNo) tblNo -= (333+56); } #endif - // ???????k????? + // ???????????? if (0 <= tblNo && tblNo < MAX_PET_TBL){ - // ??K????????k? + // ??????????? albumNo = PetAlbumTbl[tblNo].albumNo; // ???????? if (albumNo != -1 ){ @@ -8811,73 +8811,73 @@ void CheckNewPet(int sprNo) if (PetAlbum[albumNo].flag == 0){ // ??????? PetAlbum[albumNo].flag = 1; - // q??? + // ??? strcpy(PetAlbum[albumNo].name, PetAlbumTbl[tblNo].name); - // ?????V + // ????? SaveAlbum(albumNo); } } } } -// Pf?????????? **********************************************************/ +// ?????????? **********************************************************/ void CheckBattleNewPet(void) { int i; - // ??l??? + // ????? for (i = 0; i < BATTLKPKPLYAERNUM; i++){ - // ?????????? + // ?????????? if (p_party[i] == NULL) continue; // ?????????? if (p_party[i]->func == NULL) continue; - // ????????? + // ????????? CheckNewPet(p_party[i]->anim_chr_no); } } -// ?????????? *****************************************************/ +// ?????????? *****************************************************/ void CenteringStr(char *inStr, char *outStr, int max) { int len, space, amari; - // ????? + // ????? len = strlen(inStr); // ???????? if (len >= max){ // ??????? strncpy_s(outStr, max + 1, inStr, max); - outStr[max] = NULL; // Z?????? + outStr[max] = NULL; // ?????? return; } // ??????? amari = (max - len) % 2; - // ????? + // ????? space = (max - len) / 2; // ????????? if (space != 0){ - // ??? + // ??? sprintf(outStr, "%*c%s%*c", space, ' ', inStr, space + amari, ' '); } else{ - // ??? + // ??? sprintf(outStr, "%s ", inStr); } } -// e????????????????? *************************************/ +// ????????????????? *************************************/ int CheckPetSkill(int skillId) { int i, j; - // ???????? + // ???????? for (j = 0; j < MAX_PET; j++){ // ??????????? if (pet[j].useFlag == TRUE){ - // ????? + // ????? for (i = 0; i < pet[j].maxSkill; i++){ // ???????? if (petSkill[j][i].useFlag == TRUE){ @@ -8913,7 +8913,7 @@ void InitItem(int x, int y, BOOL bPetItemFlag) }; #endif #ifdef _PET_ITEM - if (bPetItemFlag) // Ŀǰʾdz + if (bPetItemFlag) // 目前显示的是宠物道具栏 { // seting x InitXY[0].x = InitXY[5].x = x + 63; @@ -9008,7 +9008,7 @@ void InitItem3(int x, int y) ItemBuffer[i].y = ItemBuffer[i].defY; ItemBuffer[i].bmpNo = 20000 + j / 48; ItemBuffer[i].dispPrio = DISP_PRIO_ITEM; - j += 51; // ????? + j += 51; // ????? // ???????? if (j >= 48 * 5){ j = 0; @@ -9025,15 +9025,15 @@ void InitItem3(int x, int y) } // CoolFish: End -// ???Re????? ******************************************************/ +// ???????? ******************************************************/ BOOL MakeHitBox(int x1, int y1, int x2, int y2, int dispPrio) { - // ?????Re + // ????? if (mouse.nowPoint.x <= x2 && x1 <= mouse.nowPoint.x && mouse.nowPoint.y <= y2 && y1 <= mouse.nowPoint.y){ - // ??????? + // ??????? if (dispPrio >= 0){ - // ???????????????? + // ???????????????? StockBoxDispBuffer(x1, y1, x2, y2, dispPrio, BoxColor, 0); } return TRUE; @@ -9041,7 +9041,7 @@ BOOL MakeHitBox(int x1, int y1, int x2, int y2, int dispPrio) return FALSE; } -// ????????? **************************************************************/ +// ????????? **************************************************************/ void DeathLetterAction(void) { int i; @@ -9052,7 +9052,7 @@ void DeathLetterAction(void) } } -// ???????? ***************************************************************/ +// ???????? ***************************************************************/ void InitMailSendFlag(void) { int i; @@ -9068,18 +9068,18 @@ extern void petChange(int graphNo); #endif -// ????????????D? *****************************************************/ +// ????????????? *****************************************************/ void DeathMenuAction(void) { #ifdef _MAGIC_ITEM_ - if(߹⻷Act) DeathAction(߹⻷Act); - ߹⻷Act=NULL; + if(道具光环Act) DeathAction(道具光环Act); + 道具光环Act=NULL; #endif if(pActMenuWnd) DeathAction(pActMenuWnd); pActMenuWnd = NULL; -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 chatRoomBtn = 0; assentFlag = FALSE; DeathAction( pAssentWnd ); @@ -9088,7 +9088,7 @@ void DeathMenuAction(void) DeathAction( pSetRoomWnd ); pSetRoomWnd = NULL; #endif - // лͼBUG + //新增 动作表情切换地图BUG extern ACTION * ptActMenuWin1; if (ptActMenuWin1){ DeathAction(ptActMenuWin1); @@ -9097,7 +9097,7 @@ void DeathMenuAction(void) if(pActMenuWnd3) DeathAction(pActMenuWnd3); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); if(pActPet) DeathAction(pActPet); @@ -9108,7 +9108,7 @@ void DeathMenuAction(void) if(pActYesNoWnd) DeathAction(pActYesNoWnd); pActYesNoWnd = NULL; - // ????????? + // ????????? DeathLetterAction(); // Robin 04/14 trade @@ -9116,8 +9116,8 @@ void DeathMenuAction(void) DeathAction(pActMenuWnd4); pActMenuWnd4 = NULL; } -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ʹAction +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //清除所使用Action if (SecondTradeWnd){ DeathAction(SecondTradeWnd); SecondTradeWnd = NULL; @@ -9153,30 +9153,30 @@ void DeathMenuAction(void) petWndNo = 0; #endif } -// ????????????D? *****************************************************/ +// ????????????? *****************************************************/ void DeathMenuAction2(void) { #ifdef _MAGIC_ITEM_ - if(߹⻷Act) DeathAction(߹⻷Act); - ߹⻷Act=NULL; + if(道具光环Act) DeathAction(道具光环Act); + 道具光环Act=NULL; extern void ClearMagicItemWin(); ClearMagicItemWin(); #endif DeathAction(pActMenuWnd2); -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif pActMenuWnd2 = NULL; - // ????? + // ????? DeathAction(pActPet2); pActPet2 = NULL; - // ????????k???? + // ???????????? ItemMixPetNo = -1; // Robin 04/14 trade DeathAction(pActMenuWnd4); -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 chatRoomBtn = 0; assentFlag = FALSE; DeathAction( pAssentWnd ); @@ -9186,8 +9186,8 @@ void DeathMenuAction2(void) pSetRoomWnd = NULL; #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ʹAction +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //清除所使用Action DeathAction(SecondTradeWnd); SecondTradeWnd = NULL; DeathAction(SecondActPet); @@ -9195,7 +9195,7 @@ void DeathMenuAction2(void) DeathAction(TradeTalkWnd); TradeTalkWnd = NULL; #endif - //Ӵʱԭ趨 + //视窗消灭时还原设定 Tradeflag = false; pActMenuWnd4 = NULL; DeathAction(pActPet3); @@ -9244,28 +9244,28 @@ void InitMenu(void) albumWndNo = 0; // ????? for (i = 0; i < TASK_BAR; i++) taskBarFontNo[i] = -2; - // Pf??????? + // ??????? for (i = 0; i < MENU_BTL_RESULT_0; i++) resultWndFontNo[i] = -2; // ?????? MenuToggleFlag = 0; #ifdef _ITEM_JIGSAW JigsawIdx = 0; #endif -#ifdef _TELLCHANNEL //ROG ADD Ƶ +#ifdef _TELLCHANNEL //ROG ADD 密语频道 MultiTells = FALSE; #endif - // ????????????D? + // ????????????? DeathMenuAction(); - // ????????????D? + // ????????????? DeathMenuAction2(); // ??????????? mouse.itemNo = -1; - // ????kk???? + // ???????? itemNo = -1; - // k??????? + // ??????? jujutuNo = -1; - // ????k???? + // ???????? ItemMixPetNo = -1; #ifdef __AI void AI_CloseWnd(); @@ -9278,29 +9278,29 @@ void InitMenu2(void) { // ?????? MenuToggleFlag = 0; - // ????????????D? + // ????????????? DeathMenuAction(); - // ????????????D? + // ????????????? DeathMenuAction2(); // ??????????? mouse.itemNo = -1; - // ????kk???? + // ???????? itemNo = -1; - // k??????? + // ??????? jujutuNo = -1; - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; } -// ??????????? *******************************************************/ +// ??????????? *******************************************************/ BOOL CheckMenuFlag(void) { BOOL flag = FALSE; // ?????? if (MenuToggleFlag != 0) flag = TRUE; - // Pf??????????? + // ??????????? if (BattleResultWndFlag >= 1) flag = TRUE; // ????????????????? if (MapWmdFlagBak >= TRUE) flag = TRUE; @@ -9328,42 +9328,42 @@ void CleanSMS() #ifdef _AIDENGLU_ -BOOL Զ½ = FALSE; -ACTION *pԶ½ = NULL; -ACTION * ; -ACTION * ﶯ; +BOOL 自动登陆窗口 = FALSE; +ACTION *p自动登陆窗口 = NULL; +ACTION * 方向动作; +ACTION * 人物动作; extern struct gameserver gmsv[]; extern struct gamegroup gmgroup[]; -void Զ½ڻص() +void 自动登陆窗口回调() { - static int 򴰿Ƿ; + static int 方向窗口是否打开; static int btnId[15], btnState[15]; static int x = 0, y = 0; static DWORD dwPressTime; static char msg[][8] = { - "ӳ", - "Ա", - "" + "队长", + "队员", + "单人" }; static char chardir[][8] = { - "", - "", - "", - "", - "", - "", - "", - "" + "下", + "左下", + "左", + "左上", + "上", + "右上", + "右", + "右下" }; - if (pԶ½ == NULL){ - 򴰿Ƿ = FALSE; - = NULL; - ﶯ = NULL; + if (p自动登陆窗口 == NULL){ + 方向窗口是否打开 = FALSE; + 方向动作 = NULL; + 人物动作 = NULL; int w = 412; int h = 301; x = (lpDraw->xSize - w) / 2; y = (lpDraw->ySize - h) / 2; - pԶ½ = MakeWindowDisp(x, y, w, h, 55241, -1, FALSE); + p自动登陆窗口 = MakeWindowDisp(x, y, w, h, 55241, -1, FALSE); for (int i = 0; i < 14; i++){ btnId[i] = -2; if (i < 10) @@ -9372,181 +9372,181 @@ void dwPressTime = 0; } else{ - if (pԶ½->hp >= 1){ + if (p自动登陆窗口->hp >= 1){ if (joy_trg[0] & JOY_ESC){ - Զ½ = FALSE; - DeathAction(pԶ½); - DeathAction(); - DeathAction(ﶯ); - ﶯ = NULL; - 򴰿Ƿ = FALSE; - = NULL; - pԶ½ = NULL; + 自动登陆窗口 = FALSE; + DeathAction(p自动登陆窗口); + DeathAction(方向动作); + DeathAction(人物动作); + 人物动作 = NULL; + 方向窗口是否打开 = FALSE; + 方向动作 = NULL; + p自动登陆窗口 = NULL; actBtn = 0; return; } if (dwPressTime){ if (TimeGetTime() > (dwPressTime + 100)){ dwPressTime = 0; - if (btnState[0] == 1){// + if (btnState[0] == 1){//大区减 btnState[0] = 0; play_se(217, 320, 240); while (TRUE){ - PcLanded.--; - if (PcLanded. < 0){ - PcLanded. = 18; + PcLanded.大区--; + if (PcLanded.大区 < 0){ + PcLanded.大区 = 18; } - if (gmgroup[PcLanded.].used){ + if (gmgroup[PcLanded.大区].used){ break; } } } - if (btnState[1] == 1){// + if (btnState[1] == 1){//大区加 btnState[1] = 0; play_se(217, 320, 240); while (TRUE){ - PcLanded.++; - if (PcLanded. > 18){ - PcLanded. = 0; + PcLanded.大区++; + if (PcLanded.大区 > 18){ + PcLanded.大区 = 0; } - if (gmgroup[PcLanded.].used){ + if (gmgroup[PcLanded.大区].used){ break; } } } - if (btnState[2] == 1){//С + if (btnState[2] == 1){//小区减 btnState[2] = 0; play_se(217, 320, 240); - if (PcLanded. != -1) + if (PcLanded.大区 != -1) { while (TRUE){ - PcLanded.С--; - if (PcLanded.С < 0){ - PcLanded.С = gmgroup[PcLanded.].num - 1; + PcLanded.小区--; + if (PcLanded.小区 < 0){ + PcLanded.小区 = gmgroup[PcLanded.大区].num - 1; } - if (gmsv[gmgroup[PcLanded.].startindex + PcLanded.С].used){ + if (gmsv[gmgroup[PcLanded.大区].startindex + PcLanded.小区].used){ break; } } } } - if (btnState[3] == 1){//С + if (btnState[3] == 1){//小区加 btnState[3] = 0; play_se(217, 320, 240); - if (PcLanded. != -1) + if (PcLanded.大区 != -1) { while (TRUE){ - PcLanded.С++; - if (PcLanded.С >= gmgroup[PcLanded.].num){ - PcLanded.С = 0; + PcLanded.小区++; + if (PcLanded.小区 >= gmgroup[PcLanded.大区].num){ + PcLanded.小区 = 0; } - if (gmsv[gmgroup[PcLanded.].startindex + PcLanded.С].used){ + if (gmsv[gmgroup[PcLanded.大区].startindex + PcLanded.小区].used){ break; } } } } - if (btnState[4] == 1){//ģ + if (btnState[4] == 1){//队模减 btnState[4] = 0; play_se(217, 320, 240); - PcLanded.ģ--; - if (PcLanded.ģ < 0){ - PcLanded.ģ = 2; + PcLanded.队模--; + if (PcLanded.队模 < 0){ + PcLanded.队模 = 2; } - if (PcLanded.ģ == 0 || PcLanded.ģ == 2){ - PcLanded.ǷԶ = FALSE; + if (PcLanded.队模 == 0 || PcLanded.队模 == 2){ + PcLanded.是否自动喊话 = FALSE; } - if (PcLanded.ģ == 1){ - PcLanded.ǷԶ = FALSE; + if (PcLanded.队模 == 1){ + PcLanded.是否自动遇敌 = FALSE; } } - if (btnState[5] == 1){//ģ + if (btnState[5] == 1){//队模加 btnState[5] = 0; play_se(217, 320, 240); - PcLanded.ģ++; - if (PcLanded.ģ > 2){ - PcLanded.ģ = 0; + PcLanded.队模++; + if (PcLanded.队模 > 2){ + PcLanded.队模 = 0; } - if (PcLanded.ģ == 0 || PcLanded.ģ == 2){ - PcLanded.ǷԶ = FALSE; + if (PcLanded.队模 == 0 || PcLanded.队模 == 2){ + PcLanded.是否自动喊话 = FALSE; } - if (PcLanded.ģ == 1){ - PcLanded.ǷԶ = FALSE; + if (PcLanded.队模 == 1){ + PcLanded.是否自动遇敌 = FALSE; } } - if (btnState[6] == 1){//ɫ + if (btnState[6] == 1){//角色减 btnState[6] = 0; play_se(217, 320, 240); while (TRUE){ - PcLanded.--; - if (PcLanded. < 0){ - PcLanded. = 3; + PcLanded.人物--; + if (PcLanded.人物 < 0){ + PcLanded.人物 = 3; } - if (PcLanded.½[PcLanded.][0]) break; + if (PcLanded.登陆人物名称[PcLanded.人物][0]) break; } } - if (btnState[7] == 1){//ɫ + if (btnState[7] == 1){//角色加 btnState[7] = 0; play_se(217, 320, 240); while (TRUE){ - PcLanded.++; - if (PcLanded. > 3){ - PcLanded. = 0; + PcLanded.人物++; + if (PcLanded.人物 > 3){ + PcLanded.人物 = 0; } - if (PcLanded.½[PcLanded.][0]) break; + if (PcLanded.登陆人物名称[PcLanded.人物][0]) break; } } - if (btnState[8] == 1){//ȷ + if (btnState[8] == 1){//确定 btnState[8] = 0; play_se(217, 320, 240); - DeathAction(pԶ½); - pԶ½ = NULL; - Զ½ = FALSE; - if (){ - DeathAction(); - = NULL; - DeathAction(ﶯ); - ﶯ = NULL; + DeathAction(p自动登陆窗口); + p自动登陆窗口 = NULL; + 自动登陆窗口 = FALSE; + if (方向动作){ + DeathAction(方向动作); + 方向动作 = NULL; + DeathAction(人物动作); + 人物动作 = NULL; } extern short actBtn; actBtn = 0; return; } - if (btnState[9] == 1){//ȡ + if (btnState[9] == 1){//取消 btnState[9] = 0; play_se(217, 320, 240); - DeathAction(pԶ½); - pԶ½ = NULL; - Զ½ = FALSE; - if (){ - DeathAction(); - = NULL; - DeathAction(ﶯ); - ﶯ = NULL; + DeathAction(p自动登陆窗口); + p自动登陆窗口 = NULL; + 自动登陆窗口 = FALSE; + if (方向动作){ + DeathAction(方向动作); + 方向动作 = NULL; + DeathAction(人物动作); + 人物动作 = NULL; } extern short actBtn; actBtn = 0; return; } - if (btnState[10] == 1){// + if (btnState[10] == 1){//方向 btnState[10] = 0; play_se(217, 320, 240); - DeathAction(); - = NULL; - DeathAction(ﶯ); - ﶯ = NULL; - 򴰿Ƿ = FALSE; + DeathAction(方向动作); + 方向动作 = NULL; + DeathAction(人物动作); + 人物动作 = NULL; + 方向窗口是否打开 = FALSE; } } } else{ for (int i = 0; i < 10; i++){ if (HitDispNo == btnId[i]){ - if (i == 0 || i == 1) ShowBottomLineString(FONT_PAL_WHITE, "ô"); - if (i == 2 || i == 3) ShowBottomLineString(FONT_PAL_WHITE, "·,ôá"); - if (i == 4 || i == 5) ShowBottomLineString(FONT_PAL_WHITE, "ӳԶ Ա躰Զ ˣԶ psصԶAIģʽ"); - if (i == 6 || i == 7) ShowBottomLineString(FONT_PAL_WHITE, "õ½"); + if (i == 0 || i == 1) ShowBottomLineString(FONT_PAL_WHITE, "设置大区。"); + if (i == 2 || i == 3) ShowBottomLineString(FONT_PAL_WHITE, "设置线路,需设置大区方可设置。"); + if (i == 4 || i == 5) ShowBottomLineString(FONT_PAL_WHITE, "队长:可设自动遇敌 队员:可设喊话和自动组队 单人:可设自动遇敌 ps:人物掉线重登自动开启AI模式。"); + if (i == 6 || i == 7) ShowBottomLineString(FONT_PAL_WHITE, "设置登陆人物。"); if (mouse.onceState & MOUSE_LEFT_CRICK){ dwPressTime = TimeGetTime(); btnState[i] = 1; @@ -9562,123 +9562,123 @@ void } } - extern int Զ½Ƿ; + extern int 自动登陆是否开启; if (HitFontNo == btnId[10]){ - ShowBottomLineString(FONT_PAL_WHITE, "½ϷпɰF9͹ر,Աģʽ½Ϸ󺰻ɹرոùֹͣ"); + ShowBottomLineString(FONT_PAL_WHITE, "登陆游戏中可按F9开启和关闭,队员模式登陆游戏后喊话可关闭该功能停止喊话。"); if (mouse.onceState & MOUSE_LEFT_CRICK){ - if (PcLanded. != -1 && PcLanded.С != -1 && PcLanded. != -1){ - Զ½Ƿ = !Զ½Ƿ; - if (!Զ½Ƿ){ - extern int Ƿص, ǷصǺ, Ƿؿ_1; - Ƿص = FALSE; - ǷصǺ = FALSE; - Ƿؿ_1 = FALSE; + if (PcLanded.大区 != -1 && PcLanded.小区 != -1 && PcLanded.人物 != -1){ + 自动登陆是否开启 = !自动登陆是否开启; + if (!自动登陆是否开启){ + extern int 是否重登组队, 是否重登喊话, 是否重开登组队_1; + 是否重登组队 = FALSE; + 是否重登喊话 = FALSE; + 是否重开登组队_1 = FALSE; } } else{ - StockChatBufferLine("Ѵ·ͽɫѡܲ", FONT_PAL_RED); + StockChatBufferLine("请把大区、线路和角色选择后才能操作!", FONT_PAL_RED); } } } if (HitFontNo == btnId[12]){ if (mouse.onceState & MOUSE_LEFT_CRICK){ - ShowBottomLineString(FONT_PAL_WHITE, "ӳ͵˿øùܡ"); - if (PcLanded.ģ == 0 || PcLanded.ģ == 2) - PcLanded.ǷԶ = !PcLanded.ǷԶ; + ShowBottomLineString(FONT_PAL_WHITE, "队长和单人可设置该功能。"); + if (PcLanded.队模 == 0 || PcLanded.队模 == 2) + PcLanded.是否自动遇敌 = !PcLanded.是否自动遇敌; else{ - PcLanded.ǷԶ = FALSE; - StockChatBufferLine("ģʽֻжӳ͵˿ɿ", FONT_PAL_RED); + PcLanded.是否自动遇敌 = FALSE; + StockChatBufferLine("遇敌模式只有队长和单人可开启!", FONT_PAL_RED); } } } if (HitFontNo == btnId[13]){ if (mouse.onceState & MOUSE_LEFT_CRICK){ - ShowBottomLineString(FONT_PAL_WHITE, "ֻжԱøùܡ"); - if (PcLanded.ģ == 1) - PcLanded.ǷԶ = !PcLanded.ǷԶ; + ShowBottomLineString(FONT_PAL_WHITE, "只有队员可设置该功能。"); + if (PcLanded.队模 == 1) + PcLanded.是否自动喊话 = !PcLanded.是否自动喊话; else{ - PcLanded.ǷԶ = FALSE; - StockChatBufferLine("ԶֻжԱģʽɿ", FONT_PAL_RED); + PcLanded.是否自动喊话 = FALSE; + StockChatBufferLine("自动喊话只有队员模式可开启!", FONT_PAL_RED); } } } if (HitFontNo == btnId[11]){ - ShowBottomLineString(FONT_PAL_WHITE, "½ķ"); + ShowBottomLineString(FONT_PAL_WHITE, "掉线人物登陆后人物的方向。"); if (mouse.onceState & MOUSE_LEFT_CRICK){ - if (򴰿Ƿ){ - 򴰿Ƿ = FALSE; - if (){ - DeathAction(); - = NULL; - DeathAction(ﶯ); - ﶯ = NULL; + if (方向窗口是否打开){ + 方向窗口是否打开 = FALSE; + if (方向动作){ + DeathAction(方向动作); + 方向动作 = NULL; + DeathAction(人物动作); + 人物动作 = NULL; } } - else 򴰿Ƿ = TRUE; + else 方向窗口是否打开 = TRUE; } } - int ƫX = 0; - if (򴰿Ƿ) ƫX = -90; - if (򴰿Ƿ){ - if (!){ - = MakeWindowDisp(607 + ƫX, 147, 192, 148, 55242, -1, FALSE); - ﶯ = MakeAnimDisp(660 + ƫX, 240, pc.graNo, 0); - ﶯ->anim_ang = PcLanded.﷽; - pattern(ﶯ, ANM_NOMAL_SPD, ANM_LOOP); + int 方向偏移X = 0; + if (方向窗口是否打开) 方向偏移X = -90; + if (方向窗口是否打开){ + if (!方向动作){ + 方向动作 = MakeWindowDisp(607 + 方向偏移X, 147, 192, 148, 55242, -1, FALSE); + 人物动作 = MakeAnimDisp(660 + 方向偏移X, 240, pc.graNo, 0); + 人物动作->anim_ang = PcLanded.人物方向; + pattern(人物动作, ANM_NOMAL_SPD, ANM_LOOP); btnId[14] = -2; btnState[10] = 0; } - else if (->hp >= 1){ - StockDispBuffer(((WINDOW_DISP *)->pYobi)->mx, ((WINDOW_DISP *)->pYobi)->my, DISP_PRIO_MENU, 55242, 1); - PcLanded.﷽ = ﶯ->anim_ang; - btnId[14] = StockDispBuffer(((WINDOW_DISP *)->pYobi)->mx - 55, ((WINDOW_DISP *)->pYobi)->my - 90, DISP_PRIO_IME3, 26262 + btnState[10], 2); + else if (方向动作->hp >= 1){ + StockDispBuffer(((WINDOW_DISP *)方向动作->pYobi)->mx, ((WINDOW_DISP *)方向动作->pYobi)->my, DISP_PRIO_MENU, 55242, 1); + PcLanded.人物方向 = 人物动作->anim_ang; + btnId[14] = StockDispBuffer(((WINDOW_DISP *)方向动作->pYobi)->mx - 55, ((WINDOW_DISP *)方向动作->pYobi)->my - 90, DISP_PRIO_IME3, 26262 + btnState[10], 2); } } - StockDispBuffer(((WINDOW_DISP *)pԶ½->pYobi)->mx + ƫX, ((WINDOW_DISP *)pԶ½->pYobi)->my, DISP_PRIO_MENU, 55241, 1); - btnId[0] = StockDispBuffer(x + 128 + ƫX, y + 92 + 70, DISP_PRIO_IME3, 26064 + btnState[0], 2); - btnId[1] = StockDispBuffer(x + 109 + ƫX, y + 107 + 71, DISP_PRIO_IME3, 26066 + btnState[1], 2); + StockDispBuffer(((WINDOW_DISP *)p自动登陆窗口->pYobi)->mx + 方向偏移X, ((WINDOW_DISP *)p自动登陆窗口->pYobi)->my, DISP_PRIO_MENU, 55241, 1); + btnId[0] = StockDispBuffer(x + 128 + 方向偏移X, y + 92 + 70, DISP_PRIO_IME3, 26064 + btnState[0], 2); + btnId[1] = StockDispBuffer(x + 109 + 方向偏移X, y + 107 + 71, DISP_PRIO_IME3, 26066 + btnState[1], 2); - btnId[2] = StockDispBuffer(x + 273 + ƫX, y + 92 + 70, DISP_PRIO_IME3, 26064 + btnState[2], 2); - btnId[3] = StockDispBuffer(x + 254 + ƫX, y + 107 + 71, DISP_PRIO_IME3, 26066 + btnState[3], 2); + btnId[2] = StockDispBuffer(x + 273 + 方向偏移X, y + 92 + 70, DISP_PRIO_IME3, 26064 + btnState[2], 2); + btnId[3] = StockDispBuffer(x + 254 + 方向偏移X, y + 107 + 71, DISP_PRIO_IME3, 26066 + btnState[3], 2); - btnId[4] = StockDispBuffer(x + 128 + ƫX, y + 92 + 106, DISP_PRIO_IME3, 26064 + btnState[4], 2); - btnId[5] = StockDispBuffer(x + 109 + ƫX, y + 107 + 107, DISP_PRIO_IME3, 26066 + btnState[5], 2); + btnId[4] = StockDispBuffer(x + 128 + 方向偏移X, y + 92 + 106, DISP_PRIO_IME3, 26064 + btnState[4], 2); + btnId[5] = StockDispBuffer(x + 109 + 方向偏移X, y + 107 + 107, DISP_PRIO_IME3, 26066 + btnState[5], 2); - btnId[6] = StockDispBuffer(x + 128 + ƫX, y + 92 + 142, DISP_PRIO_IME3, 26064 + btnState[6], 2); - btnId[7] = StockDispBuffer(x + 109 + ƫX, y + 107 + 143, DISP_PRIO_IME3, 26066 + btnState[7], 2); + btnId[6] = StockDispBuffer(x + 128 + 方向偏移X, y + 92 + 142, DISP_PRIO_IME3, 26064 + btnState[6], 2); + btnId[7] = StockDispBuffer(x + 109 + 方向偏移X, y + 107 + 143, DISP_PRIO_IME3, 26066 + btnState[7], 2); - btnId[8] = StockDispBuffer(x + 207 + ƫX, y + 152, DISP_PRIO_IME3, 26262 + btnState[8], 2); - btnId[9] = StockDispBuffer(x + 207 + ƫX, y + 152, DISP_PRIO_IME3, 26264 + btnState[9], 2); + btnId[8] = StockDispBuffer(x + 207 + 方向偏移X, y + 152, DISP_PRIO_IME3, 26262 + btnState[8], 2); + btnId[9] = StockDispBuffer(x + 207 + 方向偏移X, y + 152, DISP_PRIO_IME3, 26264 + btnState[9], 2); char moji[256]; - if (PcLanded. != -1){ - CenteringStr(gmgroup[PcLanded.].name, moji, CHAR_NAME_LEN); - StockFontBuffer(x + 105 + ƫX, y + 64, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); + if (PcLanded.大区 != -1){ + CenteringStr(gmgroup[PcLanded.大区].name, moji, CHAR_NAME_LEN); + StockFontBuffer(x + 105 + 方向偏移X, y + 64, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); } - if (PcLanded.ģ != -1){ - StockFontBuffer(x + 150 + ƫX, y + 100, FONT_PRIO_FRONT, FONT_PAL_YELLOW, msg[PcLanded.ģ], 0); + if (PcLanded.队模 != -1){ + StockFontBuffer(x + 150 + 方向偏移X, y + 100, FONT_PRIO_FRONT, FONT_PAL_YELLOW, msg[PcLanded.队模], 0); } - if (PcLanded. != -1){ - CenteringStr(PcLanded.½[PcLanded.], moji, CHAR_NAME_LEN); - StockFontBuffer(x + 105 + ƫX, y + 136, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); + if (PcLanded.人物 != -1){ + CenteringStr(PcLanded.登陆人物名称[PcLanded.人物], moji, CHAR_NAME_LEN); + StockFontBuffer(x + 105 + 方向偏移X, y + 136, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); } - if (Զ½Ƿ) - btnId[10] = StockFontBuffer(x + 150 + ƫX, y + 171, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "", 2); + if (自动登陆是否开启) + btnId[10] = StockFontBuffer(x + 150 + 方向偏移X, y + 171, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "开启", 2); else - btnId[10] = StockFontBuffer(x + 150 + ƫX, y + 171, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ر", 2); - if (PcLanded.С != -1){ - StockFontBuffer(x + 305 + ƫX, y + 64, FONT_PRIO_FRONT, FONT_PAL_YELLOW, gmsv[gmgroup[PcLanded.].startindex + PcLanded.С].name, 0); + btnId[10] = StockFontBuffer(x + 150 + 方向偏移X, y + 171, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "关闭", 2); + if (PcLanded.小区 != -1){ + StockFontBuffer(x + 305 + 方向偏移X, y + 64, FONT_PRIO_FRONT, FONT_PAL_YELLOW, gmsv[gmgroup[PcLanded.大区].startindex + PcLanded.小区].name, 0); } - btnId[11] = StockFontBuffer(x + 320 + ƫX, y + 100, FONT_PRIO_FRONT, FONT_PAL_YELLOW, chardir[PcLanded.﷽], 2); - if (PcLanded.ǷԶ) - btnId[12] = StockFontBuffer(x + 320 + ƫX, y + 136, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "", 2); + btnId[11] = StockFontBuffer(x + 320 + 方向偏移X, y + 100, FONT_PRIO_FRONT, FONT_PAL_YELLOW, chardir[PcLanded.人物方向], 2); + if (PcLanded.是否自动遇敌) + btnId[12] = StockFontBuffer(x + 320 + 方向偏移X, y + 136, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "开启", 2); else - btnId[12] = StockFontBuffer(x + 320 + ƫX, y + 136, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ر", 2); - if (PcLanded.ǷԶ) - btnId[13] = StockFontBuffer(x + 320 + ƫX, y + 171, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "", 2); + btnId[12] = StockFontBuffer(x + 320 + 方向偏移X, y + 136, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "关闭", 2); + if (PcLanded.是否自动喊话) + btnId[13] = StockFontBuffer(x + 320 + 方向偏移X, y + 171, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "开启", 2); else - btnId[13] = StockFontBuffer(x + 320 + ƫX, y + 171, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ر", 2); + btnId[13] = StockFontBuffer(x + 320 + 方向偏移X, y + 171, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "关闭", 2); } } } @@ -9712,15 +9712,15 @@ void MenuProc(void) } #endif #ifdef _AIDENGLU_ - if (Զ½){ - Զ½ڻص(); + if (自动登陆窗口){ + 自动登陆窗口回调(); } #endif #ifdef _AI_OTHER if (AI_Other_State) AI_OtherProc(); #endif -#ifdef _TELLCHANNEL //ROG ADD Ƶ +#ifdef _TELLCHANNEL //ROG ADD 密语频道 if (MultiTells == TRUE) { SelectChar(); @@ -9750,29 +9750,29 @@ void MenuProc(void) // ?????????????? #ifdef __AI - if (joy_trg[0] & JOY_ESC && checkFieldMenuFlag() == FALSE && !AI_State&&!Զ½ + if (joy_trg[0] & JOY_ESC && checkFieldMenuFlag() == FALSE && !AI_State&&!自动登陆窗口 ){ #else if( joy_trg[ 0 ] & JOY_ESC && checkFieldMenuFlag() == FALSE ){ #endif - // ????????????? + // ????????????? if (GetImeString() == NULL){ // ??????? if (MenuToggleFlag != 0 || BattleResultWndFlag >= 1){ MenuToggleFlag = 0; - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ??????????? mouse.itemNo = -1; - // ????kk???? + // ???????? itemNo = -1; - // k??????? + // ??????? jujutuNo = -1; - // ???????????? + // ???????????? if (MapWmdFlagBak != TRUE){ - // ???????? + // ???????? play_se(203, 320, 240); } } @@ -9784,24 +9784,24 @@ void MenuProc(void) play_se(202, 320, 240); // ???? for (i = 0; i < MENU_SYSTEM_0; i++) systemWndFontNo[i] = -2; - systemWndNo = 0; // ?????k???? + systemWndNo = 0; // ????????? // ???????? if (MenuToggleFlag & JOY_ESC){ - MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? + MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? MenuToggleFlag |= JOY_ESC; // ????? - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ???????? play_se(202, 320, 240); } else{ - // ???????? + // ???????? play_se(203, 320, 240); } } } - // ?????????? + // ?????????? DeathMenuAction(); DeathMenuAction2(); // ???????? @@ -9810,7 +9810,7 @@ void MenuProc(void) } // ?????????????? #ifdef __AI - if (TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[3] && !AI_State&&!Զ½ + if (TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[3] && !AI_State&&!自动登陆窗口 ){ #else @@ -9825,23 +9825,23 @@ void MenuProc(void) MenuToggleFlag ^= JOY_ESC; // ????? // ???? for (i = 0; i < MENU_SYSTEM_0; i++) systemWndFontNo[i] = -2; - systemWndNo = 0; // ?????k???? - // ?????????? + systemWndNo = 0; // ????????? + // ?????????? DeathMenuAction(); // ???????? saveUserSetting(); // ???????? if (MenuToggleFlag & JOY_ESC){ - MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? + MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? MenuToggleFlag |= JOY_ESC; // ????? - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ???????? play_se(202, 320, 240); } else{ - // ???????? + // ???????? play_se(203, 320, 240); } #ifdef _BATTLESKILL @@ -9851,7 +9851,7 @@ void MenuProc(void) // ?????????? #ifdef __AI - if (!AI_State&&!Զ½ && ((joy_trg[0] & JOY_CTRL_S && GetImeString() == NULL) + if (!AI_State&&!自动登陆窗口 && ((joy_trg[0] & JOY_CTRL_S && GetImeString() == NULL) || (TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[1])) @@ -9860,7 +9860,7 @@ void MenuProc(void) if( ( joy_trg[ 0 ] & JOY_CTRL_S && GetImeString() == NULL ) || ( TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[ 1 ] ) ){ #endif - // Pf??? + // ??? if (ProcNo == PROC_BATTLE){ // ??? play_se(220, 320, 240); @@ -9872,22 +9872,22 @@ void MenuProc(void) for (i = 0; i < MENU_STATUS_0; i++) statusWndFontNo[i] = -2; for (i = 0; i < MENU_STATUS_0; i++) statusWndBtnFlag[i] = 0; statusWndNo = 0; - // ?????????? + // ?????????? DeathMenuAction(); // ???????? saveUserSetting(); // ???????? if (MenuToggleFlag & JOY_CTRL_S){ - MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? + MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? MenuToggleFlag |= JOY_CTRL_S; // ?????????? - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ???????? play_se(202, 320, 240); } else{ - // ???????? + // ???????? play_se(203, 320, 240); } } @@ -9895,13 +9895,13 @@ void MenuProc(void) // Nuke 0413: Trade #ifdef __AI - if (!AI_State&&!Զ½ && joy_trg[0] & JOY_CTRL_T && GetImeString() == NULL) { + if (!AI_State&&!自动登陆窗口 && joy_trg[0] & JOY_CTRL_T && GetImeString() == NULL) { #else if ( joy_trg[ 0 ] & JOY_CTRL_T && GetImeString() == NULL ) { #endif joy_trg[0] &= ~JOY_CTRL_T; - // Pf??? + // ??? if (ProcNo == PROC_BATTLE){ // ??? play_se(220, 320, 240); @@ -9927,24 +9927,24 @@ void MenuProc(void) if (MenuToggleFlag & JOY_CTRL_T){ MenuToggleFlag &= 0; MenuToggleFlag |= JOY_CTRL_T; // ?????????? - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ???????? play_se(202, 320, 240); } else{ - // ???????? + // ???????? play_se(203, 320, 240); } #else int dx, dy; int flag; - // ??????????? + // ??????????? getRouteData(pc.dir, &dx, &dy); flag = checkCharObjPoint(nowGx + dx, nowGy + dy, CHAROBJ_TYPE_USER_NPC); - // ?????V????????????? + // ?????????????????? if (partyModeFlag == 0 && flag == TRUE && eventWarpSendFlag == 0 && eventEnemySendFlag == 0 && sendEnFlag == 0 && tradeFlag == 0 #ifdef _STREET_VENDOR @@ -9955,7 +9955,7 @@ void MenuProc(void) #endif ) { - if (!(MenuToggleFlag & JOY_CTRL_T))// ?? + if (!(MenuToggleFlag & JOY_CTRL_T))// ?? { if (bNewServer) lssproto_TD_send(sockfd, "D|D"); @@ -9965,11 +9965,11 @@ void MenuProc(void) } #ifdef _STREET_VENDOR if (pc.iOnStreetVendor == 1) - StockChatBufferLine("̯вýн", FONT_PAL_RED); + StockChatBufferLine("摆摊中不得进行交易", FONT_PAL_RED); #endif #ifdef _THEATER if (pc.iTheaterMode > 0) - StockChatBufferLine("רı", FONT_PAL_RED); + StockChatBufferLine("请专心表演", FONT_PAL_RED); #endif play_se(217, 320, 240); // ????? @@ -9980,7 +9980,7 @@ void MenuProc(void) // ???????? #ifdef __AI - if (!AI_State&&!Զ½ && ((joy_trg[0] & JOY_CTRL_P && GetImeString() == NULL) + if (!AI_State&&!自动登陆窗口 && ((joy_trg[0] & JOY_CTRL_P && GetImeString() == NULL) || (TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[2])) @@ -9989,7 +9989,7 @@ void MenuProc(void) if( ( joy_trg[ 0 ] & JOY_CTRL_P && GetImeString() == NULL ) || ( TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[ 2 ] ) ){ #endif - // Pf??????????????? + // ??????????????? if (ProcNo == PROC_BATTLE){ // ??? play_se(220, 320, 240); @@ -9999,24 +9999,24 @@ void MenuProc(void) MenuToggleFlag ^= JOY_CTRL_P; // CTRL + P ?? // ??? for (i = 0; i < MENU_PET_0; i++) petWndFontNo[i] = -2; - petWndNo = 0; // ?????k???? + petWndNo = 0; // ????????? - // ?????????? + // ?????????? DeathMenuAction(); // ???????? saveUserSetting(); // ???????? if (MenuToggleFlag & JOY_CTRL_P){ - MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? + MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? MenuToggleFlag |= JOY_CTRL_P; - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ???????? play_se(202, 320, 240); } else{ - // ???????? + // ???????? play_se(203, 320, 240); } } @@ -10024,7 +10024,7 @@ void MenuProc(void) } // ????????? #ifdef __AI - if (!AI_State&&!Զ½ && ((joy_trg[0] & JOY_CTRL_I && GetImeString() == NULL) + if (!AI_State&&!自动登陆窗口 && ((joy_trg[0] & JOY_CTRL_I && GetImeString() == NULL) || (TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[4])) ){ @@ -10032,45 +10032,45 @@ void MenuProc(void) if( ( joy_trg[ 0 ] & JOY_CTRL_I && GetImeString() == NULL ) || ( TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[ 4 ] ) ){ #endif - // Pf??? + // ??? if (ProcNo == PROC_BATTLE){ // ??? play_se(220, 320, 240); } else{ #ifdef _STREET_VENDOR - if (pc.iOnStreetVendor == 1 || sStreetVendorBuyBtn == 2) StockChatBufferLine("̯вʹõ", FONT_PAL_RED); + if (pc.iOnStreetVendor == 1 || sStreetVendorBuyBtn == 2) StockChatBufferLine("摆摊中不得使用道具", FONT_PAL_RED); else #endif #ifdef _THEATER if (pc.iTheaterMode & 0x00000002) - StockChatBufferLine("רı", FONT_PAL_RED); + StockChatBufferLine("请专心表演", FONT_PAL_RED); else if (pc.iTheaterMode & 0x00000001) - StockChatBufferLine("רĿ", FONT_PAL_RED); + StockChatBufferLine("请专心看表演", FONT_PAL_RED); else #endif { MenuToggleFlag ^= JOY_CTRL_I; // CTRL + I ?? - // ????????k???? + // ???????????? for (i = 0; i < MENU_ITEM_0; i++) itemWndFontNo[i] = -2; for (i = 0; i < MENU_ITEM_0; i++) itemWndBtnFlag[i] = 0; itemWndNo = 0; mouse.itemNo = -1; itemWndDropGold = 0; - // ?????????? + // ?????????? if (BattleResultWndFlag >= 1) DeathMenuAction(); - // ?????????? + // ?????????? DeathMenuAction2(); // ???????? saveUserSetting(); // ???????? if (MenuToggleFlag & JOY_CTRL_I){ - MenuToggleFlag &= ~JOY_CTRL_M; // ??????????? + MenuToggleFlag &= ~JOY_CTRL_M; // ??????????? MenuToggleFlag &= ~JOY_CTRL_T; MenuToggleFlag &= ~JOY_B; MenuToggleFlag |= JOY_CTRL_I; - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ????????? MapWmdFlagBak = FALSE; @@ -10079,7 +10079,7 @@ void MenuProc(void) } else{ - // ???????? + // ???????? play_se(203, 320, 240); } } @@ -10088,7 +10088,7 @@ void MenuProc(void) // ???????? #ifdef __AI - if (!AI_State&&!Զ½ && ((joy_trg[0] & JOY_CTRL_M && GetImeString() == NULL) + if (!AI_State&&!自动登陆窗口 && ((joy_trg[0] & JOY_CTRL_M && GetImeString() == NULL) || (TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[0]) || (MapWmdFlagBak == TRUE && BattleResultWndFlag == FALSE && EncountFlag == FALSE && ProcNo == PROC_GAME && SubProcNo == 3 @@ -10100,7 +10100,7 @@ void MenuProc(void) || ( MapWmdFlagBak == TRUE && BattleResultWndFlag == FALSE && EncountFlag == FALSE && ProcNo == PROC_GAME && SubProcNo == 3 ) ){ #endif - // Pf??? + // ??? if (ProcNo == PROC_BATTLE){ // ??? play_se(220, 320, 240); @@ -10110,19 +10110,19 @@ void MenuProc(void) MenuToggleFlag ^= JOY_CTRL_M; // CTRL + M ?? // ??? for (i = 0; i < MENU_PET_0; i++) petWndFontNo[i] = -2; - mapWndNo = 0; // ?????k???? + mapWndNo = 0; // ????????? - // ?????????? + // ?????????? if (BattleResultWndFlag >= 1) DeathMenuAction(); DeathMenuAction2(); // ???????? // ???????? if (MenuToggleFlag & JOY_CTRL_M){ - MenuToggleFlag &= ~JOY_CTRL_I; // ???????????? + MenuToggleFlag &= ~JOY_CTRL_I; // ???????????? MenuToggleFlag &= ~JOY_CTRL_T; MenuToggleFlag &= ~JOY_B; MenuToggleFlag |= JOY_CTRL_M; - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ????????? MapWmdFlagBak = FALSE; @@ -10130,7 +10130,7 @@ void MenuProc(void) play_se(202, 320, 240); } else{ - // ???????? + // ???????? play_se(203, 320, 240); } } @@ -10138,7 +10138,7 @@ void MenuProc(void) // ???????? #ifdef __AI - if (!AI_State&&!Զ½ && ((joy_trg[0] & JOY_CTRL_E && GetImeString() == NULL) + if (!AI_State&&!自动登陆窗口 && ((joy_trg[0] & JOY_CTRL_E && GetImeString() == NULL) || (TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[5])) ){ @@ -10155,26 +10155,26 @@ void MenuProc(void) MenuToggleFlag ^= JOY_CTRL_E; // CTRL + E ?? // ??? for (i = 0; i < MENU_MAIL_0; i++) mailWndFontNo[i] = -2; - mailWndNo = MAIL_WND_VIEW; // ?????k???? - mailViewWndPageNo = 0; // ???????????k???? - mailItemNo = -1; // ??????????k???? - InitMailSendFlag(); // ???????? - // ?????????? + mailWndNo = MAIL_WND_VIEW; // ????????? + mailViewWndPageNo = 0; // ??????????????? + mailItemNo = -1; // ?????????????? + InitMailSendFlag(); // ???????? + // ?????????? DeathMenuAction(); // ???????? saveUserSetting(); // ???????? if (MenuToggleFlag & JOY_CTRL_E){ - MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? + MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? MenuToggleFlag |= JOY_CTRL_E; - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ???????? play_se(202, 320, 240); } else{ - // ???????? + // ???????? play_se(203, 320, 240); } #ifdef _BATTLESKILL @@ -10185,7 +10185,7 @@ void MenuProc(void) // ????????? #ifdef __AI - if (!AI_State&&!Զ½ && ((joy_trg[0] & JOY_CTRL_A && GetImeString() == NULL) + if (!AI_State&&!自动登陆窗口 && ((joy_trg[0] & JOY_CTRL_A && GetImeString() == NULL) || (TaskBarFlag == TRUE && mouse.onceState & MOUSE_LEFT_CRICK && HitDispNo == taskBarFontNo[6])) @@ -10203,24 +10203,24 @@ void MenuProc(void) MenuToggleFlag ^= JOY_CTRL_A; // CTRL + A ?? // ??? for (i = 0; i < MENU_ALBUM_0; i++) albumWndFontNo[i] = -2; - mapWndNo = 0; // ?????k???? + mapWndNo = 0; // ????????? - // ?????????? + // ?????????? DeathMenuAction(); // ???????? saveUserSetting(); // ???????? if (MenuToggleFlag & JOY_CTRL_A){ - MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? + MenuToggleFlag &= JOY_CTRL_I | JOY_CTRL_M; // ?????????????????? MenuToggleFlag |= JOY_CTRL_A; - // Pf??????????? + // ??????????? BattleResultWndFlag = FALSE; // ???????? play_se(202, 320, 240); } else{ - // ???????? + // ???????? play_se(203, 320, 240); } //} @@ -10230,16 +10230,16 @@ void MenuProc(void) } #ifdef _SA_LIAOTIAN_ - static int ״̬1=0; - static int ״̬2=0; - static int ״̬3=0; - char ʾ[128]; - StockDispBuffer(785, 505, DISP_PRIO_IME3, 55260+״̬1, 1); + static int 聊天状态1=0; + static int 聊天状态2=0; + static int 聊天状态3=0; + char 聊天提示[128]; + StockDispBuffer(785, 505, DISP_PRIO_IME3, 55260+聊天状态1, 1); if( MakeHitBox(785-10, 505-10,785+10,505+10, DISP_PRIO_IME4 ) == TRUE ){ - sprintf(ʾ,"Ϣ,ǰϢλ%d",NowChatLine); - ShowBottomLineString(FONT_PAL_WHITE, ʾ); + sprintf(聊天提示,"聊天信息上拉,当前聊天信息位置%d!",NowChatLine); + ShowBottomLineString(FONT_PAL_WHITE, 聊天提示); if(mouse.state & MOUSE_LEFT_CRICK){ - ״̬1 = 1; + 聊天状态1 = 1; if(mouse.onceState & MOUSE_LEFT_CRICK){ if(NowChatLine > NowMaxChatLine){ NowChatLine--; @@ -10249,14 +10249,14 @@ void MenuProc(void) } play_se(203, 320, 240); } - }else ״̬1=0; - }else ״̬1=0; - StockDispBuffer(785, 530, DISP_PRIO_IME3, 55262+״̬2, 1); + }else 聊天状态1=0; + }else 聊天状态1=0; + StockDispBuffer(785, 530, DISP_PRIO_IME3, 55262+聊天状态2, 1); if( MakeHitBox(785-10, 530-10,785+10,530+10, DISP_PRIO_IME4 ) == TRUE ){ - sprintf(ʾ,"Ϣ,ǰϢλ%d",NowChatLine); - ShowBottomLineString(FONT_PAL_WHITE, ʾ); + sprintf(聊天提示,"聊天信息下拉,当前聊天信息位置%d!",NowChatLine); + ShowBottomLineString(FONT_PAL_WHITE, 聊天提示); if( (mouse.state & MOUSE_LEFT_CRICK)){ - ״̬2 = 1; + 聊天状态2 = 1; if(mouse.onceState & MOUSE_LEFT_CRICK){ if(*ChatBuffer[ NowChatLine].buffer){ NowChatLine++; @@ -10265,21 +10265,21 @@ void MenuProc(void) } play_se(203, 320, 240); } - }else ״̬2=0; - }else ״̬2=0; - StockDispBuffer(785, 555, DISP_PRIO_IME3, 55264+״̬3, 1); + }else 聊天状态2=0; + }else 聊天状态2=0; + StockDispBuffer(785, 555, DISP_PRIO_IME3, 55264+聊天状态3, 1); if( MakeHitBox(785-10, 555-10,785+10,555+10, DISP_PRIO_IME4 ) == TRUE ){ - sprintf(ʾ,"Ϣʾ,ǰϢλ%d",NowChatLine); - ShowBottomLineString(FONT_PAL_WHITE, ʾ); + sprintf(聊天提示,"聊天信息正常显示,当前聊天信息位置%d!",NowChatLine); + ShowBottomLineString(FONT_PAL_WHITE, 聊天提示); if( (mouse.state & MOUSE_LEFT_CRICK)){ - ״̬3 = 1; + 聊天状态3 = 1; if(mouse.onceState & MOUSE_LEFT_CRICK){ extern int NowChatLine_Bak; NowChatLine=NowChatLine_Bak; play_se(203, 320, 240); } - }else ״̬3=0; - }else ״̬3=0; + }else 聊天状态3=0; + }else 聊天状态3=0; #endif #ifdef _EFFECT_MAP_ if(ProcNo==PROC_GAME){ @@ -10327,7 +10327,7 @@ void MenuProc(void) ){ int w = 7; int h = 8; - // ?????k??? + // ???????? switch (systemWndNo){ case 0: // ???? ?????? @@ -10352,7 +10352,7 @@ void MenuProc(void) if (mouse.onceState & MOUSE_LEFT_CRICK){ // ??????? if (HitFontNo == systemWndFontNo[0]){ - // ?????? + // ?????? #ifdef __PHONEMESSAGE CleanSMS(); #endif @@ -10363,9 +10363,9 @@ void MenuProc(void) play_se(202, 320, 240); break; } - // ????@e?? + // ?????? if (HitFontNo == systemWndFontNo[1]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; systemWndNo = 2; @@ -10373,9 +10373,9 @@ void MenuProc(void) play_se(202, 320, 240); break; } - // ???@e?? + // ????? if (HitFontNo == systemWndFontNo[4]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; systemWndNo = 4; @@ -10383,9 +10383,9 @@ void MenuProc(void) play_se(202, 320, 240); break; } - // ???@e?? + // ????? if (HitFontNo == systemWndFontNo[3]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; systemWndNo = 3; @@ -10393,9 +10393,9 @@ void MenuProc(void) play_se(202, 320, 240); break; } - // ????@e?? + // ?????? if (HitFontNo == systemWndFontNo[5]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; systemWndNo = 6; @@ -10403,9 +10403,9 @@ void MenuProc(void) play_se(202, 320, 240); break; } - //ԭصdz + //原地登出 if (HitFontNo == systemWndFontNo[6]){ - // ?????? + // ?????? #ifdef __PHONEMESSAGE CleanSMS(); #endif @@ -10417,21 +10417,21 @@ void MenuProc(void) break; } - // ??? + // ??? if (HitFontNo == systemWndFontNo[2]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ??????????? + // ??????????? MenuToggleFlag ^= JOY_ESC; - // ???????? + // ???????? play_se(203, 320, 240); break; } #ifdef __AI - //Զս趨 + //自动战斗设定 if (HitFontNo == systemWndFontNo[7]){ - // ?????? + // ?????? extern int AI_State; AI_State = 1; extern short actBtn; @@ -10448,13 +10448,13 @@ void MenuProc(void) if (HitFontNo == systemWndFontNo[24]){ if (AI == AI_SELECT){ AI = AI_NONE; - StockChatBufferLine("رգģʽ", FONT_PAL_RED); + StockChatBufferLine("关闭AI模式!", FONT_PAL_RED); pc.etcFlag &= (~PC_AI_MOD); lssproto_FS_send(sockfd, pc.etcFlag); } else { AI = AI_SELECT; - StockChatBufferLine("ģʽ", FONT_PAL_RED); + StockChatBufferLine("开启AI模式!", FONT_PAL_RED); pc.etcFlag |= PC_AI_MOD; lssproto_FS_send(sockfd, pc.etcFlag); } @@ -10465,7 +10465,7 @@ void MenuProc(void) static BOOL stopBGMClicked = FALSE; if (HitFontNo == systemWndFontNo[8]){ if (MuteFlag){ - StockChatBufferLine("", FONT_PAL_RED); + StockChatBufferLine("开启声音!", FONT_PAL_RED); MuteFlag = FALSE; if (stopBGMClicked) { @@ -10474,7 +10474,7 @@ void MenuProc(void) } else{ stopBGMClicked = TRUE; - StockChatBufferLine("ر", FONT_PAL_RED); + StockChatBufferLine("关闭声音!", FONT_PAL_RED); play_se(202, 320, 240); stop_bgm(); MuteFlag = TRUE; @@ -10492,7 +10492,7 @@ void MenuProc(void) MenuToggleFlag = 0; DeathMenuAction2(); DeathMenuAction(); - Զ½ = TRUE; + 自动登陆窗口 = TRUE; extern short actBtn; actBtn = 1; break; @@ -10503,17 +10503,17 @@ void MenuProc(void) pActMenuWnd = NULL; MenuToggleFlag ^= JOY_ESC; #ifdef _CANCEL_FANTI - StockChatBufferLine("ܿУ", FONT_PAL_RED); + StockChatBufferLine("功能开发中!", FONT_PAL_RED); play_se(202, 320, 240); #else - if (忪) + if (繁体开关) { - 忪 = FALSE; - StockChatBufferLine("л壡", FONT_PAL_RED); + 繁体开关 = FALSE; + StockChatBufferLine("切换简体!", FONT_PAL_RED); } else{ - 忪 = TRUE; - StockChatBufferLine("л壡", FONT_PAL_RED); + 繁体开关 = TRUE; + StockChatBufferLine("切换繁体!", FONT_PAL_RED); } play_se(202, 320, 240); break; @@ -10524,11 +10524,11 @@ void MenuProc(void) DeathAction(pActMenuWnd); pActMenuWnd = NULL; MenuToggleFlag ^= JOY_ESC; - Ҽ = !Ҽ; - if (Ҽ) - StockChatBufferLine("Ҽ", FONT_PAL_RED); + 右键攻击 = !右键攻击; + if (右键攻击) + StockChatBufferLine("开启右键攻击!", FONT_PAL_RED); else - StockChatBufferLine("رҼ", FONT_PAL_RED); + StockChatBufferLine("关闭右键攻击!", FONT_PAL_RED); play_se(202, 320, 240); break; @@ -10536,23 +10536,23 @@ void MenuProc(void) if (HitFontNo == systemWndFontNo[23]){ play_se(202, 320, 240); - 鿪 = !鿪; - if (鿪) - StockChatBufferLine("ʾ", FONT_PAL_RED); + 经验开关 = !经验开关; + if (经验开关) + StockChatBufferLine("开启经验显示!", FONT_PAL_RED); else - StockChatBufferLine("رվʾ", FONT_PAL_RED); + StockChatBufferLine("关闭经验显示!", FONT_PAL_RED); break; } if (HitFontNo == systemWndFontNo[22]){ play_se(202, 320, 240); - ο = !ο; - if (ο) - StockChatBufferLine("ܱ", FONT_PAL_RED); + 人物屏蔽开关 = !人物屏蔽开关; + if (人物屏蔽开关) + StockChatBufferLine("屏蔽周边人物!", FONT_PAL_RED); else{ - //extern void þֹĶΪվ( void ); - //þֹĶΪվ(); - StockChatBufferLine("ʾܱ", FONT_PAL_RED); + //extern void 设置静止的动作为站立( void ); + //设置静止的动作为站立(); + StockChatBufferLine("显示周边人物!", FONT_PAL_RED); } @@ -10566,7 +10566,7 @@ void MenuProc(void) InitMenu2(); extern short HelpProcNo; HelpProcNo = 0; - ѯ=TRUE; + 任务查询开关=TRUE; break; } @@ -10607,76 +10607,76 @@ void MenuProc(void) #endif break; } - // ?@e + // ? x = pActMenuWnd->x + 28; - // ????????? + // ????????? y = pActMenuWnd->y + 54; #ifdef _CHAR_NEWLOGOUT - systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ؼ¼ ", 2); y += 34;//y += 40; + systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 回记录点 ", 2); y += 34;//y += 40; #else - systemWndFontNo[ 0 ] = StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, " ", 2 ); y += 34;//y += 40; + systemWndFontNo[ 0 ] = StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, " 登 出 ", 2 ); y += 34;//y += 40; #endif - systemWndFontNo[6] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ԭصdz ", 2); y += 34;//y += 40; - systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 趨 ", 2); y += 34;//y += 40; - systemWndFontNo[4] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 34;//y += 40; - systemWndFontNo[3] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " Ч趨 ", 2); y += 34;//y += 40; - systemWndFontNo[5] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 趨 ", 2); y += 34;//y += 52; - systemWndFontNo[7] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ս趨 ", 2); y += 34;//y += 40; + systemWndFontNo[6] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 原地登出 ", 2); y += 34;//y += 40; + systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 聊天设定 ", 2); y += 34;//y += 40; + systemWndFontNo[4] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 背景音乐 ", 2); y += 34;//y += 40; + systemWndFontNo[3] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 音效设定 ", 2); y += 34;//y += 40; + systemWndFontNo[5] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 滑鼠设定 ", 2); y += 34;//y += 52; + systemWndFontNo[7] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 战斗设定 ", 2); y += 34;//y += 40; if (MuteFlag){ - systemWndFontNo[8] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 34;//y += 40; + systemWndFontNo[8] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 开启声音 ", 2); y += 34;//y += 40; } else{ - systemWndFontNo[8] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ر ", 2); y += 34;//y += 40; + systemWndFontNo[8] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 关闭声音 ", 2); y += 34;//y += 40; } #ifdef _NEW_SYSTEM_MENU y = pActMenuWnd->y + 54; - systemWndFontNo[17] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " ٷҳ ", 2); y += 34;//y += 40; - systemWndFontNo[18] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " ҵ ", 2); y += 34;//y += 40; + systemWndFontNo[17] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " 官方主页 ", 2); y += 34;//y += 40; + systemWndFontNo[18] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " 我的邮箱 ", 2); y += 34;//y += 40; - systemWndFontNo[11] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " ԭ ", 2); y += 34;//y += 40; - systemWndFontNo[12] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " ȡԭ ", 2); y += 34;//y += 40; - systemWndFontNo[13] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " ֧Ʊ ", 2); y += 34;//y += 40; - systemWndFontNo[14] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " ѯ ", 2); y += 34;//y += 40; - systemWndFontNo[15] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " Ҽ ", 2); y += 34;//y += 40; - systemWndFontNo[16] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " Ϣ ", 2); y += 34;//y += 40; + systemWndFontNo[11] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " 原地遇敌 ", 2); y += 34;//y += 40; + systemWndFontNo[12] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " 取消原地 ", 2); y += 34;//y += 40; + systemWndFontNo[13] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " 支票制作 ", 2); y += 34;//y += 40; + systemWndFontNo[14] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " 任务查询 ", 2); y += 34;//y += 40; + systemWndFontNo[15] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " 右键攻击 ", 2); y += 34;//y += 40; + systemWndFontNo[16] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " 个人信息 ", 2); y += 34;//y += 40; y = pActMenuWnd->y + 54; - systemWndFontNo[19] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " ֵ߳ ", 2); y += 34;//y += 40; - systemWndFontNo[20] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " ʹ ", 2); y += 34;//y += 40; - systemWndFontNo[21] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " ݴ ", 2); y += 34;//y += 40; - systemWndFontNo[9] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " ", 2); y += 34;//y += 40; - if (忪){ - systemWndFontNo[10] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " л ", 2); y += 34;//y += 40; + systemWndFontNo[19] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 在线充值 ", 2); y += 34;//y += 40; + systemWndFontNo[20] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 卡密使用 ", 2); y += 34;//y += 40; + systemWndFontNo[21] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 快捷传送 ", 2); y += 34;//y += 40; + systemWndFontNo[9] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 掉线重连 ", 2); y += 34;//y += 40; + if (繁体开关){ + systemWndFontNo[10] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 切换简体 ", 2); y += 34;//y += 40; } else{ - systemWndFontNo[10] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " л ", 2); y += 34;//y += 40; + systemWndFontNo[10] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 切换繁体 ", 2); y += 34;//y += 40; } - if (ο){ - systemWndFontNo[22] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " ʾ ", 2); y += 34;//y += 40; + if (人物屏蔽开关){ + systemWndFontNo[22] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 人物显示 ", 2); y += 34;//y += 40; } else{ - systemWndFontNo[22] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " ", 2); y += 34;//y += 40; + systemWndFontNo[22] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 人物屏蔽 ", 2); y += 34;//y += 40; } - if (鿪){ - systemWndFontNo[23] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " ر ", 2); y += 34;//y += 40; + if (经验开关){ + systemWndFontNo[23] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 经验关闭 ", 2); y += 34;//y += 40; } else{ - systemWndFontNo[23] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " ʾ ", 2); y += 34;//y += 40; + systemWndFontNo[23] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 经验显示 ", 2); y += 34;//y += 40; } if (AI == AI_SELECT){ - systemWndFontNo[24] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " رս ", 2); y += 34;//y += 40; + systemWndFontNo[24] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 关闭战斗 ", 2); y += 34;//y += 40; } else{ - systemWndFontNo[24] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " Զս ", 2); y += 34;//y += 40; + systemWndFontNo[24] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 自动战斗 ", 2); y += 34;//y += 40; } - systemWndFontNo[25] = StockFontBuffer(x + 0 , y, FONT_PRIO_FRONT, 0, " ս ", 2); //y += 40; - systemWndFontNo[26] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " ", 2); //y += 40; - systemWndFontNo[27] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " ɾ ", 2); y += 34;//y += 40; + systemWndFontNo[25] = StockFontBuffer(x + 0 , y, FONT_PRIO_FRONT, 0, " 战力详情 ", 2); //y += 40; + systemWndFontNo[26] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, 0, " 捕鱼达人 ", 2); //y += 40; + systemWndFontNo[27] = StockFontBuffer(x + 280, y, FONT_PRIO_FRONT, 0, " 成就排行 ", 2); y += 34;//y += 40; - systemWndFontNo[2] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " ", 2); + systemWndFontNo[2] = StockFontBuffer(x + 140, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " 关 闭 ", 2); #else - systemWndFontNo[ 2 ] = StockFontBuffer( x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " ", 2 ); + systemWndFontNo[ 2 ] = StockFontBuffer( x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " 关 闭 ", 2 ); #endif break; @@ -10696,7 +10696,7 @@ void MenuProc(void) if (mouse.onceState & MOUSE_LEFT_CRICK){ // ???? if (HitFontNo == systemWndFontNo[0]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; #ifdef _CHAR_NEWLOGOUT @@ -10711,34 +10711,34 @@ void MenuProc(void) } // ????? if (HitFontNo == systemWndFontNo[1]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ?????? + // ?????? systemWndNo = 0; play_se(203, 320, 240); break; } } - // ?@e + // ? x = pActMenuWnd->x + 38; y = pActMenuWnd->y + 56; #ifdef _NEWFONT_ - systemWndFontNo[0] = StockFontBuffer(x+20, y, FONT_PRIO_FRONT, 0, " ȷ ", 2); y += 40; - systemWndFontNo[1] = StockFontBuffer(x+20, y, FONT_PRIO_FRONT, 0, " Ҫ ", 2); y += 40; + systemWndFontNo[0] = StockFontBuffer(x+20, y, FONT_PRIO_FRONT, 0, " 确 定 ", 2); y += 40; + systemWndFontNo[1] = StockFontBuffer(x+20, y, FONT_PRIO_FRONT, 0, " 不 要 ", 2); y += 40; #else - systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ȷ ", 2); y += 40; - systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " Ҫ ", 2); y += 40; + systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 确 定 ", 2); y += 40; + systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 不 要 ", 2); y += 40; #endif break; - case 2: // ?????@e ?????? + case 2: // ????? ?????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? #ifndef _TALK_WINDOW x = (lpDraw->xSize - 4 * 64) / 2; y = (lpDraw->ySize - 8 * 48) / 2; @@ -10757,7 +10757,7 @@ void MenuProc(void) // ????????????? if (mouse.autoState & MOUSE_LEFT_CRICK){ - // ??????? ???? + // ??????? ???? if (HitFontNo == systemWndFontNo[0]){ NowMaxChatLine++; if (NowMaxChatLine > DEF_CHAT_LINE){ @@ -10769,9 +10769,9 @@ void MenuProc(void) play_se(217, 320, 240); } } - // ??????? ???? + // ??????? ???? if (HitFontNo == systemWndFontNo[1]){ - // ??? + // ??? NowMaxChatLine--; // ???????? if (NowMaxChatLine <= -1){ @@ -10784,9 +10784,9 @@ void MenuProc(void) play_se(217, 320, 240); } } - // ??????@e?? + // ???????? if (HitFontNo == systemWndFontNo[2]){ - // ? + // ? MyChatBuffer.color++; // ???????? if (MyChatBuffer.color >= FONT_PAL_NUM) MyChatBuffer.color = 0; @@ -10794,9 +10794,9 @@ void MenuProc(void) play_se(217, 320, 240); } - // ?K? + // ?? if (HitFontNo == systemWndFontNo[4]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; systemWndNo = 5; @@ -10804,9 +10804,9 @@ void MenuProc(void) play_se(202, 320, 240); break; } - // ??????? ???? + // ??????? ???? if (HitFontNo == systemWndFontNo[5]){ - // ??? + // ??? NowMaxVoice++; // ???????? if (NowMaxVoice > MAX_VOICE){ @@ -10819,9 +10819,9 @@ void MenuProc(void) play_se(217, 320, 240); } } - // ??????? ???? + // ??????? ???? if (HitFontNo == systemWndFontNo[6]){ - // ??? + // ??? NowMaxVoice--; // ???????? if (NowMaxVoice <= 0){ @@ -10838,7 +10838,7 @@ void MenuProc(void) if(HitFontNo == systemWndFontNo[7]){ g_bTalkWindow = !g_bTalkWindow; if(!WindowMode && g_bTalkWindow){ - StockChatBufferLine("ȫӫĻģʽ޷ʹñ",FONT_PAL_RED); + StockChatBufferLine("全荧幕模式下无法使用本功能",FONT_PAL_RED); g_bTalkWindow = FALSE; } play_se(217,320,240); @@ -10851,47 +10851,47 @@ void MenuProc(void) if (mouse.onceState & MOUSE_LEFT_CRICK){ // ??? if (HitFontNo == systemWndFontNo[3]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ????@e?????? + // ?????????? systemWndNo = 0; - // ???????? + // ???????? play_se(203, 320, 240); // ???????? saveUserSetting(); break; } } - // ?@e + // ? x = pActMenuWnd->x + 56; y = pActMenuWnd->y + 56; - sprintf_s(moji, "Ŀǰʾ%3d С", NowMaxChatLine); + sprintf_s(moji, "◆目前显示的行数%3d 行◆", NowMaxChatLine); StockFontBuffer(x - 16, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); y += 32; - systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 32; - systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 32; - systemWndFontNo[2] = StockFontBuffer(x, y, FONT_PRIO_FRONT, MyChatBuffer.color, " ıɫ ", 2); y += 32; - systemWndFontNo[4] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ¼ ", 2); y += 44; + systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 增 加 ", 2); y += 32; + systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 减 少 ", 2); y += 32; + systemWndFontNo[2] = StockFontBuffer(x, y, FONT_PRIO_FRONT, MyChatBuffer.color, " 改变文字颜色 ", 2); y += 32; + systemWndFontNo[4] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 记录文字 ", 2); y += 44; - sprintf_s(moji, "Ŀǰ%3d ", NowMaxVoice); + sprintf_s(moji, "◆目前的音量%3d ◆", NowMaxVoice); StockFontBuffer(x - 16, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); y += 32; - systemWndFontNo[5] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 32; - systemWndFontNo[6] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 44; + systemWndFontNo[5] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 增 加 ", 2); y += 32; + systemWndFontNo[6] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 减 少 ", 2); y += 44; #ifdef _TALK_WINDOW - StockFontBuffer(x - 16,y,FONT_PRIO_FRONT,FONT_PAL_YELLOW,"Ӵ趨",0);y += 32; - systemWndFontNo[7] = StockFontBuffer(x + 20,y,FONT_PRIO_FRONT,0,g_bTalkWindow ? "رӴ":"Ӵ",2);y += 32; + StockFontBuffer(x - 16,y,FONT_PRIO_FRONT,FONT_PAL_YELLOW,"◆聊天视窗设定◆",0);y += 32; + systemWndFontNo[7] = StockFontBuffer(x + 20,y,FONT_PRIO_FRONT,0,g_bTalkWindow ? "关闭聊天视窗":"打开聊天视窗",2);y += 32; #endif - systemWndFontNo[3] = StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " һҳ ", 2); y += 40; + systemWndFontNo[3] = StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " 回上一页 ", 2); y += 40; break; - case 3: // ????@e ?????? + case 3: // ???? ?????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? x = (lpDraw->xSize - 4 * 64) / 2; y = (lpDraw->ySize - 6 * 48) / 2; pActMenuWnd = MakeWindowDisp(x, y, 4, 6, CG_WND_TITLE_SE, 1, FALSE); @@ -10904,9 +10904,9 @@ void MenuProc(void) // ????????????? if (mouse.autoState & MOUSE_LEFT_CRICK){ - // ??????? + // ??????? if (HitFontNo == systemWndFontNo[0]){ - // ??? + // ??? t_music_se_volume++; // ???????? if (t_music_se_volume > 15){ @@ -10919,7 +10919,7 @@ void MenuProc(void) play_se(217, 320, 240); } } - // ??????? + // ??????? if (HitFontNo == systemWndFontNo[1]){ t_music_se_volume--; if (t_music_se_volume <= 0){ @@ -10930,9 +10930,9 @@ void MenuProc(void) play_se(217, 320, 240); } } - // ???????????v??? + // ?????????????? if (HitFontNo == systemWndFontNo[2]){ - // ????????? + // ????????? stereo_flg = !stereo_flg; // ????? play_se(217, 320, 240); @@ -10942,34 +10942,34 @@ void MenuProc(void) if (mouse.onceState & MOUSE_LEFT_CRICK){ // ??? if (HitFontNo == systemWndFontNo[3]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ????@e?????? + // ?????????? systemWndNo = 0; - // ???????? + // ???????? play_se(203, 320, 240); // ???????? saveUserSetting(); break; } } - // ?@e + // ? x = pActMenuWnd->x + 56; y = pActMenuWnd->y + 64; - sprintf_s(moji, " Ŀǰ%3d ", t_music_se_volume); + sprintf_s(moji, "◆ 目前的音量%3d ◆", t_music_se_volume); StockFontBuffer(x - 8, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); y += 40; - systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 40; - systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 40; + systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 增 加 ", 2); y += 40; + systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 减 少 ", 2); y += 40; systemWndFontNo[2] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, monoStereoStr[stereo_flg], 2); y += 52; - systemWndFontNo[3] = StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " һҳ ", 2); y += 40; + systemWndFontNo[3] = StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " 回上一页 ", 2); y += 40; break; - case 4: // ????@e ?????? + case 4: // ???? ?????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? x = (lpDraw->xSize - 4 * 64) / 2; y = (lpDraw->ySize - 8 * 48) / 2; pActMenuWnd = MakeWindowDisp(x, y, 4, 8, CG_WND_TITLE_BGM, 1, FALSE); @@ -10982,9 +10982,9 @@ void MenuProc(void) // ????????????? if (mouse.autoState & MOUSE_LEFT_CRICK){ - // ??????? + // ??????? if (HitFontNo == systemWndFontNo[0]){ - // ??? + // ??? t_music_bgm_volume++; // ???????? if (t_music_bgm_volume > 15){ @@ -10994,12 +10994,12 @@ void MenuProc(void) } else{ play_se(217, 320, 240); // ????? - bgm_volume_change(); // ??? + bgm_volume_change(); // ??? } } - // ??????? + // ??????? if (HitFontNo == systemWndFontNo[1]){ - // ??? + // ??? t_music_bgm_volume--; // ???????? if (t_music_bgm_volume <= 0){ @@ -11009,10 +11009,10 @@ void MenuProc(void) } else{ play_se(217, 320, 240); // ????? - bgm_volume_change(); // ??? + bgm_volume_change(); // ??? } } - // ????L???? + // ???????? if (HitFontNo == systemWndFontNo[3]){ // ?????? t_music_bgm_pitch[t_music_bgm_no]++; @@ -11025,10 +11025,10 @@ void MenuProc(void) } else{ play_se(217, 320, 240); // ????? - set_gbm_pitch(); // ???? + set_gbm_pitch(); // ???? } } - // ????w??? + // ??????? if (HitFontNo == systemWndFontNo[4]){ // ?????? t_music_bgm_pitch[t_music_bgm_no]--; @@ -11040,7 +11040,7 @@ void MenuProc(void) } else{ play_se(217, 320, 240); // ????? - set_gbm_pitch(); // ???? + set_gbm_pitch(); // ???? } } } @@ -11048,47 +11048,47 @@ void MenuProc(void) if (mouse.onceState & MOUSE_LEFT_CRICK){ // ??? if (HitFontNo == systemWndFontNo[2]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ????@e?????? + // ?????????? systemWndNo = 0; - // ???????? + // ???????? play_se(203, 320, 240); // ???????? saveUserSetting(); break; } } - // ?@e + // ? x = pActMenuWnd->x + 56; y = pActMenuWnd->y + 64; - sprintf_s(moji, " Ŀǰ %3d ", t_music_bgm_volume); + sprintf_s(moji, "◆ 目前的音量 %3d ◆", t_music_bgm_volume); StockFontBuffer(x - 8, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); y += 40; - systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 40; - systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 48; + systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 增 加 ", 2); y += 40; + systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 减 少 ", 2); y += 48; if (t_music_bgm_pitch[t_music_bgm_no] == 0){ - sprintf_s(moji, " ĿǰĽ 0 "); + sprintf_s(moji, "◆ 目前的节奏 0 ◆"); } else - sprintf_s(moji, " ĿǰĽ %+3d ", t_music_bgm_pitch[t_music_bgm_no]); + sprintf_s(moji, "◆ 目前的节奏 %+3d ◆", t_music_bgm_pitch[t_music_bgm_no]); StockFontBuffer(x - 8, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); y += 40; - systemWndFontNo[3] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 40; - systemWndFontNo[4] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ", 2); y += 52; - systemWndFontNo[2] = StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " һҳ ", 2); y += 40; + systemWndFontNo[3] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 加 快 ", 2); y += 40; + systemWndFontNo[4] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 减 慢 ", 2); y += 52; + systemWndFontNo[2] = StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " 回上一页 ", 2); y += 40; break; - case 5: // ?K??? + case 5: // ???? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? x = (lpDraw->xSize - 272) / 2; y = (lpDraw->ySize - 430) / 2; pActMenuWnd = MakeWindowDisp(x, y, 272, 430, CG_WND_TITLE_CHAT, -1, FALSE); for (i = 0; i < MENU_SYSTEM_0; i++) systemWndFontNo[i] = -2; - // V??????? + // ??????? GetKeyInputFocus(&chatRegistryStr[0]); break; @@ -11097,44 +11097,44 @@ void MenuProc(void) if (pActMenuWnd->hp <= 0) break; } - // ?K?????? + // ??????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_CHAT_REGISTY_WND, 1); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ // ??? if (HitDispNo == systemWndFontNo[3]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); - // ????@e?????? + // ?????????? systemWndNo = 0; - // ???????? + // ???????? play_se(203, 320, 240); // ???????? saveUserSetting(); - // ?????K???V + // ???????? SaveChatRegistyStr(); break; } } - // ?@e + // ? x = pActMenuWnd->x + 18; y = pActMenuWnd->y + 58; - // K????? + // ????? for (i = 0; i < 8; i++){ - // ???? + // ???? chatRegistryStr[i].x = x + 2; chatRegistryStr[i].y = y; StockFontBuffer2(&chatRegistryStr[i]); y += 43; - // ??V????? + // ??????? if (MakeHitBox(chatRegistryStr[i].x - 4, chatRegistryStr[i].y - 3, chatRegistryStr[i].x + 234 + 3, chatRegistryStr[i].y + 16 + 3, DISP_PRIO_IME3) == TRUE){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // V??????? + // ??????? GetKeyInputFocus(&chatRegistryStr[i]); play_se(217, 320, 240); // ????? } @@ -11145,11 +11145,11 @@ void MenuProc(void) break; - case 6: // ???@e?? + case 6: // ????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? x = (lpDraw->xSize - 3 * 64) / 2; y = (lpDraw->ySize - 4 * 48) / 2; pActMenuWnd = MakeWindowDisp(x, y, 3, 4, CG_WND_TITLE_MOUSE, 1, FALSE); @@ -11160,12 +11160,12 @@ void MenuProc(void) if (pActMenuWnd->hp <= 0) break; } - // ?????????? + // ?????????? if (HitFontNo == systemWndFontNo[0]){ - // ??? + // ??? if (MouseCursorFlag == TRUE){ // ?????? - strcpy(OneLineInfoStr, "ɫĻα꣬ӦϿ졣"); + strcpy(OneLineInfoStr, "两色的滑鼠游标,反应较快。"); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ @@ -11181,7 +11181,7 @@ void MenuProc(void) } else{ // ?????? - strcpy(OneLineInfoStr, "ͨĻαꡣ"); + strcpy(OneLineInfoStr, "普通的滑鼠游标。"); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ // ?????????? @@ -11199,12 +11199,12 @@ void MenuProc(void) if (mouse.onceState & MOUSE_LEFT_CRICK){ // ??? if (HitFontNo == systemWndFontNo[1]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ???@e??????? + // ?????????? systemWndNo = 0; - // ???????? + // ???????? play_se(203, 320, 240); // ???????? saveUserSetting(); @@ -11212,21 +11212,21 @@ void MenuProc(void) } } - // ?@e + // ? x = pActMenuWnd->x + 38; y = pActMenuWnd->y + 56; - // ????????? - StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, " α趨 ", 0); y += 40; + // ????????? + StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "◆ 游标设定 ◆", 0); y += 40; systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, mouseCursor[MouseCursorFlag], 2); y += 40; - systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " һҳ ", 2); y += 40; + systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_AQUA, " 回上一页 ", 2); y += 40; break; case 7: // ????? ?????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? x = (lpDraw->xSize - 3 * 64) / 2; y = (lpDraw->ySize - 3 * 48) / 2; pActMenuWnd = MakeWindowDisp(x, y, 3, 3, CG_WND_TITLE_LOGOUT, 1, FALSE); @@ -11241,7 +11241,7 @@ void MenuProc(void) if (mouse.onceState & MOUSE_LEFT_CRICK){ // ???? if (HitFontNo == systemWndFontNo[0]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; GameState = GAME_LOGIN; @@ -11252,35 +11252,35 @@ void MenuProc(void) } // ????? if (HitFontNo == systemWndFontNo[1]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ?????? + // ?????? systemWndNo = 0; play_se(203, 320, 240); break; } } - // ?@e + // ? x = pActMenuWnd->x + 38; y = pActMenuWnd->y + 56; #ifdef _NEWFONT_ - systemWndFontNo[0] = StockFontBuffer(x+20, y, FONT_PRIO_FRONT, 0, " ȷ ", 2); y += 40; - systemWndFontNo[1] = StockFontBuffer(x+20, y, FONT_PRIO_FRONT, 0, " Ҫ ", 2); y += 40; + systemWndFontNo[0] = StockFontBuffer(x+20, y, FONT_PRIO_FRONT, 0, " 确 定 ", 2); y += 40; + systemWndFontNo[1] = StockFontBuffer(x+20, y, FONT_PRIO_FRONT, 0, " 不 要 ", 2); y += 40; #else - systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ȷ ", 2); y += 40; - systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " Ҫ ", 2); y += 40; + systemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 确 定 ", 2); y += 40; + systemWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 不 要 ", 2); y += 40; #endif break; } } //? ???????????? *****************************************************/ -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 if(setRoomFlag == TRUE) { setRoomName(); @@ -11295,33 +11295,33 @@ void MenuProc(void) if (MenuToggleFlag & JOY_CTRL_S){ - // ?????k??? + // ???????? switch (statusWndNo){ - case 0: // ?????? + case 0: // ?????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(4, 4, 272, 360, 0, -1); #ifdef _CHARTITLE_STR_ - extern void óƺȡ(); - extern BOOL ȡƺȡ(); - if(ȡƺȡ()) óƺȡ(); + extern void 设置称号取消窗口(); + extern BOOL 获取称号取消窗口(); + if(获取称号取消窗口()) 设置称号取消窗口(); #endif - // ???Re??? + // ?????? for (i = 0; i < MENU_STATUS_0; i++) statusWndFontNo[i] = -2; for (i = 0; i < MENU_STATUS_0; i++) statusWndBtnFlag[i] = 0; -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 SkillWndflag = false ; #endif } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ - // ??????????????? -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ + // ??????????????? +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 if ( SkillWndflag == true ) { SkillWndfunc2(); } @@ -11341,27 +11341,27 @@ void MenuProc(void) #endif // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // + // 队伍 if (HitDispNo == statusWndFontNo[0]){ DeathAction(pActMenuWnd); pActMenuWnd = NULL; statusWndNo = 1; play_se(202, 320, 240); } - // ر + // 关闭 if (HitDispNo == statusWndFontNo[1]){ DeathAction(pActMenuWnd); pActMenuWnd = NULL; MenuToggleFlag ^= JOY_CTRL_S; play_se(203, 320, 240); } -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 if( HitDispNo == statusWndFontNo[ 12 ] ){ DeathAction( pActMenuWnd); pActMenuWnd = NULL; statusWndNo = 3; play_se( 202, 320, 240); -#ifdef _NEWREQUESTPROTOCOL // (ɿ) Syu ADD ProtocolҪϸ +#ifdef _NEWREQUESTPROTOCOL // (不可开) Syu ADD 新增Protocol要求细项 lssproto_RESIST_send ( sockfd , "" ) ; #endif #ifdef _ALCHEPLUS @@ -11382,14 +11382,14 @@ void MenuProc(void) #endif } - // ıƺ + // 改变称号 if (HitDispNo == statusWndFontNo[6]){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ #ifdef _CHARTITLE_ statusWndBtnFlag[6] = TRUE; - extern void 򿪳ƺŴڳʼ(); - 򿪳ƺŴڳʼ(); + extern void 打开称号窗口初始化(); + 打开称号窗口初始化(); if (pActMenuWnd3 == NULL){ pActMenuWnd3 = MakeWindowDisp(363, 105, 0, 0, 55249, -1, 0); play_se(202, 320, 240); @@ -11402,8 +11402,8 @@ void MenuProc(void) #else #ifdef _CHARTITLE_STR_ statusWndBtnFlag[6] = TRUE; - extern void 򿪳ƺŴڳʼ(); - 򿪳ƺŴڳʼ(); + extern void 打开称号窗口初始化(); + 打开称号窗口初始化(); if (pActMenuWnd3 == NULL){ pActMenuWnd3 = MakeWindowDisp(363, 105, 0, 0, 55249, -1, 0); play_se(202, 320, 240); @@ -11414,7 +11414,7 @@ void MenuProc(void) play_se(203, 320, 240); } #else -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 SkillWndflag = false ; MenuToggleFlag &= ~JOY_CTRL_I; //MenuToggleFlag &= ~JOY_CTRL_M; @@ -11422,14 +11422,14 @@ void MenuProc(void) #ifdef _TAIKEN // ??? play_se( 220, 320, 240 ); - // ??????? - sprintf_s( moji,"治ѡ" ); - // ?????????????????? + // ??????? + sprintf_s( moji,"体验版不能选择!" ); + // ?????????????????? StockChatBufferLine( moji, FONT_PAL_WHITE ); #else if (pActMenuWnd3 == NULL){ - // ????????? -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ + // ????????? +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 pActMenuWnd3 = MakeWindowDisp( 304, 16 + 280 + 48, 272, 88, 0, -1 ); #else #ifdef _NEW_CHARDATA_ @@ -11440,29 +11440,29 @@ void MenuProc(void) #endif // ???????? play_se(202, 320, 240); - // q???? + // ???? shougouChange.buffer[0] = NULL; shougouChange.cnt = 0; shougouChange.cursor = 0; - // ???? + // ???? shougouChange.len = 12; - // ??? + // ??? shougouChange.color = 0; - // ???? + // ???? shougouChange.x = pActMenuWnd3->x + 38; shougouChange.y = pActMenuWnd3->y + 25; - // ????I?? + // ?????? shougouChange.fontPrio = FONT_PRIO_FRONT; // ???? statusWndBtnFlag[6] = TRUE; } else{ - // ?????? + // ?????? DeathAction(pActMenuWnd3); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); - // ???????? + // ???????? play_se(203, 320, 240); } statusWndBtnFlag[6] = TRUE; @@ -11476,31 +11476,31 @@ void MenuProc(void) statusWndBtnFlag[6] = TRUE; } else{ - // ??? + // ??? statusWndBtnFlag[6] = FALSE; } } else{ - // ??? + // ??? statusWndBtnFlag[6] = FALSE; } // ?????????? if (StatusUpPoint != 0){ // ???????? for (i = 2; i < 6; i++){ - // ????? + // ????? if (HitDispNo == statusWndFontNo[i]){ // ???? // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??????? + // ??????? if (bNewServer) lssproto_SKUP_send(sockfd, i - 2); else old_lssproto_SKUP_send(sockfd, i - 2); -#ifndef _CHAR_PROFESSION // WON ADD ְҵ +#ifndef _CHAR_PROFESSION // WON ADD 人物职业 StatusUpPoint--; #endif @@ -11514,12 +11514,12 @@ void MenuProc(void) statusWndBtnFlag[i] = TRUE; } else{ - // ??? + // ??? statusWndBtnFlag[i] = FALSE; } } else{ - // ??? + // ??? statusWndBtnFlag[i] = FALSE; } } @@ -11535,29 +11535,29 @@ void MenuProc(void) StockFontBuffer(x - 6, y - 2, FONT_PRIO_FRONT, 0, moji, 0); sprintf_s(moji, "%8d", pc.dp); StockFontBuffer(x + 170, y - 2, FONT_PRIO_FRONT, 0, moji, 0); y += 21; - // ?????????? + // ?????????? #ifndef _CHARTITLE_ #ifndef _CHARTITLE_STR_ - CenteringStr(pc.freeName, moji, 32); // ?eu??? + CenteringStr(pc.freeName, moji, 32); // ???? #endif #endif -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ - //λƳƺ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 + //位移称号 StockFontBuffer( x + 77, y + 2 , FONT_PRIO_FRONT, 0, moji, 0 ); -#ifdef _ALLDOMAN // (ɿ) Syu ADD аNPC - //Ӣսƺ - if ( pc.herofloor == 132 ) sprintf_s( moji , "%s" , "˹½Ӣ" ) ; - else if ( pc.herofloor >= 130 ) sprintf_s( moji , "%s" , "˹½սʿ" ) ; - else if ( pc.herofloor >= 125 ) sprintf_s( moji , "%s" , "˹½ʿ" ) ; - else if ( pc.herofloor >= 120 ) sprintf_s( moji , "%s" , "˹Ӣ" ) ; - else if ( pc.herofloor >= 115 ) sprintf_s( moji , "%s" , "˹ʹսʿ" ) ; - else if ( pc.herofloor >= 110 ) sprintf_s( moji , "%s" , "ķսʿ" ) ; - else if ( pc.herofloor >= 100 ) sprintf_s( moji , "%s" , "˿սʿ" ) ; - else if ( pc.herofloor >= 80 ) sprintf_s( moji , "%s" , "̹սʿ" ) ; - else if ( pc.herofloor >= 60 ) sprintf_s( moji , "%s" , "ضսʿ" ) ; - else if ( pc.herofloor >= 40 ) sprintf_s( moji , "%s" , "ħʿ" ) ; - else if ( pc.herofloor >= 20 ) sprintf_s( moji , "%s" , "ʥʿ" ) ; - else if ( pc.herofloor >= 1 ) sprintf_s( moji , "%s" , "ʿ" ) ; +#ifdef _ALLDOMAN // (不可开) Syu ADD 排行榜NPC + //英雄战场称号 + if ( pc.herofloor == 132 ) sprintf_s( moji , "%s" , "尼斯大陆英雄" ) ; + else if ( pc.herofloor >= 130 ) sprintf_s( moji , "%s" , "尼斯大陆战士" ) ; + else if ( pc.herofloor >= 125 ) sprintf_s( moji , "%s" , "尼斯大陆勇士" ) ; + else if ( pc.herofloor >= 120 ) sprintf_s( moji , "%s" , "萨伊那斯英雄" ) ; + else if ( pc.herofloor >= 115 ) sprintf_s( moji , "%s" , "斯巴达战士" ) ; + else if ( pc.herofloor >= 110 ) sprintf_s( moji , "%s" , "萨姆吉尔战士" ) ; + else if ( pc.herofloor >= 100 ) sprintf_s( moji , "%s" , "玛丽那丝战士" ) ; + else if ( pc.herofloor >= 80 ) sprintf_s( moji , "%s" , "卡坦战士" ) ; + else if ( pc.herofloor >= 60 ) sprintf_s( moji , "%s" , "霍特尔战士" ) ; + else if ( pc.herofloor >= 40 ) sprintf_s( moji , "%s" , "降魔勇士" ) ; + else if ( pc.herofloor >= 20 ) sprintf_s( moji , "%s" , "圣灵勇士" ) ; + else if ( pc.herofloor >= 1 ) sprintf_s( moji , "%s" , "初犊勇士" ) ; else sprintf_s( moji , " " ); StockFontBuffer( x + 72, y + 28 , FONT_PRIO_FRONT, 5, moji, 0 ); sprintf_s( moji , "%d" , pc.profession_level); @@ -11580,7 +11580,7 @@ void MenuProc(void) if (pc.transmigration >= 1 && pc.transmigration <= 5){ #endif #ifndef _NEW_CHARDATA_ - sprintf_s(moji, "ת%s", TransmigrationStr[pc.transmigration]); + sprintf_s(moji, "转生%s", TransmigrationStr[pc.transmigration]); StockFontBuffer(x + 178 + 12, y + 2, FONT_PRIO_FRONT, FONT_PAL_AQUA, moji, 0); #else ; @@ -11597,7 +11597,7 @@ void MenuProc(void) #endif #endif sprintf_s(moji, "%3d", pc.level); -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 y += 35; StockFontBuffer( x + 38, y - 2, FONT_PRIO_FRONT, 0, moji, 0 ); y += 21; sprintf_s( moji, "%8d", pc.exp ); @@ -11631,30 +11631,30 @@ void MenuProc(void) #ifdef _NEW_CHARDATA_ /* - static int ͷ״̬=0,ͷ״̬=0; + static int 人物头像左状态=0,人物头像右状态=0; - StockDispBuffer( pActMenuWnd->x + 187, pActMenuWnd->y + 118+72, DISP_PRIO_IME3,CG_PREV_BTN+ͷ״̬, 1 ); + StockDispBuffer( pActMenuWnd->x + 187, pActMenuWnd->y + 118+72, DISP_PRIO_IME3,CG_PREV_BTN+人物头像左状态, 1 ); if( MakeHitBox( pActMenuWnd->x + 187-18, pActMenuWnd->y + 118+72-10, pActMenuWnd->x + 187+18,pActMenuWnd->y + 118+72+10, DISP_PRIO_IME4 ) == TRUE ){ - ShowBottomLineString(FONT_PAL_WHITE, "޸ͷ"); + ShowBottomLineString(FONT_PAL_WHITE, "修改人物头像"); if(mouse.state & MOUSE_LEFT_CRICK){ - ͷ״̬ = 1; + 人物头像左状态 = 1; if(mouse.onceState & MOUSE_LEFT_CRICK){ play_se(203, 320, 240); - //ͷ + //人物头像封包 } - }else ͷ״̬=0; - }else ͷ״̬=0; - StockDispBuffer( pActMenuWnd->x + 232, pActMenuWnd->y + 118+72, DISP_PRIO_IME3,CG_NEXT_BTN+ͷ״̬, 1 ); + }else 人物头像左状态=0; + }else 人物头像左状态=0; + StockDispBuffer( pActMenuWnd->x + 232, pActMenuWnd->y + 118+72, DISP_PRIO_IME3,CG_NEXT_BTN+人物头像右状态, 1 ); if( MakeHitBox( pActMenuWnd->x + 232-18, pActMenuWnd->y + 118+72-10, pActMenuWnd->x + 232+18,pActMenuWnd->y + 118+72+10, DISP_PRIO_IME4 ) == TRUE ){ - ShowBottomLineString(FONT_PAL_WHITE, "޸ͷ"); + ShowBottomLineString(FONT_PAL_WHITE, "修改人物头像"); if(mouse.state & MOUSE_LEFT_CRICK){ - ͷ״̬ = 1; + 人物头像右状态 = 1; if(mouse.onceState & MOUSE_LEFT_CRICK){ play_se(203, 320, 240); - //ͷ + //人物头像封包 } - }else ͷ״̬=0; - }else ͷ״̬=0; + }else 人物头像右状态=0; + }else 人物头像右状态=0; */ @@ -11724,19 +11724,19 @@ void MenuProc(void) #endif #endif -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 y += 50; #else y += 17; #endif statusWndFontNo[0] = StockDispBuffer(x + 59, y, DISP_PRIO_IME3, CG_STATUS_WND_GROUP_BTN, 2); statusWndFontNo[1] = StockDispBuffer(x + 173, y, DISP_PRIO_IME3, CG_CLOSE_BTN, 2); - // ??????? -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ + // ??????? +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 statusWndFontNo[ 12 ] = StockDispBuffer( x + 164 , y - 102, DISP_PRIO_IME3, CG_STATUS_DETAIL, 2 ); if ( pc.profession_class != 0 ) statusWndFontNo[ 14 ] = StockDispBuffer( x + 213 , y - 318 , DISP_PRIO_IME3, CG_WAR_ICON_BIG + pc.profession_class - 1, 2 ); - //else //ʱſͼ + //else //找时间放空图 // statusWndFontNo[ 14 ] = StockDispBuffer( x + 213 , y - 318 , DISP_PRIO_IME3, CG_WAR_ICON_BIG + pc.profession_class - 1, 2 ); @@ -11758,7 +11758,7 @@ void MenuProc(void) #endif if (StatusUpPoint != 0){ // ?????????? -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 StockDispBuffer( ( ( WINDOW_DISP *)pActMenuWnd->pYobi )->mx + 14 , ( ( WINDOW_DISP *)pActMenuWnd->pYobi )->my + 67 , DISP_PRIO_IME3, CG_STATUS_WND_LV_UP_POINT, 0 ); sprintf_s( moji, "%2d", StatusUpPoint ); StockFontBuffer( ( ( WINDOW_DISP *)pActMenuWnd->pYobi )->mx + 70, ( ( WINDOW_DISP *)pActMenuWnd->pYobi )->my + 156, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0 ); @@ -11811,30 +11811,30 @@ void MenuProc(void) #endif #endif } - // ?? -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ - //λƸıƺť + // ?? +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 + //位移改变称号钮 statusWndFontNo[ 6 ] = StockDispBuffer( ( ( WINDOW_DISP *)pActMenuWnd->pYobi )->mx - 124 , ( ( WINDOW_DISP *)pActMenuWnd->pYobi )->my, DISP_PRIO_IME3, CG_STATUS_WND_SHOUGOU_BTN_UP + statusWndBtnFlag[ 6 ], 2 ); #else #ifdef _CHARTITLE_ - extern void ƺչʾ(); - ƺչʾ(); + extern void 称号展示(); + 称号展示(); statusWndFontNo[6] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx - 125, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my + 3, DISP_PRIO_IME3, CG_STATUS_WND_SHOUGOU_BTN_UP + statusWndBtnFlag[6], 2); #else #ifdef _CHARTITLE_STR_ - extern void ƺչʾ(); - extern BOOL ȡǰƺǷ(); - extern BOOL ȡƺȡ(); - extern void óƺȡ(); - if(ȡƺȡ()){ - StockDispBuffer(138,450,DISP_PRIO_MENU,55259,1);//ȷڵͼ + extern void 称号展示(); + extern BOOL 获取当前称号是否存在(); + extern BOOL 获取称号取消窗口(); + extern void 设置称号取消窗口(); + if(获取称号取消窗口()){ + StockDispBuffer(138,450,DISP_PRIO_MENU,55259,1);//确定窗口底图 int bnt; - StockFontBuffer(70,425,1,0,"Ƿȡƺʾ",0); - bnt = StockFontBuffer(90,462,1,FONT_PAL_YELLOW,"ȷ",2); + StockFontBuffer(70,425,1,0,"是否取消称号显示?",0); + bnt = StockFontBuffer(90,462,1,FONT_PAL_YELLOW,"确定",2); if(mouse.onceState & MOUSE_LEFT_CRICK>0){ if(HitFontNo == bnt){ - óƺȡ(); - if(ȡǰƺǷ()){ + 设置称号取消窗口(); + if(获取当前称号是否存在()){ int checksum=0; char buf[1024*4]; memset(buf,0,1024*4); @@ -11845,15 +11845,15 @@ void MenuProc(void) play_se(203, 320, 240); } } - bnt = StockFontBuffer(155,462,1,FONT_PAL_YELLOW,"ȡ",2); + bnt = StockFontBuffer(155,462,1,FONT_PAL_YELLOW,"取消",2); if(mouse.onceState & MOUSE_LEFT_CRICK>0){ if(HitFontNo == bnt){ - óƺȡ(); + 设置称号取消窗口(); play_se(203, 320, 240); } } } - ƺչʾ(); + 称号展示(); statusWndFontNo[6] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_IME3, CG_STATUS_WND_SHOUGOU_BTN_UP + statusWndBtnFlag[6], 2); #else statusWndFontNo[6] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_IME3, CG_STATUS_WND_SHOUGOU_BTN_UP + statusWndBtnFlag[6], 2); @@ -11861,10 +11861,10 @@ void MenuProc(void) #endif #endif - // ?@e + // ? x = pActMenuWnd->x + 19; y = pActMenuWnd->y + 174; -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 x -= 4; y += 43; #endif @@ -11882,7 +11882,7 @@ void MenuProc(void) } y += 20; - // ?N??? + // ???? if (pc.water > 0){ x2 = (int)(pc.water * 0.8); @@ -11892,7 +11892,7 @@ void MenuProc(void) } y += 20; - // ?N??? + // ???? if (pc.fire > 0){ x2 = (int)(pc.fire * 0.8); StockBoxDispBuffer(x + PET_WND_ATTR_X + 0, y + PET_WND_ATTR_Y + 0, x + PET_WND_ATTR_X + 0 + x2, y + PET_WND_ATTR_Y + 8, DISP_PRIO_IME4, SYSTEM_PAL_RED, 1); @@ -11901,7 +11901,7 @@ void MenuProc(void) } y += 20; - // ?N??? + // ???? if (pc.wind > 0){ x2 = (int)(pc.wind * 0.8); StockBoxDispBuffer(x + PET_WND_ATTR_X + 0, y + PET_WND_ATTR_Y + 0, x + PET_WND_ATTR_X + 0 + x2, y + PET_WND_ATTR_Y + 8, DISP_PRIO_IME4, SYSTEM_PAL_YELLOW, 1); @@ -11912,12 +11912,12 @@ void MenuProc(void) } } } - // ??????????? + // ??????????? if (pActMenuWnd3 != NULL){ - // ?????????????? + // ?????????????? if (pActMenuWnd3->hp > 0){ - // ????????? -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ + // ????????? +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 StockDispBuffer( ( ( WINDOW_DISP *)pActMenuWnd3->pYobi )->mx, ( ( WINDOW_DISP *)pActMenuWnd3->pYobi )->my, DISP_PRIO_MENU, CG_NAME_CHANGE_WND, 1 ); #else #ifdef _CHARTITLE_ @@ -11931,15 +11931,15 @@ void MenuProc(void) #endif #endif #ifdef _CHARTITLE_ - extern BOOL ƺŴ(ACTION * pct); - if (ƺŴ(pActMenuWnd3)){ + extern BOOL 人物称号处理(ACTION * pct); + if (人物称号处理(pActMenuWnd3)){ pActMenuWnd3 = NULL; } #else #ifdef _CHARTITLE_STR_ - extern BOOL ƺŴ(ACTION * pct); - if (ƺŴ(pActMenuWnd3)){ + extern BOOL 人物称号处理(ACTION * pct); + if (人物称号处理(pActMenuWnd3)){ pActMenuWnd3 = NULL; } @@ -11947,28 +11947,28 @@ void MenuProc(void) GetKeyInputFocus(&shougouChange); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??ϣ??? + // ??OK??? if (HitDispNo == statusWndFontNo[7]){ // ???????? KeyboardReturn(); } - // ?????????? + // ?????????? if (HitDispNo == statusWndFontNo[8]){ - // ?????? + // ?????? DeathAction(pActMenuWnd3); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); - // ???????? + // ???????? play_se(203, 320, 240); } } - // ?????????????? + // ?????????????? if (pActMenuWnd3 != NULL){ - // ??? + // ??? StockFontBuffer2(&shougouChange); - // ?@e + // ? x = pActMenuWnd3->x + 20; y = pActMenuWnd3->y + 60; statusWndFontNo[7] = StockDispBuffer(x + 60, y + 7, DISP_PRIO_IME3, CG_OK_BTN, 2); @@ -11984,26 +11984,26 @@ void MenuProc(void) // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(4, 0, 256, 456, 0, -1); - // ???Re??? + // ?????? for (i = 0; i < MENU_STATUS_0; i++) statusWndFontNo[i] = -2; for (i = 0; i < MENU_STATUS_0; i++) statusWndBtnFlag[i] = 0; } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ - // ???????????? + // ???????????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_STATUS_WND_GROUP_WND, 1); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ // ??? if (HitDispNo == statusWndFontNo[11]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; statusWndNo = 0; - // ???????? + // ???????? play_se(203, 320, 240); } #ifdef _TEAM_KICKPARTY @@ -12017,8 +12017,8 @@ void MenuProc(void) } // ???????? if (pActMenuWnd != NULL){ - int selectFlag; // k?????????? - // ?@e + int selectFlag; // ?????????? + // ? x = pActMenuWnd->x + 17; y = pActMenuWnd->y + 25; @@ -12065,7 +12065,7 @@ void MenuProc(void) CenteringStr(party[i].name, moji, CHAR_NAME_LEN); statusWndFontNo[i + 6] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, moji, selectFlag); y += 20; #ifdef _TEAM_KICKPARTY - //andy_add ӳ + //andy_add 队长踢人 statusWndFontNo[i + 12] = StockDispBuffer(x + 187, y - 10, DISP_PRIO_IME3, CG_MAIL_WND_DELETE_BTN, 2); #endif sprintf_s(moji, "%4d", party[i].mp); @@ -12127,14 +12127,14 @@ void MenuProc(void) if( index >= 25 ) break; if( iCharAlchePlus[index] <= 0 ) continue; if( HitDispNo == StockDispBuffer( x + 45 + j * 60 , y + 96 + i * 57 , DISP_PRIO_IME3 + 1, iAlchePlusIcon[index], 2 ) ) { - sprintf_s( moji , "%s IJϼ", sAlchePlus_list[index]); + sprintf_s( moji , "%s 的材料鉴定熟度", sAlchePlus_list[index]); StockFontBuffer( 25, 311, FONT_PRIO_FRONT, FONT_PAL_WHITE, moji, 0 ); sprintf_s( moji , "%d %%", iCharAlchePlus[index] / 1000 ); StockFontBuffer( 220, 311, FONT_PRIO_FRONT, FONT_PAL_WHITE, moji, 0 ); - sprintf_s( moji , " %s ϵļȣ", sAlchePlus_list[index] ); + sprintf_s( moji , "对于 %s 材料的鉴定熟度,可提高", sAlchePlus_list[index] ); StockFontBuffer( 25, 340, FONT_PRIO_FRONT, FONT_PAL_WHITE, moji, 0 ); - sprintf_s( moji , "زĺϳɳɹʡ"); + sprintf_s( moji , "素材合成成功率。"); StockFontBuffer( 25, 360, FONT_PRIO_FRONT, FONT_PAL_WHITE, moji, 0 ); } @@ -12159,15 +12159,15 @@ void MenuProc(void) sprintf_s( moji , "%s%d" , DetailDesc[j + i * 4] , atoi ( CharDetail[j + i * 4] ) ) ; StockFontBuffer( 25, 310, FONT_PRIO_FRONT, FONT_PAL_WHITE, moji, 0 ); if( i == 0 ){ - sprintf_s( moji , "%sħĿԣɼܵ", DetailDescchar[j] ); + sprintf_s( moji , "对于%s精灵魔法的抗性,可减少受到", DetailDescchar[j] ); StockFontBuffer( 25, 330, FONT_PRIO_FRONT, FONT_PAL_WHITE, moji, 0 ); - sprintf_s( moji , "%sħ˺", DetailDescchar[j] ); + sprintf_s( moji , "%s精灵魔法的伤害。", DetailDescchar[j] ); StockFontBuffer( 25, 350, FONT_PRIO_FRONT, FONT_PAL_WHITE, moji, 0 ); } else if( i == 1 ){ - sprintf_s( moji , "ʹ%sħȣʹ", DetailDescchar[j] ); + sprintf_s( moji , "使用%s精灵魔法的熟练度,可增加使用", DetailDescchar[j] ); StockFontBuffer( 25, 330, FONT_PRIO_FRONT, FONT_PAL_WHITE, moji, 0 ); - sprintf_s( moji , "%sħʱ", DetailDescchar[j] ) ; + sprintf_s( moji , "%s精灵魔法时的威力。", DetailDescchar[j] ) ; StockFontBuffer( 25, 350, FONT_PRIO_FRONT, FONT_PAL_WHITE, moji, 0 ); } @@ -12257,9 +12257,9 @@ void MenuProc(void) if (MenuToggleFlag & JOY_CTRL_P){ #ifdef _STREET_VENDOR if (pc.iOnStreetVendor == 1 || sStreetVendorBuyBtn == 2){ - StockChatBufferLine("̯вø״̬", FONT_PAL_RED); + StockChatBufferLine("摆摊中不得更换宠物状态", FONT_PAL_RED); MenuToggleFlag ^= JOY_CTRL_P; - // Ϊ˲ִгӴ趨Ϊ 3, + // 为了不执行宠物视窗所以设定为 3,不作事 petWndNo = 3; } #endif @@ -12267,45 +12267,45 @@ void MenuProc(void) if (pc.iTheaterMode > 0) { if (pc.iTheaterMode & 0x00000002) - StockChatBufferLine("רı", FONT_PAL_RED); + StockChatBufferLine("请专心表演", FONT_PAL_RED); else if (pc.iTheaterMode & 0x00000001) - StockChatBufferLine("רĿ", FONT_PAL_RED); + StockChatBufferLine("请专心看表演", FONT_PAL_RED); MenuToggleFlag ^= JOY_CTRL_P; - // Ϊ˲ִгӴ趨Ϊ 3, + // 为了不执行宠物视窗所以设定为 3,不作事 petWndNo = 3; } #endif #ifdef _NPC_DANCE if (pc.iDanceMode) { - StockChatBufferLine("״̬޷鿴", FONT_PAL_RED); + StockChatBufferLine("特殊状态无法查看宠物", FONT_PAL_RED); MenuToggleFlag ^= JOY_CTRL_P; petWndNo = 3; } #endif - // ?????k??? + // ???????? switch (petWndNo){ case 0: // ?????????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(4, 4, 272, 320, 0, -1); - // ???Re??? + // ?????? for (i = 0; i < MENU_PET_0; i++) petWndFontNo[i] = -2; - // k???? + // ???? BattlePetReceivePetNo = -1; -#ifdef _DROPPETWND // (ɿ) Syu ADD ȷ +#ifdef _DROPPETWND // (可开放) Syu ADD 丢弃宠物确认 DropPetWndflag = false; DropI = -1; #endif } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ - // ?????????? + // ?????????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_PET_WND_VIEW, 1); // ?????????? @@ -12331,11 +12331,11 @@ void MenuProc(void) // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ???????? + // ???????? for (i = 0; i < 5; i++){ - // ??????????????????? + // ??????????????????? if (pet[i].useFlag == TRUE && BattlePetReceivePetNo != i){ - // ???k??? + // ?????? if (HitDispNo == petWndFontNo[i]){ // ride Pet #if 1 @@ -12352,7 +12352,7 @@ void MenuProc(void) else // when ride Pet if (i == pc.ridePetNo && pc.graNo != SPR_pet021 - && pc.graNo != 100362){// + && pc.graNo != 100362){//金飞 char buf[64]; sprintf_s(buf, "R|P|-1"); if (bNewServer) @@ -12365,16 +12365,16 @@ void MenuProc(void) lssproto_PETST_send(sockfd, i, 0); } else - // ID?? + // ?? if (i == pc.battlePetNo && BattlePetReceiveFlag == FALSE){ - // ID????? + // ????? if (bNewServer) lssproto_KS_send(sockfd, -1); else old_lssproto_KS_send(sockfd, -1); - // r?????? + // ?????? BattlePetReceiveFlag = TRUE; - // ????????k??? + // ??????????? BattlePetReceivePetNo = i; // ????? @@ -12401,18 +12401,18 @@ void MenuProc(void) else // ?????? if (pc.selectPetNo[i] == TRUE){ - // ID??????? + // ??????? if (pc.battlePetNo == -1 && BattlePetReceiveFlag == FALSE){ - // ????? + // ????? if (pet[i].hp > 0){ - // ID? + // ? if (bNewServer) lssproto_KS_send(sockfd, i); else old_lssproto_KS_send(sockfd, i); - // r?????? + // ?????? BattlePetReceiveFlag = TRUE; - // ????????k??? + // ??????????? BattlePetReceivePetNo = i; play_se(217, 320, 240); // ????? } @@ -12478,11 +12478,11 @@ void MenuProc(void) #endif } - // ??????k??? + // ????????? if (HitFontNo == petWndFontNo[i + 5]){ - petStatusNo = i; // ???k??? + petStatusNo = i; // ?????? petWndNo = 1; - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; // ???????? @@ -12491,22 +12491,22 @@ void MenuProc(void) } } - // ?? + // ?? if (HitDispNo == petWndFontNo[10]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ?????????? + // ?????????? MenuToggleFlag ^= JOY_CTRL_P; - // ???????? + // ???????? play_se(203, 320, 240); // ???????? saveUserSetting(); } - // ???? + // ???? if (HitDispNo == petWndFontNo[11]){ - petStatusNo = 0; // ???k??? + petStatusNo = 0; // ?????? // ?????????? for (i = 0; i < 5; i++){ // ??????????? @@ -12516,13 +12516,13 @@ void MenuProc(void) } } petWndNo = 1; - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; // ???????? play_se(202, 320, 240); } -#ifdef _DROPPETWND // (ɿ) Syu ADD ȷ +#ifdef _DROPPETWND // (可开放) Syu ADD 丢弃宠物确认 if (HitDispNo == petWndFontNo[21]) { i = DropI; DropI = -1; @@ -12548,23 +12548,23 @@ void MenuProc(void) } // ???????? if (mouse.onceState & MOUSE_RIGHT_CRICK){ - // ???????? + // ???????? for (i = 0; i < 5; i++){ // ??????????? if (pet[i].useFlag == TRUE && eventWarpSendFlag == FALSE){ - // ???k??? + // ?????? if (HitFontNo == petWndFontNo[i + 5]){ - // ?????????? or ride Pet + // ?????????? or ride Pet if (ItemMixPetNo != i && pc.ridePetNo != i) { -#ifdef _DROPPETWND // (ɿ) Syu ADD ȷ +#ifdef _DROPPETWND // (可开放) Syu ADD 丢弃宠物确认 DropPetWndflag = true; DropI = i; #else - // ????t?? + // ?????? if( bNewServer) lssproto_DP_send( sockfd, nowGx, nowGy, i ); else @@ -12574,9 +12574,9 @@ void MenuProc(void) pc.selectPetNo[ i ] = FALSE; // ???? BattlePetStMenCnt--; // ????????? } - // ID?? + // ?? if( i == pc.battlePetNo ){ - // ID????? + // ????? if( bNewServer) lssproto_KS_send( sockfd, -1 ); else @@ -12598,9 +12598,9 @@ void MenuProc(void) } } } -#ifdef _DROPPETWND // (ɿ) Syu ADD ȷ +#ifdef _DROPPETWND // (可开放) Syu ADD 丢弃宠物确认 if (DropPetWndflag == true) { - StockFontBuffer(245, 220, FONT_PRIO_AFRONT, 3, "ȷҪij", 0); y += 40; + StockFontBuffer(245, 220, FONT_PRIO_AFRONT, 3, "确定要丢出你的宠物吗?", 0); y += 40; StockDispBuffer(320, 240, DISP_PRIO_YES_NO_WND, CG_DROPWND, 0); petWndFontNo[21] = StockDispBuffer(320, 240, DISP_PRIO_YES_NO_BTN, CG_COMMON_YES_BTN, 2); petWndFontNo[22] = StockDispBuffer(320, 240, DISP_PRIO_YES_NO_BTN, CG_COMMON_NO_BTN, 2); @@ -12616,19 +12616,19 @@ void MenuProc(void) int atrGraNo[4]; x = pActMenuWnd->x + 16 + 50, y = pActMenuWnd->y + 31; - // ?????? + // ?????? for (i = 0; i < 5; i++){ // ??????????? if (pet[i].useFlag == TRUE){ - color = FONT_PAL_WHITE; // ????? + color = FONT_PAL_WHITE; // ????? btnNo = 0; // ??????? - // ????V??? + // ??????? if (pc.selectPetNo[i] == TRUE){ color = FONT_PAL_AQUA; btnNo = 2; } - // ID?? + // ?? if (i == pc.battlePetNo){ color = FONT_PAL_YELLOW; btnNo = 1; @@ -12662,42 +12662,42 @@ void MenuProc(void) } petWndFontNo[i + 5] = StockFontBuffer(x + 3, y, FONT_PRIO_FRONT, color, moji, 2); y += 24; #ifdef _SHOWPETTRN_ - sprintf(moji, "%dת", pet[i].trn); + sprintf(moji, "%d转", pet[i].trn); StockFontBuffer(x + 122, y - 24, FONT_PRIO_FRONT, color, moji, 2); #endif atrFlag = FALSE; - // Nͤ - if (pet[i].earth > 0){ // - // ?? + //  + if (pet[i].earth > 0){ // 佋 + // ?? if (pet[i].earth > 50) atrGraNo[atrFlag] = CG_ATR_ICON_EARTH_BIG; - // ?? + // ?? else atrGraNo[atrFlag] = CG_ATR_ICON_EARTH_SML; atrFlag++; // ????? } if (pet[i].water > 0){ // ? - // ?? + // ?? if (pet[i].water > 50) atrGraNo[atrFlag] = CG_ATR_ICON_WATER_BIG; - // ?? + // ?? else atrGraNo[atrFlag] = CG_ATR_ICON_WATER_SML; atrFlag++; // ????? } if (pet[i].fire > 0){ // ? - // ?? + // ?? if (pet[i].fire > 50) atrGraNo[atrFlag] = CG_ATR_ICON_FIRE_BIG; - // ?? + // ?? else atrGraNo[atrFlag] = CG_ATR_ICON_FIRE_SML; atrFlag++; // ????? } if (pet[i].wind > 0){ // ? - // ?? + // ?? if (pet[i].wind > 50) atrGraNo[atrFlag] = CG_ATR_ICON_WIND_BIG; - // ?? + // ?? else atrGraNo[atrFlag] = CG_ATR_ICON_WIND_SML; atrFlag++; // ????? } // ??? if (atrFlag > 0) StockDispBuffer(pActMenuWnd->x + 228, y - 16, DISP_PRIO_IME3, atrGraNo[0], 0); - // K?? + // ?? if (atrFlag > 1) StockDispBuffer(pActMenuWnd->x + 228 + 16, y - 16, DISP_PRIO_IME3, atrGraNo[1], 0); petWndFontNo[i] = StockDispBuffer(x - 27, y - 14, DISP_PRIO_IME3, CG_PET_WND_REST_BTN + btnNo, 2); @@ -12732,12 +12732,12 @@ void MenuProc(void) } // ???????? if (flag != TRUE){ - // ?? + // ?? petWndFontNo[10] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, pActMenuWnd->y + 299, DISP_PRIO_IME3, CG_CLOSE_BTN, 2); - StockFontBuffer(x + 10, y, FONT_PRIO_FRONT, 0, "ûг", 0); y += 40; + StockFontBuffer(x + 10, y, FONT_PRIO_FRONT, 0, "你没有宠物", 0); y += 40; } else{ - // ?? + // ?? petWndFontNo[10] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx + 56, pActMenuWnd->y + 299, DISP_PRIO_IME3, CG_CLOSE_BTN, 2); petWndFontNo[11] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx - 56, pActMenuWnd->y + 299, DISP_PRIO_IME3, CG_PET_WND_STATUS_BTN, 2); } @@ -12746,28 +12746,28 @@ void MenuProc(void) } break; - case 1: // ?????????? + case 1: // ?????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(4, 4, 272, 332, 0, -1); #ifdef _PETBLESS_ - ףڿ = 0; - memset(ף, 0, 128); + 祝福窗口开关 = 0; + memset(祝福窗口内容, 0, 128); #endif - // ???Re??? + // ?????? for (i = 0; i < MENU_PET_0; i++) petWndFontNo[i] = -2; } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ - // ????????? + // ????????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_PET_WND_DETAIL, 1); // ???????????????? if (pActPet == NULL) { -#ifdef _LIZARDPOSITION // (ɿ) Syu ADD ʾλù +#ifdef _LIZARDPOSITION // (可开放) Syu ADD 修正龙蜥显示位置过低 if ((pet[petStatusNo].graNo == 101493) || (pet[petStatusNo].graNo == 101494) || (pet[petStatusNo].graNo == 101495) || (pet[petStatusNo].graNo == 101496)) { @@ -12789,51 +12789,51 @@ void MenuProc(void) if (HitDispNo == petWndFontNo[0]){ DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ???? + // ???? DeathAction(pActPet); pActPet = NULL; // ????????????? petWndNo = 0; - // q??????? + // ??????? DeathAction(pActMenuWnd3); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); - // ???????? + // ???????? play_se(203, 320, 240); } // ???????? if (HitDispNo == petWndFontNo[4]){ - // ??????k? + // ??????? petWndNo = 2; DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ???? + // ???? DeathAction(pActPet); pActPet = NULL; // ????????????? petWndNo = 2; - // q??????? + // ??????? DeathAction(pActMenuWnd3); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); // ???????? play_se(202, 320, 240); } } - // q?????????? + // ?????????? if (HitDispNo == petWndFontNo[1] || joy_con[0] & JOY_A){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_A){ - // q?????????? + // ?????????? if (pActMenuWnd3 != NULL){ - // ?????? + // ?????? DeathAction(pActMenuWnd3); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); - // ???????? + // ???????? play_se(203, 320, 240); } while (1){ @@ -12842,8 +12842,8 @@ void MenuProc(void) if (petStatusNo <= -1) petStatusNo = 4; if (pet[petStatusNo].useFlag == TRUE) break; } - // ???????k?? -#ifdef _LIZARDPOSITION // (ɿ) Syu ADD ʾλù + // ????????? +#ifdef _LIZARDPOSITION // (可开放) Syu ADD 修正龙蜥显示位置过低 if ((pet[petStatusNo].graNo == 101493) || (pet[petStatusNo].graNo == 101494) || (pet[petStatusNo].graNo == 101495) || (pet[petStatusNo].graNo == 101496)) { @@ -12870,26 +12870,26 @@ void MenuProc(void) petWndBtnFlag[1] = TRUE; } else{ - // ??? + // ??? petWndBtnFlag[1] = FALSE; } } else{ - // ??? + // ??? petWndBtnFlag[1] = FALSE; } // ??????????? if (HitDispNo == petWndFontNo[2] || joy_con[0] & JOY_B){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_B){ - // q?????????? + // ?????????? if (pActMenuWnd3 != NULL){ - // ?????? + // ?????? DeathAction(pActMenuWnd3); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); - // ???????? + // ???????? play_se(203, 320, 240); } while (1){ @@ -12898,8 +12898,8 @@ void MenuProc(void) if (petStatusNo >= 5) petStatusNo = 0; if (pet[petStatusNo].useFlag == TRUE) break; } - // ???????k? -#ifdef _LIZARDPOSITION // (ɿ) Syu ADD ʾλù + // ???????? +#ifdef _LIZARDPOSITION // (可开放) Syu ADD 修正龙蜥显示位置过低 if ((pet[petStatusNo].graNo == 101493) || (pet[petStatusNo].graNo == 101494) || (pet[petStatusNo].graNo == 101495) || (pet[petStatusNo].graNo == 101496)) { @@ -12926,46 +12926,46 @@ void MenuProc(void) petWndBtnFlag[2] = TRUE; } else{ - // ??? + // ??? petWndBtnFlag[2] = FALSE; } } else{ - // ??? + // ??? petWndBtnFlag[2] = FALSE; } - // q???? + // ???? if (HitDispNo == petWndFontNo[3]){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??????u? + // ??????? if (pet[petStatusNo].changeNameFlag == TRUE){ if (pActMenuWnd3 == NULL){ - // ????????? + // ????????? pActMenuWnd3 = MakeWindowDisp(4, 4 + 280 + 56, 272, 88, 0, -1, 0); // ???????? play_se(202, 320, 240); - // q???? + // ???? petNameChange.buffer[0] = NULL; petNameChange.cnt = 0; petNameChange.cursor = 0; - // ???? + // ???? petNameChange.len = 16; - // ??? + // ??? petNameChange.color = 0; - // ???? + // ???? petNameChange.x = pActMenuWnd3->x + 22; petNameChange.y = pActMenuWnd3->y + 25; - // ????I?? + // ?????? petNameChange.fontPrio = FONT_PRIO_FRONT; } - else{ // ??????????? - // ?????? + else{ // ??????????? + // ?????? DeathAction(pActMenuWnd3); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); - // ???????? + // ???????? play_se(203, 320, 240); } petWndBtnFlag[3] = TRUE; @@ -12982,12 +12982,12 @@ void MenuProc(void) petWndBtnFlag[3] = TRUE; } else{ - // ??? + // ??? petWndBtnFlag[3] = FALSE; } } else{ - // ??? + // ??? petWndBtnFlag[3] = FALSE; } #ifndef _PET_SKINS @@ -12999,55 +12999,55 @@ void MenuProc(void) pet[petStatusNo].graNo != 101279 && pet[petStatusNo].graNo != 100401 && pet[petStatusNo].graNo != 101414 && pet[petStatusNo].graNo != 101167 && pet[petStatusNo].graNo != 101172 && pet[petStatusNo].graNo != 102011 && - pet[petStatusNo].graNo != 102012) // fix Щﲻճ + pet[petStatusNo].graNo != 102012) // fix 哪些宠物不能照宠照 if (mouse.onceState & MOUSE_LEFT_CRICK){ #ifdef _TAIKEN // ??? play_se( 220, 320, 240 ); - // ??????? - sprintf_s( moji,"治ѡ" ); - // ?????????????????? + // ??????? + sprintf_s( moji,"体验版不能选择!" ); + // ?????????????????? StockChatBufferLine( moji, FONT_PAL_WHITE ); #else - int tblNo = pet[petStatusNo].graNo - 100250; // ?????k? + int tblNo = pet[petStatusNo].graNo - 100250; // ?????? #if defined(__ALBUM_47) - if (tblNo > 1800){ //Сħ + if (tblNo > 1800){ //小恶魔 tblNo -= 1208; } - else if (tblNo > 1755){ //Ϲħ + else if (tblNo > 1755){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201; } - else if (tblNo > 1739){ // + else if (tblNo > 1739){ //飞蛇 tblNo -= 1200; } - else if (tblNo > 1686){ //8.0 + else if (tblNo > 1686){ //8.0宠物 tblNo -= 1175; } - else if (tblNo > 1641){ //4 ׳2 8.0һϲ + else if (tblNo > 1641){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; } - else if (tblNo > 1635){ // + else if (tblNo > 1635){ //麒麟 tblNo -= 1148; } - else if (tblNo > 1634){ //èŮ1 èŮ2 + else if (tblNo > 1634){ //猫女1 猫女2 tblNo -= 1149; } - else if (tblNo > 1628){ //1 2 ţ1 ţ2 + else if (tblNo > 1628){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; } - else if (tblNo > 1615){// ۷1 ۷2 1 2 ʨ1 ʨ2 + else if (tblNo > 1615){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; } - else if (tblNo > 1568){// + else if (tblNo > 1568){//机人龙 tblNo -= 1103; } - else if (tblNo > 1564){//ɫ + else if (tblNo > 1564){//黄色飞龙 tblNo -= 1101; } else if (tblNo > 1516){ tblNo -= 1055; } - else if (tblNo == 1516){// + else if (tblNo == 1516){//修正乌力王 tblNo = 455; } else if (tblNo > 1509){ @@ -13117,31 +13117,31 @@ void MenuProc(void) tblNo -= (333 + 56); } #elif defined(__ALBUM_46) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201 ; - }else if (tblNo > 1739 ){ // + }else if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13189,31 +13189,31 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_45) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201 ; - }else if (tblNo > 1739 ){ // + }else if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13261,31 +13261,31 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_44) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201 ; - }else if (tblNo > 1739 ){ // + }else if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13333,31 +13333,31 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_43) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201 ; - }else if (tblNo > 1739 ){ // + }else if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13405,31 +13405,31 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_42) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201 ; - }else if (tblNo > 1739 ){ // + }else if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13477,31 +13477,31 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_41) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201 ; - }else if (tblNo > 1739 ){ // + }else if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13549,31 +13549,31 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_40) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201 ; - }else if (tblNo > 1739 ){ // + }else if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13621,31 +13621,31 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_39) - if( tblNo > 1800 ){ //Сħ + if( tblNo > 1800 ){ //小恶魔 tblNo -= 1208; - }else if( tblNo > 1755 ){ //Ϲħ + }else if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201 ; - }else if (tblNo > 1739 ){ // + }else if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13693,29 +13693,29 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_38) - if( tblNo > 1755 ){ //Ϲħ + if( tblNo > 1755 ){ //间隔南瓜魔王后的 狐猴 tblNo -= 1201 ; - }else if (tblNo > 1739 ){ // + }else if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13763,27 +13763,27 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_37) - if (tblNo > 1739 ){ // + if (tblNo > 1739 ){ //飞蛇 tblNo -= 1200; - }else if (tblNo > 1686 ){ //8.0 + }else if (tblNo > 1686 ){ //8.0宠物 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13831,25 +13831,25 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_36) - if (tblNo > 1686 ){ //4 ׳2 8.0һϲ + if (tblNo > 1686 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1175; - }else if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + }else if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13897,23 +13897,23 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_35) - if (tblNo > 1641 ){ //4 ׳2 8.0һϲ + if (tblNo > 1641 ){ //鸡年兽4 甲虫2 8.0第一次整合测试 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -13962,23 +13962,23 @@ void MenuProc(void) } #elif defined(__ALBUM_34) - if (tblNo > 1639 ){ //4 + if (tblNo > 1639 ){ //鸡年兽4 tblNo -= 1167; - }else if (tblNo > 1635 ){ // + }else if (tblNo > 1635 ){ //麒麟 tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14028,19 +14028,19 @@ void MenuProc(void) #elif defined(__ALBUM_33) if (tblNo > 1635 ){ tblNo -= 1148; - }else if ( tblNo > 1634 ){ //èŮ1 èŮ2 + }else if ( tblNo > 1634 ){ //猫女1 猫女2 麒麟 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14088,19 +14088,19 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_32) - if ( tblNo > 1634 ){ //èŮ1 èŮ2 + if ( tblNo > 1634 ){ //猫女1 猫女2 tblNo -= 1149; - }else if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + }else if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14148,17 +14148,17 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_31) - if ( tblNo > 1628 ){ //1 2 ţ1 ţ2 + if ( tblNo > 1628 ){ //火蚁1 火蚁2 牛人1 牛人2 tblNo -= 1147; - }else if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + }else if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14206,15 +14206,15 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_30) - if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 布伊酷 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14262,15 +14262,15 @@ void MenuProc(void) tblNo -= (333+56); } #elif defined(__ALBUM_29) - if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 白狼 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14319,15 +14319,15 @@ void MenuProc(void) } #elif defined(__ALBUM_28) - if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 灰人熔 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14376,15 +14376,15 @@ void MenuProc(void) } #elif defined(__ALBUM_27) - if( tblNo > 1615 ){// ۷1 ۷2 1 2 ʨ1 ʨ2 + if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 狮人1 狮人2 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14433,15 +14433,15 @@ void MenuProc(void) } #elif defined(__ALBUM_26) - if( tblNo > 1615 ){// ۷1 ۷2 1 2 + if( tblNo > 1615 ){//布里萨尔 蜜蜂1 蜜蜂2 蝴蝶1 蝴蝶2 暗黑乌力王 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14490,15 +14490,15 @@ void MenuProc(void) } #elif defined(__ALBUM_25) - if( tblNo > 1615 ){// + if( tblNo > 1615 ){//布里萨尔 tblNo -= 1145; - }else if( tblNo > 1568 ){// + }else if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14547,13 +14547,13 @@ void MenuProc(void) } #elif defined(__ALBUM_24) - if( tblNo > 1568 ){// + if( tblNo > 1568 ){//机人龙 tblNo -= 1103; - }else if( tblNo > 1564 ){//ɫ + }else if( tblNo > 1564 ){//黄色飞龙 tblNo -= 1101; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14605,7 +14605,7 @@ void MenuProc(void) tblNo -= 1057; }else if( tblNo > 1516 ){ tblNo -= 1055; - }else if ( tblNo == 1516 ){// + }else if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14654,7 +14654,7 @@ void MenuProc(void) } #elif defined(__ALBUM_22) - if ( tblNo == 1516 ){// + if ( tblNo == 1516 ){//修正乌力王 tblNo = 455 ; }else if ( tblNo > 1509 ){ tblNo -= 1054; @@ -14980,7 +14980,7 @@ void MenuProc(void) int albumNo; // ??????? if (0 <= tblNo && tblNo < MAX_PET_TBL){ - // ??????? + // ??????? if (tblNo == 442) albumNo = 0; @@ -14988,33 +14988,33 @@ void MenuProc(void) albumNo = PetAlbumTbl[tblNo].albumNo; // ???????? if (albumNo != -1){ - // ??????? + // ??????? PetAlbum[albumNo].flag = 2; - // ?????? + // ?????? if (pet[petStatusNo].freeName[0] != NULL){ strcpy(PetAlbum[albumNo].freeName, pet[petStatusNo].freeName); } else{ - // o??? + // ??? strcpy(PetAlbum[albumNo].freeName, PetAlbumTbl[tblNo].name); } - // o??? + // ??? strcpy(PetAlbum[albumNo].name, PetAlbumTbl[tblNo].name); - // ???????k? + // ???????? PetAlbum[albumNo].faceGraNo = PetAlbumTbl[tblNo].faceGraNo; // ??? PetAlbum[albumNo].level = pet[petStatusNo].level; - // ??? + // ??? PetAlbum[albumNo].maxHp = pet[petStatusNo].maxHp; // ?? PetAlbum[albumNo].str = pet[petStatusNo].atk; - // ?? + // ?? PetAlbum[albumNo].quick = pet[petStatusNo].quick; - // \? + // ? PetAlbum[albumNo].def = pet[petStatusNo].def; - // + // 佋 PetAlbum[albumNo].earth = pet[petStatusNo].earth; // ? PetAlbum[albumNo].water = pet[petStatusNo].water; @@ -15023,15 +15023,15 @@ void MenuProc(void) // ? PetAlbum[albumNo].wind = pet[petStatusNo].wind; - // ??? + // ??? play_se(201, 320, 240); - // ??????? - sprintf_s(moji, "%s ɣ", PetAlbum[albumNo].freeName); - // ?????????????????? + // ??????? + sprintf_s(moji, "%s 照相完成!", PetAlbum[albumNo].freeName); + // ?????????????????? StockChatBufferLine(moji, FONT_PAL_WHITE); petWndBtnFlag[7] = TRUE; - // ?????V + // ????? SaveAlbum(albumNo); } @@ -15039,8 +15039,8 @@ void MenuProc(void) // ??? play_se(220, 320, 240); #ifdef _STONDEBUG_ - sprintf_s( moji,"ͼαź %d",pet[ petStatusNo ].graNo ); - MessageBoxNew( hWnd, moji, "ȷ", MB_OK | MB_ICONSTOP ); + sprintf_s( moji,"图形编号很奇怪 %d",pet[ petStatusNo ].graNo ); + MessageBoxNew( hWnd, moji, "确定", MB_OK | MB_ICONSTOP ); #endif // } } @@ -15049,8 +15049,8 @@ void MenuProc(void) // ??? play_se(220, 320, 240); #ifdef _STONDEBUG_ - sprintf_s( moji,"tableź %d",tblNo ); - MessageBoxNew( hWnd, moji, "ȷ", MB_OK | MB_ICONSTOP ); + sprintf_s( moji,"宠物的table编号很奇怪 %d",tblNo ); + MessageBoxNew( hWnd, moji, "确定", MB_OK | MB_ICONSTOP ); #endif } #endif @@ -15061,12 +15061,12 @@ void MenuProc(void) petWndBtnFlag[7] = TRUE; } else{ - // ??? + // ??? petWndBtnFlag[7] = FALSE; } } else{ - // ??? + // ??? petWndBtnFlag[7] = FALSE; } #endif @@ -15084,60 +15084,60 @@ void MenuProc(void) int blessNoid; if (pet[petStatusNo].blesshp != 2){ blessNoid = StockDispBuffer(x + 140, y + 128, DISP_PRIO_IME3, 55258, 2); - if (HitDispNo == blessNoid) ShowBottomLineString(FONT_PAL_WHITE, "ף"); + if (HitDispNo == blessNoid) ShowBottomLineString(FONT_PAL_WHITE, "宠物祝福。"); if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == blessNoid)){ - ףѡ = 1; - if (!ףڿ) + 祝福窗口选中 = 1; + if (!祝福窗口开关) lssproto_petbless_send(sockfd, petStatusNo, -1); - ףڿ = TRUE; + 祝福窗口开关 = TRUE; } } if (pet[petStatusNo].blessatk != 2){ blessNoid = StockDispBuffer(x + 92, y + 150, DISP_PRIO_IME3, 55258, 2); - if (HitDispNo == blessNoid) ShowBottomLineString(FONT_PAL_WHITE, "ף"); + if (HitDispNo == blessNoid) ShowBottomLineString(FONT_PAL_WHITE, "宠物祝福。"); if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == blessNoid)){ - ףѡ = 2; - if (!ףڿ) + 祝福窗口选中 = 2; + if (!祝福窗口开关) lssproto_petbless_send(sockfd, petStatusNo, -2); - ףڿ = TRUE; + 祝福窗口开关 = TRUE; } } if (pet[petStatusNo].blessdef != 2){ blessNoid = StockDispBuffer(x + 92, y + 175, DISP_PRIO_IME3, 55258, 2); - if (HitDispNo == blessNoid) ShowBottomLineString(FONT_PAL_WHITE, "ף"); + if (HitDispNo == blessNoid) ShowBottomLineString(FONT_PAL_WHITE, "宠物祝福。"); if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == blessNoid)){ - ףѡ = 3; - if (!ףڿ) + 祝福窗口选中 = 3; + if (!祝福窗口开关) lssproto_petbless_send(sockfd, petStatusNo, -3); - ףڿ = TRUE; + 祝福窗口开关 = TRUE; } } if (pet[petStatusNo].blessquick != 2){ blessNoid = StockDispBuffer(x + 92, y + 200, DISP_PRIO_IME3, 55258, 2); - if (HitDispNo == blessNoid) ShowBottomLineString(FONT_PAL_WHITE, "ף"); + if (HitDispNo == blessNoid) ShowBottomLineString(FONT_PAL_WHITE, "宠物祝福。"); if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == blessNoid)){ - ףѡ = 4; - if (!ףڿ) + 祝福窗口选中 = 4; + if (!祝福窗口开关) lssproto_petbless_send(sockfd, petStatusNo, -4); - ףڿ = TRUE; + 祝福窗口开关 = TRUE; } } - if (ףڿ){ + if (祝福窗口开关){ StockDispBuffer(x + 115, y + 345, DISP_PRIO_MENU, 55259, 1); - StockFontBuffer(x - 10, y + 325, FONT_PRIO_FRONT, 0, ף, 0); + StockFontBuffer(x - 10, y + 325, FONT_PRIO_FRONT, 0, 祝福窗口内容, 0); blessNoid = StockDispBuffer(x + 65, y + 367, DISP_PRIO_IME3, 55233, 2); if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == blessNoid)){ - if (ףڿ) lssproto_petbless_send(sockfd, petStatusNo, ףѡ); - ףڿ = FALSE; + if (祝福窗口开关) lssproto_petbless_send(sockfd, petStatusNo, 祝福窗口选中); + 祝福窗口开关 = FALSE; } blessNoid = StockDispBuffer(x + 165, y + 367, DISP_PRIO_IME3, 55235, 2); if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == blessNoid)){ - ףڿ = FALSE; + 祝福窗口开关 = FALSE; } } } @@ -15145,13 +15145,13 @@ void MenuProc(void) #endif #ifdef _PETCOM_ extern void ShowBottomLineString(int iColor, LPSTR lpstr); - static int ͼƬ = 0; - static int 㴰ڰťID = 0; - 㴰ڰťID = StockDispBuffer(x + 193, y + 5, DISP_PRIO_IME3, CG_PETCOM_CHANGE_BTN + ͼƬ, 2); - if (HitDispNo == 㴰ڰťID) - ShowBottomLineString(FONT_PAL_WHITE, "ɳ㡣"); - if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == 㴰ڰťID)){ - ͼƬ = 1; + static int 宠算图片索引 = 0; + static int 宠算窗口按钮ID = 0; + 宠算窗口按钮ID = StockDispBuffer(x + 193, y + 5, DISP_PRIO_IME3, CG_PETCOM_CHANGE_BTN + 宠算图片索引, 2); + if (HitDispNo == 宠算窗口按钮ID) + ShowBottomLineString(FONT_PAL_WHITE, "宠物成长计算。"); + if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == 宠算窗口按钮ID)){ + 宠算图片索引 = 1; if (mouse.onceState & MOUSE_LEFT_CRICK){ petWndNo = 4; DeathAction(pActMenuWnd); @@ -15165,7 +15165,7 @@ void MenuProc(void) } } else{ - ͼƬ = 0; + 宠算图片索引 = 0; } #endif @@ -15175,7 +15175,7 @@ void MenuProc(void) CenteringStr(pet[petStatusNo].name, moji, PET_NAME_LEN); StockFontBuffer(x - 7, y, FONT_PRIO_FRONT, 0, moji, 0); y += 24; #ifdef _SHOWPETTRN_ - sprintf(moji, "[%dת]", pet[petStatusNo].trn); + sprintf(moji, "[%d转]", pet[petStatusNo].trn); StockFontBuffer(x + 108, y - 24, FONT_PRIO_FRONT, 5, moji, 0); #endif petWndFontNo[3] = StockDispBuffer(x + 66, y + 7, DISP_PRIO_IME3, CG_NAME_CHANGE_BTN + petWndBtnFlag[3], 2); @@ -15211,7 +15211,7 @@ void MenuProc(void) StockFontBuffer(x + 48 + 45, y, FONT_PRIO_FRONT, 0, moji, 0); y += 24; #endif #endif - // ԢN??? + // 佋??? if (pet[petStatusNo].earth > 0){ x2 = (int)(pet[petStatusNo].earth * 0.8); StockBoxDispBuffer(x + PET_WND_ATTR_X + 0, y + PET_WND_ATTR_Y + 0, x + PET_WND_ATTR_X + 0 + x2, y + PET_WND_ATTR_Y + 8, DISP_PRIO_IME4, SYSTEM_PAL_GREEN, 1); @@ -15237,7 +15237,7 @@ void MenuProc(void) StockFontBuffer(x + 50, y, FONT_PRIO_FRONT, 0, moji, 0); y += 24; #endif #endif - // ?N??? + // ???? if (pet[petStatusNo].water > 0){ x2 = (int)(pet[petStatusNo].water * 0.8); @@ -15264,7 +15264,7 @@ void MenuProc(void) StockFontBuffer(x + 50, y, FONT_PRIO_FRONT, 0, moji, 0); y += 24; #endif #endif - // ?N??? + // ???? if (pet[petStatusNo].fire > 0){ x2 = (int)(pet[petStatusNo].fire * 0.8); StockBoxDispBuffer(x + PET_WND_ATTR_X + 0, y + PET_WND_ATTR_Y + 0, x + PET_WND_ATTR_X + 0 + x2, y + PET_WND_ATTR_Y + 8, DISP_PRIO_IME4, SYSTEM_PAL_RED, 1); @@ -15289,7 +15289,7 @@ void MenuProc(void) StockFontBuffer(x + 50, y, FONT_PRIO_FRONT, 0, moji, 0); y += 24; #endif #endif - // ?N??? + // ???? if (pet[petStatusNo].wind > 0){ x2 = (int)(pet[petStatusNo].wind * 0.8); StockBoxDispBuffer(x + PET_WND_ATTR_X + 0, y + PET_WND_ATTR_Y + 0, x + PET_WND_ATTR_X + 0 + x2, y + PET_WND_ATTR_Y + 8, DISP_PRIO_IME4, SYSTEM_PAL_YELLOW, 1); @@ -15299,7 +15299,7 @@ void MenuProc(void) sprintf_s(moji, "%3d", pet[petStatusNo].ai); StockFontBuffer(x + 50, y, FONT_PRIO_FRONT, 0, moji, 0); y += 24; y += 12; - // ????? + // ????? #ifndef _PET_SKINS petWndFontNo[7] = StockDispBuffer(x + 52, y, DISP_PRIO_IME3, CG_ALBUM_WND_SNAP_BTN_UP + petWndBtnFlag[7], 2); @@ -15314,33 +15314,33 @@ void MenuProc(void) if (pActMenuWnd3 != NULL){ if (pActMenuWnd3->hp > 0){ StockDispBuffer(((WINDOW_DISP *)pActMenuWnd3->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd3->pYobi)->my, DISP_PRIO_MENU, CG_NAME_CHANGE_WND, 1); - // V??????x + // ?????? GetKeyInputFocus(&petNameChange); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // q?ϣ??? + // ?OK??? if (HitDispNo == petWndFontNo[5]){ // ???????? KeyboardReturn(); } - // q????????? + // ????????? if (HitDispNo == petWndFontNo[6]){ - // ?????? + // ?????? DeathAction(pActMenuWnd3); pActMenuWnd3 = NULL; - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); - // ???????? + // ???????? play_se(203, 320, 240); } } - // ?????????????? + // ?????????????? if (pActMenuWnd3 != NULL){ - // ??? + // ??? StockFontBuffer2(&petNameChange); - // ?@e + // ? x = pActMenuWnd3->x + 20; y = pActMenuWnd3->y + 60; petWndFontNo[5] = StockDispBuffer(x + 60, y + 7, DISP_PRIO_IME3, CG_OK_BTN, 2); @@ -15354,36 +15354,36 @@ void MenuProc(void) // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(4, 4, 272, 348, 0, -1); - // ???Re??? + // ?????? for (i = 0; i < MENU_PET_0; i++) petWndFontNo[i] = -2; } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ // ????????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_PET_WAZA_WND, 1); - // ????????? + // ????????? for (i = 0; i < pet[petStatusNo].maxSkill; i++){ - // ????? + // ????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_IME3, CG_PET_WAZA_BAR_1 + i, 1); } // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ???????????? + // ???????????? if (HitDispNo == petWndFontNo[7]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; // ????????????? petWndNo = 1; - // ???????? + // ???????? play_se(203, 320, 240); } } - // q?????????? + // ?????????? if (HitDispNo == petWndFontNo[8] || joy_con[0] & JOY_A){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_A){ @@ -15393,7 +15393,7 @@ void MenuProc(void) if (petStatusNo <= -1) petStatusNo = 4; if (pet[petStatusNo].useFlag == TRUE) break; } - // ???Re??? + // ?????? for (i = 0; i < MENU_PET_0; i++) petWndFontNo[i] = -2; // ????? play_se(217, 320, 240); @@ -15405,12 +15405,12 @@ void MenuProc(void) petWndBtnFlag[8] = TRUE; } else{ - // ??? + // ??? petWndBtnFlag[8] = FALSE; } } else{ - // ??? + // ??? petWndBtnFlag[8] = FALSE; } // ??????????? @@ -15423,7 +15423,7 @@ void MenuProc(void) if (petStatusNo >= 5) petStatusNo = 0; if (pet[petStatusNo].useFlag == TRUE) break; } - // ???Re??? + // ?????? for (i = 0; i < MENU_PET_0; i++) petWndFontNo[i] = -2; // ????? play_se(217, 320, 240); @@ -15435,23 +15435,23 @@ void MenuProc(void) petWndBtnFlag[9] = TRUE; } else{ - // ??? + // ??? petWndBtnFlag[9] = FALSE; } } else{ - // ??? + // ??? petWndBtnFlag[9] = FALSE; } // ???????? if (pActMenuWnd != NULL){ - // ?@e + // ? x = pActMenuWnd->x + 32; y = pActMenuWnd->y + 252; - // C? + // ? for (i = 0; i < pet[petStatusNo].maxSkill; i++){ // ???????? if (petSkill[petStatusNo][i].useFlag == TRUE){ @@ -15459,13 +15459,13 @@ void MenuProc(void) if (HitFontNo == petWndFontNo[i]){ // ?????? char *splitPoint = petSkill[petStatusNo][i].memo; - // ????? + // ????? while (1){ - // ????????? + // ????????? if (strlen(splitPoint) > 24){ strncpy_s(moji, splitPoint, 24); - moji[24] = NULL; // Z?????? - // u??S???? + moji[24] = NULL; // ?????? + // ?????? if (GetStrLastByte(moji) == 3){ moji[23] = NULL; splitPoint += 23; @@ -15485,37 +15485,37 @@ void MenuProc(void) #ifdef _STONDEBUG_ // ???????? if( mouse.onceState & MOUSE_RIGHT_CRICK ){ - // ????????? + // ????????? if( petSkill[ petStatusNo ][ i ].field != PETSKILL_FIELD_BATTLE ){ int j; int cnt = 0; switch( petSkill[ petStatusNo ][ i ].skillId ){ - case PETSKILL_MERGE: // ?G????? - // K????????????????? + case PETSKILL_MERGE: // ?????? + // ????????????????? for( j = MAX_ITEMSTART ; j < MAX_ITEMSTART ; j++ ){ if( ItemBuffer[ j ].mixFlag == 1 ) cnt++; } break; - case PETSKILL_MERGE2: // ??????? - // K????????????????? + case PETSKILL_MERGE2: // ??????? + // ????????????????? for( j = MAX_ITEMSTART ; j < MAX_ITEM ; j++ ){ if( ItemBuffer[ j ].mixFlag == 2 ) cnt++; } break; } - // K???????? + // ???????? if( cnt >= 2 ){ - // ???? + // ???? moji[ 0 ] = NULL; - // ???????????? + // ???????????? for( j = MAX_ITEMSTART ; j < MAX_ITEM ; j++ ){ - // ?????????? + // ?????????? if( ItemBuffer[ j ].mixFlag >= TRUE ){ char work[ 256 ]; - // ??? + // ??? sprintf_s( work,"%d|", j ); strcat_s( moji, work ); // ?????? @@ -15525,13 +15525,13 @@ void MenuProc(void) // ???|???????? moji[ strlen( moji ) - 1 ] = NULL; - // ?????????????????? + // ?????????????????? if( bNewServer) lssproto_PS_send( sockfd, mixPetNo, i, 0, moji ); else old_lssproto_PS_send( sockfd, mixPetNo, i, 0, moji ); - // ?????? + // ?????? play_se(212, 320, 240); } else{ @@ -15547,23 +15547,23 @@ void MenuProc(void) #endif // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ???????????????????????????????????? + // ???????????????????????????????????? if (petSkill[petStatusNo][i].field != PETSKILL_FIELD_BATTLE && pActPet2 == NULL /* && MenuToggleFlag & JOY_CTRL_I*/){ int j; int cnt = 0; - // ????? + // ????? switch (petSkill[petStatusNo][i].skillId){ - case PETSKILL_MERGE: // ?G????? - // K????????????????? + case PETSKILL_MERGE: // ?????? + // ????????????????? for (j = MAX_ITEMSTART; j < MAX_ITEM; j++){ if (ItemBuffer[j].mixFlag == 1) cnt++; } break; - case PETSKILL_MERGE2: // ??????? - // K????????????????? + case PETSKILL_MERGE2: // ??????? + // ????????????????? for (j = MAX_ITEMSTART; j < MAX_ITEM; j++){ if (ItemBuffer[j].mixFlag == 2) cnt++; } @@ -15606,22 +15606,22 @@ void MenuProc(void) break; #endif } - // K???????? + // ???????? if (cnt >= 2){ // ???????????????? if (pActPet2 == NULL){ - // ????????? + // ????????? pActPet2 = MakeAnimDisp(750, 240, pet[petStatusNo].graNo, ANIM_DISP_MIX_PET_INIT); - // ????k??? + // ??????? ItemMixPetNo = petStatusNo; } - // ?k??? + // ???? SelectWazaNo = i; - // ????????k??? + // ??????????? mixPetNo = petStatusNo; - // ?????? + // ?????? play_se(212, 320, 240); } else{ @@ -15632,22 +15632,22 @@ void MenuProc(void) if (!(MenuToggleFlag & JOY_CTRL_I) || (MenuToggleFlag & JOY_CTRL_I && itemWndNo != 0)){ int j; MenuToggleFlag |= JOY_CTRL_I; // CTRL + I ?? - // ????????k???? + // ???????????? for (j = 0; j < MENU_ITEM_0; j++) itemWndFontNo[j] = -2; for (j = 0; j < MENU_ITEM_0; j++) itemWndBtnFlag[j] = 0; itemWndNo = 0; mouse.itemNo = -1; itemWndDropGold = 0; - // ?????????? + // ?????????? if (BattleResultWndFlag >= 1) DeathMenuAction(); - // ?????????? + // ?????????? DeathMenuAction2(); // ???????? saveUserSetting(); - MenuToggleFlag &= ~JOY_CTRL_M; // ??????????? - // Pf??????????? + MenuToggleFlag &= ~JOY_CTRL_M; // ??????????? + // ??????????? BattleResultWndFlag = FALSE; // ????????? MapWmdFlagBak = FALSE; @@ -15692,11 +15692,11 @@ void MenuProc(void) y += 25; } - // ?@e + // ? x = pActMenuWnd->x + 20; y = pActMenuWnd->y + 330; - // ????????? + // ????????? petWndFontNo[7] = StockDispBuffer(x + 100 + 70, y, DISP_PRIO_IME3, CG_RETURN_BTN, 2); petWndFontNo[8] = StockDispBuffer(x + 16 + 16 + 8, y, DISP_PRIO_IME3, CG_PREV_BTN + petWndBtnFlag[8], 2); petWndFontNo[9] = StockDispBuffer(x + 50 + 16 + 18, y, DISP_PRIO_IME3, CG_NEXT_BTN + petWndBtnFlag[9], 2); @@ -15715,19 +15715,19 @@ void MenuProc(void) else{ if (pActMenuWnd->hp > 0){ StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_PETCOM_WND, 1); - int ťID = StockDispBuffer(pActMenuWnd->x + 190, pActMenuWnd->y + 300, DISP_PRIO_IME3, CG_RETURN_BTN, 2); - if ((mouse.onceState & MOUSE_LEFT_CRICK) && (HitDispNo == ťID)){ + int 按钮ID = StockDispBuffer(pActMenuWnd->x + 190, pActMenuWnd->y + 300, DISP_PRIO_IME3, CG_RETURN_BTN, 2); + if ((mouse.onceState & MOUSE_LEFT_CRICK) && (HitDispNo == 按钮ID)){ DeathAction(pActMenuWnd); pActMenuWnd = NULL; petWndNo = 1; play_se(203, 320, 240); break; } - static int ť = 0; - static int Ұť = 0; - ťID = StockDispBuffer(pActMenuWnd->x + 60, pActMenuWnd->y + 300, DISP_PRIO_IME3, CG_PREV_BTN + ť, 2); - if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == ťID)){ - ť = 1; + static int 宠算左按钮索引 = 0; + static int 宠算右按钮索引 = 0; + 按钮ID = StockDispBuffer(pActMenuWnd->x + 60, pActMenuWnd->y + 300, DISP_PRIO_IME3, CG_PREV_BTN + 宠算左按钮索引, 2); + if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == 按钮ID)){ + 宠算左按钮索引 = 1; if (mouse.onceState & MOUSE_LEFT_CRICK){ while (1){ petStatusNo--; @@ -15738,11 +15738,11 @@ void MenuProc(void) } } else{ - ť = 0; + 宠算左按钮索引 = 0; } - ťID = StockDispBuffer(pActMenuWnd->x + 104, pActMenuWnd->y + 300, DISP_PRIO_IME3, CG_NEXT_BTN + Ұť, 2); - if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == ťID)){ - Ұť = 1; + 按钮ID = StockDispBuffer(pActMenuWnd->x + 104, pActMenuWnd->y + 300, DISP_PRIO_IME3, CG_NEXT_BTN + 宠算右按钮索引, 2); + if ((mouse.state & MOUSE_LEFT_CRICK && HitDispNo == 按钮ID)){ + 宠算右按钮索引 = 1; if (mouse.onceState & MOUSE_LEFT_CRICK){ while (1){ petStatusNo++; @@ -15754,7 +15754,7 @@ void MenuProc(void) } } else{ - Ұť = 0; + 宠算右按钮索引 = 0; } #define _PETCMOX 10 if (pet[petStatusNo].freeName[0] != NULL) @@ -15860,7 +15860,7 @@ void MenuProc(void) //? ??????????? *******************************************************/ if (MenuToggleFlag & JOY_CTRL_I){ int x1 = 0, y1 = 0; -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 SkillWndflag = false ; /* if( pActMenuWnd3 != NULL ) { DeathAction ( pActMenuWnd3 ) ; @@ -15872,7 +15872,7 @@ void MenuProc(void) #ifdef _NPC_DANCE if (pc.iDanceMode) { - StockChatBufferLine("״̬޷ʹõ", FONT_PAL_RED); + StockChatBufferLine("特殊状态无法使用道具", FONT_PAL_RED); MenuToggleFlag ^= JOY_CTRL_I; itemWndNo = 3; } @@ -15882,36 +15882,36 @@ void MenuProc(void) case 0: if (pActMenuWnd2 == NULL) { - // ????????? + // ????????? #ifndef _PET_ITEM pActMenuWnd2 = MakeWindowDisp(365, 4, 271, 440, 0, -1); #ifdef _NEW_ITEM_ - ҳ = 0; + 道具栏页数 = 0; #endif #ifdef _MAGIC_ITEM_ - ߹⻷Act=NULL; + 道具光环Act=NULL; #endif InitItem(pActMenuWnd2->x, pActMenuWnd2->y, 0); #else pActMenuWnd2 = MakeWindowDisp(351, 4, 271, 440, 0, -1); #ifdef _NEW_ITEM_ - ҳ = 0; + 道具栏页数 = 0; #endif pActMenuWnd2->x += 14; ((WINDOW_DISP*)pActMenuWnd2->pYobi)->mx = 271 / 2 + pActMenuWnd2->x; InitItem(pActMenuWnd2->x, pActMenuWnd2->y, g_bPetItemWndFlag); #endif - // k???????k???? + // ??????????? itemNo = -1; - // ????k???? + // ???????? ItemMixPetNo = -1; - // ???????????k??????? + // ?????????????????? if (MenuToggleFlag & JOY_CTRL_E && mailWndNo == MAIL_WND_ITEM){ - // ??????????? + // ??????????? MenuToggleFlag &= ~JOY_CTRL_E; DeathMenuAction(); } -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 MymoneyBuffer.buffer[0] = NULL; MymoneyBuffer.cnt = 0; MymoneyBuffer.cursor = 0; @@ -15928,7 +15928,7 @@ void MenuProc(void) for (i = 0; i < MAX_PET; i++) { - // ֻ + // 有这只宠 if (pet[i].useFlag) { nSelectPet = i; @@ -15939,16 +15939,16 @@ void MenuProc(void) } else { - //andy_log װλ޸Ĵ + //andy_log 装备栏位修改处 if (pActMenuWnd2->hp > 0) { #ifdef _PET_ITEM - // Ƿ˵Ӵߵıǩ + // 检查是否按下了道具视窗左边的标签 x1 = pActMenuWnd2->x - 21; y1 = pActMenuWnd2->y + 12; if (g_bPetItemWndFlag) { - if (MakeHitBox(x1, y1, x1 + 23, y1 + 60, DISP_PRIO_IME3) == TRUE) // װ + if (MakeHitBox(x1, y1, x1 + 23, y1 + 60, DISP_PRIO_IME3) == TRUE) // 按下了人物装备 if (mouse.onceState & MOUSE_LEFT_CRICK) { g_bPetItemWndFlag = false; @@ -15957,7 +15957,7 @@ void MenuProc(void) } else { - if (MakeHitBox(x1, y1 + 78, x1 + 23, y1 + 142, DISP_PRIO_IME3) == TRUE) // ˳װ + if (MakeHitBox(x1, y1 + 78, x1 + 23, y1 + 142, DISP_PRIO_IME3) == TRUE) // 按下了宠物装备 if (mouse.onceState & MOUSE_LEFT_CRICK) { g_bPetItemWndFlag = true; @@ -15978,9 +15978,9 @@ void MenuProc(void) #endif #endif -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 #ifdef _PET_ITEM - if (!g_bPetItemWndFlag) // װҪʾµĶ + if (!g_bPetItemWndFlag) // 人物装备栏才要显示以下的东西 #endif { x1 = pActMenuWnd2->x + 175; @@ -16014,44 +16014,44 @@ void MenuProc(void) // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK) { - // ¹رť + // 按下关闭钮 if (HitDispNo == itemWndFontNo[0]){ #ifdef _MAGIC_ITEM_ - if(߹⻷Act) DeathAction(߹⻷Act); - ߹⻷Act=NULL; + if(道具光环Act) DeathAction(道具光环Act); + 道具光环Act=NULL; extern void ClearMagicItemWin(); ClearMagicItemWin(); #endif DeathAction(pActMenuWnd2); pActMenuWnd2 = NULL; - // ???? + // ???? DeathAction(pActPet2); pActPet2 = NULL; - // ????k???? + // ???????? ItemMixPetNo = -1; - // ??????????? + // ??????????? MenuToggleFlag ^= JOY_CTRL_I; - // ?????????????????? + // ?????????????????? if (MenuToggleFlag & JOY_CTRL_S){ MenuToggleFlag ^= JOY_CTRL_S; // CTRL + S ?? - // ?????????? + // ?????????? DeathMenuAction(); } - // ???????? + // ???????? play_se(203, 320, 240); itemNo = -1; -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif } - // + // 按了咒术 if (HitDispNo == itemWndFontNo[1]){ itemWndNo = 1; DeathAction(pActMenuWnd2); -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif @@ -16092,10 +16092,10 @@ void MenuProc(void) } } #ifdef _PET_ITEM - // ĿǰڳװӴ + // 目前处在宠物装备视窗 if (g_bPetItemWndFlag) { - // ͷ + // 按下了左箭头 if (HitDispNo == itemWndFontNo[5]) { if (nSelectPet != -1) @@ -16111,7 +16111,7 @@ void MenuProc(void) while (!pet[nSelectPet].useFlag); } } - // Ҽͷ + // 按下了右箭头 if (HitDispNo == itemWndFontNo[6]) { if (nSelectPet != -1) @@ -16149,7 +16149,7 @@ void MenuProc(void) else old_lssproto_DG_send(sockfd, nowGx, nowGy, itemWndDropGold); itemWndDropGold = 0; -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 Moneyflag = false; #endif @@ -16166,22 +16166,22 @@ void MenuProc(void) } // ?????? if (itemWndBtnFlag[3] == TRUE){ -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif // ??? itemWndDropGold += itemWndDropGoldInc; - // ????????????? + // ????????????? itemWndDropGoldCnt++; - // ?ƨ??? + // ???? if (itemWndDropGoldCnt >= 30){ - // ????????????? + // ????????????? itemWndDropGoldCnt = 0; // ???????? if (itemWndDropGoldInc == 0) itemWndDropGoldInc = 1; else{ - // ????? + // ????? itemWndDropGoldInc *= 5; // ???????? if (itemWndDropGoldInc > 10000) itemWndDropGoldInc = 10000; @@ -16205,9 +16205,9 @@ void MenuProc(void) play_se(220, 320, 240); } else{ - // ????? + // ????? itemWndDropGoldInc = 0; - // ????????????? + // ????????????? itemWndDropGoldCnt = 0; // ??????? itemWndBtnFlag[3] = TRUE; @@ -16218,7 +16218,7 @@ void MenuProc(void) } else - // ?????? + // ?????? itemWndBtnFlag[3] = FALSE; // ?????????? @@ -16231,21 +16231,21 @@ void MenuProc(void) // ?????? if (itemWndBtnFlag[4] == TRUE){ // ???? -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif itemWndDropGold -= itemWndDropGoldInc; - // ????????????? + // ????????????? itemWndDropGoldCnt++; - // ?ƨ??? + // ???? if (itemWndDropGoldCnt >= 30){ - // ????????????? + // ????????????? itemWndDropGoldCnt = 0; // ???????? if (itemWndDropGoldInc == 0) itemWndDropGoldInc = 1; else{ - // ????? + // ????? itemWndDropGoldInc *= 5; // ???????? if (itemWndDropGoldInc > 10000) itemWndDropGoldInc = 10000; @@ -16269,9 +16269,9 @@ void MenuProc(void) play_se(220, 320, 240); } else{ - // ????? + // ????? itemWndDropGoldInc = 0; - // ????????????? + // ????????????? itemWndDropGoldCnt = 0; // ??????? itemWndBtnFlag[4] = TRUE; @@ -16287,15 +16287,15 @@ void MenuProc(void) if (pActMenuWnd2 != NULL) { #ifdef _NEW_ITEM_ - //ҳ + //道具栏页数 for (i = 0; i < 3; i++){ - if (i == ҳ){ + if (i == 道具栏页数){ StockDispBuffer(513, 188 + i * 56, DISP_PRIO_IME3, 55113 + i, 1); } else{ BOOL flg = FALSE; if (i){ - if (pc.״̬ & 1 << i){ + if (pc.道具栏状态 & 1 << i){ flg = TRUE; } } @@ -16304,9 +16304,9 @@ void MenuProc(void) StockDispBuffer(518, 188 + i * 56, DISP_PRIO_IME3, 55110 + i, 1); if (MakeHitBox(508, 160 + i * 56, 508 + 20, 157 + i * 56 + 60, DISP_PRIO_IME4)){ if (mouse.onceState & MOUSE_LEFT_CRICK){ - ҳ = i; + 道具栏页数 = i; } - if (mouse.itemNo != -1) ҳ = i; + if (mouse.itemNo != -1) 道具栏页数 = i; } } else StockDispBuffer(518, 188 + i * 56, DISP_PRIO_IME3, 55107 + i, 1); @@ -16325,21 +16325,21 @@ void MenuProc(void) for (i = MAX_ITEM - 1; i >= 0; i--) { #ifdef _NEW_ITEM_ - int ʼ = MAX_ITEMSTART + MAX_MAXHAVEITEM*ҳ; - int ߽ = ʼ + MAX_MAXHAVEITEM; + int 道具起始 = MAX_ITEMSTART + MAX_MAXHAVEITEM*道具栏页数; + int 道具结束 = 道具起始 + MAX_MAXHAVEITEM; if (i >= MAX_ITEMSTART){ - if (i < ʼ || i >= ߽) continue; + if (i < 道具起始 || i >= 道具结束) continue; } #endif #ifdef _MAGIC_ITEM_ - if(pc.߹⻷Ч > 100000){ - if(߹⻷Act==NULL){ - ߹⻷Act = MakeAnimDisp(ItemBuffer[i].defX, ItemBuffer[i].defY,pc.߹⻷Ч, 0); + if(pc.道具光环效果 > 100000){ + if(道具光环Act==NULL){ + 道具光环Act = MakeAnimDisp(ItemBuffer[i].defX, ItemBuffer[i].defY,pc.道具光环效果, 0); } } #endif #ifdef _PET_ITEM - // ʾʱ,ϵװֻʾ߸,ľ + // 当显示宠物道具栏时,宠物身上的装备只显示七个,多的就跳过不处理 if (g_bPetItemWndFlag && (i >= PET_EQUIPNUM && i < MAX_ITEMSTART)) continue; #endif @@ -16359,7 +16359,7 @@ void MenuProc(void) ItemBuffer[i].defX + 26, ItemBuffer[i].defY + 23, DISP_PRIO_IME3) == TRUE) { #ifdef _PET_ITEM - // ʾװ + // 处理显示宠物装备 if (g_bPetItemWndFlag && (i >= PET_HEAD && i < PET_EQUIPNUM) && nSelectPet > -1) { if (pet[nSelectPet].item[i].useFlag == TRUE && (ItemBuffer[i].mixFlag <= 2 || ItemBuffer[i].mixFlag == 10)) @@ -16370,15 +16370,15 @@ void MenuProc(void) StockFontBuffer(pActMenuWnd2->x + 16, pActMenuWnd2->y + 331, FONT_PRIO_FRONT, color, pet[nSelectPet].item[i].name, 0); - // ʾƷ;ö - sprintf_s(damage_msg, ";ö(%s)", pet[nSelectPet].item[i].damage); + // 显示物品耐久度 + sprintf_s(damage_msg, "耐久度(%s)", pet[nSelectPet].item[i].damage); StockFontBuffer(pActMenuWnd2->x + 150, pActMenuWnd2->y + 331, FONT_PRIO_FRONT, color, damage_msg, 0); #ifdef _NPC_ITEMUP - ShowItemup(pet[nSelectPet].item[i].itemup,mouse.nowPoint.x,mouse.nowPoint.y);// ʾƷ״̬ + ShowItemup(pet[nSelectPet].item[i].itemup,mouse.nowPoint.x,mouse.nowPoint.y);// 显示物品升级状态 #endif #ifdef _ITEM_COUNTDOWN - ShowCounttime(pet[nSelectPet].item[i].counttime,mouse.nowPoint.x,mouse.nowPoint.y);// ʾƷʱ״̬ + ShowCounttime(pet[nSelectPet].item[i].counttime,mouse.nowPoint.x,mouse.nowPoint.y);// 显示物品倒数计时状态 #endif while (1) { @@ -16409,7 +16409,7 @@ void MenuProc(void) } } else - // װ + // 人物装备 #endif { #ifdef _ALCHEMIST @@ -16424,16 +16424,16 @@ void MenuProc(void) StockFontBuffer(pActMenuWnd2->x + 16, pActMenuWnd2->y + 331, FONT_PRIO_FRONT, color, pc.item[i].name, 0); { - // ʾƷ;ö + // 显示物品耐久度 char damage_msg[256]; - sprintf_s(damage_msg, ";ö(%s)", pc.item[i].damage); + sprintf_s(damage_msg, "耐久度(%s)", pc.item[i].damage); StockFontBuffer(pActMenuWnd2->x + 150, pActMenuWnd2->y + 331, FONT_PRIO_FRONT, color, damage_msg, 0); } #ifdef _NPC_ITEMUP - ShowItemup(pc.item[i].itemup, mouse.nowPoint.x, mouse.nowPoint.y);// ʾƷ״̬ + ShowItemup(pc.item[i].itemup, mouse.nowPoint.x, mouse.nowPoint.y);// 显示物品升级状态 #endif #ifdef _ITEM_COUNTDOWN - ShowCounttime(pc.item[i].counttime, mouse.nowPoint.x, mouse.nowPoint.y);// ʾƷʱ״̬ + ShowCounttime(pc.item[i].counttime, mouse.nowPoint.x, mouse.nowPoint.y);// 显示物品倒数计时状态 #endif while (1){ if (strlen(splitPoint) > 28){ @@ -16497,8 +16497,8 @@ void MenuProc(void) { if (nSelectPet > -1 && !(mouse.itemNo >= CHAR_EQUIPPLACENUM && i >= CHAR_EQUIPPLACENUM)) { - if (i < CHAR_EQUIPPLACENUM && nSelectPet == pc.ridePetNo) // Ҫװȥ,Dz - StockChatBufferLine("費װװ", FONT_PAL_YELLOW); + if (i < CHAR_EQUIPPLACENUM && nSelectPet == pc.ridePetNo) // 若是要装上去,检查是不是骑宠 + StockChatBufferLine("骑宠不可装装备!", FONT_PAL_YELLOW); else lssproto_PetItemEquip_send(sockfd, nowGx, nowGy, nSelectPet, mouse.itemNo, i); } @@ -16528,7 +16528,7 @@ void MenuProc(void) { ItemUseTime = TimeGetTime(); #ifdef _PET_ITEM - // Ŀǰװװװʱ,Զеװ + // 若目前是在人物装备栏且想装备宠物装备时,自动切到宠物装备栏 if (!g_bPetItemWndFlag) { if (pc.item[i].useFlag && pc.item[i].type >= ITEM_PET_HEAD && pc.item[i].type < ITEM_CATEGORYNUM) @@ -16538,7 +16538,7 @@ void MenuProc(void) break; } } - // Ŀǰڳװװװʱ,Զеװ + // 若目前是在宠物装备栏且想装备人物装备时,自动切到人物装备栏 else { if (pc.item[i].useFlag && pc.item[i].type < ITEM_PET_HEAD && i >= MAX_ITEMSTART) @@ -16552,14 +16552,14 @@ void MenuProc(void) if (pc.item[i].useFlag != TRUE || pc.item[i].field == ITEM_FIELD_BATTLE || pc.transmigration == 0 && pc.level < pc.item[i].level){ play_se(220, 320, 240); } - else{ // ??u?? + else{ // ???? mouse.itemNo = -1; switch (pc.item[i].target){ - case ITEM_TARGET_MYSELF: // ?? + case ITEM_TARGET_MYSELF: // ?? if (eventWarpSendFlag == FALSE){ #ifdef _ITEM_JIGSAW if (strlen(pc.item[i].jigsaw)){ - if (pc.item[i].graNo >= 25151 && pc.item[i].graNo <= 25159 //װͼ + if (pc.item[i].graNo >= 25151 && pc.item[i].graNo <= 25159 //底版道具图 && strcmp(pc.item[i].jigsaw, "111111111") || pc.item[i].graNo == 25150){ SetJigsaw(pc.item[i].graNo, pc.item[i].jigsaw); @@ -16589,9 +16589,9 @@ void MenuProc(void) else{ if (!DrawJigsawFlag){ if (pc.item[i].graNo >= 25151 && pc.item[i].graNo <= 25159) - StockChatBufferLine("ȿƴͼװ", FONT_PAL_YELLOW); + StockChatBufferLine("请先开启大拼图底版", FONT_PAL_YELLOW); else - StockChatBufferLine("ȿСƴͼװ", FONT_PAL_YELLOW); + StockChatBufferLine("请先开启小拼图底版", FONT_PAL_YELLOW); break; } if (statusWndNo == 4 && CheckJigsaw(pc.item[i].graNo)) @@ -16602,10 +16602,10 @@ void MenuProc(void) if (CheckJigsaw(pc.item[i].graNo)){ if (!DrawJigsawFlag){ if (pc.item[i].graNo >= 25151 && pc.item[i].graNo <= 25159){ - StockChatBufferLine("ȿƴͼװ", FONT_PAL_YELLOW); + StockChatBufferLine("请先开启大拼图底版", FONT_PAL_YELLOW); } else{ - StockChatBufferLine("ȿСƴͼװ", FONT_PAL_YELLOW); + StockChatBufferLine("请先开启小拼图底版", FONT_PAL_YELLOW); } break; } @@ -16621,7 +16621,7 @@ void MenuProc(void) play_se(212, 320, 240); } break; - case ITEM_TARGET_OTHER: // \????) + case ITEM_TARGET_OTHER: // ????) itemNo = i; play_se(217, 320, 240); if (!(MenuToggleFlag & JOY_CTRL_S)){ @@ -16649,11 +16649,11 @@ void MenuProc(void) case ITEM_TARGET_PET: if (eventWarpSendFlag == FALSE) { - // װװ򲻶 + // 若是在已装备的装备上连点二下则不动作 if (i >= PET_HEAD && i < PET_EQUIPNUM) break; - if (pc.ridePetNo != -1 && nSelectPet == pc.ridePetNo) // Dz - StockChatBufferLine("費װװ", FONT_PAL_YELLOW); + if (pc.ridePetNo != -1 && nSelectPet == pc.ridePetNo) // 检查是不是骑宠 + StockChatBufferLine("骑宠不可装装备!", FONT_PAL_YELLOW); else lssproto_PetItemEquip_send(sockfd, nowGx, nowGy, nSelectPet, i, -1); play_se(212, 320, 240); @@ -16664,31 +16664,31 @@ void MenuProc(void) } } //#ifdef _STONDEBUG_ - // ??????????????????????Τ + // ?????????????????????? if (mouse.onceState & MOUSE_RIGHT_CRICK && mouse.itemNo == -1) { int j; int cnt = 0; - // ????????????????????????????? + // ????????????????????????????? if (pc.item[i].useFlag == TRUE && i >= MAX_ITEMSTART /*&& pc.item[ i ].sendFlag & ITEM_FLAG_MIX */) { int j; int flag = 0; - // k????k???? + // ???????? if (itemNo != -1) itemNo = -1; - // ?????? + // ?????? for (j = MAX_ITEMSTART; j < MAX_ITEM; j++) { - // ?????????? + // ?????????? if (ItemBuffer[j].mixFlag >= TRUE){ flag = ItemBuffer[j].mixFlag; break; } } - // ????????? + // ????????? if (ItemBuffer[i].mixFlag == FALSE) { - // ????k???????? + // ???????????? if (flag == 0){ // ???? if (pc.item[i].sendFlag & ITEM_FLAG_COOKING_MIX){ @@ -16746,10 +16746,10 @@ void MenuProc(void) } #endif else{ -#ifdef _ALCHEMIST // һǷ +#ifdef _ALCHEMIST // 第一个是否精炼物 if (CheckPetSkill(PETSKILL_ALCHEMIST) == TRUE && pc.item[i].sendFlag & ITEM_FLAG_MIX && - strcmp(pc.item[i].alch, "") != NULL){ + strcmp(pc.item[i].alch, "杂") != NULL){ ItemBuffer[i].mixFlag = 9; } else @@ -16788,7 +16788,7 @@ void MenuProc(void) // ????? play_se(217, 320, 240); } -#ifdef _ALCHEMIST // һ֮ľ +#ifdef _ALCHEMIST // 第一个之后的精炼物 else if (flag == 9){ if (strcmp(pc.item[i].alch, pc.item[j].alch) == FALSE) { ItemBuffer[i].mixFlag = 9; @@ -16827,7 +16827,7 @@ void MenuProc(void) } else { -#ifdef _ALCHEMIST // ȡһϳʱ... +#ifdef _ALCHEMIST // 取消一个合成物时... if (ItemBuffer[i].mixFlag == 9) { int k; ItemBuffer[i].mixFlag = 1; @@ -16887,7 +16887,7 @@ void MenuProc(void) saveUserSetting(); play_se(202, 320, 240); - MenuToggleFlag &= JOY_CTRL_I; // ?????????????? + MenuToggleFlag &= JOY_CTRL_I; // ?????????????? MenuToggleFlag |= JOY_CTRL_P; // ?????????? } } @@ -16948,13 +16948,13 @@ void MenuProc(void) } #endif else if (ItemBuffer[i].mixFlag == 3) - { // ?????? - // ???? + { // ?????? + // ???? StockDispBuffer(pActPet2->x, pActPet2->y - 16, DISP_PRIO_DRAG, pc.item[i].graNo, 0); } else if (ItemBuffer[i].mixFlag == 4) - { // ???????? - // ???? + { // ???????? + // ???? StockDispBuffer(pActPet2->x, pActPet2->y, ItemBuffer[i].dispPrio, pc.item[i].graNo, 0); } #ifdef _MAGIC_ITEM_ @@ -16968,56 +16968,56 @@ void MenuProc(void) } } - // ʾϳ + // 显示合成文字 if (ItemBuffer[i].mixFlag >= TRUE) { // ????????????? if (pc.item[i].useFlag == TRUE){ - // ͨϳɵʱ + // 普通合成的时候 if (ItemBuffer[i].mixFlag == 1){ - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "ϳ", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "合成", 0); } else - // ϳɵʱ + // 料理合成的时候 if (ItemBuffer[i].mixFlag == 2){ - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "料理", 0); } #ifdef _ALCHEMIST if (ItemBuffer[i].mixFlag == 9){ - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "精炼", 0); } #endif if (ItemBuffer[i].mixFlag == 10){// PETSKILL_INSLAY ANDY_ADD - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "精工", 0); } if (ItemBuffer[i].mixFlag == 11){// PETSKILL_FIXITEM ANDY_ADD - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "޸", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "修复", 0); } #ifdef _ITEM_INTENSIFY if (ItemBuffer[i].mixFlag == 12){ - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "ǿ", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "强化", 0); } #endif #ifdef _ITEM_UPINSLAY if (ItemBuffer[i].mixFlag == 13){ - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "凿孔", 0); } #endif #ifdef _MAGIC_ITEM_ if (ItemBuffer[i].mixFlag == 14){ - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "主体", 0); } if (ItemBuffer[i].mixFlag == 15){ - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "ʯ", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "宝石", 0); } if (ItemBuffer[i].mixFlag == 16){ - StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "ף", 0); + StockFontBuffer(ItemBuffer[i].defX - 17, ItemBuffer[i].defY, FONT_PRIO_FRONT, 0, "祝福", 0); } #endif } else{ - // ??????? + // ??????? ItemBuffer[i].mixFlag = TRUE; } } @@ -17031,8 +17031,8 @@ void MenuProc(void) if(MagicItemActAddr){ if(MagicItemPosState[0]){ if(MagicItemCombinData[0]) ItemBuffer[MagicItemCombinData[0]].mixFlag= 0; - // if(mouse.itemNo!=-1 && pc.item[mouse.itemNo].==25) { - if(mouse.itemNo!=-1 && pc.item[mouse.itemNo].>=0&&pc.item[mouse.itemNo].<20 && pc.item[mouse.itemNo].!=16) { + // if(mouse.itemNo!=-1 && pc.item[mouse.itemNo].道具类型==25) { + if(mouse.itemNo!=-1 && pc.item[mouse.itemNo].道具类型>=0&&pc.item[mouse.itemNo].道具类型<20 && pc.item[mouse.itemNo].道具类型!=16) { MagicItemCombinData[0] = mouse.itemNo; ItemBuffer[mouse.itemNo].mixFlag=14; } @@ -17040,7 +17040,7 @@ void MenuProc(void) } else if(MagicItemPosState[1]){ if(MagicItemCombinData[1]) ItemBuffer[MagicItemCombinData[1]].mixFlag= 0; - if(mouse.itemNo!=-1 && pc.item[mouse.itemNo].==38){ + if(mouse.itemNo!=-1 && pc.item[mouse.itemNo].道具类型==38){ ItemBuffer[mouse.itemNo].mixFlag=15; MagicItemCombinData[1] = mouse.itemNo; }else MagicItemCombinData[1]=-1; @@ -17048,7 +17048,7 @@ void MenuProc(void) } else if(MagicItemPosState[2]){ if(MagicItemCombinData[2]) ItemBuffer[MagicItemCombinData[2]].mixFlag= 0; - if(mouse.itemNo!=-1 && pc.item[mouse.itemNo].==39) { + if(mouse.itemNo!=-1 && pc.item[mouse.itemNo].道具类型==39) { ItemBuffer[mouse.itemNo].mixFlag=16; MagicItemCombinData[2] = mouse.itemNo; }else MagicItemCombinData[2]=-1; @@ -17067,7 +17067,7 @@ void MenuProc(void) lssproto_PetItemEquip_send(sockfd, nowGx, nowGy, nSelectPet, mouse.itemNo, -2); else #endif - // ?????t?? + // ??????? if (bNewServer) { lssproto_DI_send(sockfd, nowGx, nowGy, mouse.itemNo); } @@ -17077,7 +17077,7 @@ void MenuProc(void) } // ?????????? ItemBuffer[mouse.itemNo].dragFlag = FALSE; - // ????????k???? + // ???????????? mouse.itemNo = -1; // ????? play_se(217, 320, 240); @@ -17089,15 +17089,15 @@ void MenuProc(void) // ?????????????? if (mouse.onceState & MOUSE_RIGHT_CRICK) { - // ???t??? + // ?????? // ?????????? ItemBuffer[mouse.itemNo].dragFlag = FALSE; - // ????????k???? + // ???????????? mouse.itemNo = -1; // ????? play_se(217, 320, 240); } - // ???? + // ???? #ifdef _PET_ITEM if (g_bPetItemWndFlag && nSelectPet > -1 && (mouse.itemNo >= PET_HEAD && mouse.itemNo < PET_EQUIPNUM) && pet[nSelectPet].useFlag == TRUE) StockDispBuffer(mouse.nowPoint.x, mouse.nowPoint.y, DISP_PRIO_DRAG, pet[nSelectPet].item[mouse.itemNo].graNo, 0); @@ -17109,25 +17109,25 @@ void MenuProc(void) if (pActMenuWnd2 != NULL) { #ifdef _DIEJIA_ - static int ʱ = 0; - int ťID = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx - 60, pActMenuWnd2->y + 422, DISP_PRIO_IME3, 55246, 2); + static int 叠加时间 = 0; + int 按钮ID = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx - 60, pActMenuWnd2->y + 422, DISP_PRIO_IME3, 55246, 2); if (mouse.onceState & MOUSE_LEFT_CRICK){ - if (HitDispNo == ťID){ - if (TimeGetTime() > ʱ){ - ʱ = TimeGetTime() + 4000; + if (HitDispNo == 按钮ID){ + if (TimeGetTime() > 叠加时间){ + 叠加时间 = TimeGetTime() + 4000; int itemMax = CHAR_EQUIPPLACENUM + MAX_MAXHAVEITEM; #ifdef _NEW_ITEM_ - if (pc.״̬ & 1 << 1){ + if (pc.道具栏状态 & 1 << 1){ itemMax += MAX_MAXHAVEITEM; } - if (pc.״̬ & 1 << 2){ + if (pc.道具栏状态 & 1 << 2){ itemMax += MAX_MAXHAVEITEM; } #endif - chatStrSendForServer("/",0); + chatStrSendForServer("/叠加",0); } else{ - StockChatBufferLine("̫Ƶ", FONT_PAL_YELLOW); + StockChatBufferLine("你点击的太频繁啦!", FONT_PAL_YELLOW); } } } @@ -17142,12 +17142,12 @@ void MenuProc(void) if (g_bPetItemWndFlag) { itemWndFontNo[1] = -2; - // ʾͷ + // 显示左箭头 itemWndFontNo[5] = StockDispBuffer(pActMenuWnd2->x + 188, pActMenuWnd2->y + 142, DISP_PRIO_IME3, 26047, 2); - // ʾҼͷ + // 显示右箭头 itemWndFontNo[6] = StockDispBuffer(pActMenuWnd2->x + 236, pActMenuWnd2->y + 142, DISP_PRIO_IME3, 26048, 2); - // ʾ + // 显示宠物资料 if (nSelectPet > -1 && pet[nSelectPet].useFlag) { char szTemp[16]; @@ -17155,7 +17155,7 @@ void MenuProc(void) if (wSpecies < 0 || wSpecies >= MAX_PET_SPECIES) wSpecies = MAX_PET_SPECIES; - // ʾװĵͼ + // 显示宠物装备栏的底图 for (i = 0; i < PET_EQUIPNUM; i++) { if (byShowPetItemBackground[wSpecies] & (1 << i)) @@ -17164,12 +17164,12 @@ void MenuProc(void) StockDispBuffer(ItemBuffer[i].defX, ItemBuffer[i].defY, DISP_PRIO_IME3, nPetItemEquipBmpNumber[i][1], 0); } - // ʾ + // 显示宠物名称 if (strlen(pet[nSelectPet].freeName) > 0) StockFontBuffer(pActMenuWnd2->x + 148, pActMenuWnd2->y + 17, FONT_PRIO_FRONT, 0, pet[nSelectPet].freeName, 0); else StockFontBuffer(pActMenuWnd2->x + 148, pActMenuWnd2->y + 17, FONT_PRIO_FRONT, 0, pet[nSelectPet].name, 0); - // ʾ + // 显示宠物的属性 _itoa_s(pet[nSelectPet].maxHp, szTemp, 10); StockFontBuffer(pActMenuWnd2->x + 222, pActMenuWnd2->y + 40, FONT_PRIO_FRONT, FONT_PAL_WHITE, szTemp, 0); _itoa_s(pet[nSelectPet].atk, szTemp, 10); @@ -17184,7 +17184,7 @@ void MenuProc(void) nSelectPet = -1; for (i = 0; i < MAX_PET; i++) { - // ֻ + // 有这只宠 if (pet[i].useFlag) { nSelectPet = i; @@ -17197,12 +17197,12 @@ void MenuProc(void) #endif { itemWndFontNo[1] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd2->pYobi)->my, DISP_PRIO_IME3, CG_ITEM_WND_JUJUTU_BTN, 2); - // ?? + // ?? sprintf_s(moji, "%7d", pc.gold); StockFontBuffer(pActMenuWnd2->x + 32 + 48 * 3 + 16, pActMenuWnd2->y + 87, FONT_PRIO_FRONT, 0, moji, 0); - // ????? + // ????? sprintf_s(moji, "%7d", itemWndDropGold); -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 if (Moneyflag == false) StockFontBuffer(pActMenuWnd2->x + 32 + 48 * 3 + 16, pActMenuWnd2->y + 138, FONT_PRIO_FRONT, 0, moji, 0); #else @@ -17221,7 +17221,7 @@ void MenuProc(void) } break; - case 1: // ӡk????? + case 1: // ????? // ????????? if (pActMenuWnd2 == NULL){ @@ -17229,21 +17229,21 @@ void MenuProc(void) // ???? for (i = 0; i < MENU_ITEM_0; i++) itemWndFontNo[i] = -2; for (i = 0; i < MENU_ITEM_0; i++) itemWndBtnFlag[i] = 0; - jujutuNo = -1; // k??????? + jujutuNo = -1; // ??????? } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd2->hp > 0){ x = pActMenuWnd2->x + 74; y = pActMenuWnd2->y + 208; - // ?????????Ƥ + // ????????? #ifdef _READ16BITBMP if (g_bUseAlpha) StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd2->pYobi)->my + 7, DISP_PRIO_MENU, CG_JUJUTU_WND, 1); else #endif StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd2->pYobi)->my + 10, DISP_PRIO_MENU, CG_JUJUTU_WND, 1); - // ӡk??? + // ??? for (i = 0; i < 5; i++){ if (HitFontNo == itemWndFontNo[i]){ // ?????? @@ -17251,11 +17251,11 @@ void MenuProc(void) sprintf_s(moji, "%2d/%2d", magic[i].mp, pc.mp); StockFontBuffer(pActMenuWnd2->x + 74 + 81, pActMenuWnd2->y + 183, FONT_PRIO_FRONT, 0, moji, 0); while (1){ - // ????????? + // ????????? if (strlen(splitPoint) > 22){ strncpy_s(moji, splitPoint, 22); - moji[22] = NULL; // Z?????? - // u??S???? + moji[22] = NULL; // ?????? + // ?????? if (GetStrLastByte(moji) == 3){ moji[21] = NULL; splitPoint += 21; @@ -17273,7 +17273,7 @@ void MenuProc(void) } } #if 0 - // ?????? + // ?????? if( magic[ i ].memo[ 0 ] != NULL ){ strncpy_s(moji, magic[i].memo, 22); moji[22] = NULL; @@ -17286,25 +17286,25 @@ void MenuProc(void) } } #endif - // ???? + // ???? StockDispBuffer(pActMenuWnd2->x + 37, pActMenuWnd2->y + 220, DISP_PRIO_ITEM, pc.item[i].graNo, 0); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??????ۢK?? + // ???????? if (magic[i].field == MAGIC_FIELD_BATTLE || magic[i].mp > pc.mp){ // ??? play_se(220, 320, 240); } - else{ // ??u?? - // ??????? + else{ // ???? + // ??????? switch (magic[i].target){ - case MAGIC_TARGET_MYSELF: // ?? + case MAGIC_TARGET_MYSELF: // ?? // ???????????? if (eventWarpSendFlag == FALSE){ - // ?? + // ?? if (bNewServer) lssproto_MU_send(sockfd, nowGx, nowGy, i, 0); else @@ -17313,43 +17313,43 @@ void MenuProc(void) } break; - case MAGIC_TARGET_OTHER: // \????) + case MAGIC_TARGET_OTHER: // ????) jujutuNo = i; // ????? play_se(217, 320, 240); //itemNo = -1; break; #if 0 - case MAGIC_TARGET_ALLMYSIDE: // sul + case MAGIC_TARGET_ALLMYSIDE: //  - // ?? + // ?? if( bNewServer) lssproto_MU_send( sockfd, nowGx, nowGy, i, 0 ); else old_lssproto_MU_send( sockfd, nowGx, nowGy, i, 0 ); - // ? + // ? play_se( 100, 320, 240 ); break; - case MAGIC_TARGET_ALLOTHERSIDE: // ?Dul + case MAGIC_TARGET_ALLOTHERSIDE: // ? - // ?? + // ?? if( bNewServer) lssproto_MU_send( sockfd, nowGx, nowGy, i, 0 ); else old_lssproto_MU_send( sockfd, nowGx, nowGy, i, 0 ); - // ? + // ? play_se( 100, 320, 240 ); break; - case MAGIC_TARGET_ALL: // u? + case MAGIC_TARGET_ALL: // ? - // ?? + // ?? if (bNewServer) lssproto_MU_send(sockfd, nowGx, nowGy, i, 0); else old_lssproto_MU_send(sockfd, nowGx, nowGy, i, 0); - // ? + // ? play_se(100, 320, 240); break; #endif @@ -17362,42 +17362,42 @@ void MenuProc(void) if (mouse.onceState & MOUSE_LEFT_CRICK){ // ??? if (HitDispNo == itemWndFontNo[12]){ - // ?????? + // ?????? DeathAction(pActMenuWnd2); -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif pActMenuWnd2 = NULL; itemWndNo = 0; - // ???????? + // ???????? play_se(203, 320, 240); - // k??????? + // ??????? jujutuNo = -1; - // ?????????????????? + // ?????????????????? if (MenuToggleFlag & JOY_CTRL_S){ MenuToggleFlag ^= JOY_CTRL_S; // CTRL + S ?? - // ?????????? + // ?????????? DeathMenuAction(); } } - // ӡk????? + // ????? if (jujutuNo != -1 && MenuToggleFlag & JOY_CTRL_S && statusWndNo == 1){ - // ???? + // ???? for (i = 0; i < 11; i++){ - // ?k + // ? if (HitFontNo == statusWndFontNo[i] && eventWarpSendFlag == FALSE){ - // ?? + // ?? if (bNewServer) lssproto_MU_send(sockfd, nowGx, nowGy, jujutuNo, i); else old_lssproto_MU_send(sockfd, nowGx, nowGy, jujutuNo, i); - // ? + // ? play_se(100, 320, 240); - // ???? - if (magic[jujutuNo].mp > pc.mp - magic[jujutuNo].mp) jujutuNo = -1;; // ??ۢK?? + // ???? + if (magic[jujutuNo].mp > pc.mp - magic[jujutuNo].mp) jujutuNo = -1;; // ???? } } @@ -17408,37 +17408,37 @@ void MenuProc(void) if (pActMenuWnd2 != NULL){ int flag = FALSE; int col; - // ?@e + // ? x = pActMenuWnd2->x + 30; y = pActMenuWnd2->y + 35; - // Ӥ + //  for (i = 0; i < 5; i++){ if (magic[i].useFlag == TRUE){ - col = FONT_PAL_WHITE; // ??u???? - if (jujutuNo == i) col = FONT_PAL_AQUA; // k?? + col = FONT_PAL_WHITE; // ?????? + if (jujutuNo == i) col = FONT_PAL_AQUA; // ?? //cary 2001.12.3 if (pc.familySprite == 0){ - if ((magic[i].mp * 80 / 100) > pc.mp) col = FONT_PAL_RED; // ??ۢK?? + if ((magic[i].mp * 80 / 100) > pc.mp) col = FONT_PAL_RED; // ???? } else{ - if (magic[i].mp > pc.mp) col = FONT_PAL_RED; // ??ۢK?? + if (magic[i].mp > pc.mp) col = FONT_PAL_RED; // ???? } - if (magic[i].field == MAGIC_FIELD_BATTLE) col = FONT_PAL_GRAY; // ????? + if (magic[i].field == MAGIC_FIELD_BATTLE) col = FONT_PAL_GRAY; // ????? CenteringStr(magic[i].name, moji, MAGIC_NAME_LEN); itemWndFontNo[i] = StockFontBuffer(x, y, FONT_PRIO_FRONT, col, moji, 2); y += 28; flag = TRUE; } } - if (flag == FALSE) StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, "û", 0); - // ????????? + if (flag == FALSE) StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, "没有咒术", 0); + // ????????? itemWndFontNo[12] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx, pActMenuWnd2->y + 262 + 10, DISP_PRIO_IME3, CG_RETURN_BTN, 2); } } } break; - case 2: // ?????k????? + case 2: // ?????????? // ????????? if (pActMenuWnd2 == NULL){ @@ -17449,107 +17449,107 @@ void MenuProc(void) } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd2->hp > 0){ - // ?????????Ƥ + // ????????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd2->pYobi)->my, DISP_PRIO_MENU, CG_ITEM_WND_SELECT_WND, 1); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ?k??? + // ???? for (i = 0; i < 11; i++){ if (HitFontNo == itemWndFontNo[i] && eventWarpSendFlag == FALSE){ - // ӡk?? + // ?? if (jujutuNo != -1){ - // ?? + // ?? if (bNewServer) lssproto_MU_send(sockfd, nowGx, nowGy, jujutuNo, i); else old_lssproto_MU_send(sockfd, nowGx, nowGy, jujutuNo, i); - // ? + // ? play_se(100, 320, 240); - // ????????? + // ????????? if (magic[jujutuNo].mp > pc.mp - magic[jujutuNo].mp){ - // ?????? + // ?????? DeathAction(pActMenuWnd2); -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif pActMenuWnd2 = NULL; itemWndNo = 1; - // ???????? + // ???????? play_se(203, 320, 240); } } else{ // ?????? - //?????? + //?????? if (bNewServer) lssproto_ID_send(sockfd, nowGx, nowGy, itemNo, i); else old_lssproto_ID_send(sockfd, nowGx, nowGy, itemNo, i); - // ?????? + // ?????? play_se(212, 320, 240); - // ?????? + // ?????? DeathAction(pActMenuWnd2); -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif pActMenuWnd2 = NULL; itemWndNo = 0; - // ?????????????????? + // ?????????????????? if (MenuToggleFlag & JOY_CTRL_S){ MenuToggleFlag ^= JOY_CTRL_S; // CTRL + S ?? - // ?????????? + // ?????????? DeathMenuAction(); } - // ???????? + // ???????? play_se(203, 320, 240); } } } // ??? if (HitDispNo == itemWndFontNo[11]){ - // ?????? + // ?????? DeathAction(pActMenuWnd2); -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif pActMenuWnd2 = NULL; - // ӡk?? + // ?? if (jujutuNo != -1) itemWndNo = 1; else{ // ???????????? itemWndNo = 0; - // ?????????????????? + // ?????????????????? if (MenuToggleFlag & JOY_CTRL_S){ MenuToggleFlag ^= JOY_CTRL_S; // CTRL + S ?? - // ?????????? + // ?????????? DeathMenuAction(); } } - // ???????? + // ???????? play_se(203, 320, 240); } } // ???????? if (pActMenuWnd2 != NULL){ - // ?@e + // ? x = pActMenuWnd2->x + 25; y = pActMenuWnd2->y + 30; - // ????????? - // ?q + // ????????? + // ? sprintf_s(moji, "%-16s", pc.name); itemWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, moji, 2); y += 23; // ??? for (i = 0; i < 5; i++){ // ??????????? if (pet[i].useFlag == TRUE){ - // ?????? + // ?????? if (pet[i].freeName[0] != NULL) sprintf_s(moji, "%-16s", pet[i].freeName); else @@ -17560,13 +17560,13 @@ void MenuProc(void) y = 183; // ?? for (i = 0; i < 5; i++){ - // ???????????????? + // ???????????????? if (pc.id != party[i].id && party[i].useFlag == TRUE){ sprintf_s(moji, "%-16s", party[i].name); itemWndFontNo[i + 6] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, moji, 2); y += 23; } } - // ????????? + // ????????? itemWndFontNo[11] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx, pActMenuWnd2->y + 287, DISP_PRIO_IME3, CG_RETURN_BTN, 2); } } @@ -17578,10 +17578,10 @@ void MenuProc(void) //? ?????????? *******************************************************/ if (MenuToggleFlag & JOY_CTRL_M){ -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 SkillWndflag = false; #endif - // ?????k??? + // ???????? switch (mapWndNo){ case 0: // ???????? @@ -17593,43 +17593,43 @@ void MenuProc(void) } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd2->hp > 0){ - // ???????? + // ???????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd2->pYobi)->my, DISP_PRIO_MENU, CG_MAP_WND, 0); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??? + // ??? if (HitDispNo == mapWndFontNo[0]){ - // ?????? + // ?????? DeathAction(pActMenuWnd2); -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; #endif pActMenuWnd2 = NULL; - // ??????? + // ??????? MenuToggleFlag ^= JOY_CTRL_M; - // ???????? + // ???????? play_se(203, 320, 240); } } // ???????? if (pActMenuWnd2 != NULL){ - // ?@e + // ? x = pActMenuWnd2->x + 61; y = pActMenuWnd2->y + 186; - // ????q + // ???? StockFontBuffer(pActMenuWnd2->x + 22, pActMenuWnd2->y + 31, FONT_PRIO_FRONT, 0, nowFloorName, 0); - // ????????? - sprintf_s(moji, " %3d", nowGx); + // ????????? + sprintf_s(moji, "东 %3d", nowGx); StockFontBuffer(x, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); - sprintf_s(moji, " %3d", nowGy); + sprintf_s(moji, "南 %3d", nowGy); StockFontBuffer(x + 73, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, moji, 0); y += 36; - // ????? + // ????? mapWndFontNo[0] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd2->pYobi)->mx, y, DISP_PRIO_IME3, CG_CLOSE_BTN, 2); } } @@ -17641,25 +17641,25 @@ void MenuProc(void) //? ?????????? *******************************************************/ if (MenuToggleFlag & JOY_CTRL_E){ - // ?????k??? + // ???????? switch (mailWndNo){ - case MAIL_WND_VIEW: // ??????? + case MAIL_WND_VIEW: // ??????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(4, 4, 272, 440, 0, -1); - // ???Re??? + // ?????? for (i = 0; i < MENU_MAIL_0; i++) mailWndFontNo[i] = -2; - // ???????????k??S??????????? + // ???????????????????????? for (i = 0; i < MAX_ADR_BOOK; i++){ int j; - // ???????? + // ???????? for (j = 0; j < MAIL_MAX_HISTORY; j++){ - // t???? + // ???? if (MailHistory[i].noReadFlag[j] >= TRUE){ - // ???k????? + // ???????? mailViewWndPageNo = i / MAX_ADR_BOOK_COUNT; i = MAX_ADR_BOOK; break; @@ -17668,19 +17668,19 @@ void MenuProc(void) } } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ static int nowDelNo; - // ??????? + // ??????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_MAIL_WND, 1); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK && pActYesNoWnd == NULL){ int nowNo = mailViewWndPageNo * MAX_ADR_BOOK_COUNT; - // ?????? + // ?????? for (i = 0; i < 12; i += 3, nowNo++){ - // q?????????V??????? + // ???????????????? #ifdef _EXTEND_AB if (addressBook[nowNo].useFlag == TRUE || addressBook[nowNo].useFlag == 2 @@ -17690,10 +17690,10 @@ void MenuProc(void) #endif if (HitFontNo == mailWndFontNo[i]){ mailHistoryWndSelectNo = nowNo; - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ????????? + // ????????? DeathLetterAction(); // ???????? mailWndNo = MAIL_WND_HISTORY; @@ -17703,43 +17703,43 @@ void MenuProc(void) // ????? if (HitDispNo == mailWndFontNo[i + 1]){ - // ?_???????? + // ????????? if (pActYesNoWnd == NULL){ // ???????? play_se(202, 320, 240); - // ?_????????? + // ?????????? pActYesNoWnd = MakeWindowDisp(pActMenuWnd->x + 42, i * 32 + 54, 176, 56, 0, 4); - // ????k???? + // ???????? nowDelNo = nowNo; } } // ?????? if (HitDispNo == mailWndFontNo[i + 2]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ????????? + // ????????? DeathLetterAction(); - // ???????? + // ???????? InitMailSendFlag(); - // ?????????? + // ?????????? mailWndSendFlag[nowNo] = TRUE; - // ?????k??????? + // ???????????? mailWndNoBak = mailWndNo; - // Pf??? + // ??? if (ProcNo == PROC_BATTLE){ - // ?G????????? + // ?????????? mailWndNo = MAIL_WND_SEND; } else{ - // ???????k?????? + // ????????????? if (pc.mailPetNo != -1){ - // k?????? + // ?????? mailWndNo = MAIL_WND_SELECT; } else{ - // ?G????????? + // ?????????? mailWndNo = MAIL_WND_SEND; } } @@ -17748,20 +17748,20 @@ void MenuProc(void) } } } - // ??? + // ??? if (HitDispNo == mailWndFontNo[19]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ????????? + // ????????? DeathLetterAction(); MenuToggleFlag ^= JOY_CTRL_E; - // ???????? + // ???????? play_se(203, 320, 240); } } - // q??? + // ??? if ((HitDispNo == mailWndFontNo[26] || joy_con[0] & JOY_A) && pActYesNoWnd == NULL){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_A){ @@ -17770,7 +17770,7 @@ void MenuProc(void) // ????? play_se(217, 320, 240); mailWndBtnFlag[26] = TRUE; - // ????????? + // ????????? DeathLetterAction(); } // ????????? @@ -17779,24 +17779,24 @@ void MenuProc(void) mailWndBtnFlag[26] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[26] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[26] = FALSE; } - // ??? + // ??? if ((HitDispNo == mailWndFontNo[27] || joy_con[0] & JOY_B) && pActYesNoWnd == NULL){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_B){ - mailViewWndPageNo++; // ?????? + mailViewWndPageNo++; // ?????? if (mailViewWndPageNo >= MAX_ADR_BOOK_PAGE) mailViewWndPageNo = 0; // ????? play_se(217, 320, 240); mailWndBtnFlag[27] = TRUE; - // ????????? + // ????????? DeathLetterAction(); } // ????????? @@ -17805,23 +17805,23 @@ void MenuProc(void) mailWndBtnFlag[27] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[27] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[27] = FALSE; } // ???????? if (pActMenuWnd != NULL){ int nowNo = mailViewWndPageNo * MAX_ADR_BOOK_COUNT; - // ?@e + // ? x = pActMenuWnd->x; y = pActMenuWnd->y; - // ????????????????????k? + // ????????????????????? int graNo[7] = { CG_MAIL_WND_OFF_LINE_BTN, CG_MAIL_WND_ON_LINE_SUN_BTN, CG_MAIL_WND_ON_LINE_MOON_BTN, @@ -17832,7 +17832,7 @@ void MenuProc(void) }; for (i = 0; i < 12; i += 3, nowNo++){ - // q???? + // ???? #ifdef _EXTEND_AB if (addressBook[nowNo].useFlag == TRUE || addressBook[nowNo].useFlag == 2 @@ -17841,12 +17841,12 @@ void MenuProc(void) if (addressBook[nowNo].useFlag == TRUE){ #endif int j = 0; - // ???????? + // ???????? for (j = 0; j < MAIL_MAX_HISTORY; j++){ - // ?????????? + // ?????????? if (pActLetter[i / 3] == NULL){ if (MailHistory[nowNo].noReadFlag[j] >= TRUE){ - // ??????????? + // ??????????? pActLetter[i / 3] = MakeAnimDisp(x - 20, y + 38, SPR_mail, ANIM_DISP_LETTER_MOVE); } } @@ -17854,16 +17854,16 @@ void MenuProc(void) // ? #ifdef _EXTEND_AB if (addressBook[nowNo].useFlag == 2) - StockFontBuffer(x + 15, y + 85, FONT_PRIO_FRONT, 5, "ʹ", 0); + StockFontBuffer(x + 15, y + 85, FONT_PRIO_FRONT, 5, "精灵使者", 0); if (addressBook[nowNo].useFlag == 3) - StockFontBuffer(x + 15, y + 85, FONT_PRIO_FRONT, 5, "", 0); + StockFontBuffer(x + 15, y + 85, FONT_PRIO_FRONT, 5, "精灵勇者", 0); #endif StockDispBuffer(x + 44, y + 68, DISP_PRIO_IME3, addressBook[nowNo].graNo, 0); CenteringStr(addressBook[nowNo].name, moji, CHAR_NAME_LEN); mailWndFontNo[i] = StockFontBuffer(x + 80, y + 30, FONT_PRIO_FRONT, 0, moji, 2); sprintf_s(moji, "%3d", addressBook[nowNo].level); StockFontBuffer(x + 104, y + 60, FONT_PRIO_FRONT, 0, moji, 0); -#ifdef _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ +#ifdef _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 sprintf_s(moji, "%8s", addressBook[nowNo].planetname); StockFontBuffer(x + 198, y + 30, FONT_PRIO_FRONT, 5, moji, 0); #endif @@ -17885,15 +17885,15 @@ void MenuProc(void) else{ if (nowNo == MAX_ADR_BOOK - 1) { - StockFontBuffer(x + 100, y + 30, FONT_PRIO_FRONT, FONT_PAL_RED, "ٻ", 0); + StockFontBuffer(x + 100, y + 30, FONT_PRIO_FRONT, FONT_PAL_RED, "精灵召唤用", 0); } } #endif y += 96; } - // q??? + // ??? mailWndFontNo[26] = StockDispBuffer(pActMenuWnd->x + 25 + 28 - 8, pActMenuWnd->y + 421, DISP_PRIO_IME3, CG_PREV_BTN + mailWndBtnFlag[26], 2); - // ???k? + // ???? sprintf_s(moji, "%2d", mailViewWndPageNo + 1); StockFontBuffer(pActMenuWnd->x + 46 + 28 - 8, pActMenuWnd->y + 413, FONT_PRIO_FRONT, 0, moji, 0); // ???? @@ -17901,29 +17901,29 @@ void MenuProc(void) mailWndFontNo[19] = StockDispBuffer(pActMenuWnd->x + 220 - 28, pActMenuWnd->y + 421, DISP_PRIO_IME3, CG_CLOSE_BTN, 2); } - // ?_???????? + // ????????? if (pActYesNoWnd != NULL){ // ???? if (((WINDOW_DISP *)pActYesNoWnd->pYobi)->yesNoResult == TRUE){ - // ?????? + // ?????? if (bNewServer) lssproto_DAB_send(sockfd, nowDelNo); else old_lssproto_DAB_send(sockfd, nowDelNo); play_se(217, 320, 240); - // ?_?????? + // ??????? DeathAction(pActYesNoWnd); pActYesNoWnd = NULL; - // ???????? + // ???????? play_se(203, 320, 240); } else // ????? if (((WINDOW_DISP *)pActYesNoWnd->pYobi)->yesNoResult == FALSE){ - // ?_?????? + // ??????? DeathAction(pActYesNoWnd); pActYesNoWnd = NULL; - // ???????? + // ???????? play_se(203, 320, 240); } } @@ -17932,12 +17932,12 @@ void MenuProc(void) } break; - case MAIL_WND_SELECT: // k????? + case MAIL_WND_SELECT: // ????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(40, 40, 3, 3, NULL, 0); - // ???Re??? + // ?????? for (i = 0; i < MENU_MAIL_0; i++) mailWndFontNo[i] = -2; // ?????????? for (i = 0; i < 5; i++){ @@ -17953,16 +17953,16 @@ void MenuProc(void) } } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ?G????? + // ?????? if (HitFontNo == mailWndFontNo[0]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ?G?????????? + // ??????????? mailWndNo = MAIL_WND_SEND; // ???????? play_se(202, 320, 240); @@ -17972,31 +17972,31 @@ void MenuProc(void) #ifdef _TAIKEN // ??? play_se(220, 320, 240); - // ??????? - sprintf_s(moji, "治ѡ"); - // ?????????????????? + // ??????? + sprintf_s(moji, "体验版不能选择!"); + // ?????????????????? StockChatBufferLine( moji, FONT_PAL_WHITE ); #else #ifdef _STREET_VENDOR if (pc.iOnStreetVendor == 1){ play_se(220, 320, 240); - StockChatBufferLine("̯вʹóʼ", FONT_PAL_RED); + StockChatBufferLine("摆摊中不得使用宠物邮件", FONT_PAL_RED); } else #endif #ifdef _THEATER if (pc.iTheaterMode & 0x00000002) - StockChatBufferLine("רı", FONT_PAL_RED); + StockChatBufferLine("请专心表演", FONT_PAL_RED); else if (pc.iTheaterMode & 0x00000001) - StockChatBufferLine("רĿ", FONT_PAL_RED); + StockChatBufferLine("请专心看表演", FONT_PAL_RED); else #endif - // ??????k????? + // ??????????? if (pc.mailPetNo != -1){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ????????????? + // ????????????? mailWndNo = MAIL_WND_PET_SEND; // ???????? play_se(202, 320, 240); @@ -18009,12 +18009,12 @@ void MenuProc(void) } // ??? if (HitDispNo == mailWndFontNo[2]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; // ???????? mailWndNo = MAIL_WND_VIEW; - // ???????? + // ???????? play_se(203, 320, 240); } } @@ -18023,67 +18023,67 @@ void MenuProc(void) if (pActMenuWnd != NULL){ int color = FONT_PAL_WHITE; - // ??????k????? + // ??????????? if (pc.mailPetNo == -1) color = FONT_PAL_RED; - // ?@e + // ? x = pActMenuWnd->x + 28; y = pActMenuWnd->y + 32; - // ????????? - mailWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " ͨ ", 2); y += 32; - mailWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, color, " ", 2); y += 48; + // ????????? + mailWndFontNo[0] = StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, " 普 通 邮 件 ", 2); y += 32; + mailWndFontNo[1] = StockFontBuffer(x, y, FONT_PRIO_FRONT, color, " 宠 物 邮 件 ", 2); y += 48; mailWndFontNo[2] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, y, DISP_PRIO_IME3, CG_RETURN_BTN, 2); } } } break; - case MAIL_WND_SEND: // ?G????????? + case MAIL_WND_SEND: // ?????????? // ????????? if (pActMenuWnd == NULL){ pActMenuWnd = MakeWindowDisp(4, 4, 272, 304, 0, -1); - // ???Re??? + // ?????? for (i = 0; i < MENU_MAIL_0; i++) mailWndFontNo[i] = -2; - mailPetSendWndPageNo = mailViewWndPageNo; // ?G?????k???? + mailPetSendWndPageNo = mailViewWndPageNo; // ?????????? MailStr.len = 140; - // ???? + // ???? MailStr.lineLen = 28; // ????? MailStr.lineDist = 20; - // ??? + // ??? MailStr.color = 0; - // ???? + // ???? MailStr.x = pActMenuWnd->x + 12; MailStr.y = pActMenuWnd->y + 280 - 136; - // ????I?? + // ?????? MailStr.fontPrio = FONT_PRIO_FRONT; } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ - // ?????? + // ?????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_MAIL_WND_SEND_WND, 1); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ int nowNo = mailPetSendWndPageNo * MAX_ADR_BOOK_COUNT; - // ?????? + // ?????? for (i = 0; i < MAX_ADR_BOOK_COUNT; i++){ - // ??k??? + // ????? if (HitFontNo == mailWndFontNo[i]){ - // q?????? + // ?????? #ifdef _EXTEND_AB if (addressBook[nowNo + i].useFlag == TRUE || addressBook[nowNo + i].useFlag == 2 || addressBook[nowNo + i].useFlag == 3){ -#else ???V??????? +#else ?????????? if (addressBook[nowNo + i].useFlag == TRUE){ #endif - // k????????? + // ????????? if (mailWndSendFlag[nowNo + i] == FALSE) mailWndSendFlag[nowNo + i] = TRUE; else mailWndSendFlag[nowNo + i] = FALSE; // ????? @@ -18094,31 +18094,31 @@ void MenuProc(void) } // ??? if (HitDispNo == mailWndFontNo[19]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // q????????? + // ????????? mailWndNo = mailWndNoBak; - // ???????? + // ???????? play_se(203, 320, 240); - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); } } - // ???? + // ???? if (HitDispNo == mailWndFontNo[18]){ - // ??????????????????0.5??? + // ??????????????????0.5??? if (mouse.onceState & MOUSE_LEFT_CRICK && ItemUseTime < TimeGetTime() - 5000){ int flag = FALSE; // ????? ItemUseTime = TimeGetTime(); - // ??k???????? + // ?????????? for (i = 0; i < MAX_ADR_BOOK; i++){ if (mailWndSendFlag[i] == TRUE) flag = TRUE; } - // ?????? + // ?????? if (MailStr.buffer[0] != NULL && flag == TRUE){ - // ????? + // ????? for (i = 0; i < MAX_ADR_BOOK; i++){ // ???????? if (mailWndSendFlag[i] == TRUE){ @@ -18127,7 +18127,7 @@ void MenuProc(void) strcpy(moji2, MailStr.buffer); // ??????? makeEscapeString(moji2, moji, sizeof(moji)); - // ???? + // ???? if (bNewServer) lssproto_MSG_send(sockfd, i, moji, FONT_PAL_WHITE); else @@ -18149,16 +18149,16 @@ void MenuProc(void) mailWndBtnFlag[18] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[18] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[18] = FALSE; } - // q??? + // ??? if (HitDispNo == mailWndFontNo[16] || joy_con[0] & JOY_A){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_A){ @@ -18174,19 +18174,19 @@ void MenuProc(void) mailWndBtnFlag[16] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[16] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[16] = FALSE; } - // ??? + // ??? if (HitDispNo == mailWndFontNo[17] || joy_con[0] & JOY_B){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_B){ - mailPetSendWndPageNo++; // ?????? + mailPetSendWndPageNo++; // ?????? if (mailPetSendWndPageNo >= MAX_ADR_BOOK_PAGE) mailPetSendWndPageNo = 0; // ????? play_se(217, 320, 240); @@ -18198,20 +18198,20 @@ void MenuProc(void) mailWndBtnFlag[17] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[17] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[17] = FALSE; } - // ?????? + // ?????? if (HitDispNo == mailWndFontNo[14]){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??? ??@e + // ??? ?? MailStr.buffer[0] = NULL; MailStr.cnt = 0; MailStr.cursor = 0; @@ -18225,19 +18225,19 @@ void MenuProc(void) mailWndBtnFlag[14] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[14] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[14] = FALSE; } - // k?????? + // ?????? if (HitDispNo == mailWndFontNo[15]){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ???????? + // ???????? InitMailSendFlag(); // ????? play_se(217, 320, 240); @@ -18249,12 +18249,12 @@ void MenuProc(void) mailWndBtnFlag[15] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[15] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[15] = FALSE; } @@ -18263,16 +18263,16 @@ void MenuProc(void) int nowNo = mailPetSendWndPageNo * MAX_ADR_BOOK_COUNT; int color; - // ?@e + // ? x = pActMenuWnd->x; y = pActMenuWnd->y; - // V??????x + // ?????? GetKeyInputFocus(&MailStr); - // ??? + // ??? StockFontBuffer2(&MailStr); for (i = 0; i < MAX_ADR_BOOK_COUNT; i++){ - // q?????????V??????? + // ???????????????? #ifdef _EXTEND_AB if (addressBook[nowNo + i].useFlag == TRUE || addressBook[nowNo + i].useFlag == 2 @@ -18280,36 +18280,36 @@ void MenuProc(void) #else if (addressBook[nowNo + i].useFlag == TRUE){ #endif - color = FONT_PAL_GRAY; // ????? + color = FONT_PAL_GRAY; // ????? // ??????? if (addressBook[nowNo + i].onlineFlag > 0){ - // ? + // ? color = FONT_PAL_WHITE; } - // k?????? + // ?????? if (mailWndSendFlag[nowNo + i] == TRUE){ - // ? + // ? color = FONT_PAL_AQUA; } - // q + //  CenteringStr(addressBook[nowNo + i].name, moji, CHAR_NAME_LEN); mailWndFontNo[i] = StockFontBuffer(x + 111, y + 177 - 136, FONT_PRIO_FRONT, color, moji, 2); } y += 23; } - // k?????? + // ?????? mailWndFontNo[15] = StockDispBuffer(pActMenuWnd->x + 51, pActMenuWnd->y + 211 - 136, DISP_PRIO_IME3, CG_MAIL_WND_CLEAR_BTN_UP + mailWndBtnFlag[15], 2); - // q??? + // ??? mailWndFontNo[16] = StockDispBuffer(pActMenuWnd->x + 26 - 8 + 4, pActMenuWnd->y + 241 - 132, DISP_PRIO_IME3, CG_PREV_BTN + mailWndBtnFlag[16], 2); - // ???k? + // ???? sprintf_s(moji, "%2d", mailPetSendWndPageNo + 1); StockFontBuffer(pActMenuWnd->x + 47 - 8 + 4, pActMenuWnd->y + 233 - 132, FONT_PRIO_FRONT, 0, moji, 0); // ???? mailWndFontNo[17] = StockDispBuffer(pActMenuWnd->x + 76 + 4, pActMenuWnd->y + 241 - 132, DISP_PRIO_IME3, CG_NEXT_BTN + mailWndBtnFlag[17], 2); - // ?????? + // ?????? mailWndFontNo[14] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx + 60, pActMenuWnd->y + 390 - 136, DISP_PRIO_IME3, CG_MAIL_WND_CLEAR_BTN_UP + mailWndBtnFlag[14], 2); - // ???? + // ???? mailWndFontNo[18] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx - 60, pActMenuWnd->y + 421 - 136, DISP_PRIO_IME3, CG_SEND_BTN + mailWndBtnFlag[18] * 75, 2); // ?? mailWndFontNo[19] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx + 60, pActMenuWnd->y + 421 - 136, DISP_PRIO_IME3, CG_RETURN_BTN, 2); @@ -18318,82 +18318,82 @@ void MenuProc(void) } break; - case MAIL_WND_PET_SEND: // ???????????? + case MAIL_WND_PET_SEND: // ???????????? // ????????? if (pActMenuWnd == NULL){ pActMenuWnd = MakeWindowDisp(4, 4, 272, 440, 0, -1); - // ???Re??? + // ?????? for (i = 0; i < MENU_MAIL_0; i++) mailWndFontNo[i] = -2; - mailPetSendWndPageNo = mailViewWndPageNo; // ?G?????k???? + mailPetSendWndPageNo = mailViewWndPageNo; // ?????????? MailStr.len = MAIL_STR_LEN; - // ???? + // ???? MailStr.lineLen = 28; // ????? MailStr.lineDist = 20; - // ??? + // ??? MailStr.color = 0; - // ???? + // ???? MailStr.x = pActMenuWnd->x + 12; MailStr.y = pActMenuWnd->y + 280; - // ????I?? + // ?????? MailStr.fontPrio = FONT_PRIO_FRONT; } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ // ???????????????? if (pActPet == NULL){ - // ????????? + // ????????? pActPet = MakeAnimDisp(pActMenuWnd->x + 190, pActMenuWnd->y + 120, pet[pc.mailPetNo].graNo, ANIM_DISP_PET); } - // ???????????????????k?????? + // ????????????????????????? if (pActMailItem == NULL && mailItemNo != -1){ - // ?????????? + // ?????????? pActMailItem = MakeAnimDisp(pActMenuWnd->x + 56, pActMenuWnd->y + 96, pc.item[mailItemNo].graNo, ANIM_DISP_PET_ITEM); pActMailItem->atr |= ACT_ATR_INFO; pActMailItem->atr |= ACT_ATR_TYPE_ITEM; pActMailItem->dispPrio = DISP_PRIO_DRAG; - // ??????? + // ??????? strcpy(pActMailItem->name, pc.item[mailItemNo].name); } - // ?????? + // ?????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_MAIL_WND_PET_SEND_WND, 1); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ int nowNo = mailPetSendWndPageNo * MAX_ADR_BOOK_COUNT; - // ?????? + // ?????? for (i = 0; i < MAX_ADR_BOOK_COUNT; i++){ - // ??k???????????????????? + // ?????????????????????? if (HitFontNo == mailWndFontNo[i]){ - // q???????? + // ???????? #ifdef _EXTEND_AB if (addressBook[nowNo + i].useFlag == TRUE || addressBook[nowNo + i].useFlag == 2 || addressBook[nowNo + i].useFlag == 3){ -#else ?V??????? +#else ???????? if (addressBook[nowNo + i].useFlag == TRUE){ #endif int j, flag = FALSE; - // ??k???????? + // ?????????? for (j = 0; j < MAX_ADR_BOOK; j++){ if (mailWndSendFlag[j] == TRUE) flag = TRUE; } - // k??????? + // ??????? if (flag == FALSE){ mailWndSendFlag[nowNo + i] = TRUE; // ????? play_se(217, 320, 240); } - else{ // ??k?????? - // k???????????????? + else{ // ???????? + // ???????????????? if (mailWndSendFlag[nowNo + i] == TRUE){ mailWndSendFlag[nowNo + i] = FALSE; // ????? play_se(217, 320, 240); } - else{ // k????????????????? + else{ // ????????????????? // ??? play_se(220, 320, 240); } @@ -18403,52 +18403,52 @@ void MenuProc(void) } // ??? if (HitDispNo == mailWndFontNo[19]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ???? + // ???? DeathAction(pActPet); pActPet = NULL; - // ????? + // ????? DeathAction(pActMailItem); pActMailItem = NULL; // ???????? mailWndNo = MAIL_WND_VIEW; - // ???????? + // ???????? play_se(203, 320, 240); - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); } // ??????? if (HitDispNo == mailWndFontNo[15]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ???? + // ???? DeathAction(pActPet); pActPet = NULL; - // ????? + // ????? DeathAction(pActMailItem); pActMailItem = NULL; - // q????????? + // ????????? mailWndNo = MAIL_WND_ITEM; // ???????? play_se(202, 320, 240); - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); } } - // ???? + // ???? if (HitDispNo == mailWndFontNo[18]){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ int flag = FALSE; - // ??k???????? + // ?????????? for (i = 0; i < MAX_ADR_BOOK; i++){ if (mailWndSendFlag[i] == TRUE) flag = TRUE; } - // ?????? + // ?????? if (MailStr.buffer[0] != NULL && flag == TRUE && pActPet != NULL && pActPet->actNo == ANIM_DISP_PET @@ -18457,7 +18457,7 @@ void MenuProc(void) // ???????? if (mailWndSendFlag[i] == TRUE){ // Terry add fix can send mail to offline character 2004/2/5 - if (addressBook[i].onlineFlag == 0) StockChatBufferLine("Ҳϣ", FONT_PAL_RED); + if (addressBook[i].onlineFlag == 0) StockChatBufferLine("该玩家不在线上!", FONT_PAL_RED); else // end { @@ -18466,19 +18466,19 @@ void MenuProc(void) strcpy(moji2, MailStr.buffer); // ??????? makeEscapeString(moji2, moji, sizeof(moji)); - // ??????? + // ??????? if (bNewServer) lssproto_PMSG_send(sockfd, i, pc.mailPetNo, mailItemNo, moji2, FONT_PAL_WHITE); else old_lssproto_PMSG_send(sockfd, i, pc.mailPetNo, mailItemNo, moji2, FONT_PAL_WHITE); pc.mailPetNo = -1; - // ?????????? + // ?????????? ItemBuffer[mailItemNo].mixFlag = 0; // ???????? saveUserSetting(); // ???????????????? if (pActPet != NULL){ - // ?????? + // ?????? pActPet->actNo = 1; } } @@ -18498,16 +18498,16 @@ void MenuProc(void) mailWndBtnFlag[18] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[18] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[18] = FALSE; } - // q??? + // ??? if (HitDispNo == mailWndFontNo[16] || joy_con[0] & JOY_A){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_A){ @@ -18523,19 +18523,19 @@ void MenuProc(void) mailWndBtnFlag[16] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[16] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[16] = FALSE; } - // ??? + // ??? if (HitDispNo == mailWndFontNo[17] || joy_con[0] & JOY_B){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_B){ - mailPetSendWndPageNo++; // ?????? + mailPetSendWndPageNo++; // ?????? if (mailPetSendWndPageNo >= MAX_ADR_BOOK_PAGE) mailPetSendWndPageNo = 0; // ????? play_se(217, 320, 240); @@ -18547,20 +18547,20 @@ void MenuProc(void) mailWndBtnFlag[17] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[17] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[17] = FALSE; } - // ?????? + // ?????? if (HitDispNo == mailWndFontNo[14]){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??? ??@e + // ??? ?? MailStr.buffer[0] = NULL; MailStr.cnt = 0; MailStr.cursor = 0; @@ -18574,12 +18574,12 @@ void MenuProc(void) mailWndBtnFlag[14] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[14] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[14] = FALSE; } @@ -18588,10 +18588,10 @@ void MenuProc(void) int nowNo = mailPetSendWndPageNo * MAX_ADR_BOOK_COUNT; int color; - // ?@e + // ? x = pActMenuWnd->x; y = pActMenuWnd->y; - // V??????x + // ?????? GetKeyInputFocus(&MailStr); if (pet[pc.mailPetNo].freeName[0] == NULL){ @@ -18603,7 +18603,7 @@ void MenuProc(void) StockFontBuffer(x + 120, y + 14, FONT_PRIO_FRONT, 0, moji, 0); StockFontBuffer2(&MailStr); for (i = 0; i < MAX_ADR_BOOK_COUNT; i++){ - // q?????????V??????? + // ???????????????? #ifdef _EXTEND_AB if (addressBook[nowNo + i].useFlag == TRUE || addressBook[nowNo + i].useFlag == 2 @@ -18611,18 +18611,18 @@ void MenuProc(void) #else if (addressBook[nowNo + i].useFlag == TRUE){ #endif - color = FONT_PAL_GRAY; // ????? + color = FONT_PAL_GRAY; // ????? // ??????? if (addressBook[nowNo + i].onlineFlag > 0){ - // ? + // ? color = FONT_PAL_WHITE; } - // k?????? + // ?????? if (mailWndSendFlag[nowNo + i] == TRUE){ - // ? + // ? color = FONT_PAL_AQUA; } - // q + //  CenteringStr(addressBook[nowNo + i].name, moji, CHAR_NAME_LEN); mailWndFontNo[i] = StockFontBuffer(x + 111, y + 177, FONT_PRIO_FRONT, color, moji, 2); @@ -18631,16 +18631,16 @@ void MenuProc(void) } // ??????? mailWndFontNo[15] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_IME3, CG_MAIL_WND_ITEM_BTN, 2); - // q??? + // ??? mailWndFontNo[16] = StockDispBuffer(pActMenuWnd->x + 25 - 8 + 4, pActMenuWnd->y + 241, DISP_PRIO_IME3, CG_PREV_BTN + mailWndBtnFlag[16], 2); - // ???k? + // ???? sprintf_s(moji, "%2d", mailPetSendWndPageNo + 1); StockFontBuffer(pActMenuWnd->x + 46 - 8 + 4, pActMenuWnd->y + 233, FONT_PRIO_FRONT, 0, moji, 0); // ???? mailWndFontNo[17] = StockDispBuffer(pActMenuWnd->x + 75 + 4, pActMenuWnd->y + 241, DISP_PRIO_IME3, CG_NEXT_BTN + mailWndBtnFlag[17], 2); - // ?????? + // ?????? mailWndFontNo[14] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx + 60, pActMenuWnd->y + 390, DISP_PRIO_IME3, CG_MAIL_WND_CLEAR_BTN_UP + mailWndBtnFlag[14], 2); - // ???? + // ???? mailWndFontNo[18] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx - 60, pActMenuWnd->y + 421, DISP_PRIO_IME3, CG_SEND_BTN + mailWndBtnFlag[18] * 75, 2); // ?? mailWndFontNo[19] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx + 60, pActMenuWnd->y + 421, DISP_PRIO_IME3, CG_RETURN_BTN, 2); @@ -18649,56 +18649,56 @@ void MenuProc(void) } break; - case MAIL_WND_ITEM: // ????k????? + case MAIL_WND_ITEM: // ????????? // ????????? if (pActMenuWnd == NULL){ #ifdef _NEW_ITEM_ - ҳ = 0; + 道具栏页数 = 0; #endif pActMenuWnd = MakeWindowDisp(4, 30, 271, 281, 0, -1); - // ???Re??? + // ?????? for (i = 0; i < MENU_MAIL_0; i++) mailWndFontNo[i] = -2; - mailSendWndPageNo = 0; // ?????k???? + mailSendWndPageNo = 0; // ????????? // ?????????? InitItem(pActMenuWnd->x, pActMenuWnd->y - 1, FALSE); // ??????????? if (MenuToggleFlag & JOY_CTRL_I && itemWndNo == 0){ - // ??????????? + // ??????????? MenuToggleFlag &= ~JOY_CTRL_I; DeathMenuAction2(); } } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_IME3, CG_ITEM_WND_1, 1); StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my-80, DISP_PRIO_IME3, CG_BTL_ITEM_WND_TITLE, 1); if (mouse.onceState & MOUSE_LEFT_CRICK){ // ??? if (HitDispNo == mailWndFontNo[19]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; // ???????? mailWndNo = MAIL_WND_PET_SEND; - // ???????? + // ???????? play_se(203, 320, 240); } } // ???????? if (pActMenuWnd != NULL){ - // ?@e + // ? x = pActMenuWnd->x + 16; y = pActMenuWnd->y + 191 + 6; #ifdef _NEW_ITEM_ for (i = 0; i < 3; i++){ - if (i == ҳ){ + if (i == 道具栏页数){ StockDispBuffer(287, 39 + i * 56, DISP_PRIO_BOX2, 55223 + i, 1); } else{ BOOL flg = FALSE; if (i){ - if (pc.״̬ & 1 << i){ + if (pc.道具栏状态 & 1 << i){ flg = TRUE; } } @@ -18707,7 +18707,7 @@ void MenuProc(void) StockDispBuffer(271 + 10, 39 + i * 56, DISP_PRIO_IME3, 55226 + i, 1); if (MakeHitBox(261 + 10, 11 + i * 56, 281 + 10, 8 + i * 56 + 60, DISP_PRIO_IME3)){ if (mouse.onceState & MOUSE_LEFT_CRICK){ - ҳ = i; + 道具栏页数 = i; } } } @@ -18717,11 +18717,11 @@ void MenuProc(void) #endif for (i = MAX_ITEM - 1; i >= MAX_ITEMSTART; i--){ #ifdef _NEW_ITEM_ - //ʼ - int ʼ = MAX_ITEMSTART + MAX_MAXHAVEITEM*ҳ; - int ߽ = ʼ + MAX_MAXHAVEITEM; + //这里是邮件 + int 道具起始 = MAX_ITEMSTART + MAX_MAXHAVEITEM*道具栏页数; + int 道具结束 = 道具起始 + MAX_MAXHAVEITEM; if (i >= MAX_ITEMSTART){ - if (i < ʼ || i >= ߽) continue; + if (i < 道具起始 || i >= 道具结束) continue; } #endif if (MakeHitBox(ItemBuffer[i].defX - 24, ItemBuffer[i].defY - 24 - 160, @@ -18732,18 +18732,18 @@ void MenuProc(void) char *splitPoint = pc.item[i].memo; int color = pc.item[i].color; - // ????????? + // ????????? if (pc.level < pc.item[i].level) color = FONT_PAL_RED; - // ?????q + // ????? StockFontBuffer(pActMenuWnd->x + 16, pActMenuWnd->y + 332 - 160 - 1, FONT_PRIO_FRONT, color, pc.item[i].name, 0); - // ?????C - // ????? + // ????? + // ????? while (1){ - // ????????? + // ????????? if (strlen(splitPoint) > 28){ strncpy_s(moji, splitPoint, 28); - moji[28] = NULL; // Z?????? - // u??S???? + moji[28] = NULL; // ?????? + // ?????? if (GetStrLastByte(moji) == 3){ moji[27] = NULL; splitPoint += 27; @@ -18762,18 +18762,18 @@ void MenuProc(void) } } - // ?????????????? + // ?????????????? if (mouse.onceState & MOUSE_LEFT_DBL_CRICK){ if (pc.item[i].useFlag == TRUE && pc.item[i].sendFlag & ITEM_FLAG_PET_MAIL){ - mailItemNo = i; // ????k??? - // ?????? + mailItemNo = i; // ??????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; // ???????? mailWndNo = MAIL_WND_PET_SEND; - // ???????? + // ???????? play_se(203, 320, 240); - // V???????? + // ???????? GetKeyInputFocus(&MyChatBuffer); } else{ @@ -18783,13 +18783,13 @@ void MenuProc(void) } } if (pc.item[i].useFlag == TRUE){ - // ???? + // ???? StockDispBuffer(ItemBuffer[i].defX, ItemBuffer[i].defY - 160, ItemBuffer[i].dispPrio, pc.item[i].graNo, 0); } } // ????????? if (pActMenuWnd != NULL){ - // ????????? + // ????????? mailWndFontNo[19] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, pActMenuWnd->y + 262, DISP_PRIO_IME4, CG_CLOSE_BTN, 2); } } @@ -18801,81 +18801,81 @@ void MenuProc(void) // ????????? if (pActMenuWnd == NULL){ pActMenuWnd = MakeWindowDisp(4, 4, 272, 424, 0, -1); - // ???Re??? + // ?????? for (i = 0; i < MENU_MAIL_0; i++) mailWndFontNo[i] = -2; - // ??????@e??k??t????k??? - // ????? + // ????????????????? + // ????? for (mailHistoryWndPageNo = MAIL_MAX_HISTORY - 1; mailHistoryWndPageNo > 0; mailHistoryWndPageNo--){ // ???????? if (mailHistoryWndPageNo < 0) mailHistoryWndPageNo = MAIL_MAX_HISTORY - 1; - // ??????k? + // ??????? mailHistoryWndNowPageNo = (MailHistory[mailHistoryWndSelectNo].newHistoryNo + mailHistoryWndPageNo) % MAIL_MAX_HISTORY; - // t??????????I?? + // ???????????? if (MailHistory[mailHistoryWndSelectNo].noReadFlag[mailHistoryWndNowPageNo] >= TRUE) break; } #if 0 // ???????????????? if( pActPet == NULL ){ - // ????????? + // ????????? pActPet = MakeAnimDisp( pActMenuWnd->x - 204, pActMenuWnd->y + 160, pet[ pc.mailPetNo ].graNo, ANIM_DISP_PET_RECIEVE ); pActPet->atr |= ACT_ATR_INFO; pActPet->atr |= ACT_ATR_TYPE_PET; pActPet->level = 32; - strcpy( pActPet->name, "Գ" ); + strcpy( pActPet->name, "测试宠物" ); } - // ????????????????????????? + // ????????????????????????? if (pActMailItem == NULL && MailHistory[mailHistoryWndSelectNo].itemGraNo[mailHistoryWndNowPageNo] != -1){ - // ?????????? + // ?????????? pActMailItem = MakeAnimDisp(pActMenuWnd->x - 204, pActMenuWnd->y + 128, pc.item[5].graNo, ANIM_DISP_PET_ITEM); pActMailItem->atr |= ACT_ATR_INFO; pActMailItem->atr |= ACT_ATR_TYPE_ITEM; pActMailItem->dispPrio = DISP_PRIO_DRAG; - // ??????? - strcpy(pActMailItem->name, ""); + // ??????? + strcpy(pActMailItem->name, "道具完成"); } #endif } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ static int nowDelNo; - // ??????? + // ??????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_MAIL_WND_HISTORY_WND, 1); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ // ?????? if (HitDispNo == mailWndFontNo[18]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ????????? + // ????????? DeathLetterAction(); - // ???? + // ???? DeathAction(pActPet); pActPet = NULL; - // ????? + // ????? DeathAction(pActMailItem); pActMailItem = NULL; - // ?????k??????? + // ???????????? mailWndNoBak = mailWndNo; - // ???????? + // ???????? InitMailSendFlag(); - // ?????????? + // ?????????? mailWndSendFlag[mailHistoryWndSelectNo] = TRUE; - // Pf??? + // ??? if (ProcNo == PROC_BATTLE){ - // ?G????????? + // ?????????? mailWndNo = MAIL_WND_SEND; } else{ - // ???????k?????? + // ????????????? if (pc.mailPetNo != -1){ - // k?????? + // ?????? mailWndNo = MAIL_WND_SELECT; } else{ - // ?G????????? + // ?????????? mailWndNo = MAIL_WND_SEND; } } @@ -18884,35 +18884,35 @@ void MenuProc(void) } // ??? if (HitDispNo == mailWndFontNo[19]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ????????? + // ????????? DeathLetterAction(); - // ???? + // ???? DeathAction(pActPet); pActPet = NULL; - // ????? + // ????? DeathAction(pActMailItem); pActMailItem = NULL; // ???????? mailWndNo = MAIL_WND_VIEW; - // ???????? + // ???????? play_se(203, 320, 240); } } - // q??? + // ??? if (HitDispNo == mailWndFontNo[16] || joy_con[0] & JOY_A){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_A){ mailHistoryWndPageNo--; // ????? if (mailHistoryWndPageNo < 0) mailHistoryWndPageNo = MAIL_MAX_HISTORY - 1; - // ????????? + // ????????? DeathLetterAction(); - // ???? + // ???? DeathAction(pActPet); pActPet = NULL; - // ????? + // ????? DeathAction(pActMailItem); pActMailItem = NULL; // ????? @@ -18925,26 +18925,26 @@ void MenuProc(void) mailWndBtnFlag[16] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[16] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[16] = FALSE; } - // ??? + // ??? if (HitDispNo == mailWndFontNo[17] || joy_con[0] & JOY_B){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_B){ - mailHistoryWndPageNo++; // ?????? + mailHistoryWndPageNo++; // ?????? if (mailHistoryWndPageNo >= MAIL_MAX_HISTORY) mailHistoryWndPageNo = 0; - // ????????? + // ????????? DeathLetterAction(); - // ???? + // ???? DeathAction(pActPet); pActPet = NULL; - // ????? + // ????? DeathAction(pActMailItem); pActMailItem = NULL; // ????? @@ -18957,76 +18957,76 @@ void MenuProc(void) mailWndBtnFlag[17] = TRUE; } else{ - // ??? + // ??? mailWndBtnFlag[17] = FALSE; } } else{ - // ??? + // ??? mailWndBtnFlag[17] = FALSE; } // ???????? if (pActMenuWnd != NULL){ - // ?@e + // ? x = pActMenuWnd->x; y = pActMenuWnd->y; char *splitPoint; - // ??????k? + // ??????? mailHistoryWndNowPageNo = (MailHistory[mailHistoryWndSelectNo].newHistoryNo + mailHistoryWndPageNo) % MAIL_MAX_HISTORY; - // t????????? + // ????????? if (MailHistory[mailHistoryWndSelectNo].noReadFlag[mailHistoryWndNowPageNo] >= TRUE){ // ???????? if (MailHistory[mailHistoryWndSelectNo].noReadFlag[mailHistoryWndNowPageNo] > TRUE){ // ???????????????? if (pActPet == NULL){ - // ????????? + // ????????? pActPet = MakeAnimDisp(pActMenuWnd->x - 204, pActMenuWnd->y + 160, MailHistory[mailHistoryWndSelectNo].noReadFlag[mailHistoryWndNowPageNo], ANIM_DISP_PET_RECIEVE); pActPet->atr |= ACT_ATR_INFO; pActPet->atr |= ACT_ATR_TYPE_PET; // ?????? pActPet->level = MailHistory[mailHistoryWndSelectNo].petLevel[mailHistoryWndNowPageNo]; - // ????q + // ???? strcpy(pActPet->name, MailHistory[mailHistoryWndSelectNo].petName[mailHistoryWndNowPageNo]); } - // ????????????????????????? + // ????????????????????????? if (pActMailItem == NULL && MailHistory[mailHistoryWndSelectNo].itemGraNo[mailHistoryWndNowPageNo] != -1){ - // ?????????? + // ?????????? pActMailItem = MakeAnimDisp(pActMenuWnd->x - 204, pActMenuWnd->y + 128, MailHistory[mailHistoryWndSelectNo].itemGraNo[mailHistoryWndNowPageNo], ANIM_DISP_PET_ITEM); pActMailItem->atr |= ACT_ATR_INFO; pActMailItem->atr |= ACT_ATR_TYPE_ITEM; pActMailItem->dispPrio = DISP_PRIO_DRAG; - // ??????? - strcpy(pActMailItem->name, ""); + // ??????? + strcpy(pActMailItem->name, "道具完成"); } } - // ??????????? + // ??????????? if (pActLetter[0] == NULL){ - // ??????????? + // ??????????? pActLetter[0] = MakeAnimDisp(x + 28, y + 244, SPR_mail, ANIM_DISP_LETTER); } - // ???? + // ???? MailHistory[mailHistoryWndSelectNo].noReadFlag[mailHistoryWndNowPageNo] = FALSE; - // ???????V + // ??????? SaveMailHistory(mailHistoryWndSelectNo); - // t???? + // ???? mailLamp = CheckMailNoReadFlag(); } // ?????? splitPoint = MailHistory[mailHistoryWndSelectNo].str[mailHistoryWndNowPageNo]; - // q + //  CenteringStr(addressBook[mailHistoryWndSelectNo].name, moji, CHAR_NAME_LEN); StockFontBuffer(x + 64, y + 34, FONT_PRIO_FRONT, 0, moji, 0); - // Tܤ + //  StockFontBuffer(x + 148, y + 236, FONT_PRIO_FRONT, 0, MailHistory[mailHistoryWndSelectNo].dateStr[mailHistoryWndNowPageNo], 0); - // + //  while (1){ - // ????????? + // ????????? if (strlen(splitPoint) > 28){ strncpy_s(moji, splitPoint, 28); - moji[28] = NULL; // Z?????? - // u??S???? + moji[28] = NULL; // ?????? + // ?????? if (GetStrLastByte(moji) == 3){ moji[27] = NULL; splitPoint += 27; @@ -19043,16 +19043,16 @@ void MenuProc(void) break; } } - // q??? + // ??? mailWndFontNo[16] = StockDispBuffer(pActMenuWnd->x + 25 + 16 + 8, pActMenuWnd->y + 405, DISP_PRIO_IME3, CG_PREV_BTN + mailWndBtnFlag[16], 2); - // ???k? + // ???? sprintf_s(moji, "%2d", mailHistoryWndPageNo + 1); StockFontBuffer(pActMenuWnd->x + 46 + 16 + 9, pActMenuWnd->y + 397, FONT_PRIO_FRONT, 0, moji, 0); // ???? mailWndFontNo[17] = StockDispBuffer(pActMenuWnd->x + 75 + 16 + 9 + 8, pActMenuWnd->y + 405, DISP_PRIO_IME3, CG_NEXT_BTN + mailWndBtnFlag[17], 2); // ?????? mailWndFontNo[18] = StockDispBuffer(pActMenuWnd->x + 196, pActMenuWnd->y + 371, DISP_PRIO_IME3, CG_MAIL_WND_MAIL_BTN, 2); - // ????? + // ????? mailWndFontNo[19] = StockDispBuffer(pActMenuWnd->x + 220 - 16 - 8, pActMenuWnd->y + 405, DISP_PRIO_IME3, CG_RETURN_BTN, 2); } } @@ -19067,58 +19067,58 @@ void MenuProc(void) if (MenuToggleFlag & JOY_CTRL_A){ - // ?????k??? + // ???????? switch (albumWndNo){ - case 0: // ?????? + case 0: // ?????? // ????????? if (pActMenuWnd == NULL){ - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(4, 4, 272, 448, 0, -1); - // ???Re??? + // ?????? for (i = 0; i < MENU_ALBUM_0; i++) albumWndFontNo[i] = -2; - // ???k???? + // ??????? albumWndPageNo = 0; - // ????k???? + // ???????? albumNo = -1; } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ - // ????????? + // ????????? StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, ((WINDOW_DISP *)pActMenuWnd->pYobi)->my, DISP_PRIO_MENU, CG_ALBUM_WND, 1); // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ????Id????k? + // ????????? int nowTopNo = albumWndPageNo * 8; - // ??????? + // ??????? for (i = 0; i < 8; i++){ - // ???k????????????? + // ???????????????? if (HitFontNo == albumWndFontNo[i] && PetAlbum[nowTopNo + i].flag >= 2){ - // ????k??? + // ??????? albumNo = nowTopNo + i; - // ?????? + // ?????? PetAlbum[albumNo].flag = 3; - // ?????V + // ????? SaveAlbum(albumNo); // ????? play_se(217, 320, 240); } } - // ??? + // ??? if (HitDispNo == albumWndFontNo[19]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ??????? + // ??????? MenuToggleFlag ^= JOY_CTRL_A; - // ???????? + // ???????? play_se(203, 320, 240); } } - // q??? + // ??? if (HitDispNo == albumWndFontNo[16] || joy_con[0] & JOY_A){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_A){ @@ -19136,20 +19136,20 @@ void MenuProc(void) albumWndBtnFlag[16] = TRUE; } else{ - // ??? + // ??? albumWndBtnFlag[16] = FALSE; } } else{ - // ??? + // ??? albumWndBtnFlag[16] = FALSE; } - // ??? + // ??? if (HitDispNo == albumWndFontNo[17] || joy_con[0] & JOY_B){ // ???????? if (mouse.autoState & MOUSE_LEFT_CRICK || joy_auto[0] & JOY_B){ int limitPage = ((MAX_PET_KIND + MAX_PET_PAGE_SIZE - 1) / MAX_PET_PAGE_SIZE) - 1; - albumWndPageNo++; // ?????? + albumWndPageNo++; // ?????? // ???????? if (albumWndPageNo > limitPage) albumWndPageNo = 0; // ????? @@ -19162,12 +19162,12 @@ void MenuProc(void) albumWndBtnFlag[17] = TRUE; } else{ - // ??? + // ??? albumWndBtnFlag[17] = FALSE; } } else{ - // ??? + // ??? albumWndBtnFlag[17] = FALSE; } @@ -19177,14 +19177,14 @@ void MenuProc(void) #define ALBUM_WND_ATTR_X 34 #define ALBUM_WND_ATTR_Y 0 int x2; - int nowTopNo; // ????Id????k? - // ?@e + int nowTopNo; // ????????? + // ? x = pActMenuWnd->x; y = pActMenuWnd->y + 28; - // ????k???? + // ???????? if (albumNo != -1){ - // q?????????? + // ?????????? CenteringStr(PetAlbum[albumNo].freeName, moji, PET_NAME_LEN); StockFontBuffer(x + 13, y, FONT_PRIO_FRONT, 0, moji, 0); y += 22; @@ -19203,7 +19203,7 @@ void MenuProc(void) sprintf_s(moji, "%3d", PetAlbum[albumNo].def); StockFontBuffer(x + 36 + 72, y, FONT_PRIO_FRONT, 0, moji, 0); y += 29; - // ԢN??? + // 佋??? if (PetAlbum[albumNo].earth > 0){ x2 = (int)(PetAlbum[albumNo].earth * 0.8); @@ -19213,7 +19213,7 @@ void MenuProc(void) } y += 20; - // ?N??? + // ???? if (PetAlbum[albumNo].water > 0){ x2 = (int)(PetAlbum[albumNo].water * 0.8); @@ -19223,7 +19223,7 @@ void MenuProc(void) } y += 20; - // ?N??? + // ???? if (PetAlbum[albumNo].fire > 0){ x2 = (int)(PetAlbum[albumNo].fire * 0.8); @@ -19233,7 +19233,7 @@ void MenuProc(void) } y += 20; - // ?N??? + // ???? if (PetAlbum[albumNo].wind > 0){ x2 = (int)(PetAlbum[albumNo].wind * 0.8); @@ -19247,19 +19247,19 @@ void MenuProc(void) y = pActMenuWnd->y + 215; - // ????Id????k? + // ????????? nowTopNo = albumWndPageNo * 8; - // ??????? + // ??????? for (i = 0; i < 8; i++){ // ???????? if (nowTopNo + i >= MAX_PET_KIND) break; - // ?????????? + // ?????????? if (PetAlbum[nowTopNo + i].flag == 2){ - // ? + // ? StockDispBuffer(x + 24, y + 9, DISP_PRIO_IME3, CG_ALBUM_WND_NEW_ICON, 0); } - // ?????? + // ?????? sprintf_s(moji, "No.%3d", nowTopNo + i + 1); StockFontBuffer(x + 46, y + 1, FONT_PRIO_FRONT, 0, moji, 0); @@ -19268,27 +19268,27 @@ void MenuProc(void) if (PetAlbum[nowTopNo + i].flag == 1){ CenteringStr(PetAlbum[nowTopNo + i].name, moji, PET_NAME_LEN); StockFontBuffer(x + 112, y, FONT_PRIO_FRONT, FONT_PAL_GRAY, moji, 0); - // ???Rek???? + // ??????? albumWndFontNo[i] = -2; } else - // ??? + // ??? if (PetAlbum[nowTopNo + i].flag >= 2){ CenteringStr(PetAlbum[nowTopNo + i].name, moji, PET_NAME_LEN); albumWndFontNo[i] = StockFontBuffer(x + 112, y, FONT_PRIO_FRONT, 0, moji, 2); } } else{ - // ???Rek???? + // ??????? albumWndFontNo[i] = -2; } y += 22; } - // q??? + // ??? albumWndFontNo[16] = StockDispBuffer(pActMenuWnd->x + 25 + 32 + 10 + 40, pActMenuWnd->y + 400, DISP_PRIO_IME3, CG_PREV_BTN + albumWndBtnFlag[16], 2); albumWndFontNo[17] = StockDispBuffer(pActMenuWnd->x + 75 + 32 + 9 + 10 + 40, pActMenuWnd->y + 400, DISP_PRIO_IME3, CG_NEXT_BTN + albumWndBtnFlag[17], 2); - // ????? + // ????? albumWndFontNo[19] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, pActMenuWnd->y + 448 - 19, DISP_PRIO_IME3, CG_CLOSE_BTN, 2); } } @@ -19297,32 +19297,32 @@ void MenuProc(void) } } - //? Pf??????? ***********************************************************/ + //? ??????? ***********************************************************/ if (BattleResultWndFlag >= 1 && ProcNo == PROC_GAME && SubProcNo == 3){ // ?????? if (--ResultWndTimer <= 0){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ??????????? + // ??????????? BattleResultWndFlag = FALSE; - // ???????????? + // ???????????? if (MapWmdFlagBak != TRUE){ - // ???????? + // ???????? play_se(203, 320, 240); } } - static int ᆳж = FALSE; + static int 宠物经验判断 = FALSE; switch (BattleResultWndFlag){ - case 1: // ??k??????? + case 1: // ????????? if (pActMenuWnd == NULL){ - ᆳж = FALSE; + 宠物经验判断 = FALSE; int flag = 0; - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(320 - 160, 240 - 120, 5, 6, CG_WND_TITLE_RESULT, 2); - // ???Re??? + // ?????? for (i = 0; i < MENU_BTL_RESULT_0; i++) resultWndFontNo[i] = -2; // ?????????? for (i = 0; i < 4; i++){ @@ -19339,20 +19339,20 @@ void MenuProc(void) } } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??? + // ??? if (HitDispNo == resultWndFontNo[0]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ??????????? + // ??????????? BattleResultWndFlag = FALSE; - // ???????????? + // ???????????? if (MapWmdFlagBak != TRUE){ - // ???????? + // ???????? play_se(203, 320, 240); } } @@ -19362,54 +19362,54 @@ void MenuProc(void) if (pActMenuWnd != NULL){ int color; int flag, j; - // ?@e + // ? x = pActMenuWnd->x + 12; y = pActMenuWnd->y + 44; - // ?q + // ? CenteringStr( pc.name, moji, CHAR_NAME_LEN ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, moji, 0 ); - color = FONT_PAL_GRAY; // ????? + color = FONT_PAL_GRAY; // ????? // ???????? if( battleResultMsg.resChr[ 0 ].levelUp == TRUE ){ - // ?????? + // ?????? StockFontBuffer( x + 152, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW, "LvUp!", 0 ); } - // ??k + // ?? sprintf( moji,"Exp %+5d", battleResultMsg.resChr[ 0 ].exp ); StockFontBuffer( x + 148 + 58, y, FONT_PRIO_FRONT, 0, moji, 0 ); y += 20; - // ?????? + // ?????? for( i = 0 ; i < 5 ; i++ ){ // ??????????? ?? ?????? if( pet[ i ].useFlag == TRUE && (pc.selectPetNo[ i ] == TRUE || pc.ridePetNo == i ) ){ - // q???? - // ?????? + // ???? + // ?????? if( pet[ i ].freeName[ 0 ] != NULL ) CenteringStr( pet[ i ].freeName, moji, PET_NAME_LEN ); else CenteringStr( pet[ i ].name, moji, PET_NAME_LEN ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, moji, 0 ); - color = FONT_PAL_GRAY; // ????? + color = FONT_PAL_GRAY; // ????? flag = FALSE; // ?????? - // Pf???Bl????S?? + // ????????? for( j = 1 ; j < RESULT_CHR_EXP ; j++ ){ // ???? if( battleResultMsg.resChr[ j ].petNo == i ){ // ???????? if( battleResultMsg.resChr[ j ].levelUp == TRUE ){ // ???????? - // ?????? + // ?????? StockFontBuffer( x + 152, y, FONT_PRIO_FRONT, FONT_PAL_YELLOW,"LvUp!", 0 ); } - // ??k + // ?? sprintf( moji,"Exp %+5d", battleResultMsg.resChr[ j ].exp ); StockFontBuffer( x + 148 + 58, y, FONT_PRIO_FRONT, 0, moji, 0 ); flag = TRUE; } } - // ???? + // ???? if( flag == FALSE ){ sprintf( moji,"Exp %+4d", battleResultMsg.resChr[ j ].exp ); StockFontBuffer( x + 148 + 58, y, FONT_PRIO_FRONT, 0, "Exp +0", 0 ); @@ -19419,8 +19419,8 @@ void MenuProc(void) } flag = FALSE; y = pActMenuWnd->y + 134; - // ????: - StockFontBuffer( x, y+30, FONT_PRIO_FRONT, 0, " ", 0 ); + // ????:  + StockFontBuffer( x, y+30, FONT_PRIO_FRONT, 0, " 道具 :", 0 ); char itemName[128]; memset(itemName,0,128); for( i = 0 ; i < 3 ; i++ ){ @@ -19433,11 +19433,11 @@ void MenuProc(void) } } if( flag == FALSE ){ - StockFontBuffer( x + 85, y+30, FONT_PRIO_FRONT, 0, "ûеõκεߡ", 0 ); + StockFontBuffer( x + 85, y+30, FONT_PRIO_FRONT, 0, "没有得到任何道具。", 0 ); } resultWndFontNo[ 0 ] = StockDispBuffer( ( ( WINDOW_DISP *)pActMenuWnd->pYobi )->mx, pActMenuWnd->y + 216+30, DISP_PRIO_IME3, CG_CLOSE_BTN, 2 ); - if (!ᆳж&&鿪){ + if (!宠物经验判断&&经验开关){ int petexp[2]; int petlevel[2]; int petindex[2]; @@ -19461,25 +19461,25 @@ void MenuProc(void) } } } - ᆳж = !ᆳж; + 宠物经验判断 = !宠物经验判断; char token[256]; if(battleResultMsg.resChr[0].levelUp) - sprintf_s(token, "õ飺[Լ%d UpLv!] ", battleResultMsg.resChr[0].exp); + sprintf_s(token, "得到经验:[自己:%d UpLv!] ", battleResultMsg.resChr[0].exp); else - sprintf_s(token, "õ飺[Լ%d] ", battleResultMsg.resChr[0].exp); + sprintf_s(token, "得到经验:[自己:%d] ", battleResultMsg.resChr[0].exp); if(petindex[0]>=0){ if (petlevel[0]) - sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "[%s%d UpLv!] ",pet[ petindex[0] ].name , petexp[0]); + sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "[%s:%d UpLv!] ",pet[ petindex[0] ].name , petexp[0]); else - sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "[%s%d] ", pet[ petindex[0] ].name , petexp[0]); + sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "[%s:%d] ", pet[ petindex[0] ].name , petexp[0]); } if(petindex[1]>=0){ if (petlevel[1]) - sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "[%s%d UpLv!] ",pet[ petindex[1] ].name , petexp[1]); + sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "[%s:%d UpLv!] ",pet[ petindex[1] ].name , petexp[1]); else - sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "[%s%d] ", pet[ petindex[1] ].name , petexp[1]); + sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "[%s:%d] ", pet[ petindex[1] ].name , petexp[1]); } - if (itemName[0]) sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "õƷ[%s]", itemName); + if (itemName[0]) sprintf_s(token + strlen(token), sizeof(token)-strlen(token), "得到物品:[%s]", itemName); StockChatBufferLine(token, FONT_PAL_YELLOW); } } @@ -19492,28 +19492,28 @@ void MenuProc(void) // ????????? if (pActMenuWnd == NULL){ int flag = 0; - // ????????? + // ????????? pActMenuWnd = MakeWindowDisp(320 - 96, 240 - 72, 3, 3, CG_WND_TITLE_RESULT, 2); - // ???Re??? + // ?????? for (i = 0; i < MENU_BTL_RESULT_0; i++) resultWndFontNo[i] = -2; // ???????? play_se(202, 320, 240); } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd->hp > 0){ // ???????? if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??? + // ??? if (HitDispNo == resultWndFontNo[0]){ - // ?????? + // ?????? DeathAction(pActMenuWnd); pActMenuWnd = NULL; - // ??????????? + // ??????????? BattleResultWndFlag = FALSE; - // ???????????? + // ???????????? if (MapWmdFlagBak != TRUE){ - // ???????? + // ???????? play_se(203, 320, 240); } } @@ -19522,18 +19522,18 @@ void MenuProc(void) // ???????? if (pActMenuWnd != NULL){ int color = FONT_PAL_WHITE; - // ?@e + // ? x = pActMenuWnd->x + 17; y = pActMenuWnd->y + 48; - // ?? - sprintf_s(moji, " %+8d", battleResultMsg.resChr[0].exp); + // ?? + sprintf_s(moji, " D P %+8d", battleResultMsg.resChr[0].exp); StockFontBuffer(x, y, FONT_PRIO_FRONT, color, moji, 0); y += 28; - // ?? - sprintf_s(moji, " %8d", battleResultMsg.resChr[1].exp); + // ?? + sprintf_s(moji, " 合 计 %8d", battleResultMsg.resChr[1].exp); StockFontBuffer(x, y, FONT_PRIO_FRONT, 0, moji, 0); - // ????????? + // ????????? resultWndFontNo[0] = StockDispBuffer(((WINDOW_DISP *)pActMenuWnd->pYobi)->mx, pActMenuWnd->y + 120, DISP_PRIO_IME3, CG_CLOSE_BTN, 2); } } @@ -19542,11 +19542,11 @@ void MenuProc(void) } } - //¿ʼΪӴ + //以下开始为交易视窗部分 if (MenuToggleFlag & JOY_CTRL_T) { char buffer[1024]; -#ifdef _TRADESYSTEM2 // Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // Syu ADD 新交易系统 char buffer2[1024]; int j; #endif @@ -19559,7 +19559,7 @@ void MenuProc(void) { static int btnYes = -1, btnNo = -1; char questStr[200]; - sprintf(questStr, "ȷ[style c=5]%s[/style]Ľ", opp_name); + sprintf(questStr, "确定接受玩家[style c=5]%s[/style]的交易请求吗?", opp_name); StockFontBuffer(245, 220, FONT_PRIO_AFRONT, 3, questStr, 0); StockDispBuffer(320, 240, DISP_PRIO_YES_NO_WND, CG_DROPWND, 0); btnYes = StockDispBuffer(320, 240, DISP_PRIO_YES_NO_BTN, CG_COMMON_YES_BTN, 2); @@ -19570,7 +19570,7 @@ void MenuProc(void) if (btnYes == HitDispNo) { sprintf_s(buffer, "C|%s|%s|1", opp_sockfd, opp_name); - //ͳȡѶϢServer֪ͨԷ + //送出取消讯息给Server通知对方 lssproto_TD_send(sockfd, buffer); play_se(203, 320, 240); btnYes = -1; @@ -19580,7 +19580,7 @@ void MenuProc(void) else if (btnNo == HitDispNo) { sprintf_s(buffer, "C|%s|%s|0", opp_sockfd, opp_name); - //ͳȡѶϢServer֪ͨԷ + //送出取消讯息给Server通知对方 lssproto_TD_send(sockfd, buffer); play_se(203, 320, 240); btnYes = -1; @@ -19592,12 +19592,12 @@ void MenuProc(void) } #endif default: - //ӴΪʱʼ + //视窗为产生时初始化 if (pActMenuWnd4 == NULL) { DeathMenuAction(); DeathMenuAction2(); - //ֶbuffʼ + //手动输入金额buff初始化 TradeBuffer.buffer[0] = NULL; TradeBuffer.cnt = 0; TradeBuffer.cursor = 0; @@ -19611,15 +19611,15 @@ void MenuProc(void) y = (lpDraw->ySize - 456) / 2; pActMenuWnd4 = MakeWindowDisp(x, y, 620, 456, 0, -1, FALSE); #ifdef _NEW_ITEM_ - ҳ = 0; + 道具栏页数 = 0; #endif -#ifdef _CHANGETRADERULE // (ɿ) Syu ADD ׹޶ +#ifdef _CHANGETRADERULE // (不可开) Syu ADD 交易规则修订 TradeBtnflag = false; #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //״̬ʼ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //状态初始化 locknum = -1; locknum2 = -1; MainTradeWndflag = true; @@ -19631,8 +19631,8 @@ void MenuProc(void) for (i = 0; i < 43; i++) tradeList[i].data = -1; -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի - //Ӵ +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 + //视窗开启清空内容 tradetalkwndflag = false; for (i = 0; i < 4; i++) sprintf_s(talkmsg[i], ""); @@ -19643,11 +19643,11 @@ void MenuProc(void) x = (lpDraw->xSize - 620) / 2; y = (lpDraw->ySize - 456) / 2; SecondTradeWnd = MakeWindowDisp(x, y, 620, 456, 0, -1, FALSE); - for (i = 0; i < 43; i++) { //б + for (i = 0; i < 43; i++) { //清理交易列表 tradeList[i].data = -1; tradeList[i].kind = 'S'; } - for (i = 0; i < 21; i++){ //б + for (i = 0; i < 21; i++){ //清理交易列表 mytradelist[i] = -1; opptradelist[i] = -1; } @@ -19692,8 +19692,8 @@ void MenuProc(void) else { -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - // Ӵ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + // 主视窗内容 if (MainTradeWndflag == true) { SecondTradeWndflag = false; @@ -19703,9 +19703,9 @@ void MenuProc(void) { - //Ӵ -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ӴʱӴPetAction + //产生交易主视窗 +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //回主视窗时清除检视视窗PetAction if (SecondActPet != NULL) { DeathAction(SecondActPet); @@ -19717,35 +19717,35 @@ void MenuProc(void) #endif - // Ϊʱ Start + // 以下为滑鼠左键被按下时 Start if (mouse.onceState & MOUSE_LEFT_CRICK) { - // ȡ Start - //ȡ + // 处理取消键 Start + //处理按下取消键 if (HitDispNo == tradeWndFontNo[1]) { - //رսӴ + //关闭交易视窗 MenuToggleFlag &= ~JOY_CTRL_T; - //ӴرЧ + //视窗关闭音效 play_se(203, 320, 240); sprintf_s(buffer, "W|%s|%s", opp_sockfd, opp_name); - //ͳȡѶϢServer֪ͨԷ + //送出取消讯息给Server通知对方 lssproto_TD_send(sockfd, buffer); tradeStatus = 0; tradeInit(); pc.trade_confirm = 1; } - // ȡ End + // 处理取消键 End - // Lock ȷ Start -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ӴӴLockȷfunction + // 处理 Lock 、 确定键 Start +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //主视窗与检视视窗共用Lock跟确定function LockAndOkfunction(); - // Lock ȷ End + // 处理 Lock 、 确定键 End - //Ӵлť + //主副视窗切换钮 if (HitDispNo == tradeWndFontNo[21]) { MainTradeWndflag = false; @@ -19755,7 +19755,7 @@ void MenuProc(void) for (i = 0; i < 6; i++) SecondtradeWndFontNo[i] = -2; } - //ԷƷϾť + //对方物品向上卷动钮 if (HitDispNo == tradeWndFontNo[18]) { if (drag1Y >= 67) @@ -19763,7 +19763,7 @@ void MenuProc(void) if (drag1Y < 67) drag1Y = 67; } - //ԷƷ¾ť + //对方物品向下卷动钮 if (HitDispNo == tradeWndFontNo[19]) { if (drag1Y <= 151) @@ -19771,7 +19771,7 @@ void MenuProc(void) if (drag1Y > 151) drag1Y = 151; } - //ҷƷϾť + //我方物品向上卷动钮 if (HitDispNo == tradeWndFontNo[15]) { if (drag2Y >= 257) @@ -19779,7 +19779,7 @@ void MenuProc(void) if (drag2Y < 257) drag2Y = 257; } - //ҷƷ¾ť + //我方物品向下卷动钮 if (HitDispNo == tradeWndFontNo[16]) { if (drag2Y <= 341) @@ -19787,7 +19787,7 @@ void MenuProc(void) if (drag2Y > 341) drag2Y = 341; } - //ҷƷҷ + //我方物品拖曳启动 if (HitDispNo == tradeWndFontNo[20]) { if (!dragflag1) @@ -19796,7 +19796,7 @@ void MenuProc(void) dragflag1 = true; } } - //ԷƷҷ + //对方物品拖曳启动 if (HitDispNo == tradeWndFontNo[17]) { if (!dragflag2) @@ -19805,35 +19805,35 @@ void MenuProc(void) dragflag2 = true; } } -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի - //ҷť +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 + //拖曳钮 if (HitDispNo == tradeWndFontNo[14]) talkwndflag = true; - //رť + //关闭钮 #endif #endif } - // Ϊʱ End + // 以上为滑鼠左键被按下时 End -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ҷҷť +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //我方拖曳钮界线限制 if (dragflag1 == true && (tmpdrag1Y - mouse.crickLeftDownPoint.y + mouse.nowPoint.y) <= 151 && (tmpdrag1Y - mouse.crickLeftDownPoint.y + mouse.nowPoint.y) >= 67){ drag1Y = tmpdrag1Y - mouse.crickLeftDownPoint.y + mouse.nowPoint.y; } - //Էҷť + //对方拖曳钮界线限制 if (dragflag2 == true && (tmpdrag2Y - mouse.crickLeftDownPoint.y + mouse.nowPoint.y) <= 341 && (tmpdrag2Y - mouse.crickLeftDownPoint.y + mouse.nowPoint.y) >= 257){ drag2Y = tmpdrag2Y - mouse.crickLeftDownPoint.y + mouse.nowPoint.y; } -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի - //Իҷλ +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 + //对话方框拖曳位移 if (talkwndflag == true) { talkwndx = mouse.nowPoint.x; @@ -19844,8 +19844,8 @@ void MenuProc(void) #endif #endif - // ѡȡ Start - // ѡȡ + // 处理宠物选取左键 Start + // 处理宠物选取左键 if (HitDispNo == tradeWndFontNo[2]) { if (mouse.onceState & MOUSE_LEFT_CRICK) @@ -19873,10 +19873,10 @@ void MenuProc(void) } } - // ѡȡ End + // 处理宠物选取左键 End - // ѡȡҼ Start - // ѡȡҼ + // 处理宠物选取右键 Start + // 处理宠物选取右键 if (HitDispNo == tradeWndFontNo[3]) { if (mouse.onceState & MOUSE_LEFT_CRICK) @@ -19905,18 +19905,18 @@ void MenuProc(void) } } - // ѡȡҼ End + // 处理宠物选取右键 End - // Ӽ Start + // 处理金额增加键 Start if (HitDispNo == tradeWndFontNo[4]) { if (mouse.onceState & MOUSE_LEFT_CRICK_UP && tradeWndBtnFlag[4] == TRUE) tradeWndBtnFlag[4] = FALSE; if (tradeWndBtnFlag[4] == TRUE) { - // ʱFocusChatBuffer + // 按下增加时将Focus还给ChatBuffer GetKeyInputFocus(&MyChatBuffer); - // Ӵʱԭ趨 + // 视窗消灭时还原设定 Tradeflag = false; tradeWndDropGold += tradeWndDropGoldInc; tradeWndDropGoldCnt++; @@ -19930,7 +19930,7 @@ void MenuProc(void) tradeWndDropGoldInc = 10000; } } - //ȷ + //金额上限确认 if (tradeWndDropGold >= pc.gold) { tradeWndDropGold = pc.gold; @@ -19956,18 +19956,18 @@ void MenuProc(void) } else tradeWndBtnFlag[4] = FALSE; - // Ӽ End + // 处理金额增加键 End - // ټ Start + // 处理金额减少键 Start if (HitDispNo == tradeWndFontNo[5]) { if (mouse.onceState & MOUSE_LEFT_CRICK_UP && tradeWndBtnFlag[5] == TRUE) tradeWndBtnFlag[5] = FALSE; if (tradeWndBtnFlag[5] == TRUE) { - // ¼ʱFocusChatBuffer + // 按下减少时将Focus还给ChatBuffer GetKeyInputFocus(&MyChatBuffer); - // Ӵʱԭ趨 + // 视窗消灭时还原设定 Tradeflag = false; tradeWndDropGold -= tradeWndDropGoldInc; tradeWndDropGoldCnt++; @@ -20009,16 +20009,16 @@ void MenuProc(void) } else tradeWndBtnFlag[5] = FALSE; - // ټ End + // 处理金额减少键 End - // ü Start + // 处理金额放置键 Start if (HitDispNo == tradeWndFontNo[6]) { if (mouse.onceState & MOUSE_LEFT_CRICK) { - // ·ʱFocusChatBuffer + // 按下放置时将Focus还给ChatBuffer GetKeyInputFocus(&MyChatBuffer); - // Ӵʱԭ趨 + // 视窗消灭时还原设定 Tradeflag = false; if (tradeWndDropGold > 0 && eventWarpSendFlag == FALSE) { @@ -20035,7 +20035,7 @@ void MenuProc(void) tradeWndBtnFlag[6] = FALSE; int TradeGoldIndex = 0; -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 if ((tradeList[21].data == -1)) { tradeList[21].data = tradeWndDropGold; @@ -20046,7 +20046,7 @@ void MenuProc(void) if (TradeGoldIndex != 0) { -#ifdef _CHANGETRADERULE // (ɿ) Syu ADD ׹޶ +#ifdef _CHANGETRADERULE // (不可开) Syu ADD 交易规则修订 TradeBtnflag = true; #endif play_se(212, 320, 240); @@ -20059,12 +20059,12 @@ void MenuProc(void) } else tradeWndBtnFlag[6] = FALSE; - // ü End + // 处理金额放置键 End - // ü Start + // 处理宠物放置键 Start if (HitDispNo == tradeWndFontNo[7]) { -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 tradeWndBtnFlag[7] = TRUE; #endif if (mouse.onceState & MOUSE_LEFT_CRICK_UP) @@ -20089,7 +20089,7 @@ void MenuProc(void) tradePet[0].maxHp = pet[tradePetIndex].maxHp; tradePet[0].index = tradePetIndex; -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 pet[tradePetIndex].useFlag = NULL; if (pActPet3) { @@ -20101,7 +20101,7 @@ void MenuProc(void) DeathAction(pActPet4); pActPet4 = NULL; -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 tradeList[tradePetIndex + 16].data = tradePetIndex; tradeList[tradePetIndex + 16].kind = 'P'; strcpy(tradeList[tradePetIndex + 16].name, pet[tradePetIndex].name); @@ -20114,13 +20114,13 @@ void MenuProc(void) if (pet[tradePetIndex].freeName[0] != NULL) strcpy(tradeList[tradePetIndex + 16].freename, pet[tradePetIndex].freeName); else - strcpy(tradeList[tradePetIndex + 16].freename, "");// change fix ֹδijʾһĸbug + strcpy(tradeList[tradePetIndex + 16].freename, "");// change fix 防止未改名的宠物显示出上一个丢掉宠物的改名bug #endif if (tradeStatus) { -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ͳ׳ļܡԭ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //增加送出欲交易宠物的技能、原名、更改名 sprintf_s(buffer2, "%s|%s|%s|%s|%s|%s|%s|%s|%s", petSkill[tradePetIndex][0].name, petSkill[tradePetIndex][1].name, @@ -20139,20 +20139,20 @@ void MenuProc(void) } } } - // ü End + // 处理宠物放置键 End -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ŵȡҷ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //滑鼠左键放掉取消所有拖曳旗标 if (mouse.onceState & MOUSE_LEFT_CRICK_UP) { dragflag1 = false; dragflag2 = false; -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 talkwndflag = false; #endif } #endif - //δµťȫԭ + //未被按下的钮全部还原 for (i = 2; i <= 8; i++) { if (mouse.state & MOUSE_LEFT_CRICK && tradeWndBtnFlag[i] == TRUE) @@ -20160,17 +20160,17 @@ void MenuProc(void) else tradeWndBtnFlag[i] = FALSE; } - // Ӵ + // 产生主视窗各零件 if (pActMenuWnd4 != NULL) { - // ȡӴ׼X , Y + // 取得视窗基准X , Y座标 x = pActMenuWnd4->x; y = pActMenuWnd4->y; - // ˽ֵʾ + // 个人金额最大值显示 -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի - //Ի +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 + //对话框内容 if (tradetalkwndflag != false) { for (i = 3; i >= 0; i--) @@ -20183,10 +20183,10 @@ void MenuProc(void) #endif int ShowPoint; int j = 0; - //ԷĽ嵥ֿʼλ + //对方的交易清单呈现开始位置 ShowPoint = (drag2Y - 257) / 4; - //ҷList嵥 - for (i = 0; i < 21; i++) //б xiezi + //建立我方List清单 + for (i = 0; i < 21; i++) //修正交易列表 xiezi { if (tradeList[i + 1].data != -1) { @@ -20195,8 +20195,8 @@ void MenuProc(void) } } j = 0; - //ԷList嵥 - for (i = 21; i < 42; i++) //б xiezi + //建立对方List清单 + for (i = 21; i < 42; i++) //修正交易列表 xiezi { if (tradeList[i + 1].data != -1) { @@ -20205,15 +20205,15 @@ void MenuProc(void) } } j = 0; - //ʾҷ嵥 - for (i = ShowPoint; i < ShowPoint + 5 && i < 21; i++) //嵥 xiezi + //显示我方交易清单 + for (i = ShowPoint; i < ShowPoint + 5 && i < 21; i++) //交易清单修正 xiezi { if (mytradelist[i] == -1) break; - //˵õHitBoxʱ + //说明框用的HitBox暂时不做 // if( MakeHitBox( x + 10 , y + 226 + j * 29, x + 280 , y + 244 + j * 29 , DISP_PRIO_IME3 ) == TRUE ){ // } sprintf_s(moji, "%c", tradeList[mytradelist[i]].kind); - //ʾ + //显示道具 if (strcmp(moji, "I") == 0) { sprintf_s(moji, "%s", tradeList[mytradelist[i]].name); @@ -20231,7 +20231,7 @@ void MenuProc(void) StockFontBuffer(x + 220, y + 228 + j * 29, FONT_PRIO_FRONT, 0, moji, 0); j++; } - //ʾ + //显示宠物 else if (strcmp(moji, "P") == 0) { int colors = 0; @@ -20248,24 +20248,24 @@ void MenuProc(void) #ifdef _PET_2TRANS sprintf_s( moji , "Lv:%d%s" , tradeList[mylist].level, ""); if (tradeList[mylist].trns == 1) - sprintf_s(moji, "Lv:%d%s", tradeList[mylist].level, "һת"); + sprintf_s(moji, "Lv:%d%s", tradeList[mylist].level, "一转"); else if (tradeList[mylist].trns == 2) - sprintf_s(moji, "Lv:%d%s", tradeList[mylist].level, "ת"); + sprintf_s(moji, "Lv:%d%s", tradeList[mylist].level, "二转"); #ifdef _SHOW_FUSION if (LOWORD(tradeList[mylist].fusion) == 1) - sprintf_s(moji, "Lv:%d%s", tradeList[mylist].level, "ں"); + sprintf_s(moji, "Lv:%d%s", tradeList[mylist].level, "融合"); #endif #else - sprintf_s(moji, "Lv:%d%s", tradeList[mylist].level, (tradeList[mylist].trns == 0) ? "" : "ת"); + sprintf_s(moji, "Lv:%d%s", tradeList[mylist].level, (tradeList[mylist].trns == 0) ? "" : "转"); #endif StockFontBuffer(x + 220, y + 228 + j * 29, FONT_PRIO_FRONT, 0, moji, 0); j++; } - //ʾǮ + //显示金钱 else if (strcmp(moji, "G") == 0) { - StockFontBuffer(x + 12, y + 228 + j * 29, FONT_PRIO_FRONT, 0, "ʯ", 0); + StockFontBuffer(x + 12, y + 228 + j * 29, FONT_PRIO_FRONT, 0, "石币", 0); sprintf_s(moji, "%d", tradeList[mytradelist[i]].data); StockFontBuffer(x + 102, y + 228 + j * 29, FONT_PRIO_FRONT, 0, moji, 0); sprintf_s(moji, "%s", "Gold"); @@ -20276,22 +20276,22 @@ void MenuProc(void) break; } j = 0; - //ԷĽ嵥ֿʼλ + //对方的交易清单呈现开始位置 ShowPoint = (drag1Y - 67) / 4; - //ʾԷ嵥 - for (i = ShowPoint; i < ShowPoint + 5 && i < 21; i++) //嵥 xiezi + //显示对方交易清单 + for (i = ShowPoint; i < ShowPoint + 5 && i < 21; i++) //交易清单修正 xiezi { if (opptradelist[i] == -1) break; - //˵õHitBoxʱ + //说明框用的HitBox暂时不做 // if( MakeHitBox( x + 10 , y + 37 + j * 29, x + 280 , y + 55 + j * 29 , DISP_PRIO_IME3 ) == TRUE ){ // } sprintf_s(moji, "%c", tradeList[opptradelist[i]].kind); - //ʾ + //显示道具 if (strcmp(moji, "I") == 0) { int colors = 0; int opptradlist = opptradelist[i]; - // Terry modify for ԭ 2004/6/9 + // Terry modify for 都用原名 2004/6/9 sprintf_s(moji, "%s", tradeList[opptradlist].name); // sprintf_s( moji , "%s" , tradeList[ opptradlist].freename ) ; // if( strcmp( tradeList[opptradlist].name, tradeList[opptradlist].freename ) ){ @@ -20313,13 +20313,13 @@ void MenuProc(void) j++; } else if (strcmp(moji, "P") == 0) - {//ʾ + {//显示宠物 int colors = 0; //FONT_PAL_RED int opplist = opptradelist[i]; sprintf_s(moji, "%s", tradeList[opplist].name); StockFontBuffer(x + 12, y + 40 + j * 29, FONT_PRIO_FRONT, 0, moji, 0); #ifdef _SHOW_FUSION - // change fix ֻΪʾ-----> [] + // change fix 只为了颢示-----> [] if (strcmp(tradeList[opplist].freename, tradeList[opplist].name) == 0) { sprintf_s(moji, "[]"); @@ -20336,23 +20336,23 @@ void MenuProc(void) #ifdef _PET_2TRANS sprintf_s( moji , "Lv:%d%s" , tradeList[opplist].level, (tradeList[opplist].trns==0)?"":""); if (tradeList[opplist].trns == 1) - sprintf_s(moji, "Lv:%d%s", tradeList[opplist].level, "һת"); + sprintf_s(moji, "Lv:%d%s", tradeList[opplist].level, "一转"); else if (tradeList[opplist].trns == 2) - sprintf_s(moji, "Lv:%d%s", tradeList[opplist].level, "ת"); + sprintf_s(moji, "Lv:%d%s", tradeList[opplist].level, "二转"); #ifdef _SHOW_FUSION if (LOWORD(tradeList[opplist].fusion) == 1) - sprintf_s(moji, "Lv:%d%s", tradeList[opplist].level, "ں"); + sprintf_s(moji, "Lv:%d%s", tradeList[opplist].level, "融合"); #endif #else - sprintf_s(moji, "Lv:%d%s", tradeList[opplist].level, (tradeList[opplist].trns == 0) ? "" : "ת"); + sprintf_s(moji, "Lv:%d%s", tradeList[opplist].level, (tradeList[opplist].trns == 0) ? "" : "转"); #endif StockFontBuffer(x + 220, y + 40 + j * 29, FONT_PRIO_FRONT, 0, moji, 0); j++; } - //ʾǮ + //显示金钱 else if (strcmp(moji, "G") == 0) { - StockFontBuffer(x + 12, y + 40 + j * 29, FONT_PRIO_FRONT, 0, "ʯ", 0); + StockFontBuffer(x + 12, y + 40 + j * 29, FONT_PRIO_FRONT, 0, "石币", 0); sprintf_s(moji, "%d", tradeList[opptradelist[i]].data); StockFontBuffer(x + 102, y + 40 + j * 29, FONT_PRIO_FRONT, 0, moji, 0); sprintf_s(moji, "%s", "Gold"); @@ -20366,7 +20366,7 @@ void MenuProc(void) #endif sprintf_s(moji, "%7d", pc.gold); StockFontBuffer(x + 550, y + 65, FONT_PRIO_FRONT, 0, moji, 0); - // Focusֶʱʾԭֵ + // Focus不在手动输入时显示原数值 if (Tradeflag == false) { sprintf_s(moji, "%7d", tradeWndDropGold); @@ -20377,7 +20377,7 @@ void MenuProc(void) { if (pActPet3 == NULL) { -#ifdef _LIZARDPOSITION // (ɿ) Syu ADD ʾλù +#ifdef _LIZARDPOSITION // (可开放) Syu ADD 修正龙蜥显示位置过低 if ((pet[tradePetIndex].graNo == 101493) || (pet[tradePetIndex].graNo == 101494) || (pet[tradePetIndex].graNo == 101495) || (pet[tradePetIndex].graNo == 101496)) { @@ -20395,9 +20395,9 @@ void MenuProc(void) else CenteringStr(pet[tradePetIndex].name, moji, PET_NAME_LEN); - //תʱɫʾɫ -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ϵͳλƫ + //有转生时颜色显示蓝色 +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //新系统位置偏移修正 if (pet[tradePetIndex].trn == 1) StockFontBuffer(x + 330, y + 33, FONT_PRIO_FRONT, 1, moji, 0); else @@ -20417,13 +20417,13 @@ void MenuProc(void) } -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - // Խ׽е״̬Buttonʽ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + // 以交易进行到的状态决定Button样式 if (pc.trade_confirm == 1 || pc.trade_confirm == 3) tradeWndFontNo[0] = StockDispBuffer(x + 59, y + 390, DISP_PRIO_IME3, CG_TRADE_LOCK_BTN, 2); if (pc.trade_confirm == 4) tradeWndFontNo[0] = StockDispBuffer(x + 59, y + 390, DISP_PRIO_IME3, CG_TRADE_OK_BTN, 2); - //ƫ + //偏移 tradeWndFontNo[1] = StockDispBuffer(x + 240, y + 390, DISP_PRIO_IME3, CG_TRADE_CANCEL_BTN, 2); #endif @@ -20431,45 +20431,45 @@ void MenuProc(void) tradeWndFontNo[3] = StockDispBuffer(x + 486 + 20, y + 63 + 8, DISP_PRIO_IME3, CG_TRADE_RIGHT_BTN_UP + tradeWndBtnFlag[3], 2); tradeWndFontNo[4] = StockDispBuffer(x + 554 - 94, y + 93 + 106, DISP_PRIO_IME3, CG_TRADE_UP_BTN_UP + tradeWndBtnFlag[4], 2); tradeWndFontNo[5] = StockDispBuffer(x + 560 - 94, y + 93 + 106, DISP_PRIO_IME3, CG_TRADE_DOWN_BTN_UP + tradeWndBtnFlag[5], 2); -#ifdef _CHANGETRADERULE // (ɿ) Syu ADD ׹޶ +#ifdef _CHANGETRADERULE // (不可开) Syu ADD 交易规则修订 if (TradeBtnflag == false) tradeWndFontNo[6] = StockDispBuffer(x + 562 - 62 + 25, y + 148 + 108 + 8, DISP_PRIO_IME3, CG_TRADE_PUT_BTN_UP + tradeWndBtnFlag[6], 2); #else tradeWndFontNo[6] = StockDispBuffer(x + 562 - 62 + 25, y + 148 + 108 + 8, DISP_PRIO_IME3, CG_TRADE_PUT_BTN_UP + tradeWndBtnFlag[6], 2); #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ƫ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //偏移 tradeWndFontNo[7] = StockDispBuffer(x + 365 - 62 + 25, y + 190 + 108 + 8, DISP_PRIO_IME3, CG_TRADE_PUT_BTN_UP + tradeWndBtnFlag[7], 2); #endif -#ifndef _CHANGETRADERULE // (ɿ) Syu ADD ׹޶ +#ifndef _CHANGETRADERULE // (不可开) Syu ADD 交易规则修订 tradeWndFontNo[8] = StockDispBuffer(x + 55 + 25, y + 190 + 18, DISP_PRIO_IME3, CG_MAIL_WND_CLEAR_BTN_UP + tradeWndBtnFlag[8], 2); #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ƫ - //ʾ˫ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //偏移 + //交易显示双方名称 StockFontBuffer(x + 5, y + 193, FONT_PRIO_FRONT, FONT_PAL_PURPLE, pc.name, 0); StockFontBuffer(x + 5, y + 6, FONT_PRIO_FRONT, FONT_PAL_PURPLE, opp_name, 0); - //Ӵť + //检视视窗钮 tradeWndFontNo[21] = StockDispBuffer(x + 150, y + 390, DISP_PRIO_IME3, CG_TRADE_VIEW_BTN, 2); - //ҷҷť + //我方卷轴拖曳钮 tradeWndFontNo[18] = StockDispBuffer(x + 302, y + 42, DISP_PRIO_IME3, CG_TRADE_SCROLL_UP, 2); - //ҷť + //我方卷轴上移钮 tradeWndFontNo[19] = StockDispBuffer(x + 302, y + 176, DISP_PRIO_IME3, CG_TRADE_SCROLL_DOWN, 2); - //ҷť + //我方卷轴下移钮 tradeWndFontNo[20] = StockDispBuffer(x + 302, y + drag1Y, DISP_PRIO_IME3, CG_TRADE_SCROLL_BTN, 2); - //Էҷť + //对方卷轴拖曳钮 tradeWndFontNo[15] = StockDispBuffer(x + 302, y + 232, DISP_PRIO_IME3, CG_TRADE_SCROLL_UP, 2); - //Էť + //对方卷轴上移钮 tradeWndFontNo[16] = StockDispBuffer(x + 302, y + 366, DISP_PRIO_IME3, CG_TRADE_SCROLL_DOWN, 2); - //Էť + //对方卷轴下移钮 tradeWndFontNo[17] = StockDispBuffer(x + 302, y + drag2Y, DISP_PRIO_IME3, CG_TRADE_SCROLL_BTN, 2); #endif - // αڽλʱ + // 假设游标在金额位置时 if (MakeHitBox(x + 530, y + 115, x + +530 + 86, y + 115 + 25, DISP_PRIO_IME3) == TRUE) { - // »ȡfocusʼ + // 按下滑鼠取得focus及初始化 if (mouse.onceState & MOUSE_LEFT_CRICK) { strcpy(TradeBuffer.buffer, ""); @@ -20481,7 +20481,7 @@ void MenuProc(void) play_se(217, 320, 240); } } - // focusֶʱʾbuffer + // focus在手动输入时显示buffer if (Tradeflag == true) { TradeBuffer.x = pActMenuWnd4->x + 600 - strlen(TradeBuffer.buffer) * 7; @@ -20497,32 +20497,32 @@ void MenuProc(void) if (pc.trade_confirm == 2) { -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ƫ - StockFontBuffer(x + 220, y + 194, FONT_PRIO_FRONT, FONT_PAL_RED, "", 0); +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //偏移 + StockFontBuffer(x + 220, y + 194, FONT_PRIO_FRONT, FONT_PAL_RED, "锁定交易", 0); } if (pc.trade_confirm == 3) { - StockFontBuffer(x + 210, y + 194, FONT_PRIO_FRONT, FONT_PAL_RED, "Է", 0); + StockFontBuffer(x + 210, y + 194, FONT_PRIO_FRONT, FONT_PAL_RED, "对方锁定交易", 0); } if (pc.trade_confirm == 4) { if (tradeStatus == 2) - StockFontBuffer(x + 220, y + 194, FONT_PRIO_FRONT, FONT_PAL_RED, "ȷ", 0); + StockFontBuffer(x + 220, y + 194, FONT_PRIO_FRONT, FONT_PAL_RED, "交易确认", 0); else - StockFontBuffer(x + 210, y + 194, FONT_PRIO_FRONT, FONT_PAL_RED, "ȷ", 0); + StockFontBuffer(x + 210, y + 194, FONT_PRIO_FRONT, FONT_PAL_RED, "最后交易确认", 0); } #endif } #ifdef _NEW_ITEM_ for (i = 0; i < 3; i++){ - if (i == ҳ){ + if (i == 道具栏页数){ StockDispBuffer(722, 335 + i * 56, DISP_PRIO_IME2, 55223 + i, 1); } else{ BOOL flg = FALSE; if (i){ - if (pc.״̬ & 1 << i){ + if (pc.道具栏状态 & 1 << i){ flg = TRUE; } } @@ -20531,7 +20531,7 @@ void MenuProc(void) StockDispBuffer(727 - 11, 335 + i * 56, DISP_PRIO_IME2, 55226 + i, 1); if (MakeHitBox(717 - 11, 307 + i * 56, 717 + 20 - 11, 304 + i * 56 + 60, DISP_PRIO_IME4)){ if (mouse.onceState & MOUSE_LEFT_CRICK){ - ҳ = i; + 道具栏页数 = i; } } } @@ -20542,14 +20542,14 @@ void MenuProc(void) for (i = MAX_ITEM - 1; i >= MAX_ITEMSTART; i--) { #ifdef _NEW_ITEM_ - int ʼ = MAX_ITEMSTART + MAX_MAXHAVEITEM*ҳ; - int ߽ = ʼ + MAX_MAXHAVEITEM; + int 道具起始 = MAX_ITEMSTART + MAX_MAXHAVEITEM*道具栏页数; + int 道具结束 = 道具起始 + MAX_MAXHAVEITEM; if (i >= MAX_ITEMSTART){ - if (i < ʼ || i >= ߽) continue; + if (i < 道具起始 || i >= 道具结束) continue; } #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ѡȡ׵ĸӡ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //已选取交易的盖杖印章 #ifdef _ITEM_PILENUMS if (itemflag[i - MAX_ITEMSTART] <= 0) { @@ -20557,9 +20557,9 @@ void MenuProc(void) if (itemflag[i - MAX_ITEMSTART] == 1) { #endif - //ԭΪʾԭ߲ + //原本为显示原道具并盖上章 //StockDispBuffer( ItemBuffer[ i ].defX, ItemBuffer[ i ].defY, ItemBuffer[ i ].dispPrio, CG_TRADE_SEAL , 0 ); - //Ϊأֱʾ + //修正为道具隐藏,直接跳过不做后续显示 continue; @@ -20570,49 +20570,49 @@ void MenuProc(void) x + ItemBuffer[i].defX + 15, y + ItemBuffer[i].defY + 28, DISP_PRIO_IME3) == TRUE) { #ifdef _TELLCHANNEL - // Terry fix 2003/12/16 for Ӵʱ,ʾƷ˵ʾ뷨 - //TaskBarFlag = TRUE;вҪ - bShowItemExplain = TRUE; // + // Terry fix 2003/12/16 for 交易视窗开启时,显示物品说明不显示输入法 + //TaskBarFlag = TRUE;这行不要 + bShowItemExplain = TRUE; // 新增这行 // end #endif - // λеߵ + // 该栏位有道具的情况 if (pc.item[i].useFlag == TRUE && ItemBuffer[i].mixFlag <= 2) { char *splitPoint = pc.item[i].memo; int color = pc.item[i].color; - // ƷܷʹCheck + // 交易物品能否使用Check if (pc.transmigration == 0 && pc.level < pc.item[i].level) color = FONT_PAL_RED; - // ʾ + // 道具名称显示 StockFontBuffer(0, 460 + DISPLACEMENT_Y, FONT_PRIO_FRONT, color, pc.item[i].name, 0); - // ˵ + // 道具说明 StockFontBuffer(160, 460 + DISPLACEMENT_Y, FONT_PRIO_FRONT, 0, splitPoint, 0); #ifdef _NPC_ITEMUP ShowItemup(pc.item[i].itemup, mouse.nowPoint.x, mouse.nowPoint.y); #endif } - // ڵϵµ + // 在道具上点两下的情况 if (mouse.onceState & MOUSE_LEFT_DBL_CRICK) { if (tradeStatus != 1) return; if (pc.trade_confirm == 2 || pc.trade_confirm == 4) return; - // ϳر + // 合成旗标关闭 ItemBuffer[i].mixFlag = FALSE; - // ȷϸλе + // 确认该位置有道具 if (pc.item[i].useFlag == TRUE){ ItemBuffer[i].dragFlag = TRUE; mouse.itemNo = i; - // ѡڻ + // 道具选择初期化 itemNo = -1; } -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 if (mouse.itemNo != -1) { - //ҳ + //道具栏页数 char buf[1024]; int chkindex = 0, frontempIndex = 0; - //tradeListռǷ xiezi + //检查道具tradeList空间是否已满 修正 xiezi for (int scanindex = 1; scanindex < 16; scanindex++) { if (tradeList[chkindex].data == i) @@ -20654,10 +20654,10 @@ void MenuProc(void) } if (pc.item[i].useFlag == TRUE) { - // ǺϳƷ + // 非合成物品的情况 if (ItemBuffer[i].mixFlag <= 2) { char buf[256]; - // ʾ + // 道具显示 StockDispBuffer(x + ItemBuffer[i].defX - 8, y + ItemBuffer[i].defY, ItemBuffer[i].dispPrio, pc.item[i].graNo, 0); @@ -20680,9 +20680,9 @@ void MenuProc(void) } } -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 } - // Ӵ + // 检视视窗内容 else if (SecondTradeWndflag == true) { MainTradeWndflag = false; @@ -20690,8 +20690,8 @@ void MenuProc(void) { x = SecondTradeWnd->x; y = SecondTradeWnd->y; -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի - //Ի +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 + //对话框内容 if (tradetalkwndflag != false) { for (i = 3; i >= 0; i--) @@ -20704,7 +20704,7 @@ void MenuProc(void) #endif SecondtradeWndFontNo[0] = StockDispBuffer(x + 254, y + 380, DISP_PRIO_IME3, CG_TRADE_CANCEL_BTN, 2); SecondtradeWndFontNo[1] = StockDispBuffer(x + 159, y + 380, DISP_PRIO_IME3, CG_TRADE_BACK_BTN, 2); - //׽״̬ + //交易进行状态 if (pc.trade_confirm == 1 || pc.trade_confirm == 3) SecondtradeWndFontNo[2] = StockDispBuffer(x + 63, y + 380, DISP_PRIO_IME3, CG_TRADE_LOCK_BTN, 2); if (pc.trade_confirm == 4) @@ -20713,7 +20713,7 @@ void MenuProc(void) sprintf_s(moji, "%7d", tradeWndDropGoldGet); #ifdef _PET_ITEM - // ʾװ + // 显示宠物装备资料 if (locknum != -1 && tradeList[locknum + 37].data != -1) { if (bViewPetEquip) @@ -20723,14 +20723,14 @@ void MenuProc(void) } #endif - //ʾǮ + //显示金钱 if (tradeWndDropGoldGet > 0) StockFontBuffer(x + 95, y + 336, FONT_PRIO_FRONT, 0, moji, 0); for (i = 0; i < 5; i++) { if (MakeHitBox(x + 320, y + 12 + i * 42, x + 600, y + 51 + i * 42, DISP_PRIO_IME3) == TRUE) { -#ifdef _TRADELOCKBTN // (ɿ) Syu ADD +#ifdef _TRADELOCKBTN // (不可开) Syu ADD 增加锁定键 if (mouse.onceState & MOUSE_LEFT_CRICK) { #ifdef _PET_ITEM @@ -20756,7 +20756,7 @@ void MenuProc(void) int iY = 251, iColor; char *splitPoint; - // ʾװĵͼװ + // 显示宠物装备栏的底图及装备 for (int iCount = 0; iCount < PET_EQUIPNUM; iCount++) { StockDispBuffer(ItemBuffer[iCount].defX, ItemBuffer[iCount].defY, DISP_PRIO_IME3, nPetItemEquipBmpNumber[iCount][0], 0); @@ -20765,7 +20765,7 @@ void MenuProc(void) } for (int iCount = 0; iCount < PET_EQUIPNUM; iCount++) { - // ʾװ + // 显示装备内容 if (MakeHitBox( ItemBuffer[iCount].defX - 26, ItemBuffer[iCount].defY - 26, ItemBuffer[iCount].defX + 26, ItemBuffer[iCount].defY + 23, DISP_PRIO_IME3) == TRUE) { @@ -20773,13 +20773,13 @@ void MenuProc(void) { iColor = opp_pet[locknum].oPetItemInfo[iCount].color; splitPoint = opp_pet[locknum].oPetItemInfo[iCount].memo; - // װ + // 装备名称 StockFontBuffer(x + 25, y + 195, FONT_PRIO_FRONT, iColor, opp_pet[locknum].oPetItemInfo[iCount].name,0); - // ;ö - sprintf_s(moji, ";ö(%s)", opp_pet[locknum].oPetItemInfo[iCount].damage); + // 耐久度 + sprintf_s(moji, "耐久度(%s)", opp_pet[locknum].oPetItemInfo[iCount].damage); StockFontBuffer(x + 25, y + 215, FONT_PRIO_FRONT, iColor, moji, 0); - // ʾ + // 显示道具叙述 while (1) { if (strlen(splitPoint) > 28) @@ -20813,12 +20813,12 @@ void MenuProc(void) else #endif { - //Action + //产生宠物Action if (SecondActPet == NULL) { ShowPetNum = atoi(opp_pet[locknum].opp_petgrano); SecondActPet = MakeAnimDisp(x + 215, y + 130, ShowPetNum, ANIM_DISP_PET); } - //Ѵʾij + //已存在显示的宠物 else if (SecondActPet != NULL && ShowPetNum != atoi(opp_pet[locknum].opp_petgrano)) { DeathAction(SecondActPet); SecondActPet = NULL; @@ -20827,7 +20827,7 @@ void MenuProc(void) } //opp_petfreename - //ʾֵ ( ) + //显示数值、技能 ( 左方 ) StockDispBuffer(x + 95, y + 40, DISP_PRIO_IME3, CG_TRADE_LINE, 0); sprintf_s(moji, "%s", opp_pet[locknum].opp_petname); StockFontBuffer(x + 55, y + 30, FONT_PRIO_FRONT, 0, moji, 0); @@ -20845,15 +20845,15 @@ void MenuProc(void) #ifdef _PET_2TRANS sprintf_s( moji,"%s", "" ); if (atoi(opp_pet[locknum].opp_pettrans) == 1) - sprintf_s(moji, "%s", "һת"); + sprintf_s(moji, "%s", "一转"); else if (atoi(opp_pet[locknum].opp_pettrans) == 2) - sprintf_s(moji, "%s", "ת"); + sprintf_s(moji, "%s", "二转"); #ifdef _SHOW_FUSION if (LOWORD(atoi(opp_pet[locknum].opp_fusion)) == 1) - sprintf_s(moji, "%s", "ں"); + sprintf_s(moji, "%s", "融合"); #endif #else - sprintf_s(moji, "%s", (atoi(opp_pet[locknum].opp_pettrans) == 0) ? "" : "ת"); + sprintf_s(moji, "%s", (atoi(opp_pet[locknum].opp_pettrans) == 0) ? "" : "转"); #endif StockFontBuffer(x + 90, y + 62, FONT_PRIO_FRONT, 2, moji, 0); @@ -20937,7 +20937,7 @@ void MenuProc(void) } #endif } - //ʾֵ ( ҷ ) + //显示数值、技能 ( 右方 ) if (tradeList[i + 37].data != -1) { sprintf_s(moji, "%s", opp_pet[i].opp_petname); @@ -20952,15 +20952,15 @@ void MenuProc(void) #ifdef _PET_2TRANS sprintf_s( moji,"%s", "" ); if (atoi(opp_pet[i].opp_pettrans) == 1) - sprintf_s(moji, "%s", "һת"); + sprintf_s(moji, "%s", "一转"); else if (atoi(opp_pet[i].opp_pettrans) == 2) - sprintf_s(moji, "%s", "ת"); + sprintf_s(moji, "%s", "二转"); #ifdef _SHOW_FUSION if (LOWORD(atoi(opp_pet[i].opp_fusion)) == 1) - sprintf_s(moji, "%s", "ں"); + sprintf_s(moji, "%s", "融合"); #endif #else - sprintf_s(moji, "%s", (atoi(opp_pet[i].opp_pettrans) == 0) ? "" : "ת"); + sprintf_s(moji, "%s", (atoi(opp_pet[i].opp_pettrans) == 0) ? "" : "转"); #endif StockFontBuffer(x + 590, y + 13 + i * 42, FONT_PRIO_FRONT, 2, moji, 0); @@ -20976,7 +20976,7 @@ void MenuProc(void) StockFontBuffer(x + 451, y + 33 + i * 42, FONT_PRIO_FRONT, atoi(opp_pet[i].opp_pettrans), moji, 0); } } - //ʾ + //显示道具 for (i = 0; i < 3; i++) { for (j = 0; j < 5; j++) @@ -20984,7 +20984,7 @@ void MenuProc(void) if (MakeHitBox(x + 368 + 51 * j - 35, y + 265 + 47 * i - 23, x + 368 + 51 * j + 18, y + 265 + 47 * i + 23, DISP_PRIO_IME3) == TRUE) { -#ifdef _TRADELOCKBTN // (ɿ) Syu ADD +#ifdef _TRADELOCKBTN // (不可开) Syu ADD 增加锁定键 if (mouse.onceState & MOUSE_LEFT_CRICK) { locknum2 = i * 5 + j; locknum = -1; @@ -21007,7 +21007,7 @@ void MenuProc(void) y = SecondTradeWnd->y; if (tradeList[locknum2 + 22].data != -1) { - //˵ + //说明过长换行 char *splitPoint = opp_item[locknum2].effect; while (1) { @@ -21057,7 +21057,7 @@ void MenuProc(void) if (strcmp(opp_item[locknum2].damage, "") != 0) - sprintf_s(moji, ";öȣ%s", opp_item[locknum2].damage); + sprintf_s(moji, "耐久度:%s", opp_item[locknum2].damage); StockFontBuffer(x + 50, y + 240, FONT_PRIO_FRONT, 0, moji, 0); } #endif @@ -21081,7 +21081,7 @@ void MenuProc(void) if (SecondTradeWnd->hp > 0) { - //׵ڶӴ + //产生交易第二视窗 if (pActPet3 != NULL) { DeathAction(pActPet3); @@ -21092,12 +21092,12 @@ void MenuProc(void) if (mouse.onceState & MOUSE_LEFT_CRICK) { if (HitDispNo == SecondtradeWndFontNo[0]) { - //رսӴ + //关闭交易视窗 MenuToggleFlag &= ~JOY_CTRL_T; - //ӴرЧ + //视窗关闭音效 play_se(203, 320, 240); sprintf_s(buffer, "W|%s|%s", opp_sockfd, opp_name); - //ͳȡѶϢServer֪ͨԷ + //送出取消讯息给Server通知对方 lssproto_TD_send(sockfd, buffer); tradeStatus = 0; tradeInit(); @@ -21115,7 +21115,7 @@ void MenuProc(void) bViewPetEquip = FALSE; #endif } -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 else if (HitDispNo == SecondtradeWndFontNo[4]) talkwndflag = true; #endif @@ -21129,7 +21129,7 @@ void MenuProc(void) else LockAndOkfunction(); } -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 if (talkwndflag == true) { talkwndx = mouse.nowPoint.x; @@ -21160,7 +21160,7 @@ void MenuProc(void) pc.trade_confirm = 1; } - // Ӵֵ˽ + // 交易视窗部分到此结束 // show Bank Window @@ -21193,12 +21193,12 @@ void MenuProc(void) } else{ - // ?????????????? + // ?????????????? if (pActMenuWnd5->hp > 0){ if (mouse.onceState & MOUSE_LEFT_CRICK){ - // ??? + // ??? if (HitDispNo == bankWndFontNo[0]){ closeBankman(); return; @@ -21231,16 +21231,16 @@ void MenuProc(void) cashGold += bankGoldInc; bankGoldCnt++; - // ?ƨ??? + // ???? if (bankGoldCnt >= 30){ - // ????????????? + // ????????????? bankGoldCnt = 0; // ???????? if (bankGoldInc == 0) { bankGoldInc = 1; } else{ - // ????? + // ????? bankGoldInc *= 5; // ???????? if (bankGoldInc > 10000) { @@ -21271,9 +21271,9 @@ void MenuProc(void) play_se(220, 320, 240); } else { - // ????? + // ????? bankGoldInc = 0; - // ????????????? + // ????????????? bankGoldCnt = 0; // ??????? bankWndBtnFlag[2] = TRUE; @@ -21285,7 +21285,7 @@ void MenuProc(void) } } else{ - // ?????? + // ?????? bankWndBtnFlag[2] = FALSE; } // ?????????? @@ -21293,7 +21293,7 @@ void MenuProc(void) // ??????????????? if (mouse.onceState & MOUSE_LEFT_CRICK_UP && bankWndBtnFlag[3] == TRUE){ bankWndBtnFlag[3] = FALSE; - // ?????? + // ?????? //play_se( 212, 320, 240 ); } if ((cashGold > 0) && (totalGold - cashGold < MAX_BANKGOLD)) { @@ -21302,19 +21302,19 @@ void MenuProc(void) // ???? cashGold -= bankGoldInc; - // ????????????? + // ????????????? bankGoldCnt++; - // ?ƨ??? + // ???? if (bankGoldCnt >= 30){ - // ????????????? + // ????????????? bankGoldCnt = 0; // ???????? if (bankGoldInc == 0) { bankGoldInc = 1; } else{ - // ????? + // ????? bankGoldInc *= 5; // ???????? if (bankGoldInc > 10000) { @@ -21348,9 +21348,9 @@ void MenuProc(void) play_se(220, 320, 240); } else{ - // ????? + // ????? bankGoldInc = 0; - // ????????????? + // ????????????? bankGoldCnt = 0; // ??????? bankWndBtnFlag[3] = TRUE; @@ -21368,7 +21368,7 @@ void MenuProc(void) } else{ - // ?????? + // ?????? bankWndBtnFlag[3] = FALSE; } // ????????? @@ -21378,12 +21378,12 @@ void MenuProc(void) tradeWndBtnFlag[i] = TRUE; } else{ - // ??? + // ??? tradeWndBtnFlag[i] = FALSE; } } if (pActMenuWnd5 != NULL) { - // ?@e + // ? x = pActMenuWnd5->x; y = pActMenuWnd5->y + 5; @@ -21418,7 +21418,7 @@ void MenuProc(void) } -#ifdef _NEWREQUESTPROTOCOL // (ɿ) Syu ADD ProtocolҪϸ +#ifdef _NEWREQUESTPROTOCOL // (不可开) Syu ADD 新增Protocol要求细项 void lssproto_RESIST_recv ( int fd, char *data) { for ( int i = 0 ; i < CHAR_MAX_DETAIL ; i ++ ) @@ -21438,7 +21438,7 @@ void lssproto_ALCHEPLUS_recv(int fd, char *data) } #endif -#ifdef _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol +#ifdef _OUTOFBATTLESKILL // (不可开) Syu ADD 非战斗时技能Protocol void lssproto_BATTLESKILL_recv(int fd, char *data) { setCharMind(pc.ptAct, atoi(data)); } @@ -21473,7 +21473,7 @@ void lssproto_TD_recv(int fd, char *data) char buf_sockfd[128] = ""; char buf_name[128] = ""; char buf[128] = ""; -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 char opp_index[128]; int index; char realname[256]; @@ -21483,7 +21483,7 @@ void lssproto_TD_recv(int fd, char *data) getStringToken(data, '|', 1, sizeof(char), Head); - // ׿ϳʼ + // 交易开启资料初始化 if (strcmp(Head, "C") == 0) { #ifdef _TRADE_BUG_LOG @@ -21517,7 +21517,7 @@ void lssproto_TD_recv(int fd, char *data) #endif } - //ƷѶ + //处理物品交易资讯传递 else if (strcmp(Head, "T") == 0) { if (tradeStatus == 0) return; @@ -21538,7 +21538,7 @@ void lssproto_TD_recv(int fd, char *data) pActMenuWnd4 = MakeWindowDisp(x, y, w, h, NULL, -1, FALSE); InitItem3(325, 230); -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 if (SecondTradeWnd == NULL) SecondTradeWnd = MakeWindowDisp(10, 0, 620, 456, 0, -1); #endif @@ -21596,7 +21596,7 @@ void lssproto_TD_recv(int fd, char *data) getStringToken(data, '|', 6, sizeof(opp_goldmount)-1, opp_goldmount); int mount = atoi(opp_goldmount); -#ifdef _CHANGETRADERULE // (ɿ) Syu ADD ׹޶ +#ifdef _CHANGETRADERULE // (不可开) Syu ADD 交易规则修订 if (tradeWndDropGoldGet != 0) { MenuToggleFlag ^= JOY_CTRL_T; play_se(203, 320, 240); @@ -21605,13 +21605,13 @@ void lssproto_TD_recv(int fd, char *data) lssproto_TD_send(sockfd, buf); else old_lssproto_TD_send(sockfd, buf); - sprintf_s(buf, "%sԲʽ޸Ľ׽ǮϵͳǿƹرսӴ", opp_name); + sprintf_s(buf, "%s以不正常方式修改交易金钱,系统强制关闭交易视窗!", opp_name); StockChatBufferLine(buf, FONT_PAL_RED); return; } #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 //andy_reEdit if (mount != -1) { tradeList[42].kind = 'G'; @@ -21670,7 +21670,7 @@ void lssproto_TD_recv(int fd, char *data) getStringToken(data, '|', 9, sizeof(opp_itemeffect)-1, opp_itemeffect); getStringToken(data, '|', 10, sizeof(opp_itemindex)-1, opp_itemindex); - getStringToken(data, '|', 11, sizeof(opp_itemdamage)-1, opp_itemdamage);// ʾƷ;ö + getStringToken(data, '|', 11, sizeof(opp_itemdamage)-1, opp_itemdamage);// 显示物品耐久度 #ifdef _ITEM_PILENUMS getStringToken(data, '|', 12, sizeof(pilenum)-1, pilenum);//pilenum @@ -21679,7 +21679,7 @@ void lssproto_TD_recv(int fd, char *data) getStringToken(data, '|', 13, sizeof(itemup)-1, itemup); #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 if (strcmp(opp_itemgraph, "-1") == 0) return; @@ -21687,7 +21687,7 @@ void lssproto_TD_recv(int fd, char *data) int chkindex = -1, frontempIndex = -1; - //opp_itemռǷ xiezi + //检查道具opp_item空间是否已满 修正 xiezi for (int scanindex = 0; scanindex < 15; scanindex++) { if (strcmp(opp_item[chkindex].itemindex, opp_itemindex) == 0) @@ -21711,7 +21711,7 @@ void lssproto_TD_recv(int fd, char *data) strcpy(opp_item[chkindex].damage, makeStringFromEscaped(opp_itemdamage)); chkindex = 0, frontempIndex = 0; - //tradeListռǷ xiezi + //检查道具tradeList空间是否已满 修正 xiezi for (int scanindex = 22; scanindex < 37; scanindex++) { if (tradeList[chkindex].data == i) @@ -21752,11 +21752,11 @@ void lssproto_TD_recv(int fd, char *data) char szData[256]; #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 getStringToken(data, '|', 12, sizeof(opp_index)-1, opp_index); index = -1; - //opp_itemռǷ xiezi + //检查道具opp_item空间是否已满 修正 xiezi for (int scanindex = 0; scanindex < 5; scanindex++) { if (opp_pet[scanindex].opp_petindex[0] == NULL || strcmp(opp_pet[scanindex].opp_petindex, "-1") == 0) @@ -21809,7 +21809,7 @@ void lssproto_TD_recv(int fd, char *data) } #endif -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 tradeList[index + 37].data = atoi(opp_pet[index].opp_petindex); tradeList[index + 37].kind = 'P'; strcpy(tradeList[index + 37].freename, freename); @@ -21822,7 +21822,7 @@ void lssproto_TD_recv(int fd, char *data) #endif if (opp_showindex == 3) { -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 if (strcmp(opp_pet[index].opp_petgrano, "-1") == 0) { #endif showindex[6] = 0; @@ -21848,7 +21848,7 @@ void lssproto_TD_recv(int fd, char *data) tradeStatus = 2; } - else if (strcmp(Head, "W") == 0) {//ȡ + else if (strcmp(Head, "W") == 0) {//取消交易 getStringToken(data, '|', 2, sizeof(buf_sockfd)-1, buf_sockfd); getStringToken(data, '|', 3, sizeof(buf_name)-1, buf_name); if ((strcmp(buf_sockfd, opp_sockfd) == 0) && (strcmp(buf_name, opp_name) == 0)) { @@ -21863,8 +21863,8 @@ void lssproto_TD_recv(int fd, char *data) void tradeInit(void) { -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ - //ʼʱAction +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 + //初始化时清空Action DeathAction(SecondTradeWnd); SecondTradeWnd = NULL; DeathAction(SecondActPet); @@ -21876,7 +21876,7 @@ void tradeInit(void) //end #endif DeathAction(pActMenuWnd4); - // Ӵʼʱfocuschat + // 交易视窗初始化时将focus还给chat GetKeyInputFocus(&MyChatBuffer); Tradeflag = false; pActMenuWnd4 = NULL; @@ -21954,25 +21954,25 @@ void checkRidePet(int pindex) return; #ifdef _PET_ITEM - // װ + // 宠身上有装备不可骑 for (j = 0; j < MAX_PET_ITEM; ++j){ - if (pet[pindex].item[j].useFlag){ // װװ + if (pet[pindex].item[j].useFlag){ // 身上有装装备 bHavePetItem = TRUE; break; } } #endif if( pc.ridePetNo < 0 - && pc.learnride >= pet[pindex].level //Change fix ﱻע 20050801 + && pc.learnride >= pet[pindex].level //Change fix 这里被注解掉了 20050801打开 && (pc.level + 5) > pet[pindex].level && pet[pindex].ai >= 100 && pc.graNo != SPR_pet021 - && pc.graNo != 100362 // -#ifdef _PETSKILL_BECOMEPIG // в + && pc.graNo != 100362 //金飞 +#ifdef _PETSKILL_BECOMEPIG // 乌力化中不可骑 && pc.graNo != 100250 #endif #ifdef _THEATER - && pc.graNo != 101989 // żװʱ + && pc.graNo != 101989 // 穿布偶装时不能骑宠 #endif ) { @@ -21984,8 +21984,8 @@ void checkRidePet(int pindex) // if (((ridePetTable[j].charNo == pc.graNo) || (ridePetTable[j].charNo == pc.baseGraNo)) /*&& ridePetTable[j].petNo == pet[pindex].graNo*/){ // char buf[64]; //#ifdef _PET_ITEM -// if (bHavePetItem){ // װ -// StockChatBufferLine("װˣ", FONT_PAL_YELLOW); +// if (bHavePetItem){ // 有装备不可骑 +// StockChatBufferLine("宠物身上有装备不可骑乘!", FONT_PAL_YELLOW); // pc.selectPetNo[pindex] = 0; // return; // } @@ -22012,8 +22012,8 @@ void checkRidePet(int pindex) pc.big4fm != 0 && pc.familyleader != FMMEMBER_APPLY && pc.familyleader != FMMEMBER_NONE){ char buf[64]; #ifdef _PET_ITEM - if (bHavePetItem){ // װ - StockChatBufferLine("װˣ", FONT_PAL_YELLOW); + if (bHavePetItem){ // 有装备不可骑 + StockChatBufferLine("宠物身上有装备不可骑乘!", FONT_PAL_YELLOW); pc.selectPetNo[pindex] = 0; return; } @@ -22028,7 +22028,7 @@ void checkRidePet(int pindex) } #endif } - {//andy_add + {//andy_add 新骑宠 int ti = -1, index; unsigned int LRCode = 1<<30; if ((ti = RIDEPET_getPETindex(pet[pindex].graNo, pc.lowsride)) < 0) @@ -22051,8 +22051,8 @@ void checkRidePet(int pindex) char buf[64]; if (RIDEPET_getRIDEno(index, ti) >= 0){ #ifdef _PET_ITEM - if (bHavePetItem){ // װ - StockChatBufferLine("װˣ", FONT_PAL_YELLOW); + if (bHavePetItem){ // 有装备不可骑 + StockChatBufferLine("宠物身上有装备不可骑乘!", FONT_PAL_YELLOW); pc.selectPetNo[pindex] = 0; return; } @@ -22116,7 +22116,7 @@ int RIDEPET_getRIDEno(int index, int ti) return RideNoList[index].RideNo[ti]; } -#ifdef _TELLCHANNEL //ROG ADD Ƶ +#ifdef _TELLCHANNEL //ROG ADD 密语频道 void InitSelectChar(char *msg, BOOL endFlag) { int turn, level; @@ -22167,7 +22167,7 @@ void SelectChar(void) else if (pActMsgWnd->hp > 0){ x = pActMsgWnd->x; y = pActMsgWnd->y; - char title[] = { " ת " }; + char title[] = { " 名 字 昵 称 转 生 等 级 " }; StockFontBuffer(x + 10, y + 15, FONT_PRIO_FRONT, 4, title, 0); for (int i = 0; i < CharNum; i++){ StockFontBuffer(x + 10, y + 40 + i * 20, FONT_PRIO_FRONT, 5, TellInfo[i], 0); @@ -22208,7 +22208,7 @@ void DeathTellChannel(void) #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 void initSetRoomName() { @@ -22223,7 +22223,7 @@ void initSetRoomName() void setRoomName(void) { - static int setRoomBtn[2]; //趨 + static int setRoomBtn[2]; //设定聊天室名称用 if(pSetRoomWnd == NULL){ pSetRoomWnd = MakeWindowDisp( 270, 0, 3, 2, NULL, 0 ); @@ -22244,7 +22244,7 @@ void setRoomName(void) setRoomBtn[0] = StockDispBuffer( pSetRoomWnd->x + 53, pSetRoomWnd->y + 70, DISP_PRIO_IME3, CG_OK_BTN, 2 ); setRoomBtn[1] = StockDispBuffer( pSetRoomWnd->x + 140, pSetRoomWnd->y + 70, DISP_PRIO_IME3, CG_CANCEL_BTN, 2 ); - char title[] = {"Ƶ"}; + char title[] = {"请输入频道名称"}; StockFontBuffer( x + 22, y + 10, FONT_PRIO_FRONT,4 , title, 0 ); GetKeyInputFocus( &chatRoomName ); StockFontBuffer2( &chatRoomName ); @@ -22310,7 +22310,7 @@ void SelectChatRoom(void) else if(pSelChanlWnd->hp > 0 ){ int x = pSelChanlWnd->x; int y = pSelChanlWnd->y; - char title[] = {" Ƶ ӳ "}; + char title[] = {" 频道名称 队长名称 人数 "}; StockFontBuffer( x + 10, y + 15, FONT_PRIO_FRONT,4 , title, 0 ); int i; for(i = 0 ; i < roomNum ; i++ ){ @@ -22319,12 +22319,12 @@ void SelectChatRoom(void) if( mouse.onceState & MOUSE_LEFT_CRICK ){ sprintf_s(tmpMsg,"J|%d",roomIndex[i]); lssproto_CHATROOM_send ( sockfd , tmpMsg ) ; - SelRoomBtn = 0; //رѡƵӴ + SelRoomBtn = 0; //关闭选择频道视窗 } } } - StockFontBuffer( x + 30, y + 50 + i * 20, FONT_PRIO_FRONT,5 , " µ", 0 ); + StockFontBuffer( x + 30, y + 50 + i * 20, FONT_PRIO_FRONT,5 , " 建立新的聊天室", 0 ); if( MakeHitBox(x + 30 ,y + 47 + i * 20 , x + 340 , y + 68 + i * 20, DISP_PRIO_BOX2 )){ if( mouse.onceState & MOUSE_LEFT_CRICK ) initSetRoomName(); @@ -22365,11 +22365,11 @@ void InitRoomInfo() firMemNo = 0; } -void InitCreateChatRoom(char *msg) //ʼӴ +void InitCreateChatRoom(char *msg) //初始化聊天室视窗 { char temp[64],*temp1; chatInfo.chiefFlag = 0; - InitRoomInfo(); //ʼ + InitRoomInfo(); //初始化参数 chatRoomBtn = 1; getStringToken( msg, '|', 2 , sizeof(temp) -1 ,temp ); char *sss; @@ -22401,7 +22401,7 @@ void InitCreateChatRoom(char *msg) // getStringToken( msg, '|', 9+i*3, sizeof(chatInfo.nickName[i]) -1 ,chatInfo.nickName[i] ); if(i > 0 && chatInfo.memberIndex[i] == chatInfo.chiefIndex) - SwapOrder(i, 0); //ҳ + SwapOrder(i, 0); //室长排序 secretFlag = FALSE; selChar = -1; } @@ -22413,7 +22413,7 @@ void InitCreateChatRoom(char *msg) // } #ifdef _CHATROOMPROTOCOL -void ChatRoomWnd( void ) //Ӵ +void ChatRoomWnd( void ) //聊天室视窗 { char tmpMsg[STR_BUFFER_SIZE]; int nameColor; @@ -22426,7 +22426,7 @@ void ChatRoomWnd( void ) // int x = pChtChanlWnd->x + 2; int y = pChtChanlWnd->y - 5; - int scrTop = y + 69; //Scroll߶ + int scrTop = y + 69; //Scroll高度 StockDispBuffer( ( ( WINDOW_DISP *)pChtChanlWnd->pYobi )->mx - 120, ( ( WINDOW_DISP *)pChtChanlWnd->pYobi )->my -28, DISP_PRIO_MENU, CG_FIELD_CHATROOM_PANEL, 1 ); char title[32] = {""}; @@ -22441,7 +22441,7 @@ void ChatRoomWnd( void ) // scrlHBtn = CG_FIELD_SCROLL_HUP; scrlLBtn = CG_FIELD_SCROLL_LUP; - if(chatInfo.chiefFlag == 1){ //ӳרаť + if(chatInfo.chiefFlag == 1){ //队长专有按钮 delBtn = CG_FIELD_DELETE_BTN_UP; if(secretFlag && chatInfo.chiefIndex != chatInfo.memberIndex[selChar]){ outBtn = CG_FIELD_OUTMEMBER_BTN_UP; @@ -22469,7 +22469,7 @@ void ChatRoomWnd( void ) // for(int i = 0 ; i < 10 ; i++ ){ if(chatInfo.memberNum - 1 < i + firMemNo ) break; - //ɫ + //人名变色 if( MakeHitBox(x + 20 ,y + 77 + i * 20 , x + 250 , y + 96+ i * 20, DISP_PRIO_BOX2 )){ if( mouse.onceState & MOUSE_LEFT_CRICK ){ if(strcmp(chatInfo.memberName[i + firMemNo], pc.name) != 0 || strcmp(chatInfo.nickName[i + firMemNo], pc.freeName) != 0){ @@ -22507,9 +22507,9 @@ void ChatRoomWnd( void ) // } for( int i = 0; i < 8; i++){ - if( i == 2 && chatInfo.chiefFlag == 0 ) //Ƕӳť + if( i == 2 && chatInfo.chiefFlag == 0 ) //不是队长则跳过三个按钮 i = 5; - else if( i == 2 && chatInfo.chiefFlag == 1 && selChar == -1) //Ƕӳδѡ + else if( i == 2 && chatInfo.chiefFlag == 1 && selChar == -1) //是队长未选人 i = 4; if( HitDispNo == ChatRoomBtn[ i ] ) { @@ -22555,18 +22555,18 @@ void ChatRoomWnd( void ) // }else if(mouse.onceState & MOUSE_LEFT_CRICK_UP){ switch(i){ - case 0: //رӴ + case 0: //关闭视窗 DeathMenuAction(); break; - case 1: //뿪Ƶ + case 1: //离开频道 if(chatInfo.chiefFlag == 1) - StockChatBufferLine( "ҳ뿪,뿪뻻˵ҳ" , FONT_PAL_RED); + StockChatBufferLine( "室长不得离开聊天室,如欲离开请换别人当室长!" , FONT_PAL_RED); else{ lssproto_CHATROOM_send ( sockfd , "L|" ) ; strcpy(pc.chatRoomNum,""); DeathMenuAction(); - StockChatBufferLine( "뿪" , FONT_PAL_BLUE); + StockChatBufferLine( "你已离开聊天室" , FONT_PAL_BLUE); TalkMode = 0; #ifdef _CHANNEL_MODIFY pc.etcFlag &= ~PC_ETCFLAG_CHAT_CHAT; @@ -22574,18 +22574,18 @@ void ChatRoomWnd( void ) // } break; - case 2: // + case 2: //踢人 sprintf_s(tmpMsg,"K|%d", chatInfo.memberIndex[selChar]); lssproto_CHATROOM_send ( sockfd , tmpMsg ) ; break; - case 3: //ӳ + case 3: //换队长 sprintf_s(tmpMsg,"M|%d", chatInfo.memberIndex[selChar]); lssproto_CHATROOM_send ( sockfd , tmpMsg ); TalkMode = 0; break; - case 4: //ɾƵ + case 4: //删除频道 lssproto_CHATROOM_send ( sockfd ,"D|") ; strcpy(pc.chatRoomNum,""); TalkMode = 0; @@ -22620,17 +22620,17 @@ void ChatRoomWnd( void ) // } #endif -void initAssentWnd(char *data) //ҪӴ +void initAssentWnd(char *data) //要求加入视窗 { assentFlag = TRUE; char temp[64]; getStringToken( data, '|', 2 , sizeof(temp) -1 ,temp ); - sprintf_s(memInfo,"%s ",temp); + sprintf_s(memInfo,"%s 申请加入",temp); memIndex = getIntegerToken( data, '|', 3); } #ifdef _CHATROOMPROTOCOL -void AssentWnd(void) //ҪӴ +void AssentWnd(void) //要求加入视窗 { int i = 0; char tmpMsg[128] = {""}; @@ -22678,16 +22678,16 @@ void InitRecvMsg(char *data) char msg[STR_BUFFER_SIZE]; getStringToken( data, '|', 2 , sizeof(temp) -1 ,temp ); #ifndef _CHANNEL_MODIFY - sprintf_s(msg,"[Ƶ]%s",temp); + sprintf_s(msg,"[频道]%s",temp); #else - sprintf_s(msg,"[]%s",temp); + sprintf_s(msg,"[聊]%s",temp); TradeTalk(msg); SaveChatData(msg,'R',false); #endif StockChatBufferLine( msg, 2); } -#ifdef _CHATROOMPROTOCOL // (ɿ) Syu ADD Ƶ +#ifdef _CHATROOMPROTOCOL // (不可开) Syu ADD 聊天室频道 void lssproto_CHATROOM_recv ( int fd, char *data) { char type[3] = {""}; @@ -22700,23 +22700,23 @@ void lssproto_CHATROOM_recv ( int fd, char *data) case 'D': //Delete chatRoomBtn = 0; strcpy(pc.chatRoomNum,""); - StockChatBufferLine( "ѱɾ" , FONT_PAL_RED); + StockChatBufferLine( "聊天室已被删除!" , FONT_PAL_RED); #ifdef _CHANNEL_MODIFY pc.etcFlag &= ~PC_ETCFLAG_CHAT_CHAT; #endif break; case 'T': - InitRecvMsg(data); //ѶϢ + InitRecvMsg(data); //处理讯息 break; - case 'K'://޳ + case 'K'://剔除 chatRoomBtn = 0; strcpy(pc.chatRoomNum,""); - StockChatBufferLine( "ѱҳ߳ң" , FONT_PAL_RED); + StockChatBufferLine( "你已被室长踢出聊天室!" , FONT_PAL_RED); #ifdef _CHANNEL_MODIFY pc.etcFlag &= ~PC_ETCFLAG_CHAT_CHAT; #endif break; - case 'J':// + case 'J'://加入申请 if(assentFlag == FALSE) { DeathAction(pAssentWnd); @@ -22724,7 +22724,7 @@ void lssproto_CHATROOM_recv ( int fd, char *data) initAssentWnd(data); } break; - case 'R': //Ѷ + case 'R': //更新聊天室资讯 InitCreateChatRoom(data); break; } @@ -22735,12 +22735,12 @@ void lssproto_CHATROOM_recv ( int fd, char *data) #ifdef _TIMEBAR_FUNCTION /*********************************************************** -: -title : TimeBar ͷ Χ32bit -range : TimeBar Χ -شֵ: TimeBar ʶ.趨ȷֵ +参数: +title : TimeBar 标头 范围32bit +range : TimeBar 范围 +回传值: TimeBar 识别用.用以设定正确的值 -barHolder[timBarIdent] : жǷΪ˺ʽӵ +barHolder[timBarIdent] : 可用以判断现在是否为此函式的拥有者 ***********************************************************/ int SetTimeBar(char *title, int range) { @@ -22772,17 +22772,17 @@ int SetTimeBar(char *title, int range) return timBarIdent; } /******************************************* -return -1: ע!!޷趨ڵλַ,ܱʽռ -return 1: Ѿ 100 % +return -1: 注意!!代表无法设定现在的位址,可能被其他程式占用 +return 1: 已经完成 100 % *******************************************/ int SetTimeBarPos(int timBarIdent, int CurPos) { if(!barHolder[timBarIdent] )//|| CurPos > timeBarRange) return -1; - timeBarCurPos = 20 * CurPos / timeBarRange; //20Ϊbarĵλ. + timeBarCurPos = 20 * CurPos / timeBarRange; //20为bar的单位总数. if(timeBarCurPos > 20){ timeBarCurPos = 20; - return 1; //Ѿ100 % + return 1; //已经到达100 %了 } return 0; } @@ -22824,12 +22824,12 @@ void send_StandBy_Pet(void) #endif /* ========================================= -ע!! -Ѿ15ǧˣVC༭Чʵ䣬 -뾡ҪںCodeˡ +注意!! +这个档案已经超过1万5千多行了,造成VC编辑器效率低落, +请尽量不要在后面增加新Code了。 ~Robin~ -ӵmenu2.cpp by Change +所以请加到menu2.cpp by Change ========================================= */ diff --git a/石器时代8.5客户端最新源代码/石器源码/system/menu2.cpp b/石器时代8.5客户端最新源代码/石器源码/system/menu2.cpp index 96bad04..758a8d9 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/menu2.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/menu2.cpp @@ -1,5 +1,5 @@ -/* - menu.cpp ̫,¹д +/* + menu.cpp 档案太大了,新功能写在这 */ #include "../systeminc/version.h" #include "../systeminc/system.h" @@ -30,22 +30,22 @@ void ShowItemup(int value, int x, int y) { char itemup_msg[256]=""; int sx=-50,sy=-20; - int s = ((((value)&0xff000000)>>24)&0x000000ff);// - int t = ((((value)&0x00ff0000)>>16)&0x000000ff);// - int d = ((((value)&0x0000ff00)>>8 )&0x000000ff);// - int h = ((value)&0x000000ff);// + int s = ((((value)&0xff000000)>>24)&0x000000ff);//攻 + int t = ((((value)&0x00ff0000)>>16)&0x000000ff);//防 + int d = ((((value)&0x0000ff00)>>8 )&0x000000ff);//敏 + int h = ((value)&0x000000ff);//保留 if( s > 0 ){ - sprintf_s( itemup_msg, " %d", s); + sprintf_s( itemup_msg, "攻增加 %d", s); StockFontBuffer( x+sx , y+sy, FONT_PRIO_FRONT, FONT_PAL_WHITE, itemup_msg, 0 ); sy-=20; } if( t > 0 ){ - sprintf_s( itemup_msg, " %d", t); + sprintf_s( itemup_msg, "防增加 %d", t); StockFontBuffer( x+sx , y+sy, FONT_PRIO_FRONT, FONT_PAL_WHITE, itemup_msg, 0 ); sy-=20; } if( d > 0 ){ - sprintf_s( itemup_msg, " %d", d); + sprintf_s( itemup_msg, "敏增加 %d", d); StockFontBuffer( x+sx , y+sy, FONT_PRIO_FRONT, FONT_PAL_WHITE, itemup_msg, 0 ); sy-=20; } @@ -67,17 +67,17 @@ void ShowCounttime(int sectime, int x, int y) day = sectime / 86400; hour = (sectime / 3600) - (day * 24); min = (sectime / 60) - (day * 1440) - (hour * 60); - sprintf_s( buf, "Լ%d%dʱ%d", day, hour, min); + sprintf_s( buf, "约%d天%d时%d分", day, hour, min); } else if( sectime > 3600 ){ hour = sectime/3600; min = (sectime/60)-(hour*60); - sprintf_s( buf,"Լ%dʱ%d",hour,min); + sprintf_s( buf,"约%d时%d分",hour,min); }else if(sectime > 60 ){ min = sectime/60; - sprintf_s( buf," Լ%d",min); + sprintf_s( buf," 约%d分",min); }else{ - sprintf_s( buf," Լ1"); + sprintf_s( buf," 约1分"); } //StockFontBuffer( x-20 , y-20, FONT_PRIO_FRONT, FONT_PAL_WHITE, buf , 0 ); StockFontBuffer(x + 30 , y + 10, FONT_PRIO_FRONT, FONT_PAL_WHITE, buf , 0); @@ -135,7 +135,7 @@ void petSkinProc() if (HitDispNo == btnShowSkinWin){ extern void ShowBottomLineString(int iColor, LPSTR lpstr); - ShowBottomLineString(FONT_PAL_WHITE, "Ƥ"); + ShowBottomLineString(FONT_PAL_WHITE, "更换宠物皮肤。"); if (mouse.onceState & MOUSE_LEFT_CRICK){ if (btnShowSkinWinState){ @@ -152,28 +152,28 @@ void petSkinProc() if (btnShowSkinWinState) { - //һƤ + //上一个皮肤 if (HitDispNo == btnPrev){ if (mouse.onceState & MOUSE_LEFT_CRICK){ btnPrevState = TRUE; } } - //һƤ + //下一个皮肤 if (HitDispNo == btnNext){ if (mouse.onceState & MOUSE_LEFT_CRICK){ btnNextState = TRUE; } } - //趨Ƥ + //设定皮肤 if (HitDispNo == btnSkinSet){ if (mouse.onceState & MOUSE_LEFT_CRICK){ } } - //رԤ + //关闭预览 if (HitDispNo == btnExit){ if (mouse.onceState & MOUSE_LEFT_CRICK){ initPetSkinWin(); @@ -202,27 +202,27 @@ void CloseMagicItemWin() DeathAction(pActMenuWnd2); pActMenuWnd2 = NULL; - // ???? + // ???? DeathAction(pActPet2); pActPet2 = NULL; extern int ItemMixPetNo,itemNo; - // ????k???? + // ???????? ItemMixPetNo = -1; - // ??????????? + // ??????????? MenuToggleFlag ^= JOY_CTRL_I; - // ?????????????????? + // ?????????????????? if (MenuToggleFlag & JOY_CTRL_S){ MenuToggleFlag ^= JOY_CTRL_S; // CTRL + S ?? - // ?????????? + // ?????????? extern void DeathMenuAction(void); DeathMenuAction(); } - // ???????? + // ???????? play_se(203, 320, 240); itemNo = -1; -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 手动输入金钱量 extern bool Moneyflag ; GetKeyInputFocus(&MyChatBuffer); Moneyflag = false; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/mouse.cpp b/石器时代8.5客户端最新源代码/石器源码/system/mouse.cpp index 2ece3a1..02c7e90 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/mouse.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/mouse.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* mouse.c */ /************************/ #include "../systeminc/version.h" @@ -12,7 +12,7 @@ #include "../systeminc/map.h" #include "../systeminc/login.h" -// ???????Re??? +// ???????刪叉??? #define MOUSE_HIT_SIZE_X 48 #define MOUSE_HIT_SIZE_Y 48 @@ -21,30 +21,30 @@ // Robin -// ????Bl +// ????﹨▍ MOUSE mouse; -// ????????????????k???????? +// ????????????????吻???????? int HitFontNo; -// ????????????k??????? +// ????????????牙吻??????? int HitDispNo; -// ???????? +// ??????更?? char OneLineInfoStr[ 256 ]; int oneLineInfoFlag = 1; -// ????? +// 牙????? int BoxColor; extern int transmigrationEffectFlag; -// ???ѩ???? //////////////////////////////////////////////////////// +// ???????? //////////////////////////////////////////////////////// void MouseInit( void ) { memset( &mouse, 0, sizeof( MOUSE ) ); - mouse.itemNo = -1; // ????k???? + mouse.itemNo = -1; // ????吻???? } -// ????????t????? ////////////////////////////////////////////// +// ????????ㄅ????? ////////////////////////////////////////////// void MouseNowPoint( int x, int y ) { if(ResoMode == 1){ @@ -54,7 +54,7 @@ void MouseNowPoint( int x, int y ) if(x > lpDraw->xSize)x = lpDraw->xSize; if(y > lpDraw->ySize)y = lpDraw->ySize; } - // ????? + // ?火???? //??????????????? if(ResoMode == 1){ mouse.nowPoint.x = x * 2; @@ -65,29 +65,29 @@ void MouseNowPoint( int x, int y ) } } -// ????????????????????t????? ////////////////////// +// ????????????????????ㄅ????? ////////////////////// void MouseCrickLeftDownPoint( int x, int y ) { - // ֢t???? + // ┤???? mouse.state |= MOUSE_LEFT_CRICK; mouse.onceState |= MOUSE_LEFT_CRICK; mouse.autoState |= MOUSE_LEFT_CRICK; - // ????? + // ?火???? mouse.crickLeftDownPoint.x = x; mouse.crickLeftDownPoint.y = y; - // ????????????????@e??q? + // ???????????????? 叉??〈?? mouse.beforeLeftPushTime = TimeGetTime(); mouse.leftPushTime = 0; } -// ???????????????????t????? //////////////////////// +// ???????????????????ㄅ????? //////////////////////// void MouseCrickLeftUpPoint( int x, int y ) { - // ֢t???? + // ┤???? mouse.state &= (~MOUSE_LEFT_CRICK); mouse.onceState |= MOUSE_LEFT_CRICK_UP; mouse.autoState &= (~MOUSE_LEFT_CRICK); - // ????? + // ?火???? mouse.crickLeftUpPoint.x = x; mouse.crickLeftUpPoint.y = y; // ???????????????? @@ -95,46 +95,46 @@ void MouseCrickLeftUpPoint( int x, int y ) mouse.leftPushTime = 0; } -// ??????????????????t????? ////////////////////////// +// ??????????????????ㄅ????? ////////////////////////// void MouseDblCrickLeftUpPoint( int x, int y ) { - // ֢t???? + // ┤???? //mouse.onceState |= ( MOUSE_LEFT_DBL_CRICK | MOUSE_LEFT_CRICK ); mouse.state |= MOUSE_LEFT_CRICK; mouse.onceState |= MOUSE_LEFT_DBL_CRICK; mouse.onceState |= MOUSE_LEFT_CRICK; mouse.autoState |= MOUSE_LEFT_CRICK; - // ????? + // ?火???? mouse.crickLeftDownPoint.x = x; mouse.crickLeftDownPoint.y = y; - // ????????????????@e??q? + // ???????????????? 叉??〈?? mouse.beforeLeftPushTime = TimeGetTime(); mouse.leftPushTime = 0; } -// ???????????????????t????? //////////////////////// +// ???????????????????ㄅ????? //////////////////////// void MouseCrickRightDownPoint( int x, int y ) { - // ֢t???? + // ┤???? mouse.state |= MOUSE_RIGHT_CRICK; mouse.onceState |= MOUSE_RIGHT_CRICK; mouse.autoState |= MOUSE_RIGHT_CRICK; - // ????? + // ?火???? mouse.crickRightDownPoint.x = x; mouse.crickRightDownPoint.y = y; - // ????????????????@e??q? + // ???????????????? 叉??〈?? mouse.beforeRightPushTime = TimeGetTime(); mouse.rightPushTime = 0; } -// ???????????????????t????? //////////////////////// +// ???????????????????ㄅ????? //////////////////////// void MouseCrickRightUpPoint( int x, int y ) { - // ֢t???? + // ┤???? mouse.state &= (~MOUSE_RIGHT_CRICK); mouse.onceState |= MOUSE_RIGHT_CRICK_UP; mouse.autoState &= (~MOUSE_RIGHT_CRICK); - // ????? + // ?火???? mouse.crickRightUpPoint.x = x; mouse.crickRightUpPoint.y = y; // ???????????????? @@ -142,18 +142,18 @@ void MouseCrickRightUpPoint( int x, int y ) mouse.rightPushTime = 0; } -// ??????????????????t????? ////////////////////////// +// ??????????????????ㄅ????? ////////////////////////// void MouseDblCrickRightUpPoint( int x, int y ) { - // ֢t???? + // ┤???? mouse.state |= MOUSE_RIGHT_CRICK; mouse.onceState |= MOUSE_RIGHT_DBL_CRICK; mouse.onceState |= MOUSE_RIGHT_CRICK; mouse.autoState |= MOUSE_RIGHT_CRICK; - // ????? + // ?火???? mouse.crickRightDownPoint.x = x; mouse.crickRightDownPoint.y = y; - // ????????????????@e??q? + // ???????????????? 叉??〈?? mouse.beforeRightPushTime = TimeGetTime(); mouse.rightPushTime = 0; } @@ -164,7 +164,7 @@ void MouseProc( void ) static UINT leftPushTimeBak; static UINT rightPushTimeBak; - // ֢t???? + // ┤???? mouse.onceState = MOUSE_NO_CRICK; // ??????????????????? if( mouse.beforeLeftPushTime > 0 ) @@ -178,14 +178,14 @@ void MouseProc( void ) } // ????????? // ???????????? - // ????????? + // ???企?????? if( mouse.leftPushTime > 500 ){ // ??????? if( leftPushTimeBak == 0 ){ mouse.autoState |= MOUSE_LEFT_CRICK; // ????? leftPushTimeBak = mouse.leftPushTime; // ????? }else - // ????????? + // ????????刺? if( mouse.leftPushTime - leftPushTimeBak >= MOUSE_AUTO_REPEATE_TIME ){ mouse.autoState |= MOUSE_LEFT_CRICK; // ????? leftPushTimeBak = mouse.leftPushTime; // ????? @@ -198,14 +198,14 @@ void MouseProc( void ) } // ???????????? - // ????????? + // ???企?????? if( mouse.rightPushTime > 500 ){ // ??????? if( rightPushTimeBak == 0 ){ mouse.autoState |= MOUSE_RIGHT_CRICK; // ????? rightPushTimeBak = mouse.rightPushTime; // ????? }else - // ????????? + // ????????刺? if( mouse.rightPushTime - rightPushTimeBak >= MOUSE_AUTO_REPEATE_TIME ){ mouse.autoState |= MOUSE_RIGHT_CRICK; // ????? rightPushTimeBak = mouse.rightPushTime; // ????? @@ -227,7 +227,7 @@ void MouseProc( void ) //if( 0 <= mouse.nowPoint.x && mouse.nowPoint.x < 640 && // 0 <= mouse.nowPoint.y && mouse.nowPoint.y < 480 ){ - // ???????? + // ????????? if( MouseCursorFlag == FALSE ){ if( mouse.flag == FALSE ){ StockDispBuffer( mouse.nowPoint.x + 16, mouse.nowPoint.y + 16, DISP_PRIO_MOUSE, CG_MOUSE_CURSOR, 0 ); @@ -235,13 +235,13 @@ void MouseProc( void ) } } -// ????k???? *********************************************************/ +// ????︻????? *********************************************************/ void CheckGroupSelect( int no ) { int i; DISP_INFO *pDispInfo; DISP_SORT *pDispSort; - /* ??????????????I???????? */ + /* ???牙?????????牙??!????????? */ for( i = 0 ; i < DispBuffer.DispCnt ; i++ ){ pDispInfo = DispBuffer.DispInfo + i; @@ -249,9 +249,9 @@ void CheckGroupSelect( int no ) // ?????????? if( pDispInfo->hitFlag == no ){ - // ?????????? + // ?????????? if( pDispSort->dispPrio >= DISP_PRIO_MENU ){ - // ???????????????? + // ????牙???????????? #ifndef __CARYTEST StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2, pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2, @@ -264,7 +264,7 @@ void CheckGroupSelect( int no ) DISP_PRIO_BOX2, BoxColor, 0 ); #endif }else{ - // ???????????????? + // ????牙???????????? #ifndef __CARYTEST StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2, pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2, @@ -283,7 +283,7 @@ void CheckGroupSelect( int no ) } #if 1 -// ???????????? +// 牙???????????? UCHAR BoxColorTbl[] = { //255, 255, 255, 255, 255, //8,8,8,8,8, @@ -314,19 +314,19 @@ UCHAR BoxColorTbl[] = { }; #endif -/* ???????????Re **************************************************/ +/* ???????????刪叉 **************************************************/ void HitMouseCursor( void ) { int i; // ??????? - int strWidth; // ??????? - int hitFlag = FALSE; // ???Re??? + int strWidth; // 更??????? + int hitFlag = FALSE; // ???刪叉??? static int cnt = 0; // ????? - int itemNameColor = FONT_PAL_WHITE; // ????? + int itemNameColor = FONT_PAL_WHITE; // ????? DISP_SORT *pDispSort = DispBuffer.DispSort + DispBuffer.DispCnt - 1; DISP_INFO *pDispInfo; - // ?????? + // 牙?????阪? if( !transmigrationEffectFlag ) oneLineInfoFlag = 1; else @@ -335,22 +335,22 @@ void HitMouseCursor( void ) if( cnt >= sizeof( BoxColorTbl ) - 1 ) cnt = 0; else cnt++; - // ?????@e + // 牙????? 叉 BoxColor = BoxColorTbl[ cnt ]; #ifdef _ITEM_PATH ITEMPATHFLAG = FALSE; #endif - /* ?????????????????????????????i??*/ + /* ????牙?????????????????????????可??*/ for( i = 0 ; i < FontCnt ; i++ ){ - // ???Re?????? + // ???刪叉?????? if( FontBuffer[ i ].hitFlag == 0 ) continue; - // ?????????????? + // 更??????????????? strWidth = GetStrWidth( FontBuffer[ i ].str ); - // ?????Re + // ?????刪叉 if( mouse.nowPoint.x <= FontBuffer[ i ].x + strWidth + 2 && FontBuffer[ i ].x - 2 <= mouse.nowPoint.x && @@ -358,12 +358,12 @@ void HitMouseCursor( void ) FontBuffer[ i ].y - 2 <= mouse.nowPoint.y ){ - // ??????k????? + // ???????吻????? HitFontNo = i; - // ???????? + // ?????牙??? if( FontBuffer[ i ].hitFlag == 2 ){ - // ???????????????? + // ????牙???????????? StockBoxDispBuffer( FontBuffer[ i ].x - 3, #ifdef _NEWFONT_ FontBuffer[ i ].y - 2, @@ -389,23 +389,23 @@ void HitMouseCursor( void ) ShowBottomLineString(itemNameColor, OneLineInfoStr); //the third StockFontBuffer( 8, 460, FONT_PRIO_FRONT, itemNameColor, OneLineInfoStr, 0 ); } - // ????? + // 更????? OneLineInfoStr[ 0 ] = NULL; - return; // ??????????????Re???? + return; // ??????????????刪叉???? } } - // ??????k??????? + // ???????吻??????? HitFontNo = -1; - /* ??????????????I???????? */ + /* ???牙?????????牙??!????????? */ for( i = DispBuffer.DispCnt - 1; i >= 0 ; i--, pDispSort-- ){ - // ????V???????????? + // 牙????向???????????? pDispInfo = DispBuffer.DispInfo + pDispSort->no; - // ???Re?????? + // ???刪叉?????? if( pDispInfo->hitFlag == 0 ) continue; - // ????????????Q + // ????????????㎝ //if( SpriteInfo[ pDispInfo->bmpNo ].lpSurfaceInfo == NULL ) continue; // ????????????????????????? // ????????? @@ -413,7 +413,7 @@ void HitMouseCursor( void ) // ????????? if( pDispInfo->pAct == NULL ){ - // ?????Re + // ?????刪叉 #ifndef __CARYTEST if( mouse.nowPoint.x <= pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width && pDispInfo->x <= mouse.nowPoint.x && @@ -427,7 +427,7 @@ void HitMouseCursor( void ) #endif hitFlag = TRUE; }else{ - // ?????Re???????? + // ?????刪叉???????? #ifndef __CARYTEST if( mouse.nowPoint.x <= pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width * 0.5 + MOUSE_HIT_SIZE_X * 0.5 && pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width * 0.5 - MOUSE_HIT_SIZE_X * 0.5 <= mouse.nowPoint.x && @@ -455,21 +455,21 @@ void HitMouseCursor( void ) break; } - // ϵ±Ϊ6 , 7 , 8 , 9 - // ѡĿǰѡҷλ + // 酘奻善衵狟晤瘍峈6 , 7 , 8 , 9 + // 絞躺夔恁寁等齬醴垀恁寁腔婓扂源腔弇离 if( BattleMyNo >= 10 && ( 6 == pDispInfo->hitFlag || 7 == pDispInfo->hitFlag ) ) { hitFlag = FALSE; continue; } - // ѡĿǰѡҷλ + // 絞躺夔恁寁等齬醴垀恁寁腔婓扂源腔弇离 if( BattleMyNo < 10 && ( 8 == pDispInfo->hitFlag || 9 == pDispInfo->hitFlag ) ) { hitFlag = FALSE; continue; } #ifdef _SKILL_ADDBARRIER - // ֻѡҷ + // 硐夔恁扂源 if( BattleMyNo < 10 && ( 10 == pDispInfo->hitFlag || 11 == pDispInfo->hitFlag ) ) { hitFlag = FALSE; @@ -483,17 +483,17 @@ void HitMouseCursor( void ) #endif #endif - // ????????? + // 更?牙???????? // StockFontBuffer( pDispInfo->x, pDispInfo->y, FONT_PRIO_FRONT, 0, "Hit", 1 ); - // ??????k???? + // ???????吻???? HitDispNo = pDispSort->no; - // ???????? + // ?????牙??? if( pDispInfo->hitFlag >= 2 ){ - // ?????????? + // ?????????? if( pDispSort->dispPrio >= DISP_PRIO_YES_NO_WND ){ - // ???????????????? + // ????牙???????????? #ifndef __CARYTEST StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2, pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2, @@ -507,9 +507,9 @@ void HitMouseCursor( void ) DISP_PRIO_BOX3, BoxColor, 0 ); #endif }else - // ?????????? + // ?????????? if( pDispSort->dispPrio >= DISP_PRIO_MENU ){ - // ???????????????? + // ????牙???????????? #ifndef __CARYTEST StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2, pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2, @@ -523,7 +523,7 @@ void HitMouseCursor( void ) DISP_PRIO_BOX2, BoxColor, 0 ); #endif }else{ - // ???????????????? + // ????牙???????????? #ifndef __CARYTEST StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2, pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2, @@ -539,16 +539,16 @@ void HitMouseCursor( void ) #endif } - // ????k??????k? + // ????︻??????佃?︻?? if( pDispInfo->hitFlag >= 3 ) CheckGroupSelect( pDispInfo->hitFlag ); - SortDispBuffer(); // ??????? + SortDispBuffer(); // 牙??????? } // ????????? if( TaskBarFlag == FALSE ){ // ????????????? if( pDispInfo->pAct != NULL ){ - // ?????????? + // ??????牙???? if( pDispInfo->pAct->atr & ACT_ATR_INFO ){ if( ProcNo == PROC_GAME ){ #ifdef _MOUSE_SHOW_INFO_FOR_HEAD @@ -559,53 +559,53 @@ void HitMouseCursor( void ) - // ??? - //sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%4d/%4d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); - // ?????????? + // 更??? + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%4d/%4d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + // ??????牙???? // ??????? if( pDispInfo->pAct->atr & ACT_ATR_TYPE_PC ){ - // q?@e + // ?〈? 叉 itemNameColor = pDispInfo->pAct->itemNameColor; - // ???? + // ???? if( pDispInfo->pAct->freeName[ 0 ] != NULL ){ // shan add - //sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d %d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp ); + //sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp ); if( pDispInfo->pAct->petName[ 0 ] != NULL ) if( pc.familyName[0] != NULL ) - sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lv%d ͣ%d%d %d %s Lv%d", + sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d", pc.familyName, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); else - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d %d %s Lv%d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); else if( pc.familyName[0] != NULL ) - sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lv%d ͣ%d%d %d", + sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pc.familyName, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp ); else - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d %d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp ); }else{ // shan add - //sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d %d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp ); + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp ); if( pDispInfo->pAct->petName[ 0 ] != NULL ) if( pc.familyName[0] != NULL ) - sprintf_s( OneLineInfoStr,"{%s} %s Lv%d ͣ%d%d %d %s Lv%d", + sprintf_s( OneLineInfoStr,"{%s} %s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d", pc.familyName, pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); else - sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d %d %s Lv%d", + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); else if( pc.familyName[0] != NULL ) - sprintf_s( OneLineInfoStr,"{%s} %s Lv%d ͣ%d%d %d", + sprintf_s( OneLineInfoStr,"{%s} %s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pc.familyName, pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp ); else - sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d %d", + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp ); } }else - // \???????? + // 兝???????? if( pDispInfo->pAct->atr & ACT_ATR_TYPE_OTHER_PC ){ #ifdef _MOUSE_DBL_CLICK if( mouseDblRightOn ) { @@ -613,49 +613,49 @@ void HitMouseCursor( void ) return; } #endif - // q?@e + // ?〈? 叉 itemNameColor = pDispInfo->pAct->itemNameColor; - // ???? + // ???? if( pDispInfo->pAct->freeName[ 0 ] != NULL ){ // shan add - //sprintf_s( OneLineInfoStr,"%s [%s] Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); + //sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); if( pDispInfo->pAct->petName[ 0 ] != NULL ) if( pDispInfo->pAct->fmname[0] != NULL ) - sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lv%d %s Lv%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); + sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); else - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d %s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); else if( pDispInfo->pAct->fmname[0] != NULL ) - sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lv%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lvㄩ%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); else - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); }else{ // shan add - //sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); if( pDispInfo->pAct->petName[ 0 ] != NULL ) if( pDispInfo->pAct->fmname[0] != NULL ) - sprintf_s( OneLineInfoStr,"{%s} %s Lv%d %s Lv%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); + sprintf_s( OneLineInfoStr,"{%s} %s Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); else - sprintf_s( OneLineInfoStr,"%s Lv%d %s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); else if( pDispInfo->pAct->fmname[0] != NULL ) - sprintf_s( OneLineInfoStr,"{%s} %s Lv%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"{%s} %s Lvㄩ%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->level ); else - sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); } }else // ????? if( pDispInfo->pAct->atr & ACT_ATR_TYPE_PET ){ - // ???? + // ???? if( pDispInfo->pAct->freeName[ 0 ] != NULL ){ - sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->freeName, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->freeName, pDispInfo->pAct->level ); }else{ - sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); } }else // ?????? if( pDispInfo->pAct->atr & ACT_ATR_TYPE_ITEM ){ - // q?@e + // ?〈? 叉 itemNameColor = pDispInfo->pAct->itemNameColor; sprintf_s( OneLineInfoStr,"%s", pDispInfo->pAct->name ); #ifdef _ITEM_PATH @@ -666,156 +666,156 @@ void HitMouseCursor( void ) if( pDispInfo->pAct->atr & ACT_ATR_TYPE_GOLD ){ sprintf_s( OneLineInfoStr,"%s", pDispInfo->pAct->name ); }else - // ??\?????????Y? + // ??兝?????????即? if( pDispInfo->pAct->atr & ACT_ATR_TYPE_OTHER ){ sprintf_s( OneLineInfoStr,"%s", pDispInfo->pAct->name ); } }else - // Pf?? + // ·卯?? if( ProcNo == PROC_BATTLE ){ // ????? if( pDispInfo->pAct->atr & ACT_ATR_TYPE_PET ){ - // ???? + // ???? if( pDispInfo->pAct->freeName[ 0 ] != NULL ){ - sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->freeName, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->freeName, pDispInfo->pAct->level ); }else{ - sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); } }else // ?????? if( pDispInfo->pAct->atr & ACT_ATR_TYPE_ITEM ){ - // q?@e + // ?〈? 叉 //itemNameColor = pDispInfo->pAct->itemNameColor; sprintf_s( OneLineInfoStr,"%s", pDispInfo->pAct->name ); }else - // ?P????????? + // ?·????????? if( BattleMyNo < BATTLKPKPLYAERNUM ){ - // ??????? + // 希???????牙 if( ( (ATR_EQU *)pDispInfo->pAct->pYobi )->place_no == BattleMyNo ){ - // ???? + // ???? if( pDispInfo->pAct->freeName[ 0 ] != NULL ){ // Robin 0728 ride Pet if( pDispInfo->pAct->onRide == 1 ) - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d %d %s Lv%d ͣ%d%d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp, pDispInfo->pAct->petMaxHp ); else - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d %d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp ); }else{ // shan add - //sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d %d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, BattleMyMp ); - //sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d %d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp ); + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, BattleMyMp ); + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp ); // Robin 0728 if( pDispInfo->pAct->onRide == 1 ) - sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d %d %s Lv%d ͣ%d%d", + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp, pDispInfo->pAct->petMaxHp ); else - sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d %d", + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp ); } } else - // s???? + // ?????牙 if( ( (ATR_EQU *)p_party[ BattleMyNo ]->pYobi )->group_flg == ( (ATR_EQU *)pDispInfo->pAct->pYobi )->group_flg ){ - // ??? - //sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%4d/%4d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); - // ???? + // 更??? + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%4d/%4d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + // ???? if( pDispInfo->pAct->freeName[ 0 ] != NULL ){ // shan add - //sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + //sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); // Robin 0728 if( pDispInfo->pAct->onRide == 1 ) - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d %s Lv%d ͣ%d%d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d %s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp, pDispInfo->pAct->petMaxHp); else - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); }else{ // shan add - //sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); // Robin 0728 if( pDispInfo->pAct->onRide == 1 ) - sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d %s Lv%d ͣ%d%d", + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d %s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp, pDispInfo->pAct->petMaxHp ); else - sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d", + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); } - }else{ // ??? - // ???? + }else{ // ???? + // ???? if( pDispInfo->pAct->freeName[ 0 ] != NULL ){ // shan add - //sprintf_s( OneLineInfoStr,"%s [%s] Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); + //sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); // Robin if( pDispInfo->pAct->onRide == 1 ) #ifdef _STONDEBUG_ - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d %s Lv%d ͣ%d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%d %s Lvㄩ%d 騵ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp ); #else - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d %s Lv%d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); #endif else #ifdef _STONDEBUG_ - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); #else - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d", + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); #endif }else{ // shan add - //sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); // Robin if( pDispInfo->pAct->onRide == 1 ) #ifdef _STONDEBUG_ - sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d %s Lv%d ͣ%d", + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%d %s Lvㄩ%d 騵ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp ); #else - sprintf_s( OneLineInfoStr,"%s Lv%d %s Lv%d", + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel ); #endif else #ifdef _STONDEBUG_ - sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d", + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); #else - sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); #endif } } - }else{ // ?P????? + }else{ // ?·????? #ifdef _STONDEBUG_ - // ???? + // ???? if( pDispInfo->pAct->freeName[ 0 ] != NULL ){ // shan add - //sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); - //sprintf_s( OneLineInfoStr,"%s [%s] Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); + //sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + //sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); }else{ // shan add - //sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); - sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); - //sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); } #else - // ???? + // ???? if( pDispInfo->pAct->freeName[ 0 ] != NULL ){ - //sprintf_s( OneLineInfoStr,"%s [%s] Lv%d ͣ%d%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + //sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); // shan add - sprintf_s( OneLineInfoStr,"%s [%s] Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level ); }else{ - //sprintf_s( OneLineInfoStr,"%s Lv%d ͣ%d%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); + //sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp ); // shan add - sprintf_s( OneLineInfoStr,"%s Lv%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); + sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level ); } #endif } @@ -825,7 +825,7 @@ void HitMouseCursor( void ) if( oneLineInfoFlag) ShowBottomLineString(itemNameColor, OneLineInfoStr); } - // ????? + // 更????? OneLineInfoStr[ 0 ] = NULL; // ?????? @@ -835,14 +835,14 @@ void HitMouseCursor( void ) } // ?????? mouse.level = DISP_PRIO_TILE; - // ??????k??????? + // ???????吻??????? HitDispNo = -1; // ????????? if( TaskBarFlag == FALSE ){ ShowBottomLineString(itemNameColor, OneLineInfoStr); } - // ????? + // 更????? OneLineInfoStr[ 0 ] = NULL; } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/netmain.cpp b/石器时代8.5客户端最新源代码/石器源码/system/netmain.cpp index 95a7250..b09e824 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/netmain.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/netmain.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include #include "../systeminc/netmain.h" @@ -13,7 +13,7 @@ int isWGS7=0; unsigned int sockfd; // SOCKET ? unsigned int? int init_net; // WSAStartup??????????????????server_choosed?????? -int server_choosed; // ?????k??????????????? +int server_choosed; // ???????????????????? char *net_writebuf = NULL; char *net_readbuf = NULL; @@ -24,18 +24,18 @@ BOOL disconnectServerFlag = FALSE; BOOL oldDisconnectServerFlag = FALSE; #ifdef _LOG_MSG -char debugLogFileName[256] = "recvdata.txt"; // ????????????????? +char debugLogFileName[256] = "recvdata.txt"; // ????????????????? #endif struct gameserver gmsv[MAX_GMSV]; -// ????????ѩ?x?? -// ??: int index : V?????k??0 ??getServerMax?k-1?????? +// ??????????? +// ??: int index : ???????0 ??getServerMax?-1?????? // char *hostname : IP????? -// short *port : ???k? -// ??k: 0 ... ? -// -1 ... +// short *port : ???? +// ??: 0 ... ? +// -1 ...  // // ?????I/O???? int getServerInfo( int index, char *hostname, short *port ) @@ -50,7 +50,7 @@ int getServerInfo( int index, char *hostname, short *port ) } /* - ???????????????????????????? + ???????????????????????????? ?????????????????????? @@ -66,7 +66,7 @@ extern int testCnt; int CheckNetErrror( void ) { int error = WSAGetLastError(); - // ??????Re + // ?????? switch ( error ){ case WSANOTINITIALISED: return error; @@ -118,14 +118,14 @@ int CheckNetErrror( void ) do_http_request_forever() - static ??????????????u???????? + static ?????????????????????? - char *ip : IP????(??????????q?w????????) - unsigned short port : ???k??????80? + char *ip : IP????(???????????????????) + unsigned short port : ?????????80? char *obj : ?????????????? - int sec : ??????? + int sec : ??????? - ???? 0?????????????? + ????: 0?????????????? */ static int http_sock; static int http_call_counter = 0; @@ -142,7 +142,7 @@ do_http_request_forever( char *ip, unsigned short port, struct timeval tm; /* ?????????????????? - 1?1?????????? */ + 1?1?????????? */ if( http_call_last_time != time(NULL )){ http_call_last_time = time(NULL); } else { @@ -154,7 +154,7 @@ do_http_request_forever( char *ip, unsigned short port, if( http_call_counter == 0 ){ struct sockaddr_in sin; - /* sec?1?connect?? */ + /* sec?1?connect?? */ if( time(NULL) % sec != 0 )return 0; http_sock = socket( AF_INET, SOCK_STREAM, 0 ); @@ -180,7 +180,7 @@ do_http_request_forever( char *ip, unsigned short port, if( WSAGetLastError() == WSAEWOULDBLOCK ) { - // o????????????????? + // ????????????????? } else { @@ -215,9 +215,9 @@ do_http_request_forever( char *ip, unsigned short port, } if( r > 0 && FD_ISSET( http_sock, &wfds ) && http_sent_request == 0 ){ - /* HTTP????MSS????????? - 1??write????????e????? - ???????????????u???????????? + /* HTTP????MSS????????? + 1??write????????????? + ??????????????????????????? ????? */ int r; char fuck[1000]; @@ -243,7 +243,7 @@ void networkLoop(void) return; if( disconnectServerFlag && !oldDisconnectServerFlag){ - // ???????e??? + // ?????????? ChangeProc( PROC_DISCONNECT_SERVER ); } oldDisconnectServerFlag = disconnectServerFlag; @@ -277,13 +277,13 @@ void networkLoop(void) #endif closesocket( sockfd ); dwServer = NULL; - // ??????Q?N??????? + // ?????????????? disconnectServerFlag = TRUE; } } #endif - // ??? + // ??? int len = SOCKET_ERROR; #ifdef __NEW_CLIENT_MEM BOOL ret; @@ -308,7 +308,7 @@ void networkLoop(void) #endif closesocket(sockfd); dwServer = NULL; - // ??????Q?N??????? + // ?????????????? disconnectServerFlag = TRUE; } } else appendReadBuf( rpc_linebuffer , len ); @@ -334,7 +334,7 @@ void networkLoop(void) static unsigned int writetime = TimeGetTime(); - // ???? + // ???? if( FD_ISSET( sockfd , &wfds)){ #ifdef __NEW_CLIENT_MEM ret = VirtualProtect( net_writebuf, NETBUFSIZ, PAGE_READWRITE, &oldprotect); @@ -351,7 +351,7 @@ void networkLoop(void) #endif closesocket(sockfd); dwServer = NULL; - // ??????Q?N??????? + // ?????????????? disconnectServerFlag = TRUE; } } else { @@ -382,21 +382,21 @@ void networkLoop(void) /* - StoneAge??????????????o???? + StoneAge?????????????????? -V???????????i????????????????selectV? -??????????????????????????????????? -???????????????????????HTTP??????????? -h?????? +???????????????????????????select? +??????????????????????????????????? +???????????????????????HTTP??????????? +?????? - ?????????????? + ?????????????? 1. ??????initNet()?? - 2. ????networkLoop????????????? - 3. cli.cpp ???? gmsv ?Bl???????????ѩ?????? - 4. ????????????????????? + 2. ????networkLoop????????????? + 3. cli.cpp ???? gmsv ?????????????????? + 4. ????????????????????? */ @@ -422,7 +422,7 @@ BOOL initNet( void ) #ifdef _LOG_MSG //?????? { - // ???????????? + // ???????????? FILE *fp; fp = fopen( debugLogFileName, "w" ); fclose(fp); @@ -431,7 +431,7 @@ BOOL initNet( void ) #endif #ifdef _STONDEBUG_ - { // ???????????????? + { // ???????????????? FILE *fp = fopen( "recvtime.txt", "w" ); if( fp ) fclose( fp ); } @@ -446,7 +446,7 @@ BOOL initNet( void ) //*************************************** -// ????????????????? +// ????????????????? //*************************************** void cleanupNetwork( void ) { @@ -463,46 +463,46 @@ void cleanupNetwork( void ) dwServer = NULL; WSACleanup(); - // lsrpc????????????????????? + // lsrpc????????????????????? // ???????????????????????????? lssproto_CleanupClient(); } -// ????????????D? +// ????????????? // -// ??k 0 ... ? -// -1 ... ?????K??? -// -100 ... ????k????? +// ??: 0 ... ? +// -1 ... ???????? +// -100 ... ????????? int appendReadBuf( char *buf, int size ) { #ifdef _NEWSHOP_ BOOL flg=TRUE; while(*(DWORD *)buf == 0xC7B3CCC9){ //buf[0]==0xFFFFFFC9 && buf[1]==0xFFFFFFCC && buf[2]==0xFFFFFFB3 && buf[3]==0xFFFFFFC7 - extern int ַи( char *arr[], char *str, const char *del); - extern void ̳ļ(char * ·,̳ļ_ *̳); - extern ̳ļ_ ̳ļ[5]; + extern int 字符串切割( char *arr[], char *str, const char *del); + extern void 商城文件保存(char * 路径,商城文件_ *商城); + extern 商城文件_ 商城文件[5]; char patch[256]={0}; int id=-1; buf+=4; - char *ʱ[4]={0}; - unsigned int ܴС,ѹС; - ַи(ʱ,(char*)buf,"|"); - ܴС = atoi(ʱ[0]); - ѹС = atoi(ʱ[1]); - id = atoi(ʱ[2]); - memcpy(̳ļ[id].MD5,ʱ[3],32); + char *临时单个道具数据[4]={0}; + unsigned int 总大小,压缩大小; + 字符串切割(临时单个道具数据,(char*)buf,"|"); + 总大小 = atoi(临时单个道具数据[0]); + 压缩大小 = atoi(临时单个道具数据[1]); + id = atoi(临时单个道具数据[2]); + memcpy(商城文件[id].MD5码,临时单个道具数据[3],32); sprintf_s(patch,"./data/shop%d.bin",id+1); - if(̳ļ[id].̳!=NULL) - free(̳ļ[id].̳); - ̳ļ[id].̳ = (char*)malloc(ܴС+1); - memset(̳ļ[id].̳,0,ܴС+1); - uLongf lendata = ܴС-1; - uncompress((Bytef*)̳ļ[id].̳,&lendata,(Bytef*)(buf+51),(unsigned long)ѹС); - ̳ļ(patch,&̳ļ[id]); - memset(buf-4,0,ѹС+55); - size -=ѹС+55; - buf+=ѹС+51; + if(商城文件[id].商城数据!=NULL) + free(商城文件[id].商城数据); + 商城文件[id].商城数据 = (char*)malloc(总大小+1); + memset(商城文件[id].商城数据,0,总大小+1); + uLongf lendata = 总大小-1; + uncompress((Bytef*)商城文件[id].商城数据,&lendata,(Bytef*)(buf+51),(unsigned long)压缩大小); + 商城文件保存(patch,&商城文件[id]); + memset(buf-4,0,压缩大小+55); + size -=压缩大小+55; + buf+=压缩大小+51; flg=FALSE; } if(!flg) return -1; @@ -519,11 +519,11 @@ int appendReadBuf( char *buf, int size ) } -// ????????????D? +// ????????????? // -// ??k 0 ... ? -// -1 ... ?????K??? -// -100 ... ????k????? +// ??: 0 ... ? +// -1 ... ???????? +// -100 ... ????????? int appendWriteBuf( int index, char *buf, int size ) { if( server_choosed == 0 ) @@ -549,12 +549,12 @@ int appendWriteBuf( int index, char *buf, int size ) } -// ????????????size???ơq???? -// ?????size???????????? +// ????????????size??????? +// ?????size???????????? // -// ??k 0 ... ? -// -1 ... ????????? -// -100 ... ???k????? +// ??: 0 ... ? +// -1 ... ????????? +// -100 ... ???????? int shiftReadBuf( int size ) { int i; @@ -572,12 +572,12 @@ int shiftReadBuf( int size ) } -// ????????????size???ơq???? -// ?????size???????????? +// ????????????size??????? +// ?????size???????????? // -// ??k 0 ... ? -// -1 ... ????????? -// -100 ... ???k????? +// ??: 0 ... ? +// -1 ... ????????? +// -100 ... ???????? int shiftWriteBuf( int size ) { int i; @@ -595,11 +595,11 @@ int shiftWriteBuf( int size ) } -// ???????????????????????? +// ???????????????????????? // -// ??k 0 ... ? -// -1 ... ??????? -// -100 ... ????k????? +// ??: 0 ... ? +// -1 ... ??????? +// -100 ... ????????? int getLineFromReadBuf( char *output, int maxlen ) { int i; @@ -613,7 +613,7 @@ int getLineFromReadBuf( char *output, int maxlen ) { memcpy( output, net_readbuf, i ); output[i] = '\0'; - // ?????????????? 0x0d?????? + // ?????????????? 0x0d?????? for( j = i+1; j >= 0; j-- ) { if( output[j] == 0x0d ) @@ -623,11 +623,11 @@ int getLineFromReadBuf( char *output, int maxlen ) } } - // ??????? + // ??????? shiftReadBuf( i+1 ); - // ??????D?????????????? - // ????????????????????????????????? + // ???????????????????? + // ????????????????????????????????? net_readbuf[net_readbuflen] = '\0'; return 0; @@ -637,10 +637,10 @@ int getLineFromReadBuf( char *output, int maxlen ) } -// ???????len?????? +// ???????len?????? // -// ??k 0? ... ??????? -// -100 ... ????k?????? +// ??: 0? ... ??????? +// -100 ... ?????????? int sendn( SOCKET s, char *buffer, int len ) { int total = 0; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/netproc.cpp b/石器时代8.5客户端最新源代码/石器源码/system/netproc.cpp index e41e52d..6b898bc 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/netproc.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/netproc.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -48,9 +48,9 @@ extern Landed PcLanded; #ifdef _STONDEBUG_ extern int g_iMallocCount; #endif -#define NETPROC_NOTSEND 0 // ?????????? -#define NETPROC_SENDING 1 // ?????N? -#define NETPROC_RECEIVED 2 // ??? +#define NETPROC_NOTSEND 0 // ?????????? +#define NETPROC_SENDING 1 // ?????? +#define NETPROC_RECEIVED 2 // ??? #define SET_SENDTIME(time) time = TimeGetTime() #define CHECK_TIMEOUT(time, timeout) \ if ((TimeGetTime() - (time)) > (timeout)) \ @@ -83,19 +83,19 @@ short newCharStatus = 0; short charLoginStatus = 0; short charLogoutStatus = 0; -#ifdef _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ +#ifdef _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 extern struct gameserver gmsv[]; #endif -#ifdef _NEW_WGS_MSG // WON ADD WGSӴ +#ifdef _NEW_WGS_MSG // WON ADD WGS的新视窗 int ERROR_MESSAGE = 0; #endif -// GAMESTATE_CHOOSESERVER????@e?????????ѩ? +// GAMESTATE_CHOOSESERVER?????????????? char gamestate_chooseserver_name[128]; -// GAMESTATE_LOGIN????@e?????????ѩ? +// GAMESTATE_LOGIN?????????????? char gamestate_login_charname[128]; -// GAMESTATE_DELETECHAR????@e?????????ѩ? +// GAMESTATE_DELETECHAR?????????????? char gamestate_deletechar_charname[128]; char netprocErrmsg[1024]; int netproc_sending = NETPROC_NOTSEND; @@ -126,15 +126,15 @@ void SortSkill() { switch (profession_skill[i].kind) { - case 1: // ս + case 1: // 战斗技能 BattleSkill[count1] = i; count1++; break; - case 2: // + case 2: // 辅助 AssitSkill[count2] = i; count2++; break; - case 3: // + case 3: // 进阶 AdvanceSkill[count3] = i; count3++; break; @@ -144,7 +144,7 @@ void SortSkill() #endif #ifdef _CHANNEL_MODIFY -// Ի +// 储存对话内容 void SaveChatData(char *msg,char KindOfChannel,bool bCloseFile); #endif void initConnectServer(void) @@ -162,7 +162,7 @@ void LogToRecvdata2(char *data) rfp = fopen(lssproto_readlogfilename, "a+"); if (rfp) { - fprintf(rfp, "յ\t%s\n", data); + fprintf(rfp, "收到:\t%s\n", data); fclose(rfp); } } @@ -189,7 +189,7 @@ int ConnectWGS() if (INVALID_SOCKET == (sockfd = socket(AF_INET, SOCK_STREAM, 0))) { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_SOCKETERROR); return -3; @@ -203,7 +203,7 @@ int ConnectWGS() if (!(h = gethostbyname(szWGS))) { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_NOTGETADDR); closesocket(sockfd); @@ -220,7 +220,7 @@ int ConnectWGS() closesocket(sockfd); dwServer = NULL; #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_NOTCONNECT_S); return -5; @@ -233,7 +233,7 @@ int ConnectWGS() else { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif strcpy(netprocErrmsg, NET_ERRMSG_SOCKLIBERROR); return -1; @@ -262,13 +262,13 @@ int ConnectWGS() } #ifdef _OMIT_WGS testtest(); - connectServerCounter = 143; // ݶ + connectServerCounter = 143; // 暂定 iWGS = 7; #endif if (FD_ISSET(sockfd, &efds)) { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_NOTCONNECT); closesocket(sockfd); @@ -289,7 +289,7 @@ int ConnectWGS() if (INVALID_SOCKET == (sockfd = socket(AF_INET, SOCK_STREAM, 0))) { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_SOCKETERROR); return -3; @@ -303,7 +303,7 @@ int ConnectWGS() if (!(h = gethostbyname(szCSIP))) { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_NOTGETADDR); closesocket(sockfd); @@ -320,7 +320,7 @@ int ConnectWGS() closesocket(sockfd); dwServer = NULL; #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_NOTCONNECT_S); return -5; @@ -355,7 +355,7 @@ int ConnectWGS() if (FD_ISSET(sockfd, &efds)) { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_NOTCONNECT); closesocket(sockfd); @@ -422,7 +422,7 @@ int connectServer(void) { count = 0; #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_BADNAME); return -2; @@ -432,7 +432,7 @@ int connectServer(void) { count = 0; #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_SOCKETERROR); return -3; @@ -461,7 +461,7 @@ int connectServer(void) { count = 0; #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_NOTGETADDR); closesocket(sockfd); @@ -480,7 +480,7 @@ int connectServer(void) closesocket(sockfd); dwServer = NULL; #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif sprintf_s(netprocErrmsg, NET_ERRMSG_NOTCONNECT_S); return -5; @@ -524,7 +524,7 @@ int connectServer(void) if (c_temp[0] == 'E') { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif count = 0; sprintf_s(netprocErrmsg, c_temp + 1); @@ -544,7 +544,7 @@ int connectServer(void) else { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif count = 0; sprintf_s(netprocErrmsg, NET_ERRMSG_VERSIONERROR); @@ -555,7 +555,7 @@ int connectServer(void) }else { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif count = 0; sprintf_s(netprocErrmsg, NET_ERRMSG_NOTCONNECT); @@ -568,7 +568,7 @@ int connectServer(void) if (FD_ISSET(sockfd, &efds)) { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif count = 0; sprintf_s(netprocErrmsg, NET_ERRMSG_NOTCONNECT); @@ -583,7 +583,7 @@ int connectServer(void) if(count >= 1500) { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif count = 0; sprintf_s(netprocErrmsg, NET_ERRMSG_NOTCONNECT); @@ -606,10 +606,10 @@ int connectServer(void) CopyMemory(userPassword, szPassword, 32); ecb_crypt("f;encor1c", userPassword, 32, DES_DECRYPT); - extern char []; + extern char 机器数据[]; unsigned char tmp[256]; CHAR mac[64]; - MD5( (const unsigned char*), strlen(), tmp ); + MD5( (const unsigned char*)机器数据, strlen(机器数据), tmp ); size_t leng = 0; for (int i = 0; i < 16; i ++) { @@ -621,8 +621,8 @@ int connectServer(void) CHAR token[64]; sprintf_s(token, "%s-%s",_SA_MAC_VERSION, mac); #ifdef _LOGIP_ - extern char ҹIP[]; - lssproto_ClientLogin_send(sockfd, userId,userPassword, token, selectServerIndex,ҹIP); + extern char 玩家公网IP[]; + lssproto_ClientLogin_send(sockfd, userId,userPassword, token, selectServerIndex,玩家公网IP); #else lssproto_ClientLogin_send(sockfd, userId,userPassword, token, selectServerIndex,"192.168.1.1"); #endif @@ -655,7 +655,7 @@ int connectServer(void) else { #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime() + 2000; + PcLanded.登陆延时时间 = TimeGetTime() + 2000; #endif count = 0; netproc_sending = NETPROC_NOTSEND; @@ -696,11 +696,11 @@ void lssproto_ClientLogin_recv(int fd, char *result) cleanupNetwork(); // ???????????? PaletteChange(DEF_PAL, 0); - // ?????? + // ?????? //cary ChangeProc( PROC_ID_PASSWORD ); SubProcNo = 5; - // ?????? + // ?????? DeathAllAction(); } @@ -714,8 +714,8 @@ void charListStart(void) for (i = 0; i < MAXCHARACTER; i++) resetCharacterList(i); #ifdef _MORECHARACTERS_ - extern int ﵱǰҳ; - ﵱǰҳ=0; + extern int 多人物当前页数; + 多人物当前页数=0; #endif charListStatus = 0; if (bNewServer) @@ -750,15 +750,15 @@ int charListProc(void) } -TCHAR ½[1024]; +TCHAR 登陆错误内容[1024]; void lssproto_CharList_recv(int fd, char *result, char *data) { - memset(½,0,1024); + memset(登陆错误内容,0,1024); if(strcmp(result,_T("failed"))==0) { - strcpy(½,data); + strcpy(登陆错误内容,data); #ifdef _AIDENGLU_ - PcLanded.½ʱʱ = TimeGetTime()+2000; + PcLanded.登陆延时时间 = TimeGetTime()+2000; #endif } if (netproc_sending == NETPROC_SENDING) @@ -796,7 +796,7 @@ void lssproto_CharList_recv(int fd, char *result, char *data) void charLoginStart(void) { charLoginStatus = 0; -#ifdef _NEW_WGS_MSG // WON ADD WGSӴ +#ifdef _NEW_WGS_MSG // WON ADD WGS的新视窗 ERROR_MESSAGE = 0; #endif if (bNewServer){ @@ -830,7 +830,7 @@ int charLoginProc(void) return 1; else -#ifdef _NEW_WGS_MSG // WON ADD WGSӴ +#ifdef _NEW_WGS_MSG // WON ADD WGS的新视窗 if (ERROR_MESSAGE != 0) return ERROR_MESSAGE; else @@ -865,7 +865,7 @@ void lssproto_CharLogin_recv(int fd, char* result, char* data) } #ifdef __NEW_CLIENT -#ifdef _NEW_WGS_MSG // WON ADD WGSӴ +#ifdef _NEW_WGS_MSG // WON ADD WGS的新视窗 if (strcmp(result, "failed" ) == 0 && !hPing) ERROR_MESSAGE = atoi(data); #endif @@ -914,20 +914,20 @@ void lssproto_CharLogout_recv(int fd, char *result, char *data) #define S_DELIM '|' /*================================ -C warp -D ʱ -X -P ״̬ -F ״̬ +C warp 用 +D 修正时间 +X 骑宠 +P 人物状态 +F 家族状态 M HP,MP,EXP -K ״̬ +K 宠物状态 E nowEncountPercentage -J ħ -N Ѷ -I -W \ -S ְҵ -G ְҵȴʱ +J 魔法 +N 队伍资讯 +I 道具 +W 宠物技能 +S 职业技能 +G 职业技能冷却时间 ================================*/ void lssproto_S_recv(int fd, char *data) { @@ -1042,20 +1042,20 @@ void lssproto_S_recv(int fd, char *data) if (strlen(freeName) <= CHAR_FREENAME_LEN) strcpy_s(pc.freeName, freeName); #ifdef _NEW_ITEM_ - pc.״̬ = getIntegerToken(data, S_DELIM, 32); + pc.道具栏状态 = getIntegerToken(data, S_DELIM, 32); #endif #ifdef _SA_VERSION_25 int pointindex = getIntegerToken(data, S_DELIM, 33); char pontname[][32]={ - "ķ", - "˿", - "ӼӴ", - "³Ǵ", + "萨姆吉尔村", + "玛丽娜丝村", + "加加村", + "卡鲁它那村", }; sprintf(pc.chusheng,"%s",pontname[pointindex]); #ifdef _MAGIC_ITEM_ - pc.״̬ = getIntegerToken(data, S_DELIM, 34); - pc.߹⻷Ч = getIntegerToken(data, S_DELIM, 35); + pc.法宝道具状态 = getIntegerToken(data, S_DELIM, 34); + pc.道具光环效果 = getIntegerToken(data, S_DELIM, 35); #endif #endif @@ -1227,7 +1227,7 @@ void lssproto_S_recv(int fd, char *data) #ifdef _CHARSIGNADY_NO_ else if (mask == 0x80000000) // ( 1 << 31 ) { - pc.ǩ = getIntegerToken(data, S_DELIM, i);// 0x80000000 + pc.签到标记 = getIntegerToken(data, S_DELIM, i);// 0x80000000 i++; } #endif @@ -1245,7 +1245,7 @@ void lssproto_S_recv(int fd, char *data) #ifdef _STONDEBUG_ char title[128]; - sprintf_s( title, "%s %s [%s %s:%s]", DEF_APPNAME, "԰汾", + sprintf_s( title, "%s %s [%s %s:%s]", DEF_APPNAME, "调试版本", gmsv[selectServerIndex].name, gmsv[selectServerIndex].ipaddr, gmsv[selectServerIndex].port ); #else @@ -1253,17 +1253,17 @@ void lssproto_S_recv(int fd, char *data) extern int nServerGroup; sprintf_s( title, "%s %s [%s] %s", DEF_APPNAME, gmgroup[nServerGroup].name, gmsv[selectServerIndex].name,pc.name ); - extern int 忪; - if(忪){ - char [1024]={0}; - LCMapString (0x804,0x4000000,title, strlen(title),,1024); - sprintf(title,"%s",); + extern int 繁体开关; + if(繁体开关){ + char 繁体[1024]={0}; + LCMapString (0x804,0x4000000,title, strlen(title),繁体,1024); + sprintf(title,"%s",繁体); } #endif - extern int ; + extern int 编码; extern char* GB2312ToBIG5(const char* szGBString); - if(==950){ + if(编码==950){ SetWindowText( hWnd, GB2312ToBIG5((const char *)title)); }else{ @@ -1820,7 +1820,7 @@ void lssproto_S_recv(int fd, char *data) pc.item[i].level = getIntegerToken(data, '|', no + 8); pc.item[i].sendFlag = getIntegerToken(data, '|', no + 9); - // ʾƷ;ö + // 显示物品耐久度 getStringToken(data, '|', no + 10, sizeof(temp) - 1, temp); makeStringFromEscaped(temp); if (strlen(temp) <= 16) @@ -1839,7 +1839,7 @@ void lssproto_S_recv(int fd, char *data) pc.item[i].type = getIntegerToken(data, '|', no + 13); #else #ifdef _MAGIC_ITEM_ - pc.item[i]. = getIntegerToken(data, '|', no + 13); + pc.item[i].道具类型 = getIntegerToken(data, '|', no + 13); #endif #endif #ifdef _ITEM_JIGSAW @@ -1856,7 +1856,7 @@ void lssproto_S_recv(int fd, char *data) } } break; - //յij\ + //接收到的宠物技能 case 'W': { int i, no, no2; @@ -1890,7 +1890,7 @@ void lssproto_S_recv(int fd, char *data) } } break; -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 case 'S': { char name[CHAR_NAME_LEN + 1]; @@ -1970,7 +1970,7 @@ void lssproto_S_recv(int fd, char *data) #endif getStringToken(data, '|', no + 1, sizeof(szData) - 1, szData); makeStringFromEscaped(szData); - if (strlen(szData) == 0) // û + if (strlen(szData) == 0) // 没道具 { memset(&pet[nPetIndex].item[i], 0, sizeof(pet[nPetIndex].item[i])); continue; @@ -2002,7 +2002,7 @@ void lssproto_S_recv(int fd, char *data) pet[nPetIndex].item[i].level = getIntegerToken(data, '|', no + 8); pet[nPetIndex].item[i].sendFlag = getIntegerToken(data, '|', no + 9); - // ʾƷ;ö + // 显示物品耐久度 getStringToken(data, '|', no + 10, sizeof(szData) - 1, szData); makeStringFromEscaped(szData); if (strlen(szData) <= 16) @@ -2018,7 +2018,7 @@ void lssproto_S_recv(int fd, char *data) getStringToken(data, '|', no + 14, sizeof(szData) - 1, szData); makeStringFromEscaped(szData); strcpy( pet[nPetIndex].item[i].jigsaw, szData ); - //øװĵ,Ͳƴͼ,¾ + //可拿给宠物装备的道具,就不会是拼图了,以下就免了 //if( i == JigsawIdx ) // SetJigsaw( pc.item[i].graNo, pc.item[i].jigsaw ); #endif @@ -2044,7 +2044,7 @@ void lssproto_MC_recv( int fd, int fl, int x1, int y1, int x2, int y2, int tileS #ifdef DEBUGPUSH char msg[800]; - sprintf_s(msg, "???????????????FL%d %d,%d-%d,%d (%ud/%ud)", fl, x1, y1, x2, y2, tileSum, partsSum); + sprintf_s(msg, "佋???????????????FL%d %d,%d-%d,%d (%ud/%ud)", fl, x1, y1, x2, y2, tileSum, partsSum); PUSH(msg); #endif getStringToken(data, '|', 1, sizeof(showString) - 1, showString); @@ -2118,7 +2118,7 @@ void lssproto_M_recv(int fd, int fl, int x1, int y1, int x2, int y2, char* data) #ifdef DEBUGPUSH char msg[800]; - sprintf_s(msg , "??????????????FL%d %d,%d-%d,%d", fl, x1, y1, x2, y2); + sprintf_s(msg , "??????佋????????FL%d %d,%d-%d,%d", fl, x1, y1, x2, y2); PUSH(msg); #endif getStringToken(data, '|', 1, sizeof(showString) - 1, showString); @@ -2212,10 +2212,10 @@ void lssproto_C_recv(int fd, char *data) *titlestr = 0; #endif int petlevel; -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 int profession_class, profession_level, profession_skill_point; #endif -#ifdef _ALLDOMAN // (ɿ) Syu ADD аNPC +#ifdef _ALLDOMAN // (不可开) Syu ADD 排行榜NPC int herofloor; #endif #ifdef _NPC_PICTURE @@ -2245,8 +2245,8 @@ void lssproto_C_recv(int fd, char *data) getStringToken(bigtoken, '|', 3, sizeof(smalltoken) - 1, smalltoken); id = a62toi(smalltoken); - extern BOOL ο; - if(ο){ + extern BOOL 人物屏蔽开关; + if(人物屏蔽开关){ if(id != pc.id){ if(charType <4 ) continue; @@ -2294,7 +2294,7 @@ void lssproto_C_recv(int fd, char *data) sprintf(titlestr,"%s",FreeGetTitleStr(titleindex)); } #endif -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 getStringToken(bigtoken, '|', 18, sizeof(smalltoken) - 1, smalltoken); profession_class = atoi(smalltoken); getStringToken(bigtoken, '|', 19, sizeof(smalltoken) - 1, smalltoken); @@ -2303,7 +2303,7 @@ void lssproto_C_recv(int fd, char *data) // profession_exp = atoi(smalltoken); getStringToken(bigtoken, '|', 20, sizeof(smalltoken) - 1, smalltoken); profession_skill_point = atoi(smalltoken); -#ifdef _ALLDOMAN // Syu ADD аNPC +#ifdef _ALLDOMAN // Syu ADD 排行榜NPC getStringToken(bigtoken, '|', 21, sizeof(smalltoken) - 1, smalltoken); herofloor = atoi(smalltoken); #endif @@ -2311,7 +2311,7 @@ void lssproto_C_recv(int fd, char *data) getStringToken(bigtoken, '|', 22, sizeof(smalltoken) - 1, smalltoken); picture = atoi(smalltoken); #endif -// #ifdef _GM_IDENTIFY // Rog ADD GMʶ +// #ifdef _GM_IDENTIFY // Rog ADD GM识别 // getStringToken(bigtoken , '|', 23 , sizeof( gm_name ) - 1, gm_name ); // makeStringFromEscaped( gm_name ); // #endif @@ -2332,13 +2332,13 @@ void lssproto_C_recv(int fd, char *data) getCharTitleSplit(titlestr,&pc.ptAct->TitleText); #endif updateMapArea(); -#ifdef _CHAR_PROFESSION // WON ADD ְҵ -// #ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +// #ifdef _GM_IDENTIFY // Rog ADD GM识别 // setPcParam(name, freeName, level, petname, petlevel, nameColor, walkable, height, profession_class, profession_level, profession_exp, profession_skill_point , gm_name); // setPcParam(name, freeName, level, petname, petlevel, nameColor, walkable, height, profession_class, profession_level, profession_skill_point , gm_name); // #else // setPcParam(name, freeName, level, petname, petlevel, nameColor, walkable, height, profession_class, profession_level, profession_exp, profession_skill_point); -#ifdef _ALLDOMAN // Syu ADD аNPC +#ifdef _ALLDOMAN // Syu ADD 排行榜NPC setPcParam(name, freeName, level, petname, petlevel, nameColor, walkable, height, profession_class, profession_level, profession_skill_point , herofloor); #else setPcParam(name, freeName, level, petname, petlevel, nameColor, walkable, height, profession_class, profession_level, profession_skill_point); @@ -2371,8 +2371,8 @@ void lssproto_C_recv(int fd, char *data) } else { -#ifdef _CHAR_PROFESSION // WON ADD ְҵ - #ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 + #ifdef _GM_IDENTIFY // Rog ADD GM识别 setNpcCharObj(id, graNo, x, y, dir, fmname, name, freeName, level, petname, petlevel, nameColor, walkable, height, charType, profession_class, gm_name); #else @@ -2471,8 +2471,8 @@ void lssproto_C_recv(int fd, char *data) getStringToken(bigtoken, '|', 7, sizeof(smalltoken) - 1, smalltoken); y = atoi(smalltoken); -#ifdef _CHAR_PROFESSION // WON ADD ְҵ - #ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 + #ifdef _GM_IDENTIFY // Rog ADD GM识别 setNpcCharObj( id, graNo, x, y, dir, "", name, "", level, petname, petlevel, nameColor, 0, height, 2, 0, ""); #else @@ -2503,7 +2503,7 @@ void lssproto_C_recv(int fd, char *data) #else getStringToken(bigtoken , '|' , 11 , sizeof(smalltoken) - 1, smalltoken); if ( strlen(smalltoken) > 0 ){ - // NPC?ѩ + // NPC? charType = getIntegerToken(bigtoken, '|', 1 ); getStringToken(bigtoken, '|', 2, sizeof(smalltoken) - 1, smalltoken); id = a62toi(smalltoken); @@ -2648,11 +2648,11 @@ void lssproto_CA_recv( int fd, char *data ) ACTION *ptAct; - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; - // Pf????? + // ????? if ( encountNowFlag ) { return; @@ -2687,11 +2687,11 @@ void lssproto_CA_recv( int fd, char *data ) if ( pc.id == charindex ) { - // PC????h?? + // PC?????? if ( pc.ptAct == NULL || (pc.ptAct != NULL && pc.ptAct->anim_chr_no == 0) ) { - // ???????????C???????????? + // ???????????C???????????? if (bNewServer) lssproto_C_send(sockfd, charindex ); else @@ -2724,7 +2724,7 @@ void lssproto_CA_recv( int fd, char *data ) ptAct = getCharObjAct( charindex ); if ( ptAct == NULL ) { - // i?ID???????????????????ID?????? + // ?ID???????????????????ID?????? tellflag = 0; for ( j = 0; j < tellCindex; j++ ) { @@ -2759,13 +2759,13 @@ void lssproto_CA_recv( int fd, char *data ) } -// ????? +// ????? void lssproto_CD_recv( int fd, char *data ) { int i, j; int id; - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; @@ -2796,8 +2796,8 @@ void lssproto_CD_recv( int fd, char *data ) -// ?h /////////////////////////////////////////////////////////////////// -// ?????h??????? +// ? /////////////////////////////////////////////////////////////////// +// ???????????? void walkSendForServer( int x, int y, char *direction ) { #ifdef _REMAKE_20 @@ -2811,8 +2811,8 @@ void walkSendForServer( int x, int y, char *direction ) } -// ?????h??????? -// ????????????????????T?????????????? +// ???????????? +// ?????????????????????????????????? void noChecksumWalkSendForServer( int x, int y, char *direction ) { if (bNewServer) @@ -2822,10 +2822,10 @@ void noChecksumWalkSendForServer( int x, int y, char *direction ) } -// ?h?????? +// ??????? void lssproto_W_recv( int fd, int id, int x, int y ) { - // ??????Re??????????? + // ????????????????? // ?????????????????????? } @@ -2844,7 +2844,7 @@ void chatStrSendForServer( char *str, int color ) #endif -#ifdef _STONDEBUG_ // ֶͳ +#ifdef _STONDEBUG_ // 手动送出封包 { if ( !strncmp( str, "send ", 5) ) { sendDataToServer( str+5); @@ -2873,10 +2873,10 @@ void chatStrSendForServer( char *str, int color ) } #endif #ifdef _CHAR_MANOR_DEBUG - if(strstr(str,".⻷")){ - int ⻷ID=0; - ⻷ID = getIntegerToken(str, ' ',2); - setCharmManor(pc.ptAct, ⻷ID); + if(strstr(str,".光环")){ + int 光环ID=0; + 光环ID = getIntegerToken(str, ' ',2); + setCharmManor(pc.ptAct, 光环ID); return; } #endif @@ -2894,14 +2894,14 @@ void chatStrSendForServer( char *str, int color ) #ifdef _THEATER if (pc.iTheaterMode & 0x00000001) { - StockChatBufferLine("", FONT_PAL_YELLOW); + StockChatBufferLine("表演中请勿喧哗。。。", FONT_PAL_YELLOW); return; } #endif #ifdef _NPC_DANCE if( pc.iDanceMode ) { - StockChatBufferLine("ܻ꣡ᳳˡ", FONT_PAL_YELLOW); + StockChatBufferLine("嘘!你可能会吵到别人。", FONT_PAL_YELLOW); return; } #endif @@ -2912,7 +2912,7 @@ void chatStrSendForServer( char *str, int color ) break; case 1: if ( strcmp ( tmp1 , str ) == 0 || strlen(tmp1) > 16) { - StockChatBufferLine( "ָʹøʽȷ" , FONT_PAL_RED); + StockChatBufferLine( "指令使用格式不正确!" , FONT_PAL_RED); strcpy(secretName,""); return ; } @@ -2935,16 +2935,16 @@ void chatStrSendForServer( char *str, int color ) break; /* case 4: - sprintf_s(m,"P|/OCC%s%s",pc.name,dest); + sprintf_s(m,"P|/OCC%s:%s",pc.name,dest); break; #ifdef _CHATROOMPROTOCOL case 5: - sprintf_s(tmpMsg,"T|%s%s",pc.name,dest); + sprintf_s(tmpMsg,"T|%s:%s",pc.name,dest); lssproto_CHATROOM_send (sockfd ,tmpMsg); return; #endif */ -#ifdef _CHANNEL_WORLD ///Ƶ +#ifdef _CHANNEL_WORLD ///世界频道 case 4: sprintf_s(m,"P|/WD %s",dest); break; @@ -2977,7 +2977,7 @@ void chatStrSendForServer( char *str, int color ) -// ???? /////////////////////////////////////////////////////////// +// ???? /////////////////////////////////////////////////////////// void lssproto_TK_recv( int fd, int index, char *message, int color ) { char id[2]; @@ -2995,7 +2995,7 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) msg1[2] = 0; msg = msg1+2; #endif - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; @@ -3005,7 +3005,7 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) #ifndef _CHANNEL_MODIFY getStringToken( message, '|', 2, 2022 - 1, msg ); makeStringFromEscaped( msg ); - #ifdef _TRADETALKWND // (ɿ) Syu ADD Ի + #ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 TradeTalk( msg ) ; #endif #endif @@ -3032,12 +3032,12 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) } else{ switch (szToken[0]){ - // Ƶ + // 密语频道 case 'M': { char tellName[32] = { "" }; char szMsgBuf[2024]; - char temp[] = "㣺"; + char temp[] = "告诉你:"; char *found; if (found = strstr(msg,temp)){ @@ -3050,11 +3050,11 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) } } break; - // Ƶ + // 家族频道 case 'F': - // Ƶ + // 队伍频道 case 'T': - // ְҵƵ + // 职业频道 case 'O': break; } @@ -3066,7 +3066,7 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) if (!g_bTalkWindow) #endif TradeTalk(msg); - if (strcmp(msg,"ҿ۳ʯ") == 0) pc.gold -= 200; + if (strcmp(msg,"成立聊天室扣除200石币") == 0) pc.gold -= 200; #ifdef _FONT_SIZE #ifdef _MESSAGE_FRONT_ StockChatBufferLineExt( msg-2, color, fontsize ); @@ -3081,7 +3081,7 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) #endif #endif #else - #ifdef _TELLCHANNEL // (ɿ) ROG ADD Ƶ + #ifdef _TELLCHANNEL // (不可开) ROG ADD 密语频道 char tellName[128] = { "" }; char tmpMsg[STR_BUFFER_SIZE + 32]; char TK[4]; @@ -3091,10 +3091,10 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) else if (strcmp(TK,"TE") == 0) InitSelectChar( msg, 1); } else{ - char temp[] = "㣺"; + char temp[] = "告诉你:"; char *found; - if (strcmp( msg, "ҿ۳ʯ") == 0) pc.gold -= 200; + if (strcmp( msg, "成立聊天室扣除200石币") == 0) pc.gold -= 200; if ( found = strstr( msg, temp )){ strncpy_s(tellName, msg, strlen(msg) - strlen(found)); @@ -3115,7 +3115,7 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) #endif if ( index >= 0 ){ if ( pc.ptAct != NULL && pc.id == index ){ - // 1000?? + // 1000?? setPcFukidashi( 1000 ); } else @@ -3123,7 +3123,7 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) ptAct = getCharObjAct( index ); if ( ptAct != NULL ) { - // 1000?? + // 1000?? setCharFukidashi( ptAct, 1000 ); } } @@ -3135,17 +3135,17 @@ void lssproto_TK_recv( int fd, int index, char *message, int color ) -// ???? /////////////////////////////////////////////////////////// -// ???????????????? +// ???? /////////////////////////////////////////////////////////// +// ???????????????? void createNewCharStart(void) { newCharStatus = 0; - // ????V?t??e??????????? + // ?????????????????? if (bNewServer){ #ifdef _MORECHARACTERS_ - extern int ﵱǰҳ; - lssproto_CreateNewChar_send(sockfd, selectPcNo+ﵱǰҳ*2, newCharacterName, + extern int 多人物当前页数; + lssproto_CreateNewChar_send(sockfd, selectPcNo+多人物当前页数*2, newCharacterName, newCharacterGraNo, newCharacterFaceGraNo, newCharacterVit, newCharacterStr, newCharacterTgh, newCharacterDex, newCharacterEarth, newCharacterWater, newCharacterFire, newCharacterWind, @@ -3182,8 +3182,8 @@ void createNewCharStart(void) } -// ???K???r? -// ??k 0 ... r? / 1 ... ?? / -1 ... ?????? / -2 ... ????????? +// ??????? +// ??: 0 ... ? / 1 ... ?? / -1 ... ?????? / -2 ... ????????? int createNewCharProc(void) { if ( netproc_sending == NETPROC_RECEIVED ) @@ -3204,7 +3204,7 @@ int createNewCharProc(void) return 0; } -char ʾ[512]; +char 创建人物内容提示[512]; void lssproto_CreateNewChar_recv( int fd, char *result, char *data ) { if ( netproc_sending == NETPROC_SENDING ) @@ -3215,7 +3215,7 @@ void lssproto_CreateNewChar_recv( int fd, char *result, char *data ) { newCharStatus = 1; }else{ - sprintf(ʾ,data); + sprintf(创建人物内容提示,data); } } } @@ -3228,7 +3228,7 @@ void lssproto_CreateNewChar_recv( int fd, char *result, char *data ) // ????? ///////////////////////////////////////////////////////////// -// ?????k?? +// ??????? void delCharStart(void) { charDelStatus = 0; @@ -3242,8 +3242,8 @@ void delCharStart(void) } -// ?????r? -// ??k 0 ... ??r? / 1 ... ???? / -1 ... ?????? / -2 ... ????????? +// ?????? +// ??: 0 ... ??? / 1 ... ???? / -1 ... ?????? / -2 ... ????????? int delCharProc(void) { if ( netproc_sending == NETPROC_RECEIVED ) @@ -3265,7 +3265,7 @@ int delCharProc(void) } -// ??????? +// ??????? void lssproto_CharDelete_recv( int fd, char *result, char *data ) { if ( netproc_sending == NETPROC_SENDING ) @@ -3278,22 +3278,22 @@ void lssproto_CharDelete_recv( int fd, char *result, char *data ) } } -// ????? ///////////////////////////////////////////////////////// +// ????? ///////////////////////////////////////////////////////// void lssproto_PR_recv( int fd, int request, int result ) { - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; if ( request == 1 && result == 1 ) { - // M????????V????G?? + // ?????????????? setPcParty(); } else if ( request == 0 && result == 1 ) { - // ?????????? + // ?????????? //delPcParty(); //delPcLeader(); partyModeFlag = 0; @@ -3314,10 +3314,10 @@ void lssproto_PR_recv( int fd, int request, int result ) -// EV?????????r? ///////////////////////////////////////// +// EV?????????? ///////////////////////////////////////// void lssproto_EV_recv( int fd, int seqno, int result ) { - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; @@ -3326,10 +3326,10 @@ void lssproto_EV_recv( int fd, int seqno, int result ) eventWarpSendFlag = 0; if ( result == 0 ) { - // ????????????? + // ????????????? redrawMap(); floorChangeFlag = FALSE; - // ?ɤ?????????? + // ??????????? warpEffectStart = TRUE; warpEffectOk = TRUE; } @@ -3349,10 +3349,10 @@ void lssproto_EV_recv( int fd, int seqno, int result ) } -// ??OK?PfN??OK????? ϣ?֢t //////////////////////// +// ??OK???OK????? OK? //////////////////////// void lssproto_FS_recv( int fd, int flg ) { - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; @@ -3361,7 +3361,7 @@ void lssproto_FS_recv( int fd, int flg ) -// ????????? /////////////////////////////////////////////// +// ????????? /////////////////////////////////////////////// void lssproto_AB_recv( int fd, char *data ) { int i; @@ -3370,11 +3370,11 @@ void lssproto_AB_recv( int fd, char *data ) char name[256]; int flag; int useFlag; -#ifdef _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ +#ifdef _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 char planetid[8]; int j ; #endif - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; @@ -3397,9 +3397,9 @@ void lssproto_AB_recv( int fd, char *data ) { memset( &MailHistory[i], 0, sizeof( MailHistory[0] ) ) ; SaveMailHistory( i ); - // t???? + // ???? mailLamp = CheckMailNoReadFlag(); - // ????? + // ????? DeathLetterAction(); } addressBook[i].useFlag = 0; @@ -3432,7 +3432,7 @@ void lssproto_AB_recv( int fd, char *data ) addressBook[i].onlineFlag = (short)getIntegerToken(data, '|', no+5 ); addressBook[i].graNo = getIntegerToken(data, '|', no+6 ); addressBook[i].transmigration = getIntegerToken(data, '|', no+7 ); -#ifdef _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ +#ifdef _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 for ( j = 0 ; j < MAX_GMSV ; j ++ ) { if ( gmsv[j].used == '1' ) { getStringToken( gmsv[j].ipaddr, '.', 4, sizeof( planetid ) -1, planetid ); @@ -3447,18 +3447,18 @@ void lssproto_AB_recv( int fd, char *data ) } -// ??????????Ol?//////////////////////////////////////// +// ???????????//////////////////////////////////////// void lssproto_ABI_recv( int fd, int num, char* data ) { char name[256]; int nameLen; int useFlag; -#ifdef _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ +#ifdef _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 char planetid[8]; int j ; #endif - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; @@ -3477,9 +3477,9 @@ void lssproto_ABI_recv( int fd, int num, char* data ) { memset( &MailHistory[num], 0, sizeof( MailHistory[0] ) ) ; SaveMailHistory( num ); - // t???? + // ???? mailLamp = CheckMailNoReadFlag(); - // ????? + // ????? DeathLetterAction(); } addressBook[num].useFlag = useFlag; @@ -3508,7 +3508,7 @@ void lssproto_ABI_recv( int fd, int num, char* data ) addressBook[num].onlineFlag = (short)getIntegerToken(data, '|', 5 ); addressBook[num].graNo = getIntegerToken(data, '|', 6 ); addressBook[num].transmigration = getIntegerToken(data, '|', 7 ); -#ifdef _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ +#ifdef _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 if ( addressBook[num].onlineFlag == 0 ) sprintf_s( addressBook[num].planetname , " "); for ( j = 0 ; j < MAX_GMSV ; j ++ ) { @@ -3526,19 +3526,19 @@ void lssproto_ABI_recv( int fd, int num, char* data ) } -// Pf??????? ///////////////////////////////////////////////// +// ??????? ///////////////////////////////////////////////// void lssproto_RS_recv( int fd, char *data ) { int i; char token[2048]; char item[2048]; - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; battleResultMsg.useFlag = 1; - //cary ȷ λ + //cary 确定 栏位 数 int cols = RESULT_CHR_EXP; getStringToken(data, ',', RESULT_CHR_EXP+1, sizeof( token ) - 1, token ); if ( token[0] == 0){ @@ -3579,10 +3579,10 @@ void lssproto_RS_recv( int fd, char *data ) } -// ??????????? ///////////////////////////////////////////////// +// ??????????? ///////////////////////////////////////////////// void lssproto_RD_recv( int fd, char *data ) { - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; @@ -3593,10 +3593,10 @@ void lssproto_RD_recv( int fd, char *data ) } -// ?????t? /////////////////////////////////////////////////// +// ?????? /////////////////////////////////////////////////// void lssproto_SI_recv( int fd, int from, int to ) { - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; @@ -3604,7 +3604,7 @@ void lssproto_SI_recv( int fd, int from, int to ) } -// ????ѩ /////////////////////////////////////////////////////// +// ???? /////////////////////////////////////////////////////// void lssproto_I_recv( int fd, char *data ) { int i, j; @@ -3612,8 +3612,8 @@ void lssproto_I_recv( int fd, char *data ) char name[256]; char name2[256]; char memo[256]; - //char *data = "9|˹̹||0|;10ǰظ|24002|0|1|0|7||1||20||10|˹̹||0|;10ǰظ|24002|0|1|0|7||1||20|"; - if ( logOutFlag )//δ½򲻽 + //char *data = "9|乌力斯坦的肉||0|耐久力10前後回复|24002|0|1|0|7|不会损坏|1|肉|20||10|乌力斯坦的肉||0|耐久力10前後回复|24002|0|1|0|7|不会损坏|1|肉|20|"; + if ( logOutFlag )//人物未登陆则不接收这个封包 return; for ( j = 0; ; j++ ){ @@ -3647,8 +3647,8 @@ void lssproto_I_recv( int fd, char *data ) #endif #endif//_PET_ITEM #endif//_ITEM_JIGSAW - i = getIntegerToken(data, '|', no+1 );//λ - if ( getStringToken(data, '|', no+2, sizeof(name) - 1 , name ) == 1 )// + i = getIntegerToken(data, '|', no+1 );//道具位 + if ( getStringToken(data, '|', no+2, sizeof(name) - 1 , name ) == 1 )//道具名 break; makeStringFromEscaped(name); if ( strlen(name) == 0 ){ @@ -3659,20 +3659,20 @@ void lssproto_I_recv( int fd, char *data ) if ( strlen(name) <= ITEM_NAME_LEN ){ strcpy( pc.item[i].name, name ); } - getStringToken(data, '|', no+3, sizeof( name2 ) - 1, name2 );//ڶ + getStringToken(data, '|', no+3, sizeof( name2 ) - 1, name2 );//第二个道具名 makeStringFromEscaped( name2 ); if ( strlen( name2 ) <= ITEM_NAME2_LEN ){ strcpy( pc.item[i].name2, name2 ); } - pc.item[i].color = getIntegerToken(data, '|', no+4 );//ɫ + pc.item[i].color = getIntegerToken(data, '|', no+4 );//颜色 if ( pc.item[i].color < 0 ) pc.item[i].color = 0; - getStringToken(data, '|', no+5, sizeof( memo ) - 1, memo );//߽ + getStringToken(data, '|', no+5, sizeof( memo ) - 1, memo );//道具介绍 makeStringFromEscaped( memo ); if ( strlen( memo ) <= ITEM_MEMO_LEN ){ strcpy( pc.item[i].memo, memo ); } - pc.item[i].graNo = getIntegerToken(data, '|', no+6 );// + pc.item[i].graNo = getIntegerToken(data, '|', no+6 );//道具形像 pc.item[i].field = getIntegerToken(data, '|', no+7 );// pc.item[i].target = getIntegerToken(data, '|', no+8 ); if ( pc.item[i].target >= 100 ){ @@ -3681,11 +3681,11 @@ void lssproto_I_recv( int fd, char *data ) }else{ pc.item[i].deadTargetFlag = 0; } - pc.item[i].level = getIntegerToken(data, '|', no+9 );//ȼ + pc.item[i].level = getIntegerToken(data, '|', no+9 );//等级 pc.item[i].sendFlag = getIntegerToken(data, '|', no+10 ); { - // ʾƷ;ö + // 显示物品耐久度 char damage[256]; getStringToken(data, '|', no+11, sizeof( damage ) - 1, damage ); makeStringFromEscaped( damage ); @@ -3719,7 +3719,7 @@ void lssproto_I_recv( int fd, char *data ) } #else #ifdef _MAGIC_ITEM_ - pc.item[i]. = getIntegerToken(data, '|', no + 14); + pc.item[i].道具类型 = getIntegerToken(data, '|', no + 14); #endif #endif /* @@ -3747,11 +3747,11 @@ void lssproto_I_recv( int fd, char *data ) void lssproto_WN_recv( int fd,int windowtype,int buttontype,int seqno,int objindex,char* data ) { - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; - if( strstr(data,"֮ʧࡣ") ){ + if( strstr(data,"否则家族在七天之后会消失唷!") ){ if( TimeGetTime() - MsgCooltime > 300000 ) MsgCooltime = TimeGetTime(); else @@ -3762,19 +3762,19 @@ void lssproto_WN_recv( int fd,int windowtype,int buttontype,int seqno,int objind } -// ??????? /////////////////////////////////////////////////////// +// ??????? /////////////////////////////////////////////////////// void lssproto_PME_recv( int fd, int objindex, int graphicsno, int x, int y, int dir, int flg, int no, char *cdata ) { - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; - // Pf????? + // ????? if ( encountNowFlag ) return; - // ?? + // ?? if ( flg == 0 ) { switch ( no ) @@ -3788,7 +3788,7 @@ void lssproto_PME_recv( int fd, int objindex, } } else - // ? + // ? { char smalltoken[2048]; int id; @@ -3830,7 +3830,7 @@ void lssproto_PME_recv( int fd, int objindex, getStringToken( cdata, '|', ps++, sizeof(smalltoken) - 1, smalltoken); height = atoi(smalltoken); - // ???ѩ?????????? + // ????????????? if ( setReturnPetObj( id, graNo, x, y, dir, name, freeName, level, nameColor, walkable, height, charType ) ) { @@ -3850,10 +3850,10 @@ void lssproto_PME_recv( int fd, int objindex, char *pCommand = NULL; DWORD dwDiceTimer; -// ?????????r? ///////////////////////////////////////////// +// ?????????? ///////////////////////////////////////////// void lssproto_EF_recv( int fd, int effect, int level, char *option ) { - // u?????????? + // ?????????? if ( effect == 0 ) { mapEffectRainLevel = 0; @@ -3870,7 +3870,7 @@ void lssproto_EF_recv( int fd, int effect, int level, char *option ) { mapEffectRainLevel = level; } - // D?????? + // ?????? if ( effect & 2 ) { mapEffectSnowLevel = level; @@ -3885,7 +3885,7 @@ void lssproto_EF_recv( int fd, int effect, int level, char *option ) #endif // Terry add 2002/01/14 #ifdef __EDEN_DICE - // + // 骰子 if (effect == 10) { pCommand = (char*)MALLOC(strlen(option)+1); @@ -3904,7 +3904,7 @@ void lssproto_EF_recv( int fd, int effect, int level, char *option ) } -// ? /////////////////////////////////////////////////////////////////// +// ? /////////////////////////////////////////////////////////////////// void lssproto_IS_recv( int fd, char* cdata ) { } @@ -4105,11 +4105,11 @@ void lssproto_SPET_recv( int fd, int standbypet, int result ) void lssproto_SKUP_recv( int fd,int point ) { - // ???????????? + // ???????????? StatusUpPoint = point; } -// ???????????????? +// ???????????????? void lssproto_MSG_recv( int fd,int aindex,char* text ,int color) { char moji[ 256 ]; @@ -4118,46 +4118,46 @@ void lssproto_MSG_recv( int fd,int aindex,char* text ,int color) // ??????????? mailLamp = TRUE; - // ???k??? + // ?????? MailHistory[ aindex ].newHistoryNo--; // ???????? if ( MailHistory[ aindex ].newHistoryNo <= -1 ) MailHistory[ aindex ].newHistoryNo = MAIL_MAX_HISTORY - 1; - // T???? + // ???? getStringToken( text, '|', 1, sizeof( MailHistory[ aindex ].dateStr[ MailHistory[ aindex ].newHistoryNo ] ) - 1, MailHistory[ aindex ].dateStr[ MailHistory[ aindex ].newHistoryNo ] ); - // ??? + // ??? getStringToken( text, '|', 2, sizeof( MailHistory[ aindex ].str[ MailHistory[ aindex ].newHistoryNo ] ) - 1, MailHistory[ aindex ].str[ MailHistory[ aindex ].newHistoryNo ] ); // ???????? makeStringFromEscaped( MailHistory[ aindex ].str[ MailHistory[ aindex ].newHistoryNo ] ); - // ??????????k??? + // ????????????? noReadFlag = getIntegerToken( text, '|', 3 ); // ???????? if ( noReadFlag != -1 ){ - // ??????????k??? + // ????????????? MailHistory[ aindex ].noReadFlag[ MailHistory[ aindex ].newHistoryNo ] = noReadFlag; - // ?????????? + // ?????????? MailHistory[ aindex ].petLevel[ MailHistory[ aindex ].newHistoryNo ] = getIntegerToken( text, '|', 4 ); - // ????q??? + // ??????? getStringToken( text, '|', 5, sizeof( MailHistory[ aindex ].petName[ MailHistory[ aindex ].newHistoryNo ] ), MailHistory[ aindex ].petName[ MailHistory[ aindex ].newHistoryNo ] ); - // ????q????????? + // ????????????? makeStringFromEscaped( MailHistory[ aindex ].petName[ MailHistory[ aindex ].newHistoryNo ] ); - // ???????????k???? + // ??????????????? MailHistory[ aindex ].itemGraNo[ MailHistory[ aindex ].newHistoryNo ] = getIntegerToken( text, '|', 6 ); - // ???????????? - sprintf_s( moji,"յ%sijʼ", addressBook[ aindex ].name ); + // ???????????? + sprintf_s( moji,"收到%s送来的宠物邮件!", addressBook[ aindex ].name ); } - // ?G????? + // ?????? else{ MailHistory[ aindex ].noReadFlag[ MailHistory[ aindex ].newHistoryNo ] = TRUE; - // ???????????? - sprintf_s( moji,"յ%sʼ", addressBook[ aindex ].name ); + // ???????????? + sprintf_s( moji,"收到%s送来的邮件!", addressBook[ aindex ].name ); } - // ?????????????????? + // ?????????????????? StockChatBufferLine( moji, FONT_PAL_WHITE ); // ???????? @@ -4166,17 +4166,17 @@ void lssproto_MSG_recv( int fd,int aindex,char* text ,int color) mailHistoryWndPageNo++; // ???????? if ( mailHistoryWndPageNo >= MAIL_MAX_HISTORY ) mailHistoryWndPageNo = 0; - // ????????? + // ????????? // DeathLetterAction(); } - // ? + // ? play_se( 101, 320, 240 ); - // ???????V + // ??????? SaveMailHistory( aindex ); } -// ??????????? +// ??????????? void lssproto_PS_recv( int fd,int result,int havepetindex,int havepetskill,int toindex ) { char moji[ 256 ]; @@ -4184,21 +4184,21 @@ void lssproto_PS_recv( int fd,int result,int havepetindex,int havepetskill,int t // ??????? ItemMixRecvFlag = FALSE; - // ??? + // ??? if ( result == 0 ){ - //??????? - sprintf_s( moji,"ʧܣ"); - // ?????????????????? + //??????? + sprintf_s( moji,"失败!"); + // ?????????????????? StockChatBufferLine( moji, FONT_PAL_WHITE ); } } -// ???????D?? +// ????????? void lssproto_SE_recv( int fd, int x, int y, int senumber, int sw ) { - // ????????????????ѩ???? + // ???????????????????? if ( logOutFlag ) return; @@ -4208,11 +4208,11 @@ void lssproto_SE_recv( int fd, int x, int y, int senumber, int sw ) } else { - // ????????Y???? + // ???????????? } } -// Pf?q????????? +// ?????????? void lssproto_XYD_recv( int fd, int x, int y, int dir ) { updateMapArea(); @@ -4228,9 +4228,9 @@ void lssproto_WO_recv( int fd, int effect ) // ??????? if ( effect == 0 ) { - // ???????? + // ???????? transmigrationEffectFlag = 1; - // ????????????? + // ????????????? transEffectPaletteStatus = 1; // ???????? palNo = 15; @@ -4238,13 +4238,13 @@ void lssproto_WO_recv( int fd, int effect ) } } -// ?????? ///////////////////////////////////////////////////////// +// ?????? ///////////////////////////////////////////////////////// void lssproto_Echo_recv( int fd, char *test ) { #if 1 #ifdef _STONDEBUG__MSG - // ???T??x + // ????? time( &serverAliveLongTime ); localtime_s(&serverAliveTime, &serverAliveLongTime ); @@ -4260,7 +4260,7 @@ void lssproto_NU_recv( int fd, int AddCount) } -// ????? +// ????? void lssproto_PlayerNumGet_recv( int fd, int logincount, int player ) { } @@ -4274,7 +4274,7 @@ void lssproto_ProcGet_recv( int fd, char* data ) /* - ?????ѩ?????? + ??????????? */ void lssproto_R_recv( int fd, char* data ) @@ -4287,7 +4287,7 @@ void lssproto_D_recv( int fd,int category,int dx,int dy,char* data ) } /* - ???d???????????????????? + ??????????????????????? */ void lssproto_ACI_recv( int fd, char* data ) { @@ -4314,12 +4314,12 @@ void lssproto_FM_recv( int fd, char* data ) if ( strcmp(FMType1,"S") ==0 ) { - if ( strcmp(FMType2,"F") ==0) // б + if ( strcmp(FMType2,"F") ==0) // 家族列表 { initFamilyList(data ); } - if ( strcmp(FMType2,"D") ==0) // ϸ + if ( strcmp(FMType2,"D") ==0) // 家族详细 { initFamilyDetail(data ); @@ -4328,14 +4328,14 @@ void lssproto_FM_recv( int fd, char* data ) } else if ( strcmp(FMType1,"C") ==0 ) { - if ( strcmp(FMType2,"J") ==0) // Ƶ + if ( strcmp(FMType2,"J") ==0) // 加入频道 { getStringToken(data, '|', 3, sizeof( FMType3 ) - 1, FMType3 ); pc.channel = atoi( FMType3 ); if ( pc.channel != -1 ) pc.quickChannel = pc.channel; } - if ( strcmp(FMType2,"L") ==0) // Ƶб + if ( strcmp(FMType2,"L") ==0) // 频道列表 { initJoinChannel2WN(data ); @@ -4374,7 +4374,7 @@ void lssproto_FM_recv( int fd, char* data ) } } - else if ( strcmp(FMType1,"L") ==0 ) // 峤 + else if ( strcmp(FMType1,"L") ==0 ) // 族长功能 { if ( strcmp(FMType2,"CHANGE") ==0) { @@ -4562,7 +4562,7 @@ void lssproto_setdelaytimes( int delays) } #endif -#ifdef _MAGIC_NOCAST//Ĭ +#ifdef _MAGIC_NOCAST//沉默 void lssproto_NC_recv( int fd, int flg ) { if (flg==1 ) @@ -4572,27 +4572,27 @@ void lssproto_NC_recv( int fd, int flg ) } #endif #ifdef _CHANNEL_MODIFY -// Ի +// 储存对话内容 FILE *pSaveChatDataFile[6]={NULL,NULL,NULL,NULL,NULL,NULL}; void SaveChatData(char *msg,char KindOfChannel,bool bCloseFile){ static char szFileName[256]; static struct tm nowTime; static time_t longTime; static unsigned short Channel[] = { - PC_ETCFLAG_CHAT_MODE //Ƶ - ,PC_ETCFLAG_CHAT_TELL //Ƶ - ,PC_ETCFLAG_CHAT_FM //Ƶ + PC_ETCFLAG_CHAT_MODE //队伍频道开关 + ,PC_ETCFLAG_CHAT_TELL //密语频道开关 + ,PC_ETCFLAG_CHAT_FM //家族频道开关 #ifdef _CHAR_PROFESSION - ,PC_ETCFLAG_CHAT_OCC //ְҵƵ + ,PC_ETCFLAG_CHAT_OCC //职业频道开关 #endif #ifdef _CHATROOMPROTOCOL - ,PC_ETCFLAG_CHAT_CHAT //ҿ + ,PC_ETCFLAG_CHAT_CHAT //聊天室开关 #endif #ifdef _CHANNEL_WORLD - ,PC_ETCFLAG_CHAT_WORLD //Ƶ + ,PC_ETCFLAG_CHAT_WORLD //世界频道开关 #endif #ifdef _CHANNEL_ALL_SERV - ,PC_ETCFLAG_ALL_SERV //Ƶ + ,PC_ETCFLAG_ALL_SERV //星球频道开关 #endif }; char ChannelType[] = {'T','M','F', @@ -4608,7 +4608,7 @@ void SaveChatData(char *msg,char KindOfChannel,bool bCloseFile){ #endif }; - // Իѡ + // 储存对话内容选项开启 if ((pc.etcFlag & PC_ETCFLAG_CHAT_SAVE) && !bCloseFile){ time(&longTime); localtime_s(&nowTime,&longTime); @@ -4656,26 +4656,26 @@ void lssproto_STREET_VENDOR_recv(int fd,char *data) getStringToken(data,'|',1,sizeof(szMessage) - 1,szMessage); switch (szMessage[0]){ - // °̯ + // 开新摆摊介面 case 'O': sStreetVendorBtn = 1; pc.iOnStreetVendor = 1; break; - // 趨̯ + // 设定摆摊内容 case 'S': sStreetVendorBtn = 3; StreetVendorWndfunc(false,data); break; - // server + // server送来的卖方贩卖内容 case 'B': sStreetVendorBuyBtn = 1; StreetVendorBuyWndfunc(data); break; - // server رӴ + // server 送来关闭视窗 case 'C': sStreetVendorBuyBtn = 0; break; - // server ĵʷϸ + // server 送来的单笔贩卖物详细资料 case 'D': StreetVendorBuyWndfunc(data); break; @@ -4684,10 +4684,10 @@ void lssproto_STREET_VENDOR_recv(int fd,char *data) #endif -#ifdef _STONDEBUG_ // ֶͳ Robin +#ifdef _STONDEBUG_ // 手动送出封包功能 Robin /* - ()`d`(ֵ)`s`(ִ)`...... - : 35`d`100`d`100`s`P|Hellp~~`d`1`d`1 + (封包编号)`d`(数值资料)`s`(字串资料)`...... + 例: 35`d`100`d`100`s`P|Hellp~~`d`1`d`1 */ void sendDataToServer( char* data) { @@ -4701,12 +4701,12 @@ void sendDataToServer( char* data) int datakind; int i =1; - strcat_s( showbuf, "ֶͳ "); + strcat_s( showbuf, "手动送出 "); getStringToken(data, '`', i++, sizeof(token), token ); if ( token[0] == NULL ) return; datakind = atoi( token); - sprintf_s( showsubbuf, "=%d ", datakind); + sprintf_s( showsubbuf, "封包=%d ", datakind); strcat_s( showbuf, showsubbuf); while(1) { @@ -4718,12 +4718,12 @@ void sendDataToServer( char* data) if ( !strcmp( token2, "d") ) { checksum += util_mkint( sendbuf, atoi(token3)); - sprintf_s( showsubbuf, "=%d ", atoi(token3)); + sprintf_s( showsubbuf, "数=%d ", atoi(token3)); strcat_s( showbuf, showsubbuf); } else if ( !strcmp( token2, "s") ) { checksum += util_mkstring( sendbuf, token3); - sprintf_s( showsubbuf, "=%s ", token3); + sprintf_s( showsubbuf, "字=%s ", token3); strcat_s( showbuf, showsubbuf); } else { @@ -4740,18 +4740,18 @@ void sendDataToServer( char* data) } #endif #ifdef _FAMILYBADGE_ -extern int []; -extern int ¸; -int ¼۸; +extern int 徽章数据[]; +extern int 徽章个数; +int 徽章价格; void lssproto_FamilyBadge_recv(char *data) { - ¸=0; + 徽章个数=0; int i=2; - ¼۸ = getIntegerToken(data,'|',1); + 徽章价格 = getIntegerToken(data,'|',1); for(i;i<201;i++){ - [i-2] = getIntegerToken(data,'|',i); - if([i-2]==-1) break; - ¸++; + 徽章数据[i-2] = getIntegerToken(data,'|',i); + if(徽章数据[i-2]==-1) break; + 徽章个数++; } } #endif @@ -4759,10 +4759,10 @@ void lssproto_FamilyBadge_recv(char *data) #ifdef _JOBDAILY extern JOBDAILY jobdaily[MAXMISSION]; -extern int JobdailyGetMax; //Ƿнյ +extern int JobdailyGetMax; //是否有接收到资料 void lssproto_JOBDAILY_recv(int fd,char *data) { - // + //解读资料 int i=1,j=1; char getdata[250]; char perdata[200]; @@ -4778,7 +4778,7 @@ void lssproto_JOBDAILY_recv(int fd,char *data) case 1: jobdaily[i-1].JobId = atoi(perdata);break; case 2: strcpy(jobdaily[i-1].explain,perdata); break; case 3: strcpy(jobdaily[i-1].state,perdata); break; - default: StockChatBufferLine("ÿڲд",FONT_PAL_RED); break; + default: StockChatBufferLine("每笔资料内参数有错误",FONT_PAL_RED); break; } perdata[0] = '\0'; j++; @@ -4803,19 +4803,19 @@ void lssproto_TEACHER_SYSTEM_recv(int fd,char *data) getStringToken(data,'|',1,sizeof(szMessage) - 1,szMessage); switch (szMessage[0]){ - // ʾ˵ + // 显示说明 case 'M':sTeacherSystemBtn = 1;break; - // ѯǷҪԷĵʦ + // 询问是否要对方当你的导师 case 'C': sTeacherSystemBtn = 2; TeacherSystemWndfunc(0,data); break; - // һ,ѯҪ˭ʦ + // 超过一人,询问要找谁当导师 case 'A': sTeacherSystemBtn = 3; TeacherSystemWndfunc(1,data); break; - // ʾʦ + // 显示导师资料 case 'V': sTeacherSystemBtn = 4; TeacherSystemWndfunc(2,data); @@ -4878,7 +4878,7 @@ void lssproto_Firework_recv(int fd, int nCharaindex, int nType, int nActionNum) #endif #ifdef _MOVE_SCREEN -// client ƶӫĻ +// client 移动荧幕 void lssproto_MoveScreen_recv(int fd, BOOL bMoveScreenMode, int iXY) { pc.bMoveScreenMode = bMoveScreenMode; @@ -4910,58 +4910,58 @@ void lssproto_TheaterData_recv(int fd, char *pData) pc.iTheaterMode = iData; if (iData == 0) { - pc.bCanUseMouse = FALSE; // ,ʹûƶ + pc.bCanUseMouse = FALSE; // 表演完毕,可以正常使用滑鼠移动 pc.iSceneryNumber = -1; } else { - pc.bCanUseMouse = TRUE; // + pc.bCanUseMouse = TRUE; // 表演中 pc.iSceneryNumber = 26558; } break; - case E_DATA_TYPE_MOVE: // ƶ + case E_DATA_TYPE_MOVE: // 移动 camMapToGamen((float)(HIWORD(iData) * GRID_SIZE), float(LOWORD(iData) * GRID_SIZE), &fX, &fY); MouseNowPoint((int)(fX + 0.5f), (int)(fY + 0.5f)); MouseCrickLeftDownPoint((int)(fX + 0.5f), (int)(fY + 0.5f)); MouseCrickLeftUpPoint((int)(fX + 0.5f), (int)(fY + 0.5f)); - pc.bCanUseMouse = FALSE; // Ϊ FALSE,Ȼﲻƶ + pc.bCanUseMouse = FALSE; // 设为 FALSE,不然人物不能移动 mouse.level = DISP_PRIO_TILE; closeCharActionAnimeChange(); break; - case E_DATA_TYPE_DIR: // + case E_DATA_TYPE_DIR: // 方向 setPcDir(iData); szMessage[0] = cnvServDir(iData, 1 ); szMessage[1] = '\0'; walkSendForServer(nowGx, nowGy, szMessage); break; - case E_DATA_TYPE_SCENERY: // + case E_DATA_TYPE_SCENERY: // 布景 pc.iSceneryNumber = iData; break; - case E_DATA_TYPE_BGM: // + case E_DATA_TYPE_BGM: // 背景音乐 play_bgm(iData); break; - case E_THEATER_SEND_DATA_DISPLAY_SCORE: // ʾ + case E_THEATER_SEND_DATA_DISPLAY_SCORE: // 显示分数 pc.iTheaterMode |= 0x00000004; - pc.iTheaterMode |= iData << 16; // iData Ƿֵ + pc.iTheaterMode |= iData << 16; // iData 是分数值 break; - case E_DATA_TYPE_NPC: // ʧʱNPC - // iType Ϊ E_DATA_TYPE_NPC ʱȡ iData NPC + case E_DATA_TYPE_NPC: // 产生或是消失或更改临时NPC + // 当 iType 为 E_DATA_TYPE_NPC 时取出来的 iData 是 NPC 编号 if (iData >= 0 && iData < 5) { int iSprNum, iGX, iGY, iAction, iDir; - getStringToken(pData, '|', 3, sizeof(szMessage) - 1, szMessage); // ȡָ + getStringToken(pData, '|', 3, sizeof(szMessage) - 1, szMessage); // 取出指令 if (atoi(szMessage) == 1) { - getStringToken(pData, '|', 4, sizeof(szMessage) - 1, szMessage); // ȡͼ + getStringToken(pData, '|', 4, sizeof(szMessage) - 1, szMessage); // 取出图号 iSprNum = atoi(szMessage); - getStringToken(pData, '|', 5, sizeof(szMessage) - 1, szMessage); // ȡ + getStringToken(pData, '|', 5, sizeof(szMessage) - 1, szMessage); // 取出座标 iGX = atoi(szMessage); - getStringToken(pData, '|', 6, sizeof(szMessage) - 1, szMessage); // ȡ + getStringToken(pData, '|', 6, sizeof(szMessage) - 1, szMessage); // 取出座标 iGY = atoi(szMessage); - getStringToken(pData, '|', 7, sizeof(szMessage) - 1, szMessage); // ȡ + getStringToken(pData, '|', 7, sizeof(szMessage) - 1, szMessage); // 取出动作 iAction = atoi(szMessage); - getStringToken(pData, '|', 8, sizeof(szMessage) - 1, szMessage); // ȡ + getStringToken(pData, '|', 8, sizeof(szMessage) - 1, szMessage); // 取出方向 iDir = atoi(szMessage); camMapToGamen((float)iGX * GRID_SIZE, (float)iGY * GRID_SIZE, &fX, &fY); if (pc.pActNPC[iData] == NULL) @@ -5042,7 +5042,7 @@ void lssproto_MagiccardAction_recv(int fd, char *data) getStringToken(data, '|', 4, sizeof( token ) - 1, token ); dir = (atoi( token )+3)%8; getStringToken(data, '|', 5, sizeof( token ) - 1, token ); - actionNum = atoi( token ); //ͼ + actionNum = atoi( token ); //图号 getStringToken(data, '|', 6, sizeof( token ) - 1, token ); action = atoi( token ); getStringToken(data, '|', 7, sizeof( token ) - 1, token ); @@ -5070,13 +5070,13 @@ void lssproto_DancemanOption_recv( int fd , int option ) { switch( option ) { - case 0: //رӴ + case 0: //关闭视窗 wnCloseFlag = 1; break; - case 1: //һģʽ + case 1: //开启动一动模式 pc.iDanceMode = 1; break; - case 2: //رնһģʽ + case 2: //关闭动一动模式 pc.iDanceMode = 0; break; } @@ -5097,14 +5097,14 @@ void lssproto_hundredkill_recv( int fd, int flag ){ void lssproto_DENGON_recv(char *data, int colors, int nums) { - extern int ; - extern char [512]; - extern int ɫ; - extern int ʱ; - ʱ=0; - sprintf(, "%s", data); - ɫ = colors; - = nums; + extern int 公告数量; + extern char 公告内容[512]; + extern int 公告颜色; + extern int 公告时间; + 公告时间=0; + sprintf(公告内容, "%s", data); + 公告颜色 = colors; + 公告数量 = nums; } #endif @@ -5113,7 +5113,7 @@ void lssproto_DENGON_recv(char *data, int colors, int nums) void lssproto_PetSkins_recv(char *data) { - char *str = "λ|ǰʹƤͼ|Ƥ|Ƥͼ|˵|Ƥͼ|˵|..."; + char *str = "宠物栏位置|当前使用皮肤图号|总皮肤数|皮肤图号|说明|皮肤图号|说明|..."; } #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/system/onlinegm.cpp b/石器时代8.5客户端最新源代码/石器源码/system/onlinegm.cpp index afeadfb..910d305 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/onlinegm.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/onlinegm.cpp @@ -1,4 +1,4 @@ -//cyg ʵһϵͳ (ϻرϵͳ) +//cyg 实作第一个系统 (线上回报系统) #include"../systeminc/version.h" #include"../systeminc/system.h" #include"../systeminc/loadrealbin.h" @@ -22,112 +22,112 @@ #include"../systeminc/onlinegm.h" char ProblemClass[DEF_CLASS_TOTAL][16]={ - "쳣", - "һ" + "异常问题", + "一般问题" }; char ProblemC1[DEF_C1_TOTAL][30]={ - "˿ʯ", - "ҳָ", - "ͷƷ", - "װ", - "Աʺ", - "Ʒ", - "Ʒ", - "Ϸ򼰴ֵ", - "", - "/ŷ/ܱƷ", - "//·״Ӧ", - "Ϸѯ", - "ǷͶ", - "" + "卡人卡石", + "网页指正", + "客服产品活动", + "安装与更新", + "会员帐号", + "产品序号", + "赠品序号", + "游戏点数卡购买及储值", + "包月相关", + "超级/炫风来吉卡/周边商品", + "服务器/连线/网路状况反应", + "游戏操作询问", + "非法检举投拆", + "其他" }; char ProblemC1Help[DEF_C1_TOTAL][60]={ - "ע쳣ʺšꡢص㡢ѶϢϵ", - "ṩ", - "ȲѯϷרվԼͷ", - "뾡ĵ䱸", - "״", - "ṩ", - "ṩ", - "Ϸֿ۵㲻ѡΪ(Ϸ۵)", + "请注明异常帐号、座标、地点、错误讯息、星系", + "请提供相关连结", + "请先查询游戏专属网站以及过往客服公告", + "请尽量留下您的电脑配备", + "请详述遇到的状况", + "请提供完整的序号", + "请提供完整的序号", + "登入游戏发现扣点不正常,请改选择问题类别为(游戏扣点问题)", "", - "Ȳѯרҳػ", + "请先查询专属网页相关活动", "", - "ȲѯҳFAQ", + "请先查询网页FAQ", "", "" }; char ProblemC2[DEF_C2_TOTAL][16]={ - "쳣", - "쳣", - "쳣", - "", - "Ƶ", - "", - "", - "ףǣӿ۵", - "", - "Ա", - "ϵ", + "人物异常", + "道具异常", + "宠物异常", + "交易问题", + "疑似盗用", + "家族问题", + "宠物&道具问题", + "WGS扣点问题", + "其他", + "会员升级", + "星系移民", }; -//쳣 +//人物异常 char ProblemC2_1[3][16]={ - "ʧ", - "쳣", - "" + "人物消失", + "人物资料异常", + "其他" }; -//쳣 +//道具异常 char ProblemC2_2[3][16]={ - "ʧ", - "", - "߹쳣" + "道具消失", + "其他", + "道具功能异常" }; -//쳣 +//宠物异常 char ProblemC2_3[5][16]={ - "ʧ", - "ʼ", - "", - "ﵰ", - "" + "宠物消失", + "宠物邮件问题", + "溜宠问题", + "宠物蛋问题", + "其他" }; -// +//交易问题 char ProblemC2_4[2][16]={ - "׺ʧ", - "" + "交易后消失", + "其他" }; -//Ƶ +//疑似盗用 char ProblemC2_5[2][16]={ - "Ƶòѯ", - "" + "疑似盗用查询", + "其他" }; -// +//家族问题 char ProblemC2_6[3][16]={ - "屻ɢ", - "쳣", - "" + "家族被解散", + "声望异常", + "其他" }; -//ϵ +//星系移民 char ProblemC2_7[3][16]={ - "ʧ", - "ʧ", - "" + "道具消失", + "人物消失", + "其他" }; -//HELPʹõҳϽṹ +//HELP中使用到的页资料结构 typedef struct PAGE{ - short desc_index; //˵ṹʼ(desc_indexΪseg_indexhelp_indexȡDESCеindex) - int desc_num;//BYTE desc_num; //˵Ľṹ + short desc_index; //说明结构开始的索引号(此desc_index为根据seg_index在help_index取得DESC的阵列的index) + int desc_num;//BYTE desc_num; //说明的结构数 }*LPPAGE; -//ע -//HELPʹõ˵Ͻṹ +//注意事项 +//HELP中使用到说明的文字资料结构 typedef struct DESC{ - BYTE color; //ɫ - char description[60]; //˵ + BYTE color; //颜色 + char description[60]; //说明文字 }*LPDESC; -// ṹ cyg +// 问题参数储存结构 cyg typedef struct{ char no[20]; char state[40]; @@ -145,68 +145,68 @@ typedef struct{ DESC Prohelp_desc1[]={ - //ɫ˵ //fix - { 4 , "1. ʹ˵"}, - { 0 , " Ϊ20ʣѴȽⵥɾ"}, - { 0 , " ҳ쳣ڡ"}, - { 0 , " ⵥʾϷ"}, - { 4 , "2. ﵰ쳣"}, - { 0 , " 2003/12/31շʱﵰ趨ijʽ"}, - { 0 , " ͷĽҳﵰ쳣"}, - { 0 , " ijﵰ趨£"}, - { 0 , " ι趨һһСʱ"}, - { 0 , " ߻ﵰڳУٴε"}, - { 0 , " ¼ιʱ䡣"}, - { 4 , "3. ʧ"}, - { 0 , " Ϸʽ趨ͬһŷڣſڵ[Ա]"}, + //颜色与说明 //fix + { 4 , "1. 使用说明"}, + { 0 , " 线上留单上限为20笔,若已达上限须先将旧有问题单删除,才能"}, + { 0 , " 继续留单或至网页留单。异常问题须输入正常日期与错误日期。"}, + { 0 , " ※ 最新问题单会显示在最上方。"}, + { 4 , "2. 宠物蛋异常"}, + { 0 , " 于2003/12/31日服务器更新时,己放置修正宠物蛋设定的程式"}, + { 0 , " ,即日起客服中心将不再受理玩家宠物蛋能力异常的情况,修正"}, + { 0 , " 后的宠物蛋设定如下:"}, + { 0 , " ※ 人物在线上喂养设定和以往一样,超过一小时会有能力下"}, + { 0 , " 降的情况。人物离线或宠物蛋放置在宠店中,再次登入会"}, + { 0 , " 重新计算喂养的时间。"}, + { 4 , "3. 溜宠消失"}, + { 0 , " 游戏程式设定己可在同一颗服务器内,与萨村门口的[工程人员]"}, }; DESC Prohelp_desc2[]={ - { 0 , " ȡأ޷ȡṩϳơȼԭ"}, - { 0 , " ʺšڡʧڡ"}, - { 4 , "4. ʧ"}, - { 0 , " Ϸʽ趨ͬһŷڣſڵ[Ա]"}, - { 0 , " ȡأ޷ȡṩϳơȼԭ"}, - { 0 , " ʺšڡʧڡ"}, - //{ 4 , "4. ս-޷"}, - //{ 0 , " ҳ϶ȵ20£սоͻߡΪԭϷ趨"}, - //{ 0 , " ͷIJظ"}, - { 4 , "5. ׺Ʒʧ-ṩ"}, - { 0 , " ׷ʺŻơڡ׵ijԼȼ"}, - { 0 , " Լ"}, - { 4 , "6. NPC-޷"}, - { 0 , " ΪԭϷ趨ͷIJظߡ"}, - { 4 , "7. ߶ϵͳ-޷"}, - { 0 , " ΪԭϷ趨ͷIJظߣҿ"}, + { 0 , " 取回;如无法领取请提供以下资料宠物名称、等级、宠物原持有"}, + { 0 , " 帐号、宠物持有日期、宠物消失日期。"}, + { 4 , "4. 宠邮消失"}, + { 0 , " 游戏程式设定己可在同一颗服务器内,与萨村门口的[工程人员]"}, + { 0 , " 取回;如无法领取请提供以下资料宠物名称、等级、宠物原持有"}, + { 0 , " 帐号、宠物持有日期、宠物消失日期。"}, + //{ 4 , "4. 宠物战斗脱逃-无法处理"}, + //{ 0 , " 宠物的忠诚度低于20以下,在战斗中就会跑走。此为原游戏设定"}, + //{ 0 , " ,客服中心不受理回覆宠物。"}, + { 4 , "5. 交易后物品消失-请提供以下资料"}, + { 0 , " 交易方的帐号或人物名称、交易日期、交易的宠物名称以及等级"}, + { 0 , " 、道具名称以及数量。"}, + { 4 , "6. 宠物或道具卖给NPC-无法处理"}, + { 0 , " 此为原游戏设定,客服中心不受理回覆宠物或道具。"}, + { 4 , "7. 宠物或道具丢出后被系统清除-无法处理"}, + { 0 , " 此为原游戏设定,客服中心不受理回覆宠物或道具;玩家可在游"}, }; DESC Prohelp_desc3[]={ - { 0 , " Ϸ͸׽תơ"}, - { 4 , "8. 쳣-ṩ"}, - { 0 , " 쳣峤ʺעơš쳣"}, - { 0 , " ״Ϊ㣬ϵͳԶɢļ壬ͬ"}, - { 0 , " дͷ޷"}, - { 0 , " ڼɢԱδ߶Զ˳趨ϵ"}, - { 0 , " ͳÿ᲻ʱɨ衢⡣"}, - { 0 , " ĿǰԱ趨˳7޷ټ塣"}, - { 4 , "9. DP쳣-޷ "}, - { 0 , " DPϷвӰ죬޿Ŵ˹ܹҲѯ"}, - { 4 , "10. Ƭʧ-޷"}, - { 0 , " ƬĶӦһԶ(һӵжλҵ"}, - { 0 , " Ƭ)һҲ޷ʹȷ޿Ŵ"}, + { 0 , " 戏中透过交易介面转移。"}, + { 4 , "8. 家族异常-请提供以下资料"}, + { 0 , " 家族异常请族长本人帐号留单,注明家族名称、家族编号、异常"}, + { 0 , " 状况。如因为家族人数不足,系统自动解散的家族,连同家族银"}, + { 0 , " 行存款客服中心无法受理。"}, + { 0 , " ※ 对于家族解散与成员因过久未上线而自动退出家族设定,系"}, + { 0 , " 统每天会不定时的扫描、侦测。"}, + { 0 , " ※ 目前家族成员设定,在退出后7日内无法再加入家族。"}, + { 4 , "9. 人物DP异常-无法处理 "}, + { 0 , " 由于DP对于游戏中并不会有影响,并无开放此功能供玩家查询。"}, + { 4 , "10. 人物名片消失-无法处理"}, + { 0 , " 由于名片的对应会有一对多的情况(一个人物拥有多位玩家的名"}, + { 0 , " 片),若单方面仅处理一名玩家并无法使资料正确,并无开放此"}, }; DESC Prohelp_desc4[]={ - { 0 , " ܹҲѯ"}, - { 4 , "11. &թƭ-ṩ"}, - { 0 , " ơȼԼơƵ Ա"}, - { 0 , " ɲѯɾ¼ҲҪԱظ"}, - { 0 , " (ûгԼʯ) Աṩ֮ߡ"}, - { 0 , " вѯĶ"}, - { 4 , "12. ȸת趨 2003/06/21"}, - { 0 , " ֮ȸֵתСɳռ䣬ԭ"}, - { 0 , " ֵݲһάתǰߵ㣬ڴҪתȸʱ"}, - { 0 , " ӿǡͷIJظתǰȸ֮"}, + { 0 , " 功能供玩家查询。"}, + { 4 , "11. 盗用&诈骗案件-请提供以下资料"}, + { 0 , " 宠物名称、等级以及道具名称、数量、疑似盗用日期 工程人员"}, + { 0 , " 可查询人物删除纪录,需请玩家不要创立新人物以便回覆空人物"}, + { 0 , " (没有宠物、道具以及石币)。 工程人员仅以玩家提供之道具、"}, + { 0 , " 宠物进行查询的动作。"}, + { 4 , "12. 朱雀转生设定 2003/06/21"}, + { 0 , " 活动赠送之朱雀能力值,于转生后仍有小幅成长空间,但原能力"}, + { 0 , " 值部份不一定能维持转生前高点,在此提醒玩家要转生朱雀时,"}, + { 0 , " 请多加考虑。客服中心不受理回覆转生前朱雀之留单案件。"}, }; //DESC Prohelp_desc5[]={ @@ -229,69 +229,69 @@ PAGE ProHelp_page[]={ }; -INPUT_HISTORY InputHistory ; // ÿһеݣ +INPUT_HISTORY InputHistory ; // 用来记忆每一行的内容,往后才能拿来索引 -STR_BUFFER SubBuffer ; // ÿһдbuf +STR_BUFFER SubBuffer ; // 每一行储存的buf -#ifdef __ONLINEGM // ȫص +#ifdef __ONLINEGM // 全关掉 -char DataBuffer[500]; // ϺõرһIJ -char InputBuffer[8050]; // ҵ -char ContentBuf[8050]; // Ϻõ +char DataBuffer[500]; // 储存组合好的问题回报一连串的参数 +char InputBuffer[8050]; // 储存玩家的输入内容 +char ContentBuf[8050]; // 储存组合好的问题内容 -PRODATA Prodata[100]; // Խ100 +PRODATA Prodata[100]; // 假设玩家最多可以建100笔 int PutKey,PushKey ; -int ProNoSelect; // ѡĵ -int HistorySelect; // ϴѡѯĵ -BOOL ProNoSelectFlag; // ûѡŵ -int ProNoIndex; // ⵥ -int ProNoValue; // ʾмⵥ +int ProNoSelect; // 现在正选择的单号索引 +int HistorySelect; // 上次选择查询的单号索引 +BOOL ProNoSelectFlag; // 有没有选单号的旗标 +int ProNoIndex; // 用来秀问题单号 +int ProNoValue; // 表示有几笔问题单号 BOOL TitleFlag ; -int SegmentIndex ; // һһݵ -int SegmentTotal ; // ¼ܹм -char SegmentBuf[2][2500];// ¼ijʵŵݺͿͷӦ +int SegmentIndex ; // 一段一段内容的索引 +int SegmentTotal ; // 纪录总共有几段 +char SegmentBuf[2][2500];// 纪录某笔单号的内容和客服回应 int okY,okM,okD,okH,wrongY,wrongM,wrongD,wrongH; -int ClassIndex , ClassIndex1 , ClassIndex2 ; // +int ClassIndex , ClassIndex1 , ClassIndex2 ; // 问题类别索引 -BOOL DeleteBtnFlag; //ҪѡijŲɾ +BOOL DeleteBtnFlag; //要有选到某单号才能删除的旗标 -//OnlineGm Log ר Begin +//OnlineGm 的Log 专用区 Begin #ifdef _STONDEBUG_ char inlogstr[512]; #define filename "onlinegm.log" #endif -//OnlineGm Log ר End +//OnlineGm 的Log 专用区 End -//߻ϵͳ Server IP : 10.1.0.17 +//线回系统 测试Server IP : 10.1.0.17 BOOL QueryOnlineGmIP(char HostName[]); -char *OnlineGmIP; //ʹdomain name -//char OnlineGmIP[20]; //ʹֱip +char *OnlineGmIP; //使用domain name +//char OnlineGmIP[20]; //使用直接ip #define SMSDomainName "ingame.wayi.com.tw"//"sms.hwaei.com.tw" -int ResultCode; // +int ResultCode; // 传输产生的侦错码 static char *pContent=NULL; BOOL ResetFlag = TRUE; BOOL DirFlag = TRUE; DWORD LastTime = 0; -int iReturnNo; //¼شĵ +int iReturnNo; //纪录回传的单号 -int TotalAddValue; //¼Ŀǰ +int TotalAddValue; //纪录玩家目前留单总数 -int ProblemType ; //¼ͼʱⵥ һ0쳣1 -int SendType ; //¼͸serverǰ +int ProblemType ; //纪录按传送键时问题单的类型 一般0异常1 +int SendType ; //纪录传送给server前的问题类型 -unsigned int ichecklooptime = 0; //߻Ȧʱ +unsigned int ichecklooptime = 0; //检查连线回圈时间 //************************************* -// ʼ +// 初始资料 //************************************* void InitOnlineGm( void ) { @@ -301,7 +301,7 @@ void InitOnlineGm( void ) PushKey = 0; ProNoSelectFlag = FALSE; ProNoSelect = 0; - HistorySelect = 5000; // + HistorySelect = 5000; //无意义 区别用 ProNoIndex = 0; ProNoValue = 0; SegmentIndex =0; @@ -343,9 +343,9 @@ void InitOnlineGm( void ) } //************************************************ -//ʽ : Log(LocalĿ¼)רúʽ -//شֵ : None -// ע : ֻDebug modeӲдlog!! +//函式 : 产生Log档(于Local端目录下)的专用函式 +//回传值 : None +//附 注 : 只有Debug mode才在硬碟写入log档!! //************************************************ #ifdef _STONDEBUG_ void WriteInLog( char cData[], char cFile[]) @@ -370,20 +370,20 @@ void WriteInLog( char cData[], char cFile[]) #endif //************************************************ -//ʽһ : ʽASP乵ͨרúʽ -//شֵ : 0 --- & رɹ -// 1 --- رʧ -// 2 --- ֻ(ʱ) -// 3 --- ֻѶϢ() -// 4 --- ·˴ -// 5 --- WGS(ͨ)Ѳ!!(С) -// 6 --- ʱ(DNSʧ) -// 7 --- ASPش +//函式一 : 处理主程式与ASP间沟通的专用函式 +//回传值 : 0 --- 处理完毕 & 问题回报成功 +// 1 --- 问题回报发送失败 +// 2 --- 手机号码参数错误(时间或类别错误) +// 3 --- 手机讯息参数错误(过长) +// 4 --- 网路端错误 +// 5 --- WGS点数(或通数)已不足!!(小于五点) +// 6 --- 连线逾时(或DNS失败) +// 7 --- ASP回传错误 //************************************************ -// pid:id ppw:password pdb:ڲ pinput: +// pid:id ppw:password pdb:内部资料 pinput:玩家输入的内容 int SendProblemMsg(char pid[16], char ppw[16], char pdb[] , char pinput[]) { - char returndata[20] ; //¼شִ + char returndata[20] ; //纪录回传的字串 int nRet,wait=1; if(!QueryOnlineGmIP(SMSDomainName)) return 6; @@ -448,15 +448,15 @@ int SendProblemMsg(char pid[16], char ppw[16], char pdb[] , char pinput[]) cnt = 0; char buf[3000]; if(ProblemType==0){ - SendType=0; //һ + SendType=0; //一般问题 sprintf_s(buf,"GET //normal_check.asp?wgsid=%s&gamepwd=%s&game=1%s%s",pid,ppw,pdb,pinput); }else{ - SendType=1; //쳣 + SendType=1; //异常问题 sprintf_s(buf,"GET //handle_check.asp?wgsid=%s&gamepwd=%s&game=1%s%s",pid,ppw,pdb,pinput); } strcat_s(buf," HTTP/1.1\r\nAccept: text/*\r\nUser-Agent: StoneAge\r\n"); sprintf_s(buf,"%sHost: %s\r\n\r\n",buf,OnlineGmIP); -#ifdef _STONDEBUG_ //дonlinegm.log +#ifdef _STONDEBUG_ //写入onlinegm.log WriteInLog( buf , filename); #endif len = lstrlen(buf); @@ -515,12 +515,12 @@ int SendProblemMsg(char pid[16], char ppw[16], char pdb[] , char pinput[]) buf[cnt+ret] = 0; result = strstr( buf, "\r\n\r\n") + 4; getStringToken(result ,',',1,sizeof(returndata)-1,returndata); - if(atoi(returndata)!=1){ //شʾ1ʾok + if(atoi(returndata)!=1){ //如果回传负数表示有误,1表示ok closesocket(hSock); return atoi(returndata); }else{ getStringToken(result ,':',2,sizeof(returndata)-1,returndata); - iReturnNo = atoi(returndata); // + iReturnNo = atoi(returndata); //读出单号 } if(result) break; cnt += ret; @@ -542,11 +542,11 @@ int SendProblemMsg(char pid[16], char ppw[16], char pdb[] , char pinput[]) } //************************************************ -// Ҫɾŵʽ -// شֵ :0 --- & ɾɹ -// 3 --- ݴ -// 4 --- ·˴ -// 6 --- ʱ(DNSʧ) +// 传送要删除单号的主程式 +// 回传值 :0 --- 处理完毕 & 问题删除成功 +// 3 --- 参数传递错误 +// 4 --- 网路端错误 +// 6 --- 连线逾时(或DNS失败) //************************************************ int SendDeleteMsg(char pid[16], char ppw[16] , char pno[16] ) { @@ -660,11 +660,11 @@ int SendDeleteMsg(char pid[16], char ppw[16] , char pno[16] ) } //************************************************ -// ServerҪҵⵥ -// شֵ 0: ȷ -// 2: κⵥ -// 4: ·˴ -// 6: ʱ(DNSʧ) +// 向Server要玩家的问题单所有内容 +// 回传值 0: 正确无误 +// 2: 玩家无任何问题单 +// 4: 网路端错误 +// 6: 连线逾时(或DNS失败) //************************************************ int SendDirMsg(char pid[16], char ppw[16] ) { @@ -672,7 +672,7 @@ int SendDirMsg(char pid[16], char ppw[16] ) int nRet,i=1; int wait=1,j=1; - char alldata[65536],getdata[6000],perdata[3000],statedata[100]; //ȫ,ÿ,ÿ,״̬ + char alldata[65536],getdata[6000],perdata[3000],statedata[100]; //全部的,每笔,每栏,处理状态 char returndata[20] ; BOOL Okflag = FALSE , Firstflag = TRUE; #ifdef _STONDEBUG_ @@ -776,7 +776,7 @@ int SendDirMsg(char pid[16], char ppw[16] ) } } getStringToken(result ,',',1,sizeof(returndata)-1,returndata); - if(atoi(returndata)<0){ //شʾ󣬴0ӴͬʱҲʾok + if(atoi(returndata)<0){ //如果回传负数表示有误,大于0数子代表单子数量,同时也表示ok closesocket(hSock); return atoi(returndata); }else{ @@ -796,12 +796,12 @@ int SendDirMsg(char pid[16], char ppw[16] ) closesocket(hSock); ProNoValue = 0; ProNoSelectFlag = FALSE; -#ifdef _STONDEBUG_ //дonlinegm.log +#ifdef _STONDEBUG_ //写入onlinegm.log WriteInLog( alldata , filename); #endif perdata[0] = '\0'; getdata[0] = '\0'; - //sprintf_s(alldata,"21||*|*|*|*|18|˿ʯ|װάллŬ~л֧밮ҲٴεԤף޸죡˳⣡|װάллŬ~л֧밮ҲٴεԤף޸죡˳⣡|&#"); + //sprintf_s(alldata,"21|测试|*|*|*|*|18|卡人卡石|亲爱的维护部阿俊您好谢谢您的用心与努力~感谢您的支持与爱护!也再次的预祝您修改愉快!顺心如意!|亲爱的维护部阿俊您好谢谢您的用心与努力~感谢您的支持与爱护!也再次的预祝您修改愉快!顺心如意!|&#"); while(getStringToken( alldata,'&',i,sizeof(getdata)-1,getdata)!=1){ while(getStringToken(getdata,'|',j,sizeof(perdata)-1,perdata)!=1){ if( strcmp( perdata , "*")){ @@ -840,7 +840,7 @@ int SendDirMsg(char pid[16], char ppw[16] ) return 4 ; } //************************************************ -// ѯⵥ +// 查询问题单的内容 //************************************************ void vReadContent( int pno ) { @@ -852,7 +852,7 @@ void vReadContent( int pno ) ClassIndex=Prodata[pno].class0 - 18; - if(ClassIndex == 0 ){ //쳣 + if(ClassIndex == 0 ){ //异常问题 while(getStringToken(Prodata[pno].okdate,'/',i,sizeof(date)-1,date)!=1){ if( i==1 ) okY = atoi(date); else if( i==2) okM = atoi(date); @@ -880,13 +880,13 @@ void vReadContent( int pno ) sprintf_s(classbuf1,"%s",data); } - if(ClassIndex){ // һ + if(ClassIndex){ // 一般问题 for(i=0;i=ProNoValue) break ; if (ProNoIndex+i==ProNoSelect && ProNoSelectFlag == TRUE){ @@ -1010,7 +1010,7 @@ void ShowProblemNo( int x, int y, int Key ) fontId[i] = StockFontBuffer( x + 20 , y+7+(i*20) , FONT_PRIO_FRONT, 0 , buf, 2 ); } if(Prodata[ProNoIndex+i].delflag == TRUE){ - sprintf_s(buf,"ɾ"); + sprintf_s(buf,"已删除"); StockFontBuffer( x + 70 , y+7+(i*20) , FONT_PRIO_FRONT, 4 , buf, 2 ); } } @@ -1018,7 +1018,7 @@ void ShowProblemNo( int x, int y, int Key ) Keyid = selFontId( fontId, sizeof( fontId )/sizeof( int ) ); if ( 0 <= Keyid && Keyid < 5 ){ if (ProNoIndex + Keyid < ProNoValue){ - //ѯijȵŵ + //查询某比单号的内容 ProNoSelectFlag = TRUE; ProNoSelect = ProNoIndex + Keyid; if ( ProNoSelect != HistorySelect ){ @@ -1033,12 +1033,12 @@ void ShowProblemNo( int x, int y, int Key ) } } - if( SegmentTotal > SegmentIndex ){ // - InputHistory.addNo =0; // Բü + if( SegmentTotal > SegmentIndex ){ // 秀出内容 + InputHistory.addNo =0; // 非玩家输入所以不用加 GetKeyInputFocus(&SubBuffer); if( SegmentIndex %2 == 0 ){ if(TitleFlag==TRUE){ - StrToNowStrBuffer1("ǰݣ"); + StrToNowStrBuffer1("前次问题内容:"); for ( k=0;k<60+10;k++ ) StrToNowStrBuffer(" "); InputHistory.color[InputHistory.newNo]=TRUE; @@ -1064,7 +1064,7 @@ void ShowProblemNo( int x, int y, int Key ) }else{ StrToNowStrBuffer(pContent); pContent+=i ; - for ( k=0;k<(70-i);k++ ) //cyg ո + for ( k=0;k<(70-i);k++ ) //cyg 补空格 StrToNowStrBuffer(" "); } if(*pContent == NULL){ @@ -1077,8 +1077,8 @@ void ShowProblemNo( int x, int y, int Key ) } }else{ if(TitleFlag==TRUE){ - StrToNowStrBuffer1("ͷ"); - for ( k=0;k<60+10;k++ ) //cyg ո + StrToNowStrBuffer1("客服解答:"); + for ( k=0;k<60+10;k++ ) //cyg 补空格 StrToNowStrBuffer(" "); InputHistory.color[InputHistory.newNo]=TRUE; pContent = SegmentBuf[SegmentIndex]; @@ -1103,7 +1103,7 @@ void ShowProblemNo( int x, int y, int Key ) }else{ if( TitleFlag == TRUE ){ GetKeyInputFocus(&SubBuffer); - StrToNowStrBuffer1("ݣ"); + StrToNowStrBuffer1("新增问题内容:"); for ( k=0;k<56+10;k++ ) StrToNowStrBuffer(" "); InputHistory.color[InputHistory.newNo]=TRUE; @@ -1116,8 +1116,8 @@ void ShowProblemNo( int x, int y, int Key ) } //************************************************ -//ʽ : λʽ -//شֵ : None +//函式 : 处理资料输入栏位的主函式 +//回传值 : None //************************************************ void InputOnlineGmData( int x, int y, int Key ) { @@ -1129,7 +1129,7 @@ void InputOnlineGmData( int x, int y, int Key ) else pNowStrBuffer = NULL ; - if (Key == 1) //ϼͷ + if (Key == 1) //上箭头 { if (InputHistory.newNo >4 && InputHistory.nowNo ){ InputHistory.nowNo -- ; @@ -1139,7 +1139,7 @@ void InputOnlineGmData( int x, int y, int Key ) } } } - if (Key == 2) // ¼ͷ + if (Key == 2) // 下箭头 { if (InputHistory.newNo >4){ if (InputHistory.nowNo+4xSize - 600) / 2; @@ -1424,11 +1424,11 @@ int iOnlineGmProc() wrongD = okD = nowTime.tm_mday ; wrongH = okH = nowTime.tm_hour ; */ - //reset + //画面reset ProNoIndex = 0; desc_index = 0; page_index = 0; - PushKey = 3; // Զѯ + PushKey = 3; // 自动查询 } } @@ -1451,139 +1451,139 @@ int iOnlineGmProc() btnState[i] = 0; switch (i) { - case 0://ѯ + case 0://查询 PushdirTime = TimeGetTime(); - if ( DirFlag==TRUE || (PushdirTime-LastTime)>5000 ){ //(ر)вѯͲڲ + if ( DirFlag==TRUE || (PushdirTime-LastTime)>5000 ){ //(关闭)有查询过就不能在查 LastTime = TimeGetTime(); PushKey = 3; DirFlag = FALSE; } break; - case 1://ɾ - if (ProNoSelectFlag){ //ҪѡijŲɾ + case 1://删除 + if (ProNoSelectFlag){ //要有选到某单号才能删除 DeleteBtnFlag = TRUE ; } break; - case 2:// + case 2://传送 DeathAction( pActOnlineGmWnd ); pActOnlineGmWnd = NULL; onlinegmProcNo = 2; return 0; - case 3:// + case 3://清除 InitOnlineGmInput(x, y); break; - case 4://ע + case 4://注意事项 DeathAction( pActOnlineGmWnd ); pActOnlineGmWnd = NULL; onlinegmProcNo = 1; return 0; - case 5://ر + case 5://关闭 ResetFlag = TRUE; DeathAction( pActOnlineGmWnd); pActOnlineGmWnd = NULL; return 1 ; - case 6://ѶϢϾ + case 6://讯息框上卷 if(ProNoValue){ PushKey = 1; } break; - case 7://ѶϢ¾ + case 7://讯息框下卷 if(ProNoValue){ PushKey = 2; } break; - case 8:PutKey = 1; break;//Ͼ - case 9:PutKey = 2; break;//¾ - case 10://Ͼ + case 8:PutKey = 1; break;//输入框上卷 + case 9:PutKey = 2; break;//输入框下卷 + case 10://正常年月上卷 okM--; if (okM<=0){ //fix okY--; okM=12; } break; - case 11://¾ + case 11://正常年月下卷 okM++; if (okM>12){ okY++; okM=1; } break; - case 12://Ͼ + case 12://正常日上卷 okD--; if (okD<=0) okD = 31 ; //fix break; - case 13://¾ + case 13://正常日下卷 okD++; if (okD>31) okD = 1; break; - case 14://ʱϾ + case 14://正常时上卷 okH--; if (okH<0) okH = 23; break; - case 15://ʱ¾ + case 15://正常时下卷 okH++; if (okH>23) okH=0; break; - case 16://Ͼ + case 16://错误年月上卷 wrongM--; if (wrongM<=0){ //fix wrongY--; wrongM=12; } break; - case 17://¾ + case 17://错误年月下卷 wrongM++; if (wrongM>12){ wrongY++; wrongM=1; } break; - case 18://Ͼ + case 18://错误日上卷 wrongD--; if (wrongD<=0) wrongD = 31; //fix break; - case 19://¾ + case 19://错误日下卷 wrongD++; if (wrongD > 31) wrongD = 1; break; - case 20://ʱϾ + case 20://错误时上卷 wrongH--; if (wrongH<0) wrongH = 23; break; - case 21://ʱ¾ + case 21://错误时下卷 wrongH++; if (wrongH>23) wrongH = 0; break; - case 22://һϾ + case 22://类别一上卷 ClassIndex -- ; ClassIndex1 = 0 ; ClassIndex2 = 0 ; if (ClassIndex<0) ClassIndex = DEF_CLASS_TOTAL-1; break; - case 23://һ¾ + case 23://类别一下卷 ClassIndex ++ ; ClassIndex1 = 0 ; ClassIndex2 = 0 ; if (ClassIndex==DEF_CLASS_TOTAL) ClassIndex = 0; break; - case 24://Ͼ + case 24://类别二上卷 ClassIndex1 -- ; ClassIndex2 = 0 ; - if (ClassIndex==1){ // һ + if (ClassIndex==1){ // 一般问题 if (ClassIndex1<0) ClassIndex1 = DEF_C1_TOTAL-1; }else{ if (ClassIndex1<0) ClassIndex1 = DEF_C2_TOTAL-1; } break; - case 25://¾ + case 25://类别二下卷 ClassIndex1 ++ ; ClassIndex2 = 0 ; - if (ClassIndex==1){ // һ + if (ClassIndex==1){ // 一般问题 if (ClassIndex1==DEF_C1_TOTAL) ClassIndex1=0; }else{ if (ClassIndex1==DEF_C2_TOTAL) ClassIndex1=0; } break; - case 26://Ͼ + case 26://类别三上卷 ClassIndex2 -- ; switch (ClassIndex1) { @@ -1597,7 +1597,7 @@ int iOnlineGmProc() default: ClassIndex2=0;break; } break; - case 27://¾ + case 27://类别三下卷 ClassIndex2 ++ ; switch (ClassIndex1) { @@ -1638,21 +1638,21 @@ int iOnlineGmProc() SureId[0] = StockDispBuffer( 372+15+15 , 112 , DISP_PRIO_IME3, ONLINEGM_SURE_U , 1); SureId[1] = StockDispBuffer( 460+15+15 , 112 , DISP_PRIO_IME3, ONLINEGM_CHANCEL , 1); if(Prodata[ProNoSelect].delflag == TRUE){ - sprintf_s(buf,"˱ʵɾ"); + sprintf_s(buf,"此笔单号已删除"); StockFontBuffer( 365+15+15 , 81 , FONT_PRIO_FRONT, 2 , buf , 0 ); }else{ - sprintf_s(buf,"ɾ %s ?",Prodata[ProNoSelect].no); + sprintf_s(buf,"删除单号 %s 吗?",Prodata[ProNoSelect].no); StockFontBuffer( 355+15+15 , 81 , FONT_PRIO_FRONT, 5 , buf , 0 ); } - if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == SureId[0]){ //ȷ + if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == SureId[0]){ //确定 if(Prodata[ProNoSelect].delflag == FALSE){ DWORD dwThreadID,dwThrdParam = 1; GMHandle = CreateThread(NULL, 0, DeleteThread,&dwThrdParam,0,&dwThreadID); if(GMHandle == NULL) { - StockChatBufferLine("ҵϵͳԴѲ!!",FONT_PAL_RED); - StockChatBufferLine("򵥺ɾʧ!",FONT_PAL_RED); + StockChatBufferLine("您的作业系统资源已不足!!",FONT_PAL_RED); + StockChatBufferLine("本则单号删除失败!",FONT_PAL_RED); ResetFlag = TRUE; DeathAction( pActOnlineGmWnd); pActOnlineGmWnd = NULL; @@ -1663,7 +1663,7 @@ int iOnlineGmProc() pActSureWnd = NULL; DeleteBtnFlag = FALSE ; } - if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == SureId[1]){ //ȡ + if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == SureId[1]){ //取消 DeathAction( pActSureWnd); pActSureWnd = NULL; DeleteBtnFlag = FALSE ; @@ -1676,7 +1676,7 @@ int iOnlineGmProc() y = pActOnlineGmWnd->y; if(PushKey != 3){ ShowProblemNo(x, y, PushKey); - }else{ //ѯ + }else{ //处理查询功能 for( i=0;ixSize - 7*64)/2; @@ -1799,21 +1799,21 @@ int iOnlineGmProc() HelpId[2] = StockDispBuffer( x+347+32-40, y+352, DISP_PRIO_IME3, CG_FIELD_HELP_EXIT+btnState[3], 2); - if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == HelpId[0]){ //һҳ + if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == HelpId[0]){ //上一页 if (page_index){ page_index--; - page = &ProHelp_page[page_index]; //ָһҳ + page = &ProHelp_page[page_index]; //指向上一页 desc_index = page->desc_index; - desc = Prohelp_Index[page_index]+desc_index;//ָһҳdescͷ + desc = Prohelp_Index[page_index]+desc_index;//指向新一页的desc开头 } } - if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == HelpId[1]){ //һҳ + if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == HelpId[1]){ //下一页 if (page_index < 4-1) { page_index++; - page = &ProHelp_page[page_index]; //ָһҳ + page = &ProHelp_page[page_index]; //指向下一页 desc_index = page->desc_index; - desc = Prohelp_Index[page_index]+desc_index;//ָһҳdescͷ + desc = Prohelp_Index[page_index]+desc_index;//指向新一页的desc开头 } } HelpidState[0] = page_index==0 ? -2 : 0 ; @@ -1833,7 +1833,7 @@ int iOnlineGmProc() } } } - else if (onlinegmProcNo == 2) //cyg ׼͵ȷӴ + else if (onlinegmProcNo == 2) //cyg 准备传送的确定视窗 { if (pActOnlineGmWnd==NULL){ x = (lpDraw->xSize - 5*64)/2; @@ -1852,13 +1852,13 @@ int iOnlineGmProc() int SureBtn[2]; SureBtn[0] = StockDispBuffer( x + 70 , y + 250-85+35 , DISP_PRIO_IME3, ONLINEGM_SURE_U , 1); SureBtn[1] = StockDispBuffer( x + 190+18 , y + 250-85+35 , DISP_PRIO_IME3, ONLINEGM_CHANCEL , 1); - sprintf_s( buf ,"ѶϢ->"); + sprintf_s( buf ,"错误讯息->"); StockFontBuffer( x + 20 , y+ 20+60 , FONT_PRIO_FRONT, 4 , buf , 0 ); - if( TotalAddValue >= DEF_MAX_ADD_VALUE ){ // ûд󽨵 - sprintf_s( buf ,"ⵥѴ20!!"); + if( TotalAddValue >= DEF_MAX_ADD_VALUE ){ // 有没有达最大建单数 + sprintf_s( buf ,"您的问题单已达上限20笔!!"); StockFontBuffer( x + 235 , y + 150 , FONT_PRIO_FRONT, 4 , buf , 0 ); - sprintf_s( buf ,"ɾⵥлл",TotalAddValue ); + sprintf_s( buf ,"请删除问题单后再留单谢谢",TotalAddValue ); StockFontBuffer( x + 235 , y + 185 , FONT_PRIO_FRONT, 4 , buf , 0 ); if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == SureBtn[0]) { @@ -1870,35 +1870,35 @@ int iOnlineGmProc() } }else{ if (ClassIndex==1){ - sprintf_s( buf ,"-> %s",ProblemClass[ClassIndex]); + sprintf_s( buf ,"问题类别-> %s",ProblemClass[ClassIndex]); StockFontBuffer( x + 20 , y + 20+10, FONT_PRIO_FRONT, 1 , buf , 0 ); - sprintf_s( buf ,"-> %s",ProblemC1[ClassIndex1]); + sprintf_s( buf ,"问题种类-> %s",ProblemC1[ClassIndex1]); StockFontBuffer( x + 20 , y + 20+35, FONT_PRIO_FRONT, 1 , buf , 0 ); }else{ - sprintf_s( buf ,"-> %s",ProblemClass[ClassIndex]); + sprintf_s( buf ,"问题类别-> %s",ProblemClass[ClassIndex]); StockFontBuffer( x + 20 , y + 20+10, FONT_PRIO_FRONT, 1 , buf , 0 ); - sprintf_s( buf ,"-> %s",ProblemC2[ClassIndex1]); + sprintf_s( buf ,"问题种类-> %s",ProblemC2[ClassIndex1]); StockFontBuffer( x + 20 , y + 20+35, FONT_PRIO_FRONT, 1 , buf , 0 ); switch (ClassIndex1) { - case 0: sprintf_s( buf,"ϸ-> %s",ProblemC2_1[ClassIndex2] );break; - case 1: sprintf_s( buf,"ϸ-> %s",ProblemC2_2[ClassIndex2] );break; - case 2: sprintf_s( buf,"ϸ-> %s",ProblemC2_3[ClassIndex2] );break; - case 3: sprintf_s( buf,"ϸ-> %s",ProblemC2_4[ClassIndex2] );break; - case 4: sprintf_s( buf,"ϸ-> %s",ProblemC2_5[ClassIndex2] );break; - case 5: sprintf_s( buf,"ϸ-> %s",ProblemC2_6[ClassIndex2] );break; - case 10: sprintf_s( buf,"ϸ-> %s",ProblemC2_7[ClassIndex2] );break; + case 0: sprintf_s( buf,"种类细项-> %s",ProblemC2_1[ClassIndex2] );break; + case 1: sprintf_s( buf,"种类细项-> %s",ProblemC2_2[ClassIndex2] );break; + case 2: sprintf_s( buf,"种类细项-> %s",ProblemC2_3[ClassIndex2] );break; + case 3: sprintf_s( buf,"种类细项-> %s",ProblemC2_4[ClassIndex2] );break; + case 4: sprintf_s( buf,"种类细项-> %s",ProblemC2_5[ClassIndex2] );break; + case 5: sprintf_s( buf,"种类细项-> %s",ProblemC2_6[ClassIndex2] );break; + case 10: sprintf_s( buf,"种类细项-> %s",ProblemC2_7[ClassIndex2] );break; default: buf[0] = '\0'; } StockFontBuffer( x + 220-25 , y + 120+60, FONT_PRIO_FRONT, 1 , buf , 0 ); - sprintf_s( buf ,"-> %4d%02d%02d%02dʱ",okY,okM,okD,okH); + sprintf_s( buf ,"正常日期-> %4d年%02d月%02d日%02d时",okY,okM,okD,okH); StockFontBuffer( x + 220-25 , y + 120+85, FONT_PRIO_FRONT, 1 , buf , 0 ); - sprintf_s( buf ,"-> %4d%02d%02d%02dʱ",wrongY,wrongM,wrongD,wrongH ); + sprintf_s( buf ,"错误日期-> %4d年%02d月%02d日%02d时",wrongY,wrongM,wrongD,wrongH ); StockFontBuffer( x + 220-25 , y + 120+110, FONT_PRIO_FRONT, 1 , buf , 0 ); } if( lstrlen(InputHistory.str[InputHistory.lockNo+1]) == 0 && lstrlen(SubBuffer.buffer) == 0 ){ - sprintf_s( buf ,""); + sprintf_s( buf ,"请输入问题内容"); StockFontBuffer( x + 20 , y + 120, FONT_PRIO_FRONT, 4 , buf , 0 ); if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == SureBtn[0]) { @@ -1909,7 +1909,7 @@ int iOnlineGmProc() return 0 ; } }else if(ClassIndex==0&&(!okY||!okM||!okD||!wrongY||!wrongM||!wrongD)){ //fix - sprintf_s( buf ,"д[][]"); + sprintf_s( buf ,"请填写[正常日期]与[错误日期]"); StockFontBuffer( x + 280-10+2 , y + 260 , FONT_PRIO_FRONT, 4 , buf , 0 ); if((mouse.onceState & MOUSE_LEFT_CRICK) && HitDispNo == SureBtn[0]) { @@ -1925,14 +1925,14 @@ int iOnlineGmProc() ResetFlag = FALSE; ContentBuf[0] = '\0'; for ( i=0;ipicture)&0x0000ff00)>>8 )&0x000000ff); int picture4 = ( (a0->picture)&0x000000ff ); //a0->anim_no = ANIM_WALK; - if( picture1 == 1 ){//ϱ + if( picture1 == 1 ){//不断变身 if( a0->anim_chr_no == 101936 ){ a0->anim_chr_no = 101863; return; @@ -44,7 +44,7 @@ void picture_play( ACTION *a0 ) if(a0->picturetemp == 9 ) a0->picturetemp = 0; } - else if( picture1 == 2 ){//ijͼ + else if( picture1 == 2 ){//变身于某个图号 if( a0->anim_chr_no != pictable[picture2] ){ if( a0->anim_chr_no == 101863 ) a0->anim_chr_no = pictable[a0->picturetemp]; @@ -52,7 +52,7 @@ void picture_play( ACTION *a0 ) a0->anim_chr_no = 101863; } else{ - if( a0->anim_no == 0 )//趨 + if( a0->anim_no == 0 )//设定动作 a0->anim_no = 3; else a0->anim_no = 0; @@ -74,8 +74,8 @@ void picture_play( ACTION *a0 ) #endif /*---------- ????????? ----------*/ -// Return 1:˴˶( ظŵ״ ) -// Return 0:Ŵ˶ +// Return 1:播完了此动画( 无重覆播放的状况下 ) +// Return 0:播放此动画中 int pattern( ACTION *a0, int anim_spd, int loop_flg) { ANIMLIST *ptAnimlist; @@ -97,37 +97,37 @@ int pattern( ACTION *a0, int anim_spd, int loop_flg) if(ATR_CHR_ACT_OLD(a0) != ATR_CHR_ACT(a0) || ATR_CHR_ANG(a0) != ATR_CHR_ANG_OLD(a0) || ATR_CHR_NO(a0) != ATR_CHR_NO_OLD(a0)){ - ATR_CHR_NO_OLD(a0) = ATR_CHR_NO(a0); /*????????????*/ - ATR_CHR_ACT_OLD(a0) = ATR_CHR_ACT(a0); /*??h????*/ - ATR_CHR_ANG_OLD(a0) = ATR_CHR_ANG(a0); /*???????*/ - ATR_CHR_TIM(a0) = 0;//frame counterΪһ - ATR_CHR_CNT(a0) = 0;//ĵڼͼ + ATR_CHR_NO_OLD(a0) = ATR_CHR_NO(a0); /*????????????*/ + ATR_CHR_ACT_OLD(a0) = ATR_CHR_ACT(a0); /*??????*/ + ATR_CHR_ANG_OLD(a0) = ATR_CHR_ANG(a0); /*???????*/ + ATR_CHR_TIM(a0) = 0;//frame counter设为一 + ATR_CHR_CNT(a0) = 0;//这个动画的第几张图 } if(ATR_CHR_TIM(a0)){ - ATR_CHR_TIM(a0)--; //frame counterһ + ATR_CHR_TIM(a0)--; //frame counter减一 return 0; } if(ATR_CHR_NO(a0) <= CG_INVISIBLE){ - ATR_PAT_NO(a0) = 0; //ָΪ0ͼ + ATR_PAT_NO(a0) = 0; //指定为第0张图 #ifdef _NPC_PICTURE picture_play(a0); #endif return 0; } - if(ATR_CHR_NO(a0) < SPRSTART){ //sprite + if(ATR_CHR_NO(a0) < SPRSTART){ //不是sprite realGetNo( ATR_CHR_NO(a0) , (U4 *)&BmpNo ); realGetPos( BmpNo , &dx, &dy); - ATR_PAT_NO(a0) = BmpNo; //BMPͼ + ATR_PAT_NO(a0) = BmpNo; //BMP的图档编号 #ifdef _FIX_CG_ATR_ICON if (ATR_CHR_NO(a0)>= CG_ATR_ICON_EARTH_BATTLE && ATR_CHR_NO(a0)<=CG_ATR_ICON_WIND_BATTLE){ - ATR_CHR_H_POS(a0) = dx - 20; //X + ATR_CHR_H_POS(a0) = dx - 20; //X座标 }else{ - ATR_CHR_H_POS(a0) = dx; //X + ATR_CHR_H_POS(a0) = dx; //X座标 } #else - ATR_CHR_H_POS(a0) = dx; //X + ATR_CHR_H_POS(a0) = dx; //X座标 #endif - ATR_CHR_V_POS(a0) = dy; //Y + ATR_CHR_V_POS(a0) = dy; //Y座标 ATR_CHR_TIM(a0)=0x7fffffff; //cary if( ATR_CHR_ACT(a0) == ANIM_ATTACK && ATR_CHR_CNT(a0) == 0){ @@ -157,7 +157,7 @@ int pattern( ACTION *a0, int anim_spd, int loop_flg) #ifdef _NPC_PICTURE picture_play(a0); #endif - return 0; //spriteķΧ + return 0; //超出sprite的范围 } chrNo = ATR_CHR_NO(a0) - SPRSTART; ptAnimlist = SpriteData[chrNo].ptAnimlist; @@ -165,9 +165,9 @@ int pattern( ACTION *a0, int anim_spd, int loop_flg) #ifdef _NPC_PICTURE picture_play(a0); #endif - return 0; //޶ + return 0; //无动画 } - //ѡҪķͶ + //选择想要的方向和动画 for(i=0 ; i < SpriteData[chrNo].animSize; i++){ if( ATR_CHR_ANG(a0) == ptAnimlist[i].dir && ptAnimlist[i].no == ATR_CHR_ACT(a0) ) break; @@ -185,7 +185,7 @@ int pattern( ACTION *a0, int anim_spd, int loop_flg) } } ptFramelist = ptAnimlist[i].ptFramelist; - if(anim_spd) //ָٶ + if(anim_spd) //有指定动画速度 ATR_CHR_TIM(a0) = anim_spd; else ATR_CHR_TIM(a0) = ptAnimlist[i].dtAnim; @@ -196,26 +196,26 @@ int pattern( ACTION *a0, int anim_spd, int loop_flg) || (((a0->picture&0xff000000)>>24) & 0x000000ff) == 3 || ( (((a0->picture&&0xff000000)>>24) & 0x000000ff) == 2 && ( a0->anim_chr_no != pictable[(((a0->picture&0x00ff0000)>>16)&0x000000ff)] ) ) ) - ATR_CHR_TIM(a0) = 1;//npcٶȵ + ATR_CHR_TIM(a0) = 1;//变身npc速度调最快 */ if( a0->anim_chr_no != pictable[(((a0->picture&0x00ff0000)>>16)&0x000000ff)] || (((a0->picture&0xff000000)>>24) & 0x000000ff) == 1 || (((a0->picture&0xff000000)>>24) & 0x000000ff) == 3 ) if( a0->anim_chr_no != 101805 && a0->anim_chr_no != 101858 && a0->anim_chr_no != 101936 ) - ATR_CHR_TIM(a0) = 1;//npcٶȵ + ATR_CHR_TIM(a0) = 1;//变身npc速度调最快 } #endif if((U4)ATR_CHR_CNT(a0) >= ptAnimlist[i].frameCnt){ //???????????? #ifdef _NPC_PICTURE picture_play(a0); #endif - if(loop_flg == ANM_NO_LOOP){ //????? + if(loop_flg == ANM_NO_LOOP){ //????? ATR_CHR_TIM(a0) = 255; - return 1; //???????? + return 1; //???????? } else - ATR_CHR_CNT(a0) = 0; //Id??? + ATR_CHR_CNT(a0) = 0; //??? } - //?????? + //?????? if( ptFramelist[ATR_CHR_CNT(a0)].SoundNo != 0 ){ if(ptFramelist[ATR_CHR_CNT(a0)].SoundNo < 10000) play_se( ptFramelist[ATR_CHR_CNT(a0)].SoundNo, ATR_H_POS(a0), ATR_V_POS(a0) ); @@ -228,40 +228,40 @@ int pattern( ACTION *a0, int anim_spd, int loop_flg) int soundnum = 0; switch(ATR_PAT_NO(a0)){ case 156+OLD_GRAPHICS_START: - soundnum = 390;break;//ˮ390 + soundnum = 390;break;//水结界390 case 193+OLD_GRAPHICS_START: - soundnum = 390;break;//ˮ390 + soundnum = 390;break;//水结界390 case 304+OLD_GRAPHICS_START: - soundnum = 327;break;//ؽ + soundnum = 327;break;//地结界 case 341+OLD_GRAPHICS_START: - soundnum = 327;break;//ؽ + soundnum = 327;break;//地结界 case 231+OLD_GRAPHICS_START: - soundnum = 395;break;// + soundnum = 395;break;//火结界 case 268+OLD_GRAPHICS_START: - soundnum = 268;break;// + soundnum = 268;break;//火结界 case 380+OLD_GRAPHICS_START: - soundnum = 154;break;// + soundnum = 154;break;//风结界 case 417+OLD_GRAPHICS_START: - soundnum = 154;break;// + soundnum = 154;break;//风结界 case 75+OLD_GRAPHICS_START: - soundnum = 324;break;//ƽ + soundnum = 324;break;//破结界 case 97+OLD_GRAPHICS_START: - soundnum = 324;break;//ƽ + soundnum = 324;break;//破结界 case 117+OLD_GRAPHICS_START: - soundnum = 385;break;//Ȼ + soundnum = 385;break;//号召自然 case 137+OLD_GRAPHICS_START: - soundnum = 385;break;//Ȼ + soundnum = 385;break;//号召自然 case 60+OLD_GRAPHICS_START: - soundnum = 388;break;//Ȼ + soundnum = 388;break;//自然威能 } play_se(soundnum,ATR_H_POS(a0),ATR_V_POS(a0)); } } #endif - ATR_PAT_NO(a0) = ptFramelist[ATR_CHR_CNT(a0)].BmpNo; //???k???? - realGetPos(ptFramelist[ATR_CHR_CNT(a0)].BmpNo, &dx, &dy); //???????????? - ATR_CHR_H_POS(a0) = ptFramelist[ATR_CHR_CNT(a0)].PosX + dx; //?????????? - ATR_CHR_V_POS(a0) = ptFramelist[ATR_CHR_CNT(a0)].PosY + dy; //?????????? + ATR_PAT_NO(a0) = ptFramelist[ATR_CHR_CNT(a0)].BmpNo; //??????? + realGetPos(ptFramelist[ATR_CHR_CNT(a0)].BmpNo, &dx, &dy); //???????????? + ATR_CHR_H_POS(a0) = ptFramelist[ATR_CHR_CNT(a0)].PosX + dx; //?????????? + ATR_CHR_V_POS(a0) = ptFramelist[ATR_CHR_CNT(a0)].PosY + dy; //?????????? ATR_CHR_CNT(a0)++; ATR_CHR_TIM(a0)--; return 0; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/pc.cpp b/石器时代8.5客户端最新源代码/石器源码/system/pc.cpp index f35c688..c7dd455 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/pc.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/pc.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include"../systeminc/system.h" #include"../systeminc/action.h" #include"../systeminc/pc.h" @@ -33,7 +33,7 @@ short tradeStatus = 0; PET pet[MAX_PET]; -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 PROFESSION_SKILL profession_skill[MAX_PROFESSION_SKILL]; #endif @@ -104,14 +104,14 @@ void initPcAll(void) memset(&party, 0, sizeof(party)); memset(&petSkill, 0, sizeof(petSkill)); -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 memset(&profession_skill, 0, sizeof(profession_skill)); #endif pc.mailPetNo = -1; #ifdef _MORECHARACTERS_ - extern int ﵱǰҳ; - getUserSetting(selectPcNo+ﵱǰҳ*2); + extern int 多人物当前页数; + getUserSetting(selectPcNo+多人物当前页数*2); #else getUserSetting(selectPcNo); #endif @@ -164,7 +164,7 @@ void initPcAll(void) pc.iSceneryNumber = -1; #endif #ifdef _SFUMATO - pc.sfumato = 0; // Ⱦͼɫ + pc.sfumato = 0; // 二次渲染图层色彩 #endif } @@ -194,13 +194,13 @@ void initPc(void) { height = 1; } -#ifdef _CHAR_PROFESSION // WON ADD ְҵ -// #ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +// #ifdef _GM_IDENTIFY // Rog ADD GM识别 // setPcParam(pc.name, pc.freeName, pc.level, pc.ridePetName, pc.ridePetLevel, pc.nameColor, walk, height, pc.profession_class, pc.profession_level, pc.profession_exp, pc.profession_skill_point, pc.ptAct->gm_name); // setPcParam(pc.name, pc.freeName, pc.level, pc.ridePetName, pc.ridePetLevel, pc.nameColor, walk, height, pc.profession_class, pc.profession_level, pc.profession_skill_point, pc.ptAct->gm_name); // #else // setPcParam(pc.name, pc.freeName, pc.level, pc.ridePetName, pc.ridePetLevel, pc.nameColor, walk, height, pc.profession_class, pc.profession_level, pc.profession_exp, pc.profession_skill_point); -#ifdef _ALLDOMAN // (ɿ) Syu ADD аNPC +#ifdef _ALLDOMAN // (不可开) Syu ADD 排行榜NPC setPcParam(pc.name, pc.freeName, pc.level, pc.ridePetName, pc.ridePetLevel, pc.nameColor, walk, height, pc.profession_class, pc.profession_level, pc.profession_skill_point , pc.herofloor); #else setPcParam(pc.name, pc.freeName, pc.level, pc.ridePetName, pc.ridePetLevel, pc.nameColor, walk, height, pc.profession_class, pc.profession_level, pc.profession_skill_point); @@ -219,7 +219,7 @@ void initPc(void) pc.ptAct->hp = pc.hp; pc.ptAct->maxHp = pc.maxHp; - // ??ѩ???????????????? + // ?????????????????? #ifdef MAX_AIRPLANENUM for (i = 0; i < MAX_AIRPLANENUM; i++) #else @@ -252,7 +252,7 @@ void initPc(void) } -// PC???? +// PC???? void createPc(int graNo, int gx, int gy, int dir) { pc.graNo = graNo; @@ -315,12 +315,12 @@ void resetPc(void) pc.ptAct = NULL; } - // ???????????? + // ???????????? delPcLeader(); } -// PC?????????k?@e +// PC?????????? void setPcGraNo(int graNo, int dir) { pc.graNo = graNo; @@ -332,19 +332,19 @@ void setPcGraNo(int graNo, int dir) pc.ptAct->anim_chr_no = graNo; pc.ptAct->anim_ang = dir; #ifdef _SFUMATO - pc.ptAct->sfumato = pc.sfumato; // Ⱦͼɫ + pc.ptAct->sfumato = pc.sfumato; // 二次渲染图层色彩 #endif } -// PC???ID?@e +// PC???ID? void setPcId(int id) { pc.id = id; } -// PC??????I@e +// PC?????? void setPcWarpPoint(int gx, int gy) { // if(pc.ptAct == NULL) @@ -354,7 +354,7 @@ void setPcWarpPoint(int gx, int gy) } -// PC???????t?i??? +// PC??????????? void setPcPoint(void) { if(pc.ptAct == NULL) @@ -372,7 +372,7 @@ void setPcPoint(void) } -// PC???????@e +// PC??????? void setPcDir(int dir) { pc.dir = dir; @@ -384,7 +384,7 @@ void setPcDir(int dir) } -// ???????@e +// ??????? void setPcAction(int act) { if(pc.ptAct == NULL) @@ -413,7 +413,7 @@ void setPcEmotion(int emotion) } #endif -// ????????֢tx +// ???????? int getPcAction(void) { if(pc.ptAct == NULL) @@ -426,13 +426,13 @@ int getPcAction(void) extern int TalkMode; #endif -#ifdef _CHAR_PROFESSION // WON ADD ְҵ -// #ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 +// #ifdef _GM_IDENTIFY // Rog ADD GM识别 // void setPcParam(char *name, char *freeName, int level, char *petname, int petlevel, int nameColor, int walk, int height, int profession_class, int profession_level, int profession_exp, int profession_skill_point , char *gm_name) // void setPcParam(char *name, char *freeName, int level, char *petname, int petlevel, int nameColor, int walk, int height, int profession_class, int profession_level, int profession_skill_point , char *gm_name) // #else // void setPcParam(char *name, char *freeName, int level, char *petname, int petlevel, int nameColor, int walk, int height, int profession_class, int profession_level, int profession_exp, int profession_skill_point) -#ifdef _ALLDOMAN // (ɿ) Syu ADD аNPC +#ifdef _ALLDOMAN // (不可开) Syu ADD 排行榜NPC void setPcParam(char *name, char *freeName, int level, char *petname, int petlevel, int nameColor, int walk, int height, int profession_class, int profession_level, int profession_skill_point , int herofloor) #else void setPcParam(char *name, char *freeName, int level, char *petname, int petlevel, int nameColor, int walk, int height, int profession_class, int profession_level, int profession_skill_point) @@ -445,7 +445,7 @@ extern int TalkMode; int nameLen; int freeNameLen; int petnameLen; -#ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _GM_IDENTIFY // Rog ADD GM识别 int gmnameLen; #endif nameLen = strlen(name); @@ -471,7 +471,7 @@ extern int TalkMode; pc.ridePetLevel = petlevel; pc.nameColor = nameColor; - if(walk != 0) // ????? + if(walk != 0) // ????? { pc.status |= CHR_STATUS_W; } @@ -501,17 +501,17 @@ extern int TalkMode; pc.ptAct->itemNameColor = nameColor; -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 pc.profession_class = profession_class; pc.ptAct->profession_class = profession_class; pc.profession_level = profession_level; // pc.profession_exp = profession_exp; pc.profession_skill_point = profession_skill_point; #endif -#ifdef _ALLDOMAN // (ɿ) Syu ADD аNPC +#ifdef _ALLDOMAN // (不可开) Syu ADD 排行榜NPC pc.herofloor = herofloor; #endif -#ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _GM_IDENTIFY // Rog ADD GM识别 gmnameLen = strlen(gm_name); if(gmnameLen <= 33){ strcpy(pc.ptAct->gm_name, gm_name); @@ -529,7 +529,7 @@ extern int TalkMode; } -// PC????ѩ???????@e???? +// PC??????????????? void updataPcAct(void) { if(pc.ptAct == NULL) @@ -547,7 +547,7 @@ void updataPcAct(void) pc.ptAct->hp = pc.hp; pc.ptAct->maxHp = pc.maxHp; #ifdef _SFUMATO - pc.ptAct->sfumato = pc.sfumato; // Ⱦͼɫ + pc.ptAct->sfumato = pc.sfumato; // 二次渲染图层色彩 #endif } @@ -580,22 +580,22 @@ void delPcParty(void) } -// PC?????P?????? +// PC??????????? void setPcWatch(void) { pc.status |= CHR_STATUS_WATCH; } -// PC?????P?????????? +// PC??????????????? void delPcWatch(void) { pc.status &= (~CHR_STATUS_WATCH); } -// ???????????? -//???????????????v???? +// ???????????? +//??????????????????? void setPcWalkFlag(void) { if(pc.ptAct == NULL) @@ -604,8 +604,8 @@ void setPcWalkFlag(void) pc.ptAct->walkFlag = 1; } -// ???????????????? -//???????????????v???? +// ???????????????? +//??????????????????? void delPcWalkFlag(void) { if(pc.ptAct == NULL) @@ -615,7 +615,7 @@ void delPcWalkFlag(void) } -// ????? +// ????? int checkPcWalkFlag(void) { if(pc.ptAct == NULL) @@ -625,21 +625,21 @@ int checkPcWalkFlag(void) } -// ???????? +// ???????? void setPcUseMagic(void) { pc.status |= CHR_STATUS_USE_MAGIC; } -// ???????? +// ???????? void delPcUseMagic(void) { pc.status &= (~CHR_STATUS_USE_MAGIC); } -// PC?????? +// PC?????? void setPcFukidashi(unsigned int offTime) { CHAREXTRA *ext; @@ -653,7 +653,7 @@ void setPcFukidashi(unsigned int offTime) } -// ???????????q??@e +// ????????????? void setPcNameColor(int color) { pc.pcNameColor = color; @@ -686,13 +686,13 @@ void delPcAngel(void) extern struct Posstruct Positiontable[]; #endif -// PC???h?? ///////////////////////////////////////////////////////// +// PC????? ///////////////////////////////////////////////////////// void changePcAct(int x, int y, int dir, int action, int effectno, int effectparam1, int effectparam2) { switch(action) { - // ??֢t + // ?? case 0: #if 0 #if 1 @@ -758,12 +758,12 @@ void changePcAct(int x, int y, int dir, int action, setPcAction(ANIM_STAND); break; - // ?? + // ?? case 30: setPcDir(dir); break; - // ? + // ? case 1: setPcAction(ANIM_WALK); break; @@ -788,18 +788,18 @@ void changePcAct(int x, int y, int dir, int action, setPcAction(ANIM_DAMAGE); break; - // ? + // ? case 5: //setPcWarpPoint(x, y); setPcDir(dir); setPcAction(ANIM_DEAD); break; - // ?? + // ?? case 6: break; - // ????? + // ????? case 7: break; @@ -807,7 +807,7 @@ void changePcAct(int x, int y, int dir, int action, case 8: /* UsedMagic */ break; - // X?? + // ?? case 10: //setPcWarpPoint(x, y); setPcDir(dir); @@ -821,7 +821,7 @@ void changePcAct(int x, int y, int dir, int action, setPcAction(ANIM_SIT); break; - // ?? + // ?? case 12: //setPcWarpPoint(x, y); setPcDir(dir); @@ -835,14 +835,14 @@ void changePcAct(int x, int y, int dir, int action, setPcAction(ANIM_HAPPY); break; - // W? + // ? case 14: //setPcWarpPoint(x, y); setPcDir(dir); setPcAction(ANIM_ANGRY); break; - // v?? + // ?? case 15: //setPcWarpPoint(x, y); setPcDir(dir); @@ -856,7 +856,7 @@ void changePcAct(int x, int y, int dir, int action, setPcAction(ANIM_GUARD); break; - // ??h???? + // ?????? case 17: setPcDir(dir); setPcAction(ANIM_WALK); @@ -869,26 +869,26 @@ void changePcAct(int x, int y, int dir, int action, setPcAction(ANIM_NOD); break; - // ??֢t??????? + // ????????? case 19: //setPcWarpPoint(x, y); setPcDir(dir); setPcAction(ANIM_STAND); break; - // Pfѩ + //  case 20: setPcWarpPoint(x, y); setPcDir(dir); break; - // ????ѩ + // ???? case 21: setPcWarpPoint(x, y); setPcDir(dir); if(effectno == 1) { - // ??????? + // ??????? setPcLeader(); #if 0 if(pc.ptAct != NULL) @@ -900,12 +900,12 @@ void changePcAct(int x, int y, int dir, int action, } else { - // ???????? + // ???????? delPcLeader(); } break; - // ?Pѩ + // ? case 22: setPcWarpPoint(x, y); setPcDir(dir); @@ -919,7 +919,7 @@ void changePcAct(int x, int y, int dir, int action, } break; - // ???????????q? + // ???????????? case 23: setPcNameColor(effectno); break; @@ -982,7 +982,7 @@ void changePcAct(int x, int y, int dir, int action, ext->pActFirework[1] = NULL; } ext->pActFirework[0] = GetAction(PRIO_CHR, 0); - ext->pActFirework[0]->damage = effectno; // damage type (effectno = type) + ext->pActFirework[0]->damage = effectno; // 借用 damage 来储存 type (effectno = type) ext->pActFirework[0]->anim_chr_no = effectparam1; ext->pActFirework[0]->anim_no = ANIM_STAND; ext->pActFirework[0]->anim_ang = 1; @@ -1022,8 +1022,8 @@ void changePcAct(int x, int y, int dir, int action, //changePcAct(x, y, dir, 60 , giver , actionNum , petaction) //changePcAct(int x, int y, int dir, int action,int effectno, int effectparam1, int effectparam2) - //effectno ֵʩߵλñ - if(effectparam2 == 3){ //ħ + //effectno 传来的值代表施放者的位置编号 + if(effectparam2 == 3){ //魔法牌 ext->pActMagiccard[0] = GetAction(PRIO_CHR,0); ext->pActMagiccard[0]->anim_chr_no = effectparam1; ext->pActMagiccard[0]->dispPrio = DISP_PRIO_RESERVE; @@ -1034,7 +1034,7 @@ void changePcAct(int x, int y, int dir, int action, ext->pActMagiccard[0]->gx = Positiontable[effectno].petX+1 + x; ext->pActMagiccard[0]->gy = Positiontable[effectno].petY-1 + y; } - }else if(effectparam2 == 0){ //ӡǷ + }else if(effectparam2 == 0){ //被封印或是放弃出牌 ext->pActMagiccard[0] = GetAction(PRIO_CHR,0); ext->pActMagiccard[0]->anim_chr_no = 101290; ext->pActMagiccard[0]->dispPrio = DISP_PRIO_RESERVE; @@ -1053,14 +1053,14 @@ void changePcAct(int x, int y, int dir, int action, ext->pActMagiccard[i]->gx = Positiontable[effectno].petX + x; ext->pActMagiccard[i]->gy = Positiontable[effectno].petY + y; ext->pActMagiccard[i]->dispPrio = DISP_PRIO_RESERVE; - ext->pActMagiccard[i]->anim_ang = dir;//1; // + ext->pActMagiccard[i]->anim_ang = dir;//1; //方向 } ext->pActMagiccard[1]->anim_no = ANIM_STAND; - if(effectparam2 == 1) //ƹ + if(effectparam2 == 1) //宠牌攻击 ext->pActMagiccard[2]->anim_no = ANIM_ATTACK; - else if(effectparam2 == 2) //Ʒ + else if(effectparam2 == 2) //宠牌防御 ext->pActMagiccard[2]->anim_no = ANIM_GUARD; } #ifdef _MOVE_SCREEN @@ -1082,7 +1082,7 @@ void changePcAct(int x, int y, int dir, int action, } -// ??ѩ???? ///////////////////////////////////////////////////////// +// ?????? ///////////////////////////////////////////////////////// void clearPartyParam(void) { int i; @@ -1097,7 +1097,7 @@ void clearPartyParam(void) { if( party[i].id == pc.id) { - // ????h?????????? + // ?????????????? if(party[i].ptAct != NULL) { party[i].ptAct->bufCount = 0; @@ -1106,7 +1106,7 @@ void clearPartyParam(void) } else { - // ??????????\?????h???????? + // ??????????????????????? if((pc.status & CHR_STATUS_LEADER) != 0 && party[i].ptAct != NULL) { @@ -1125,7 +1125,7 @@ void clearPartyParam(void) } -// ??ѩ?ptAct?NULL?V???? +// ???ptAct?NULL????? void clearPtActPartyParam(void) { int i; @@ -1144,7 +1144,7 @@ void clearPtActPartyParam(void) -// ???????????@e???????? ///////////////////////////// +// ??????????????????? ///////////////////////////// int existCharacterListEntry(int index) { if(index < 0 || index >= MAXCHARACTER) @@ -1161,7 +1161,7 @@ int existCharacterListEntry(int index) } -// ???????i????????? +// ???????????????? int cmpNameCharacterList(char *name) { int i; @@ -1178,7 +1178,7 @@ int cmpNameCharacterList(char *name) #ifdef _AIDENGLU_ extern Landed PcLanded; #endif -// ??????????@e???????????t????????????? +// ?????????????????????????????????? int setCharacterList(char *name, char *opt) { int index; @@ -1191,7 +1191,7 @@ int setCharacterList(char *name, char *opt) if(index < 0 || index >= MAXCHARACTER) return -1; #ifdef _AIDENGLU_ - memset(PcLanded.½[index],0,32); + memset(PcLanded.登陆人物名称[index],0,32); #endif memset(&chartable[index], 0, sizeof(CHARLISTTABLE)); @@ -1217,13 +1217,13 @@ int setCharacterList(char *name, char *opt) chartable[index].attr[3] = getIntegerToken(opt, '|', 13)/10; chartable[index].login = getIntegerToken(opt, '|', 14); #ifdef _AIDENGLU_ - strcpy(PcLanded.½[index],name); + strcpy(PcLanded.登陆人物名称[index],name); #endif return 0; } -// ???????????? +// ???????????? // int index : ???????0 ~ 7 int resetCharacterList(int index) { @@ -1236,7 +1236,7 @@ int resetCharacterList(int index) } -// ?????? ///////////////////////////////////////////////////////// +// ?????? ///////////////////////////////////////////////////////// void getItem(void) { float tmpDir; @@ -1244,31 +1244,31 @@ void getItem(void) int dir; static unsigned int piSendTime = 0; - // ???????????????????????? + // ???????????????????????? if(windowTypeWN == WINDOW_MESSAGETYPE_ITEMSHOPMENU || windowTypeWN == WINDOW_MESSAGETYPE_ITEMSHOPMAIN || windowTypeWN == WINDOW_MESSAGETYPE_LIMITITEMSHOPMAIN) return; - // kI?K?????????????????? + // ??????????????????? if(ABS(nowGx - mouseMapGx) > 1 || ABS(nowGy - mouseMapGy) > 1) return; - // kI????????????????? + // ????????????????? if(!checkCharObjPoint(mouseMapGx, mouseMapGy, CHAROBJ_TYPE_NPC|CHAROBJ_TYPE_ITEM|CHAROBJ_TYPE_MONEY)) // CHAROBJ_TYPE_ITEM|CHAROBJ_TYPE_MONEY)) return; - // ??????????? + // ??????????? tmpX = (float)(mouseMapGx - nowGx); tmpY = (float)(mouseMapGy - nowGy); tmpDir = Atan(tmpX, tmpY) + 22.5F - 45.0F*3; AdjustDir(&tmpDir); dir = (int)(tmpDir/45); - // ?? + // ?? if(piSendTime+FIELD_BTN_PUSH_WAIT < TimeGetTime()) { // ?????? @@ -1334,7 +1334,7 @@ BOOL TalkToNPC(void) #endif -// ?????V?v? ///////////////////////////////////////////////////// +// ??????? ///////////////////////////////////////////////////// void swapItem(int from, int to) { if(from < 0 || to < 0) @@ -1381,7 +1381,7 @@ void swapItem(int from, int to) #endif } -// ?k?V?? +// ???? /*void swapInteger(int *a, int *b) { int tmp; @@ -1402,7 +1402,7 @@ void swapItem(int from, int to) }*/ -// ???V?v??????255??????? +// ??????????255??????? /*void swapString(char *a, char *b) { char tmp[256]; @@ -1416,7 +1416,7 @@ void swapItem(int from, int to) } */ -// ?????????? ///////////////////////////////////////////////// +// ?????????? ///////////////////////////////////////////////// BOOL lookAtAround(void) { float tmpDir; @@ -1424,32 +1424,32 @@ BOOL lookAtAround(void) int dir; static unsigned int lSendTime = 0; - // ???????????????????????? + // ???????????????????????? if(windowTypeWN == WINDOW_MESSAGETYPE_ITEMSHOPMENU || windowTypeWN == WINDOW_MESSAGETYPE_ITEMSHOPMAIN || windowTypeWN == WINDOW_MESSAGETYPE_LIMITITEMSHOPMAIN) return FALSE; - // kI?K?????????????????? + // ??????????????????? if(ABS(nowGx - mouseMapGx) > 2 || ABS(nowGy - mouseMapGy) > 2) return FALSE; - // kI????????????????? + // ????????????????? if(!checkCharObjPoint(mouseMapGx, mouseMapGy, CHAROBJ_TYPE_LOOKAT)) return FALSE; - // ??????????? + // ??????????? tmpX = (float)(mouseMapGx - nowGx); tmpY = (float)(mouseMapGy - nowGy); - if(tmpX == 0 && tmpY == 0) // ?Y????????????? + if(tmpX == 0 && tmpY == 0) // ?????????????? return FALSE; tmpDir = Atan(tmpX, tmpY) + 22.5F - 45.0F*3; AdjustDir(&tmpDir); dir = (int)(tmpDir/45); - // ?? + // ?? if(lSendTime+FIELD_BTN_PUSH_WAIT < TimeGetTime()) { // ?????? @@ -1475,11 +1475,11 @@ int addressBookY = 16; int addressBookPage = 0; ACTION *ptActAddressBookChar[MAX_ADR_BOOK_COUNT]; -// k???????? +// ???????? int addressBookSelectStrItem[1+3*MAX_ADR_BOOK_COUNT]; -// 0 ... ?? -// n*3+1 ... ? -// n*3+2 ... +// 0 ... ?? +// n*3+1 ... ? +// n*3+2 ...  // n*3+3 ... ?? @@ -1521,7 +1521,7 @@ void addressBookProc(void) { // ?????????????? ptActAddressBookWin = MakeWindowDisp(addressBookX, addressBookY, 4, 8, NULL, 1); - // ?????????? + // ?????????? for(i = 0; i < MAX_ADR_BOOK_COUNT; i++) { no = addressBookPage*MAX_ADR_BOOK_COUNT+i; @@ -1539,7 +1539,7 @@ void addressBookProc(void) } } } - // ?????????? + // ?????????? else if(!addressBookFlag && ptActAddressBookWin != NULL) @@ -1555,7 +1555,7 @@ void addressBookProc(void) } } } - // ??????? + // ??????? else if(addressBookFlag && ptActAddressBookWin != NULL) @@ -1565,7 +1565,7 @@ void addressBookProc(void) } -// ??????? +// ??????? void addressBookWindow1(void) { int mode = 0; @@ -1573,7 +1573,7 @@ void addressBookWindow1(void) int no; char msg[256]; - // ???k?????????? + // ????????????? // ??????????????????? if(mouse.onceState & MOUSE_LEFT_CRICK) { @@ -1587,7 +1587,7 @@ void addressBookWindow1(void) } } - // ?????????????? + // ?????????????? if(mode == 1) { addressBookFlag = FALSE; @@ -1604,7 +1604,7 @@ void addressBookWindow1(void) old_lssproto_DAB_send(sockfd, addressBookPage*MAX_ADR_BOOK_COUNT+((mode-2)/3)); } - // ????????????????? + // ????????????????? if(ptActAddressBookWin->hp >= 1) { for(i = 0; i < MAX_ADR_BOOK_COUNT; i++) @@ -1613,45 +1613,45 @@ void addressBookWindow1(void) if(ptActAddressBookChar[i] != NULL) { - // q?????????V??????? + // ???????????????? if(strlen(addressBook[no].name) > 0) { - // ??????k?????ѩ - // ??? + // ??????????? + // ??? ptActAddressBookChar[i]->atr &= (~ACT_ATR_HIDE); ptActAddressBookChar[i]->anim_chr_no = addressBook[no].graNo; - // q + //  sprintf_s(msg, "NAME. %s", addressBook[no].name); StockFontBuffer(addressBookX + 68, addressBookY + i * 110 + 28, FONT_PRIO_FRONT, FONT_PAL_WHITE, msg, 0); - // ??? + // ??? sprintf_s(msg, "LV. %d", addressBook[no].level); StockFontBuffer(addressBookX + 68, addressBookY + i * 110 + 46, FONT_PRIO_FRONT, FONT_PAL_WHITE, msg, 0); - // ????? + // ????? if(addressBook[i].onlineFlag != 0) { StockFontBuffer(addressBookX + 130, addressBookY + i * 110 + 46, - FONT_PRIO_FRONT, FONT_PAL_WHITE, "", 0); + FONT_PRIO_FRONT, FONT_PAL_WHITE, "线上", 0); } else { StockFontBuffer(addressBookX + 130, addressBookY + i * 110 + 46, - FONT_PRIO_FRONT, FONT_PAL_GRAY, "", 0); + FONT_PRIO_FRONT, FONT_PAL_GRAY, "断线", 0); } - // ???? + // ???? addressBookSelectStrItem[i*3+1] = StockFontBuffer(addressBookX + 68, addressBookY + i * 110 + 64, - FONT_PRIO_FRONT, FONT_PAL_YELLOW, "", 2); - // ??? + FONT_PRIO_FRONT, FONT_PAL_YELLOW, "送信", 2); + // ??? addressBookSelectStrItem[i*3+2] = StockFontBuffer(addressBookX + 112, addressBookY + i * 110 + 64, - FONT_PRIO_FRONT, FONT_PAL_YELLOW, "", 2); - // ????? + FONT_PRIO_FRONT, FONT_PAL_YELLOW, "收信", 2); + // ????? addressBookSelectStrItem[i*3+3] = StockFontBuffer(addressBookX + 156, addressBookY + i * 110 + 64, - FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ɾ", 2); + FONT_PRIO_FRONT, FONT_PAL_YELLOW, "删除", 2); } else { @@ -1664,14 +1664,14 @@ void addressBookWindow1(void) addressBookSelectStrItem[0] = StockFontBuffer(addressBookX + 56, addressBookY + 352, - FONT_PRIO_FRONT, FONT_PAL_YELLOW, "ر", 2); + FONT_PRIO_FRONT, FONT_PAL_YELLOW, "关闭", 2); } } int CHAR_getMaxHaveGold() { int MaxGold; -#ifdef _FIX_MAXGOLD // WON ADD Ǯ +#ifdef _FIX_MAXGOLD // WON ADD 增加人物金钱上限 int trans = pc.transmigration; MaxGold = 1000000 + trans*(1800000); #else diff --git a/石器时代8.5客户端最新源代码/石器源码/system/phonemsg.cpp b/石器时代8.5客户端最新源代码/石器源码/system/phonemsg.cpp index 90711a0..808a613 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/phonemsg.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/phonemsg.cpp @@ -1,16 +1,16 @@ -//========================================================================== -// : PhoneMsg.cpp -// : ʯʱ[Ѷ]ťĹʵ(V3.0Ĺ) -// ׫д : (Leiboy) -// : 20020126 -// ڶ : 20020202==>Multithread(ʽ) -// : 20020220==>MFCдWinsockʽ!(Ϊɰ!) -// İ : 20020226==>DNS(ʽ) -// ʽ : 20020304 -// ˵ : ϷгɹشһͨѶÿνWGS! +//========================================================================== +// 档名 : PhoneMsg.cpp +// 功用 : 石器时代[简讯]按钮的功能实作(V3.0后新增的功能) +// 撰写人 : 林 昌 磊 (Leiboy) +// 初版完成日期 : 2002年01月26日 +// 第二版更新日期 : 2002年02月02日==>新增Multithread(函式五) +// 第三版更新日期 : 2002年02月20日==>将MFC改写成Winsock方式!(本版为已完成版!) +// 第四版完成日期 : 2002年02月26日==>新增DNS(函式七) +// 线上正式运作日期 : 2002年03月04日 +// 补充说明 : 游戏中成功地传送一通简讯每次将扣WGS点数五点! //========================================================================== -//汾Ŀ +//先做版本的控制 #include "../systeminc/version.h" #ifdef __PHONEMESSAGE @@ -29,38 +29,38 @@ #include "../wgs/descrypt.h" #include "../other/caryIme.h" -#define MSG_SURE_D 26288 //ȷ()(ɫ) -#define MSG_SURE_U 26289 //ȷ()(ɫ) -#define MSG_CANCEL_U 26284 //ȡ(δ) -#define MSG_CANCEL_D 26285 //ȡ() -#define MSG_CLEAR_U 26298 //() -#define MSG_CLEAR_D 26299 //() +#define MSG_SURE_D 26288 //确定(按下)(黄色的) +#define MSG_SURE_U 26289 //确定(弹起)(黄色的) +#define MSG_CANCEL_U 26284 //取消(未按下) +#define MSG_CANCEL_D 26285 //取消(按下) +#define MSG_CLEAR_U 26298 //清除(弹起) +#define MSG_CLEAR_D 26299 //清除(按下) -//Messsage Log ר Begin +//Messsage 的Log 专用区 Begin #ifdef _STONDEBUG_ char logstr[512]; #define logfilename "message.log" #endif -//Messsage Log ר End +//Messsage 的Log 专用区 End BOOL QueryMyIP(char HostName[]); -//ʯѶServer IP : 210.64.97.17 +//石器简讯Server IP : 210.64.97.17 char *MsgIP; #define SMSDomainName "sms.hwaei.com.tw" -//ĿǰõASP filename -#define ASPname "//sms//stoneage.asp" //2002 Feb. 20! +//目前所采用的ASP filename +#define ASPname "//sms//stoneage.asp" //2002 Feb. 20后启用! int myvalue; char seqno[14]; //Wayia_seqno //************************************************ -//ʽһ : ʽASP乵ͨרúʽ -//شֵ : 0 --- & Ѷͳɹ -// 1 --- Ѷʧ -// 2 --- ֻ -// 3 --- ֻѶϢ() -// 4 --- ·˴ -// 5 --- WGS(ͨ)Ѳ!!(С) -// 6 --- ʱ(DNSʧ) -// 7 --- ASPش +//函式一 : 处理主程式与ASP间沟通的专用函式 +//回传值 : 0 --- 处理完毕 & 简讯发送成功 +// 1 --- 简讯发送失败 +// 2 --- 手机号码参数错误 +// 3 --- 手机讯息参数错误(过长) +// 4 --- 网路端错误 +// 5 --- WGS点数(或通数)已不足!!(小于五点) +// 6 --- 连线逾时(或DNS失败) +// 7 --- ASP回传错误 //************************************************ int SendPhoneMsg(char pid[16], char ppw[16], char pps[], char pms[]) { @@ -74,8 +74,8 @@ int SendPhoneMsg(char pid[16], char ppw[16], char pps[], char pms[]) i++; }while( dv && (i<8)); if(!dv) return 2; - //Jasonۺ,¶Ϊ66bytes!! Feb. 5,2002 - //16bytes! Feb.22,2002 + //和Jason讨论后,新订的文字上限为66bytes!! Feb. 5,2002 + //保留16bytes给玩家名称用! Feb.22,2002 int x=0,mc=0; do { @@ -91,7 +91,7 @@ int SendPhoneMsg(char pid[16], char ppw[16], char pps[], char pms[]) return 3; else -#ifdef _FIX_URLENCODE // WON ADD Ѷ޷ӿո +#ifdef _FIX_URLENCODE // WON ADD 北京修正简讯无法加空格的问题 { char OutTmp[768]; char *pInTmp,*pOutTmp; @@ -242,7 +242,7 @@ int SendPhoneMsg(char pid[16], char ppw[16], char pps[], char pms[]) if(result[0]=='1') { #ifdef _STONDEBUG_ - lstrcpy(logstr,"ʧ "); + lstrcpy(logstr,"失败 "); lstrcat(logstr,pps); sprintf_s(logstr,"%s %s",logstr,extpms); #endif @@ -264,7 +264,7 @@ int SendPhoneMsg(char pid[16], char ppw[16], char pps[], char pms[]) seqno[14] = 0; if(j == 14) return 5; #ifdef _STONDEBUG_ - lstrcpy(logstr,"ɹ-"); + lstrcpy(logstr,"成功-"); lstrcat(logstr,seqno); lstrcat(logstr," "); lstrcat(logstr,pps); @@ -278,9 +278,9 @@ int SendPhoneMsg(char pid[16], char ppw[16], char pps[], char pms[]) } //************************************************ -//ʽ : Log(LocalĿ¼)רúʽ -//شֵ : None -// ע : ֻDebug modeӲдlog!! +//函式二 : 产生Log档(于Local端目录下)的专用函式 +//回传值 : None +//附 注 : 只有Debug mode才在硬碟写入log档!! //************************************************ #ifdef _STONDEBUG_ void WriteLog( char cData[], char cFile[]) @@ -309,8 +309,8 @@ STR_BUFFER pno,ptext; static STR_BUFFER *MsgFocus[] ={ &pno, &ptext }; static int MsgFocusSw; //************************************************ -//ʽ : λijʼʽ -//شֵ : None +//函式三 : 资料输入栏位的初始化函式 +//回传值 : None //************************************************ void InitMsgInput() { @@ -342,8 +342,8 @@ void InitMsgInput() } //************************************************ -//ʽ : λʽ -//شֵ : None +//函式四 : 处理资料输入栏位的主函式 +//回传值 : None //************************************************ int InputMsgData() { @@ -400,8 +400,8 @@ HANDLE MHandle; extern short msgBtn; extern char szUser[],szPassword[]; //************************************************ -//ʽ : Multithreadʽ -//شֵ : OL +//函式五 : 处理Multithread的主函式 +//回传值 : OL //************************************************ DWORD WINAPI MsgThread(LPVOID param) { @@ -421,39 +421,39 @@ DWORD WINAPI MsgThread(LPVOID param) switch(myvalue) { case 1: - StockChatBufferLine("Ѷʧ!",FONT_PAL_RED); - StockChatBufferLine("²!!",FONT_PAL_WHITE); + StockChatBufferLine("本则简讯传送失败!",FONT_PAL_RED); + StockChatBufferLine("请您重新操作!!",FONT_PAL_WHITE); break; case 2: - StockChatBufferLine("ֻʽ!!",FONT_PAL_RED); - StockChatBufferLine("޷ͱѶ!",FONT_PAL_RED); + StockChatBufferLine("手机号码格式错误!!",FONT_PAL_RED); + StockChatBufferLine("无法发送本则简讯!",FONT_PAL_RED); break; case 3: - StockChatBufferLine("ֻѶϢ!!",FONT_PAL_RED); - StockChatBufferLine("޷ͱѶ!",FONT_PAL_RED); + StockChatBufferLine("手机讯息过长!!",FONT_PAL_RED); + StockChatBufferLine("无法发送本则简讯!",FONT_PAL_RED); break; case 4: - StockChatBufferLine("·!!",FONT_PAL_RED); - StockChatBufferLine("޷ͱѶ!",FONT_PAL_RED); + StockChatBufferLine("网路发生错误!!",FONT_PAL_RED); + StockChatBufferLine("无法发送本则简讯!",FONT_PAL_RED); break; case 5: - StockChatBufferLine("WGS(ͨ)Ѳ!!",FONT_PAL_RED); - StockChatBufferLine("޷ͱѶ!",FONT_PAL_RED); + StockChatBufferLine("您的WGS点数(或通数)已不足!!",FONT_PAL_RED); + StockChatBufferLine("无法发送本则简讯!",FONT_PAL_RED); break; case 6: - StockChatBufferLine("Ѷ޷!!",FONT_PAL_RED); - StockChatBufferLine("Ժ...",FONT_PAL_WHITE); + StockChatBufferLine("简讯服务器无法连结!!",FONT_PAL_RED); + StockChatBufferLine("请您稍后再试...",FONT_PAL_WHITE); break; case 7: - StockChatBufferLine("ѶûȷػӦ!!",FONT_PAL_RED); - StockChatBufferLine("޷ȷѶǷɹ?!",FONT_PAL_WHITE); + StockChatBufferLine("简讯服务器没有正确地回应!!",FONT_PAL_RED); + StockChatBufferLine("无法确定本则简讯是否成功?!",FONT_PAL_WHITE); break; case -1: - StockChatBufferLine("ʽڲ!!!",FONT_PAL_RED); - StockChatBufferLine("Ѷʧ!",FONT_PAL_RED); + StockChatBufferLine("程式内部错误!!!",FONT_PAL_RED); + StockChatBufferLine("本则简讯传送失败!",FONT_PAL_RED); break; default: - StockChatBufferLine("ѶѾͳ!",FONT_PAL_YELLOW); + StockChatBufferLine("简讯已经送出了!",FONT_PAL_YELLOW); } #ifdef _STONDEBUG_ if(logstr[0] != 0) WriteLog(logstr,logfilename); @@ -466,10 +466,10 @@ DWORD WINAPI MsgThread(LPVOID param) int MsgID; //************************************************ -//ʽ : ֻѶܵҪʽ -//شֵ : 0 --- ӴOPEN -// 1 --- ӴCLOSE -// 2 --- ȷĽ +//函式六 : 手机简讯功能的主要函式 +//回传值 : 0 --- 视窗OPEN +// 1 --- 视窗CLOSE +// 2 --- 按下确定的结束 //************************************************ int MsgProc() { @@ -478,7 +478,7 @@ int MsgProc() static int btnState[2]; static DWORD dwPressTime; static ACTION *pActMenuWin = NULL; - char MsgHint[][30] = {"Էֻ롣","Ѷ(50/Ӣ)","ͳѶ","رռѶӴ","ռѶݡ"}; + char MsgHint[][30] = {"对方的手机号码。","简讯内容(最多50中/英字)。","送出简讯。","关闭简讯视窗。","清空简讯内容。"}; if(MsgID == 0) { @@ -533,7 +533,7 @@ int MsgProc() btnState[id] = 1; id = -1; dwPressTime = TimeGetTime(); - play_se( 217, 320, 240); //ť + play_se( 217, 320, 240); //按钮声 } } @@ -561,19 +561,19 @@ int MsgProc() { id = 99; } - else //Escر + else //按Esc关闭 if( (joy_trg[ 0 ] & JOY_ESC) && GetImeString() == NULL) { id = 100; - play_se( 203, 320, 240);//Ӵر + play_se( 203, 320, 240);//视窗关闭声 } - else //ȡť + else //按下取消钮 if(btnState[1] == 1) { id = 100; play_se( 203, 320, 240); } - //رռѶӴ + //关闭简讯视窗 if( id >= 0) { DeathAction( pActMenuWin); @@ -584,8 +584,8 @@ int MsgProc() MHandle = CreateThread(NULL, 0, MsgThread,&dwThrdParam,0,&dwThreadID); if(MHandle == NULL) { - StockChatBufferLine("ҵϵͳԴѲ!!",FONT_PAL_RED); - StockChatBufferLine("Ѷʧ!",FONT_PAL_RED); + StockChatBufferLine("您的作业系统资源已不足!!",FONT_PAL_RED); + StockChatBufferLine("本则简讯发送失败!",FONT_PAL_RED); return 1; } return 2; @@ -598,9 +598,9 @@ int MsgProc() } //************************************************ -//ʽ : DNSרúʽ -//شֵ : TRUE --- תɹ -// FALSE --- תʧ +//函式七 : DNS专用函式 +//回传值 : TRUE --- 转换成功 +// FALSE --- 转换失败 //************************************************ BOOL QueryMyIP(char HostName[]) { diff --git a/石器时代8.5客户端最新源代码/石器源码/system/process.cpp b/石器时代8.5客户端最新源代码/石器源码/system/process.cpp index 3607778..5729161 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/process.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/process.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* process.c */ /************************/ #include "../systeminc/version.h" @@ -25,15 +25,15 @@ #include "../systeminc/handletime.h" #ifdef _NEW_MUISC_ -BOOL ʼ=TRUE; +BOOL 場宎掖劓秞氈=TRUE; #endif /* ???????? *******************************************************************/ extern void kakushi_command(void); -/* ????k? */ +/* ????吻? */ UINT ProcNo; -/* ??????k? */ +/* ??????吻? */ UINT SubProcNo; -/* ????k?(?????????v??) */ +/* ????吻?(?????????▔??) */ int ProcNo2; int SubProcNo2; @@ -55,7 +55,7 @@ void Process( void ) SubProcNo = SubProcNo2; } - /* ????? */ + /* ????希? */ switch (ProcNo) { case PROC_OPENNING: @@ -64,11 +64,11 @@ void Process( void ) InitProc(); initMapEffect(TRUE); // ??????????? break; - // ????????V??? + // ????????向??? case PROC_ID_PASSWORD: #ifdef _NEW_MUISC_ - if(ʼ) { - ʼ=FALSE; + if(場宎掖劓秞氈) { + 場宎掖劓秞氈=FALSE; play_bgm(27); } #endif @@ -78,8 +78,8 @@ void Process( void ) PlayPet.Proc(); #endif RunAction(); // ????????? - StockTaskDispBuffer(); // ??????????????? - FlashKeyboardCursor(); // ??????????? + StockTaskDispBuffer(); // ???牙???????????? + FlashKeyboardCursor(); // ????????????? ImeProc(); // ??????? #ifdef _LOGINKICK extern DWORD StartTime; @@ -87,60 +87,60 @@ void Process( void ) #endif break; - // ?????????k + // ????牙?????︻? case PROC_TITLE_MENU: - // ?????????? + // ????????丙???阪? BackBufferDrawType = DRAW_BACK_NORMAL; titleProc(); - TitleProduce(); // ????? + TitleProduce(); // ????? RunAction(); // ????????? - StockTaskDispBuffer(); // ??????????????? + StockTaskDispBuffer(); // ???牙???????????? //cary 2002.1.4 kakushi_command(); // ???????? break; - // ???k? - case PROC_CHAR_SELECT: // ???k - // ?????????? + // ???︻?? + case PROC_CHAR_SELECT: // ???︻? + // ????????丙???阪? BackBufferDrawType = DRAW_BACK_NORMAL; selectCharacterProc(); break; - // ???? + // ???? case PROC_CHAR_MAKE: - // ?????????? + // ????????丙???阪? BackBufferDrawType = DRAW_BACK_NORMAL; makeCharacterProc(); break; - // k?????????? + // ︻??????????? case PROC_CHAR_LOGIN_START: - // ?????????? + // ????????丙???阪? BackBufferDrawType = DRAW_BACK_NORMAL; // charLoginStart();??????????????????? // ????????????? initMap(); // ?????? - initPcAll(); // PCѩ????????? + initPcAll(); // PC?????????? initCharObj(); // ???????????? - initOpenServerWindow(); // ???????????????? - initFieldProc(); // ?????????? + initOpenServerWindow(); // ?????牙??????????? + initFieldProc(); // ??????牙岌???? initMapEffect(FALSE); // ??????????? EncountFlag = FALSE; logOutFlag = FALSE; - InitOhtaParam(); // ??????????^M?? + InitOhtaParam(); // ??????????兣?﹐?? #ifdef __SKYISLAND extern void SkyIslandInit(); SkyIslandInit(); #endif ChangeProc( PROC_CHAR_LOGIN ); - // ??????????? + // ??????????? fade_out_bgm(); break; case PROC_CHAR_LOGIN: - // ?????????? + // ????????丙???阪? BackBufferDrawType = DRAW_BACK_NORMAL; characterLoginProc(); break; // ????? case PROC_CHAR_LOGOUT: - // ?????????? + // ????????丙???阪? // BackBufferDrawType = DRAW_BACK_NORMAL; characterLogoutProc(); break; @@ -156,22 +156,22 @@ void Process( void ) resetPc(); // ????????????? initCharObj(); - // ?????? + // ?????? DeathAllAction(); - // ????? + // ????? ProduceInitFlag = TRUE; - // ???????????? + // ???????????? CopyBackBuffer(); - // ?????????? + // ????????丙???阪? BackBufferDrawType = DRAW_BACK_PRODUCE; - // ??????????? + // ??????????? fade_out_bgm(); // ???????? NowTime = TimeGetTime(); SubProcNo++; break; case 1: - // ?? + // ?? if (DrawProduce(PRODUCE_DOWN_ACCELE) == TRUE) { BackBufferDrawType = DRAW_BACK_NORMAL; @@ -179,49 +179,49 @@ void Process( void ) } break; case 2: - // ???? + // ???? break; } - // e????????? + // κ????????? if (disconnectServer()) { // ????????? cleanupNetwork(); // ???????????? PaletteChange(DEF_PAL, 0); - // ?????? + // ??????? //cary ChangeProc( PROC_ID_PASSWORD ); SubProcNo = 0; - // ?????? + // ?????? DeathAllAction(); disconnectServerFlag = FALSE; oldDisconnectServerFlag = FALSE; break; } RunAction(); // ????????? - StockTaskDispBuffer(); // ??????????????? + StockTaskDispBuffer(); // ???牙???????????? break; case PROC_BATTLE: /* ??????? */ BattleProc(); break; #ifdef _STONDEBUG_ - //case PROC_OHTA_TEST: /* ^??????? */ + //case PROC_OHTA_TEST: /* 兣???????? */ // OhtaTestProc(); // break; - //case PROC_TAKE_TEST: /* {????????? */ + //case PROC_TAKE_TEST: /* ㄌ?????????? */ // TakeTestProc(); // break; //case PROC_DWAF_TEST: // DWAF??? // dwafTestProc(); // break; - case PROC_SPR_VIEW: // ??????_???? + case PROC_SPR_VIEW: // ??????囝???? SprViewProc(); break; - case PROC_ANIM_VIEW: // ????????_???? + case PROC_ANIM_VIEW: // ????????囝???? AnimViewProc(); break; - case PROC_SE_TEST: // ???_???? + case PROC_SE_TEST: // ???囝???? SeTestProc(); break; #endif @@ -244,42 +244,42 @@ void Process( void ) } } -/* ??????? ***********************************************************/ +/* ????阪??? ***********************************************************/ void ChangeProc( int procNo ) { #ifdef _NEW_MUISC_ if(PROC_ID_PASSWORD==procNo){ - ʼ=TRUE; + 場宎掖劓秞氈=TRUE; //t_music_se_volume = t_music_bgm_volume = 15; } #endif ProcNo = procNo; - // ??????k????? + // ??????吻????? SubProcNo = 0; } -/* ??????? ***********************************************************/ +/* ????阪??? ***********************************************************/ void ChangeProc( int procNo, int subProcNo ) { - // ????k???? + // ????吻???? ProcNo = procNo; - // ??????k????? + // ??????吻????? SubProcNo = subProcNo; } -/* ???????????????????v???**************************/ +/* ????阪???????????????▔???**************************/ void ChangeProc2( int procNo ) { - // ????k???? + // ????吻???? ProcNo2 = procNo; SubProcNo2 = 0; } -/* ??????? ***********************************************************/ +/* ????阪??? ***********************************************************/ void ChangeProc2( int procNo, int subProcNo ) { - // ????k???? + // ????吻???? ProcNo2 = procNo; - // ??????k????? + // ??????吻????? SubProcNo2 = subProcNo; } @@ -289,7 +289,7 @@ void GameProc( void ) static BOOL produceFlag; switch( SubProcNo ){ case 0: - //cary ֹٴεʱӴ + //cary 滅砦婬棒腎奀腔弝敦紹隱 extern short helpBtn, actBtn; helpBtn = 0; actBtn = 0; @@ -318,7 +318,7 @@ void GameProc( void ) restorePtActCharObjAll(); initOpenServerWindow(); InitMenu(); -// BattleStatusBak[ 0 ] = NULL;// ???֢t??? +// BattleStatusBak[ 0 ] = NULL;// ???┤??? // BattleStatusReadPointer = BattleStatusWritePointer =0; GetKeyInputFocus( &MyChatBuffer ); SubProcNo++; @@ -333,16 +333,16 @@ void GameProc( void ) DispBuffer.DispCnt = 0; FontCnt = 0; - initCharPartsPrio(); // ?????????I???e?????? + initCharPartsPrio(); // ?????????!???叉?????? RunAction(); // ????????? - StockTaskDispBuffer(); // ??????????????? - stop_bgm(); //???_ - drawMap(); // ??? + StockTaskDispBuffer(); // ???牙???????????? + stop_bgm(); //???于 + drawMap(); // ???牙 MenuProc(); // ?????? ChatProc(); // ?????? ChatBufferToFontBuffer(); // ?????????????????????? ImeProc(); // ??????? - SortDispBuffer(); // ??????? + SortDispBuffer(); // 牙??????? // ??????????????? ClearBackSurface(); // ???????????????? @@ -357,10 +357,10 @@ void GameProc( void ) // ???????? NowTime = TimeGetTime(); - // ?????????? + // ????????丙???阪? // BackBufferDrawType = DRAW_BACK_NORMAL; BackBufferDrawType = DRAW_BACK_PRODUCE; - // ?? + // ?? ProduceInitFlag = TRUE; DrawProduce( PRODUCE_BRAN_BIG ); /*#ifdef __SKYISLAND @@ -370,7 +370,7 @@ void GameProc( void ) break; case 103: - // ?? + // ?? BackBufferDrawType = DRAW_BACK_PRODUCE; if( DrawProduce( PRODUCE_BRAN_BIG ) == TRUE ) { @@ -387,7 +387,7 @@ void GameProc( void ) } break; - // ???? + // ???? case 200: ProduceInitFlag = TRUE; @@ -399,17 +399,17 @@ void GameProc( void ) NowTime = TimeGetTime(); // S??????C? warpEffectProc();????? - // ???????????????? + // ????????????????? SubProcNo++; case 201: - // ?? + // ?? BackBufferDrawType = DRAW_BACK_PRODUCE; if( DrawProduce( PRODUCE_CENTER_PRESSIN ) == TRUE ) { SubProcNo++; } - drawField(); // ??????????? + drawField(); // ????????????牙 MenuProc(); // ?????? ImeProc(); // ??????? break; @@ -418,7 +418,7 @@ void GameProc( void ) if( !warpEffectStart || !warpEffectOk ) { BackBufferDrawType = DRAW_BACK_NORMAL; - drawField(); // ??????????? + drawField(); // ????????????牙 MenuProc(); // ?????? ImeProc(); // ??????? break; @@ -427,17 +427,17 @@ void GameProc( void ) warpEffectOk = FALSE; SubProcNo++; case 203: - // ????? + // ????? // ??????? paletteProc(); DispBuffer.DispCnt = 0; FontCnt = 0; - initCharPartsPrio(); // ?????????I???e?????? + initCharPartsPrio(); // ?????????!???叉?????? RunAction(); // ????????? - StockTaskDispBuffer(); // ??????????????? + StockTaskDispBuffer(); // ???牙???????????? redrawMap(); - drawMap(); // ??? + drawMap(); // ???牙 // ????????? if( (mapEffectRainLevel == 0 && oldMapEffectRainLevel != 0 ) @@ -446,12 +446,12 @@ void GameProc( void ) initMapEffect(FALSE); ChatProc(); // ?????? ChatBufferToFontBuffer(); // ?????????????????????? - SortDispBuffer(); // ??????? + SortDispBuffer(); // 牙??????? // ??????????????? ClearBackSurface(); if( (mapEffectRainLevel != 0 && oldMapEffectRainLevel == 0 ) || (mapEffectSnowLevel != 0 && oldMapEffectSnowLevel == 0 ) ) - mapEffectProc2( 80 ); // ???????????D?? + mapEffectProc2( 80 ); // ???????????.?? // ???????????????? PutBmp(); // ?????????????????????? @@ -462,7 +462,7 @@ void GameProc( void ) // if( map_bgm_no != now_bgm ) // { -// stop_bgm(); //???_ +// stop_bgm(); //???于 // play_bgm( map_bgm_no ); // } @@ -474,7 +474,7 @@ void GameProc( void ) SubProcNo++; case 204: - // ?? + // ?? BackBufferDrawType = DRAW_BACK_PRODUCE; if( DrawProduce( PRODUCE_CENTER_PRESSOUT ) == TRUE ) { @@ -492,52 +492,52 @@ void GameProc( void ) play_bgm ( 24 ) ; #endif } - drawField(); // ??????????? + drawField(); // ????????????牙 MenuProc(); // ?????? ImeProc(); // ??????? break; case 1: - initPc(); // ????????? + initPc(); // ????????? resetFieldProc(); // ???????????? restorePtActCharObjAll(); // ????????????????? - initOpenServerWindow(); // ???????????????? + initOpenServerWindow(); // ?????牙??????????? InitMenu(); // ?????????? -// BattleStatusBak[ 0 ] = NULL;// ???֢t??? +// BattleStatusBak[ 0 ] = NULL;// ???┤??? // BattleStatusReadPointer = BattleStatusWritePointer =0; - // V??????x + // 向??????台 GetKeyInputFocus( &MyChatBuffer ); - // ???? + // ???? if( produceFlag == TRUE ){ - // Pf???????????? + // ·卯???????????? //if( BattleResultWndFlag == TRUE ){ - // ????? + // ????? // ??????? DispBuffer.DispCnt = 0; FontCnt = 0; - initCharPartsPrio(); // ?????????I???e?????? + initCharPartsPrio(); // ?????????!???叉?????? RunAction(); // ????????? - StockTaskDispBuffer(); // ??????????????? - stop_bgm(); //???_ + StockTaskDispBuffer(); // ???牙???????????? + stop_bgm(); //???于 updateMapArea(); redrawMap(); - drawMap(); // ??? + drawMap(); // ???牙 //???????? if(!draw_map_bgm_flg){ - //???????? + //???????? play_bgm(map_bgm_no = now_bgm); draw_map_bgm_flg = 1; } MenuProc(); // ?????? - // ???????D??????? + // ???????主??????? //StockBoxDispBuffer( 0, 456, lpDraw->xSize, lpDraw->ySize, DISP_PRIO_MENU, 0, 1 ); ChatProc(); // ?????? ChatBufferToFontBuffer(); // ?????????????????????? ImeProc(); // ??????? - SortDispBuffer(); // ??????? + SortDispBuffer(); // 牙??????? // ??????????????? ClearBackSurface(); // ???????????????? @@ -549,12 +549,12 @@ void GameProc( void ) FontCnt = 0; // ???????? NowTime = TimeGetTime(); - // ?????????? + // ????????丙???阪? BackBufferDrawType = DRAW_BACK_PRODUCE; - // ?? + // ?? DrawProduce( PRODUCE_4WAY_IN ); }else{ - // ?????? + // ?????? produceFlag = TRUE; SubProcNo++; } @@ -562,8 +562,8 @@ void GameProc( void ) break; - case 2: // ???????? - // ?? + case 2: // ???????? + // ?? if( DrawProduce( PRODUCE_4WAY_IN ) == TRUE ){ warpEffectStart = FALSE; warpEffectOk = FALSE; @@ -585,53 +585,53 @@ void GameProc( void ) SubProcNo = 3; case 3: - // ?????????? + // ????????丙???阪? BackBufferDrawType = DRAW_BACK_NORMAL; paletteProc(); - initItemOverlapCheck(); // ???????????????? + initItemOverlapCheck(); // ???????????????? if( !transmigrationEffectFlag ){ - drawGrid(); // ???????? + drawGrid(); // ????????牙 fieldProc(); // ????????? // Nuke 0407 if( bNewServer){ - moveProc(); // ?h?? + moveProc(); // ?去?? }else - moveProc(); // ?h?? + moveProc(); // ?去?? } - initCharPartsPrio(); // ?????????I???e?????? + initCharPartsPrio(); // ?????????!???叉?????? //addressBookProc(); // ????????? - openServerWindowProc(); // ????????? - drawFieldInfoWin(); // ??????ѩ + openServerWindowProc(); // ????????? + drawFieldInfoWin(); // ??????? /* ????????? */ RunAction(); - // ??????????????? - // ed????????? + // ???牙???????????? + // 叉吳????????? StockTaskDispBuffer(); - mapEffectProc(); // ???????????D?? + mapEffectProc(); // ???????????.?? - drawMap2(); // ??? + drawMap2(); // ???牙 if( !transmigrationEffectFlag ){ - drawField(); // ??????????? + drawField(); // ????????????牙 /* ?????? */ ChatProc(); // ?????????????????????? ChatBufferToFontBuffer(); - // ??????????? + // ????????????? FlashKeyboardCursor(); // ?????? MenuProc(); // ??????? ImeProc(); } - // ??q????????????? + // ??┼????????????? TimeZoneProc(); /*cary @@ -640,7 +640,7 @@ void GameProc( void ) if( joy_trg[ 0 ] & JOY_P_DOWN ){ if( pc.ptAct != NULL ){ resetMap(); // ????????? - // ??????? + // ??????? if( bNewServer) lssproto_EN_send( sockfd, pc.ptAct->gx, pc.ptAct->gy ); else @@ -655,11 +655,11 @@ void GameProc( void ) resetPc(); // PC???? resetCharObj(); // ????????????? resetMap(); // ????????? - clearPtActPartyParam(); // ??ѩ?????????????NULL??? - fieldInfoTime = 0; // ?ѩ????? - drawFieldInfoWin(); // ??????ѩ + clearPtActPartyParam(); // ????????????????NULL??? + fieldInfoTime = 0; // ??????? + drawFieldInfoWin(); // ??????? resetFieldProc(); // ???????????? - nowEncountPercentage = minEncountPercentage;// ???????????? + nowEncountPercentage = minEncountPercentage;// ???????????? sendEnFlag = 0; encountNowFlag = 1; eventEnemySendFlag = 0; @@ -667,40 +667,40 @@ void GameProc( void ) jbSendFlag = 0; // ????????????????? if( MenuToggleFlag & JOY_CTRL_M ) MapWmdFlagBak = TRUE; - // ??????????? + // ??????????? ResultWndTimer = RESULT_WND_CLOSE_TIME; InitMenu(); // ?????????? BattleCmd[ 0 ] = NULL; // ?????????? // BattleCmdBak[ 0 ] = NULL; // ?????????? // BattleCmdReadPointer = BattleCmdWritePointer =0; - BattleStatus[ 0 ] = NULL; // ???֢t??? - //BattleStatusBak[ 0 ] = NULL;// ???֢t??? + BattleStatus[ 0 ] = NULL; // ???┤??? + //BattleStatusBak[ 0 ] = NULL;// ???┤??? // BattleStatusReadPointer = BattleStatusWritePointer =0; - BattleTurnReceiveFlag = TRUE; // ???????? + BattleTurnReceiveFlag = TRUE; // ???????? // ??????? play_se( 215, 320, 240 ); - // ??????V + // ??????卒㎏ now_bgm = t_music_bgm_no; - // ???_ + // ???于 stop_bgm(); //SubProcNo++; ChangeProc2( PROC_GAME, SubProcNo+1 ); - // printf("\nսԤִ SubProcNo=%d",SubProcNo+1); + // printf("\n桵須啎揭燴硒俴俇救 SubProcNo=%d",SubProcNo+1); } break; - case 4: // ???????????????????? - // ???????????? + case 4: // ???????????????????? + // ???????????? CopyBackBuffer(); - // ?????????? + // ????????丙???阪? BackBufferDrawType = DRAW_BACK_PRODUCE; SubProcNo++; - // printf("\nDRAW_BACK_PRODUCEִ SubProcNo=%d",SubProcNo); + // printf("\nDRAW_BACK_PRODUCE硒俴俇救 SubProcNo=%d",SubProcNo); break; - case 5: // ??????? + case 5: // ??????? - // ?? + // ?? if( DrawProduce( PRODUCE_HAGARE_OCHI_OUT ) == TRUE ){ //if( DrawProduce( PRODUCE_RIGHT_ACCELE ) == TRUE ){ //if( DrawProduce( PRODUCE_LEFT_RIGHT_ACCELE ) == TRUE ){ @@ -710,19 +710,19 @@ void GameProc( void ) initMapEffect(FALSE); #endif ChangeProc( PROC_BATTLE ); - // printf("\nPROC_BATTLE SubProcNo=%d",SubProcNo); + // printf("\nPROC_BATTLE載遙俇救 SubProcNo=%d",SubProcNo); } MenuProc(); // ?????? - // printf("\nMenuProcִ"); + // printf("\nMenuProc硒俴俇救"); ImeProc(); // ??????? - // printf("\nImeProcִ"); + // printf("\nImeProc硒俴俇救"); break; } } -// ????? +// ????? void warpEffectProc( void ) { oldMapEffectRainLevel = mapEffectRainLevel; @@ -736,29 +736,29 @@ void warpEffectProc( void ) InitMenu2(); fieldProc(); // ????????? - initCharPartsPrio(); // ?????????I???e?????? - openServerWindowProc(); // ????????? + initCharPartsPrio(); // ?????????!???叉?????? + openServerWindowProc(); // ????????? - fieldInfoTime = 0; // ?ѩ????? - drawFieldInfoWin(); // ??????ѩ + fieldInfoTime = 0; // ??????? + drawFieldInfoWin(); // ??????? /* ????????? */ RunAction(); - // ??????????????? + // ???牙???????????? StockTaskDispBuffer(); - mapEffectProc(); // ???????????D?? + mapEffectProc(); // ???????????.?? redrawMap(); - drawMap(); // ??? + drawMap(); // ???牙 /* ?????? */ ChatProc(); // ?????????????????????? ChatBufferToFontBuffer(); - // ??q????????????? + // ??┼????????????? // TimeZoneProc(); - SortDispBuffer(); // ??????? + SortDispBuffer(); // 牙??????? // ??????????????? ClearBackSurface(); // ???????????????? @@ -804,8 +804,8 @@ void repairMap( void ) DispBuffer.DispCnt = 0; FontCnt = 0; - drawTile(); // ??? - SortDispBuffer(); // ??????? + drawTile(); // ???牙 + SortDispBuffer(); // 牙??????? // ??????????????? //cary 2001 11 8 ClearBackSurface(); @@ -832,17 +832,17 @@ void paletteProc( void ) // ???????? // the second PaletteChange( SaTimeZoneNo, 0 ); PaletteChange( SaTimeZoneNo, palTime ); - // ??q???????????? + // ??┼???????????? TimeZonePalChangeFlag = TRUE; palNo = -2; } else if( palNo >= 0 ) { - // ?e????@e + // ?叉???? 叉 // the second PaletteChange( palNo, 0 );// ???????? PaletteChange( palNo, palTime );// ???????? - // ??q????????????? + // ??┼????????????? TimeZonePalChangeFlag = FALSE; palNo = -2; } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/produce.cpp b/石器时代8.5客户端最新源代码/石器源码/system/produce.cpp index c1998d1..95debb1 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/produce.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/produce.cpp @@ -1,17 +1,17 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/battleProc.h" #include "../systeminc/produce.h" #include "../systeminc/anim_tbl.h" #include "../systeminc/loadrealbin.h" -// ??????? +// ??????? int ProduceInitFlag = TRUE; #ifdef _READ16BITBMP extern BOOL g_bUseAlpha; #endif -// ???????????? **************************************************/ +// ???????????? **************************************************/ void CopyBackBuffer( void ) { // ?????????????????????? @@ -21,8 +21,8 @@ void CopyBackBuffer( void ) #endif } -//Syu Mark δʹ -//ƶ +//Syu Mark 帤妏蚚 +//樓厒痄雄 BOOL ProduceAccele( int mode ) { RECT rect = { 0, 0, DEF_APPSIZEX, DEF_APPSIZEY }; @@ -34,48 +34,48 @@ BOOL ProduceAccele( int mode ) ProduceInitFlag = FALSE; x = 0; x2 = 0; y = 0;a = 0; } - // ?h??? + // ?去???希? switch( mode ){ - case 0: // ?L?h - y -= a; // ?h - // ?LT??? + case 0: // ?﹩?去 + y -= a; // ?去 + // ?﹩冉??? a += 0.3F; // ???????? if( y <= -lpDraw->ySize ) endFlag = TRUE; break; - case 1: // ??L?h - y += a; // ?h - // ?LT??? + case 1: // ??﹩?去 + y += a; // ?去 + // ?﹩冉??? a += 0.3F; // ???????? if( y >= lpDraw->ySize ) endFlag = TRUE; break; - case 2: // ??L?h - x -= a; // ?h - // ?LT??? + case 2: // ??﹩?去 + x -= a; // ?去 + // ?﹩冉??? a += 0.4F; // ???????? if( x <= -lpDraw->xSize ) endFlag = TRUE; break; - case 3: // ??L?h - x += a; // ?h - // ?LT??? + case 3: // ??﹩?去 + x += a; // ?去 + // ?﹩冉??? a += 0.4F; // ???????? if( x >= lpDraw->xSize ) endFlag = TRUE; break; - case 4: // ???L?h - x += a; // ?h - x2 -= a; // ?h - // ?LT??? + case 4: // ???﹩?去 + x += a; // ?去 + x2 -= a; // ?去 + // ?﹩冉??? a += 0.4F; // ???????? if( x >= lpDraw->xSize ) endFlag = TRUE; break; - case 5: // ??L?h - y += a; // ?h - y2 -= a; // ?h - // ?LT??? + case 5: // ??﹩?去 + y += a; // ?去 + y2 -= a; // ?去 + // ?﹩冉??? a += 0.3F; // ???????? if( y >= lpDraw->ySize ) endFlag = TRUE; @@ -83,10 +83,10 @@ BOOL ProduceAccele( int mode ) } // ??????????????? // ClearBackSurface(); - // ????? + // ??希??? if( mode == 4 || mode == 5 ){ int i; - // ????? + // ??希??? for( i = 0 ; i < lpDraw->ySize ; i++ ){ rect.top = i; rect.bottom = i + 1; @@ -96,25 +96,25 @@ BOOL ProduceAccele( int mode ) if( mode == 4 ){ // ???? if( i & 1 ){ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( (int)x, i, &rect, lpBattleSurface ); }else{ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( (int)x2, i, &rect, lpBattleSurface ); } }else{ // ???? if( i & 1 ){ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( 0, i + (int)y, &rect, lpBattleSurface ); }else{ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( 0, i + (int)y2, &rect, lpBattleSurface ); } } } }else{ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( (int)x, (int)y, &rect, lpBattleSurface ); } if( endFlag == TRUE ){ @@ -124,7 +124,7 @@ BOOL ProduceAccele( int mode ) y = 0; y2 = 0; a = 0; - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; return TRUE; @@ -133,8 +133,8 @@ BOOL ProduceAccele( int mode ) } -//Syu Mark δʹ -//ƶ +//Syu Mark 帤妏蚚 +//熬厒痄雄 BOOL ProduceBrake( int mode ) { RECT rect = { 0, 0, DEF_APPSIZEX, DEF_APPSIZEY }; @@ -146,61 +146,61 @@ BOOL ProduceBrake( int mode ) ProduceInitFlag = FALSE; endFlag = -1; } - // ?h??? + // ?去???希? switch( mode ){ - case 0: // ?L?h + case 0: // ?﹩?去 if( endFlag == -1 ){ x = 0; y = 513.2F; a = 17.4F; endFlag = FALSE; } - y -= a; // ?h - // ?LT??? + y -= a; // ?去 + // ?﹩冉??? a -= 0.3F; // ???????? if( a <= 0 ) endFlag = TRUE; break; - case 1: // ??L?h + case 1: // ??﹩?去 if( endFlag == -1 ){ x = 0; y = -513.2F; a = 17.4F; endFlag = FALSE; } - y += a; // ?h - // ?LT??? + y += a; // ?去 + // ?﹩冉??? a -= 0.3F; // ???????? if( a <= 0 ) endFlag = TRUE; break; - case 2: // ??L?h + case 2: // ??﹩?去 if( endFlag == -1 ){ x = 661; y = 0; a = 22.8F; endFlag = FALSE; } - x -= a; // ?h - // ?LT??? + x -= a; // ?去 + // ?﹩冉??? a -= 0.4F; // ???????? if( a <= 0 ) endFlag = TRUE; break; - case 3: // ??L?h + case 3: // ??﹩?去 if( endFlag == -1 ){ x = -661; y = 0; a = 22.8F; endFlag = FALSE; } - x += a; // ?h - // ?LT??? + x += a; // ?去 + // ?﹩冉??? a -= 0.4F; // ???????? if( a <= 0 ) endFlag = TRUE; break; - case 4: // ???L?h + case 4: // ???﹩?去 if( endFlag == -1 ){ x = -661; x2 = 661; @@ -208,14 +208,14 @@ BOOL ProduceBrake( int mode ) a = 22.8F; endFlag = FALSE; } - x += a; // ?h - x2 -= a; // ?h - // ?LT??? + x += a; // ?去 + x2 -= a; // ?去 + // ?﹩冉??? a -= 0.4F; // ???????? if( a <= 0 ) endFlag = TRUE; break; - case 5: // ??L?h + case 5: // ??﹩?去 if( endFlag == -1 ){ x = 0; y = -513.2F; @@ -223,9 +223,9 @@ BOOL ProduceBrake( int mode ) a = 17.4F; endFlag = FALSE; } - y += a; // ?h - y2 -= a; // ?h - // ?LT??? + y += a; // ?去 + y2 -= a; // ?去 + // ?﹩冉??? a -= 0.3F; // ???????? if( a <= 0 ) endFlag = TRUE; @@ -233,10 +233,10 @@ BOOL ProduceBrake( int mode ) } // ??????????????? // ClearBackSurface(); - // ????? + // ??希??? if( mode == 4 || mode == 5 ){ int i; - // ????? + // ??希??? for( i = 0 ; i < lpDraw->ySize ; i++ ){ rect.top = i; rect.bottom = i + 1; @@ -246,30 +246,30 @@ BOOL ProduceBrake( int mode ) if( mode == 4 ){ // ???? if( i & 1 ){ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( (int)x, i, &rect, lpBattleSurface ); }else{ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( (int)x2, i, &rect, lpBattleSurface ); } }else{ // ???? if( i & 1 ){ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( 0, i + (int)y, &rect, lpBattleSurface ); }else{ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( 0, i + (int)y2, &rect, lpBattleSurface ); } } } }else{ - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( (int)x, (int)y, &rect, lpBattleSurface ); } if( endFlag == TRUE ){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; // ?????? @@ -279,7 +279,7 @@ BOOL ProduceBrake( int mode ) return FALSE; } -//ķƶ +//侐源砃痄雄 BOOL Produce4Way( int mode ) { RECT rect[ 4 ] = { @@ -295,9 +295,9 @@ BOOL Produce4Way( int mode ) ProduceInitFlag = FALSE; endFlag = -1; } - // ?h??? + // ?去???希? switch( mode ){ - case 0: // ??? + case 0: // ???? if( endFlag == -1 ){ x[ 0 ] = 0; y[ 0 ] = 0; @@ -309,7 +309,7 @@ BOOL Produce4Way( int mode ) y[ 3 ] = 240 + (DISPLACEMENT_Y >> 1); endFlag = FALSE; } - // ?h + // ?去 x[ 0 ] -= d; y[ 0 ] -= d; x[ 1 ] += d; @@ -321,7 +321,7 @@ BOOL Produce4Way( int mode ) // ???????? if( x[ 0 ] <= -320 - (DISPLACEMENT_X >> 1) ) endFlag = TRUE; break; - case 1: // ?? + case 1: // ???? if( endFlag == -1 ){ x[ 0 ] = -280; y[ 0 ] = -280; @@ -333,7 +333,7 @@ BOOL Produce4Way( int mode ) y[ 3 ] = 240 + 280 + (DISPLACEMENT_Y >> 1); endFlag = FALSE; } - // ?h + // ?去 x[ 0 ] += d; y[ 0 ] += d; x[ 1 ] -= d; @@ -355,15 +355,15 @@ BOOL Produce4Way( int mode ) rect[i].left >>= 1; rect[i].right >>= 1; rect[i].bottom >>= 1; - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ] / 2, y[ i ] / 2, &rect[ i ], lpBattleSurface ); } else { - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ], y[ i ], &rect[ i ], lpBattleSurface ); } } if( endFlag == TRUE ){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; // ?????? @@ -374,10 +374,10 @@ BOOL Produce4Way( int mode ) } #ifdef _NEW_RESOMODE -//ս +//輛桵須裁邈 BOOL ProduceHagare( int mode ) { - //иλС + //輸賃等弇湮苤 //1024 * 768 //int CutX = 128 ; //int CutY = 96 ; @@ -398,9 +398,9 @@ BOOL ProduceHagare( int mode ) ProduceInitFlag = FALSE; endFlag = -1; } - // ?h??? + // ?去???希? switch( mode ){ - case 0: // ?? + case 0: // ?? // ??? if( endFlag == -1 ){ for( i = 0 ; i < 8 ; i++ ){ @@ -422,13 +422,13 @@ BOOL ProduceHagare( int mode ) while( flag[ rnd ] == FALSE ){ rnd = Rnd( 0, 63 ); } - // ????? + // ????? flag[ rnd ] = FALSE; cnt++; // ???????? if( cnt >= 64 ) endFlag = TRUE; break; - case 1: // ??? + case 1: // ??? // ??? if( endFlag == -1 ){ for( i = 0 ; i < 8 ; i++ ){ @@ -450,13 +450,13 @@ BOOL ProduceHagare( int mode ) while( flag[ rnd ] == TRUE ){ rnd = Rnd( 0, 63 ); } - // ????? + // ????? flag[ rnd ] = TRUE; cnt++; // ???????? if( cnt >= 64 ) endFlag = TRUE; break; - case 2: // ??????? + case 2: // ??????? // ??? if( endFlag == -1 ){ for( i = 0 ; i < 8 ; i++ ){ @@ -485,7 +485,7 @@ BOOL ProduceHagare( int mode ) flag[ rnd ] = 1; cnt2++; } - // ?h + // ?去 for( i = 0 ; i < 64 ; i++ ){ if( flag[ i ] == 1 ){ a[ i ]++; @@ -499,7 +499,7 @@ BOOL ProduceHagare( int mode ) // ???????? if( cnt >= 64 ) endFlag = TRUE; break; - case 3: // ?????? + case 3: // ?????? // ??? if( endFlag == -1 ){ for( i = 0 ; i < 8 ; i++ ){ @@ -528,7 +528,7 @@ BOOL ProduceHagare( int mode ) flag[ rnd ] = 1; cnt2++; } - // ?h + // ?去 for( i = 0 ; i < 64 ; i++ ){ if( flag[ i ] == 1 ){ a[ i ]++; @@ -558,10 +558,10 @@ BOOL ProduceHagare( int mode ) rect.left >>= 1; rect.right >>= 1; rect.bottom >>= 1; - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ] / 2, y[ i ] / 2, &rect, lpBattleSurface ); } else { - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ], y[ i ], &rect, lpBattleSurface ); } } @@ -578,16 +578,16 @@ BOOL ProduceHagare( int mode ) rect.left >>= 1; rect.right >>= 1; rect.bottom >>= 1; - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ] / 2, y[ i ] / 2, &rect, lpBattleSurface ); } else { - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ], y[ i ], &rect, lpBattleSurface ); } } } if( endFlag == TRUE ){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; // ?????? @@ -597,7 +597,7 @@ BOOL ProduceHagare( int mode ) return FALSE; } #else -//ս +//輛桵須裁邈 BOOL ProduceHagare( int mode ) { RECT rect; @@ -613,9 +613,9 @@ BOOL ProduceHagare( int mode ) ProduceInitFlag = FALSE; endFlag = -1; } - // ?h??? + // ?去???希? switch( mode ){ - case 0: // ?? + case 0: // ?? // ??? if( endFlag == -1 ){ for( i = 0 ; i < 8 ; i++ ){ @@ -637,13 +637,13 @@ BOOL ProduceHagare( int mode ) while( flag[ rnd ] == FALSE ){ rnd = Rnd( 0, 63 ); } - // ????? + // ????? flag[ rnd ] = FALSE; cnt++; // ???????? if( cnt >= 64 ) endFlag = TRUE; break; - case 1: // ??? + case 1: // ??? // ??? if( endFlag == -1 ){ for( i = 0 ; i < 8 ; i++ ){ @@ -665,13 +665,13 @@ BOOL ProduceHagare( int mode ) while( flag[ rnd ] == TRUE ){ rnd = Rnd( 0, 63 ); } - // ????? + // ????? flag[ rnd ] = TRUE; cnt++; // ???????? if( cnt >= 64 ) endFlag = TRUE; break; - case 2: // ??????? + case 2: // ??????? // ??? if( endFlag == -1 ){ for( i = 0 ; i < 8 ; i++ ){ @@ -700,7 +700,7 @@ BOOL ProduceHagare( int mode ) flag[ rnd ] = 1; cnt2++; } - // ?h + // ?去 for( i = 0 ; i < 64 ; i++ ){ if( flag[ i ] == 1 ){ a[ i ]++; @@ -714,7 +714,7 @@ BOOL ProduceHagare( int mode ) // ???????? if( cnt >= 64 ) endFlag = TRUE; break; - case 3: // ?????? + case 3: // ?????? // ??? if( endFlag == -1 ){ for( i = 0 ; i < 8 ; i++ ){ @@ -743,7 +743,7 @@ BOOL ProduceHagare( int mode ) flag[ rnd ] = 1; cnt2++; } - // ?h + // ?去 for( i = 0 ; i < 64 ; i++ ){ if( flag[ i ] == 1 ){ a[ i ]++; @@ -773,10 +773,10 @@ BOOL ProduceHagare( int mode ) rect.left >>= 1; rect.right >>= 1; rect.bottom >>= 1; - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ] / 2, y[ i ] / 2, &rect, lpBattleSurface ); } else { - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ], y[ i ], &rect, lpBattleSurface ); } } @@ -793,16 +793,16 @@ BOOL ProduceHagare( int mode ) rect.left >>= 1; rect.right >>= 1; rect.bottom >>= 1; - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ] / 2, y[ i ] / 2, &rect, lpBattleSurface ); } else { - // ??????????L???e? + // ??????????﹩???鄸?叉? DrawSurfaceFast2( x[ i ], y[ i ], &rect, lpBattleSurface ); } } } if( endFlag == TRUE ){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; // ?????? @@ -814,7 +814,7 @@ BOOL ProduceHagare( int mode ) #endif #ifdef _NEW_RESOMODE -//軻ɿȵX , Y ֵ +//剒遙傖褫眕淕壺賤昴僅腔X , Y 硉 //1024 * 768 //#define BRAN_SIZE_X 32 //#define BRAN_SIZE_Y 16 @@ -830,7 +830,7 @@ static int pos_tbl[( ( 800 ) /BRAN_SIZE_Y)*( ( 1024 )/BRAN_SIZE_X)*2]; static int bran_flg = 0; //static int bran_flg = 0; -//ɻķ෴ +//蚕賒醱笢陑砃侐源孺湮摯眈毀 BOOL Produce_bran_small(int ang) { RECT rect; @@ -842,7 +842,7 @@ BOOL Produce_bran_small(int ang) bran_flg = 0; } if(bran_flg == 0){ //???? - bran_flg = 1; //????? + bran_flg = 1; //????? d0 = 0; for( d7= -240 - (DISPLACEMENT_Y >> 1) + (BRAN_SIZE_Y >> 1); d7<240 + (DISPLACEMENT_Y >> 1) + (BRAN_SIZE_Y >> 1); d7+=BRAN_SIZE_Y){ for(d6=-320 - (DISPLACEMENT_X >> 1) + (BRAN_SIZE_X >> 1); d6<320 + (DISPLACEMENT_X >> 1) + (BRAN_SIZE_X >> 1); d6+=BRAN_SIZE_X){ @@ -885,7 +885,7 @@ BOOL Produce_bran_small(int ang) bran_cnt += ang; if(ang < 0){ if(bran_cnt < 0){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; bran_flg = 0; @@ -893,7 +893,7 @@ BOOL Produce_bran_small(int ang) } } else { if(bran_cnt > 64){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; bran_flg = 0; @@ -903,7 +903,7 @@ BOOL Produce_bran_small(int ang) return FALSE; } -//Syu Mark δʹ +//Syu Mark 帤妏蚚 #define BREAK_UP 8 BOOL Produce_break_up(int ang) { @@ -915,7 +915,7 @@ BOOL Produce_break_up(int ang) bran_flg = 0; } if(bran_flg == 0){ //???? - bran_flg = 1; //???? + bran_flg = 1; //阪???? if(ang < 0){ bran_cnt = lpDraw->ySize; } else { @@ -932,27 +932,27 @@ BOOL Produce_break_up(int ang) if(ang < 0){ bran_cnt -= BREAK_UP; if(bran_cnt < 0){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; - bran_flg = 0; //???? + bran_flg = 0; //阪???? return TRUE; } } else { bran_cnt += BREAK_UP; if(bran_cnt > lpDraw->ySize){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; - bran_flg = 0; //???? + bran_flg = 0; //阪???? return TRUE; } } return FALSE; } -//Syu Mark δʹ -// ????? ******************************************************************/ +//Syu Mark 帤妏蚚 +// ????? ******************************************************************/ BOOL Produce_break_up2(int ang) { RECT rect = { 0, 0, 640, 0 }; @@ -963,7 +963,7 @@ BOOL Produce_break_up2(int ang) bran_flg = 0; } if(bran_flg == 0){ //???? - bran_flg = 1; //???? + bran_flg = 1; //阪???? if(ang < 0){ bran_cnt = lpDraw->ySize; } else { @@ -980,26 +980,26 @@ BOOL Produce_break_up2(int ang) if(ang < 0){ bran_cnt -= BREAK_UP; if(bran_cnt < 0){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; - bran_flg = 0; //???? + bran_flg = 0; //阪???? return TRUE; } } else { bran_cnt += BREAK_UP; if(bran_cnt > lpDraw->ySize){ - // ????֢t? + // ????┤阪? if( GameState == GAME_FIELD_TO_ENCOUNT ) GameState = GAME_ENCOUNT_TO_BATTLE; else if( GameState == GAME_ENCOUNT_TO_BATTLE ) GameState = GAME_BATTLE; - bran_flg = 0; //???? + bran_flg = 0; //阪???? return TRUE; } } return FALSE; } -//ѹ +//笢栝揤坫 BOOL ProduceCenterPress( int mode ) { static int line; @@ -1045,13 +1045,13 @@ BOOL ProduceCenterPress( int mode ) return FALSE; } -//תʽ +//跪笱蛌劓源宒 BOOL DrawProduce( int no ) { #ifdef _STONDEBUG_ // pass if( joy_con[ 0 ] & JOY_UP ){ - // ???w????? + // ???ㄈ?釤???? NowTime = TimeGetTime(); return FALSE; } @@ -1071,83 +1071,83 @@ no = -1; case PRODUCE_LEFT_ACCELE: ret = ProduceAccele( 2 ); break; - case PRODUCE_RIGHT_ACCELE: // ??L?h + case PRODUCE_RIGHT_ACCELE: // ??﹩?去 ret = ProduceAccele( 3 ); break; - case PRODUCE_LEFT_RIGHT_ACCELE: // ???L?h + case PRODUCE_LEFT_RIGHT_ACCELE: // ???﹩?去 ret = ProduceAccele( 4 ); break; - case PRODUCE_UP_DOWM_ACCELE: // ??L?h + case PRODUCE_UP_DOWM_ACCELE: // ??﹩?去 ret = ProduceAccele( 5 ); break; - case PRODUCE_UP_BRAKE: // ?L?h + case PRODUCE_UP_BRAKE: // ?﹩?去 //ret = ProduceBrake( 0 ); break; - case PRODUCE_DOWN_BRAKE: // ??L?h + case PRODUCE_DOWN_BRAKE: // ??﹩?去 ret = ProduceBrake( 1 ); break; - case PRODUCE_LEFT_BRAKE: // ??L?h + case PRODUCE_LEFT_BRAKE: // ??﹩?去 ret = ProduceBrake( 2 ); break; - case PRODUCE_RIGHT_BRAKE: // ??L?h + case PRODUCE_RIGHT_BRAKE: // ??﹩?去 ret = ProduceBrake( 3 ); break; - case PRODUCE_LEFT_RIGHT_BRAKE: // ??L?h + case PRODUCE_LEFT_RIGHT_BRAKE: // ??﹩?去 ret = ProduceBrake( 4 ); break; - case PRODUCE_UP_DOWM_BRAKE: // // ??L?h + case PRODUCE_UP_DOWM_BRAKE: // // ??﹩?去 ret = ProduceBrake( 5 ); break; - case PRODUCE_4WAY_OUT: // ??h??? + case PRODUCE_4WAY_OUT: // ???去???? ret = Produce4Way( 0 ); break; - case PRODUCE_4WAY_IN: // ??h?? + case PRODUCE_4WAY_IN: // ???去???? ret = Produce4Way( 1 ); break; - case PRODUCE_HAGARE_OUT: // ????????? + case PRODUCE_HAGARE_OUT: // ????????? ret = ProduceHagare( 0 ); break; - case PRODUCE_HAGARE_IN: // ?????????? + case PRODUCE_HAGARE_IN: // ?????????? ret = ProduceHagare( 1 ); break; - case PRODUCE_HAGARE_OCHI_OUT: // ????????? + case PRODUCE_HAGARE_OCHI_OUT: // ????????? ret = ProduceHagare( 2 ); break; - case PRODUCE_HAGARE_OCHI_IN: // ?????????? + case PRODUCE_HAGARE_OCHI_IN: // ?????????? ret = ProduceHagare( 3 ); break; - case PRODUCE_BRAN_SMALL: // ??? + case PRODUCE_BRAN_SMALL: // ??? ret = Produce_bran_small(-1); break; - case PRODUCE_BRAN_BIG: // ???? + case PRODUCE_BRAN_BIG: // ????? ret = Produce_bran_small(1); break; - case PRODUCE_BREAK_UP1: //??????? + case PRODUCE_BREAK_UP1: //??????? ret = Produce_break_up(-1); break; - case PRODUCE_BREAK_UP2: //?????? + case PRODUCE_BREAK_UP2: //?????? ret = Produce_break_up(1); break; - case PRODUCE_BREAK_UP3: //??????? + case PRODUCE_BREAK_UP3: //??????? ret = Produce_break_up(-1); break; - case PRODUCE_BREAK_UP4: //??????? + case PRODUCE_BREAK_UP4: //??????? ret = Produce_break_up2(1); break; - case PRODUCE_BREAK_UP5: //???????? + case PRODUCE_BREAK_UP5: //???????? ret = Produce_break_up2(-1); break; - case PRODUCE_BREAK_UP6: //??????? + case PRODUCE_BREAK_UP6: //??????? ret = Produce_break_up2(1); break; - case PRODUCE_BREAK_UP7: //???????? + case PRODUCE_BREAK_UP7: //???????? ret = Produce_break_up2(-1); break; - case PRODUCE_BREAK_UP8: //?????? + case PRODUCE_BREAK_UP8: //?????? ret = Produce_break_up(1); break; case PRODUCE_CENTER_PRESSIN: @@ -1197,7 +1197,7 @@ void TitleProduce( void ) cnt3 = 0; time = 0; } - // ??????? + // ??????? x[ 9 ] = -319; //cary 2001 07 10 y[ 9 ] = 410 + 5; @@ -1212,17 +1212,17 @@ void TitleProduce( void ) realGetNo( bmpNo , &no ); LoadBmp( no ); } - // ???w????? + // ???ㄈ?釤???? NowTime = TimeGetTime(); flag = 1; } - // ??r? + // ??┴? if( flag == 1 ){ //time++; //if( time >= 120 ) flag = 2; } - // ???h + // ???去 if( flag == 2 ){ a[ 8 ] -= 0.5; x[ 8 ] -= a[ 8 ]; @@ -1230,7 +1230,7 @@ void TitleProduce( void ) x[ 8 ] = 320; flag = 3; } - // ?????h + // ?????去 a[ 9 ] -= 0.5; x[ 9 ] += a[ 9 ]; if( a[ 9 ] == 0 ){ @@ -1246,7 +1246,7 @@ void TitleProduce( void ) } cnt2++; } - // ?h + // ?去 if( flag == 3 ){ for( i = 0 ; i < 8 ; i++ ){ if( fall[ i ] >= 1 && fall[ i ] <= 3 ){ @@ -1265,12 +1265,12 @@ void TitleProduce( void ) } } } - // ??????? + // ???????牙 StockDispBuffer( ( int )x[ 8 ] + DISPLACEMENT_X / 2, ( int )y[ 8 ], DISP_PRIO_CHAR, CG_TITLE_JSS_LOGO, 0 ); //Syu Cancel 06/24/2002 //StockDispBuffer( ( int )x[ 9 ] + DISPLACEMENT_X / 2, ( int )y[ 9 ], DISP_PRIO_CHAR, CG_TITLE_DREAM_LOGO, 0 ); if( cnt3 < 8 ){ - // + // 牙 for( i = 0 ; i < 8 ; i++ ){ StockDispBuffer( ( int )x[ i ] + DISPLACEMENT_X / 2, ( int )y[ i ], DISP_PRIO_CHAR, CG_TITLE_NAME_S + i, 0 ); } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/radar.cpp b/石器时代8.5客户端最新源代码/石器源码/system/radar.cpp index e9550b3..0b00111 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/radar.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/radar.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/system.h" #include "../oft/vg410.h" @@ -145,8 +145,8 @@ Sint8 Distance_Tbl[]={ * * ???? * -* IN d1.w ?? -* d2.w ?? +* IN d1.w ??火 +* d2.w ??火 * * OUT d0 ???( 0 ? 31 ) * d1 ?? ( 0 ? ??? ) @@ -158,60 +158,60 @@ void radar(ACTION *a0,int *d1,int *d2) { int d0,d3=0,d4; #if 0 - *d1-=ATR_H_POS(a0); /*???t*/ + *d1-=ATR_H_POS(a0); /*???ㄅ*/ if(*d1<0){ - *d1 = 0 - *d1; /*Enk???*/ - d3++; /*?T???*/ + *d1 = 0 - *d1; /*‧▋π???*/ + d3++; /*?劫????*/ } d4=(*d1)>>6; - *d2-=ATR_V_POS(a0); /*???k*/ + *d2-=ATR_V_POS(a0); /*???π*/ if(*d2<0){ *d2 = 0 - *d2; d3+=2; } d0=(*d2)>>6; /*?????????????*/ - if(d4>d4; /*?????*/ *d2=(*d2)>>d4; *d2=(*d2)<<6; - *d2+=*d1; /*??????k???*/ + *d2+=*d1; /*??????π???*/ *d1=(int)(Course_Tbl[*d2]); /*?????????*/ if(d3==1){ - *d1-=32; /*T??????*/ - *d1 = 0 - *d1; /*Enk???*/ + *d1-=32; /*劫???????*/ + *d1 = 0 - *d1; /*‧▋π???*/ } if(d3==2){ - *d1-=16; /*T???????*/ - *d1 = 0 - *d1; /*Enk???*/ + *d1-=16; /*劫????????*/ + *d1 = 0 - *d1; /*‧▋π???*/ } if(d3==3){ - *d1+=16; /*??T*/ + *d1+=16; /*??劫?*/ *d1=*d1&31; } *d2=(int)(Distance_Tbl[*d2]); /*??(89??)*/ *d2=*d2<crs ?V? +* ???( 0 ? 31 )? a0->crs ?向? * ********************************************************************/ int radar2(ACTION *pAct,int x,int y, int cnt ) { int d0,d3=0,d4; - int dist; // ????? + int dist; // ????? - x-=ATR_H_POS(pAct); /*???t*/ + x-=ATR_H_POS(pAct); /*???ㄅ*/ if(x<0){ - x = 0 - x; /*Enk???*/ - d3++; /*?T???*/ + x = 0 - x; /*‧▋π???*/ + d3++; /*?劫????*/ } d4=(x)>>6; - y-=ATR_V_POS(pAct); /*???k*/ + y-=ATR_V_POS(pAct); /*???π*/ if(y<0){ y = 0 - y; d3+=2; } d0=(y)>>6; /*?????????????*/ - if(d4>d4; /*?????*/ y=(y)>>d4; y=(y)<<6; - y+=x; /*??????k???*/ + y+=x; /*??????π???*/ x = (int)(Course_Tbl[y]); /*?????????*/ if(d3==1){ - x-=32; /*T??????*/ + x-=32; /*劫???????*/ x = 0 - x; } if(d3==2){ - x-=16; /*T???????*/ + x-=16; /*劫????????*/ x = 0 - x; } if(d3==3){ - x+=16; /*??T*/ + x+=16; /*??劫?*/ x=x&31; } - // ?????????? + // ??阪????????? if( pAct->dirCnt == 0 ){ - // ???????? - // ? + // ??????????? + // ?? if( x - pAct->crs > 16 ) x -= 32; else if( x - pAct->crs < -16 ) x += 32; - // ?? + // ??? if( x - pAct->crs != 0 ){ if( x - pAct->crs > 0 ){ pAct->crs++; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/savedata.cpp b/石器时代8.5客户端最新源代码/石器源码/system/savedata.cpp index 16ba6c7..0646c0a 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/savedata.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/savedata.cpp @@ -1,4 +1,4 @@ -#include +#include #include //#include @@ -19,23 +19,23 @@ // ?????? // // -// ?B???? +// ?﹨???? // SAVEDATA_VER ????????????(4 byte) // CDKEY CD??(12 byte) // PASSWORD ?????(12 byte) -// BA_SEL_PEN Pf??V?v??k??????? -// Pf????????@e -// Bit 0 ... Pf??V?v??u -// Bit 1 ... Pf????? +// BA_SEL_PEN ·卯??向?▔??︻???????? +// ·卯???????? 叉 +// Bit 0 ... ·卯??向?▔??守 +// Bit 1 ... ·卯????? // Bit 2 ... ??????? -// STEREO_FLAG_SIZE ???????????v? +// STEREO_FLAG_SIZE ???????????▔? // SE_VOL ??????? // BGM_VOL ???????? -// BGM_PITCH ???????? -// CHAT_COLOR ????? +// BGM_PITCH ???????阪? +// CHAT_COLOR ????更? // CHAT_LINE ?????? -// CHAT_AREA_SIZE ????????d? -// MOUSE_CUR_SEL ????????k +// CHAT_AREA_SIZE ?????束???吳? +// MOUSE_CUR_SEL ????????︻? // ??? enum @@ -56,7 +56,7 @@ enum MOUSE_CUR_SEL_SIZE = 1 }; -// ?B +// ?﹨ enum { SAVEDATA_VER = 0, @@ -85,19 +85,19 @@ static unsigned char savedatabuf[SAVEDATA_SIZE]; // 0x0002 ... 87+1 byte // 0x0003 ... 57+1 byte // 0x0004 ... 57+1 byte -// 0x0005 ... 127+1 byte (??57+1 byte) -// 0x0006 ... 127+1 byte (??58+1 byte) +// 0x0005 ... 127+1 byte (??57+1 byte) +// 0x0006 ... 127+1 byte (??58+1 byte) #define SAVEDATA_VERSION 0x0006 -// ??????? +// ???????? #define SAVEFILE_NAME "data\\savedata.dat" // ?????? unsigned char savedataErrorCode; // loadNowState?????? -// 1 ... ?????????????? +// 1 ... ?????????????? // 2 ... ????????????? -// 3 ... ???????????? +// 3 ... ?????????????? // 4 ... ???????????????????? // 5 ... ??????????????? @@ -112,7 +112,7 @@ BOOL createSaveFile( void ); // ?????????? /////////////////////////////////////////////////// // -// ???@eV +// ??? 叉卒㎏ // BOOL saveUserSetting( void ) { @@ -126,7 +126,7 @@ BOOL saveUserSetting( void ) // -// ???@e??? +// ??? 叉???? // BOOL loadUserSetting( void ) { @@ -143,7 +143,7 @@ BOOL loadUserSetting( void ) } // -// ??????V +// ??????卒㎏ // #include BOOL saveNowState( void ) @@ -200,7 +200,7 @@ BOOL saveNowState( void ) // -// ???????????h??1T??? +// ????????????去??1冉??? // BOOL loadNowState( void ) { @@ -223,7 +223,7 @@ BOOL loadNowState( void ) readbufferlen = fread( readbuffer, 1, sizeof( readbuffer ), fp ); if( ferror( fp ) ) { - // ?????? + // ??????? savedataErrorCode = 3; fclose( fp ); return FALSE; @@ -233,7 +233,7 @@ BOOL loadNowState( void ) jDecode( readbuffer, readbufferlen, 0, (char *)savedatabuf, &tmpsavedatalen ); #if 1 - // ??????????????????????? + // ????????????????????阪??? if( tmpsavedatalen == 57 && *((unsigned short *)savedatabuf+SAVEDATA_VER) == 0x0004 ) { @@ -280,7 +280,7 @@ BOOL loadNowState( void ) -// ????????? +// ????????? BOOL createSaveFile( void ) { FILE *fp; @@ -291,10 +291,10 @@ BOOL createSaveFile( void ) // ????????????? memset( savedatabuf, 0, SAVEDATA_SIZE ); - // ????????????V???? + // ????????????向???? *((unsigned short *)savedatabuf+SAVEDATA_VER) = SAVEDATA_VERSION; - // ??k?@e + // ??π? 叉 savedatabuf[STEREO_FLAG] = (unsigned char)stereo_flg; savedatabuf[SE_VOL] = (unsigned char)t_music_se_volume; savedatabuf[BGM_VOL] = (unsigned char)t_music_bgm_volume; @@ -322,9 +322,9 @@ BOOL createSaveFile( void ) return TRUE; } -// ???@e ///////////////////////////////////////////////////////////// +// ??? 叉 ///////////////////////////////////////////////////////////// -// ???@e?V?????V?? +// ??? 叉?卒㎏?????向?? void setUserSetting( int no ) { int i; @@ -332,8 +332,8 @@ void setUserSetting( int no ) if( no < 0 || MAXCHARACTER <= no ) return; - // Pf??????? - // Pf?k?????? + // ·卯??????? + // ·卯?︻??????? for( i = 0; i < MAX_PET; i++ ) { if( pc.selectPetNo[i] != 0 ) @@ -350,13 +350,13 @@ void setUserSetting( int no ) if(sPetStatFlag==1) lssproto_PETST_send( sockfd, i, 0); } -#if 0 // ????ѩ??????????? +#if 0 // ???????????????? if( i == pc.battlePetNo ) { savedatabuf[BA_SEL_PEN+MAX_PET*no+i] |= 0x02; } #endif - // ????????? + // ?????????? if( i == pc.mailPetNo ) { savedatabuf[BA_SEL_PEN+MAX_PET*no+i] |= 0x04; @@ -369,7 +369,7 @@ void setUserSetting( int no ) } -// ???@e?V??????? +// ??? 叉?卒㎏??????? void getUserSetting( int no ) { int i; @@ -377,8 +377,8 @@ void getUserSetting( int no ) if( no < 0 || MAXCHARACTER <= no ) return; - // Pf??????? - // Pf?k?????? + // ·卯??????? + // ·卯?︻??????? pc.battlePetNo = -1; for( i = 0; i < MAX_PET; i++ ) { @@ -390,7 +390,7 @@ void getUserSetting( int no ) { pc.selectPetNo[i] = 0; } - // ?????? + // ??????? if( (savedatabuf[BA_SEL_PEN+MAX_PET*no+i] & 0x04) ) { pc.mailPetNo = i; @@ -399,7 +399,7 @@ void getUserSetting( int no ) } -// ???@e??????V?????V?? +// ??? 叉??????卒㎏?????向?? void clearUserSetting( int no ) { int i; @@ -409,8 +409,8 @@ void clearUserSetting( int no ) pc.battlePetNo = -1; - // Pf??????? - // Pf?k?????? + // ·卯??????? + // ·卯?︻??????? for( i = 0; i < MAX_PET; i++ ) { savedatabuf[BA_SEL_PEN+MAX_PET*no+i] = 0x00; @@ -418,12 +418,12 @@ void clearUserSetting( int no ) } -// ?????????@e?V?????V?? +// ????????? 叉?卒㎏?????向?? void setUserSoundOption( void ) { int i; - savedatabuf[STEREO_FLAG] = (unsigned char)stereo_flg; // ?????v???? + savedatabuf[STEREO_FLAG] = (unsigned char)stereo_flg; // ?????▔???? savedatabuf[SE_VOL] = (unsigned char)t_music_se_volume; // SE????? if (MuteFlag) { @@ -438,12 +438,12 @@ void setUserSoundOption( void ) savedatabuf[BGM_PITCH+i] = t_music_bgm_pitch[i]; } -// ?????????@e?V??????? +// ????????? 叉?卒㎏??????? void getUserSoundOption( void ) { int i; - stereo_flg = (int)savedatabuf[STEREO_FLAG]; // ?????v???? + stereo_flg = (int)savedatabuf[STEREO_FLAG]; // ?????▔???? t_music_se_volume = (int)savedatabuf[SE_VOL]; // SE????? t_music_bgm_volume = (int)(savedatabuf[BGM_VOL] & 0x7f); // BGM????? MuteFlag = (savedatabuf[BGM_VOL] & 0x80); @@ -453,32 +453,32 @@ void getUserSoundOption( void ) } -// ?????????@e?V?????V?? +// ????????? 叉?卒㎏?????向?? void setUserChatOption( void ) { - savedatabuf[CHAT_COLOR] = MyChatBuffer.color; // ????? + savedatabuf[CHAT_COLOR] = MyChatBuffer.color; // ????更? savedatabuf[CHAT_LINE] = (unsigned char)NowMaxChatLine; // ?????? - savedatabuf[CHAT_AREA] = NowMaxVoice; // ????d? + savedatabuf[CHAT_AREA] = NowMaxVoice; // ????吳? } -// ?????????@e?V??????? +// ????????? 叉?卒㎏??????? void getUserChatOption( void ) { - MyChatBuffer.color = savedatabuf[CHAT_COLOR]; // ????? + MyChatBuffer.color = savedatabuf[CHAT_COLOR]; // ????更? NowMaxChatLine = (int)savedatabuf[CHAT_LINE]; // ?????? - NowMaxVoice = savedatabuf[CHAT_AREA]; // ????d? + NowMaxVoice = savedatabuf[CHAT_AREA]; // ????吳? } -// ???????????????@e?V?????V?? +// ??????????????? 叉?卒㎏?????向?? void setUserInterfaceOption( void ) { savedatabuf[MOUSE_CUR_SEL] = (unsigned char)MouseCursorFlag; } -// ???????????????@e?V??????? +// ??????????????? 叉?卒㎏??????? void getUserInterfaceOption( void ) { MouseCursorFlag = (int)savedatabuf[MOUSE_CUR_SEL]; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/shop.cpp b/石器时代8.5客户端最新源代码/石器源码/system/shop.cpp index 9111d42..07b18b9 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/shop.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/shop.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ #include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/pc.h" @@ -25,9 +25,9 @@ int getfilesize(FILE* fp) } #ifdef _NEWSHOP_ -void ̳ǽ(short x,short y,UCHAR ); -void ̳Ƕ(); -void ﳵƷɾ(short ); +void 商城结算(short x,short y,UCHAR 层次); +void 清除商城动作(); +void 购物车商品删除(short 索引); extern void getStrSplit( char *, char *, int, int, int ); void StockFontBufferSplit(int x, int y, char unk1, int color, char* data, int unk2,int strLen){ @@ -49,63 +49,63 @@ extern int indexWN; extern int idWN; extern int cloasewindows; typedef struct { - char Ʒ[32]; - unsigned int Ʒ; - unsigned int ϸƷ; - unsigned int Ʒ۸; - char Ʒ˵[500]; - short ; + char 商品名[32]; + unsigned int 商品形像; + unsigned int 详细商品形像; + unsigned int 商品价格; + char 商品说明[500]; + short 序号; -}Ʒݽṹ; +}商品数据结构; -̳ļ_ ̳ļ[5]; +商城文件_ 商城文件[5]; typedef struct { - short ǰ; - short յ; -} ṹ; + short 当前; + short 终点; +} 滚动条结构; typedef struct { - BOOL ʹ; - unsigned int ; - Ʒݽṹ * Ʒ; -}ﳵƷṹ; + BOOL 使用; + unsigned int 数量; + 商品数据结构 * 商品; +}购物车商品结构; typedef struct { - ﳵƷṹ [15]; - short Ʒ; - short Ʒ͸; - short ǰҳ; - short ҳ; - unsigned int ܼ۸; -} ﳵṹ; + 购物车商品结构 购物栏[15]; + short 商品总数; + short 商品类型个数; + short 当前页数; + short 总页数; + unsigned int 总价格; +} 购物车结构; typedef struct { - ṹ ; - ﳵṹ ﳵ; - short ߿; - short ID; - short ʾ; - short Ʒ; - BOOL 㴰; - unsigned int Ҳʱ; - ACTION * ﶯṹ; - ACTION * ڶṹ; - short ; - short ; + 滚动条结构 滚动条; + 购物车结构 购物车; + short 道具空; + short 窗口ID; + short 提示类型; + short 商品数量; + BOOL 结算窗口; + unsigned int 玩家彩币; + ACTION * 宠物动作结构; + ACTION * 窗口动作结构; + short 宽; + short 高; short X; short Y; - short λ; - BOOL ﹺ״̬; -} ̳ǽṹ; + short 宠物位置; + BOOL 宠物购物栏状态; +} 商城结构; -Ʒݽṹ Ʒ[200]; -̳ǽṹ ̳; +商品数据结构 商品数据[200]; +商城结构 商城数据; -short ̳ǵ[][2] = { +short 商城道具坐标[][2] = { {90,100}, {245,100}, {90,193}, @@ -116,7 +116,7 @@ short {242,369} }; -short [][2]={ +short 道具内容坐标[][2]={ {0,5}, {1,9}, {2,11}, @@ -125,7 +125,7 @@ short {5,19} }; -unsigned short ʾ[][4] ={ +unsigned short 窗口显示[][4] ={ {40041,40046,40066,35}, {40042,40047,40067,106}, {40043,40048,40068,176}, @@ -133,13 +133,13 @@ unsigned short {40045,40050,40070,316}, }; -void ̳ݳʼ() +void 在线商城数据初始化() { - memset(&Ʒ,0,sizeof(Ʒݽṹ)*200); - memset(&̳,0,sizeof(̳ǽṹ)); + memset(&商品数据,0,sizeof(商品数据结构)*200); + memset(&商城数据,0,sizeof(商城结构)); } -int ַи( char *arr[], char *str, const char *del)//ַָļ򵥶ʵ +int 字符串切割( char *arr[], char *str, const char *del)//字符分割函数的简单定义搜索和实现 { int num = 0; char *s =NULL; @@ -155,403 +155,403 @@ int } -void ̳Ǵڳʼ(char * ) +void 在线商城窗口初始化(char * 内容) { - if(̳.ڶṹ) DeathAction(̳.ڶṹ); - ̳.ڶṹ=0; - if(̳.ﶯṹ) DeathAction(̳.ﶯṹ); - ̳.ﶯṹ=0; - ̳.λ=-1; - ̳ݳʼ(); - ̳.߿ = getIntegerToken(,'|',1); - ̳.Ҳʱ = getIntegerToken(,'|',2); - ̳.ID = getIntegerToken(,'|',3); - ̳..ǰ=1; - if(̳ļ[̳.ID-1].̳!=NULL){ - int strlena=strlen(̳ļ[̳.ID-1].̳); - char *ʱ̳ = new char [strlena+1]; - memset(ʱ̳,0,strlena+1); - memcpy(ʱ̳,̳ļ[̳.ID-1].̳,strlena); - char *ʱȫ[200] ={0}; - char *ʱ[5]={0}; - ̳.Ʒ = ַи(ʱȫ,ʱ̳,"#"); + if(商城数据.窗口动作结构) DeathAction(商城数据.窗口动作结构); + 商城数据.窗口动作结构=0; + if(商城数据.宠物动作结构) DeathAction(商城数据.宠物动作结构); + 商城数据.宠物动作结构=0; + 商城数据.宠物位置=-1; + 在线商城数据初始化(); + 商城数据.道具空 = getIntegerToken(内容,'|',1); + 商城数据.玩家彩币 = getIntegerToken(内容,'|',2); + 商城数据.窗口ID = getIntegerToken(内容,'|',3); + 商城数据.滚动条.当前=1; + if(商城文件[商城数据.窗口ID-1].商城数据!=NULL){ + int strlena=strlen(商城文件[商城数据.窗口ID-1].商城数据); + char *临时商城内容 = new char [strlena+1]; + memset(临时商城内容,0,strlena+1); + memcpy(临时商城内容,商城文件[商城数据.窗口ID-1].商城数据,strlena); + char *临时全部道具数据[200] ={0}; + char *临时单个道具数据[5]={0}; + 商城数据.商品数量 = 字符串切割(临时全部道具数据,临时商城内容,"#"); int i=0; - for(;i<=̳.Ʒ;i++){ - ַи(ʱ,ʱȫ[i],"|"); - sprintf_s(Ʒ[i].Ʒ,"%s",ʱ[0]); - Ʒ[i].Ʒ = atoi( ʱ[1]); - Ʒ[i].ϸƷ = atoi( ʱ[2]); - Ʒ[i].Ʒ۸ = atoi( ʱ[3]); - sprintf_s(Ʒ[i].Ʒ˵,"%s",ʱ[4]); - Ʒ[i].Ʒ[strlen(Ʒ[i].Ʒ)]=0; - Ʒ[i].Ʒ˵[strlen(Ʒ[i].Ʒ˵)]=0; - Ʒ[i].=i; + for(;i<=商城数据.商品数量;i++){ + 字符串切割(临时单个道具数据,临时全部道具数据[i],"|"); + sprintf_s(商品数据[i].商品名,"%s",临时单个道具数据[0]); + 商品数据[i].商品形像 = atoi( 临时单个道具数据[1]); + 商品数据[i].详细商品形像 = atoi( 临时单个道具数据[2]); + 商品数据[i].商品价格 = atoi( 临时单个道具数据[3]); + sprintf_s(商品数据[i].商品说明,"%s",临时单个道具数据[4]); + 商品数据[i].商品名[strlen(商品数据[i].商品名)]=0; + 商品数据[i].商品说明[strlen(商品数据[i].商品说明)]=0; + 商品数据[i].序号=i; } - ̳.Ʒ++; - if(̳.Ʒ > 8) - ̳..յ= ̳.Ʒ%8 ? ̳.Ʒ/8+1 : ̳.Ʒ/8; - else ̳..յ= 1; - ̳.λ=-1; - ̳.ﹺ״̬=FALSE; - delete ʱ̳; + 商城数据.商品数量++; + if(商城数据.商品数量 > 8) + 商城数据.滚动条.终点= 商城数据.商品数量%8 ? 商城数据.商品数量/8+1 : 商城数据.商品数量/8; + else 商城数据.滚动条.终点= 1; + 商城数据.宠物位置=-1; + 商城数据.宠物购物栏状态=FALSE; + delete 临时商城内容; } - ̳.=628; - ̳.=386; - ̳.X=(800-̳.)/2; - ̳.Y=(600-̳.)/2-40; + 商城数据.宽=628; + 商城数据.高=386; + 商城数据.X=(800-商城数据.宽)/2; + 商城数据.Y=(600-商城数据.高)/2-40; } -ACTION* ̳Ǵ() +ACTION* 创建商城窗口() { - if(̳.ڶṹ) DeathAction(̳.ڶṹ); - ̳.ڶṹ = MakeWindowDisp(̳.X,̳.Y,0,0,ʾ[̳.ID-1][0],0,FALSE); + if(商城数据.窗口动作结构) DeathAction(商城数据.窗口动作结构); + 商城数据.窗口动作结构 = MakeWindowDisp(商城数据.X,商城数据.Y,0,0,窗口显示[商城数据.窗口ID-1][0],0,FALSE); play_se(202,320,240); - return ̳.ڶṹ; + return 商城数据.窗口动作结构; } -ACTION* ̳ʾ() +ACTION* 商城数据显示() { - if(̳.ID!=5){ - if(̳.ﶯṹ){ - DeathAction(̳.ﶯṹ); - ̳.ﶯṹ=0; - ̳.λ=-1; + if(商城数据.窗口ID!=5){ + if(商城数据.宠物动作结构){ + DeathAction(商城数据.宠物动作结构); + 商城数据.宠物动作结构=0; + 商城数据.宠物位置=-1; } } - int ťID; - StockDispBuffer(̳.X,̳.Y+28,104,ʾ[̳.ID-1][0],1); - //Ͱť + int 按钮ID; + StockDispBuffer(商城数据.X,商城数据.Y+28,104,窗口显示[商城数据.窗口ID-1][0],1); + //类型按钮 int i=0; for(;i<5;i++){ - if(i!=(̳.ID-1)){ - if(MakeHitBox(̳.X+1,̳.Y+ʾ[i][3],̳.X+29,̳.Y+ʾ[i][3]+69,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+1,̳.Y+ʾ[i][3],106,ʾ[i][2],1); + if(i!=(商城数据.窗口ID-1)){ + if(MakeHitBox(商城数据.X+1,商城数据.Y+窗口显示[i][3],商城数据.X+29,商城数据.Y+窗口显示[i][3]+69,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+1,商城数据.Y+窗口显示[i][3],106,窗口显示[i][2],1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - char ʱ[10]={0}; - sprintf_s(ʱ,"%d",i+1); - lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,ʱ); + char 临时内容[10]={0}; + sprintf_s(临时内容,"%d",i+1); + lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,临时内容); windowTypeWN = -1; wnCloseFlag = 1; - }else StockDispBuffer(̳.X+1,̳.Y+ʾ[i][3],106,ʾ[i][1],1); + }else StockDispBuffer(商城数据.X+1,商城数据.Y+窗口显示[i][3],106,窗口显示[i][1],1); } - }else StockDispBuffer(̳.X+1,̳.Y+ʾ[i][3],106,ʾ[i][1],1); + }else StockDispBuffer(商城数据.X+1,商城数据.Y+窗口显示[i][3],106,窗口显示[i][1],1); } } - //رհť - if(MakeHitBox(̳.X+595,̳.Y+27,̳.X+626,̳.Y+53,-1)==1){ - StockDispBuffer(̳.X+594,̳.Y+27,105,40054,1); + //关闭按钮 + if(MakeHitBox(商城数据.X+595,商城数据.Y+27,商城数据.X+626,商城数据.Y+53,-1)==1){ + StockDispBuffer(商城数据.X+594,商城数据.Y+27,105,40054,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ cloasewindows = 1; } - }else StockDispBuffer(̳.X+595,̳.Y+27,105,40061,1); - if(̳.㴰) ̳ǽ(̳.X+130,̳.Y+140,110); + }else StockDispBuffer(商城数据.X+595,商城数据.Y+27,105,40061,1); + if(商城数据.结算窗口) 商城结算(商城数据.X+130,商城数据.Y+140,110); - //㰴ť + //结算按钮 - if(MakeHitBox(̳.X+534,̳.Y+372,̳.X+591,̳.Y+391,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+534,̳.Y+372,105,40072,1); + if(MakeHitBox(商城数据.X+534,商城数据.Y+372,商城数据.X+591,商城数据.Y+391,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+534,商城数据.Y+372,105,40072,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - if(̳.ﳵ.Ʒ){ - ̳.ʾ=1; - ̳.㴰=TRUE; + if(商城数据.购物车.商品总数){ + 商城数据.提示类型=1; + 商城数据.结算窗口=TRUE; }else{ - ̳.ʾ=2; - ̳.㴰=TRUE; + 商城数据.提示类型=2; + 商城数据.结算窗口=TRUE; } } - }else StockDispBuffer(̳.X+534,̳.Y+372,105,40058,1); - }else StockDispBuffer(̳.X+534,̳.Y+372,105,40058,1); + }else StockDispBuffer(商城数据.X+534,商城数据.Y+372,105,40058,1); + }else StockDispBuffer(商城数据.X+534,商城数据.Y+372,105,40058,1); - //չ - if(MakeHitBox(̳.X+435,̳.Y+372,̳.X+435+58,̳.Y+372+19,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+435,̳.Y+372,105,40059,1); + //清空功能 + if(MakeHitBox(商城数据.X+435,商城数据.Y+372,商城数据.X+435+58,商城数据.Y+372+19,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+435,商城数据.Y+372,105,40059,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - ̳.ﳵ.ǰҳ=0; - ̳.ﳵ.ҳ=0; - ̳.ﳵ.Ʒ͸=0; - ̳.ﳵ.Ʒ=0; - ̳.ﳵ.ܼ۸=0; - ̳.ﳵ.ҳ=0; - memset(̳.ﳵ.,0,sizeof(ﳵƷṹ)*15); + 商城数据.购物车.当前页数=0; + 商城数据.购物车.总页数=0; + 商城数据.购物车.商品类型个数=0; + 商城数据.购物车.商品总数=0; + 商城数据.购物车.总价格=0; + 商城数据.购物车.总页数=0; + memset(商城数据.购物车.购物栏,0,sizeof(购物车商品结构)*15); } - }else StockDispBuffer(̳.X+435,̳.Y+372,105,40073,1); - }else StockDispBuffer(̳.X+435,̳.Y+372,105,40073,1); + }else StockDispBuffer(商城数据.X+435,商城数据.Y+372,105,40073,1); + }else StockDispBuffer(商城数据.X+435,商城数据.Y+372,105,40073,1); - //Ʒҳ - if(MakeHitBox(̳.X+379,̳.Y+39,̳.X+405,̳.Y+66,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+379,̳.Y+39,105,40055,1); + //商品上页 + if(MakeHitBox(商城数据.X+379,商城数据.Y+39,商城数据.X+405,商城数据.Y+66,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+379,商城数据.Y+39,105,40055,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - if(̳..ǰ>1) ̳..ǰ-=1; + if(商城数据.滚动条.当前>1) 商城数据.滚动条.当前-=1; } - }else StockDispBuffer(̳.X+379,̳.Y+39,105,40062,1); - }else StockDispBuffer(̳.X+379,̳.Y+39,105,40062,1); + }else StockDispBuffer(商城数据.X+379,商城数据.Y+39,105,40062,1); + }else StockDispBuffer(商城数据.X+379,商城数据.Y+39,105,40062,1); - //Ʒҳ - if(MakeHitBox(̳.X+379,̳.Y+370,̳.X+405,̳.Y+397,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+379,̳.Y+370,105,40056,1); + //商品下页 + if(MakeHitBox(商城数据.X+379,商城数据.Y+370,商城数据.X+405,商城数据.Y+397,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+379,商城数据.Y+370,105,40056,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - if(̳..ǰ<̳..յ) ̳..ǰ+=1; + if(商城数据.滚动条.当前<商城数据.滚动条.终点) 商城数据.滚动条.当前+=1; } - }else StockDispBuffer(̳.X+379,̳.Y+370,105,40063,1); - }else StockDispBuffer(̳.X+379,̳.Y+370,105,40063,1); + }else StockDispBuffer(商城数据.X+379,商城数据.Y+370,105,40063,1); + }else StockDispBuffer(商城数据.X+379,商城数据.Y+370,105,40063,1); - //printf("ǰ=%d =%d\n",̳..ǰ,̳..յ); - short λ=0; - if(̳..ǰ==1 || ̳..ǰ==0) λ=75; - else if(̳..ǰ==̳..յ) λ=361; - else λ=(361-75)/(̳..յ-1)*(̳..ǰ-1)+75; - StockDispBuffer(̳.X+391,̳.Y+λ,105,26447,1); + //printf("当前=%d 结束=%d\n",商城数据.滚动条.当前,商城数据.滚动条.终点); + short 滚动条块位置=0; + if(商城数据.滚动条.当前==1 || 商城数据.滚动条.当前==0) 滚动条块位置=75; + else if(商城数据.滚动条.当前==商城数据.滚动条.终点) 滚动条块位置=361; + else 滚动条块位置=(361-75)/(商城数据.滚动条.终点-1)*(商城数据.滚动条.当前-1)+75; + StockDispBuffer(商城数据.X+391,商城数据.Y+滚动条块位置,105,26447,1); - //̳ʾ + //商城数据显示 - if(̳.Ʒ>0){ - short ʼ,; - ʼ = (̳..ǰ-1)*8+1; - = ʼ+7; - if( >̳.Ʒ) = ̳.Ʒ; - short ʱλ=0; - BOOL ж=FALSE; - i=ʼ; - for(;i<=;i++){ - ʱλ++; - ťID = StockDispBuffer(̳.X+̳ǵ[ʱλ-1][0],̳.Y+̳ǵ[ʱλ-1][1],106,Ʒ[i-1].Ʒ,1); - if(HitDispNo==ťID){ - if(!̳.㴰){ - if(̳.ﶯṹ){ - if(̳.λ!=ťID){ - DeathAction(̳.ﶯṹ); - ̳.ﶯṹ=0; - ̳.λ=-1; + if(商城数据.商品数量>0){ + short 开始,结束; + 开始 = (商城数据.滚动条.当前-1)*8+1; + 结束 = 开始+7; + if(结束 >商城数据.商品数量) 结束 = 商城数据.商品数量; + short 临时位置=0; + BOOL 宠物判断=FALSE; + i=开始; + for(;i<=结束;i++){ + 临时位置++; + 按钮ID = StockDispBuffer(商城数据.X+商城道具坐标[临时位置-1][0],商城数据.Y+商城道具坐标[临时位置-1][1],106,商品数据[i-1].商品形像,1); + if(HitDispNo==按钮ID){ + if(!商城数据.结算窗口){ + if(商城数据.宠物动作结构){ + if(商城数据.宠物位置!=按钮ID){ + DeathAction(商城数据.宠物动作结构); + 商城数据.宠物动作结构=0; + 商城数据.宠物位置=-1; } } - ʾ(̳.X+̳ǵ[ʱλ-1][0],̳.Y+̳ǵ[ʱλ-1][1],109,Ʒ[i-1].Ʒ˵,Ʒ[i-1].ϸƷ,Ʒ[i-1].Ʒ); - ж=TRUE; - if(̳.ﶯṹ) ̳.λ=ťID; + 显示道具数据(商城数据.X+商城道具坐标[临时位置-1][0],商城数据.Y+商城道具坐标[临时位置-1][1],109,商品数据[i-1].商品说明,商品数据[i-1].详细商品形像,商品数据[i-1].商品名); + 宠物判断=TRUE; + if(商城数据.宠物动作结构) 商城数据.宠物位置=按钮ID; }else{ - if(̳.ﶯṹ){ - DeathAction(̳.ﶯṹ); - ̳.ﶯṹ=0; - ̳.λ=-1; + if(商城数据.宠物动作结构){ + DeathAction(商城数据.宠物动作结构); + 商城数据.宠物动作结构=0; + 商城数据.宠物位置=-1; } } } - //ť - if(MakeHitBox(̳.X+̳ǵ[ʱλ-1][0]+40,̳.Y+̳ǵ[ʱλ-1][1],̳.X+̳ǵ[ʱλ-1][0]+40+59,̳.Y+̳ǵ[ʱλ-1][1]+22,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+̳ǵ[ʱλ-1][0]+40,̳.Y+̳ǵ[ʱλ-1][1],105,40071,1); + //购买按钮 + if(MakeHitBox(商城数据.X+商城道具坐标[临时位置-1][0]+40,商城数据.Y+商城道具坐标[临时位置-1][1],商城数据.X+商城道具坐标[临时位置-1][0]+40+59,商城数据.Y+商城道具坐标[临时位置-1][1]+22,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+商城道具坐标[临时位置-1][0]+40,商城数据.Y+商城道具坐标[临时位置-1][1],105,40071,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - if(̳.Ҳʱ < ̳.ﳵ.ܼ۸ + Ʒ[i-1].Ʒ۸){ - StockChatBufferLine("ϵͳϵĽҲ㡣",6); + if(商城数据.玩家彩币 < 商城数据.购物车.总价格 + 商品数据[i-1].商品价格){ + StockChatBufferLine("系统:身上的金币不足。",6); break; } - if(̳.߿ < ̳.ﳵ.Ʒ+1){ - StockChatBufferLine("ϵͳϵĵλ㡣",6); + if(商城数据.道具空 < 商城数据.购物车.商品总数+1){ + StockChatBufferLine("系统:身上的道具位不足。",6); break; } - if(!̳.ﳵ.Ʒ͸){ - memset(&̳.ﳵ.,0,sizeof(ﳵƷṹ)*15); - ̳.ﳵ.[0].ʹ=TRUE; - ̳.ﳵ.[0].=1; - ̳.ﳵ.ǰҳ=1; - ̳.ﳵ.[0].Ʒ=&Ʒ[i-1]; - ̳.ﳵ.Ʒ͸++; - ̳.ﳵ.Ʒ++; - ̳.ﳵ.ܼ۸+=̳.ﳵ.[0].Ʒ->Ʒ۸; + if(!商城数据.购物车.商品类型个数){ + memset(&商城数据.购物车.购物栏,0,sizeof(购物车商品结构)*15); + 商城数据.购物车.购物栏[0].使用=TRUE; + 商城数据.购物车.购物栏[0].数量=1; + 商城数据.购物车.当前页数=1; + 商城数据.购物车.购物栏[0].商品=&商品数据[i-1]; + 商城数据.购物车.商品类型个数++; + 商城数据.购物车.商品总数++; + 商城数据.购物车.总价格+=商城数据.购物车.购物栏[0].商品->商品价格; }else{ - BOOL жǷѾ=FALSE; + BOOL 判断是否已经购买了=FALSE; int k=0; for(;k<15;k++){ - if(̳.ﳵ.[k].ʹ){ - //printf("ַ1=%x ַ2=%x\n",̳.ﳵ.[0].Ʒ,&Ʒ[i-1]); - if(̳.ﳵ.[k].Ʒ == &Ʒ[i-1]){ - жǷѾ=TRUE; - ̳.ﳵ.[k].++; - ̳.ﳵ.Ʒ++; - ̳.ﳵ.ܼ۸+=̳.ﳵ.[k].Ʒ->Ʒ۸; + if(商城数据.购物车.购物栏[k].使用){ + //printf("地址1=%x 地址2=%x\n",商城数据.购物车.购物栏[0].商品,&商品数据[i-1]); + if(商城数据.购物车.购物栏[k].商品 == &商品数据[i-1]){ + 判断是否已经购买了=TRUE; + 商城数据.购物车.购物栏[k].数量++; + 商城数据.购物车.商品总数++; + 商城数据.购物车.总价格+=商城数据.购物车.购物栏[k].商品->商品价格; break; } } } - if(!жǷѾ){ - if(̳.ﳵ.[0].ʹ){ - ﳵƷṹ ʱﳵ1; - ﳵƷṹ ʱﳵ2; - ʱﳵ1.Ʒ = ̳.ﳵ.[0].Ʒ; - ʱﳵ1. = ̳.ﳵ.[0].; + if(!判断是否已经购买了){ + if(商城数据.购物车.购物栏[0].使用){ + 购物车商品结构 临时购物车数据1; + 购物车商品结构 临时购物车数据2; + 临时购物车数据1.商品 = 商城数据.购物车.购物栏[0].商品; + 临时购物车数据1.数量 = 商城数据.购物车.购物栏[0].数量; k=1; for(;k<15;k++){ - if(̳.ﳵ.[k].ʹ){ - ʱﳵ2.Ʒ = ̳.ﳵ.[k].Ʒ; - ʱﳵ2. = ̳.ﳵ.[k].; - ̳.ﳵ.[k].Ʒ=ʱﳵ1.Ʒ; - ̳.ﳵ.[k].=ʱﳵ1.; - ʱﳵ1.Ʒ=ʱﳵ2.Ʒ; - ʱﳵ1.=ʱﳵ2.; + if(商城数据.购物车.购物栏[k].使用){ + 临时购物车数据2.商品 = 商城数据.购物车.购物栏[k].商品; + 临时购物车数据2.数量 = 商城数据.购物车.购物栏[k].数量; + 商城数据.购物车.购物栏[k].商品=临时购物车数据1.商品; + 商城数据.购物车.购物栏[k].数量=临时购物车数据1.数量; + 临时购物车数据1.商品=临时购物车数据2.商品; + 临时购物车数据1.数量=临时购物车数据2.数量; }else{ - ̳.ﳵ.[k].ʹ = TRUE; - ̳.ﳵ.[k].Ʒ=ʱﳵ1.Ʒ; - ̳.ﳵ.[k].=ʱﳵ1.; + 商城数据.购物车.购物栏[k].使用 = TRUE; + 商城数据.购物车.购物栏[k].商品=临时购物车数据1.商品; + 商城数据.购物车.购物栏[k].数量=临时购物车数据1.数量; break; } } } - ̳.ﳵ.[0].Ʒ = &Ʒ[i-1]; - ̳.ﳵ.[0]. = 1; - ̳.ﳵ.[0].ʹ = TRUE; - ̳.ﳵ.Ʒ͸++; - ̳.ﳵ.Ʒ++; - ̳.ﳵ.ܼ۸+=̳.ﳵ.[0].Ʒ->Ʒ۸; + 商城数据.购物车.购物栏[0].商品 = &商品数据[i-1]; + 商城数据.购物车.购物栏[0].数量 = 1; + 商城数据.购物车.购物栏[0].使用 = TRUE; + 商城数据.购物车.商品类型个数++; + 商城数据.购物车.商品总数++; + 商城数据.购物车.总价格+=商城数据.购物车.购物栏[0].商品->商品价格; } } - // printf("̳.ﳵ.Ʒ͸%3 = %d\n",̳.ﳵ.Ʒ͸%3); - ̳.ﳵ.ҳ = ̳.ﳵ.Ʒ͸%3 ? ̳.ﳵ.Ʒ͸/3+1 : ̳.ﳵ.Ʒ͸/3; - if(̳.ﳵ.ҳ*3-2>̳.ﳵ.Ʒ͸) ̳.ﳵ.ҳ--; - if(!̳.ﳵ.ҳ) ̳.ﳵ.ҳ=1; + // printf("商城数据.购物车.商品类型个数%3 = %d\n",商城数据.购物车.商品类型个数%3); + 商城数据.购物车.总页数 = 商城数据.购物车.商品类型个数%3 ? 商城数据.购物车.商品类型个数/3+1 : 商城数据.购物车.商品类型个数/3; + if(商城数据.购物车.总页数*3-2>商城数据.购物车.商品类型个数) 商城数据.购物车.总页数--; + if(!商城数据.购物车.总页数) 商城数据.购物车.总页数=1; } - }else StockDispBuffer(̳.X+̳ǵ[ʱλ-1][0]+40,̳.Y+̳ǵ[ʱλ-1][1],105,40057,1); - }else StockDispBuffer(̳.X+̳ǵ[ʱλ-1][0]+40,̳.Y+̳ǵ[ʱλ-1][1],105,40057,1); - char ʱ[128]={0}; - sprintf_s(ʱ,"%-5d",Ʒ[i-1].Ʒ۸); - StockFontBuffer(̳.X+̳ǵ[ʱλ-1][0]+15,̳.Y+̳ǵ[ʱλ-1][1]-45,1,0,Ʒ[i-1].Ʒ,0); - StockFontBuffer(̳.X+̳ǵ[ʱλ-1][0]+38,̳.Y+̳ǵ[ʱλ-1][1]-20,1,4,ʱ,0); + }else StockDispBuffer(商城数据.X+商城道具坐标[临时位置-1][0]+40,商城数据.Y+商城道具坐标[临时位置-1][1],105,40057,1); + }else StockDispBuffer(商城数据.X+商城道具坐标[临时位置-1][0]+40,商城数据.Y+商城道具坐标[临时位置-1][1],105,40057,1); + char 临时内容[128]={0}; + sprintf_s(临时内容,"%-5d金币",商品数据[i-1].商品价格); + StockFontBuffer(商城数据.X+商城道具坐标[临时位置-1][0]+15,商城数据.Y+商城道具坐标[临时位置-1][1]-45,1,0,商品数据[i-1].商品名,0); + StockFontBuffer(商城数据.X+商城道具坐标[临时位置-1][0]+38,商城数据.Y+商城道具坐标[临时位置-1][1]-20,1,4,临时内容,0); } - if(!̳.ﹺ״̬ && !ж){ - if(̳.ﶯṹ){ - DeathAction(̳.ﶯṹ); - ̳.ﶯṹ=0; - ̳.λ=-1; + if(!商城数据.宠物购物栏状态 && !宠物判断){ + if(商城数据.宠物动作结构){ + DeathAction(商城数据.宠物动作结构); + 商城数据.宠物动作结构=0; + 商城数据.宠物位置=-1; } } } - //ﳵ - if(̳.ﳵ.Ʒ>0){ - short ʼ,; - ʼ = (̳.ﳵ.ǰҳ-1)*3+1; - = ̳.ﳵ.ǰҳ*3; - if(>̳.ﳵ.Ʒ͸) = ̳.ﳵ.Ʒ͸; - short ʱλ =0; - BOOL ж = FALSE; - int i=ʼ; - for(;i<=;i++){ - ʱλ++; + //购物车处理 + if(商城数据.购物车.商品总数>0){ + short 开始,结束; + 开始 = (商城数据.购物车.当前页数-1)*3+1; + 结束 = 商城数据.购物车.当前页数*3; + if(结束>商城数据.购物车.商品类型个数) 结束 = 商城数据.购物车.商品类型个数; + short 临时位置 =0; + BOOL 购物判断 = FALSE; + int i=开始; + for(;i<=结束;i++){ + 临时位置++; - StockDispBuffer(̳.X+412,̳.Y+67+((ʱλ-1)*80),105,40053,1); - //ﳵҳ - if(MakeHitBox(̳.X+505,̳.Y+121+((ʱλ-1)*80),̳.X+505+31,̳.Y+121+((ʱλ-1)*80)+16,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+505,̳.Y+121+((ʱλ-1)*80),106,40064,1); + StockDispBuffer(商城数据.X+412,商城数据.Y+67+((临时位置-1)*80),105,40053,1); + //购物车左页 + if(MakeHitBox(商城数据.X+505,商城数据.Y+121+((临时位置-1)*80),商城数据.X+505+31,商城数据.Y+121+((临时位置-1)*80)+16,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+505,商城数据.Y+121+((临时位置-1)*80),106,40064,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - ̳.ﳵ.ܼ۸-= ̳.ﳵ.[i-1].Ʒ->Ʒ۸; - ̳.ﳵ.Ʒ-=1; - if(̳.ﳵ.[i-1].==1){ - ﳵƷɾ(i-1); - ̳.ﳵ.Ʒ͸--; - ̳.ﳵ.ҳ = ̳.ﳵ.Ʒ͸%3 ? ̳.ﳵ.Ʒ͸/3+1 : ̳.ﳵ.Ʒ͸/3; - if(̳.ﳵ.ҳ*3>̳.ﳵ.Ʒ͸) ̳.ﳵ.ҳ--; - if(!̳.ﳵ.ҳ&&̳.ﳵ.Ʒ͸) ̳.ﳵ.ҳ=1; - if(̳.ﳵ.ǰҳ>̳.ﳵ.ҳ) ̳.ﳵ.ǰҳ = ̳.ﳵ.ҳ; - if(!̳.ﳵ.Ʒ͸) + 商城数据.购物车.总价格-= 商城数据.购物车.购物栏[i-1].商品->商品价格; + 商城数据.购物车.商品总数-=1; + if(商城数据.购物车.购物栏[i-1].数量==1){ + 购物车商品删除(i-1); + 商城数据.购物车.商品类型个数--; + 商城数据.购物车.总页数 = 商城数据.购物车.商品类型个数%3 ? 商城数据.购物车.商品类型个数/3+1 : 商城数据.购物车.商品类型个数/3; + if(商城数据.购物车.总页数*3>商城数据.购物车.商品类型个数) 商城数据.购物车.总页数--; + if(!商城数据.购物车.总页数&&商城数据.购物车.商品类型个数) 商城数据.购物车.总页数=1; + if(商城数据.购物车.当前页数>商城数据.购物车.总页数) 商城数据.购物车.当前页数 = 商城数据.购物车.总页数; + if(!商城数据.购物车.商品类型个数) { - ̳.ﳵ.ǰҳ=0; - ̳.ﳵ.ҳ=0; + 商城数据.购物车.当前页数=0; + 商城数据.购物车.总页数=0; } break; - }else ̳.ﳵ.[i-1].-=1; + }else 商城数据.购物车.购物栏[i-1].数量-=1; } - }else StockDispBuffer(̳.X+505,̳.Y+121+((ʱλ-1)*80),106,40051,1); - }else StockDispBuffer(̳.X+505,̳.Y+121+((ʱλ-1)*80),106,40051,1); + }else StockDispBuffer(商城数据.X+505,商城数据.Y+121+((临时位置-1)*80),106,40051,1); + }else StockDispBuffer(商城数据.X+505,商城数据.Y+121+((临时位置-1)*80),106,40051,1); - if(MakeHitBox(̳.X+571,̳.Y+121+((ʱλ-1)*80),̳.X+571+31,̳.Y+121+((ʱλ-1)*80)+16,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+571,̳.Y+121+((ʱλ-1)*80),106,40065,1); + if(MakeHitBox(商城数据.X+571,商城数据.Y+121+((临时位置-1)*80),商城数据.X+571+31,商城数据.Y+121+((临时位置-1)*80)+16,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+571,商城数据.Y+121+((临时位置-1)*80),106,40065,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - if(̳.Ҳʱ < ̳.ﳵ.ܼ۸ + ̳.ﳵ.[i-1].Ʒ->Ʒ۸){ - StockChatBufferLine("ϵͳϵĽҲ㡣",6); + if(商城数据.玩家彩币 < 商城数据.购物车.总价格 + 商城数据.购物车.购物栏[i-1].商品->商品价格){ + StockChatBufferLine("系统:身上的金币不足。",6); break; } - if(̳.߿ < ̳.ﳵ.Ʒ+1){ - StockChatBufferLine("ϵͳϵĵλ㡣",6); + if(商城数据.道具空 < 商城数据.购物车.商品总数+1){ + StockChatBufferLine("系统:身上的道具位不足。",6); break; } - ̳.ﳵ.Ʒ++; - ̳.ﳵ.ܼ۸+=̳.ﳵ.[i-1].Ʒ->Ʒ۸; - ̳.ﳵ.[i-1].++; + 商城数据.购物车.商品总数++; + 商城数据.购物车.总价格+=商城数据.购物车.购物栏[i-1].商品->商品价格; + 商城数据.购物车.购物栏[i-1].数量++; } - }else StockDispBuffer(̳.X+571,̳.Y+121+((ʱλ-1)*80),106,40052,1); - }else StockDispBuffer(̳.X+571,̳.Y+121+((ʱλ-1)*80),106,40052,1); - ťID = StockDispBuffer(̳.X+455,̳.Y+105+((ʱλ-1)*80),106,̳.ﳵ.[i-1].Ʒ->Ʒ,1); + }else StockDispBuffer(商城数据.X+571,商城数据.Y+121+((临时位置-1)*80),106,40052,1); + }else StockDispBuffer(商城数据.X+571,商城数据.Y+121+((临时位置-1)*80),106,40052,1); + 按钮ID = StockDispBuffer(商城数据.X+455,商城数据.Y+105+((临时位置-1)*80),106,商城数据.购物车.购物栏[i-1].商品->商品形像,1); - if(HitDispNo==ťID){ - if(!̳.㴰){ - if(̳.ﶯṹ){ - if(̳.λ!=ťID){ - DeathAction(̳.ﶯṹ); - ̳.ﶯṹ=0; - ̳.λ=-1; + if(HitDispNo==按钮ID){ + if(!商城数据.结算窗口){ + if(商城数据.宠物动作结构){ + if(商城数据.宠物位置!=按钮ID){ + DeathAction(商城数据.宠物动作结构); + 商城数据.宠物动作结构=0; + 商城数据.宠物位置=-1; } } - ʾ(̳.X+455,̳.Y+105+((ʱλ-1)*80),109,̳.ﳵ.[i-1].Ʒ->Ʒ˵,̳.ﳵ.[i-1].Ʒ->ϸƷ,̳.ﳵ.[i-1].Ʒ->Ʒ); - ж=TRUE; - if(̳.ﶯṹ) ̳.λ=ťID; - }else if(̳.ﶯṹ){ - DeathAction(̳.ﶯṹ); - ̳.ﶯṹ=0; - ̳.λ=-1; + 显示道具数据(商城数据.X+455,商城数据.Y+105+((临时位置-1)*80),109,商城数据.购物车.购物栏[i-1].商品->商品说明,商城数据.购物车.购物栏[i-1].商品->详细商品形像,商城数据.购物车.购物栏[i-1].商品->商品名); + 购物判断=TRUE; + if(商城数据.宠物动作结构) 商城数据.宠物位置=按钮ID; + }else if(商城数据.宠物动作结构){ + DeathAction(商城数据.宠物动作结构); + 商城数据.宠物动作结构=0; + 商城数据.宠物位置=-1; } } - char ʱ[128]={0}; - sprintf_s(ʱ,"%-5d",̳.ﳵ.[i-1].Ʒ->Ʒ۸); - StockFontBuffer(̳.X+500,̳.Y+80+((ʱλ-1)*80),1,0,̳.ﳵ.[i-1].Ʒ->Ʒ,0); - StockFontBuffer(̳.X+535,̳.Y+100+((ʱλ-1)*80),1,4,ʱ,0); - sprintf_s(ʱ,"%d",̳.ﳵ.[i-1].); - ʱ[strlen(ʱ)]=0; - StockFontBuffer(̳.X+549,̳.Y+121+((ʱλ-1)*80),1,4,ʱ,0); + char 临时内容[128]={0}; + sprintf_s(临时内容,"%-5d金币",商城数据.购物车.购物栏[i-1].商品->商品价格); + StockFontBuffer(商城数据.X+500,商城数据.Y+80+((临时位置-1)*80),1,0,商城数据.购物车.购物栏[i-1].商品->商品名,0); + StockFontBuffer(商城数据.X+535,商城数据.Y+100+((临时位置-1)*80),1,4,临时内容,0); + sprintf_s(临时内容,"%d",商城数据.购物车.购物栏[i-1].数量); + 临时内容[strlen(临时内容)]=0; + StockFontBuffer(商城数据.X+549,商城数据.Y+121+((临时位置-1)*80),1,4,临时内容,0); } - if(ж) ̳.ﹺ״̬=TRUE; - else ̳.ﹺ״̬ = FALSE; -//ﳵťҳ - if(MakeHitBox(̳.X+420,̳.Y+312,̳.X+420+31,̳.Y+312+16,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+420,̳.Y+312,105,40064,1); + if(购物判断) 商城数据.宠物购物栏状态=TRUE; + else 商城数据.宠物购物栏状态 = FALSE; +//购物车按钮左页 + if(MakeHitBox(商城数据.X+420,商城数据.Y+312,商城数据.X+420+31,商城数据.Y+312+16,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+420,商城数据.Y+312,105,40064,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - if(̳.ﳵ.ǰҳ!=1) ̳.ﳵ.ǰҳ-=1; + if(商城数据.购物车.当前页数!=1) 商城数据.购物车.当前页数-=1; } - }else StockDispBuffer(̳.X+420,̳.Y+312,105,40051,1); - }else StockDispBuffer(̳.X+420,̳.Y+312,105,40051,1); -//ﳵťҳ - if(MakeHitBox(̳.X+575,̳.Y+312,̳.X+575+31,̳.Y+312+16,-1)==1){ - if(!̳.㴰){ - StockDispBuffer(̳.X+575,̳.Y+312,105,40065,1); + }else StockDispBuffer(商城数据.X+420,商城数据.Y+312,105,40051,1); + }else StockDispBuffer(商城数据.X+420,商城数据.Y+312,105,40051,1); +//购物车按钮右页 + if(MakeHitBox(商城数据.X+575,商城数据.Y+312,商城数据.X+575+31,商城数据.Y+312+16,-1)==1){ + if(!商城数据.结算窗口){ + StockDispBuffer(商城数据.X+575,商城数据.Y+312,105,40065,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - if(̳.ﳵ.ǰҳ!=̳.ﳵ.ҳ) ̳.ﳵ.ǰҳ+=1; + if(商城数据.购物车.当前页数!=商城数据.购物车.总页数) 商城数据.购物车.当前页数+=1; } - }else StockDispBuffer(̳.X+575,̳.Y+312,105,40052,1); - }else StockDispBuffer(̳.X+575,̳.Y+312,105,40052,1); + }else StockDispBuffer(商城数据.X+575,商城数据.Y+312,105,40052,1); + }else StockDispBuffer(商城数据.X+575,商城数据.Y+312,105,40052,1); } - char ʱ[20]={0}; - sprintf_s(ʱ,"%-3d/ %-3d",̳.ﳵ.ǰҳ,̳.ﳵ.ҳ); - StockFontBuffer(̳.X+490,̳.Y+314,1,0,ʱ,0); - memset(ʱ,0,20); - sprintf_s(ʱ,"%d",̳.Ҳʱ); - StockFontBuffer(̳.X+462,̳.Y+342,1,0,ʱ,0); - memset(ʱ,0,20); - sprintf_s(ʱ,"%d",̳.ﳵ.ܼ۸); - StockFontBuffer(̳.X+573,̳.Y+342,1,0,ʱ,0); + char 临时内容[20]={0}; + sprintf_s(临时内容,"%-3d/ %-3d",商城数据.购物车.当前页数,商城数据.购物车.总页数); + StockFontBuffer(商城数据.X+490,商城数据.Y+314,1,0,临时内容,0); + memset(临时内容,0,20); + sprintf_s(临时内容,"%d",商城数据.玩家彩币); + StockFontBuffer(商城数据.X+462,商城数据.Y+342,1,0,临时内容,0); + memset(临时内容,0,20); + sprintf_s(临时内容,"%d",商城数据.购物车.总价格); + StockFontBuffer(商城数据.X+573,商城数据.Y+342,1,0,临时内容,0); if( CheckMenuFlag() || ((joy_trg[ 0 ] & JOY_ESC) && GetImeString() == NULL) @@ -563,211 +563,211 @@ ACTION* { wnCloseFlag = 0; cloasewindows = 0; - ̳Ƕ(); + 清除商城动作(); } - return ̳.ڶṹ; + return 商城数据.窗口动作结构; } -void ̳Ƕ() +void 清除商城动作() { - if(̳.ڶṹ) DeathAction(̳.ڶṹ); - ̳.ڶṹ=0; - if(̳.ﶯṹ) DeathAction(̳.ﶯṹ); - ̳.ﶯṹ=0; - ̳.λ=-1; + if(商城数据.窗口动作结构) DeathAction(商城数据.窗口动作结构); + 商城数据.窗口动作结构=0; + if(商城数据.宠物动作结构) DeathAction(商城数据.宠物动作结构); + 商城数据.宠物动作结构=0; + 商城数据.宠物位置=-1; wnCloseFlag=0; windowTypeWN = -1; wnCloseFlag = 1; } -void ̳ǽ(short x,short y,UCHAR ) +void 商城结算(short x,short y,UCHAR 层次) { - if(̳.ʾ==1){ - StockDispBuffer(x,y,,40088,1); - StockFontBuffer(x+110,y+50,2,0,"ȷҪЩƷ",0); + if(商城数据.提示类型==1){ + StockDispBuffer(x,y,层次,40088,1); + StockFontBuffer(x+110,y+50,2,0,"您确定需要购买这些商品吗?",0); if(MakeHitBox(x+60,y+100,x+60+105,y+100+18,-1)==1){ - StockDispBuffer(x+60,y+100,+1,40084,1); + StockDispBuffer(x+60,y+100,层次+1,40084,1); if( (mouse.onceState & MOUSE_LEFT_CRICK)){ - char [256]={0}; + char 内容[256]={0}; int i=0; for(;i<15;i++){ - if(̳.ﳵ.[i].ʹ){ - char ʱ[15]={0}; - sprintf_s(ʱ,"%d|%d#",̳.ﳵ.[i].Ʒ->+1,̳.ﳵ.[i].); - strcat_s(,ʱ); + if(商城数据.购物车.购物栏[i].使用){ + char 临时[15]={0}; + sprintf_s(临时,"%d|%d#",商城数据.购物车.购物栏[i].商品->序号+1,商城数据.购物车.购物栏[i].数量); + strcat_s(内容,临时); } } - lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,̳.ID,); + lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,商城数据.窗口ID,内容); windowTypeWN = -1; wnCloseFlag = 1; } - }else StockDispBuffer(x+60,y+100,+1,40086,1); + }else StockDispBuffer(x+60,y+100,层次+1,40086,1); if(MakeHitBox(x+220,y+100,x+220+105,y+100+18,-1)==1){ - StockDispBuffer(x+220,y+100,+1,40085,1); - if( (mouse.onceState & MOUSE_LEFT_CRICK)) ̳.㴰=FALSE; - }else StockDispBuffer(x+220,y+100,+1,40087,1); + StockDispBuffer(x+220,y+100,层次+1,40085,1); + if( (mouse.onceState & MOUSE_LEFT_CRICK)) 商城数据.结算窗口=FALSE; + }else StockDispBuffer(x+220,y+100,层次+1,40087,1); }else{ - StockDispBuffer(x,y,,40088,1); - StockFontBuffer(x+130,y+50,2,0,"ĹﳵûƷ",0); + StockDispBuffer(x,y,层次,40088,1); + StockFontBuffer(x+130,y+50,2,0,"您的购物车没有商品!",0); if(MakeHitBox(x+140,y+100,x+140+105,y+100+18,-1)==1){ - StockDispBuffer(x+140,y+100,+1,40090,1); - if( (mouse.onceState & MOUSE_LEFT_CRICK)) ̳.㴰=FALSE; - }else StockDispBuffer(x+140,y+100,+1,40089,1); + StockDispBuffer(x+140,y+100,层次+1,40090,1); + if( (mouse.onceState & MOUSE_LEFT_CRICK)) 商城数据.结算窗口=FALSE; + }else StockDispBuffer(x+140,y+100,层次+1,40089,1); } } -void ʾ(short x,short y,UCHAR ,char* ,unsigned int ,char* ) +void 显示道具数据(short x,short y,UCHAR 层次,char* 内容,unsigned int 形像,char*名字 ) { - char ʱ[500]={0}; - sprintf_s(ʱ,"%s",); - char *[30]={0}; - int = 0; - if(̳.ID!=5){ - = ַи(,ʱ,"\n"); - if([-1][0]==0) --; + char 临时内容[500]={0}; + sprintf_s(临时内容,"%s",内容); + char *道具数据[30]={0}; + int 背景张数 = 0; + if(商城数据.窗口ID!=5){ + 背景张数 = 字符串切割(道具数据,临时内容,"\n"); + if(道具数据[背景张数-1][0]==0) 背景张数--; } - int 1=; - int ͼƬ,ͼƬx,ͼƬy,i=0; - if(̳.ID!=5){ + int 背景张数1=背景张数; + int 图片高,图片x,图片y,i=0; + if(商城数据.窗口ID!=5){ for(;i<6;i++){ if(i==5) { - = [i][0]; + 背景张数 = 道具内容坐标[i][0]; break; } - if([i][1]>=){ - = [i][0]; + if(道具内容坐标[i][1]>=背景张数){ + 背景张数 = 道具内容坐标[i][0]; break; } } - ͼƬ = *48+144; - if((x-190) >(628+̳.X-x-65)) ͼƬx=x-190; - else ͼƬx=x+35; - ͼƬy=y-(ͼƬ/2); - BOOL ж=FALSE; + 图片高 = 背景张数*48+144; + if((x-190) >(628+商城数据.X-x-65)) 图片x=x-190; + else 图片x=x+35; + 图片y=y-(图片高/2); + BOOL 判断=FALSE; while(true){ - if(̳.Y > ͼƬy-20){ - ͼƬy +=10; - ж=TRUE; + if(商城数据.Y > 图片y-20){ + 图片y +=10; + 判断=TRUE; } - if((̳.Y+386+30) < (ͼƬy+ͼƬ)){ - ͼƬy -=10; - ж=TRUE; + if((商城数据.Y+386+30) < (图片y+图片高)){ + 图片y -=10; + 判断=TRUE; } - if(ж) ж=FALSE; + if(判断) 判断=FALSE; else break; } - StockDispBuffer(ͼƬx+80,ͼƬy+50,,40171,1); - int =48; - if( >=1){ - for(i=1;i<=;i++) StockDispBuffer(ͼƬx+80,ͼƬy+50+*(i-1)+83,,40172,1); + StockDispBuffer(图片x+80,图片y+50,层次,40171,1); + int 高=48; + if(背景张数 >=1){ + for(i=1;i<=背景张数;i++) StockDispBuffer(图片x+80,图片y+50+高*(i-1)+83,层次,40172,1); } - StockDispBuffer(ͼƬx+80,ͼƬy+50+*+83,,40173,1); - int x,y; - x=ͼƬx+6-10; - y=ͼƬy-25+50; + StockDispBuffer(图片x+80,图片y+50+高*背景张数+83,层次,40173,1); + int 内容x,内容y; + 内容x=图片x+6-10; + 内容y=图片y-25+50; - for(i=1;i<=1+1;i++) StockFontBufferSplit(x+15,y+((i-1)*20),FONT_PRIO_AFRONT,0,[i-1],0,20); + for(i=1;i<=背景张数1+1;i++) StockFontBufferSplit(内容x+15,内容y+((i-1)*20),FONT_PRIO_AFRONT,0,道具数据[i-1],0,20); }else{ - ͼƬ = 1*48+144; - if((x-190) >(628+̳.X-x-65)) ͼƬx=x-190; - else ͼƬx=x+35; - ͼƬy=y-(ͼƬ/2); - BOOL ж=FALSE; + 图片高 = 1*48+144; + if((x-190) >(628+商城数据.X-x-65)) 图片x=x-190; + else 图片x=x+35; + 图片y=y-(图片高/2); + BOOL 判断=FALSE; while(true){ - if(̳.Y > ͼƬy-20){ - ͼƬy +=10; - ж=TRUE; + if(商城数据.Y > 图片y-20){ + 图片y +=10; + 判断=TRUE; } - if((̳.Y+386+30) < (ͼƬy+ͼƬ)){ - ͼƬy -=10; - ж=TRUE; + if((商城数据.Y+386+30) < (图片y+图片高)){ + 图片y -=10; + 判断=TRUE; } - if(ж) ж=FALSE; + if(判断) 判断=FALSE; else break; } - StockDispBuffer(ͼƬx+80,ͼƬy+50,,40171,1); - int =48; - StockDispBuffer(ͼƬx+80,ͼƬy+50+83,,40173,1); - if(!̳.ﶯṹ) ̳.ﶯṹ = MakeAnimDisp(ͼƬx+76,ͼƬy+80,,0); - StockFontBufferSplit(ͼƬx+15,ͼƬy+100,2,0,ʱ,0,20); + StockDispBuffer(图片x+80,图片y+50,层次,40171,1); + int 高=48; + StockDispBuffer(图片x+80,图片y+50+83,层次,40173,1); + if(!商城数据.宠物动作结构) 商城数据.宠物动作结构 = MakeAnimDisp(图片x+76,图片y+80,形像,0); + StockFontBufferSplit(图片x+15,图片y+100,2,0,临时内容,0,20); } } -void ﳵƷɾ(short ) +void 购物车商品删除(short 索引) { - ̳.ﳵ.[].Ʒ=0; - ̳.ﳵ.[].=0; - ̳.ﳵ.[].ʹ=FALSE; - int i = +1; + 商城数据.购物车.购物栏[索引].商品=0; + 商城数据.购物车.购物栏[索引].数量=0; + 商城数据.购物车.购物栏[索引].使用=FALSE; + int i = 索引+1; if(i>14) return; for(i;i<15;i++){ - if(!̳.ﳵ.[i].ʹ) break; - ̳.ﳵ.[].Ʒ = ̳.ﳵ.[i].Ʒ; - ̳.ﳵ.[]. = ̳.ﳵ.[i].; - ̳.ﳵ.[].ʹ=TRUE; - ̳.ﳵ.[i].Ʒ=0; - ̳.ﳵ.[i].=0; - ̳.ﳵ.[i].ʹ=FALSE; - = i; + if(!商城数据.购物车.购物栏[i].使用) break; + 商城数据.购物车.购物栏[索引].商品 = 商城数据.购物车.购物栏[i].商品; + 商城数据.购物车.购物栏[索引].数量 = 商城数据.购物车.购物栏[i].数量; + 商城数据.购物车.购物栏[索引].使用=TRUE; + 商城数据.购物车.购物栏[i].商品=0; + 商城数据.购物车.购物栏[i].数量=0; + 商城数据.购物车.购物栏[i].使用=FALSE; + 索引 = i; } } -void ̳ļȡ(char * ·,̳ļ_ *̳) +void 商城文件读取(char * 路径,商城文件_ *商城) { FILE *fp; - fopen_s(&fp,·,"rb"); + fopen_s(&fp,路径,"rb"); if( fp == NULL ) { - ̳->MD5[0]=NULL; - ̳->̳=NULL; + 商城->MD5码[0]=NULL; + 商城->商城数据=NULL; return; } int size = getfilesize(fp); - char *ʱ = (char*)malloc(size); - fread(ʱ,1,size,fp); + char *临时 = (char*)malloc(size); + fread(临时,1,size,fp); fclose(fp); - ̳->̳ = (char*)malloc(size-34+1); - memset(̳->̳,0,size-34+1); - memset(̳->MD5,0,64); - memcpy_s(̳->MD5,34,ʱ,34); - memcpy_s(̳->̳,size-34,ʱ+34,size-34); - TEA((long*)̳->̳,((size-34)/4),(long*)_KEY_); - free(ʱ); + 商城->商城数据 = (char*)malloc(size-34+1); + memset(商城->商城数据,0,size-34+1); + memset(商城->MD5码,0,64); + memcpy_s(商城->MD5码,34,临时,34); + memcpy_s(商城->商城数据,size-34,临时+34,size-34); + TEA解密((long*)商城->商城数据,((size-34)/4),(long*)_KEY_); + free(临时); } -void ̳ļ(char * ·,̳ļ_ *̳) +void 商城文件保存(char * 路径,商城文件_ *商城) { FILE *fp; - fopen_s(&fp,·,"wb"); - int length=strlen(̳->̳); + fopen_s(&fp,路径,"wb"); + int length=strlen(商城->商城数据); int length1 = length%4?length+(4-length%4):length; - char *ʱ = (char*)malloc(34+length1); - memset(ʱ,0,34+length1); - memcpy_s(ʱ,34,̳->MD5,34); - memcpy_s((ʱ+34),length,̳->̳,length); + char *临时 = (char*)malloc(34+length1); + memset(临时,0,34+length1); + memcpy_s(临时,34,商城->MD5码,34); + memcpy_s((临时+34),length,商城->商城数据,length); #ifdef _VMP_ - TEA((long *)(ʱ+34),(long)(length1/4),(long*)VMProtectDecryptStringA(_KEY_)); + TEA加密((long *)(临时+34),(long)(length1/4),(long*)VMProtectDecryptStringA(_KEY_)); #else - TEA((long *)(ʱ+34),(long)(length1/4),(long*)_KEY_); + TEA加密((long *)(临时+34),(long)(length1/4),(long*)_KEY_); #endif - fwrite(ʱ, length1+34, 1, fp); - free(ʱ); + fwrite(临时, length1+34, 1, fp); + free(临时); fclose(fp); } -void ̳dzʼ() +void 商城初始化() { - ̳ļȡ("./data/shop1.bin",&̳ļ[0]); - ̳ļȡ("./data/shop2.bin",&̳ļ[1]); - ̳ļȡ("./data/shop3.bin",&̳ļ[2]); - ̳ļȡ("./data/shop4.bin",&̳ļ[3]); - ̳ļȡ("./data/shop5.bin",&̳ļ[4]); + 商城文件读取("./data/shop1.bin",&商城文件[0]); + 商城文件读取("./data/shop2.bin",&商城文件[1]); + 商城文件读取("./data/shop3.bin",&商城文件[2]); + 商城文件读取("./data/shop4.bin",&商城文件[3]); + 商城文件读取("./data/shop5.bin",&商城文件[4]); } #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/system/skyisland.cpp b/石器时代8.5客户端最新源代码/石器源码/system/skyisland.cpp index a9f110c..acfc1c1 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/skyisland.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/skyisland.cpp @@ -1,4 +1,4 @@ - + #include "../systeminc/version.h" #include "../systeminc/system.h" #include "../systeminc/loadrealbin.h" @@ -12,7 +12,7 @@ LPDIRECTDRAWSURFACE lpsurLand = NULL; LPDIRECTDRAWSURFACE lpsurCloud1 = NULL; LPDIRECTDRAWSURFACE lpsurCloud2 = NULL; -#ifdef _MOON_FAIRYLAND // (ɿ) ROG ADD ֮ɾ +#ifdef _MOON_FAIRYLAND // (不可开) ROG ADD 月之仙境 BOOL moonFlag = FALSE; #endif #ifdef _NEW_CLOUD @@ -47,38 +47,38 @@ void LoadBmpToSurface( int noFrom, LPDIRECTDRAWSURFACE lpsurTo, int w, int h) ( unsigned char **)&pRealBinBits, &RealBinWidth, &RealBinHeight ) ){ - // realbinͼҪŶ + // realbin档图素要倒着读 pRealBinBits += (w * (h-1)); if( displayBpp == 32){ extern unsigned int highColor32Palette[256]; int* surface; surface = (int *)ddsd.lpSurface; - // ߲һҪ2byte,pitch2ɫֵ + // 高彩一个点要用2个byte,所以pitch除2方便填颜色值 ddsd.lPitch >>= 2; // ddsd.lPitch /= 2; unsigned int pixel; for( int i = 0; i < h; i++){ for( int j = 0; j < w; j++){ pixel = highColor32Palette[(unsigned char)pRealBinBits[j]]; - // ͸ɫ + // 透明色不处理 if( pixel) surface[j] = pixel; } - // һ + // 换下一行 surface += ddsd.lPitch; pRealBinBits -= w; } }else if( displayBpp == 16){ LPWORD surface; surface = (LPWORD)ddsd.lpSurface; - // ߲һҪ2byte,pitch2ɫֵ + // 高彩一个点要用2个byte,所以pitch除2方便填颜色值 ddsd.lPitch >>= 1; // ddsd.lPitch /= 2; unsigned short pixel; for( short i = 0; i < h; i++){ for( short j = 0; j < w; j++){ pixel = highColorPalette[(unsigned char)pRealBinBits[j]]; - // ͸ɫ + // 透明色不处理 if( pixel) surface[j] = pixel; } - // һ + // 换下一行 surface += ddsd.lPitch; pRealBinBits -= w; } @@ -197,14 +197,14 @@ void SkyIslandSetNo( int fl) sky_island_no_bak = sky_island_no; sky_island_no = 0; -#ifdef _MOON_FAIRYLAND // (ɿ) ROG ADD ֮ɾ +#ifdef _MOON_FAIRYLAND // (不可开) ROG ADD 月之仙境 moonFlag = FALSE; #endif #ifdef _NEW_CLOUD NCLOUD_Flag = FALSE; #endif switch( fl){ -//ظloadmap +//避免重复的loadmap动作 case 30691: sky_island_no = (1<<16) | 40510; break; @@ -223,10 +223,10 @@ void SkyIslandSetNo( int fl) case 30689: sky_island_no = (6<<16) | 40510; break; - case 5581://ɺ + case 5581://金飞航空 sky_island_no = (1<<16) | 40511; break; -#ifdef _MOON_FAIRYLAND // (ɿ) ROG ADD ֮ɾ +#ifdef _MOON_FAIRYLAND // (不可开) ROG ADD 月之仙境 case 8255: sky_island_no = (1<<16) | 40512; moonFlag = TRUE; @@ -247,7 +247,7 @@ void SkyIslandSetNo( int fl) sky_island_no = (1<<16); break; #endif - // ̨ + // 神台 case 104: sky_island_no = (2<<16) | 40511; break; @@ -288,30 +288,30 @@ void SkyIslandDraw() bDrawUpCloud = TRUE; if(compx != (int)pc.ptAct->mx || compy != (int)pc.ptAct->my){ switch(pc.dir){ - // + // 下 case 0: g_rc.top++; break; - // + // 左下 case 1: g_rc.left--; g_rc.top++; break; - // + // 左 case 2: g_rc.left--; break; - // + // 左上 case 3: g_rc.left--; g_rc.top--; break; - // + // 上 case 4: g_rc.top--; break; - // + // 右上 case 5: g_rc.left++; g_rc.top--; break; - // + // 右 case 6: g_rc.left++; break; - // + // 右下 case 7: g_rc.left++; g_rc.top++; @@ -343,7 +343,7 @@ void SkyIslandDraw() #ifdef _READ16BITBMP if(g_bUseAlpha) lpDraw->lpBACKBUFFERSYS->BltFast( 0, 0, lpsurLand, &rc, DDBLTFAST_WAIT); #endif -#ifdef _MOON_FAIRYLAND // (ɿ) ROG ADD ֮ɾ +#ifdef _MOON_FAIRYLAND // (不可开) ROG ADD 月之仙境 if(moonFlag == TRUE) return; #endif @@ -352,7 +352,7 @@ void SkyIslandDraw() iCloudX1 += iCloudDX; iCloudY1 += iCloudDY; if(((iCloudX1>=DEF_APPSIZEX) || (iCloudY1>=DEF_APPSIZEY)) ){ - //һµ + //产生一朵新的云 #ifdef __CARYTEST iCloudNo1 = 40500+(rand()&0x3); DWORD no; @@ -428,7 +428,7 @@ void SkyIslandDraw2( int fl ) void SkyIslandDraw2() #endif { -#ifdef _MOON_FAIRYLAND // (ɿ) ROG ADD ֮ɾ +#ifdef _MOON_FAIRYLAND // (不可开) ROG ADD 月之仙境 if(moonFlag == TRUE) return; #endif @@ -449,7 +449,7 @@ void SkyIslandDraw2() iCloudY2 += iCloudDY; if( (iCloudX2>=DEF_APPSIZEX) || //((iCloudX2+CloudWidth2)<0) || (iCloudY2>=DEF_APPSIZEY) /*|| ((iCloudY2+CloudHeight2)<0)*/){ - //һµ + //产生一朵新的云 DWORD no; #ifdef _NEW_CLOUD if( fl == 61000 || fl == 61100 ){ diff --git a/石器时代8.5客户端最新源代码/石器源码/system/sprdisp.cpp b/石器时代8.5客户端最新源代码/石器源码/system/sprdisp.cpp index a05035a..b27e443 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/sprdisp.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/sprdisp.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* sprdisp.c */ /************************/ #include "../systeminc/version.h" @@ -12,16 +12,16 @@ #define STOCK_DISP_BUFFER_NO_BMP ( 1 << 31 ) // ??????? #define STOCK_DISP_BUFFER_LINE ( 1 << 30 ) // ??? #define STOCK_DISP_BUFFER_BOX ( 1 << 29 ) // ???? -#define STOCK_DISP_BUFFER_BOX_FILL ( 1 << 28 ) // ????D???? +#define STOCK_DISP_BUFFER_BOX_FILL ( 1 << 28 ) // ???????? #define STOCK_DISP_BUFFER_CIRCLE ( 1 << 27 ) // ? extern int displayBpp; -// ?????Bl +// ????? DISP_BUFFER DispBuffer; #ifndef __CARYTEST -// Realbin ??????????????? +// Realbin ??????????????? char *pRealBinBits; -// ?? Realbin ???????????? +// ?? Realbin ???????????? int RealBinWidth, RealBinHeight; #endif #ifdef _READ16BITBMP @@ -47,10 +47,10 @@ extern AddressBin_s adrntruebuff[MAX_GRAPHICS_24]; extern BOOL g_bUseAlpha; #endif -// ???{??? +// ?????? int SortComp( DISP_SORT *pDisp1, DISP_SORT *pDisp2 ); typedef int CMPFUNC( const void *, const void * ); -// ????????????????? +// ????????????????? inline void GetBoxDispBuffer( DISP_INFO *pDispInfo, int bmpNo ); #ifdef _SURFACE_ANIM void DrawAni(void); @@ -74,14 +74,14 @@ void DrawSfumato(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int off #endif void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offsety,int ow,int oh,bool bLastOne); void DrawGray(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offsety,int ow,int oh,bool bLastOne,int iGrayType); -// ??????? /////////////////////////////////////////////////////////// +// ??????? /////////////////////////////////////////////////////////// void SortDispBuffer( void ) { //??????? - qsort( DispBuffer.DispSort, // ?Bl????? - DispBuffer.DispCnt, // {????? - sizeof( DISP_SORT ), // ?Bl???? - ( CMPFUNC * )SortComp // {????????? + qsort( DispBuffer.DispSort, // ?????? + DispBuffer.DispCnt, // ????? + sizeof( DISP_SORT ), // ????? + ( CMPFUNC * )SortComp // ????????? ); } DISP_SORT *pSortTileTail; @@ -89,7 +89,7 @@ DISP_SORT *pSortTileTail; #ifdef __SKYISLAND -// ????? ///////////////////////////////////////////////////////////////// +// ????? ///////////////////////////////////////////////////////////////// BOOL PutTileBmp( void ) { DISP_INFO *pDispInfo; @@ -150,7 +150,7 @@ BOOL PutTileBmp( void ) #ifdef _SURFACE_ANIM if(pSortTileTail->dispPrio == 0) continue; #endif - // Ϊ,Ŀǰʾ˳ȵرĻ,ʾرѾ + // 因为有排序过,所以如果目前的显示顺序比地表大的话,表示地表已经处理完了 if( pSortTileTail->dispPrio > DISP_PRIO_TILE){ DispBuffer.DispCnt -= i; #ifdef _SURFACE_ANIM @@ -158,13 +158,13 @@ BOOL PutTileBmp( void ) #endif break; } - // ????V???????????? - // ȡõһҪͼ DispInfo + // ???????????????? + // 取得第一个要处理的图的 DispInfo 资料 pDispInfo = DispBuffer.DispInfo + pSortTileTail->no; - bmpNo = pDispInfo->bmpNo; // ???k? + bmpNo = pDispInfo->bmpNo; // ???? // ????? - // ???Re?????? + // ????????? if( pDispInfo->pAct != NULL ){ if( pDispInfo->pAct->atr & ACT_ATR_HIDE2 ) continue; } @@ -247,14 +247,14 @@ BOOL PutTileBmp( void ) unsigned char AlphaBytes[64*48+1]; unsigned char AlphaColorBytes[64*48*4+1]; -// ????? ///////////////////////////////////////////////////////////////// +// ????? ///////////////////////////////////////////////////////////////// void PutBmp( void ) { #ifdef __SKYISLAND - // ??????????? - switch( BackBufferDrawType ){// - case DRAW_BACK_NORMAL://ޱ - ClearBackSurface(); //ձʾ + // ??????????? + switch( BackBufferDrawType ){//背景类型 + case DRAW_BACK_NORMAL://无背景 + ClearBackSurface(); //清空背景显示 void SkyIslandProc(); SkyIslandProc(); if( !PutTileBmp() ){ @@ -267,7 +267,7 @@ void PutBmp( void ) DrawAni(); #endif break; - case DRAW_BACK_BATTLE: //ս + case DRAW_BACK_BATTLE: //战斗背景 amountXFastDraw = amountYFastDraw = 0; PutTileBmp(); DrawBattleMap(); @@ -298,7 +298,7 @@ void PutBmp( void ) SURFACE_INFO *lpSurfaceInfoSys; #endif #else - DDSURFACEDESC ddsd; // ??????Bl + DDSURFACEDESC ddsd; // ?????? LPWORD surface; int pitch; BOOL locked = FALSE; @@ -315,7 +315,7 @@ void PutBmp( void ) // ??????????? for( i = 0; i < DispBuffer.DispCnt ; i++, pDispSort++ ){ pDispInfo = &DispBuffer.DispInfo[pDispSort->no]; - bmpNo = pDispInfo->bmpNo;//ͼID + bmpNo = pDispInfo->bmpNo;//秀图ID if( putTextFlag == 0 ){ if( pDispSort->dispPrio >= DISP_PRIO_MENU ){ PutText( FONT_PRIO_BACK ); @@ -331,8 +331,8 @@ void PutBmp( void ) putTextFlag = 2; } } -#ifdef _TRADETALKWND // Syu ADD Ի - //һµʾ˳ +#ifdef _TRADETALKWND // Syu ADD 交易新增对话框架 + //增加一层新的文字显示顺序 if( putTextFlag == 2 ){ if( pDispSort->dispPrio >= DISP_PRIO_BOX3 ){ PutText( FONT_PRIO_AFRONT ); @@ -344,7 +344,7 @@ void PutBmp( void ) if( MenuToggleFlag & JOY_CTRL_M && pActMenuWnd2 != NULL ){ if( pActMenuWnd2->hp > 0 ){ #ifdef _2005_ValentineDay - // ҿСͼ + // 不让玩家看到小地图 if (nowFloor != 17006) #endif drawAutoMap( pActMenuWnd2->x, pActMenuWnd2->y ); @@ -366,7 +366,7 @@ void PutBmp( void ) drawMapEffectFlag = 1; } #ifndef __SKYISLAND - // ?????L? + // ?????? if( fastDrawTile ){ RECT src; int sx, sy; @@ -427,12 +427,12 @@ void PutBmp( void ) #ifdef _CACHE_SURFACE_ DrawSurfaceFromPalette(lpSurfaceInfo); #endif - if(pDispInfo->DrawEffect == 2)//ʹ + if(pDispInfo->DrawEffect == 2)//饱和处理 DrawStaturated(lpSurfaceInfo->lpSurface, pDispInfo->x + lpSurfaceInfo->offsetX,pDispInfo->y + lpSurfaceInfo->offsetY, lpSurfaceInfo->offsetX,lpSurfaceInfo->offsetY, SpriteInfo[bmpNo].width,SpriteInfo[bmpNo].height,(lpSurfaceInfo->pNext == NULL ? true:false)); - else if(pDispInfo->DrawEffect == 3 || pDispInfo->DrawEffect == 4)//ʯж + else if(pDispInfo->DrawEffect == 3 || pDispInfo->DrawEffect == 4)//石化和中毒处理 DrawGray(lpSurfaceInfo->lpSurface, pDispInfo->x + lpSurfaceInfo->offsetX,pDispInfo->y + lpSurfaceInfo->offsetY, lpSurfaceInfo->offsetX,lpSurfaceInfo->offsetY, @@ -540,7 +540,7 @@ void PutBmp( void ) #endif putTextFlag = 1; } - // ?????( FRONT ) + // ?????( FRONT ) if( putTextFlag == 1 ){ PutText( FONT_PRIO_FRONT ); } @@ -553,14 +553,14 @@ void PutBmp( void ) } //**************************************************************************/ -// ?? ?????????????? -// ?? UCHAR dispPrio???????? -// int x, int y -// int bmpNoͼƬ -// int chr_no??????k? -// int pat_no????k? +// ??: ?????????????? +// ??: UCHAR dispPrio:???????? +// int x, int y:坐标 +// int bmpNo:图片号 +// int chr_no:??????? +// int pat_no:????? //**************************************************************************/ -// ҪŵImage +// 储存所有要播放的Image int StockDispBuffer( int x, int y, UCHAR dispPrio, int bmpNo, BOOL hitFlag ) { short dx,dy; @@ -613,26 +613,26 @@ int StockDispBuffer2( int x, int y, UCHAR dispPrio, int bmpNo, BOOL hitFlag ) { short dx,dy; int BmpNo; - // ??V????????????? + // ??????????????? DISP_SORT *pDispSort = DispBuffer.DispSort + DispBuffer.DispCnt; DISP_INFO *pDispInfo = DispBuffer.DispInfo + DispBuffer.DispCnt; // ?????????? if( DispBuffer.DispCnt >= DISP_BUFFER_SIZE ) return -2; // ?????????????? if( -1 <= bmpNo && bmpNo <= CG_INVISIBLE ) return -2; - // GФ??? + // ??? if( bmpNo > CG_INVISIBLE ){ BmpNo = bmpNo; realGetPos( BmpNo , &dx, &dy); - }else{// ???????????? + }else{// ???????????? dx = 0; dy = 0; BmpNo = bmpNo; } - // ?I?????Bl + // ?????? pDispSort->dispPrio = dispPrio; pDispSort->no = DispBuffer.DispCnt; - // ѩ?Bl? ??????? ? + // ?? ??????? ? pDispInfo->x = x + dx; pDispInfo->y = y + dy; pDispInfo->bmpNo = BmpNo; @@ -650,14 +650,14 @@ int StockDispBuffer2( int x, int y, UCHAR dispPrio, int bmpNo, BOOL hitFlag ) } -// ҪŵImageAct״趨 +// 储存所有要播放的Image,依Act的状况来设定 void StockTaskDispBuffer( void ) { - ACTION *pActLoop; /* Id????????x */ + ACTION *pActLoop; /* ???????? */ DISP_SORT *pDispSort = DispBuffer.DispSort + DispBuffer.DispCnt; DISP_INFO *pDispInfo = DispBuffer.DispInfo + DispBuffer.DispCnt; - /* ?????????? */ + /* ?????????? */ //while( pActLoop != pActBtm ){ for(pActLoop = pActTop->pNext ; pActLoop != pActBtm ; @@ -670,23 +670,23 @@ void StockTaskDispBuffer( void ) // ?????????????? if( -1 <= pActLoop ->bmpNo && pActLoop ->bmpNo <= CG_INVISIBLE ) continue; - // ???????????? + // ???????????? if( pActLoop ->deathFlag == TRUE ) continue; - /* ??I?? */ + /* ???? */ if( pActLoop->atr & ACT_ATR_HIDE ) continue; - // ?I?????Bl + // ?????? pDispSort->dispPrio = pActLoop->dispPrio; pDispSort->no = DispBuffer.DispCnt; - // ѩ?Bl? ??????? ? + // ?? ??????? ? pDispInfo->x = pActLoop->x + pActLoop->anim_x; pDispInfo->y = pActLoop->y + pActLoop->anim_y; pDispInfo->bmpNo = pActLoop->bmpNo; pDispInfo->pAct = pActLoop; - // ???Re???? - // ?k?? + // ??????? + // ??? if( pActLoop->atr & ACT_ATR_HIT_BOX_COL1 ) pDispInfo->hitFlag = 7; @@ -712,14 +712,14 @@ void StockTaskDispBuffer( void ) if( pActLoop->atr & ACT_ATR_HIT_BOX_ALL2 ) pDispInfo->hitFlag = 4; else if( pActLoop->atr & ACT_ATR_HIT_BOX_ALL1 ) pDispInfo->hitFlag = 3; - else // ???? + else // ???? if( pActLoop->atr & ACT_ATR_HIT_BOX ) pDispInfo->hitFlag = 2; - else // Re?? + else // ?? if( pActLoop->atr & ACT_ATR_HIT ) pDispInfo->hitFlag = 1; else pDispInfo->hitFlag = FALSE; - // 4 ʯ + // 4 石化 if(pActLoop->status == 4) pDispInfo->DrawEffect = 3; - // 1 + // 1 毒 else if(pActLoop->status == 1) pDispInfo->DrawEffect = 4; else pDispInfo->DrawEffect = 0; #ifdef _PETCOLOR_ @@ -738,12 +738,12 @@ void StockTaskDispBuffer( void ) if(adrntruebuff[pDispInfo->bmpNo - OLD_GRAPHICS_START].staturated == 1) pDispInfo->DrawEffect = 2; } #endif - // ??????????Rek??? + // ????????????? pActLoop->hitDispNo = DispBuffer.DispCnt; #ifdef _SFUMATO pDispInfo->sfumato = pActLoop->sfumato; #endif - // ???????? + // ???????? DispBuffer.DispCnt++; // ??????? @@ -753,11 +753,11 @@ void StockTaskDispBuffer( void ) } -// ??????????????? /////////////////////////////////////////////////// +// ??????????????? /////////////////////////////////////////////////// // ???prio1??prio2??????????? void StockTaskDispBuffer2( int prio1, int prio2 ) { - ACTION *pActLoop; /* Id????????x */ + ACTION *pActLoop; /* ???????? */ DISP_SORT *pDispSort = DispBuffer.DispSort + DispBuffer.DispCnt; DISP_INFO *pDispInfo = DispBuffer.DispInfo + DispBuffer.DispCnt; int tmp; @@ -769,7 +769,7 @@ void StockTaskDispBuffer2( int prio1, int prio2 ) prio2 = tmp; } - /* ?????????? */ + /* ?????????? */ //while( pActLoop != pActBtm ){ for(pActLoop = pActTop->pNext ; pActLoop != pActBtm ; @@ -779,37 +779,37 @@ void StockTaskDispBuffer2( int prio1, int prio2 ) // ?????????? if( DispBuffer.DispCnt >= DISP_BUFFER_SIZE ) break; - // prio1??prio2?ed??????? + // prio1??prio2???????? if( prio1 <= pActLoop->dispPrio && pActLoop->dispPrio <= prio2 ) continue; // ?????????????? if( -1 <= pActLoop ->bmpNo && pActLoop ->bmpNo <= CG_INVISIBLE ) continue; - // ???????????? + // ???????????? if( pActLoop ->deathFlag == TRUE ) continue; - /* ??I?? */ + /* ???? */ if( pActLoop->atr & ACT_ATR_HIDE ) continue; - // ?I?????Bl + // ?????? pDispSort->dispPrio = pActLoop->dispPrio; pDispSort->no = DispBuffer.DispCnt; - // ѩ?Bl? ??????? ? + // ?? ??????? ? pDispInfo->x = pActLoop->x + pActLoop->anim_x; pDispInfo->y = pActLoop->y + pActLoop->anim_y; pDispInfo->bmpNo = pActLoop->bmpNo; pDispInfo->pAct = pActLoop; - // ???Re???? + // ??????? if( pActLoop->atr & ACT_ATR_HIT_BOX ) pDispInfo->hitFlag = 2; else if( pActLoop->atr & ACT_ATR_HIT ) pDispInfo->hitFlag = 1; else pDispInfo->hitFlag = FALSE; - // ??????????Rek??? + // ????????????? pActLoop->hitDispNo = DispBuffer.DispCnt; - // ???????? + // ???????? DispBuffer.DispCnt++; // ??????? pDispSort++; @@ -818,17 +818,17 @@ void StockTaskDispBuffer2( int prio1, int prio2 ) } -// ???????????????? ***************************************/ +// ???????????????? ***************************************/ void StockBoxDispBuffer( int x1, int y1, int x2, int y2, UCHAR dispPrio, int color, BOOL fill ) { - int col; // ?e + int col; // ? // int ? short ?????? - int x = ( x1 << 16 ) | x2; // ???????????????? - int y = ( y1 << 16 ) | y2; // ???????????????? + int x = ( x1 << 16 ) | x2; // ???????????????? + int y = ( y1 << 16 ) | y2; // ???????????????? // ??????? if( fill == 0 ) col = color | STOCK_DISP_BUFFER_BOX | STOCK_DISP_BUFFER_NO_BMP ; - // D??????? + // ??????? else if( fill == 1 ) col = color | STOCK_DISP_BUFFER_BOX_FILL | STOCK_DISP_BUFFER_NO_BMP ; // ????? else if( fill == 2 ) col = color | STOCK_DISP_BUFFER_LINE | STOCK_DISP_BUFFER_NO_BMP ; @@ -837,28 +837,28 @@ void StockBoxDispBuffer( int x1, int y1, int x2, int y2, UCHAR dispPrio, int col StockDispBuffer( x, y, dispPrio, col, 0 ); } -// ????????????????? *********************************/ +// ????????????????? *********************************/ inline void GetBoxDispBuffer( DISP_INFO *pDispInfo, int bmpNo ) { // ?????? RECT rect; - int color; // - BOOL fill = FALSE; // D??????? + int color; //  + BOOL fill = FALSE; // ??????? int DispInfoX = pDispInfo->x; int DispInfoY = pDispInfo->y; - // ???? + // ???? rect.right = ( LONG )( pDispInfo->x & 0xffff ); rect.bottom = ( LONG )( pDispInfo->y & 0xffff ); // ?????????? _asm{ - // rect.left ??? + // rect.left ??? mov cl,16 // ?????????? mov eax, [ DispInfoX ] - sar eax, cl // ?????? + sar eax, cl // ?????? mov [ rect.left ], eax - // rect.top ??? + // rect.top ??? mov eax, [ DispInfoY ] sar eax, cl mov [ rect.top ], eax @@ -867,43 +867,43 @@ inline void GetBoxDispBuffer( DISP_INFO *pDispInfo, int bmpNo ) // ??????? if( bmpNo & STOCK_DISP_BUFFER_BOX ){ - color = bmpNo & 0xff; // ?????? - DrawBox( &rect, color, 0 ); // ????? + color = bmpNo & 0xff; // ?????? + DrawBox( &rect, color, 0 ); // ????? - // D??????? + // ??????? }else if( bmpNo & STOCK_DISP_BUFFER_BOX_FILL ){ - color = color = bmpNo & 0xff; // e - DrawBox( &rect, color, 1 ); // ????? + color = color = bmpNo & 0xff; //  + DrawBox( &rect, color, 1 ); // ????? }else if( bmpNo & STOCK_DISP_BUFFER_LINE ){ - color = color = bmpNo & 0xff; // e - DrawBox( &rect, color, 2 ); // ???? + color = color = bmpNo & 0xff; //  + DrawBox( &rect, color, 2 ); // ???? } } -// ???{??? ////////////////////////////////////////////////////////////// +// ?????? ////////////////////////////////////////////////////////////// int SortComp( DISP_SORT *pDisp1, DISP_SORT *pDisp2 ) { - // pDisp1 ??IT??????V?v? + // pDisp1 ?????????? if( pDisp1->dispPrio > pDisp2->dispPrio ){ return 1; } - // pDisp2 ??IT?????????? + // pDisp2 ???????????? if( pDisp1->dispPrio < pDisp2->dispPrio ){ return -1; } - // ?????K???? - // pDisp1 ?????????????????? + // ????????? + // pDisp1 ?????????????????? if( pDisp1->no > pDisp2->no ){ return -1; } - // ????????V?v??????? + // ???????????????? return 1; } #ifdef _SURFACE_ANIM -// ̬ر(ȨΪ0Ķ̬ر) +// 画动态地表(优先权为0的动态地表) void DrawAni() { DISP_INFO *pDispInfo; @@ -918,14 +918,14 @@ void DrawAni() DispBuffer.DispCnt += iProcessAniNum; for(int i = 0; idispPrio == DISP_PRIO_TILE) continue; - // Ϊ,Ŀǰʾ˳ȵرĻ,ʾرѾ + // 因为有排序过,所以如果目前的显示顺序比地表大的话,表示地表已经处理完了 if( pSortTileTail->dispPrio > DISP_PRIO_TILE){ DispBuffer.DispCnt -= i; break; } - // ȡõһҪͼ DispInfo + // 取得第一个要处理的图的 DispInfo 资料 pDispInfo = DispBuffer.DispInfo + pSortTileTail->no; - bmpNo = pDispInfo->bmpNo; // ???k? + bmpNo = pDispInfo->bmpNo; // ???? if( pDispInfo->pAct != NULL ){ if( pDispInfo->pAct->atr & ACT_ATR_HIDE2 ) continue; @@ -1038,7 +1038,7 @@ void DrawGray(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offset ptSourceDest = (DWORD*)(ddsdSource.lpSurface) + oy * surfacePitch1 + ox; ptOverLayerDest = (DWORD*)(ddsdOverlayer.lpSurface) +dy * surfacePitch2 + dx; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 0){ for(j=0;j= 0){ @@ -1077,7 +1077,7 @@ void DrawGray(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offset ptSourceDest = (WORD*)(ddsdSource.lpSurface) + oy * surfacePitch1 + ox; ptOverLayerDest = (WORD*)(ddsdOverlayer.lpSurface) +dy * surfacePitch2 + dx; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ for(j=0;j= 0){ @@ -1170,7 +1170,7 @@ void DrawGrayA(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offse surfacePitch2 = ddsdOverlayer.lPitch >> 2; ptSourceDest = (DWORD*)(ddsdSource.lpSurface) + oy * surfacePitch1 + ox; ptOverLayerDest = (DWORD*)(ddsdOverlayer.lpSurface) +dy * surfacePitch2 + dx; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 0){ for(j=0;j= 0){ @@ -1213,7 +1213,7 @@ void DrawGrayA(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offse ptSourceDest = (WORD*)(ddsdSource.lpSurface) + oy * surfacePitch1 + ox; ptOverLayerDest = (WORD*)(ddsdOverlayer.lpSurface) +dy * surfacePitch2 + dx; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ for(j=0;j= 0){ @@ -1320,7 +1320,7 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int int i,j,nColorSource,nColorOverlayer; DWORD SR,SG,SB,OR,OG,OB; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ #ifdef _HI_COLOR_32 if( displayBpp == 32 ){ @@ -1329,8 +1329,8 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int nColorSource = *(DWORD*)ptSourceDest32; nColorOverlayer = *(DWORD*)ptOverLayerDest32; if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xff0000) >> 8; // ԭҪ113,򻯳8 - SG = (nColorSource & 0x00ff00) >> 3; // ԭҪ52,򻯳3 + SR = (nColorSource & 0xff0000) >> 8; // 原本要右移11左移3,简化成右移8 + SG = (nColorSource & 0x00ff00) >> 3; // 原本要右移5左移2,简化成右移3 SB = (nColorSource & 0x0000ff) << 3; OR = (nColorOverlayer & 0xff0000) >> 8; OG = (nColorOverlayer & 0x00ff00) >> 3; @@ -1357,8 +1357,8 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int nColorSource = *(WORD*)ptSourceDest; nColorOverlayer = *(WORD*)ptOverLayerDest; if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xf800) >> 8; // ԭҪ113,򻯳8 - SG = (nColorSource & 0x07e0) >> 3; // ԭҪ52,򻯳3 + SR = (nColorSource & 0xf800) >> 8; // 原本要右移11左移3,简化成右移8 + SG = (nColorSource & 0x07e0) >> 3; // 原本要右移5左移2,简化成右移3 SB = (nColorSource & 0x001f) << 3; OR = (nColorOverlayer & 0xf800) >> 8; OG = (nColorOverlayer & 0x07e0) >> 3; @@ -1379,7 +1379,7 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int } } } - // 555 ʾģʽ + // 555 显示模式 else{ #ifdef _HI_COLOR_32 if( displayBpp == 32 ){ @@ -1388,8 +1388,8 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int nColorSource = *(DWORD*)ptSourceDest32; nColorOverlayer = *(DWORD*)ptOverLayerDest32; if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xff0000) >> 7; // ԭҪ103,򻯳7 - SG = (nColorSource & 0x00ff00) >> 2; // ԭҪ53,򻯳2 + SR = (nColorSource & 0xff0000) >> 7; // 原本要右移10左移3,简化成右移7 + SG = (nColorSource & 0x00ff00) >> 2; // 原本要右移5左移3,简化成右移2 SB = (nColorSource & 0x0000ff) << 3; OR = (nColorSource & 0xff0000) >> 7; OG = (nColorOverlayer & 0x00ff00) >> 2; @@ -1416,8 +1416,8 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int nColorSource = *(WORD*)ptSourceDest; nColorOverlayer = *(WORD*)ptOverLayerDest; if(nColorOverlayer != DEF_COLORKEY){ - SR = nColorSource >> 7; // ԭҪ103,򻯳7 - SG = (nColorSource & 0x03e0) >> 2; // ԭҪ53,򻯳2 + SR = nColorSource >> 7; // 原本要右移10左移3,简化成右移7 + SG = (nColorSource & 0x03e0) >> 2; // 原本要右移5左移3,简化成右移2 SB = (nColorSource & 0x001f) << 3; OR = nColorOverlayer >> 7; OG = (nColorOverlayer & 0x03e0) >> 2; @@ -1521,7 +1521,7 @@ void DrawAlpha(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offse DWORD SR,SG,SB,OR,OG,OB; w >>= 1; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ #ifdef _HI_COLOR_32 if( displayBpp == 32 ){ @@ -1530,8 +1530,8 @@ void DrawAlpha(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offse nColorSource = *(DWORD*)ptSourceDest32; nColorOverlayer = *(DWORD*)ptOverLayerDest32; if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xff0000) >> 8; // ԭҪ113,򻯳8 - SG = (nColorSource & 0x00ff00) >> 3; // ԭҪ52,򻯳3 + SR = (nColorSource & 0xff0000) >> 8; // 原本要右移11左移3,简化成右移8 + SG = (nColorSource & 0x00ff00) >> 3; // 原本要右移5左移2,简化成右移3 SB = (nColorSource & 0x0000ff) << 3; OR = (nColorOverlayer & 0xff0000) >> 8; OG = (nColorOverlayer & 0x00ff00) >> 3; @@ -1577,8 +1577,8 @@ void DrawAlpha(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offse nColorSource = *(WORD*)ptSourceDest; nColorOverlayer = *(WORD*)ptOverLayerDest; if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xf800) >> 8; // ԭҪ113,򻯳8 - SG = (nColorSource & 0x07e0) >> 3; // ԭҪ52,򻯳3 + SR = (nColorSource & 0xf800) >> 8; // 原本要右移11左移3,简化成右移8 + SG = (nColorSource & 0x07e0) >> 3; // 原本要右移5左移2,简化成右移3 SB = (nColorSource & 0x001f) << 3; OR = (nColorOverlayer & 0xf800) >> 8; OG = (nColorOverlayer & 0x07e0) >> 3; @@ -1619,7 +1619,7 @@ void DrawAlpha(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offse } } - // 555 ʾģʽ + // 555 显示模式 else{ #ifdef _HI_COLOR_32 if( displayBpp == 32 ){ @@ -1628,8 +1628,8 @@ void DrawAlpha(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offse nColorSource = *(DWORD*)ptSourceDest32; nColorOverlayer = *(DWORD*)ptOverLayerDest32; if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xff0000) >> 7; // ԭҪ103,򻯳7 - SG = (nColorSource & 0x00ff00) >> 2; // ԭҪ53,򻯳2 + SR = (nColorSource & 0xff0000) >> 7; // 原本要右移10左移3,简化成右移7 + SG = (nColorSource & 0x00ff00) >> 2; // 原本要右移5左移3,简化成右移2 SB = (nColorSource & 0x0000ff) << 3; OR = (nColorOverlayer & 0xff0000) >> 7; OG = (nColorOverlayer & 0x00ff00) >> 2; @@ -1677,8 +1677,8 @@ void DrawAlpha(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offse nColorSource = *(WORD*)ptSourceDest; nColorOverlayer = *(WORD*)ptOverLayerDest; if(nColorOverlayer != DEF_COLORKEY){ - SR = nColorSource >> 7; // ԭҪ103,򻯳7 - SG = (nColorSource & 0x03e0) >> 2; // ԭҪ53,򻯳2 + SR = nColorSource >> 7; // 原本要右移10左移3,简化成右移7 + SG = (nColorSource & 0x03e0) >> 2; // 原本要右移5左移3,简化成右移2 SB = (nColorSource & 0x001f) << 3; OR = nColorOverlayer >> 7; OG = (nColorOverlayer & 0x03e0) >> 2; @@ -1793,7 +1793,7 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int int i,j,nColorSource,nColorOverlayer; DWORD SR,SG,SB,OR,OG,OB; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ #ifdef _HI_COLOR_32 if( displayBpp == 32 ){ @@ -1802,8 +1802,8 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int nColorSource = *(DWORD*)ptSourceDest32; nColorOverlayer = *(DWORD*)ptOverLayerDest32; if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xff0000) >> 8; // ԭҪ113,򻯳8 - SG = (nColorSource & 0x00ff00) >> 3; // ԭҪ52,򻯳3 + SR = (nColorSource & 0xff0000) >> 8; // 原本要右移11左移3,简化成右移8 + SG = (nColorSource & 0x00ff00) >> 3; // 原本要右移5左移2,简化成右移3 SB = (nColorSource & 0x0000ff) << 3; OR = (nColorOverlayer & 0xff0000) >> 8; OG = (nColorOverlayer & 0x00ff00) >> 3; @@ -1830,8 +1830,8 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int nColorSource = *(WORD*)ptSourceDest; nColorOverlayer = *(WORD*)ptOverLayerDest; if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xf800) >> 8; // ԭҪ113,򻯳8 - SG = (nColorSource & 0x07e0) >> 3; // ԭҪ52,򻯳3 + SR = (nColorSource & 0xf800) >> 8; // 原本要右移11左移3,简化成右移8 + SG = (nColorSource & 0x07e0) >> 3; // 原本要右移5左移2,简化成右移3 SB = (nColorSource & 0x001f) << 3; OR = (nColorOverlayer & 0xf800) >> 8; OG = (nColorOverlayer & 0x07e0) >> 3; @@ -1852,7 +1852,7 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int } } } - // 555 ʾģʽ + // 555 显示模式 else{ #ifdef _HI_COLOR_32 if( displayBpp == 32 ){ @@ -1861,8 +1861,8 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int nColorSource = *(DWORD*)ptSourceDest32; nColorOverlayer = *(DWORD*)ptOverLayerDest32; if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xff0000) >> 7; // ԭҪ103,򻯳7 - SG = (nColorSource & 0x00ff00) >> 2; // ԭҪ53,򻯳2 + SR = (nColorSource & 0xff0000) >> 7; // 原本要右移10左移3,简化成右移7 + SG = (nColorSource & 0x00ff00) >> 2; // 原本要右移5左移3,简化成右移2 SB = (nColorSource & 0x0000ff) << 3; OR = (nColorSource & 0xff0000) >> 7; OG = (nColorOverlayer & 0x00ff00) >> 2; @@ -1889,8 +1889,8 @@ void DrawStaturated(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int nColorSource = *(WORD*)ptSourceDest; nColorOverlayer = *(WORD*)ptOverLayerDest; if(nColorOverlayer != DEF_COLORKEY){ - SR = nColorSource >> 7; // ԭҪ103,򻯳7 - SG = (nColorSource & 0x03e0) >> 2; // ԭҪ53,򻯳2 + SR = nColorSource >> 7; // 原本要右移10左移3,简化成右移7 + SG = (nColorSource & 0x03e0) >> 2; // 原本要右移5左移3,简化成右移2 SB = (nColorSource & 0x001f) << 3; OR = nColorOverlayer >> 7; OG = (nColorOverlayer & 0x03e0) >> 2; @@ -1974,7 +1974,7 @@ void DrawGray(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offset ptSourceDest = (DWORD*)(ddsdSource.lpSurface) + oy * surfacePitch1 + ox; ptOverLayerDest = (DWORD*)(ddsdOverlayer.lpSurface) +dy * surfacePitch2 + dx; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ for(j=0;j= 0){ @@ -2004,7 +2004,7 @@ void DrawGray(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offset } } } - // 555 ʾģʽ + // 555 显示模式 else{ for(j=0;j= 0){ @@ -2044,7 +2044,7 @@ void DrawGray(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offset ptSourceDest = (WORD*)(ddsdSource.lpSurface) + oy * surfacePitch1 + ox; ptOverLayerDest = (WORD*)(ddsdOverlayer.lpSurface) +dy * surfacePitch2 + dx; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ for(j=0;j= 0){ @@ -2074,7 +2074,7 @@ void DrawGray(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int offset } } } - // 555 ʾģʽ + // 555 显示模式 else{ for(j=0;j= 0){ @@ -2172,7 +2172,7 @@ void DrawAlphaChannel(SURFACE_INFO *surface_info,BYTE *AlphaData,int ox,int oy,i int i,j,nColorSource,nColorOverlayer; DWORD SR,SG,SB,OR,OG,OB,Alpha; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ #ifdef _HI_COLOR_32 if( displayBpp == 32 ){ @@ -2182,8 +2182,8 @@ void DrawAlphaChannel(SURFACE_INFO *surface_info,BYTE *AlphaData,int ox,int oy,i nColorOverlayer = *(DWORD*)ptOverLayerDest32; Alpha = (DWORD)(*AlphaData); if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xff0000) >> 8; // ԭҪ113,򻯳8 - SG = (nColorSource & 0x00ff00) >> 3; // ԭҪ52,򻯳3 + SR = (nColorSource & 0xff0000) >> 8; // 原本要右移11左移3,简化成右移8 + SG = (nColorSource & 0x00ff00) >> 3; // 原本要右移5左移2,简化成右移3 SB = (nColorSource & 0x0000ff) << 3; OR = (nColorOverlayer & 0xff0000) >> 8; OG = (nColorOverlayer & 0x00ff00) >> 3; @@ -2209,8 +2209,8 @@ void DrawAlphaChannel(SURFACE_INFO *surface_info,BYTE *AlphaData,int ox,int oy,i nColorOverlayer = *(WORD*)ptOverLayerDest; Alpha = (WORD)(*AlphaData); if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xf800) >> 8; // ԭҪ113,򻯳8 - SG = (nColorSource & 0x07e0) >> 3; // ԭҪ52,򻯳3 + SR = (nColorSource & 0xf800) >> 8; // 原本要右移11左移3,简化成右移8 + SG = (nColorSource & 0x07e0) >> 3; // 原本要右移5左移2,简化成右移3 SB = (nColorSource & 0x001f) << 3; OR = (nColorOverlayer & 0xf800) >> 8; OG = (nColorOverlayer & 0x07e0) >> 3; @@ -2229,7 +2229,7 @@ void DrawAlphaChannel(SURFACE_INFO *surface_info,BYTE *AlphaData,int ox,int oy,i AlphaData += SURFACE_WIDTH - w; } } - // 555 ʾģʽ + // 555 显示模式 else{ #ifdef _HI_COLOR_32 if( displayBpp == 32 ){ @@ -2239,8 +2239,8 @@ void DrawAlphaChannel(SURFACE_INFO *surface_info,BYTE *AlphaData,int ox,int oy,i nColorOverlayer = *(DWORD*)ptOverLayerDest32; Alpha = (DWORD)(*AlphaData); if(nColorOverlayer != DEF_COLORKEY){ - SR = (nColorSource & 0xff0000) >> 8; // ԭҪ113,򻯳8 - SG = (nColorSource & 0x00ff00) >> 3; // ԭҪ52,򻯳3 + SR = (nColorSource & 0xff0000) >> 8; // 原本要右移11左移3,简化成右移8 + SG = (nColorSource & 0x00ff00) >> 3; // 原本要右移5左移2,简化成右移3 SB = (nColorSource & 0x0000ff) << 3; OR = (nColorOverlayer & 0xff0000) >> 8; OG = (nColorOverlayer & 0x00ff00) >> 3; @@ -2268,8 +2268,8 @@ void DrawAlphaChannel(SURFACE_INFO *surface_info,BYTE *AlphaData,int ox,int oy,i nColorOverlayer = *(WORD*)ptOverLayerDest; Alpha = (WORD)(*AlphaData); if(nColorOverlayer != DEF_COLORKEY){ - SR = nColorSource >> 7; // ԭҪ103,򻯳7 - SG = (nColorSource & 0x03e0) >> 2; // ԭҪ53,򻯳2 + SR = nColorSource >> 7; // 原本要右移10左移3,简化成右移7 + SG = (nColorSource & 0x03e0) >> 2; // 原本要右移5左移3,简化成右移2 SB = (nColorSource & 0x001f) << 3; OR = nColorOverlayer >> 7; OG = (nColorOverlayer & 0x03e0) >> 2; @@ -2353,7 +2353,7 @@ void DrawSfumato(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int off ptSourceDest = (DWORD*)(ddsdSource.lpSurface) + oy * surfacePitch1 + ox; ptOverLayerDest = (DWORD*)(ddsdOverlayer.lpSurface) +dy * surfacePitch2 + dx; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ for(j=0;j= 0){ @@ -2383,7 +2383,7 @@ void DrawSfumato(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int off } } } - // 555 ʾģʽ + // 555 显示模式 else{ for(j=0;j= 0){ @@ -2400,8 +2400,8 @@ void DrawSfumato(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int off int x = G - R; int y = G - B; if((R > 0x30 && G > 0x30 && B > 0x30)/* &&(R < 0xf0 && G < 0xf0 && B < 0xf0) */&& (x > -40 && x < 40) && (y > -40 && y < 40)){ - R = (nColorOverlayer & 0xff0000) >> 8; // ԭҪ113,򻯳8 - G = (nColorOverlayer & 0x00ff00) >> 3; // ԭҪ52,򻯳3 + R = (nColorOverlayer & 0xff0000) >> 8; // 原本要右移11左移3,简化成右移8 + G = (nColorOverlayer & 0x00ff00) >> 3; // 原本要右移5左移2,简化成右移3 B = (nColorOverlayer & 0x0000ff) << 3; int OR = (sfumato & 0xff0000) >> 8; @@ -2445,7 +2445,7 @@ void DrawSfumato(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int off ptSourceDest = (WORD*)(ddsdSource.lpSurface) + oy * surfacePitch1 + ox; ptOverLayerDest = (WORD*)(ddsdOverlayer.lpSurface) +dy * surfacePitch2 + dx; - // 565 ʾģʽ + // 565 显示模式 if(gBitRShift == 2){ for(j=0;j= 0){ @@ -2475,7 +2475,7 @@ void DrawSfumato(LPDIRECTDRAWSURFACE lpSurface,int ox,int oy,int offsetx,int off } } } - // 555 ʾģʽ + // 555 显示模式 else{ for(j=0;j= 0){ @@ -2828,18 +2828,18 @@ void ablend_565(unsigned char *lpAlpha, unsigned int iAlpPitch, } -//mmx ARGB +//mmx ARGB混合 void DrawAlpha32( - unsigned long* lpDst, // Ŀ껺 - unsigned long iDstX, // Ŀλ - unsigned long iDstY, // Ŀλ - unsigned long iDstPitch, // Ŀ껺pitch - unsigned long* lpSrc, // ԭɫʻ - unsigned long iSrcX, // ԭɫλ - unsigned long iSrcY, // ԭɫλ - unsigned long iSrcW, // ԭijߴ - unsigned long iSrcH, // ԭijߴ - unsigned long iSrcPitch // ԭɫpitch + unsigned long* lpDst, // 目标缓冲 + unsigned long iDstX, // 目标位置 + unsigned long iDstY, // 目标位置 + unsigned long iDstPitch, // 目标缓冲的pitch + unsigned long* lpSrc, // 原色彩缓冲 + unsigned long iSrcX, // 原色彩位置 + unsigned long iSrcY, // 原色彩位置 + unsigned long iSrcW, // 原缓冲的尺寸 + unsigned long iSrcH, // 原缓冲的尺寸 + unsigned long iSrcPitch // 原色彩pitch ) { unsigned long *lpLinearDstBp = (iDstX)+(iDstY*iDstPitch / sizeof(DWORD)) + lpDst; //base pointer for linear destination @@ -2847,32 +2847,32 @@ void DrawAlpha32( _asm{ mov edx, 0xFFFFFFFF; //255-Alpha mask - pxor mm7,mm7; //MM70 + pxor mm7,mm7; //MM7清0 movd mm6,edx; //MM6=FFFFFFFF - mov esi, lpLinearSrcBp; // Դػַ - mov edi, lpLinearDstBp; // Ŀػַ - mov ecx, iSrcH; // ԭĸ߶ȺͿ + mov esi, lpLinearSrcBp; // 移入源像素缓冲地址 + mov edi, lpLinearDstBp; // 移入目标像素缓冲地址 + mov ecx, iSrcH; // 下面两步操作是移入原缓冲的高度和宽度 mov ebx, iSrcW; MainLoop: - //Ŀ꣺0xFF585C58 Դ0x71000008 + //目标:0xFF585C58 源:0x71000008 movd mm0,[esi]; //mm0=SRC MM0=0000 0000 7100 0008 - punpcklbw mm0,mm7; //SRC:32λBit64λBit MM0=0071 0000 0000 0008 + punpcklbw mm0,mm7; //SRC:32位Bit到64位Bit MM0=0071 0000 0000 0008 movq mm2,mm0; //mm2=SRC MM2=0071 0000 0000 0008 - punpckhwd mm0,mm0; //λALPHA ԭ0071 0000 0000 0008 0071 0071 0000 0000 - punpckhdq mm0,mm0; //˫ƶ,а˸صAlpha! 0071 0071 0071 0071 + punpckhwd mm0,mm0; //高位是ALPHA 原0071 0000 0000 0008 移 0071 0071 0000 0000 + punpckhdq mm0,mm0; //双字移动到四字,现在有八个像素的Alpha了! 0071 0071 0071 0071 movd edx,mm0; cmp edx,0x00ff00ff; je CopySrc; - test edx, 0xffffffff; // alphaΪ0 ôӰĴı־λ,ZF=1 + test edx, 0xffffffff; // 如果alpha为0 ,那么会影响寄存器的标志位,ZF=1 jz BeginPixel; movq mm1,mm6; //MM1=0000 0000 FFFF FFFF punpckhdq mm1,mm1; movd mm3,[edi]; //mm3=DST MM3=0000 0000 FF58 5C58 - punpcklbw mm3,mm7; //mm3=32λBit64λBit MM3=00FF 0058 005C 0058 + punpcklbw mm3,mm7; //mm3=32位Bit到64位Bit MM3=00FF 0058 005C 0058 psubb mm1,mm0; //mm1=255-src alpha bit MM1=00FF 00FF 00FF 00FF MM0=0071 0071 0071 0071 MM1=008E 008E 008E 008E pmullw mm2,mm0; //mm2=src*srcAlpha MM2= 0071 0000 0000 0008 MM0=0071 0071 FF71 0071 MM2= 31E1 0000 0000 0388 @@ -2883,18 +2883,18 @@ MainLoop: movd [edi],mm3; jmp BeginPixel; CopySrc: - packuswb mm2, mm2; // + packuswb mm2, mm2; // 紧缩到低 movd[edi], mm2; BeginPixel: - add edi, 4; // Ŀǰƶ4 - add esi, 4; // Դǰƶ4 - sub ebx, 1; // ȼ4 + add edi, 4; // 目标像素向前移动4个像素 + add esi, 4; // 源像素向前移动4个像素 + sub ebx, 1; // 宽度减4 test ebx, 0xffffffff; // check if only 0 pixels left - jz NextLine; // ֻ0أתNextLine - jmp MainLoop; // תʼ¼ + jz NextLine; // 如果只有0个像素,跳转到NextLine处理 + jmp MainLoop; // 跳转到开始处,重新计算 NextLine: dec ecx; - jz Done; // + jz Done; // 处理完成 mov esi, lpLinearSrcBp; // src mov edi, lpLinearDstBp; // dst add esi, iSrcPitch; // inc src ptr by 1 line @@ -2910,7 +2910,7 @@ Done: -BOOL ȡߴ(ACTION* a0,S2 *wx,S2* wy) +BOOL 获取动画尺寸(ACTION* a0,S2 *wx,S2* wy) { int chrNo = ATR_CHR_NO(a0) - SPRSTART; if(chrNo < 0){ diff --git a/石器时代8.5客户端最新源代码/石器源码/system/sprmgr.cpp b/石器时代8.5客户端最新源代码/石器源码/system/sprmgr.cpp index b9c30b6..95f5082 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/sprmgr.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/sprmgr.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* sprmgr.c */ /************************/ #include "../systeminc/version.h" @@ -43,19 +43,19 @@ void AllocateBmpToSurface( int bmpNo) #endif { int bmpWidth = RealBinWidth; // ???????? - int bmpHeight = RealBinHeight; // ??????? + int bmpHeight = RealBinHeight; // ??????? int offsetX, offsetY; // ??????????????? - int sizeX, sizeY; // ?????? - int surfaceCntX; // ??????????? - int surfaceCntY; // ??????????? - int totalSurface; // ?????????? - int totalSurfaceCnt = 0; // ??????????????? ??????? ? - int SurfaceSearchPointBak = SurfaceSearchPoint; // ???????????????t??? + int sizeX, sizeY; // ?????? + int surfaceCntX; // ??????????? + int surfaceCntY; // ??????????? + int totalSurface; // ?????????? + int totalSurfaceCnt = 0; // ??????????????? ??????? ? + int SurfaceSearchPointBak = SurfaceSearchPoint; // ?????????????????? int amariSizeX = FALSE; // ??????????? - int amariSizeY = FALSE; // ?????????? + int amariSizeY = FALSE; // ?????????? BOOL vramFullFlag = FALSE; // VRAM????????? - SURFACE_INFO *prevSurfaceInfo; // q???????????Bl????? + SURFACE_INFO *prevSurfaceInfo; // ???????????????? offsetX = 0; #ifdef _READ16BITBMP SURFACE_INFO *prevSurfaceInfoSys; @@ -71,7 +71,7 @@ void AllocateBmpToSurface( int bmpNo) surfaceCntY = bmpHeight / SURFACE_HEIGHT; if( ( amariSizeY = bmpHeight % SURFACE_HEIGHT ) ){ - surfaceCntY++; // ?????? + surfaceCntY++; // ?????? } totalSurface = surfaceCntX * surfaceCntY; #ifdef _READ16BITBMP @@ -85,7 +85,7 @@ void AllocateBmpToSurface( int bmpNo) #ifdef _STONDEBUG_ SurfaceUseCnt++; #endif - // ʹ + // 已在使用中 if( SurfaceInfo[ SurfaceSearchPoint ].bmpNo != -1 ){ SURFACE_INFO *lpSurfaceInfo; #ifdef _READ16BITBMP @@ -111,13 +111,13 @@ void AllocateBmpToSurface( int bmpNo) } } if( SpriteInfo[ bmpNo ].lpSurfaceInfo == NULL ){ - // һͼsurfaceinfo + // 第一张图的surfaceinfo SpriteInfo[ bmpNo ].lpSurfaceInfo = &SurfaceInfo[ SurfaceSearchPoint ]; #ifdef _READ16BITBMP if(g_bUseAlpha) SpriteInfo[bmpNo].lpSurfaceInfoSys = &SurfaceInfoSys[SurfaceSearchPoint]; #endif }else{ - // ָһsurfaceinfo + // 指向下一张surfaceinfo prevSurfaceInfo->pNext = &SurfaceInfo[ SurfaceSearchPoint ]; #ifdef _READ16BITBMP if(g_bUseAlpha) prevSurfaceInfoSys->pNext = &SurfaceInfoSys[SurfaceSearchPoint]; @@ -241,7 +241,7 @@ void AllocateBmpToSurface( int bmpNo) NULL ); #endif totalSurfaceCnt++; - // еͼѴoffscreen + // 所有的图都已存入offscreen if( totalSurfaceCnt >= totalSurface ){ SurfaceInfo[ SurfaceSearchPoint ].pNext = NULL; #ifdef _READ16BITBMP @@ -285,7 +285,7 @@ BOOL InitOffScreenSurface( void ) if( vramFullFlag == FALSE ){ if ((SurfaceInfo[i].lpSurface = CreateSurface(SurfaceSizeX, SurfaceSizeY, DEF_COLORKEY, /*DDSCAPS_SYSTEMMEMORY*/ DDSCAPS_VIDEOMEMORY)) == NULL){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd ,"SurfaceInfo:VideoRAM Surfaceʧܣ" ,"ȷ",MB_OK | MB_ICONSTOP ); + MessageBoxNew( hWnd ,"SurfaceInfo:建立VideoRAM Surface失败!" ,"确定",MB_OK | MB_ICONSTOP ); #endif vramFullFlag = TRUE; }else{ @@ -295,7 +295,7 @@ BOOL InitOffScreenSurface( void ) if( vramFullFlag == TRUE ){ if( ( SurfaceInfo[ i ].lpSurface = CreateSurface( SurfaceSizeX, SurfaceSizeY, DEF_COLORKEY, DDSCAPS_SYSTEMMEMORY )) == NULL ){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd ,"SysRAM Surfaceʧܣ" ,"ȷ",MB_OK | MB_ICONSTOP ); + MessageBoxNew( hWnd ,"建立SysRAM Surface失败!" ,"确定",MB_OK | MB_ICONSTOP ); #endif return FALSE; }else SysramSurfaceCnt++; @@ -304,7 +304,7 @@ BOOL InitOffScreenSurface( void ) if(g_bUseAlpha){ if((SurfaceInfo[i].lpAlphaData = (BYTE*)MALLOC(SurfaceSizeX*SurfaceSizeY)) == NULL){ #ifdef _STONDEBUG_ - MessageBoxNew( hWnd ,"alphaʧܣ","ȷ",MB_OK | MB_ICONSTOP); + MessageBoxNew( hWnd ,"alpha记忆体配置失败!","确定",MB_OK | MB_ICONSTOP); #endif return FALSE; } @@ -320,7 +320,7 @@ BOOL InitOffScreenSurface( void ) if(g_bUseAlpha){ if((SurfaceInfoSys[i].lpSurface = CreateSurface(SurfaceSizeX,SurfaceSizeY,DEF_COLORKEY,DDSCAPS_SYSTEMMEMORY )) == NULL){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd,"SysRAM Surface(2)ʧܣ","ȷ",MB_OK | MB_ICONSTOP); + MessageBoxNew(hWnd,"建立SysRAM Surface(2)失败!","确定",MB_OK | MB_ICONSTOP); #endif return FALSE; } @@ -388,7 +388,7 @@ BOOL LoadBmp( int bmpNo ) } #ifdef _CACHE_SURFACE_ else{ - //Ѿ棬ˢdateⱻͷ + //如果已经缓存,刷新date,以免被释放 for (SURFACE_INFO* info = SpriteInfo[bmpNo].lpSurfaceInfo; info->pNext != NULL; info = info->pNext) { info->date = SurfaceDate; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/t_music.cpp b/石器时代8.5客户端最新源代码/石器源码/system/t_music.cpp index 8804311..4f9c6d6 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/t_music.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/t_music.cpp @@ -1,4 +1,4 @@ -#include "windows.h" +#include "windows.h" #include #include "../systeminc/version.h" #include "../systeminc/process.h" @@ -20,7 +20,7 @@ extern DWORD NowTime; #define CLASS_UP 1 #define VOICE_KILL_ON 0 -//־ +//噙秞梓祩 BOOL MuteFlag = FALSE; typedef struct{ @@ -43,7 +43,7 @@ typedef struct{ #define MAX_ENV 20 typedef struct{ - int voice_address; //??????????????? + int voice_address; //??????????????? int tone; int count; int distance; @@ -84,7 +84,7 @@ int thread_flg=0; int dsound_flg=0; /*------------------------------------------- - ??? + ??阪? --------------------------------------------*/ LPDIRECTSOUND pDSound = NULL; LPDIRECTSOUNDBUFFER pDSPrimary = NULL; @@ -116,20 +116,20 @@ static int map_bgm_vct_no = 0; int map_bgm_no = 0; /*------------------------------------------- - Wave???????? + Wave????????? --------------------------------------------*/ BOOL LoadWave( - LPCTSTR lpName, // Wave??? - WAVEFORMATEX* (&pWaveHeader), // WAVEFORMATEX?Bl?????? + LPCTSTR lpName, // Wave???? + WAVEFORMATEX* (&pWaveHeader), // WAVEFORMATEX?﹨▍?????? BYTE* (&pbWaveData), // ?????????????? DWORD &cbWaveSize) // ???????????? { - pWaveHeader = NULL; // WAVEFORMATEX?Bl?????? + pWaveHeader = NULL; // WAVEFORMATEX?﹨▍?????? pbWaveData = NULL; // ?????????????? cbWaveSize = 0; // ???????????? - const char c_szWAV[] = "WAVE"; // ??????Wave????????"WAVE"??? + const char c_szWAV[] = "WAVE"; // ???????Wave????????"WAVE"??? - // ?????????????????? + // ??????????????????? HRSRC hResInfo = FindResource(NULL, lpName, c_szWAV); if(hResInfo == NULL) return FALSE; @@ -140,7 +140,7 @@ BOOL LoadWave( if(pvRes == NULL) return FALSE; - // ??????????????????????????????????x?? + // ?????????????????╱??????????????????台?? DWORD *pdw = (DWORD *)pvRes; DWORD *pdwEnd; DWORD dwRiff = *pdw++; @@ -150,7 +150,7 @@ BOOL LoadWave( if (dwRiff != mmioFOURCC('R', 'I', 'F', 'F')) return FALSE; // ???????RIFF????????? if (dwType != mmioFOURCC('W', 'A', 'V', 'E')) - return FALSE; // ???????Wave????????? + return FALSE; // ???????Wave????????? pdwEnd = (DWORD *)((BYTE *)pdw + dwLength-4); while (pdw < pdwEnd) @@ -164,7 +164,7 @@ BOOL LoadWave( if (pWaveHeader == NULL) { if (dwLength < sizeof(WAVEFORMAT)) - return FALSE; // ?????????Wave????????? + return FALSE; // ?????????Wave????????? pWaveHeader = (WAVEFORMATEX *)pdw; } break; @@ -181,9 +181,9 @@ BOOL LoadWave( pdw = (DWORD *)((BYTE *)pdw + ((dwLength+1)&~1)); } if(pdwEnd <= pdw) - return FALSE; // ?????????Wave????????? + return FALSE; // ?????????Wave????????? - // Wave???x? + // Wave???台? return TRUE; } @@ -193,22 +193,22 @@ BOOL LoadWave( --------------------------------------------*/ BOOL CreateSoundData(LPCSTR pName, LPDIRECTSOUNDBUFFER &pDSData) { - // ??????Wave??????? - WAVEFORMATEX *pWaveHeader = NULL; // WAVEFORMATEX?Bl?????? + // ??????Wave???????? + WAVEFORMATEX *pWaveHeader = NULL; // WAVEFORMATEX?﹨▍?????? BYTE *pbWaveData = NULL; // ?????????????? DWORD cbWaveSize = 0; // ???????????? if(!LoadWave(pName, pWaveHeader, pbWaveData, cbWaveSize)) { #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "ȡWaveʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "黍Wave腔訧蹋囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } - // ?????????????? + // ?????????????? DSBUFFERDESC dsbdesc; HRESULT hr; - // DSBUFFERDESC?Bl?@e + // DSBUFFERDESC?﹨▍? 叉 ZeroMemory(&dsbdesc, sizeof(DSBUFFERDESC)); dsbdesc.dwSize = sizeof(DSBUFFERDESC); // ?????????????? @@ -222,25 +222,25 @@ BOOL CreateSoundData(LPCSTR pName, LPDIRECTSOUNDBUFFER &pDSData) // ??????? hr = pDSound->CreateSoundBuffer(&dsbdesc, &pDSData, NULL); if(DS_OK != hr) { - // ??????? + // ???????? return FALSE; } // ???????????Wave???????? LPVOID lpvPtr1; // ???????????? DWORD dwBytes1; // ??????????? - LPVOID lpvPtr2; // ?k??????????? - DWORD dwBytes2; // ?k?????????? + LPVOID lpvPtr2; // ?吻??????????? + DWORD dwBytes2; // ?吻?????????? hr = pDSData->Lock(0, cbWaveSize, &lpvPtr1, &dwBytes1, &lpvPtr2, &dwBytes2, 0); - // DSERR_BUFFERLOST??????Restore???????????????? + // DSERR_BUFFERLOST?刺?????Restore???????????????? if(DSERR_BUFFERLOST == hr) { pDSData->Restore(); hr = pDSData->Lock(0, cbWaveSize, &lpvPtr1, &dwBytes1, &lpvPtr2, &dwBytes2, 0); } if(DS_OK == hr) { - // ???? + // ???? // ????????????? // ?????????????? @@ -248,20 +248,20 @@ BOOL CreateSoundData(LPCSTR pName, LPDIRECTSOUNDBUFFER &pDSData) if ( 0 != dwBytes2 ) CopyMemory(lpvPtr2, pbWaveData + dwBytes1, dwBytes2); - // ????????????Unlock??? + // ????????????Unlock??? hr = pDSData->Unlock(lpvPtr1, dwBytes1, lpvPtr2, dwBytes2); } return TRUE; } -// ???????ѩ??? +// ???????????? // -// ? ? hmmio ... ???????????? -// pWfmtx ... ???ѩ?t?????? +// ? ?ㄩ hmmio ... ???????????? +// pWfmtx ... ?????宇?????? // pDataSize ... ?????? -// ??k TRUE ... ? -// FALSE ... +// ??πㄩ TRUE ... ? +// FALSE ... ? static BOOL WaveFormatRead( HMMIO hmmio, WAVEFORMATEX *pWfmtx, DWORD *pDataSize ) { MMCKINFO parent, child; @@ -273,23 +273,23 @@ static BOOL WaveFormatRead( HMMIO hmmio, WAVEFORMATEX *pWfmtx, DWORD *pDataSize parent.dwFlags = 0; child = parent; - //WAVE?????S? + //WAVE?????Π? parent.fccType = mmioFOURCC('W','A','V','E'); if ( (int)mmioDescend(hmmio,&parent,NULL,MMIO_FINDRIFF) ){ -// ERRPRINT("WAVE?????S?"); +// ERRPRINT("WAVE?????Π?"); return FALSE; } - //fmt?????V? + //fmt?????向? child.ckid = mmioFOURCC('f', 'm', 't', ' '); if ( mmioDescend( hmmio , &child , &parent , MMIO_FINDCHUNK ) ){ -// ERRPRINT("fmt?????V?"); +// ERRPRINT("fmt?????向?"); return FALSE; } - //??????????x + //??????????台 if (mmioRead( hmmio , (char *)pWfmtx , sizeof(WAVEFORMATEX) ) != sizeof(WAVEFORMATEX) ){ -// ERRPRINT("??????????x"); +// ERRPRINT("??????????台"); return FALSE; } @@ -298,16 +298,16 @@ static BOOL WaveFormatRead( HMMIO hmmio, WAVEFORMATEX *pWfmtx, DWORD *pDataSize // ERRPRINT("????????????????"); return FALSE; } - //?????????I?? + //?????????兌?? if (mmioAscend( hmmio , &child , 0 )){ -// ERRPRINT("?????????I??"); +// ERRPRINT("?????????兌??"); return FALSE; } - //data?????V? + //data?????向? child.ckid = mmioFOURCC( 'd' , 'a' , 't' , 'a' ); if ( mmioDescend( hmmio , &child , &parent , MMIO_FINDCHUNK ) ){ -// ERRPRINT("data?????V?"); +// ERRPRINT("data?????向?"); return FALSE; } @@ -319,13 +319,13 @@ static BOOL WaveFormatRead( HMMIO hmmio, WAVEFORMATEX *pWfmtx, DWORD *pDataSize static BYTE *pDSbuffData; // -// ?????????? +// ??????????? // -// ? ? hmmio ... ???????????? -// pDataSize ... ????????? +// ? ?ㄩ hmmio ... ???????????? +// pDataSize ... ?????????? // pData ... DirectSoundBuffer -// ??k TRUE ... ? -// FALSE ... +// ??πㄩ TRUE ... ? +// FALSE ... ? static BOOL WaveDataRead( HMMIO hmmio , DWORD *pDataSize, LPDIRECTSOUNDBUFFER pData ) { // BYTE *pDSbuffData; @@ -346,13 +346,13 @@ static BOOL WaveDataRead( HMMIO hmmio , DWORD *pDataSize, LPDIRECTSOUNDBUFFER pD // -// ??????????x +// ??????????台 // -// ? ? pWfmtx ... ??????????? +// ? ?ㄩ pWfmtx ... ??????????? // DataSize ... ???????? -// ppData ... x???????????????? -// ??k TRUE ... ? -// FALSE ... +// ppData ... 台???????????????? +// ??πㄩ TRUE ... ? +// FALSE ... ? static BOOL dwSoundInit( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUFFER *ppData ) { DSBUFFERDESC dsbufferdesc; @@ -378,7 +378,7 @@ int f_get(FILE *fp); int get_num(FILE *fp); int num_check(FILE *fp); -// ?????q?????? +// ??????〈????更?? #define mxSTR 200 /*------------------------------------------- DirectSound ??? @@ -398,28 +398,28 @@ int InitDSound(void) ret = DirectSoundCreate(NULL, &pDSound, NULL); if(ret != DS_OK){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "DirectSoundʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "膘蕾DirectSound賡醱囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } - //????????@e + //????????? 叉 ret = pDSound->SetCooperativeLevel(hWnd, DSSCL_PRIORITY); if(ret != DS_OK){ - // ?????@e? + // ?????? 叉?? RELEASE(pDSound); #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "趨Эȼʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "扢隅衪覃脹撰囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } - // ?????@e + // ????? 叉 pDSound ->SetSpeakerConfig(DSSPEAKER_COMBINED(DSSPEAKER_STEREO, DSSPEAKER_GEOMETRY_WIDE)); - // ???????????? - // DSBUFFERDESC?Bl?@e + // ???????????? + // DSBUFFERDESC?﹨▍? 叉 DSBUFFERDESC dsbdesc; ZeroMemory(&dsbdesc, sizeof(DSBUFFERDESC)); dsbdesc.dwSize = sizeof(DSBUFFERDESC); - // ???????????e + // ???????????叉 dsbdesc.dwFlags = DSBCAPS_PRIMARYBUFFER; dsbdesc.dwBufferBytes = 0; dsbdesc.lpwfxFormat = NULL; @@ -427,12 +427,12 @@ int InitDSound(void) ret = pDSound->CreateSoundBuffer(&dsbdesc, &pDSPrimary, NULL); if(ret != DS_OK) { #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "Ҫbufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "膘蕾翋猁buffer囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } - // ???????????Wave???????@e - // ?I???????????@e???????????? + // ???????????Wave??????? 叉 + // ?!????????????? 叉?????╱??????? WAVEFORMATEX pcmwf; ZeroMemory(&pcmwf, sizeof(WAVEFORMATEX)); pcmwf.wFormatTag = WAVE_FORMAT_PCM; @@ -444,13 +444,13 @@ int InitDSound(void) ret = pDSPrimary->SetFormat(&pcmwf); if(ret != DS_OK){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "Ҫbufferĸʽʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "翋猁buffer腔跡宒趙囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } /* -//cary ʹresourcesound data - // ????????????????????? +//cary 妏蚚resource膘蕾sound data + // ????????????????????? for(d7=0;d7 TONE_MAX){ //??????? + program_no = sndconfig[ d1 ].no; //?吻???? + if(program_no > TONE_MAX){ //??????? goto InitDSound_err2; //??? } - tone_tbl[ program_no ].voice_place = tone_max_buf; //????IV - //q?x + tone_tbl[ program_no ].voice_place = tone_max_buf; //????!卒㎏ + //?〈?台 strcpy( fname, sndconfig[ d1 ].name ); if(sndconfig[ d1 ].vol < 0){ //???????????? goto InitDSound_err2; } - tone_tbl[ program_no ].voice_volume = sndconfig[ d1 ].vol; //??????V + tone_tbl[ program_no ].voice_volume = sndconfig[ d1 ].vol; //??????卒㎏ - if(sndconfig[ d1 ].note > 60){ //???k?????? + if(sndconfig[ d1 ].note > 60){ //???吻?????? goto InitDSound_err2; } - if(sndconfig[ d1 ].note){ //???k?V + if(sndconfig[ d1 ].note){ //???吻?卒㎏ tone_tbl[ program_no ].voice_note = sndconfig[ d1 ].note; } else { tone_tbl[ program_no ].voice_note = 0; @@ -517,23 +517,23 @@ int InitDSound(void) //????????? tone_tbl[ program_no ].voice_loop = sndconfig[ d1 ].loop_flg; - //??????????? + //??????????? int d2; FILE *fp; fp = fopen( fname, "rb" ); if( fp == NULL ){ - d1++; //SNDCONFIG?????? + d1++; //SNDCONFIG?????? continue; } d2 = 8; //?????????????? d2 += 4; //?????????????? d2 += 4; //???? ????????? d2 += 8; //???????? - fseek(fp,d2,SEEK_CUR); //??????????h - d2 = fgetc(fp); //??????????? - d2 |= fgetc(fp) << 8; //??????????? - d2 |= fgetc(fp) << 16; //??????????? - d2 |= fgetc(fp) << 24; //??????????? + fseek(fp,d2,SEEK_CUR); //??????????去 + d2 = fgetc(fp); //??????????? + d2 |= fgetc(fp) << 8; //??????????? + d2 |= fgetc(fp) << 16; //??????????? + d2 |= fgetc(fp) << 24; //??????????? switch(d2){ case 11025: tone_tbl[ program_no ].voice_rate = 25; @@ -550,14 +550,14 @@ int InitDSound(void) //???????????? if( (hmmio = mmioOpen(fname, NULL, MMIO_READ | MMIO_ALLOCBUF )) == NULL){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "WAVʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "湖羲WAV紫囮啖ㄐ", "Error", MB_OK); #endif goto InitDSound_err; } //??????????? if( WaveFormatRead( hmmio , &Wfmtx , &WaveSize ) == FALSE ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "ȡWAVʽʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "黍WAV跡宒囮啖ㄐ", "Error", MB_OK); #endif goto InitDSound_err; } @@ -565,21 +565,21 @@ int InitDSound(void) //?????????????? if( dwSoundInit( &Wfmtx, DataSize, &pDSData_tone[tone_max_buf] ) == FALSE ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "ʼbufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "場宎趙汒秞buffer囮啖ㄐ", "Error", MB_OK); #endif goto InitDSound_err; } //??????? if( WaveDataRead( hmmio, &DataSize, pDSData_tone[tone_max_buf] ) == FALSE ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "ȡWAVʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "黍WAV紫腔訧蹋囮啖ㄐ", "Error", MB_OK); #endif goto InitDSound_err; } mmioClose( hmmio , 0 ); hmmio = (HMMIO)-1; //????????? - d1++; //SNDCONFIG?????? - tone_max_buf++; //????I? + d1++; //SNDCONFIG?????? + tone_max_buf++; //????!? } InitDSound_err: //????????????? @@ -590,12 +590,12 @@ InitDSound_err: //????????????? RELEASE(pDSound); return FALSE; -InitDSound_err2: //e???????? +InitDSound_err2: //叉???????? if(hmmio != (HMMIO)-1){ //???????????? mmioClose( hmmio , 0 ); } #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "?@e???????", "Error", MB_OK); + MessageBoxNew(hWnd, "? 叉???????", "Error", MB_OK); #endif for(d7=0;d7DuplicateSoundBuffer(pDSData_tone[0],&pDSData[d7]) != DS_OK ){ for(d7=0;d7GetVolume(&primaryVolume); // ????? pDSPrimary->GetPan(&primaryPan); - // ? + // ?? pDSPrimary->GetFrequency((DWORD*)&primaryFrequency); return TRUE; } @@ -635,13 +635,13 @@ static int thread_stop_flg = 0; static LPDIRECTSOUNDNOTIFY pDSNotify = NULL; static char stream_flg = 0; /*------------------------------------------- - ????_?? + ????于?? --------------------------------------------*/ void stop_thread(void) { - //????_?? + //????于?? if(thread_stop_flg){ - //???_ + //???于 pDSData_tone[ TONE_MAX ]->Stop(); // pDSData_stream->Stop(); while(1){ @@ -652,29 +652,29 @@ void stop_thread(void) exit_thread_flg = 0; RELEASE(pDSData_stream); } - //?????????? + //??????????? RELEASE(pDSData_tone[TONE_MAX]); } /*------------------------------------------- - ???_?? + ???于?? --------------------------------------------*/ void stop_bgm(void) { if (MuteFlag) return; - //????_?? + //????于?? if(thread_stop_flg){ - //????_? + //????于? stop_thread(); } else { - //?????????? + //??????????? RELEASE(pDSData_tone[TONE_MAX]); } //?????????? t_music_fade_flg = 0; - //???????? + //???????? t_music_playing_flg = 0; - //????????k???? + //???阪?????吻???? map_bgm_vct_no = 0; map_bgm_no = t_music_bgm_no; } @@ -684,23 +684,23 @@ void stop_bgm(void) --------------------------------------------*/ void fade_out_bgm(void) { - //???????? + //???????? t_music_fade_flg = 1; - //?????V + //?????卒㎏ t_music_fade_vol = bgm_tbl[t_music_bgm_no].volume * t_music_bgm_volume / 15; } /*------------------------------------------- - ???? + ???? --------------------------------------------*/ int EndApp(void) { int d7; - //????_? + //????于? stop_thread(); RELEASE(pDSData_tone[TONE_MAX]); - //????? + //?????? if(stream_flg == 1){ RELEASE(pDSNotify); } @@ -792,39 +792,39 @@ typedef enum { } err_number; static char *err_msg[]={ - "ʧ", - "ӣʱ", - "ָ", - "ָ", - "ָ", - "ָ", - "ָ", - "ָ", - "ָ", - "ָ", - "ãָ", - "̴ͣͣ", - "ָ", - "ܲ", - "ָ", - "ָ", - "", - "ָ", - "ָ", - "ָ", - "ָ", - "ָ", - "", - "ָ", - "ָ", - "ָ", - "ָ", + "紫偶羲囮啖", + "????奀潔渣昫", + "秞寢硌隅渣昫", + "?硌鍔渣昫", + "?硌鍔渣昫", + "?硌鍔渣昫", + "??硌鍔渣昫", + "??硌鍔渣昫", + "??硌鍔渣昫", + "?硌鍔渣昫", + "????硌鍔渣昫", + "???渣昫", + "??硌鍔渣昫", + "笚疏杅閉徹渣昫", + "栳軠秞寢硌隅渣昫", + "毀葩畢溫硌鍔渣昫", + "毀葩畢溫杅祥磁", + "噙秞寢硌隅渣昫", + "??硌鍔渣昫", + "誹軠硌鍔渣昫", + "?硌鍔渣昫", + "??硌鍔渣昫", + "睿秞渣昫", + "?硌鍔渣昫", + "??硌鍔渣昫", + "??硌鍔渣昫", + "??硌鍔渣昫", }; //c c+ d d+ e f f+ g g+ a a+ b //0 1 2 3 4 5 6 7 8 9 10 11 static int note_change_tbl[]={9,11,0,2,4,5,7}; static int freq_tbl[]={ - (int)(44100.0 / 261.63 * 277.18 / 32.0), //b (o-1) 0 ?t?? + (int)(44100.0 / 261.63 * 277.18 / 32.0), //b (o-1) 0 ??? 2756, //c (o0) 1 (int)(44100.0 / 261.63 * 277.18 / 16.0), //c+ (int)(44100.0 / 261.63 * 293.67 / 16.0), //d @@ -887,7 +887,7 @@ static int freq_tbl[]={ (int)(44100.0 / 261.63 * 493.88), //b 88200, //b+ (o5) 61 (int)(44100.0 / 261.63 * 277.18 * 2.0), //c+ - (int)(44100.0 / 261.63 * 293.67 * 2.0), //d ???t??63 + (int)(44100.0 / 261.63 * 293.67 * 2.0), //d ?????63 (int)(44100.0 / 261.63 * 311.13 * 2.0), //d+ (int)(44100.0 / 261.63 * 329.63 * 2.0), //e (int)(44100.0 / 261.63 * 349.23 * 2.0), //f @@ -904,13 +904,13 @@ static int detune_tbl[12*5+5]; int get_num(FILE *fp); /*------------------------------------------- - ????????? + ?????????? --------------------------------------------*/ int f_get(FILE *fp) { int d0; while(1){ - d0 = fgetc( fp ); //????k??? + d0 = fgetc( fp ); //????吻??? if( d0 == EOF ) return d0; if( d0 == '\t' ) //??? @@ -918,19 +918,19 @@ int f_get(FILE *fp) if( d0 != 0x20 ) //????? break; } - if(d0 >= 'A' && d0 <= 'Z') //???? + if(d0 >= 'A' && d0 <= 'Z') //?更??更?阪? d0+=0x20; // return d0; } /*------------------------------------------- - ?k????? + ?π?????? --------------------------------------------*/ int get_num(FILE *fp) { int d0,d1; while(1){ - d0 = f_get( fp ); //????k??? + d0 = f_get( fp ); //????吻??? if( d0 == EOF ) return d0; if( d0 >= '0' && d0<= '9' ) //??? @@ -939,7 +939,7 @@ int get_num(FILE *fp) d1=d0-'0'; //????? while(1){ - d0 = fgetc( fp ); //????k??? + d0 = fgetc( fp ); //????吻??? if( d0 == EOF ) break; if( d0 < '0' || d0> '9' ) //??? @@ -951,19 +951,19 @@ int get_num(FILE *fp) return d1; } /*------------------------------------------- - ?k?????????????? + ?π??????????????? --------------------------------------------*/ int get_num2(FILE *fp) { int d0,d1,d2=1; - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? if(d0=='-') //?????? d2=-1; else fseek(fp,-1,SEEK_CUR); //?????? while(1){ - d0 = fgetc( fp ); //????k??? + d0 = fgetc( fp ); //????吻??? if( d0 == EOF ) return d0; if( d0 >= '0' && d0<= '9' ) //??? @@ -972,7 +972,7 @@ int get_num2(FILE *fp) d1=d0-'0'; //????? while(1){ - d0 = fgetc( fp ); //????k??? + d0 = fgetc( fp ); //????吻??? if( d0 == EOF ) break; if( d0 < '0' || d0> '9' ) //??? @@ -989,9 +989,9 @@ int get_num2(FILE *fp) int num_check2(FILE *fp) { int d0; - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? if(d0=='-'){ //?????? - d0 = fgetc( fp ); //????????? + d0 = fgetc( fp ); //????????? fseek(fp,-2,SEEK_CUR); //?????? if( d0 >= '0' && d0<= '9' ) //??? return 1; //?? @@ -1012,7 +1012,7 @@ int num_check2(FILE *fp) int num_check(FILE *fp) { int d0; - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? fseek(fp,-1,SEEK_CUR); //?????? if( d0 >= '0' && d0<= '9' ) //??? return 1; //?? @@ -1020,7 +1020,7 @@ int num_check(FILE *fp) return 0; //??? } /*------------------------------------------- - ???????????? + ????????????? --------------------------------------------*/ int get_step(FILE *fp,int ch) { @@ -1028,7 +1028,7 @@ int get_step(FILE *fp,int ch) total = 0; futen = 0; while(1){ - d0 = f_get( fp ); //????? + d0 = f_get( fp ); //????? if( d0 >= '0' && d0<= '9' ){ //???? fseek(fp,-1,SEEK_CUR); //?????? d0 = get_num( fp ); @@ -1036,17 +1036,17 @@ int get_step(FILE *fp,int ch) return -1; futen = 192 / d0; total += futen; - } else if(d0 == '.'){ //ܤ?? - if(!total){ //????@e???? - total = step_def[ch]; //ܤ????? + } else if(d0 == '.'){ //至??? + if(!total){ //???? 叉???? + total = step_def[ch]; //至?????? futen = step_def[ch]; // } futen /= 2; total += futen; - } else if(d0 == '^'){ //?????? - d0 = f_get( fp ); //????? + } else if(d0 == '^'){ //?????? + d0 = f_get( fp ); //????? fseek(fp,-1,SEEK_CUR); //?????? - if(d0 == '*'){ //En??? + if(d0 == '*'){ //‧▋???? continue; } if(!num_check( fp )){ //??????? @@ -1055,12 +1055,12 @@ int get_step(FILE *fp,int ch) d0 = get_num( fp ); if(d0 > 192) return -1; - if(!total){ //????@e???? - total = step_def[ch]; //ܤ????? + if(!total){ //???? 叉???? + total = step_def[ch]; //至?????? } futen = 192 / d0; total += futen; - } else if(d0 == '*'){ //En??? + } else if(d0 == '*'){ //‧▋???? if(!num_check( fp )){ //??????? return -1; //??? } @@ -1068,7 +1068,7 @@ int get_step(FILE *fp,int ch) total += futen; } else { fseek(fp,-1,SEEK_CUR); //?????? - if(total) //????@e???? + if(total) //???? 叉???? break; futen = step_def[ch]; total = futen; @@ -1077,7 +1077,7 @@ int get_step(FILE *fp,int ch) return total; } /*------------------------------------------- - ?????????? + ??????????? --------------------------------------------*/ int music_read( void ) { @@ -1110,49 +1110,49 @@ int music_read( void ) } o_tempo=0; - //?????????? ?? ?????????? + //?????????? ?? ?????????? while(1){ - //?????????? ????k?@e ?????????? + //?????????? ????吻? 叉 ?????????? err_line++; - if((d0 = f_get( fp )) == EOF) //????k??? - break; //?????Z? + if((d0 = f_get( fp )) == EOF) //????吻??? + break; //?????Ψ? if( d0 == '\n' ) //??? - continue; //??????? + continue; //???????? if( d0 == '/' ){ //????? while(1){ //???????? d0 = f_get( fp ); if(d0 == '\n' || d0 == EOF ) break; } - continue; //??????? + continue; //???????? } - if( d0 != '(' ){ //?????? + if( d0 != '(' ){ //?????? err_flg=M_TRACK_ERR; goto music_read_999; } - if((d0 = f_get( fp )) == EOF) //????k??? - break; //?????Z? - if( d0 == 'p' ){ //?????e? - if((d0 = f_get( fp )) == EOF){ //u?????? + if((d0 = f_get( fp )) == EOF) //????吻??? + break; //?????Ψ? + if( d0 == 'p' ){ //??????叉? + if((d0 = f_get( fp )) == EOF){ //「??????? err_flg=M_PLAY_ERR; goto music_read_999; } if( d0 == ')'){ //?? - err_line--; //??Q?????????? + err_line--; //??㎝?????????? continue; } fseek(fp,-1,SEEK_CUR); //?????? - for(d7=0;d7 '9' ){ //????? + if((d0 = f_get( fp )) == EOF) //????吻??? + break; //?????Ψ? + if( d0 < '0' || d0> '9' ){ //????? err_flg=M_TRACK_ERR; goto music_read_999; } fseek(fp,-1,SEEK_CUR); //?????? ch = get_num( fp ); - if((d0 = f_get( fp )) == EOF) //????k??? - break; //?????Z? - if( d0 != ')' ){ //????? + if((d0 = f_get( fp )) == EOF) //????吻??? + break; //?????Ψ? + if( d0 != ')' ){ //????? err_flg=M_TRACK_ERR; goto music_read_999; } @@ -1238,11 +1238,11 @@ int music_read( void ) goto music_read_999; } - ch--; //?????e + ch--; //?????叉 play_track_flg[ ch ] = 1; // - if(o_tempo!=0 && ch_p[ch]==0){ //???e????? - step[ch][ch_p[ch]++] = MUSIC_TEMPO; //u??????????? + if(o_tempo!=0 && ch_p[ch]==0){ //???叉????? + step[ch][ch_p[ch]++] = MUSIC_TEMPO; //「??????????? #if MODE98 step[ch][ch_p[ch]++] = (int)((float)120 / (float)o_tempo * (float)12600)*2; #else @@ -1250,11 +1250,11 @@ int music_read( void ) #endif } - //?????????? ???????@e ?????????? + //?????????? ??????? 叉 ?????????? music_read_100: - if((d0 = f_get( fp )) == EOF) //?????? - break; //?????Z? + if((d0 = f_get( fp )) == EOF) //?????? + break; //?????Ψ? switch(d0){ case '\n': //?? break; @@ -1271,12 +1271,12 @@ music_read_100: octave = ch_oct[ch]; while(1){ - d0 = f_get( fp ); //????? + d0 = f_get( fp ); //????? if( d0 >= '0' && d0<= '9' ){ //???????? err_flg=M_WAON_ERR; //??? goto music_read_999; } - if(d0 =='<'){ //??????? + if(d0 =='<'){ //??????? octave++; continue; } @@ -1288,7 +1288,7 @@ music_read_100: } continue; } - if(d0 =='\''){ //????? + if(d0 =='\''){ //????? break; } switch(d0){ @@ -1308,21 +1308,21 @@ music_read_100: d1--; else fseek(fp,-1,SEEK_CUR); //?????? - d0 = octave * 12 + d1 +1; //???k??????? + d0 = octave * 12 + d1 +1; //???吻??????? if(d0 < 1 || d0 > 62){ // err_flg=M_NOTE_ERR; //??? goto music_read_999; // } - waon_note[ waon_cnt++ ] = d0; //???k???? + waon_note[ waon_cnt++ ] = d0; //???吻???? - d0 = f_get( fp ); //????? + d0 = f_get( fp ); //????? fseek(fp,-1,SEEK_CUR); //?????? if( d0 < '0' || d0> '9' ){ //??????? if( d0 != '*' ){ //??????????? break; } } - waon_step = get_step( fp, ch ); //????????? + waon_step = get_step( fp, ch ); //????????? if(waon_step == -1){ //????? err_flg=M_WAON_ERR; //??? goto music_read_999; @@ -1343,13 +1343,13 @@ music_read_100: } step[ch][ch_p[ch]++] = MUSIC_WAON; //????? step[ch][ch_p[ch]++] = waon_cnt; //?????? - waon_delay_point = ch_p[ch]; //??????????V - ch_p[ch]++; //??@e?? + waon_delay_point = ch_p[ch]; //??????????卒㎏ + ch_p[ch]++; //?? 叉?? for(d7=0;d7= '0' && d0<= '9' ){ //??? fseek(fp,-1,SEEK_CUR); //?????? d0 = 192 / get_num( fp ); @@ -1388,11 +1388,11 @@ music_read_100: step_def[ ch ] = d0; goto music_read_100; } - if( d0 != '*' ){ //En?? + if( d0 != '*' ){ //‧▋??? err_flg=M_LCOMMAND_ERR; goto music_read_999; } - d0 = f_get( fp ); //???k? + d0 = f_get( fp ); //???π? if( d0 >= '0' && d0<= '9' ){ //??? fseek(fp,-1,SEEK_CUR); //?????? step_def[ ch ] = get_num( fp ); @@ -1402,7 +1402,7 @@ music_read_100: goto music_read_999; case 'r': //?? step[ch][ch_p[ch]++]=MUSIC_R; - d0 = get_step( fp, ch ); //????????? + d0 = get_step( fp, ch ); //????????? if(d0 == -1){ //???? err_flg=M_STEP_ERR; //?????? goto music_read_999; @@ -1416,18 +1416,18 @@ music_read_100: step[ch][ch_p[ch]++] = d0 * q_com[ch] / 8; //????????? } goto music_read_100; - case 'o': //?????e? + case 'o': //?????叉? if(!num_check( fp )){ //??????? err_flg=M_OCOMMAND_ERR; //??? goto music_read_999; } ch_oct[ch] = get_num( fp ); - if(ch_oct[ch]<0 || ch_oct[ch]>5){ //d???? + if(ch_oct[ch]<0 || ch_oct[ch]>5){ //吳???? err_flg=M_OCOMMAND_ERR; //??? goto music_read_999; } goto music_read_100; - case '<': //?????? + case '<': //?????? ch_oct[ch]++; goto music_read_100; case '>': //??????? @@ -1443,7 +1443,7 @@ music_read_100: goto music_read_999; } q_com[ch] = get_num( fp ); //????????? - if(q_com[ch] > 8 || q_com[ch] == 0){ //d???? + if(q_com[ch] > 8 || q_com[ch] == 0){ //吳???? err_flg=M_QCOMMAND_ERR; goto music_read_999; } @@ -1465,7 +1465,7 @@ music_read_100: d1--; else fseek(fp,-1,SEEK_CUR); //?????? - if(ch_oct[ch] >= 5){ //???k?????? + if(ch_oct[ch] >= 5){ //???吻?????? if(d1 >= 2){ // err_flg=M_NOTE_ERR; //?? goto music_read_999; // @@ -1484,14 +1484,14 @@ music_read_100: d1 /= d0; } #endif - d0 = ch_oct[ch] * 12 + d1 + 1; //???k??????? + d0 = ch_oct[ch] * 12 + d1 + 1; //???吻??????? if(d0 < 1 || d0 > 62){ // err_flg=M_NOTE_ERR; //??? goto music_read_999; // } - step[ch][ch_p[ch]++] = d0; //???k???? + step[ch][ch_p[ch]++] = d0; //???吻???? // } - d0 = get_step( fp, ch ); //????????? + d0 = get_step( fp, ch ); //????????? if(d0 == -1){ //???? err_flg=M_STEP_ERR; //?????? goto music_read_999; @@ -1506,7 +1506,7 @@ music_read_100: } goto music_read_100; case 't': //??? - d0 = f_get( fp ); //????? + d0 = f_get( fp ); //????? if( d0 < '0' || d0> '9' ){ //??? err_flg=M_TCOMMAND_ERR; goto music_read_999; @@ -1521,7 +1521,7 @@ music_read_100: #endif goto music_read_100; case 'v': //????? - d0 = f_get( fp ); //???? + d0 = f_get( fp ); //???? if( d0 < '0' || d0> '9' ){ //??? err_flg=M_VCOMMAND_ERR; goto music_read_999; @@ -1547,18 +1547,18 @@ music_read_100: } goto music_read_100; case '@': //????? - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? if( d0 >= '0' && d0<= '9' ){ //??? fseek(fp,-1,SEEK_CUR); //?????? - step[ch][ch_p[ch]++] = MUSIC_NEIRO_NO; //?k???? + step[ch][ch_p[ch]++] = MUSIC_NEIRO_NO; //?吻???? step[ch][ch_p[ch]++] = get_num( fp ) - 1; goto music_read_100; } switch(d0){ case 'v': //????? - d0 = f_get( fp ); //???? + d0 = f_get( fp ); //???? if( d0 < '0' || d0> '9' ){ //??? err_flg=M_V2COMMAND_ERR; goto music_read_999; @@ -1606,7 +1606,7 @@ music_read_100: goto music_read_999; } d0 = get_num( fp ); - if(d0 > 127){ //d???? + if(d0 > 127){ //吳???? err_flg=M_M2COMMAND_ERR; goto music_read_999; } @@ -1623,21 +1623,21 @@ music_read_100: step[ch][ch_p[ch]++] = d0; goto music_read_100; case 'p': //????? - d0 = f_get( fp ); //?h??? + d0 = f_get( fp ); //?去??? if( d0 < '0' || d0 > '9' ){ //??? err_flg=M_P2COMMAND_ERR; goto music_read_999; } fseek(fp,-1,SEEK_CUR); //?????? d0 = get_num( fp ); - if( d0 > 127 ){ //d?????? + if( d0 > 127 ){ //吳?????? err_flg=M_P2COMMAND_ERR; goto music_read_999; } step[ch][ch_p[ch]++]=MUSIC_PAN; step[ch][ch_p[ch]++] = d0; goto music_read_100; - case 'f': //? + case 'f': //?? if(!num_check2( fp )){ //??????? err_flg=M_F2COMMAND_ERR; goto music_read_999; @@ -1646,13 +1646,13 @@ music_read_100: step[ch][ch_p[ch]++] = MUSIC_FREQ; step[ch][ch_p[ch]++] = d0; goto music_read_100; - case 'k': //???? + case 'k': //????? if(!num_check2( fp )){ //??????? err_flg=M_K2COMMAND_ERR; goto music_read_999; } d0 = get_num2( fp ); - if(d0 > 64 || d0 < -64){ //d???? + if(d0 > 64 || d0 < -64){ //吳???? err_flg=M_K2COMMAND_ERR; goto music_read_999; } @@ -1686,25 +1686,25 @@ music_read_100: goto music_read_999; } case '[': //??????? - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? switch(d0){ case 'l': - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? if(d0 != 'o'){ err_flg=M_KAKKO_ERR; goto music_read_999; } - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? if(d0 != 'o'){ err_flg=M_KAKKO_ERR; goto music_read_999; } - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? if(d0 != 'p'){ err_flg=M_KAKKO_ERR; goto music_read_999; } - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? if(d0 != ']'){ err_flg=M_KAKKO_ERR; goto music_read_999; @@ -1712,28 +1712,28 @@ music_read_100: step[ch][ch_p[ch]++]=MUSIC_LOOP; step[ch][ch_p[ch]++]=do_p[ch]; goto music_read_100; - case 'd': //????t - d0 = f_get( fp ); //?????? + case 'd': //????ㄅ + d0 = f_get( fp ); //?????? if(d0 != 'o'){ err_flg=M_KAKKO_ERR; goto music_read_999; } - d0 = f_get( fp ); //?????? + d0 = f_get( fp ); //?????? if(d0 != ']'){ err_flg=M_KAKKO_ERR; goto music_read_999; } - do_p[ch]=ch_p[ch]; //??I??? + do_p[ch]=ch_p[ch]; //??!??? goto music_read_100; default: err_flg=M_KAKKO_ERR; goto music_read_999; } - case '|': //??????? - d0 = f_get( fp ); //?????? - if(d0 == ':'){ //????? - ch_kuri_lv[ch]++; //??????? - if(ch_kuri_lv[ch] == 8){ //??????? + case '|': //??刺????? + d0 = f_get( fp ); //?????? + if(d0 == ':'){ //??刺??? + ch_kuri_lv[ch]++; //???????? + if(ch_kuri_lv[ch] == 8){ //??刺????? err_flg=M_KURI_ERR; goto music_read_999; } @@ -1752,19 +1752,19 @@ music_read_100: } goto music_read_100; - case ':': //???????? - d0 = f_get( fp ); //?????? - if(d0 != '|'){ //????? + case ':': //??刺?????? + d0 = f_get( fp ); //?????? + if(d0 != '|'){ //??刺??? err_flg=M_KURI_ERR; goto music_read_999; } step[ch][ch_p[ch]++] = MUSIC_KURI_RET; - step[ch][ch_p[ch]++] = ch_ret[ch_kuri_lv[ch]][ ch ]; //?? + step[ch][ch_p[ch]++] = ch_ret[ch_kuri_lv[ch]][ ch ]; //?? if(ch_skip[ch_kuri_lv[ch]][ ch ] >= 0){ - step[ch][ch_skip[ch_kuri_lv[ch]][ ch ]] = ch_p[ch]; //D? + step[ch][ch_skip[ch_kuri_lv[ch]][ ch ]] = ch_p[ch]; //Α? ch_skip[ch_kuri_lv[ch]][ ch ] = -1; } - ch_kuri_lv[ch]--; //??????? + ch_kuri_lv[ch]--; //???????? goto music_read_100; default: //?????? @@ -1780,7 +1780,7 @@ music_read_100: music_read_999: fclose( fp ); if(err_flg){ - sprintf_s( moji ," %d %s" ,err_line ,err_msg[err_flg] ); + sprintf_s( moji ,"菴 %d 俴 %s" ,err_line ,err_msg[err_flg] ); #ifdef _STONDEBUG_ MessageBoxNew(hWnd, moji, "Error", MB_OK); #endif @@ -1788,7 +1788,7 @@ music_read_999: for(d7=0;d7=0;d6--){ @@ -1855,14 +1855,14 @@ void music_init( void ) } d6=panpot_tbl[0]=-10000; d6=panpot_tbl[127]=10000; - //?????????? + //?????????? for(d6=127;d6>=0;d6--){ y=(int)(LOG(100,127)*10000) - (int)(LOG(100,d6)*10000); if(y>10000) y=10000; volume_tbl[(int)d6]=-y; } - //?????????? + //?????????? for(d7=0;d7<12*5+5;d7++) detune_tbl[d7]=freq_tbl[d7+1]-freq_tbl[d7]; @@ -1871,7 +1871,7 @@ void music_init( void ) } /*------------------------------------------- - ??e?? + ??κ?? --------------------------------------------*/ void play_stop( void ) { @@ -1885,7 +1885,7 @@ void play_stop( void ) } void stop_voice(int ch); /*------------------------------------------- - ???? + ???? --------------------------------------------*/ void play_start( void ) { @@ -1901,28 +1901,28 @@ void play_start( void ) void voice_lfo( int a0 ) { long d0; - if(!voice[ a0 ].lfo_m){ //?????? + if(!voice[ a0 ].lfo_m){ //??????? return; } - if(!voice[ a0 ].lfo_s){ //?????? + if(!voice[ a0 ].lfo_s){ //??????? return; } - if(voice[ a0 ].lfo_h){ //????????? + if(voice[ a0 ].lfo_h){ //????????? voice[ a0 ].lfo_h--; return; } voice[ a0 ].lfo_s_cnt += voice[ a0 ].lfo_s_ang; //??????? -// if(voice[ a0 ].lfo_s_ang >= 0){ //??????? - if(voice[ a0 ].lfo_s_cnt >= 0){ //??????? +// if(voice[ a0 ].lfo_s_ang >= 0){ //???????? + if(voice[ a0 ].lfo_s_cnt >= 0){ //???????? d0 = detune_tbl[ voice[ a0 ].note_no ] * voice[ a0 ].lfo_m / 128 * voice[ a0 ].lfo_s_cnt / abs(voice[ a0 ].lfo_s); } else { d0 = detune_tbl[ voice[ a0 ].note_no-1 ] * voice[ a0 ].lfo_m / 128 * voice[ a0 ].lfo_s_cnt / abs(voice[ a0 ].lfo_s); } - pDSData[ a0 ]->SetFrequency((DWORD)(voice[ a0 ].freq + d0)); // ???? + pDSData[ a0 ]->SetFrequency((DWORD)(voice[ a0 ].freq + d0)); // ????? - if(abs(voice[ a0 ].lfo_s_cnt) == abs(voice[ a0 ].lfo_s)){ //???? + if(abs(voice[ a0 ].lfo_s_cnt) == abs(voice[ a0 ].lfo_s)){ //?刺??? voice[ a0 ].lfo_s_ang *= -1; } } @@ -1940,54 +1940,54 @@ void voice_action( int a0 ) DWORD Status = 0; switch(voice[ a0 ].name){ - case VOICE_KEY_ON: //G???? + case VOICE_KEY_ON: //二???? if(voice[ a0 ].delay_cnt){ //????????? voice[ a0 ].delay_cnt--; return; } pDSData[ a0 ]->SetVolume(volume_tbl[ voice[ a0 ].volume ]); // ???????? - pDSData[ a0 ]->SetFrequency((DWORD)voice[ a0 ].freq); // ???? + pDSData[ a0 ]->SetFrequency((DWORD)voice[ a0 ].freq); // ????? pDSData[ a0 ]->SetPan(panpot_tbl[ voice[ a0 ].pan ]); // ???????? pDSData[ a0 ]->Play(0, 0, voice[ a0 ].loop_flg); //???? voice[ a0 ].name = VOICE_NORMAL; voice_lfo( a0 ); //?????? break; - case VOICE_NORMAL: //G????? + case VOICE_NORMAL: //二????? voice_lfo( a0 ); //?????? break; case VOICE_TIE_SET: //??????? pDSData[ a0 ]->SetVolume(volume_tbl[ voice[ a0 ].volume ]); // ???????? - pDSData[ a0 ]->SetFrequency((DWORD)voice[ a0 ].freq); // ???? + pDSData[ a0 ]->SetFrequency((DWORD)voice[ a0 ].freq); // ????? pDSData[ a0 ]->SetPan(panpot_tbl[ voice[ a0 ].pan ]); // ???????? voice[ a0 ].name = VOICE_NORMAL; break; - case VOICE_KEY_OFF: //G???? + case VOICE_KEY_OFF: //二???? // if( pDSData[ a0 ]->GetStatus( &Status ) == DS_OK ){ -/// pDSData[ a0 ]->GetStatus( &Status ); //?????????? -/// if( Status & DSBSTATUS_PLAYING || Status & DSBSTATUS_LOOPING ){ //???? +/// pDSData[ a0 ]->GetStatus( &Status ); //?????????? +/// if( Status & DSBSTATUS_PLAYING || Status & DSBSTATUS_LOOPING ){ //???? if(voice[ a0 ].volume){ //?????????? - voice[ a0 ].release_cnt++; //?????????? + voice[ a0 ].release_cnt++; //?????阪????? if(voice[ a0 ].release_spd != voice[ a0 ].release_cnt){ voice_lfo( a0 ); //?????? - break; //???????I?? + break; //???????兌?? } - voice[ a0 ].release_cnt = 0; //??????? + voice[ a0 ].release_cnt = 0; //?????阪?? voice[ a0 ].volume--; //???????? // if(voice[ a0 ].volume < 0){ //?????????? // voice[ a0 ].volume=0; //????????? // } - pDSData[ a0 ]->SetVolume(volume_tbl[ voice[ a0 ].volume ]); // ?????? + pDSData[ a0 ]->SetVolume(volume_tbl[ voice[ a0 ].volume ]); // ?????阪? voice_lfo( a0 ); //?????? - break; //????I?? + break; //????兌?? } /// } pDSData[ a0 ]->Stop(); //???? pDSData[ a0 ]->SetCurrentPosition(0); // - voice[ a0 ].name = VOICE_KEY_OFF_WAIT; //?????r? + voice[ a0 ].name = VOICE_KEY_OFF_WAIT; //?????┴? // play_use_task[ voice[ a0 ].track_no ] = -1; // break; #if !VOICE_KILL_ON - case VOICE_KEY_OFF_FAST: //L????? + case VOICE_KEY_OFF_FAST: //﹩????? pDSData[ a0 ]->Stop(); //???? pDSData[ a0 ]->SetCurrentPosition(0); // voice[ a0 ].name = 0; // @@ -1999,20 +1999,20 @@ void voice_action( int a0 ) void set_voice_param( int task_no, long note, int delay, int lfo_flg) { voice[ task_no ].volume = dataVolume[ch]; // ???????? -// voice[ task_no ].freq = freq + dataFrequency[ch]; // ???? - // ???? +// voice[ task_no ].freq = freq + dataFrequency[ch]; // ????? + // ????? if(play_detune[ch]>0){ //??????????? voice[ task_no ].freq = freq_tbl[ note ] + detune_tbl[ note ]*play_detune[ch]/64 + dataFrequency[ch]; } else if(play_detune[ch]<0){ //???????????? voice[ task_no ].freq = freq_tbl[ note ] + detune_tbl[ note-1 ]*play_detune[ch]/64 + dataFrequency[ch]; - } else { //?????e????? + } else { //?????叉????? voice[ task_no ].freq = freq_tbl[ note ] + dataFrequency[ch]; } - voice[ task_no ].note_no = note; // ???k???? + voice[ task_no ].note_no = note; // ???吻???? voice[ task_no ].pan = dataPan[ch]; // ???????? voice[ task_no ].release_spd = wave[ch]; // ????????? voice[ task_no ].release_cnt = 0; // - if(voice[ task_no ].tone_no == 12-1){ //?????? + if(voice[ task_no ].tone_no == 12-1){ //?????? voice[ task_no ].loop_flg = DSBPLAY_LOOPING; // } else { voice[ task_no ].loop_flg = 0; // @@ -2038,7 +2038,7 @@ int set_tone( int tone, long note, int use_task_cnt, int delay) { int d7,d1=0; - for(d7=0;d7DuplicateSoundBuffer(pDSData_tone[tone],&pDSData[d7]) != DS_OK ){ //???? + if( pDSound->DuplicateSoundBuffer(pDSData_tone[tone],&pDSData[d7]) != DS_OK ){ //???? #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "bufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "葩秶汒秞buffer囮啖ㄐ", "Error", MB_OK); #endif - play_use_task[ch][use_task_cnt]=-1; //?????? + play_use_task[ch][use_task_cnt]=-1; //?????? return -1; } @@ -2081,17 +2081,17 @@ set_tone_500: return 0; } -//?????????? L????? ?????????? +//?????????? ﹩????? ?????????? void stop_voice(void) { for(int cnt=0;cnt0){ // - return; //???????I?? + return; //???????兌?? } else { if(!tie_flg[ch]){ //??????? if( !d_pedal[ch] ){ //???????? @@ -2129,7 +2129,7 @@ void gate(void) stop_voice(); //??????? } else { for(int cnt=0;cnt= 0){ //???k??? - if(play_use_task_cnt[ch]!=1 && tie_flg[ch]==1){ //?????????? - tie_flg[ch]=0; //??? + if(next_command >= 0){ //???吻??? + if(play_use_task_cnt[ch]!=1 && tie_flg[ch]==1){ //?????????? + tie_flg[ch]=0; //??? } if(!tie_flg[ch]){ //??????? - stop_voice(); //??????_ - set_tone( dataToneNo[ch], next_command, 0, 0); //O????? - note_old[ch][0] = next_command; //??????k?V + stop_voice(); //??????于 + set_tone( dataToneNo[ch], next_command, 0, 0); //Μ????? + note_old[ch][0] = next_command; //??????吻?卒㎏ } else { for(int cnt=0;cnt 0){ step_point[ch] = step[ch][step_point[ch]]; } else { step_point[ch]++; - play_kuri_lv[ch]--; //??????? + play_kuri_lv[ch]--; //???????? } goto gate_100; } @@ -2285,7 +2285,7 @@ gate_100: play_detune[ch] = step[ch][step_point[ch]++]; goto gate_100; } - if(next_command==MUSIC_FREQ){ //?? + if(next_command==MUSIC_FREQ){ //??? dataFrequency[ch]=step[ch][step_point[ch]++]; // pDSData[play_use_task[ch]]->SetFrequency((DWORD)dataFrequency[ch]); goto gate_100; @@ -2295,7 +2295,7 @@ gate_100: // pDSData[play_use_task[ch]]->SetPan(dataPan[ch]); goto gate_100; } - if(next_command==MUSIC_END){ //?? + if(next_command==MUSIC_END){ //?? play_flg[ ch ] = 0; return; } @@ -2310,7 +2310,7 @@ void music( void ) #if THREAD_ON while(!thread_flg){ #if CLASS_UP - //Sleep(1); //?? + //Sleep(1); //?? #endif #endif LARGE_INTEGER d0; @@ -2336,7 +2336,7 @@ void music( void ) if(!pause_flg){ #if VOICE_KILL_ON for( d7 = 0 ; d7 < voice_kill_point ; d7++ ){ - voice[ voice_kill_buf[ d7 ] ].name = 0; //?????? + voice[ voice_kill_buf[ d7 ] ].name = 0; //?????? pDSData[ voice_kill_buf[ d7 ] ]->Stop(); //???? pDSData[ voice_kill_buf[ d7 ] ]->SetCurrentPosition(0); // } @@ -2363,13 +2363,13 @@ void music( void ) #if CLASS_UP #if MODE98 - if( tempo.LowPart > 10080*2 ) //??????t??? + if( tempo.LowPart > 10080*2 ) //????????? #else - if( tempo.LowPart > 10080 ) //??????t??? + if( tempo.LowPart > 10080 ) //????????? #endif - Sleep(2); //?? + Sleep(2); //?? else - Sleep(1); //?? + Sleep(1); //?? #endif #endif //-------------- @@ -2399,7 +2399,7 @@ int t_music_init() music_init(); //???????? /* -//cary ȡ +//cary 黍秞氈 if(!music_read()){ play_start(); } else { @@ -2426,11 +2426,11 @@ int t_music_init() } /*-------------------------------------------- - ???????? + ???????? ---------------------------------------------*/ void t_music_end() { - //????????? + //????????? if(dsound_flg == -1) return; #if THREAD_ON @@ -2442,35 +2442,35 @@ void t_music_end() #if 0 -//?????????? ???? ?????????? +//?????????? ???? ?????????? //static voice_seek_point=0; int play_se(int tone, int x, int y) { int distance; - //????????? + //????????? if(dsound_flg == -1){ return -1; } - if(tone > TONE_MAX){ //??????? + if(tone > TONE_MAX){ //??????? return -1; } - if(tone_tbl[ tone ].voice_place == -1){ //te???? + if(tone_tbl[ tone ].voice_place == -1){ //叉???? return -1; } - if(tone_tbl[ tone ].play_time){ //?????? + if(tone_tbl[ tone ].play_time){ //?????? return 0; } - if(voice[ voice_seek_point ].tone_no != tone){ //i??k?????? - voice[ voice_seek_point ].tone_no = tone; //?k?V - RELEASE(pDSData[voice_seek_point]); //? - //???? + if(voice[ voice_seek_point ].tone_no != tone){ //可??吻?????? + voice[ voice_seek_point ].tone_no = tone; //?吻?卒㎏ + RELEASE(pDSData[voice_seek_point]); //?? + //???? if( pDSound->DuplicateSoundBuffer(pDSData_tone[tone_tbl[ tone ].voice_place],&pDSData[voice_seek_point]) != DS_OK ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "bufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "葩秶汒秞buffer囮啖ㄐ", "Error", MB_OK); #endif return -1; } @@ -2480,55 +2480,55 @@ int play_se(int tone, int x, int y) distance = 127 * tone_tbl[ tone ].voice_volume / 10; x = 64; } else { //?????? - distance = abs(y - 240); //????????? - y = abs(x - 320); //????????? - if(distance < y) //???? + distance = abs(y - 240); //??????火??? + y = abs(x - 320); //??????火??? + if(distance < y) //????? distance = y; // - distance = distance << 4; //?????k?? + distance = distance << 4; //?????π?阪? distance /= 0x5a; // - if(distance >= 127) //d???? - return 0; //???? + if(distance >= 127) //吳???? + return 0; //????? - x /= 5; //?????k?? + x /= 5; //?????π?阪? if(x < 0) // x = 0; // if(x > 127) // x = 127; // - distance = (127 - distance) * tone_tbl[ tone ].voice_volume / 10; //??????? + distance = (127 - distance) * tone_tbl[ tone ].voice_volume / 10; //??????? } pDSData[ voice_seek_point ]->SetVolume(volume_tbl[ distance ]); // ???????? pDSData[ voice_seek_point ]->SetPan(panpot_tbl[ x ]); // ???????? pDSData[ voice_seek_point ]->Play(0, 0, 0); //???? - voice_seek_point = voice_seek_point++; //?????? + voice_seek_point = voice_seek_point++; //?????? voice_seek_point&=VOICE_MAX-1; // - tone_tbl[ tone ].play_time = 8; //??????? + tone_tbl[ tone ].play_time = 8; //??????? return 0; } #else -//??????????????? ? ??????????????? +//??????????????? ?? ??????????????? HANDLE hEvent[3]; // ????????? HANDLE hThreadHandle; // ????????????? DWORD dwThreadID; // ??????????? /*------------------------------------------- - ???????????????????? + ???????????????????? --------------------------------------------*/ -// ???????????J??Bl?? +// ???????????仔??﹨▍?? struct SoundData { - LPDIRECTSOUNDBUFFER pDSBuffer; // ???????????????? - HANDLE *phEvent; // ??????Gl?t??????????????????????? + LPDIRECTSOUNDBUFFER pDSBuffer; // ???????????????? + HANDLE *phEvent; // ??????二ρ?ㄅ???????????????????????? DWORD dwEventNum; // ?????? - DWORD dwStopEventNum; // ?ؤ_?????????????????? - LPBYTE lpWaveData; // ??????????? - DWORD dwWaveSize; // ??????????????? - DWORD dwBlock_size; // ????????????????? + DWORD dwStopEventNum; // ?于?????????????????? + LPBYTE lpWaveData; // ??????????? + DWORD dwWaveSize; // ??????????????? + DWORD dwBlock_size; // ?????????????????? } sd; // ????????? @@ -2581,7 +2581,7 @@ static LONG wave_address = 0; static LONG buffer_address = 0; volatile static int thread_start_flg = 0; -// ?????????? +// ?????????? DWORD WINAPI MyThreadFunc(LPVOID param) { LONG waveAdd = 0; @@ -2595,21 +2595,21 @@ DWORD WINAPI MyThreadFunc(LPVOID param) switch(i) { case WAIT_OBJECT_0 + 1: - // ?k??????????? + // ?吻??????????? buffer_address = 0; wave_address = waveAdd; Block_Copy(sd.pDSBuffer, 0, sd.dwBlock_size, sd.lpWaveData, waveAdd, sd.dwWaveSize); break; case WAIT_OBJECT_0: - // ?k??????????? + // ?吻??????????? buffer_address = sd.dwBlock_size; wave_address = waveAdd; Block_Copy(sd.pDSBuffer, sd.dwBlock_size, sd.dwBlock_size, sd.lpWaveData, waveAdd, sd.dwWaveSize); break; case WAIT_OBJECT_0 + 2: - // ????????????? + // ????????????? exit_thread_flg = 1; ExitThread(TRUE); default: - // ????????????? + // ????????????? exit_thread_flg = 1; ExitThread(TRUE); } @@ -2619,13 +2619,13 @@ DWORD WINAPI MyThreadFunc(LPVOID param) } // -// ??????????x +// ??????????台 // -// ? ? pWfmtx ... ??????????? +// ? ?ㄩ pWfmtx ... ??????????? // DataSize ... ???????? -// ppData ... x???????????????? -// ??k TRUE ... ? -// FALSE ... +// ppData ... 台???????????????? +// ??πㄩ TRUE ... ? +// FALSE ... ? static BOOL dwSoundInit2( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUFFER *ppData, HMMIO hmmio ) { // ????????????????????? @@ -2633,7 +2633,7 @@ static BOOL dwSoundInit2( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUF DSBUFFERDESC dsbufferdesc; HRESULT ret; - //????? + //?????? if(stream_flg == 1){ RELEASE(pDSNotify); stream_flg = 0; @@ -2647,7 +2647,7 @@ static BOOL dwSoundInit2( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUF dsbufferdesc.lpwfxFormat = pWfmtx; if ( pDSound->CreateSoundBuffer( &dsbufferdesc , ppData , NULL ) != DS_OK ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "bufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "膘蕾汒秞腔buffer囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } @@ -2656,7 +2656,7 @@ static BOOL dwSoundInit2( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUF //?????????? if( WaveDataRead( hmmio, &DataSize, pDSData_stream ) == FALSE ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "ȡWAVʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "黍WAV紫囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } @@ -2664,7 +2664,7 @@ static BOOL dwSoundInit2( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUF // ????????????????????? // WAVEFORMATEX pcmwf = *pWaveHeader; DSBUFFERDESC dsbdesc; - // DSBUFFERDESC?Bl?@e + // DSBUFFERDESC?﹨▍? 叉 ZeroMemory(&dsbdesc, sizeof(DSBUFFERDESC)); dsbdesc.dwSize = sizeof(DSBUFFERDESC); #if ACTIVE @@ -2672,21 +2672,21 @@ static BOOL dwSoundInit2( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUF #else dsbdesc.dwFlags = DSBCAPS_CTRLPOSITIONNOTIFY | /*DSBCAPS_CTRLDEFAULT*/DSBCAPS_CTRLPAN | DSBCAPS_CTRLVOLUME | DSBCAPS_CTRLFREQUENCY | DSBCAPS_GETCURRENTPOSITION2; #endif - // ?@e??Wave?????????????????? + // ? 叉??Wave??????????企???????? dsbdesc.dwBufferBytes = 2 * pcmwf.nAvgBytesPerSec; dsbdesc.lpwfxFormat = &pcmwf; ret = pDSound->CreateSoundBuffer(&dsbdesc, &pDSData_tone[ TONE_MAX ], NULL); if(ret != DS_OK) { - // ??????? + // ???????? // RELEASE(pDSound); RELEASE(pDSData_stream); #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "bufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "膘蕾汒秞腔buffer囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } - // DirectSoundNotify?????????? + // DirectSoundNotify?????????? ret = pDSData_tone[ TONE_MAX ]->QueryInterface(IID_IDirectSoundNotify, (LPVOID*)&pDSNotify); if(ret != DS_OK) { @@ -2694,55 +2694,55 @@ static BOOL dwSoundInit2( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUF RELEASE(pDSData_stream); RELEASE(pDSData_tone[ TONE_MAX ]); #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "DirectSoundNotifyʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "膘蕾DirectSoundNotify囮啖ㄐ", "Error", MB_OK); #endif return FALSE; - // ?? + // ??? } - // ????????????? + // ????????????? hEvent[0] = CreateEvent(NULL, FALSE, FALSE, NULL); hEvent[1] = CreateEvent(NULL, FALSE, FALSE, NULL); hEvent[2] = CreateEvent(NULL, FALSE, FALSE, NULL); - // DirectSoundNotify???????@e?? - // ?Bl???? + // DirectSoundNotify??????? 叉?? + // ?﹨▍???? DSBPOSITIONNOTIFY pn[3]; - pn[0].dwOffset = 0; // ?? + pn[0].dwOffset = 0; // ?企? pn[0].hEventNotify = hEvent[0]; - pn[1].dwOffset = 1 * pcmwf.nAvgBytesPerSec; // ?? + pn[1].dwOffset = 1 * pcmwf.nAvgBytesPerSec; // ?企? pn[1].hEventNotify = hEvent[1]; - pn[2].dwOffset = DSBPN_OFFSETSTOP; // ?ؤ_ - pn[2].hEventNotify = hEvent[2]; // ??????????????_?????????? + pn[2].dwOffset = DSBPN_OFFSETSTOP; // ?于 + pn[2].hEventNotify = hEvent[2]; // ??????????????于?????????? - // _?t@e + // 于?ㄅ 叉 HRESULT hr; hr = pDSNotify->SetNotificationPositions(3, pn); if(hr != DS_OK) { - // @e + //  叉? RELEASE(pDSNotify); // RELEASE(pDSound); RELEASE(pDSData_stream); RELEASE(pDSData_tone[ TONE_MAX ]); #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "趨DirectSoundNotifyʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "扢隅DirectSoundNotify囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } - stream_flg = 1; //??????? + stream_flg = 1; //??????? // ?????????????? thread_start_flg = 0; - // ????????? - sd.pDSBuffer = pDSData_tone[ TONE_MAX ]; // ??????????DirectSoundBuffer?????? - sd.phEvent = hEvent; // 4.4.??????????????? + // ????????? + sd.pDSBuffer = pDSData_tone[ TONE_MAX ]; // ??????????DirectSoundBuffer?????? + sd.phEvent = hEvent; // 4.4.???????????????? sd.dwEventNum = 3; // ???????????? - sd.dwStopEventNum = 2; // ??????????????_????? - sd.lpWaveData = pDSbuffData; // ???Wave?????????@e? - sd.dwWaveSize = DataSize; // ???Wave???????@e? + sd.dwStopEventNum = 2; // ??????????????于????? + sd.lpWaveData = pDSbuffData; // ???Wave????????? 叉? + sd.dwWaveSize = DataSize; // ???Wave???????? 叉? sd.dwBlock_size = pcmwf.nAvgBytesPerSec; // 44.1kHz??????????? // ?????????? @@ -2750,15 +2750,15 @@ static BOOL dwSoundInit2( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUF if(hThreadHandle == NULL) { #ifdef _STONDEBUG_ - // ?????? + // ??????? #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "Threadʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "膘蕾Thread囮啖ㄐ", "Error", MB_OK); #endif #endif return FALSE; } - // ??????????r? + // ??????????┴? while(1){ if(thread_start_flg) break; @@ -2769,7 +2769,7 @@ static BOOL dwSoundInit2( WAVEFORMATEX *pWfmtx, DWORD DataSize, LPDIRECTSOUNDBUF // pDSData_tone[ TONE_MAX ]->Play(0, 0, DSBPLAY_LOOPING); return TRUE; } -//??????????????? ? ??????????????? +//??????????????? ?? ??????????????? int t_music_bgm_no = -1; char t_music_bgm_pitch[16]={ @@ -2777,42 +2777,42 @@ char t_music_bgm_pitch[16]={ }; //aaa -//?????????? ???? ?????????? +//?????????? ???? ?????????? #define BGM_AUTO_LOOP 1 T_MUSIC_BGM bgm_tbl[] = { {"data\\bgm\\sabgm_s0.wav", 110,0,0}, //00 ???? {"data\\bgm\\sabgm_s1.wav", 120,0,0}, //01 ???? - {"data\\bgm\\sabgm_s1.wav", 105,2,0}, //02 ???k?N?? - {"data\\bgm\\sabgm_t1.wav", 127,2,0}, //03 ?????N?? - {"data\\bgm\\sabgm_t0.wav", 95,2,0}, //04 ??N?? + {"data\\bgm\\sabgm_s1.wav", 105,2,0}, //02 ???︻??代?? + {"data\\bgm\\sabgm_t1.wav", 127,2,0}, //03 ?????代?? + {"data\\bgm\\sabgm_t0.wav", 95,2,0}, //04 ??代?? - {"data\\bgm\\sabgm_b0.wav", 122,1,0}, //05 ???Pf??Id? - {"data\\bgm\\sabgm_b1.wav", 122,2,0}, //06 ???Pf??N?? + {"data\\bgm\\sabgm_b0.wav", 122,1,0}, //05 ???·卯??!卡? + {"data\\bgm\\sabgm_b1.wav", 122,2,0}, //06 ???·卯??代?? - {"data\\bgm\\sabgm_d0.wav", 120,1,0}, //07 ???n??Id? - {"data\\bgm\\sabgm_d1.wav", 105,1,0}, //08 [?n???Id? - {"data\\bgm\\sabgm_d2.wav", 100,2,0}, //09 [?n???N?? + {"data\\bgm\\sabgm_d0.wav", 120,1,0}, //07 ???叩??!卡? + {"data\\bgm\\sabgm_d1.wav", 105,1,0}, //08 吝?叩???!卡? + {"data\\bgm\\sabgm_d2.wav", 100,2,0}, //09 吝?叩???代?? - {"data\\bgm\\sabgm_f0.wav", 127,2,0}, //10 ?????N?? - {"data\\bgm\\sabgm_f1.wav", 100,2,0}, //11 ?????N?? + {"data\\bgm\\sabgm_f0.wav", 127,2,0}, //10 ?????代?? + {"data\\bgm\\sabgm_f1.wav", 100,2,0}, //11 ?????代?? - {"data\\bgm\\sabgm_b3.wav", 110,2,0}, //12 µһս - {"data\\bgm\\sabgm_b2.wav", 110,2,0}, //13 µbossս - {"data\\bgm\\sabgm_b4.wav", 110,2,0}, //14 µbossս + {"data\\bgm\\sabgm_b3.wav", 110,2,0}, //12 陔腔珨啜桵須 + {"data\\bgm\\sabgm_b2.wav", 110,2,0}, //13 陔腔boss桵須 + {"data\\bgm\\sabgm_b4.wav", 110,2,0}, //14 陔腔郔綴boss桵須 - {"data\\bgm\\sabgm_f2.wav", 110,2,0}, //15 ½ + {"data\\bgm\\sabgm_f2.wav", 110,2,0}, //15 畛菟湮翻 - {"data\\bgm\\sabgm_t2.wav", 110,2,0}, //16 ԰ - {"data\\bgm\\sabgm_t3.wav", 110,2,0}, //17 س - {"data\\bgm\\sabgm_t4.wav", 110,2,0}, //18 ˮ - {"data\\bgm\\sabgm_t5.wav", 110,2,0}, //19 - {"data\\bgm\\sabgm_t6.wav", 110,2,0}, //20 - {"data\\bgm\\sabgm_t7.wav", 110,2,0}, //21 + {"data\\bgm\\sabgm_t2.wav", 110,2,0}, //16 畛菟埶 + {"data\\bgm\\sabgm_t3.wav", 110,2,0}, //17 華傑 + {"data\\bgm\\sabgm_t4.wav", 110,2,0}, //18 阨傑 + {"data\\bgm\\sabgm_t5.wav", 110,2,0}, //19 鳶傑 + {"data\\bgm\\sabgm_t6.wav", 110,2,0}, //20 瑞傑 + {"data\\bgm\\sabgm_t7.wav", 110,2,0}, //21 傭軯 -#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 µͼ - {"data\\bgm\\sabgm_t8.wav", 110,2,0}, //22 ׶ - {"data\\bgm\\sabgm_t9.wav", 110,2,0}, //23 ƽԭ - {"data\\bgm\\sabgm_t10.wav", 110,2,0}, //24 ս +#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 陔華芞秞氈 + {"data\\bgm\\sabgm_t8.wav", 110,2,0}, //22 漆菁韌貓 + {"data\\bgm\\sabgm_t9.wav", 110,2,0}, //23 漆菁埻 + {"data\\bgm\\sabgm_t10.wav", 110,2,0}, //24 漆菁桵須 #endif {"data\\bgm\\sabgm_t11.wav", 110,2,0}, //25 {"data\\bgm\\sabgm_t12.wav", 110,2,0}, //26 @@ -2845,7 +2845,7 @@ int play_bgm(int bgm_no) //??????????? if(t_music_bgm_no != -1){ - //????_? + //????于? stop_thread(); } @@ -2853,29 +2853,29 @@ int play_bgm(int bgm_no) // if( (hmmio = mmioOpen(fname[bgm_no], NULL, MMIO_READ | MMIO_ALLOCBUF )) == NULL){ if( (hmmio = mmioOpen(bgm_tbl[bgm_no].fname, NULL, MMIO_READ | MMIO_ALLOCBUF )) == NULL){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "WAVʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "湖羲WAV紫囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } //??????????? if( WaveFormatRead( hmmio , &Wfmtx , &WaveSize ) == FALSE ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "ȡʽʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "黍汒秞跡宒囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } DataSize = WaveSize; //?????????????? - if(bgm_tbl[bgm_no].loop_flg == 2){ //N?????? + if(bgm_tbl[bgm_no].loop_flg == 2){ //代?????? thread_stop_flg = 1; //????? - //???ѩ??? + //??????? #if BGM_AUTO_LOOP FILE *fp; int d0,d1,d2; fp = fopen( bgm_tbl[bgm_no].fname, "rb" ); if( fp == NULL ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "ʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "湖羲汒秞紫囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } @@ -2883,27 +2883,27 @@ int play_bgm(int bgm_no) d2 += 4; //?????????????? d2 += 4; //???? ????????? d2 += 16; //????????? - fseek(fp,d2,SEEK_CUR); //??????????h - d0 = fgetc(fp); //???????????? + fseek(fp,d2,SEEK_CUR); //??????????去 + d0 = fgetc(fp); //????????????? d0 |= fgetc(fp) << 8; // d2 = 2; //???????? d2 += 12+DataSize; //?????????? ? ?????????? if(DataSize&1){ //???????? - d2++; //????? + d2++; //????? } - d2 += 12*4; //?????????? - fseek(fp,d2,SEEK_CUR); //??????????h + d2 += 12*4; //?????????? + fseek(fp,d2,SEEK_CUR); //??????????去 - //?????t - d1 = fgetc(fp); //?????????? + //?????ㄅ + d1 = fgetc(fp); //?????????? d1 |= fgetc(fp) << 8; // d1 |= fgetc(fp) << 16; // d1 |= fgetc(fp) << 24; // if( d1 < 0) thread_loop_start = 0; else - thread_loop_start = d1 * d0; //????t??? - //?????t + thread_loop_start = d1 * d0; //????ㄅ??? + //?????ㄅ d1 = fgetc(fp); d1 |= fgetc(fp) << 8; d1 |= fgetc(fp) << 16; @@ -2919,26 +2919,26 @@ int play_bgm(int bgm_no) // if( dwSoundInit2( &Wfmtx, DataSize, &pDSData_tone[TONE_MAX], hmmio ) == FALSE ){ if( dwSoundInit2( &Wfmtx, DataSize, &pDSData_stream, hmmio ) == FALSE ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "bufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "膘蕾汒秞腔buffer囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } #if BGM_AUTO_LOOP if( d1 > 0) - sd.dwWaveSize = d1 * d0; //?????t???????????????? + sd.dwWaveSize = d1 * d0; //?????ㄅ???????????????? #endif } else { thread_stop_flg = 0; //????? if( dwSoundInit( &Wfmtx, DataSize, &pDSData_tone[TONE_MAX] ) == FALSE ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "bufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "膘蕾汒秞腔buffer囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } //??????? if( WaveDataRead( hmmio, &DataSize, pDSData_tone[TONE_MAX] ) == FALSE ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "ȡWAVʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "黍WAV紫腔訧蹋囮啖ㄐ", "Error", MB_OK); #endif return FALSE; } @@ -2950,23 +2950,23 @@ int play_bgm(int bgm_no) //????? pDSData_tone[ TONE_MAX ]->SetVolume(volume_tbl[ bgm_tbl[bgm_no].volume * t_music_bgm_volume / 15 ]); // ???????? - //????? + //????? if(bgm_tbl[bgm_no].loop_flg){ //????? pDSData_tone[ TONE_MAX ]->Play(0, 0, DSBPLAY_LOOPING); } else { pDSData_tone[ TONE_MAX ]->Play(0, 0, 0); } - //?????k?V + //?????吻?卒㎏ t_music_bgm_no = bgm_no; if(t_music_bgm_no < 0) t_music_bgm_no=0; // ???????? NowTime = TimeGetTime(); - //???????? + //???????? t_music_playing_flg = 1; - //?????k?V + //?????吻?卒㎏ // map_bgm_no = t_music_bgm_no; return TRUE; @@ -2980,10 +2980,10 @@ void bgm_volume_change(void) if(dsound_flg == -1) return; - if(t_music_bgm_volume > 15){ //d???? + if(t_music_bgm_volume > 15){ //吳???? t_music_bgm_volume = 15; } - if(t_music_bgm_volume < 0){ //d???? + if(t_music_bgm_volume < 0){ //吳???? t_music_bgm_volume = 0; } //????? @@ -3004,7 +3004,7 @@ void set_gbm_pitch(void) } int t_music_se_no = -1; -//?????????? ???? ?????????? +//?????????? ???? ?????????? //static voice_seek_point=0; int play_se(int tone, int x, int y) { @@ -3018,49 +3018,49 @@ int play_se(int tone, int x, int y) if(dsound_flg == -1) return -1; - if(tone > TONE_MAX){ //??????? + if(tone > TONE_MAX){ //??????? return -1; } - if(tone_tbl[ tone ].voice_place == -1){ //te???? + if(tone_tbl[ tone ].voice_place == -1){ //叉???? return -1; } - if(tone_tbl[ tone ].play_time){ //?????? + if(tone_tbl[ tone ].play_time){ //?????? return 0; } - //q???k???? + //〈???吻???? d0 = voice[ voice_seek_point ].tone_no; - if(voice[ voice_seek_point ].tone_no != tone){ //i??k?????? - voice[ voice_seek_point ].tone_no = tone; //?k?V - //???????????????? + if(voice[ voice_seek_point ].tone_no != tone){ //可??吻?????? + voice[ voice_seek_point ].tone_no = tone; //?吻?卒㎏ + //???????????佃?????? if(d0 != -2){ - RELEASE(pDSData[voice_seek_point]); //? + RELEASE(pDSData[voice_seek_point]); //?? } - //???? + //???? if( pDSound->DuplicateSoundBuffer(pDSData_tone[tone_tbl[ tone ].voice_place],&pDSData[voice_seek_point]) != DS_OK ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "bufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "葩秶汒秞buffer囮啖ㄐ", "Error", MB_OK); #endif - //????????????????? + //???????????佃??????? voice[ voice_seek_point ].tone_no = -2; return -1; } } else { - pDSData[voice_seek_point]->SetCurrentPosition(0); //????????? + pDSData[voice_seek_point]->SetCurrentPosition(0); //????????? } #if 0 - total_level = abs(y - 240); //????????? - y = abs(x - 320) >> 1; //????????? - if(total_level < y) //???? + total_level = abs(y - 240); //??????火??? + y = abs(x - 320) >> 1; //??????火??? + if(total_level < y) //????? total_level = y; // - total_level = total_level << 4; //?????k?? + total_level = total_level << 4; //?????π?阪? total_level /= 0x5a; // - if(total_level >= 127) //d???? - return 0; //???? + if(total_level >= 127) //吳???? + return 0; //????? total_level = 127 - total_level; // @@ -3069,14 +3069,14 @@ int play_se(int tone, int x, int y) if(stereo_flg == T_MUSIC_MONO){ //?????? x = 64; } else { - x /= 5; //?????k?? + x /= 5; //?????π?阪? if(x < 0) // x = 0; // if(x > 127) // x = 127; // } - //?????? + //?????? total_level = 127 * tone_tbl[ tone ].voice_volume / 127; // total_level = total_level * tone_tbl[ tone ].voice_volume / 127; @@ -3085,35 +3085,35 @@ int play_se(int tone, int x, int y) pDSData[ voice_seek_point ]->SetVolume(volume_tbl[ total_level ]); // ???????? pDSData[ voice_seek_point ]->SetPan(panpot_tbl[ x ]); // ???????? - if(tone_tbl[ tone ].voice_note){ //???k?e?? + if(tone_tbl[ tone ].voice_note){ //???吻?叉?? pDSData[ voice_seek_point ]->SetFrequency( (DWORD)freq_tbl[tone_tbl[ tone ].voice_note + tone_tbl[ tone ].voice_rate]); } #if 0 - if(tone_tbl[ tone ].voice_loop == 0 ){ //?????? + if(tone_tbl[ tone ].voice_loop == 0 ){ //??????? pDSData[ voice_seek_point ]->Play(0, 0, 0); //???? } else { - voice[ voice_seek_point ].loop_flg = 1; //???? + voice[ voice_seek_point ].loop_flg = 1; //???? pDSData[ voice_seek_point ]->Play(0, 0, DSBPLAY_LOOPING); //???? } #else pDSData[ voice_seek_point ]->Play(0, 0, 0); //???? #endif while(1){ - voice_seek_point++; //?????? + voice_seek_point++; //?????? voice_seek_point&=VOICE_MAX-1; // - if(voice[ voice_seek_point ].loop_flg == 0){ //?????????? + if(voice[ voice_seek_point ].loop_flg == 0){ //?????????? break; } } - tone_tbl[ tone ].play_time = 5; //??????? + tone_tbl[ tone ].play_time = 5; //??????? return 0; } #endif -//?????????? ???? ?????????? +//?????????? ???? ?????????? //int play_environment_tone(int tone, int distance, int voice_address, int panpot, int new_flg) int play_environment_tone(int tbl_no, int new_flg) { @@ -3127,92 +3127,92 @@ int play_environment_tone(int tbl_no, int new_flg) if(dsound_flg == -1) return -1; - if(env_tbl[tbl_no].tone > TONE_MAX){ //??????? + if(env_tbl[tbl_no].tone > TONE_MAX){ //??????? return -1; } - if(tone_tbl[ env_tbl[tbl_no].tone ].voice_place == -1){ //te???? + if(tone_tbl[ env_tbl[tbl_no].tone ].voice_place == -1){ //叉???? return -1; } -// if(tone_tbl[ env_tbl[tbl_no].tone ].play_time){ //?????? +// if(tone_tbl[ env_tbl[tbl_no].tone ].play_time){ //?????? // return 0; // } - env_tbl[tbl_no].distance = env_tbl[tbl_no].distance << 4; //?????k?? + env_tbl[tbl_no].distance = env_tbl[tbl_no].distance << 4; //?????π?阪? env_tbl[tbl_no].distance /= 0x6a; // -// if(env_tbl[tbl_no].distance >= 127) //d???? -// return 0; //???? +// if(env_tbl[tbl_no].distance >= 127) //吳???? +// return 0; //????? - if(env_tbl[tbl_no].distance >= 127) //d???? - env_tbl[tbl_no].distance = 127; //???? + if(env_tbl[tbl_no].distance >= 127) //吳???? + env_tbl[tbl_no].distance = 127; //????? - if(new_flg){ //??? - //q???k???? + if(new_flg){ //??? + //〈???吻???? d0 = voice[ env_tbl[tbl_no].voice_address ].tone_no; - if(voice[ env_tbl[tbl_no].voice_address ].tone_no != env_tbl[tbl_no].tone){ //i??k?????? - voice[ env_tbl[tbl_no].voice_address ].tone_no = env_tbl[tbl_no].tone; //?k?V - //???????????????? + if(voice[ env_tbl[tbl_no].voice_address ].tone_no != env_tbl[tbl_no].tone){ //可??吻?????? + voice[ env_tbl[tbl_no].voice_address ].tone_no = env_tbl[tbl_no].tone; //?吻?卒㎏ + //???????????佃?????? if(d0 != -2){ - RELEASE(pDSData[env_tbl[tbl_no].voice_address]); //? + RELEASE(pDSData[env_tbl[tbl_no].voice_address]); //?? } - //???? + //???? if( pDSound->DuplicateSoundBuffer(pDSData_tone[tone_tbl[ env_tbl[tbl_no].tone ].voice_place],&pDSData[env_tbl[tbl_no].voice_address]) != DS_OK ){ #ifdef _STONDEBUG_ - MessageBoxNew(hWnd, "bufferʧܣ", "Error", MB_OK); + MessageBoxNew(hWnd, "葩秶汒秞buffer囮啖ㄐ", "Error", MB_OK); #endif - //????????????????? + //???????????佃??????? voice[ env_tbl[tbl_no].voice_address ].tone_no = -2; return -1; } } } - //?????? + //?????? // total_level = (127 - env_tbl[tbl_no].volume) * tone_tbl[ env_tbl[tbl_no].tone ].voice_volume / 127; //????????? // total_level = total_level * t_music_se_volume / 15; - //??????????? + //??????阪????? if(env_tbl[tbl_no].volume != env_tbl[tbl_no].volume_old){ // ???????? pDSData[ env_tbl[tbl_no].voice_address ]->SetVolume(volume_tbl[ env_tbl[tbl_no].volume ]); env_tbl[tbl_no].volume_old = env_tbl[tbl_no].volume; } - //??????????? + //??????阪????? if(env_tbl[tbl_no].panpot != env_tbl[tbl_no].panpot_old){ // ???????? pDSData[ env_tbl[tbl_no].voice_address ]->SetPan(panpot_tbl[ env_tbl[tbl_no].panpot ]); env_tbl[tbl_no].panpot_old = env_tbl[tbl_no].panpot; } - //???k?e?? + //???吻?叉?? if(tone_tbl[ env_tbl[tbl_no].tone ].voice_note){ pDSData[ env_tbl[tbl_no].voice_address ]->SetFrequency( (DWORD)freq_tbl[tone_tbl[ env_tbl[tbl_no].tone ].voice_note + tone_tbl[ env_tbl[tbl_no].tone ].voice_rate]); } - if(new_flg){ //??? + if(new_flg){ //??? pDSData[ env_tbl[tbl_no].voice_address ]->SetCurrentPosition(0); // - if(tone_tbl[ env_tbl[tbl_no].tone ].voice_loop == 0 ){ //?????? + if(tone_tbl[ env_tbl[tbl_no].tone ].voice_loop == 0 ){ //??????? pDSData[ env_tbl[tbl_no].voice_address ]->Play(0, 0, 0); //???? } else { - voice[ env_tbl[tbl_no].voice_address ].loop_flg = 1; //???? + voice[ env_tbl[tbl_no].voice_address ].loop_flg = 1; //???? pDSData[ env_tbl[tbl_no].voice_address ]->Play(0, 0, DSBPLAY_LOOPING); //???? } while(1){ - voice_seek_point++; //?????? + voice_seek_point++; //?????? voice_seek_point&=VOICE_MAX-1; // - if(voice[ voice_seek_point ].loop_flg == 0){ //?????????? + if(voice[ voice_seek_point ].loop_flg == 0){ //?????????? break; } } } -// tone_tbl[ env_tbl[tbl_no].tone ].play_time = 8; //??????? +// tone_tbl[ env_tbl[tbl_no].tone ].play_time = 8; //??????? return 0; } @@ -3221,40 +3221,40 @@ int play_environment_tone(int tbl_no, int new_flg) void play_map_bgm_check(void) { switch(map_bgm_vct_no){ - case 0: //???????? + case 0: //???阪????? if(draw_map_bgm_flg){ - if(t_music_bgm_no != map_bgm_no){ //?????? - map_bgm_vct_no++; //????????? + if(t_music_bgm_no != map_bgm_no){ //???阪??? + map_bgm_vct_no++; //????????? } } draw_map_bgm_flg = 0; break; - case 1: //??????????? + case 1: //??????????? fade_out_bgm(); - map_bgm_vct_no++; //????????r?? + map_bgm_vct_no++; //????????┴?? break; - case 2: //???????????r? - if(t_music_fade_flg == 0){ //?????????? - map_bgm_vct_no++; //????? + case 2: //???????????┴? + if(t_music_fade_flg == 0){ //?????????? + map_bgm_vct_no++; //????? } break; - case 3: //???? - play_bgm(map_bgm_no); //???? - map_bgm_vct_no = 0; //????????? + case 3: //???? + play_bgm(map_bgm_no); //???? + map_bgm_vct_no = 0; //???阪?????? break; } } -//?????????? ??????? ?????????? +//?????????? ??????? ?????????? int BakBgm = 0; int play_map_bgm(int tone) { // shan 2002/01/18 -#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 µͼ +#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 陔華芞秞氈 if( BakBgm != tone && tone >= 40 && tone <= 55 ) #else if( BakBgm != tone && tone >= 40 && tone <= 53 ) @@ -3280,19 +3280,19 @@ int play_map_bgm(int tone) } switch(tone){ //????? - case 40: //?? + case 40: //??? map_bgm_no = 4; break; - case 41: //?? + case 41: //?? map_bgm_no = 3; break; - case 42: //n?? + case 42: //叩?? map_bgm_no = 7; break; - case 43: //n?? + case 43: //叩?? map_bgm_no = 8; break; - case 44: //n?? + case 44: //叩?? map_bgm_no = 9; break; case 45: //????? @@ -3301,41 +3301,41 @@ int play_map_bgm(int tone) case 46: //???????????? map_bgm_no = 11; break; - case 47: //½ + case 47: //畛菟湮翻 map_bgm_no = 15; break; - case 48: //԰ + case 48: //畛菟埶 map_bgm_no = 16; break; - case 49: //ij + case 49: //傭部 map_bgm_no = 21; break; - case 50: //س + case 50: //華傑 map_bgm_no = 17; break; - case 51: //ˮ + case 51: //阨傑 map_bgm_no = 18; break; - case 52: // + case 52: //鳶傑 map_bgm_no = 19; break; - case 53: // + case 53: //瑞傑 map_bgm_no = 20; break; -#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 µͼ +#ifdef _NEWMUSICFILE6_0 // Syu ADD 6.0 陔華芞秞氈 case 54: - map_bgm_no = 22; // ׶ + map_bgm_no = 22; // 漆菁韌貓 break; case 55: - map_bgm_no = 23; // ƽԭ + map_bgm_no = 23; // 漆菁埻 break; #endif } return 0; } -//?????????? ???? ?????????? +//?????????? ???? ?????????? int play_environment(int tone, int x, int y) { int d0,d1,distance,volume; @@ -3344,27 +3344,27 @@ int play_environment(int tone, int x, int y) if (MuteFlag) return 0; // tone = 157; - if(tone < 20 || tone > 37){ //??k?? - return 0; //???? + if(tone < 20 || tone > 37){ //阪??π?? + return 0; //????? } switch(tone){ case 28: //??? - if(SaTimeZoneNo != LS_MORNING){ //????? - return 0; //???? + if(SaTimeZoneNo != LS_MORNING){ //?????? + return 0; //????? } break; case 29: //? if(SaTimeZoneNo != LS_NIGHT){ //?????? - return 0; //???? + return 0; //????? } break; - case 37: //? - if(SaTimeZoneNo == LS_MORNING){ //?? - return 0; //???? + case 37: //?? + if(SaTimeZoneNo == LS_MORNING){ //??? + return 0; //????? } if(SaTimeZoneNo == LS_NIGHT){ //??? - tone = 29; //??? + tone = 29; //??阪? break; } break; @@ -3380,25 +3380,25 @@ int play_environment(int tone, int x, int y) distance = (int)sqrt( (double)(dx*dx+dy*dy) ); - volume = distance << 4; //?????k?? + volume = distance << 4; //?????π?阪? volume /= 0x6a; // - if(volume >= 127) //d???? - return 0; //???? + if(volume >= 127) //吳???? + return 0; //????? d0 = tone - 20; tone = 151 + d0; - if(env_tbl[d0].count == 0){ //??? - //??V + if(env_tbl[d0].count == 0){ //??? + //???向 env_tbl[d0].distance = distance; volume = (127 - volume) * tone_tbl[ tone ].voice_volume / 127; env_tbl[d0].volume = volume * t_music_se_volume / 15; d1 = 1; //???????? - if(env_tbl[d0].voice_address == -1){ //??? + if(env_tbl[d0].voice_address == -1){ //??? env_tbl[d0].tone = tone; } } else { - //?????V + //???????向 if(env_tbl[d0].distance > distance){ env_tbl[d0].distance = distance; volume = (127 - volume) * tone_tbl[ tone ].voice_volume / 127; @@ -3420,15 +3420,15 @@ void play_environment_check(void) if(t_music_bgm_volume==1) return; int d0,d1,d3,d7; for(d7=0; d7Stop(); //???? - voice[ env_tbl[d7].voice_address ].loop_flg = 0; //????? + voice[ env_tbl[d7].voice_address ].loop_flg = 0; //????? env_tbl[d7].voice_address = -1; } continue; } - if(env_tbl[d7].voice_address == -1){ //??? + if(env_tbl[d7].voice_address == -1){ //??? env_tbl[d7].voice_address = voice_seek_point; env_tbl[d7].volume_old = -1; env_tbl[d7].panpot_old = -1; @@ -3440,14 +3440,14 @@ void play_environment_check(void) if(stereo_flg == T_MUSIC_MONO){ //?????? env_tbl[d7].panpot = d1 = 64; } else { - d1 = env_tbl[d7].side / 5; //?????k?? + d1 = env_tbl[d7].side / 5; //?????π?阪? if(d1 < 0) // d1 = 0; // if(d1 > 127) // d1 = 127; // } - if(d0){ //??? + if(d0){ //??? env_tbl[d7].panpot = d1; } else { d3 = d1 - env_tbl[d7].panpot; @@ -3455,7 +3455,7 @@ void play_environment_check(void) d3 = 2; if(d3 < -2) d3 = -2; - //?????@e + //????? 叉 env_tbl[d7].panpot += d3; } // play_environment_tone(env_tbl[d7].tone, env_tbl[d7].distance, env_tbl[d7].voice_address, env_tbl[d7].panpot, d0); @@ -3468,7 +3468,7 @@ void play_environment_check(void) //?????????? ??????????? ?????????? void bgm_fade_check(void) { - //??????? + //??????? if(t_music_playing_flg == 0){ t_music_fade_flg = 0; return; @@ -3494,7 +3494,7 @@ void check_se_loop(void){ if(dsound_flg == -1) return; for(d7=0; d7 1); // MCI_OPEN_PARMS open = {0}; @@ -3549,13 +3549,13 @@ bool cdda_open(int n) if ( dwRes) { #ifdef _STONDEBUG_ -// MessageBoxNew(hWnd, "CDʧܣ", "ȷ", MB_OK); +// MessageBoxNew(hWnd, "湖羲CD秞寢囮啖ㄐ", "隅", MB_OK); #endif cdda_flg = 1; return FALSE; } -// ?????????????e??? +// ?????????????叉??? MCI_SET_PARMS set; set.dwTimeFormat = MCI_FORMAT_TMSF; dwRes = mciSendCommand( open.wDeviceID, MCI_SET, @@ -3563,7 +3563,7 @@ bool cdda_open(int n) if ( dwRes) { #ifdef _STONDEBUG_ -// MessageBoxNew(hWnd, "CDʧܣ", "ȷ", MB_OK); +// MessageBoxNew(hWnd, "湖羲CD秞寢囮啖ㄐ", "隅", MB_OK); #endif cdda_flg = 1; return FALSE; @@ -3575,8 +3575,8 @@ bool cdda_open(int n) ---------------------------------------------*/ bool cdda_start(int n) { -// ??? - // ???? n?? +// ??? + // ???? n??? MCI_PLAY_PARMS play; play.dwFrom = MCI_MAKE_TMSF( n,0,0,0); play.dwTo = MCI_MAKE_TMSF( n+1,0,0,0); @@ -3586,15 +3586,15 @@ bool cdda_start(int n) if ( dwRes) { #ifdef _STONDEBUG_ -// MessageBoxNew(hWnd, "??????????????", "ȷ", MB_OK); +// MessageBoxNew(hWnd, "??????????????", "隅", MB_OK); #endif - cdda_flg = 2; //???????? + cdda_flg = 2; //????????? return FALSE; } return TRUE; } /*-------------------------------------------- - ?????_ + ?????于 ---------------------------------------------*/ bool cdda_stop(void) { @@ -3603,19 +3603,19 @@ bool cdda_stop(void) mciSendCommand(open.wDeviceID, MCI_STOP, 0, NULL); -// ??????? +// ???????? dwRes = mciSendCommand( open.wDeviceID, MCI_CLOSE, 0, (DWORD)NULL); if ( dwRes) { #ifdef _STONDEBUG_ -// MessageBoxNew(hWnd, "??????????????", "ȷ", MB_OK); +// MessageBoxNew(hWnd, "??????????????", "隅", MB_OK); #endif return FALSE; } return TRUE; } /*-------------------------------------------- - ?????? + ?????? ---------------------------------------------*/ extern DWORD NowTime; //extern double NowTime; @@ -3630,7 +3630,7 @@ bool cdda_play(int n) if(cdda_flg == 1) //?????????? return TRUE; - if(cdda_no != n ){ //?????? + if(cdda_no != n ){ //??阪???? cdda_flg = 0; //?????? cdda_check_cnt = -1; } @@ -3643,27 +3643,27 @@ bool cdda_play(int n) if(cdda_check_cnt) return TRUE; - if(cdda_no == n ){ //???? + if(cdda_no == n ){ //???? MCI_STATUS_PARMS mcisp; mcisp.dwItem = MCI_STATUS_MODE; - if(mciSendCommand(open.wDeviceID, MCI_STATUS, MCI_STATUS_ITEM, (DWORD)&mcisp)){ //??? - cdda_flg = 3; //?????????? + if(mciSendCommand(open.wDeviceID, MCI_STATUS, MCI_STATUS_ITEM, (DWORD)&mcisp)){ //??? + cdda_flg = 3; //?????????? return FALSE; } - if(mcisp.dwReturn == MCI_MODE_PLAY){ //???? + if(mcisp.dwReturn == MCI_MODE_PLAY){ //???? return TRUE; - } else { //????? + } else { //????? cdda_no = Rnd( 11, 34 ); cdda_start( cdda_no ); - // ???w????? + // ???ㄈ?釤???? NowTime = TimeGetTime(); return TRUE; } } else { - cdda_no = n; //??? + cdda_no = n; //??? cdda_stop(); cdda_open( n ); cdda_start( n ); - // ???w????? + // ???ㄈ?釤???? NowTime = TimeGetTime(); } return TRUE; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/talkwindow.cpp b/石器时代8.5客户端最新源代码/石器源码/system/talkwindow.cpp index 7a81496..0bd202b 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/talkwindow.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/talkwindow.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include "../systeminc/talkwindow.h" #include "../systeminc/main.h" #include "../resource.h" @@ -48,14 +48,14 @@ void CTalkWindow::Init(HWND hWnd,HINSTANCE hInstance) } pCBL = m_pCBLView = m_pCBLViewBottom = m_pCBLString = m_pCBLHead = (ChatBufferLink*)MALLOC(sizeof(ChatBufferLink)); if(pCBL == NULL){ - MessageBoxNew(hWnd,TEXT("CTalkWindow::Init()ʧ(1)!!"),TEXT("ȷ"),MB_OK); + MessageBoxNew(hWnd,TEXT("CTalkWindow::Init()记忆体配置失败(1)!!"),TEXT("确定"),MB_OK); return; } memset(pCBL,0,sizeof(ChatBufferLink)); for(i=0;inext = (ChatBufferLink*)MALLOC(sizeof(ChatBufferLink)); if(pCBL == NULL){ - MessageBoxNew(hWnd,TEXT("CTalkWindow::Init()ʧ(2)!!"),TEXT("ȷ"),MB_OK); + MessageBoxNew(hWnd,TEXT("CTalkWindow::Init()记忆体配置失败(2)!!"),TEXT("确定"),MB_OK); Release(); return; } @@ -164,7 +164,7 @@ void CTalkWindow::LoadSkin(char *szSkinPath) char szFileName[5][32] = { "\\base.bmp","\\up_arrow_g.bmp","\\up_arrow_r.bmp","\\down_arrow_g.bmp","\\down_arrow_r.bmp"}; char szTemp[128]; - // skinͼ + // 读入skin的图 for(int i=0;inext == NULL) pCBL = m_pCBLHead; else pCBL = pCBL->next; } - // ʾ + // 显示输入的文字 strcpy(szBuffer,MyChatBuffer.buffer); color = MyChatBuffer.color; SetTextColor(m_hdcBackBuffer,0); #ifdef _CHANNEL_MODIFY - TextOut(m_hdcBackBuffer,TALK_WINDOW_SXI - 25,TALK_WINDOW_SYI+1,g_szChannelTitle[TalkMode],(int)strlen(g_szChannelTitle[TalkMode])); // ʾƵ + TextOut(m_hdcBackBuffer,TALK_WINDOW_SXI - 25,TALK_WINDOW_SYI+1,g_szChannelTitle[TalkMode],(int)strlen(g_szChannelTitle[TalkMode])); // 显示频道 #endif TextOut(m_hdcBackBuffer,TALK_WINDOW_SXI + 1,TALK_WINDOW_SYI + 1,szBuffer,(int)strlen(szBuffer)); SetTextColor(m_hdcBackBuffer,FontPal[color]); #ifdef _CHANNEL_MODIFY - TextOut(m_hdcBackBuffer,TALK_WINDOW_SXI - 26,TALK_WINDOW_SYI,g_szChannelTitle[TalkMode],(int)strlen(g_szChannelTitle[TalkMode])); // ʾƵ + TextOut(m_hdcBackBuffer,TALK_WINDOW_SXI - 26,TALK_WINDOW_SYI,g_szChannelTitle[TalkMode],(int)strlen(g_szChannelTitle[TalkMode])); // 显示频道 #endif TextOut(m_hdcBackBuffer,TALK_WINDOW_SXI,TALK_WINDOW_SYI,szBuffer,(int)strlen(szBuffer)); - // ʾα + // 显示游标 if(bShowCursor){ int x; @@ -254,47 +254,47 @@ void CTalkWindow::DrawSkin(BOOL bShowCursor) void CTalkWindow::AddString(char *szString,int color) { if(m_hTalkWindow){ - // Ϸһʼûִ,ҪȰ m_iline ۼӵ MAX_TALK_WINDOW_LINE Žʾƶ + // 游戏一开始没字串,所以要先把 m_iline 累加到 MAX_TALK_WINDOW_LINE 才进行显示框的移动 if(m_iline <= MAX_TALK_WINDOW_LINE) m_iline++; strcpy(m_pCBLString->ChatBuffer.buffer,szString); m_pCBLString->ChatBuffer.color = color; m_pCBLString->bUse = TRUE; - // Ϸһʼûִ,Ҫ m_iline ֵڵ MAX_TALK_WINDOW_LINE ʱŽʾƶ - // ھ״̬ʱʾƶ + // 游戏一开始都没有字串,所以要当 m_iline 值大于等于 MAX_TALK_WINDOW_LINE 时才进行显示框的移动 + // 正处于卷动状态时不进行显示框的移动 if(!m_bScroll && m_iline > MAX_TALK_WINDOW_LINE){ if(m_pCBLView->next != NULL) m_pCBLView = m_pCBLView->next; else m_pCBLView = m_pCBLHead; } - // ھ״̬ʱʾƶ + // 不处于卷动状态时进行显示框的移动 if(!m_bScroll){ if(m_pCBLViewBottom->next != NULL) m_pCBLViewBottom = m_pCBLViewBottom->next; else m_pCBLViewBottom = m_pCBLHead; } - // m_pCBLString->next ʱ,ʾѵ list β,ָ list ͷ + // 当 m_pCBLString->next 时,表示已到 list 尾,指回 list 头 if(m_pCBLString->next == NULL) m_pCBLString = m_pCBLHead; else m_pCBLString = m_pCBLString->next; } } -// Ͼ +// 上卷 void CTalkWindow::UpArrowHit(BOOL bHit) { m_bUpArrowHit = bHit; if(bHit){ m_bScroll = FALSE; - // m_pCBLView m_pCBLString ,ʾĿǰʾΧû m_pCBLString + // 若 m_pCBLView 和 m_pCBLString 不相等,表示目前显示范围还没超过 m_pCBLString if(m_pCBLView != m_pCBLString){ - // m_pCBLView->prev Ϊ NULL,ʾϾ + // 若 m_pCBLView->prev 为 NULL,表示上卷到底了 if(m_pCBLView->prev == NULL){ - // listβʹõĻ, m_pCBLView ָ m_pCBLTail + // 若list尾部有在使用的话,把 m_pCBLView 指向 m_pCBLTail if(m_pCBLTail->bUse){ m_pCBLView = m_pCBLTail; m_bScroll = TRUE; - m_pCBLViewBottom = m_pCBLViewBottom->prev; // ƶʾ + m_pCBLViewBottom = m_pCBLViewBottom->prev; // 移动显示框 if(m_pCBLViewBottom == NULL) m_pCBLViewBottom = m_pCBLTail; } } - // δ + // 未卷到底 else if(m_pCBLView->prev->bUse){ m_pCBLView = m_pCBLView->prev; m_bScroll = TRUE; @@ -305,25 +305,25 @@ void CTalkWindow::UpArrowHit(BOOL bHit) } } -// ¾ +// 下卷 void CTalkWindow::DownArrowHit(BOOL bHit) { m_bDownArrowHit = bHit; if(bHit){ m_bScroll = FALSE; - // m_pCBLViewBottom m_pCBLString ,ʾĿǰʾΧû m_pCBLString + // 若 m_pCBLViewBottom 和 m_pCBLString 不相等,表示目前显示范围还没超过 m_pCBLString if(m_pCBLViewBottom != m_pCBLString){ - // m_pCBLView->next Ϊ NULL,ʾ¾ + // 若 m_pCBLView->next 为 NULL,表示下卷到底了 if(m_pCBLView->next == NULL){ - // listβʹõĻ, m_pCBLView ָ m_pCBLHead + // 若list尾部有在使用的话,把 m_pCBLView 指向 m_pCBLHead if(m_pCBLTail->bUse){ m_pCBLView = m_pCBLHead; m_bScroll = TRUE; - m_pCBLViewBottom = m_pCBLViewBottom->next; // ƶʾ + m_pCBLViewBottom = m_pCBLViewBottom->next; // 移动显示框 if(m_pCBLViewBottom == NULL) m_pCBLViewBottom = m_pCBLHead; } } - // δ + // 未卷到底 else if(m_pCBLView->next->bUse){ m_pCBLView = m_pCBLView->next; m_bScroll = TRUE; @@ -389,7 +389,7 @@ void CTalkWindow::InitFaceSymbol(COLORREF MaskColor) m_fsFaceSymbol[i].bUse = FALSE; continue; } - hTemp = CopyImage(m_fsFaceSymbol[i].hLoadBMP,IMAGE_BITMAP,SYMBOL_WIDTH,SYMBOL_HEIGHT,LR_COPYDELETEORG); // ԭͼ19 19,ԶС + hTemp = CopyImage(m_fsFaceSymbol[i].hLoadBMP,IMAGE_BITMAP,SYMBOL_WIDTH,SYMBOL_HEIGHT,LR_COPYDELETEORG); // 如果原图比19 19大,则会自动缩小 DeleteObject(m_fsFaceSymbol[i].hLoadBMP); if(hTemp == NULL){ m_fsFaceSymbol[i].bUse = FALSE; @@ -399,15 +399,15 @@ void CTalkWindow::InitFaceSymbol(COLORREF MaskColor) m_fsFaceSymbol[i].hDraw = CreateCompatibleDC(NULL); m_fsFaceSymbol[i].hOldLoadBMP = SelectObject(m_fsFaceSymbol[i].hDraw,m_fsFaceSymbol[i].hLoadBMP); m_fsFaceSymbol[i].hDrawMask = CreateCompatibleDC(m_fsFaceSymbol[i].hDraw); - // ɫͨ͸ͼ + // 产生单色通透图 m_fsFaceSymbol[i].hbmpMaskBMP = CreateBitmap(SYMBOL_WIDTH,SYMBOL_HEIGHT,1,1,NULL); m_fsFaceSymbol[i].hOldMaskBMP = SelectObject(m_fsFaceSymbol[i].hDrawMask,m_fsFaceSymbol[i].hbmpMaskBMP); - // 趨͸ɫ + // 设定透明色 SetBkColor(m_fsFaceSymbol[i].hDraw,MaskColor); SetTextColor(m_fsFaceSymbol[i].hDraw,RGB(0,0,0)); - // ͸Ϊɫ,Ϊɫĵɫͼ + // 产生透明区域为白色,其他区域为黑色的单色图 BitBlt(m_fsFaceSymbol[i].hDrawMask,0,0,SYMBOL_WIDTH,SYMBOL_HEIGHT,m_fsFaceSymbol[i].hDraw,0,0,SRCCOPY); - // ԭͼ͸Ϊɫ,򲻱ͼ + // 把原图换成透明区域为黑色,其他区域不变的图 SetBkColor(m_fsFaceSymbol[i].hDraw,RGB(0,0,0)); SetTextColor(m_fsFaceSymbol[i].hDraw,RGB(255,255,255)); BitBlt(m_fsFaceSymbol[i].hDraw,0,0,SYMBOL_WIDTH,SYMBOL_HEIGHT,m_fsFaceSymbol[i].hDrawMask,0,0,SRCAND); @@ -459,7 +459,7 @@ void CTalkWindow::SetToFaceSymbolString(char *szDestString,ChatBufferLink *pCBL, if(szSourString[i] == m_fsFaceSymbol[j].szSymbol[k]){ k++;iCheck++; if(m_fsFaceSymbol[j].szSymbol[k] == '\0'){ - // ʾͼ x 곬ұ,ѽִƴ뵽һ + // 显示的图 x 座标超过了最右边,把接下来的字串拼入到下一行 if((x + (iStoreX + iSymbolNum) * (FONT_SIZE>>1)) > 610){ if(pCBL->next != NULL){ sprintf_s(szTemp,"%s%s",&szSourString[iStoreX],pCBL->next->ChatBuffer.buffer); @@ -468,11 +468,11 @@ void CTalkWindow::SetToFaceSymbolString(char *szDestString,ChatBufferLink *pCBL, sprintf_s(szTemp,"%s%s",&szSourString[iStoreX],m_pCBLHead->ChatBuffer.buffer); sprintf_s(m_pCBLHead->ChatBuffer.buffer,"%s",szTemp); } - // ԭȵִɶ + // 把原先的字串分离成二行 memcpy(szTemp,szSourString,iStoreX); sprintf_s(szSourString,"%s",szTemp); sprintf_s(pCBL->ChatBuffer.buffer,"%s",szTemp); - // 趨 i Ϊ STR_BUFFER_SIZE + 1 Ϊֱ뿪 i Dz loop + // 设定 i 为 STR_BUFFER_SIZE + 1 是为了直接离开 i 那层 loop i = STR_BUFFER_SIZE + 1; bBreak = TRUE; break; @@ -480,7 +480,7 @@ void CTalkWindow::SetToFaceSymbolString(char *szDestString,ChatBufferLink *pCBL, szDestString[iCount++] = ' '; szDestString[iCount++] = ' '; szDestString[iCount++] = ' '; - // ¼ҪǸλʾ + // 记录要在那个位置显示表情符号 m_ssStoreSymbol[m_iSymbolCount].bUse = TRUE; m_ssStoreSymbol[m_iSymbolCount].hDraw = m_fsFaceSymbol[j].hDraw; m_ssStoreSymbol[m_iSymbolCount].hDrawMask = m_fsFaceSymbol[j].hDrawMask; @@ -516,7 +516,7 @@ void CTalkWindow::ShowFaceSymbol(void) BitBlt(m_hdcBackBuffer,m_ssStoreSymbol[i].x,m_ssStoreSymbol[i].y,SKIN_WIDTH,SKIN_HEIGHT,m_ssStoreSymbol[i].hDrawMask,0,0,SRCAND); BitBlt(m_hdcBackBuffer,m_ssStoreSymbol[i].x,m_ssStoreSymbol[i].y,SKIN_WIDTH,SKIN_HEIGHT,m_ssStoreSymbol[i].hDraw,0,0,SRCPAINT); } - // Ϊ m_ssStoreSymbol ݵIJ˳,ֻҪһ m_ssStoreSymbol bUse Ϊ FALSE Ϳֱ뿪 loop + // 因为 m_ssStoreSymbol 内容的产生是照顺序产生的,所以只要有一个 m_ssStoreSymbol 的 bUse 为 FALSE 就可以直接离开 loop else break; } memset(m_ssStoreSymbol,0,sizeof(m_ssStoreSymbol)); diff --git a/石器时代8.5客户端最新源代码/石器源码/system/test.cpp b/石器时代8.5客户端最新源代码/石器源码/system/test.cpp index 3dcb380..5d90d75 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/test.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/test.cpp @@ -1,4 +1,4 @@ -#include "../systeminc/version.h" +#include "../systeminc/version.h" #include #include "test.h" diff --git a/石器时代8.5客户端最新源代码/石器源码/system/test.h b/石器时代8.5客户端最新源代码/石器源码/system/test.h index e79728d..72c3dcc 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/test.h +++ b/石器时代8.5客户端最新源代码/石器源码/system/test.h @@ -1,2 +1,2 @@ - + void test(char *data); diff --git a/石器时代8.5客户端最新源代码/石器源码/system/testview.cpp b/石器时代8.5客户端最新源代码/石器源码/system/testview.cpp index 330b0c6..f36aea8 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/testview.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/testview.cpp @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* testView.cpp */ /************************/ #include "../systeminc/version.h" @@ -10,33 +10,33 @@ #ifdef _STONDEBUG_ -// ??????????? +// ??????????? extern void hit_mark_critical( ACTION *a0 ); -// ?????????????????? +// 牙?????????????????? void StockDispBufferSprView( int x, int y, UCHAR dispPrio, int bmpNo ) { - // ??V????????????? + // ??卒㎏????????????? DISP_SORT *pDispSort = DispBuffer.DispSort + DispBuffer.DispCnt; DISP_INFO *pDispInfo = DispBuffer.DispInfo + DispBuffer.DispCnt; // ?????????? if( DispBuffer.DispCnt >= DISP_BUFFER_SIZE ) return; - // ?I?????Bl + // 牙?!?????﹨▍ pDispSort->dispPrio = dispPrio; pDispSort->no = DispBuffer.DispCnt; - // ѩ?Bl? ??????? ? + // 牙??﹨▍? ???????? ? pDispInfo->x = x; pDispInfo->y = y; pDispInfo->bmpNo = bmpNo; pDispInfo->hitFlag = 2; - // ???????? + // 牙???????? DispBuffer.DispCnt++; } -/* ??????_???? ********************************************************************/ +/* ??????囝???? ********************************************************************/ void SprViewProc( void ) { char szMoji[ 256 ]; @@ -44,49 +44,49 @@ void SprViewProc( void ) int bmpY; static int bmpNo = 0; int bmpNoBak; - static int no = 0; // ?Ƨk? - static BOOL fontFlag = TRUE; // ??????? - // ????? + static int no = 0; // ?希吻? + static BOOL fontFlag = TRUE; // ????牙??? + // ?希???? int zoubunTbl[] ={ 1, 5, 25, 100, 500, 1000, -1, -5, -25, -100, -500, -1000 }; - static int palNo = 0; // ????k? - static int time = 600; // ????k? + static int palNo = 0; // ????吻? + static int time = 600; // ????吻? - /* ??????k??? */ + /* ??????吻??希? */ switch( SubProcNo ){ case 0: - // ??????????? + // ????????丙????希? //BackBufferDrawType = DRAW_BACK_NON // ??????????? - // ??? + // ??? if( joy_auto[ 0 ] & JOY_RIGHT ) bmpNo += zoubunTbl[ no ]; // ?? if( joy_auto[ 0 ] & JOY_LEFT ) bmpNo -= zoubunTbl[ no ]; - // ???? + // ?希??? if( joy_trg[ 0 ] & JOY_UP ){ no++; if( no >= 6 ) no = 0; // ???????? } - // ????? + // ?希???? if( joy_trg[ 0 ] & JOY_DOWN ){ no--; if( no <= -1 ) no = 5; // ???????? } #if 0 // ????????? - // ??????? + // ??????? if( mouse.onceState & MOUSE_LEFT_CRICK ){ bmpNo += zoubunTbl[ no ]; // ????? play_se( 201, 320, 240 ); } - // ????????? + // ????????? if( GetAsyncKeyState( VK_MBUTTON ) ){ bmpNo += zoubunTbl[ no ]; } - // ???????ƨ? + // ???????希阪? if( mouse.onceState & MOUSE_RIGHT_CRICK ){ //if( mouse.state & MOUSE_RIGHT_CRICK ){ no++; @@ -99,7 +99,7 @@ void SprViewProc( void ) if( bmpNo < 0 ) bmpNo = 0; if( bmpNo >= MAX_GRAPHICS - 25 ) bmpNo = MAX_GRAPHICS -25; - // ????? + // ????阪? if( joy_trg[ 0 ] & JOY_A ){ /* ??? */ palNo--; if( palNo < 0 ) palNo = MAX_PAL - 1; @@ -116,51 +116,51 @@ void SprViewProc( void ) // ???????? play_se( 202, 320, 240 ); } - // ???????? + // ???????阪? if( joy_trg[ 0 ] & JOY_DEL ){ /* ??? */ if( fontFlag ) fontFlag = 0; else fontFlag = 1; - // ?????? + // ?????? play_se( 212, 320, 240 ); } - // ????? + // ????? if( joy_trg[ 0 ] & JOY_ESC ){ /* ???? */ // ???????? WM_CLOSE ?????????? PostMessage( hWnd, WM_CLOSE, 0, 0L ); } - // ???k??????? + // ???吻??????? bmpNoBak = bmpNo; - // ?????????? + // ???希???????希? for( bmpY = 0 ; bmpY < lpDraw->ySize ; bmpY += 96 ){ for( bmpX = 0 ; bmpX < lpDraw->xSize ; bmpX += 128 ){ // ??????????? if( fontFlag == TRUE ){ - // ???k? + // ???吻? wsprintf( szMoji,"%7d", bmpNoBak ); StockFontBuffer( bmpX, bmpY, FONT_PRIO_BACK, 0, szMoji, 0 ); } - // ??????????? + // ???牙???????? StockDispBufferSprView( bmpX, bmpY, 0, bmpNoBak++ ); } } // ??????????? if( fontFlag == TRUE ){ - // ?Ƥ - wsprintf( szMoji, "PAL:%2d ?:%6d", palNo, zoubunTbl[ no ] ); + // ?希牙 + wsprintf( szMoji, "PAL:%2d ?希:%6d", palNo, zoubunTbl[ no ] ); StockFontBuffer( 640 - 16 * 12, 462, FONT_PRIO_FRONT, 0, szMoji, 0 ); - // ? - StockFontBuffer( 4, 462, FONT_PRIO_FRONT, 0, "ESC: X or Y:PAL DEL: ON/OFF", 0 ); + // ?牙 + StockFontBuffer( 4, 462, FONT_PRIO_FRONT, 0, "ESC:賦旰 X or Y:PAL曹載 DEL:恅趼 ON/OFF", 0 ); } /* ????????? */ RunAction(); - // ??????????????? + // ???牙???????????? StockTaskDispBuffer(); - // ????? + // ??丙???? StockBoxDispBuffer( 0, 0, lpDraw->xSize, lpDraw->ySize, DISP_PRIO_BG, SYSTEM_PAL_PURPLE , 1 ); // ???????? @@ -182,13 +182,13 @@ void AnimSpr( ACTION *pAct ) static bool slowFlag = FALSE; static int hitNo = 0; - /* ֢t?? */ + /* ┤?希? */ switch( pAct->state ){ - /* G? */ + /* 二? */ case ACT_STATE_ACT: // ??????? if( slowFlag == FALSE ){ - // ?????k?????? + // ?????吻?阪????? if( joy_auto[ 0 ] & JOY_RIGHT ){ /* ??? */ while( 1 ){ pAct->anim_chr_no++; @@ -209,7 +209,7 @@ void AnimSpr( ACTION *pAct ) } } } - // ?????k????????? + // ?????吻?阪???????? if( joy_trg[ 0 ] & JOY_INS ){ /* ??? */ pAct->anim_chr_no += 1000; while( 1 ){ @@ -232,13 +232,13 @@ void AnimSpr( ACTION *pAct ) } } } - // ?????????????? + // ??????????????? //while( 1 ){ //if( SpriteData[ pAct->anim_chr_no ].ptAnimlist == NULL ) //{ - // ?? + // ??阪? if( joy_auto[ 0 ] & JOY_UP ){ /* ??? */ pAct->anim_ang++; if( pAct->anim_ang >= 8 ) pAct->anim_ang = 0; @@ -248,7 +248,7 @@ void AnimSpr( ACTION *pAct ) if( pAct->anim_ang < 0 ) pAct->anim_ang = 7; } - // ???????k? + // ???????吻?牙 if( joy_trg[ 0 ] & JOY_HOME ){ /* ??? */ pAct->anim_no++; if( pAct->anim_no > 12 ) pAct->anim_no = 12; @@ -258,7 +258,7 @@ void AnimSpr( ACTION *pAct ) if( pAct->anim_no < 0 ) pAct->anim_no = 0; } - // ????? + // ????阪? if( joy_trg[ 0 ] & JOY_A ){ /* ??? */ anim_spd--; if( anim_spd < 0 ) anim_spd = 0; @@ -268,7 +268,7 @@ void AnimSpr( ACTION *pAct ) if( anim_spd >= 255 ) anim_spd = 255; } } - // ????? + // ????? if( joy_trg[ 0 ] & JOY_ESC ){ /* ???? */ // ???????? WM_CLOSE ?????????? PostMessage( hWnd, WM_CLOSE, 0, 0L ); @@ -297,45 +297,45 @@ void AnimSpr( ACTION *pAct ) pattern( pAct, anim_spd, ANM_LOOP ); } - // ???Re?? + // ???刪叉?? if( pAct->anim_hit >= 10000 ){ - hitNo = pAct->anim_hit; // ???Rek??? + hitNo = pAct->anim_hit; // ???刪叉吻??? pAct->anim_hit = 0; // ??? - // ??????? + // ??????? for( d0=5 ;d0>0 ;d0--){ //????????? a1 = GetAction( PRIO_JIKI, sizeof( ATR_EQU ) ); if( a1 == NULL ) return; - /* ?IT */ + /* 牙?!冉 */ ATR_DISP_PRIO(a1) = DISP_PRIO_CHAR + 1; - /* ?????k? */ + /* ?????吻? */ ATR_CHR_NO(a1) = CG_HIT_MARK_22; ATR_H_POS(a1) = 320; ATR_V_POS(a1) = 240; ATR_SPD(a1) = Rnd( 4, 7 ); ATR_CRS(a1) = d0 * 6; - ATR_FIRST_FLG(a1) = ATR_STIMER(a1) = 32; //????? + ATR_FIRST_FLG(a1) = ATR_STIMER(a1) = 32; //牙????? ATR_KAISHIN(a1) = 1; ATR_NAME(a1) = hit_mark_critical; ATR_CHR_NO(a1) = CG_HIT_MARK_01; } } - // ?????k? - wsprintf( szMoji, " = %8d Left or Right ( 1 )", pAct->anim_chr_no ); + // ?????吻?牙 + wsprintf( szMoji, "雄 賒 晤 瘍 = %8d ㄩ Left or Right ( ㊣1 )", pAct->anim_chr_no ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - StockFontBuffer( x + 236, y, FONT_PRIO_FRONT, 0, " DEL or INS ( ?1000 )", 0 ); y += 20; - // ? - wsprintf( szMoji, " = %8d Down or UP", pAct->anim_ang ); + StockFontBuffer( x + 236, y, FONT_PRIO_FRONT, 0, "ㄩ DEL or INS ( ?1000 )", 0 ); y += 20; + // ??牙 + wsprintf( szMoji, "源 砃 = %8d ㄩ Down or UP", pAct->anim_ang ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - // ???????k? - wsprintf( szMoji, " = %8d END or HOME", pAct->anim_no ); + // ???????吻?牙 + wsprintf( szMoji, "雄 釬 晤 瘍 = %8d ㄩ END or HOME", pAct->anim_no ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - // ?Ƥ - wsprintf( szMoji, " = %8d Z or X", anim_spd ); + // ?希牙 + wsprintf( szMoji, "厒 僅 = %8d ㄩ Z or X", anim_spd ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - // ???k? - wsprintf( szMoji, " Ч = %8d", t_music_se_no ); + // ???吻? + wsprintf( szMoji, "秞 虴 晤 瘍 = %8d", t_music_se_no ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; // ?????? if( t_music_se_no != -1 ){ @@ -359,41 +359,41 @@ void AnimSpr( ACTION *pAct ) if( tone_tbl[ t_music_se_no ].voice_note + tone_tbl[ t_music_se_no ].voice_rate <= 0 ) tone_tbl[ t_music_se_no ].voice_note = -tone_tbl[ t_music_se_no ].voice_rate + 1; } // ????? - wsprintf( szMoji, " Ч = %8d F7 or F8", tone_tbl[ t_music_se_no ].voice_volume ); + wsprintf( szMoji, "秞 虴 秞 講 = %8d ㄩ F7 or F8", tone_tbl[ t_music_se_no ].voice_volume ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; // ?????? - wsprintf( szMoji, " Ч = %8d F5 or F6", tone_tbl[ t_music_se_no ].voice_note ); + wsprintf( szMoji, "秞 虴 詢 腴 = %8d ㄩ F5 or F6", tone_tbl[ t_music_se_no ].voice_note ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; }else{ // ????? - wsprintf( szMoji, " Ч = %8d F7 or F8", 0 ); + wsprintf( szMoji, "秞 虴 秞 講 = %8d ㄩ F7 or F8", 0 ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; // ?????? - wsprintf( szMoji, " Ч = %8d F5 or F6", 0 ); + wsprintf( szMoji, "秞 虴 詢 腴 = %8d ㄩ F5 or F6", 0 ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; } - // ???k? - //wsprintf( szMoji, "??? k ? = %8d", pAct->bmpNo ); + // ???吻? + //wsprintf( szMoji, "??? 吻 ? = %8d", pAct->bmpNo ); //StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - // ??? + // ???牙 //wsprintf( szMoji, "??? ??? = %4d,%4d", SpriteInfo[ pAct->bmpNo ].width, SpriteInfo[ pAct->bmpNo ].height ); //StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - // ???Rek? - wsprintf( szMoji, "???Rek? = %8d", hitNo ); + // ???刪叉吻? + wsprintf( szMoji, "???刪叉吻? = %8d", hitNo ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - // ?????C - wsprintf( szMoji, "F12???? F11???? F10???" ); + // ?????。? + wsprintf( szMoji, "F12ㄩ???? F11ㄩ???? F10ㄩ???" ); StockFontBuffer( 8, 460, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - // ? - StockFontBuffer( 530, 460, FONT_PRIO_FRONT, 0, "ESC", 0 ); + // ?牙 + StockFontBuffer( 530, 460, FONT_PRIO_FRONT, 0, "賦旰ㄩESC", 0 ); break; - /* ?? */ + /* ?昀? */ case ACT_STATE_DEAD: DeathAction( pAct ); @@ -402,28 +402,28 @@ void AnimSpr( ACTION *pAct ) } } -/* ????????????? ***********************************************/ +/* ????????????? ***********************************************/ ACTION *MakeAnimSpr( void ) { ACTION *pAct; - /* ?????????K? */ + /* ?????????仕? */ pAct = GetAction( PRIO_JIKI, 0 ); if( pAct == NULL ) return NULL; - /* ??? */ + /* ??? */ pAct->func = AnimSpr; - // anim_tbl.h ?k? + // anim_tbl.h ?吻? pAct->anim_chr_no = SPRSTART; - // h?k? + // 去?吻? pAct->anim_no = 0;//ANIM_ATTACK; // ?????????( ??? )( ??????? ) pAct->anim_ang = 0;//Rnd( 0, 7 ); - // ???? + // ????牙 pAct->atr |= ACT_ATR_HIT_BOX; - /* ?IT */ + /* 牙?!冉 */ pAct->dispPrio = DISP_PRIO_CHAR; - /* ???t */ + /* ???ㄅ */ pAct->x = 320; pAct->y = 360; @@ -433,19 +433,19 @@ ACTION *MakeAnimSpr( void ) return pAct; } -/* ????????_???? ********************************************************************/ +/* ????????囝???? ********************************************************************/ void AnimViewProc( void ) { - /* ??????k??? */ + /* ??????吻??希? */ switch( SubProcNo ){ case 0: - // ????????????? + // ????????????? MakeAnimSpr(); - // Pf????? + // ·卯?????? play_bgm( 1 ); - // ??????k???? + // ??????吻???? SubProcNo++; break; @@ -454,38 +454,38 @@ void AnimViewProc( void ) /* ????????? */ RunAction(); - // ??????????????? + // ???牙???????????? StockTaskDispBuffer(); - // ????? + // ??丙???? StockBoxDispBuffer( 0, 0, lpDraw->xSize, lpDraw->ySize, DISP_PRIO_BG, SYSTEM_PAL_PURPLE , 1 ); break; } } -/* ???_???? ********************************************************************/ +/* ???囝???? ********************************************************************/ void SeTestProc( void ) { char szMoji[ 256 ]; int x = 128, y = 196; static int seNo = 1, bgmFlag; - /* ??????k??? */ + /* ??????吻??希? */ switch( SubProcNo ){ case 0: - // ??????k???? + // ??????吻???? SubProcNo++; break; case 1: - // ????? + // ?????? if( joy_trg[ 0 ] & JOY_A ) play_se( seNo, 320, 240 ); - // ?????????? + // ??????????? if( joy_trg[ 0 ] & JOY_B ){ if( bgmFlag == FALSE ){ bgmFlag = TRUE; @@ -496,7 +496,7 @@ void SeTestProc( void ) } } - // ???k?????? + // ???吻?阪????? if( joy_auto[ 0 ] & JOY_RIGHT ){ /* ??? */ while( 1 ){ seNo++; @@ -531,26 +531,26 @@ void SeTestProc( void ) if( tone_tbl[ seNo ].voice_note + tone_tbl[ seNo ].voice_rate <= 0 ) tone_tbl[ seNo ].voice_note = -tone_tbl[ seNo ].voice_rate + 1; } - // ????? + // ????? if( joy_trg[ 0 ] & JOY_ESC ){ /* ???? */ // ???????? WM_CLOSE ?????????? PostMessage( hWnd, WM_CLOSE, 0, 0L ); } - // ???k? - wsprintf( szMoji, " Ч = %4d Left or Right", seNo ); + // ???吻? + wsprintf( szMoji, "秞 虴 晤 瘍 = %4d ㄩ Left or Right", seNo ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; // ????? - wsprintf( szMoji, " Ч = %4d F7 or F8", tone_tbl[ seNo ].voice_volume ); + wsprintf( szMoji, "秞 虴 秞 講 = %4d ㄩ F7 or F8", tone_tbl[ seNo ].voice_volume ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; // ?????? - wsprintf( szMoji, " Ч = %4d F5 or F6", tone_tbl[ seNo ].voice_note ); + wsprintf( szMoji, "秞 虴 詢 腴 = %4d ㄩ F5 or F6", tone_tbl[ seNo ].voice_note ); StockFontBuffer( x, y, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - // ???????? - wsprintf( szMoji, "Z Ч Xֲ" ); + // ????????? + wsprintf( szMoji, "Zㄩ秞 虴 畦 溫 Xㄩ掖劓秞氈畦溫" ); StockFontBuffer( 16, 460, FONT_PRIO_FRONT, 0, szMoji, 0 ); y += 20; - // ? - StockFontBuffer( 530, 460, FONT_PRIO_FRONT, 0, "ESC", 0 ); + // ?牙 + StockFontBuffer( 530, 460, FONT_PRIO_FRONT, 0, "賦旰ㄩESC", 0 ); break; } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/tool.cpp b/石器时代8.5客户端最新源代码/石器源码/system/tool.cpp index 3709325..3986bd7 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/tool.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/tool.cpp @@ -1,10 +1,10 @@ -#include +#include #include #include #include #include /* WIN32_LEAN_AND_MEAN?define???WINDOWS.H??? -??????????????????????? +?????????希?????????????? ????????????????? */ #define WIN32_LEAN_AND_MEAN #include @@ -50,8 +50,8 @@ BOOL isXP() os.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); if (GetVersionEx((OSVERSIONINFO *)&os)) { - //ݰ汾Ϣжϲϵͳ - switch (os.dwMajorVersion){ //ж汾 + //狟醱跦擂唳掛陓洘瓚剿紱釬炵苀靡備 + switch (os.dwMajorVersion){ //瓚剿翋唳掛瘍 case 4: return FALSE; case 5: @@ -86,7 +86,7 @@ unsigned int TimeGetTime(void) static int copyStringUntilDelim(unsigned char *, char delim, int, unsigned char *); -// ?????????t?????????? +// ??更???????ㄅ?????????? int wordchk(char **pp) { char *p = *pp; @@ -113,7 +113,7 @@ int wordchk(char **pp) } -// ?????????????????????h +// ??更????????希???????????去 int getword(char **pp, char *q) { int i = 0; @@ -173,7 +173,7 @@ void freadline( char *ptbuf, FILE *fp ) #endif -// ????i????????????h?? +// ?更???可?????更???刺????去?? int strstr2(char **pp, char *q) { char *p = *pp; @@ -194,7 +194,7 @@ int strstr2(char **pp, char *q) } -// ?????????????????k????? +// ??更????????希???????π???刺?? int strint2(char **pp) { char moji[1024] = ""; @@ -207,7 +207,7 @@ int strint2(char **pp) } -// ????????????????long??k????? +// ??更????????希??????long??π???刺?? long strlong2(char **pp) { char moji[1024] = ""; @@ -219,9 +219,9 @@ long strlong2(char **pp) return atol(moji); } -// ????S??????????? -// ??kNULL?? ... ?????????? -// NULL ... ???Z??? +// ??更??Π??????????刺? +// ??πㄩNULL?? ... ??更???????? +// NULL ... 更???Ψ??? inline unsigned char *searchDelimPoint(unsigned char *src, unsigned char delim) { unsigned char *pt = src; @@ -233,10 +233,10 @@ inline unsigned char *searchDelimPoint(unsigned char *src, unsigned char delim) if (*pt < 0x80) { - // 1bayte???? + // 1bayte更???? if (*pt == delim) { - // ?????????????????? + // ??更???????????????刺? pt++; return pt; } @@ -244,7 +244,7 @@ inline unsigned char *searchDelimPoint(unsigned char *src, unsigned char delim) } else { - // 2byte???? + // 2byte更???? pt++; if (*pt == '\0') return (unsigned char *)0; @@ -255,18 +255,18 @@ inline unsigned char *searchDelimPoint(unsigned char *src, unsigned char delim) /* - ???????????????????????e??????????? + ????更???????????????????叉????????更??? ?????????? - char *src : ????? + char *src : ???更?? char delim : ???? int count : ???????????????? - int maxlen : out ??????????? - char *out : ? + int maxlen : out ???????更????? + char *out : ? - ??k 0???????? - 1:??Z???? + ??π 0ㄩ???????? + 1:更??Ψ???? */ int getStringToken(char *src, char delim, int count, int maxlen, char *out) { @@ -294,15 +294,15 @@ int getStringToken(char *src, char delim, int count, int maxlen, char *out) /* - ????????????????????????????? + 更????更????更????????????????????? - char *src : ???? + char *src : ??更?? char delim : ???? - int maxlen : ??????? - char *out : ? + int maxlen : ???????? + char *out : ? - ??k 0???????? - 1:??Z???? + ??π 0ㄩ???????? + 1:更??Ψ???? */ static int copyStringUntilDelim(unsigned char *src, char delim, int maxlen, unsigned char *out) @@ -313,37 +313,37 @@ static int copyStringUntilDelim(unsigned char *src, char delim, { if (src[i] < 0x80) { - // 1byte???? + // 1byte更???? if (src[i] == delim) { - // ???????? + // ??更?????? out[i] = '\0'; return 0; } - // ???????? + // ???更????? out[i] = src[i]; - // Z????? + // Ψ更????? if (out[i] == '\0') return 1; } else { - // 2byte???? + // 2byte更???? - // ???????? + // ???更????? out[i] = src[i]; i++; - if (i >= maxlen) // ??????????? + if (i >= maxlen) // ???????????? break; - // ???????? + // ???更????? out[i] = src[i]; - // Z??????????????????? + // Ψ更??????????????????? if (out[i] == '\0') return 1; } @@ -356,13 +356,13 @@ static int copyStringUntilDelim(unsigned char *src, char delim, /* - ???????intk?????? + ???????intπ?????? - char *src : ????? - char delim: ????????? + char *src : ???更?? + char delim: ???????更?? int count :????????? ?????????? - return value : k + return value : π */ int getIntegerToken(char *src, char delim, int count) @@ -380,11 +380,11 @@ int getIntegerToken(char *src, char delim, int count) /* double??????????? - char *src : ????? - char delim: ????????? + char *src : ???更?? + char delim: ???????更?? int count :????????? ?????????? - return value: k + return value: π */ double getDoubleToken(char *src, char delim, int count) { @@ -397,9 +397,9 @@ double getDoubleToken(char *src, char delim, int count) /* - chop??(UNIX????) + chop??(UNIX??更??) - char *src : ????? ?????????????? + char *src : ??更??? ????????乖??????? */ void chop(char *src) @@ -420,12 +420,12 @@ void chop(char *src) /* -int?????????? +int??????????? -int *a : ?????? -int siz : ????? +int *a : ??????? +int siz : ?????? int count : ??????????? -???????????? +????????????? */ void shiftIntArray(int *a, int siz, int count) { @@ -442,7 +442,7 @@ void shiftIntArray(int *a, int siz, int count) } -// 62???int???? +// 62更???int?阪??? // 0-9,a-z(10-35),A-Z(36-61) int a62toi(char *a) { @@ -472,13 +472,13 @@ int a62toi(char *a) /* - ???????intk?????? + ???????intπ?????? - char *src : ????? - char delim: ????????? + char *src : ???更?? + char delim: ???????更?? int count :????????? ?????????? - return value : k + return value : π */ int getInteger62Token(char *src, char delim, int count) @@ -494,11 +494,11 @@ int getInteger62Token(char *src, char delim, int count) /* - ???????????{???? + 更???更??????更???坊???? - char *s1 : ??? - char *s2 : ??? - int len : ?{???? + char *s1 : 更??? + char *s2 : 更??? + int len : ??坊?更??? */ @@ -536,8 +536,8 @@ RECT intToRect(int left, int top, int right, int bottom) /***************************************************************** - ?????????????1?\????????? - 0???SJIS?? + ???????更??????1?兝?更???????? + 0?刺??SJIS?? ******************************************************************/ int isOnlySpaceChars(char *data) { @@ -571,10 +571,10 @@ int isOnlySpaceChars(char *data) /**************************** - ????????V??? + 更?????????向??? buffer: ???? - string: V???? - whereToinsert: ???V??? + string: ?向??更?? + whereToinsert: ????向??? ****************************/ void insertString(char *buffer, char *string, int whereToInsert) { @@ -595,10 +595,10 @@ void insertString(char *buffer, char *string, int whereToInsert) /**************************** - ???????V??? + 更????????向??? buffer: ???? - character: V???? - whereToinsert: ???V??? + character: ?向??更?? + whereToinsert: ????向??? ****************************/ void insertChar(char *buffer, char character, int whereToInsert) { @@ -632,8 +632,8 @@ static EscapeChar escapeChar[] = }; -// ???????GЧ???? -// ??kGЧ?(?????????????????) +// ?????更??二更???? +// ??πㄩ二更?(?????更?????????更??刺?) char makeCharFromEscaped(char c) { int i; @@ -653,11 +653,11 @@ char makeCharFromEscaped(char c) /*---------------------------------------- - * makeEscapeString???????????? + * makeEscapeString?????更??????? * ?? - * src char* ????????????v?? - * ?k - * src ???(???V??????????) + * src char* ????更????????▔?? + * 刺?π + * src ?刺??(???向??????????) ----------------------------------------*/ char *makeStringFromEscaped(char *src) { @@ -693,11 +693,11 @@ char *makeStringFromEscaped(char *src) /*---------------------------------------- * ???????? * ?? - * src char* ?????? - * dest char* ?????????? + * src char* ????更?? + * dest char* ????????更?? * sizeofdest int dest ? ??? - * ?k - * dest ???(???V??????????) + * 刺?π + * dest ?刺??(???向??????????) ----------------------------------------*/ char *makeEscapeString(char *src, char *dest, int sizeofdest) { @@ -744,12 +744,12 @@ char *makeEscapeString(char *src, char *dest, int sizeofdest) ????????? by Jun ***************************************************************/ /* -char *src ????adress -int srclen ????src???? +char *src ????adress +int srclen ????src????? int keystring ???????????? -char *encoded ????????????t?????????? -int *encodedlen ???????????????????? -int maxencodedlen ?????????? +char *encoded ????????更????宇?????????? +int *encodedlen ????????更????????????? +int maxencodedlen ???????????? */ void jEncode(char *src, int srclen, int key, char *encoded, int *encodedlen, int maxencodedlen) @@ -759,8 +759,8 @@ void jEncode(char *src, int srclen, int key, if (srclen + 1 > maxencodedlen) { - // ????????? 1 ???? - // ????????????????O???????? + // ?????????? 1 ???? + // ????????????????Μ???????? *encodedlen = maxencodedlen; for (i = 0; i < (*encodedlen); i++) { @@ -775,7 +775,7 @@ void jEncode(char *src, int srclen, int key, for (i = 0; i < srclen; i++) { sum = sum + src[i]; - // Id??7?????2????????????T + // !卡??7??????2?????????????劫? if (((key % 7) == (i % 5)) || ((key % 2) == (i % 2))) { src[i] = ~src[i]; @@ -788,7 +788,7 @@ void jEncode(char *src, int srclen, int key, encoded[i] = src[i] + sum*((i*i) % 3); // ????????? } else - // key%srclen??t?u??????????t? + // key%srclen??ㄅ?「??????????ㄅ? if (abs((key%srclen)) == i) { encoded[i] = sum; @@ -805,10 +805,10 @@ void jEncode(char *src, int srclen, int key, /* char *src ????????? -int srclen ??????????????? -int key ????????i??? -char *decoded ??????????? -int *decodedlen ??????????? +int srclen ???????????????? +int key ????????可??? +char *decoded ???????更???? +int *decodedlen ???????更????? */ void jDecode(char *src, int srclen, int key, char *decoded, int *decodedlen) { @@ -849,17 +849,17 @@ bool GetMacAddress(char *strMac) AdapterInfoSize = 0; Err = GetAdaptersInfo(NULL, &AdapterInfoSize); if ((Err != 0) && (Err != ERROR_BUFFER_OVERFLOW)){ - //TRACE("Ϣʧܣ"); + //TRACE("鳳腕厙縐陓洘囮啖ㄐ"); return FALSE; } - // Ϣڴ + // 煦饜厙縐陓洘囀湔 pAdapterInfo = (PIP_ADAPTER_INFO)GlobalAlloc(GPTR, AdapterInfoSize); if (pAdapterInfo == NULL){ - //TRACE("Ϣڴʧ"); + //TRACE("煦饜厙縐陓洘囀湔囮啖"); return FALSE; } if (GetAdaptersInfo(pAdapterInfo, &AdapterInfoSize) != 0){ - //TRACE(_T("Ϣʧܣ\n")); + //TRACE(_T("鳳腕厙縐陓洘囮啖ㄐ\n")); GlobalFree(pAdapterInfo); return FALSE; } diff --git a/石器时代8.5客户端最新源代码/石器源码/system/unpack.cpp b/石器时代8.5客户端最新源代码/石器源码/system/unpack.cpp index c547168..7274e23 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/unpack.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/system/unpack.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include "../systeminc/version.h" @@ -220,7 +220,7 @@ unsigned char *encoder( unsigned char *buf, unsigned char **disBuf, l = header->size; } else - // ??????? + // ??????? { header->compressFlag = 0; header->size = (int)wBuf + width * height + sizeof( RD_HEADER ); @@ -258,7 +258,7 @@ unsigned char *decoder( unsigned char *buf, unsigned char **disBuf, } width = header->width; height = header->height; - if( header->compressFlag == 0 ){//û + if( header->compressFlag == 0 ){//羶樓躇 wBuf1 = wBuf; buf1 = buf+sizeof( RD_HEADER ); el = width * height; @@ -282,7 +282,7 @@ unsigned char *decoder( unsigned char *buf, unsigned char **disBuf, } return wBuf; #endif - }else{// + }else{//樓躇 eBuf = buf + header->size; ewBuf = wBuf + width * height; wBuf1 = wBuf; diff --git a/石器时代8.5客户端最新源代码/石器源码/system/vssver.scc b/石器时代8.5客户端最新源代码/石器源码/system/vssver.scc index e3025c8..bd4eb06 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/vssver.scc +++ b/石器时代8.5客户端最新源代码/石器源码/system/vssver.scc @@ -1 +1 @@ -4 \ No newline at end of file +4 \ No newline at end of file diff --git a/石器时代8.5客户端最新源代码/石器源码/system/zconf.h b/石器时代8.5客户端最新源代码/石器源码/system/zconf.h index ec93af6..99d3c61 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/zconf.h +++ b/石器时代8.5客户端最新源代码/石器源码/system/zconf.h @@ -1,4 +1,4 @@ -/* zconf.h -- configuration of the zlib compression library +/* zconf.h -- configuration of the zlib compression library * Copyright (C) 1995-2012 Jean-loup Gailly. * For conditions of distribution and use, see copyright notice in zlib.h */ diff --git a/石器时代8.5客户端最新源代码/石器源码/system/zlib.h b/石器时代8.5客户端最新源代码/石器源码/system/zlib.h index 3e0c767..96f4338 100644 --- a/石器时代8.5客户端最新源代码/石器源码/system/zlib.h +++ b/石器时代8.5客户端最新源代码/石器源码/system/zlib.h @@ -1,4 +1,4 @@ -/* zlib.h -- interface of the 'zlib' general purpose compression library +/* zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/BinLoad.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/BinLoad.h index 31ce0fd..8e8c017 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/BinLoad.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/BinLoad.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "../systeminc/version.h" diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/CharSignDay.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/CharSignDay.h index 7d5a1eb..568614b 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/CharSignDay.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/CharSignDay.h @@ -1,7 +1,7 @@ -void ǩڳʼ(char * str); -ACTION* ǩ(); -ACTION* ǩʾ(); -void ǩ״̬(int ״̬); +void 签到窗口初始化(char * str); +ACTION* 创建签到窗口(); +ACTION* 签到数据显示(); +void 置签到状态(int 状态); diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/EncryptClient.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/EncryptClient.h index e106025..cf74f27 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/EncryptClient.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/EncryptClient.h @@ -1,4 +1,4 @@ -#ifndef ENCRYPTCLIENT_H +#ifndef ENCRYPTCLIENT_H #define ENCRYPTCLIENT_H #include @@ -22,7 +22,7 @@ protected: public: CEncryptCode() { - //* ELSE㷨ֻͬΪǿԣ) + //* 与下面ELSE算法相同,只为加强复杂性:) unsigned char nCode = fst1; int i; for(i = 0; i < 256; i++) @@ -44,7 +44,7 @@ protected: } unsigned char m_bufEncrypt1[256]; unsigned char m_bufEncrypt2[256]; - }m_cGlobalEncrypt; //??? Ӧijɾ̬ijԱԽԼԴ + }m_cGlobalEncrypt; //??? 应改成静态共享的成员对象,以节约资源 }; template ::Encrypt(unsigned if(!bMove) { - // ָָ + // 恢复指针 m_nPos1 = nOldPos1; m_nPos2 = nOldPos2; } diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/SDLDraw.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/SDLDraw.h index c2bc3d4..6efe242 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/SDLDraw.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/SDLDraw.h @@ -1,5 +1,5 @@ -/* - SDL Ⱦ +/* + SDL 馺竘 create by xiezi date 2015/8/16 */ diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/Turntable.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/Turntable.h index b1fd641..862d9cf 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/Turntable.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/Turntable.h @@ -1,7 +1,7 @@ -#ifndef _ICONBUTTONS_ -void ת̴ڳʼ(char * ); -ACTION* ת̴(); -ACTION* תʾ(); -void ת(int ѡ); +#ifndef _ICONBUTTONS_ +void 转盘窗口初始化(char * 内容); +ACTION* 创建转盘窗口(); +ACTION* 转盘数据显示(); +void 置转盘数据(int 选中索引); #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/VMProtectSDK.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/VMProtectSDK.h index 068899a..abbab35 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/VMProtectSDK.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/VMProtectSDK.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #ifdef _WIN64 #pragma comment(lib, "VMProtectSDK64.lib") diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/action.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/action.h index 6720227..a01b3c6 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/action.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/action.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* action.h */ /************************/ #ifndef _ACTION_H_ @@ -6,75 +6,75 @@ #include "version.h" #include "../newproto/autil.h" -//˳ +//处理优先顺序 enum{ - PRIO_TOP, // + PRIO_TOP, //最优先 - PRIO_CHR, //ͬChar + PRIO_CHR, //同Char PRIO_BG, /* ?? */ - PRIO_JIKI, /* ? */ - PRIO_ENEMY, /* */ - PRIO_ENEMY_TAMA, /* d */ - PRIO_JIKI_TAMA, /* ?d */ + PRIO_JIKI, /* ? */ + PRIO_ENEMY, /*  */ + PRIO_ENEMY_TAMA, /*  */ + PRIO_JIKI_TAMA, /* ? */ PRIO_ITEM, /* ???? */ PRIO_BOSS, /* ?? */ PRIO_GAME_OVER, /* GAME OVER */ - PRIO_BTM = 255 /* ?? */ + PRIO_BTM = 255 /* ?? */ }; -//Action״̬ +//Action状态 enum{ - ACT_STATE_ACT = 0, //ͨ״̬ - ACT_STATE_DEAD //״̬ + ACT_STATE_ACT = 0, //通常状态 + ACT_STATE_DEAD //死亡状态 }; -// -#define ACT_ATR_HIDE ( 1 << 1 ) // ʾ/* */ -#define ACT_ATR_HIT ( 1 << 2 ) // Աѡ/* ???Re?? */ -#define ACT_ATR_HIT_BOX ( 1 << 3 ) // Աѡ/* ???Re + ???? */ -#define ACT_ATR_INFO ( 1 << 4 ) // ʾѶϢ/* ?????? */ -#define ACT_ATR_HIDE2 ( 1 << 5 ) // ʾ + Աѡ/* +???Re?? */ -#define ACT_ATR_BTL_CMD_END ( 1 << 6 ) // սָ,δһᶯ,򲻻ᶯ/* Pf????V????? */ -#define ACT_ATR_TYPE_PC ( 1 << 7 ) // /* ?? */ -#define ACT_ATR_TYPE_OTHER_PC ( 1 << 8 ) // /* \??? */ +//属性 +#define ACT_ATR_HIDE ( 1 << 1 ) // 不显示/*  */ +#define ACT_ATR_HIT ( 1 << 2 ) // 可以被点选/* ????? */ +#define ACT_ATR_HIT_BOX ( 1 << 3 ) // 可以被点选的外框/* ??? + ???? */ +#define ACT_ATR_INFO ( 1 << 4 ) // 显示出相关讯息/* ?????? */ +#define ACT_ATR_HIDE2 ( 1 << 5 ) // 不显示 + 可以被点选/* +????? */ +#define ACT_ATR_BTL_CMD_END ( 1 << 6 ) // 战斗指令输入完成旗标,未完成输入的玩家会动,完成则不会动/* ????????? */ +#define ACT_ATR_TYPE_PC ( 1 << 7 ) // 玩家/* ?? */ +#define ACT_ATR_TYPE_OTHER_PC ( 1 << 8 ) // 别的玩家/* ??? */ #define ACT_ATR_TYPE_PET ( 1 << 9 ) /* ??? */ #define ACT_ATR_TYPE_ITEM ( 1 << 10 ) /* ???? */ #define ACT_ATR_TYPE_GOLD ( 1 << 11 ) /* ?? */ -#define ACT_ATR_TYPE_OTHER ( 1 << 12 ) /* ??\???????Y? */ -#define ACT_ATR_HIT_BOX_ALL1 ( 1 << 13 ) // Աѡ + ʾ1 -#define ACT_ATR_HIT_BOX_ALL2 ( 1 << 14 ) // Աѡ + ʾ2 -#define ACT_ATR_HIT_BOX_ALL3 ( 1 << 15 ) // Աѡ + ʾ3 -#define ACT_ATR_HIT_BOX_ALL4 ( 1 << 16 ) // Աѡ + ʾ3 +#define ACT_ATR_TYPE_OTHER ( 1 << 12 ) /* ??????伡???? */ +#define ACT_ATR_HIT_BOX_ALL1 ( 1 << 13 ) // 可以被点选 + 外框显示1 +#define ACT_ATR_HIT_BOX_ALL2 ( 1 << 14 ) // 可以被点选 + 外框显示2 +#define ACT_ATR_HIT_BOX_ALL3 ( 1 << 15 ) // 可以被点选 + 外框显示3 +#define ACT_ATR_HIT_BOX_ALL4 ( 1 << 16 ) // 可以被点选 + 外框显示3 #define ACT_ATR_TRAVEL ( 1 << 17 ) /* ??? */ -#define ACT_ATR_HIT_BOX_COL1 ( 1 << 18 ) // ϵһ -#define ACT_ATR_HIT_BOX_COL2 ( 1 << 19 ) // ϵڶ -#define ACT_ATR_HIT_BOX_COL3 ( 1 << 20 ) // µһ -#define ACT_ATR_HIT_BOX_COL4 ( 1 << 21 ) // µڶ -#define ACT_ATR_HIT_BOX_COL5 ( 1 << 22 ) // ϵһ -#define ACT_ATR_HIT_BOX_COL6 ( 1 << 23 ) // ϵڶ -#define ACT_ATR_HIT_BOX_COL7 ( 1 << 24 ) // µһ -#define ACT_ATR_HIT_BOX_COL8 ( 1 << 25 ) // µڶ +#define ACT_ATR_HIT_BOX_COL1 ( 1 << 18 ) // 左上第一列 +#define ACT_ATR_HIT_BOX_COL2 ( 1 << 19 ) // 左上第二列 +#define ACT_ATR_HIT_BOX_COL3 ( 1 << 20 ) // 右下第一列 +#define ACT_ATR_HIT_BOX_COL4 ( 1 << 21 ) // 右下第二列 +#define ACT_ATR_HIT_BOX_COL5 ( 1 << 22 ) // 左上第一列 +#define ACT_ATR_HIT_BOX_COL6 ( 1 << 23 ) // 左上第二列 +#define ACT_ATR_HIT_BOX_COL7 ( 1 << 24 ) // 右下第一列 +#define ACT_ATR_HIT_BOX_COL8 ( 1 << 25 ) // 右下第二列 -/* ??????Bl **********************************************************/ +/* ?????? **********************************************************/ struct action{ - struct action *pPrev, *pNext; //һһactionָ - void ( *func )( struct action * ); //actionִеfunctionָ - void *pYobi; //õstructָ - void *pOther; //;structָ - UCHAR prio; //actionʱ˳ - UCHAR dispPrio; //ͼʱ˳ - int x, y; //ͼ - int hitDispNo; //ǷĿ - BOOL deathFlag; //actionǷ - int dx, dy; //ͼλ - int dir; // - int delta; //ϳ + struct action *pPrev, *pNext; //上一个及下一个action指标 + void ( *func )( struct action * ); //action所执行的function的指标 + void *pYobi; //备用的struct指标 + void *pOther; //其它用途struct指标 + UCHAR prio; //action处理时的优先顺序 + UCHAR dispPrio; //秀图时的优先顺序 + int x, y; //图的座标 + int hitDispNo; //是否命中目标编号 + BOOL deathFlag; //此action是否死亡旗标 + int dx, dy; //秀图座标位移量 + int dir; //方向 + int delta; //合成向量 - char name[ 29 ]; // + char name[ 29 ]; //名字 char freeName[ 33 ]; //free name int hp; #ifdef _PET_ITEM @@ -85,50 +85,50 @@ struct action{ int maxMp; int level; int status; - int itemNameColor; /* ?????q? */ - int charNameColor; // ????????????q? + int itemNameColor; /* ?????? */ + int charNameColor; // ????????????? - int bmpNo; //ͼ - int bmpNo_bak; //ͼ - int atr; // - int state; //״̬ - int actNo; //ж + int bmpNo; //图号 + int bmpNo_bak; //备份图号 + int atr; //属性 + int state; //状态 + int actNo; //行动编号 int damage; - int gx, gy; //Ŀǰĵͼϵ - int nextGx, nextGy; //һ - int bufGx[10], bufGy[10]; //Ŀǰ굽һ֮buffer - short bufCount; //趨ĿǰҪߵһ - short walkFlag; // ?????????????v????????? - float mx, my; //ͼ - float vx, vy; // ?h? + int gx, gy; //在目前的地图上的座标 + int nextGx, nextGy; //下一个座标 + int bufGx[10], bufGy[10]; //从目前座标到下一个座标之间座标的buffer + short bufCount; //设定目前要走到那一个座标 + short walkFlag; // ?????????????????????? + float mx, my; //地图座标 + float vx, vy; // ?? -// - short earth; // N - short water; // ? N - short fire; // ? N - short wind; // ? N -//raderʹ - int dirCnt; // ??????? -//geminiʹ - int spd; //ƶٶ(0~63)( ?????? ) - int crs; //(0~31)(ϷΪ0,˳ʱӷ) ?( ???? )( ?????? ) - int h_mini; // ?? - int v_mini; // ? -//patternʹ - int anim_chr_no; //ı(anim_tbl.hı) - int anim_chr_no_bak; //һε - int anim_no; //Ķ - int anim_no_bak; //һε - int anim_ang; //ķ(0~7)(0) - int anim_ang_bak; //һεķ - int anim_cnt; //ڼframe - int anim_frame_cnt; //frameͣʱ - int anim_x; //X(Sprbin+Adrnbin) - int anim_y; //Y(Sprbin+Adrnbin) - int anim_hit; // ???Re +//属性 + short earth; // 佋  + short water; // ?  + short fire; // ?  + short wind; // ?  +//rader使用 + int dirCnt; // ??????? +//gemini使用 + int spd; //移动的速度(0~63)( ?????? ) + int crs; //方向(0~31)(正上方为0,顺时钟方向) ?( ???? )( ?????? ) + int h_mini; // ?? + int v_mini; // ? +//pattern使用 + int anim_chr_no; //人物的编号(anim_tbl.h的编号) + int anim_chr_no_bak; //上一次的人物编号 + int anim_no; //人物的动作编号 + int anim_no_bak; //上一次的人物编号 + int anim_ang; //动作的方向(0~7)(下0) + int anim_ang_bak; //上一次的方向 + int anim_cnt; //第几张frame + int anim_frame_cnt; //这张frame停留时间 + int anim_x; //X座标(Sprbin+Adrnbin) + int anim_y; //Y座标(Sprbin+Adrnbin) + int anim_hit; // ??? // shan add +1 - char fmname[33]; // + char fmname[33]; // 家族名称 // Robin 0728 ride Pet int onRide; char petName[16+1]; @@ -160,22 +160,22 @@ struct action{ #endif #ifdef _SKILL_ROAR - int petRoar; //() + int petRoar; //大吼(克年兽) #endif -#ifdef _SKILL_SELFEXPLODE //Ա +#ifdef _SKILL_SELFEXPLODE //自爆 int petSelfExplode; #endif -#ifdef _MAGIC_DEEPPOISION //綾 +#ifdef _MAGIC_DEEPPOISION //剧毒 int petDeepPoision; #endif -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 int profession_class; #endif -//#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +//#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 int warrioreffect; //#endif -#ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _GM_IDENTIFY // Rog ADD GM识别 char gm_name[33]; #endif #ifdef _STREET_VENDOR @@ -189,11 +189,11 @@ struct action{ int saveride; #endif #ifdef _MOUSE_DBL_CLICK - int index; // !! Serverеcharaindex + int index; // 禁断!! Server中的charaindex #endif #ifdef _SFUMATO - int sfumato; // Ⱦͼɫ + int sfumato; // 二次渲染图层色彩 #endif }; @@ -203,7 +203,7 @@ typedef struct action ACTION; extern ACTION *pActTop; extern ACTION *pActBtm; -/* ?????? */ +/* ?????? */ extern ACTION *pJiki; #ifdef _STONDEBUG_ @@ -211,7 +211,7 @@ extern ACTION *pJiki; extern int ActCnt; #endif -/* ?????????K? *****************************************************/ +/* ?????????? *****************************************************/ ACTION *GetAction( UCHAR prio, UINT yobiSize ); /* ??????????? *****************************************************/ @@ -220,16 +220,16 @@ void InitAction( void ); /* ????????? *********************************************************/ void RunAction( void ); -/* ????????????************************************************/ +/* ????????????************************************************/ void DeathAction( ACTION *pAct ); -/* u??????? *******************************************************/ +/* ??????? *******************************************************/ void DeathAllAction( void ); -/* ???????????u? ***********************************************/ +/* ???????????? ***********************************************/ void ClearAction( ACTION *pAct ); -/* ???????? *********************************************************/ +/* ???????? *********************************************************/ void EndAction( void ); #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/anim_tbl.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/anim_tbl.h index 769829b..2cb02b2 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/anim_tbl.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/anim_tbl.h @@ -1,94 +1,94 @@ -#ifndef _ANIM_TBL_H_ +#ifndef _ANIM_TBL_H_ #define _ANIM_TBL_H_ #include "../other/anim_tbl_set.h" -/*ʯרͼ ӣԣң*/ +/*石器7.0专案新增图号 START*/ -#define CG_DROPWND 35322 //26195ͼ ȷ +#define CG_DROPWND 35322 //26195图有误 丢弃宠物确认 -#define CG_PKSERVER_BTN_UP 26193 // ѡȡϵťUp -#define CG_PKSERVER_BTN_DOWN 26194 // ѡȡϵťDown -#define CG_STATUS_DETAIL 26387 // ״̬ϸť -#define CG_AUCWND_DETAIL 26381 // ϸӴ -#define CG_AUCWND_MESSAGE 26382 // ѶϢӴ -#define CG_AUCWND_COLUMN 26383 // ר -#define CG_AUCWND_CHANGE 26384 // Ӵ -#define CG_AUCWND_DETAIL2 26385 // ϸӴ2 +#define CG_PKSERVER_BTN_UP 26193 // 选取星系人物钮Up +#define CG_PKSERVER_BTN_DOWN 26194 // 选取星系人物钮Down +#define CG_STATUS_DETAIL 26387 // 状态明细钮 +#define CG_AUCWND_DETAIL 26381 // 拍卖明细视窗 +#define CG_AUCWND_MESSAGE 26382 // 拍卖讯息视窗 +#define CG_AUCWND_COLUMN 26383 // 拍卖专栏 +#define CG_AUCWND_CHANGE 26384 // 拍卖交换视窗 +#define CG_AUCWND_DETAIL2 26385 // 拍卖明细视窗2 -#define CG_BATTLE_ATT_DOWN 26361 // սťDown -#define CG_BATTLE_ATT_UP 26362 // սťUp -#define CG_BATTLE_HELP_DOWN 26363 // սťDown -#define CG_BATTLE_HELP_UP 26364 // սťUp -#define CG_BATTLE_DEF_DOWN 26365 // սťDown -#define CG_BATTLE_DEF_UP 26366 // սťUp -#define CG_BATTLE_JUJUTSU_DOWN 26367 // սťDown -#define CG_BATTLE_JUJUTSU_UP 26368 // սťUp -#define CG_BATTLE_PANEL 26369 // սװ -#define CG_BATTLE_ESCAPE_DOWN 26370 // սťDown -#define CG_BATTLE_ESCAPE_UP 26371 // սťUp -#define CG_BATTLE_PET_DOWN 26372 // սťDown -#define CG_BATTLE_PET_UP 26373 // սťUp -#define CG_BATTLE_CAPTURE_DOWN 26374 // ս׽ťDown -#define CG_BATTLE_CAPTURE_UP 26375 // ս׽ťUp -#define CG_BATTLE_ITEM_DOWN 26376 // սťDown -#define CG_BATTLE_ITEM_UP 26377 // սťUp -#define CG_BATTLE_PROSKL_DOWN 26378 // սťDown -#define CG_BATTLE_PROSKL_UP 26379 // սťUp +#define CG_BATTLE_ATT_DOWN 26361 // 战斗攻击钮Down +#define CG_BATTLE_ATT_UP 26362 // 战斗攻击钮Up +#define CG_BATTLE_HELP_DOWN 26363 // 战斗求救钮Down +#define CG_BATTLE_HELP_UP 26364 // 战斗求救钮Up +#define CG_BATTLE_DEF_DOWN 26365 // 战斗防御钮Down +#define CG_BATTLE_DEF_UP 26366 // 战斗防御钮Up +#define CG_BATTLE_JUJUTSU_DOWN 26367 // 战斗咒术钮Down +#define CG_BATTLE_JUJUTSU_UP 26368 // 战斗咒术钮Up +#define CG_BATTLE_PANEL 26369 // 战斗底板 +#define CG_BATTLE_ESCAPE_DOWN 26370 // 战斗逃跑钮Down +#define CG_BATTLE_ESCAPE_UP 26371 // 战斗逃跑钮Up +#define CG_BATTLE_PET_DOWN 26372 // 战斗宠物钮Down +#define CG_BATTLE_PET_UP 26373 // 战斗宠物钮Up +#define CG_BATTLE_CAPTURE_DOWN 26374 // 战斗捕捉钮Down +#define CG_BATTLE_CAPTURE_UP 26375 // 战斗捕捉钮Up +#define CG_BATTLE_ITEM_DOWN 26376 // 战斗道具钮Down +#define CG_BATTLE_ITEM_UP 26377 // 战斗道具钮Up +#define CG_BATTLE_PROSKL_DOWN 26378 // 战斗技能钮Down +#define CG_BATTLE_PROSKL_UP 26379 // 战斗技能钮Up -#define CG_FIELD_SKILL_TILE 26354 // ְҵܵװ -#define CG_FIELD_SKILL_ADVSK 26355 // ְҵܽ׼ť -#define CG_FIELD_SKILL_BATTLE 26357 // ְҵܽսť -#define CG_FIELD_SKILL_ASSIT 26356 // ְҵܽ渨ť +#define CG_FIELD_SKILL_TILE 26354 // 职业技能底板 +#define CG_FIELD_SKILL_ADVSK 26355 // 职业技能介面进阶技能钮 +#define CG_FIELD_SKILL_BATTLE 26357 // 职业技能介面战斗技能钮 +#define CG_FIELD_SKILL_ASSIT 26356 // 职业技能介面辅助技能钮 -#define CG_FIELD_SKILL_MENU 26358 // ϰť -#define CG_FIELD_SKILL_BTN_OFF 26360 // ְҵťOFF -#define CG_FIELD_SKILL_BTN_ON 26361 // ְҵťON +#define CG_FIELD_SKILL_MENU 26358 // 新左上按钮面板 +#define CG_FIELD_SKILL_BTN_OFF 26360 // 职业技能钮OFF +#define CG_FIELD_SKILL_BTN_ON 26361 // 职业技能钮ON -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ -#define CG_FIELD_CHATROOM_BTN_ON 26453 //ϰť -#define CG_FIELD_CHATROOM_BTN_OFF 26454 //ϰť -#define CG_FIELD_CLOSE_BTN_UP 26444 //ҹرհť -#define CG_FIELD_CLOSE_BTN_DOWN 26445 //ҹرհť -#define CG_FIELD_CHANGECHIEF_BTN_UP 26435 //Ҹҳť -#define CG_FIELD_CHANGECHIEF_BTN_DOWN 26436 //Ҹҳť -#define CG_FIELD_CHANGECHIEF_BTN_DISABLE 26437 //Ҹҳť -#define CG_FIELD_OUTMEMBER_BTN_UP 26432 // -#define CG_FIELD_OUTMEMBER_BTN_DOWN 26433 // -#define CG_FIELD_OUTMEMBER_BTN_DISABLE 26434 // -#define CG_FIELD_LEAVE_BTN_UP 26441 //뿪ť -#define CG_FIELD_LEAVE_BTN_DOWN 26442 //뿪ť -#define CG_FIELD_DELETE_BTN_UP 26438 //ɾ -#define CG_FIELD_DELETE_BTN_DOWN 26439 //ɾ -#define CG_FIELD_DELETE_BTN_DISABLE 26440 //ɾ -#define CG_FIELD_AGREE_BTN 26091 //ͬⰴť -#define CG_FIELD_DISAGREE_BTN 26092 //񶨰ť -#define CG_FIELD_CHANNEL_MENU 26452 //ϰť -#define CG_FIELD_CHANNEL_SCROLL 26447 // -#define CG_FIELD_SCROLL_HUP 26448 // -#define CG_FIELD_SCROLL_HDOWN 26449 // -#define CG_FIELD_SCROLL_LUP 26450 // -#define CG_FIELD_SCROLL_LDOWN 26451 // +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 +#define CG_FIELD_CHATROOM_BTN_ON 26453 //聊天室左上按钮 +#define CG_FIELD_CHATROOM_BTN_OFF 26454 //聊天室左上按钮 +#define CG_FIELD_CLOSE_BTN_UP 26444 //聊天室关闭按钮 +#define CG_FIELD_CLOSE_BTN_DOWN 26445 //聊天室关闭按钮 +#define CG_FIELD_CHANGECHIEF_BTN_UP 26435 //聊天室更换室长按钮 +#define CG_FIELD_CHANGECHIEF_BTN_DOWN 26436 //聊天室更换室长按钮 +#define CG_FIELD_CHANGECHIEF_BTN_DISABLE 26437 //聊天室更换室长按钮 +#define CG_FIELD_OUTMEMBER_BTN_UP 26432 //聊天室踢人 +#define CG_FIELD_OUTMEMBER_BTN_DOWN 26433 //聊天室踢人 +#define CG_FIELD_OUTMEMBER_BTN_DISABLE 26434 //聊天室踢人 +#define CG_FIELD_LEAVE_BTN_UP 26441 //聊天离开按钮 +#define CG_FIELD_LEAVE_BTN_DOWN 26442 //聊天离开按钮 +#define CG_FIELD_DELETE_BTN_UP 26438 //删除聊天室 +#define CG_FIELD_DELETE_BTN_DOWN 26439 //删除聊天室 +#define CG_FIELD_DELETE_BTN_DISABLE 26440 //删除聊天室 +#define CG_FIELD_AGREE_BTN 26091 //聊天同意按钮 +#define CG_FIELD_DISAGREE_BTN 26092 //聊天否定按钮 +#define CG_FIELD_CHANNEL_MENU 26452 //新左上按钮面板 +#define CG_FIELD_CHANNEL_SCROLL 26447 //卷轴 +#define CG_FIELD_SCROLL_HUP 26448 //卷轴 +#define CG_FIELD_SCROLL_HDOWN 26449 //卷轴 +#define CG_FIELD_SCROLL_LUP 26450 //卷轴 +#define CG_FIELD_SCROLL_LDOWN 26451 //卷轴 #endif #ifdef _STREET_VENDOR -#define CG_FIELD_SV_BTN_OFF 35227 // ϰ̯ܰ() -#define CG_FIELD_SV_BTN_ON 35226 // ϰ̯ܰ() -#define CG_FIELD_SV_BUY_PANEL 35240 // ̯() +#define CG_FIELD_SV_BTN_OFF 35227 // 左上摆摊功能按键关(绿) +#define CG_FIELD_SV_BTN_ON 35226 // 左上摆摊功能按键开(红) +#define CG_FIELD_SV_BUY_PANEL 35240 // 摆摊介面(买方) #endif #ifdef _TEACHER_SYSTEM -#define CG_FIELD_TS_BTN_OFF 28555 // еʦܰ() -#define CG_FIELD_TS_BTN_ON 28554 // еʦܰ() +#define CG_FIELD_TS_BTN_OFF 28555 // 功能列导师功能按键关(绿) +#define CG_FIELD_TS_BTN_ON 28554 // 功能列导师功能按键关(红) #define CG_FIELD_TS_LEFT_MENU 28553 #endif -#ifdef _TIMEBAR_FUNCTION //ʱBARʽ -#define CG_TIMEBAR_PANEL 26350 //ʱbarĿ -#define CG_TIMEBAR_UNIT 26428 //ʱĵλ +#ifdef _TIMEBAR_FUNCTION //时间BAR函式 +#define CG_TIMEBAR_PANEL 26350 //时间bar的框 +#define CG_TIMEBAR_UNIT 26428 //时间条的单位 #endif -#ifdef _NEWPANEL //Syu ADD 7.0 ״̬ +#ifdef _NEWPANEL //Syu ADD 7.0 新人物状态介面 #define CG_NEW_STATUS_SKILL_BTN_UP 26312 #ifdef _MAG_MENU #define CG_SKILL_TABLE 26473 @@ -103,28 +103,28 @@ #define CG_HUNTER_ICON_SMALL 29286 #endif -//#define CG_NEWITEM_WND 26349 // װλӴ(֡) -#ifdef _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ -#define CG_TRADE_SEAL 26330 // ӡ -#define CG_TRADE_SCROLL_UP 26331 // ׾ϼͷ -#define CG_TRADE_SCROLL_DOWN 26332 // ׾¼ͷ -#define CG_TRADE_SCROLL_BTN 26333 // ׾ҷť -#define CG_TRADE_DEF_LINE 26334 // Ӵ -#define CG_TRADE_LV_LINE 26335 // Ӵȼ -#define CG_TRADE_LINE 26336 // Ӵ -#define CG_TRADE_DEX_LINE 26337 // Ӵٶ -#define CG_TRADE_ATK_LINE 26338 // Ӵ -#define CG_TRADE_SK1_LINE 26339 // Ӵܣ -#define CG_TRADE_SK2_LINE 26340 // Ӵܣ -#define CG_TRADE_SK3_LINE 26341 // Ӵܣ -#define CG_TRADE_SK4_LINE 26342 // Ӵܣ -#define CG_TRADE_SK5_LINE 26343 // Ӵܣ -#define CG_TRADE_SK6_LINE 26344 // Ӵܣ -#define CG_TRADE_SK7_LINE 26345 // Ӵܣ -#define CG_TRADE_HP_LINE 26346 // ӴѪ -#define CG_TRADE_VIEW_BTN 26347 // Ӵť -#define CG_TRADE_BACK_BTN 26348 // Ӵť -#define CG_TRADE_TALK_WND 26350 // ׶ԻӴ +//#define CG_NEWITEM_WND 26349 // 人物装备栏位视窗(左手、脚) +#ifdef _TRADESYSTEM2 // (不可开) Syu ADD 新交易系统 +#define CG_TRADE_SEAL 26330 // 交易印章 +#define CG_TRADE_SCROLL_UP 26331 // 交易卷轴上箭头 +#define CG_TRADE_SCROLL_DOWN 26332 // 交易卷轴下箭头 +#define CG_TRADE_SCROLL_BTN 26333 // 交易卷轴拖曳钮 +#define CG_TRADE_DEF_LINE 26334 // 检视视窗防御线 +#define CG_TRADE_LV_LINE 26335 // 检视视窗等级线 +#define CG_TRADE_LINE 26336 // 检视视窗名字线 +#define CG_TRADE_DEX_LINE 26337 // 检视视窗速度线 +#define CG_TRADE_ATK_LINE 26338 // 检视视窗攻击线 +#define CG_TRADE_SK1_LINE 26339 // 检视视窗技能1 +#define CG_TRADE_SK2_LINE 26340 // 检视视窗技能2 +#define CG_TRADE_SK3_LINE 26341 // 检视视窗技能3 +#define CG_TRADE_SK4_LINE 26342 // 检视视窗技能4 +#define CG_TRADE_SK5_LINE 26343 // 检视视窗技能5 +#define CG_TRADE_SK6_LINE 26344 // 检视视窗技能6 +#define CG_TRADE_SK7_LINE 26345 // 检视视窗技能7 +#define CG_TRADE_HP_LINE 26346 // 检视视窗血量线 +#define CG_TRADE_VIEW_BTN 26347 // 交易视窗检视钮 +#define CG_TRADE_BACK_BTN 26348 // 检视视窗返回钮 +#define CG_TRADE_TALK_WND 26350 // 交易对话视窗 #endif /* @@ -136,168 +136,168 @@ #define CG_BATTLE_CAPTURE_UP 26516 */ /* -#define SPR_bloodbug 101623 //Ѫ ( Wiz ) -#define SPR_bthunder 101624 // ( Wiz ) -#define SPR_bugnet 101625 //ѱ ( Hunter ) -#define SPR_lightning 101626 // ( War ) -#define SPR_redsmoke 101627 // ( ) -#define SPR_sthunder 101628 // ( Wiz ) -#define SPR_track 101629 //׷Ѱ ( Hunter ) -#define SPR_trap 101630 // ( Hunter ) -#define SPR_shieldattack 101631 //ܻ ( War ) -#define SPR_shieldattack2 101632 //ܻ ( War ) ҷ -#define SPR_bloodsucker 101633 //һѪ ( Wiz ) -#define SPR_bstorm 101634 // ( Wiz ) ұ -#define SPR_bstorm2 101635 // ( Wiz ) -#define SPR_concentrate 101636 //רעս ( War ) -#define SPR_deadattach 101637 // ( War ) -#define SPR_dodge 101638 //ر ( War ) -#define SPR_doom 101639 //ĩ ( Wiz ) ҷ -#define SPR_doom2 101640 //ĩ ( Wiz ) -#define SPR_dragonbreath 101641 //ǹ ( Wiz ) -#define SPR_dragonbreath2 101642 //ǹ ( Wiz ) ҷ -#define SPR_encloseghost 101643 // ( Wiz ) ҷ -#define SPR_encloseghost2 101644 // ( Wiz ) -#define SPR_energycollect 101645 //ۼ ( War ) -#define SPR_fireresist1 101646 //濹 ( Hunter ) ų -#define SPR_fireresist2 101647 //濹 ( Hunter ) -#define SPR_icearrow 101648 // ( Wiz ) -#define SPR_icearrow2 101649 // ( Wiz ) ҷ -#define SPR_iceexplode 101650 // ( Wiz ) ҷ -#define SPR_iceexplode2 101651 // ( Wiz ) -#define SPR_icemirror 101652 // ( Wiz ) -#define SPR_iceresist1 101653 // ( Hunter ) ų -#define SPR_iceresist2 101654 // ( Hunter ) -#define SPR_lgyration 101655 // ( War ) -#define SPR_lgyration1 101656 // ( War ) -#define SPR_lgyration2 101657 // ( War ) ǰ -#define SPR_lightresist1 101658 //翹 ( Hunter ) ų -#define SPR_lightresist2 101659 //翹 ( Hunter ) -#define SPR_lpentrate1 101660 //ᴩ ( War ) ҷķ -#define SPR_lpentrate2 101661 //ᴩ ( War ) -#define SPR_lpentrate3 101662 //ᴩ ( War ) -#define SPR_lpentrate4 101663 //ᴩ ( War ) -#define SPR_lpentrate5 101664 //ᴩ ( War ) -#define SPR_lpentrate6 101665 //ᴩ ( War ) -#define SPR_poisonresist1 101666 //綾 ( Hunter ) ų -#define SPR_poisonresist2 101667 //綾 ( Hunter ) -#define SPR_rgyration 101668 // ( War ) -#define SPR_rgyration1 101669 // ( War ) -#define SPR_rgyration2 101670 // ( War ) -#define SPR_rpentrate1 101671 //ᴩ ( War ) 󷽵ķ -#define SPR_rpentrate2 101672 //ᴩ ( War ) -#define SPR_rpentrate3 101673 //ᴩ ( War ) -#define SPR_rpentrate4 101674 //ᴩ ( War ) -#define SPR_rpentrate5 101675 //ᴩ ( War ) -#define SPR_rpentrate6 101676 //ᴩ ( War ) -#define SPR_storm 101677 //ѩ ( Wiz ) ҷ -#define SPR_storm2 101678 //ѩ ( Wiz ) -#define SPR_violent 101679 // ( War ) -#define SPR_waterdrop 101680 //ˮ״̬ -#define SPR_weakness 101681 //㹥 ( Hunter ) -#define SPR_root 101682 // ( Hunter ) -#define SPR_net 101683 //޵ ( Hunter ) -#define SPR_boomattack 101684 // ( War ) -#define SPR_superthunder 101685 // Lv10 ( Wiz ) -#define SPR_volspring1 101686 //ɽȪ ( Wiz ) -#define SPR_volspring2 101687 //ɽȪ ( Wiz ) -#define SPR_volspring3 101688 //ɽȪ ( Wiz ) -#define SPR_bloodthirsty1 101689 //Ѫ Lv10 ( Wiz ) -#define SPR_bloodthirsty2 101690 //Ѫ Lv7 ( Wiz ) -#define SPR_bloodthirsty3 101691 //Ѫ Lv4 ( Wiz ) -#define SPR_bloodthirsty4 101692 //Ѫ Lv1 ( Wiz ) -#define SPR_lfireplanet 101693 // ( Wiz ) -#define SPR_rfireplanet 101694 // ( Wiz ) ҷ -#define SPR_tree 101695 //λλ ( Wiz ) -#define SPR_trap1 101696 // -#define SPR_wizuse 101697 //ʦʹ -#define SPR_hunteruse 101698 //ʹ -#define SPR_fireattack 101699 //幥 -#define SPR_iceattack 101700 //幥 -#define SPR_lightattack 101701 //׸幥 -101705 ˮ -101706 纣 -101707 ˮ𺣲 -101708 غ -101709 ط -101710 -101711 ˮ׾ -101712 ˮ׾ -101713 شè -101714 è -101715 ˮ ( δ ) -101716 纣 ( δ ) -101717 սʿ -101718 ˮսʿ -101719 Сè -101720 ˮСè -101721 ͷ -101722 ͷ -101723 ɡ ( δ ) -101724 ˮɡ ( δ ) -101725 ʨӵˮ -101726 ʨˮ -101727 ʨӻ -101728 ʨӷ -101729 +#define SPR_bloodbug 101623 //噬血蛊 ( Wiz ) +#define SPR_bthunder 101624 //电流术 ( Wiz ) +#define SPR_bugnet 101625 //驯服宠物 ( Hunter ) +#define SPR_lightning 101626 //暴击击中 ( War ) +#define SPR_redsmoke 101627 //红烟雾 ( 不详 ) +#define SPR_sthunder 101628 //召雷术 ( Wiz ) +#define SPR_track 101629 //追寻敌踪 ( Hunter ) +#define SPR_trap 101630 //陷阱 ( Hunter ) +#define SPR_shieldattack 101631 //盾击 ( War ) 攻击左方 +#define SPR_shieldattack2 101632 //盾击 ( War ) 攻击右方 +#define SPR_bloodsucker 101633 //一针见血 ( Wiz ) +#define SPR_bstorm 101634 //暴风雨 大 ( Wiz ) 攻击右边 +#define SPR_bstorm2 101635 //暴风雨 大 ( Wiz ) 攻击左边 +#define SPR_concentrate 101636 //专注战斗 ( War ) +#define SPR_deadattach 101637 //濒死攻击 ( War ) +#define SPR_dodge 101638 //回避 ( War ) +#define SPR_doom 101639 //世界末日 ( Wiz ) 攻击右方 +#define SPR_doom2 101640 //世界末日 ( Wiz ) 攻击左方 +#define SPR_dragonbreath 101641 //火龙枪 ( Wiz ) 攻击左方 +#define SPR_dragonbreath2 101642 //火龙枪 ( Wiz ) 攻击右方 +#define SPR_encloseghost 101643 //附身术 ( Wiz ) 攻击右方 +#define SPR_encloseghost2 101644 //附身术 ( Wiz ) 攻击左方 +#define SPR_energycollect 101645 //能量聚集 ( War ) +#define SPR_fireresist1 101646 //火焰抗性 ( Hunter ) 放出 +#define SPR_fireresist2 101647 //火焰抗性 ( Hunter ) 收 +#define SPR_icearrow 101648 //冰箭术 ( Wiz ) 攻击左方 +#define SPR_icearrow2 101649 //冰箭术 ( Wiz ) 攻击右方 +#define SPR_iceexplode 101650 //冰爆术 ( Wiz ) 攻击右方 +#define SPR_iceexplode2 101651 //冰爆术 ( Wiz ) 攻击左方 +#define SPR_icemirror 101652 //冰镜术 ( Wiz ) +#define SPR_iceresist1 101653 //冰冻抗性 ( Hunter ) 放出 +#define SPR_iceresist2 101654 //冰冻抗性 ( Hunter ) 收 +#define SPR_lgyration 101655 //回旋攻击 ( War ) 放 +#define SPR_lgyration1 101656 //回旋攻击 ( War ) 后排 +#define SPR_lgyration2 101657 //回旋攻击 ( War ) 前排 +#define SPR_lightresist1 101658 //闪电抗性 ( Hunter ) 放出 +#define SPR_lightresist2 101659 //闪电抗性 ( Hunter ) 中 +#define SPR_lpentrate1 101660 //贯穿攻击 ( War ) 攻击右方的放 +#define SPR_lpentrate2 101661 //贯穿攻击 ( War ) +#define SPR_lpentrate3 101662 //贯穿攻击 ( War ) +#define SPR_lpentrate4 101663 //贯穿攻击 ( War ) +#define SPR_lpentrate5 101664 //贯穿攻击 ( War ) +#define SPR_lpentrate6 101665 //贯穿攻击 ( War ) +#define SPR_poisonresist1 101666 //剧毒抗性 ( Hunter ) 放出 +#define SPR_poisonresist2 101667 //剧毒抗性 ( Hunter ) 收 +#define SPR_rgyration 101668 //回旋攻击 ( War ) +#define SPR_rgyration1 101669 //回旋攻击 ( War ) +#define SPR_rgyration2 101670 //回旋攻击 ( War ) +#define SPR_rpentrate1 101671 //贯穿攻击 ( War ) 攻击左方的放 +#define SPR_rpentrate2 101672 //贯穿攻击 ( War ) +#define SPR_rpentrate3 101673 //贯穿攻击 ( War ) +#define SPR_rpentrate4 101674 //贯穿攻击 ( War ) +#define SPR_rpentrate5 101675 //贯穿攻击 ( War ) +#define SPR_rpentrate6 101676 //贯穿攻击 ( War ) +#define SPR_storm 101677 //暴风雪 ( Wiz ) 攻击右方 +#define SPR_storm2 101678 //暴风雪 ( Wiz ) 攻击左方 +#define SPR_violent 101679 //激化攻击 ( War ) +#define SPR_waterdrop 101680 //水滴状态 +#define SPR_weakness 101681 //弱点攻击 ( Hunter ) +#define SPR_root 101682 //树根缠绕 ( Hunter ) +#define SPR_net 101683 //天罗地网 ( Hunter ) +#define SPR_boomattack 101684 //暴击 ( War ) +#define SPR_superthunder 101685 //召雷术 Lv10 ( Wiz ) +#define SPR_volspring1 101686 //火山泉 大 ( Wiz ) +#define SPR_volspring2 101687 //火山泉 大 ( Wiz ) +#define SPR_volspring3 101688 //火山泉 大 ( Wiz ) +#define SPR_bloodthirsty1 101689 //嗜血成性 Lv10 ( Wiz ) +#define SPR_bloodthirsty2 101690 //嗜血成性 Lv7 ( Wiz ) +#define SPR_bloodthirsty3 101691 //嗜血成性 Lv4 ( Wiz ) +#define SPR_bloodthirsty4 101692 //嗜血成性 Lv1 ( Wiz ) +#define SPR_lfireplanet 101693 //火星球 ( Wiz ) 攻击左方 +#define SPR_rfireplanet 101694 //火星球 ( Wiz ) 攻击右方 +#define SPR_tree 101695 //移形换位 ( Wiz ) +#define SPR_trap1 101696 //陷阱 +#define SPR_wizuse 101697 //法师使用 +#define SPR_hunteruse 101698 //猎人使用 +#define SPR_fireattack 101699 //火附体攻击 +#define SPR_iceattack 101700 //冰附体攻击 +#define SPR_lightattack 101701 //雷附体攻击 +101705 水火海豚 +101706 风海豚 +101707 水火海参 +101708 风地海参 +101709 风地飞鱼 +101710 火风飞鱼 +101711 水火白鲸 +101712 地水白鲸 +101713 风地大熊猫 +101714 火风大熊猫 +101715 地水海星 ( 未更新 ) +101716 火风海星 ( 未更新 ) +101717 风地龙战士 +101718 水火龙战士 +101719 火风小熊猫 +101720 水火小熊猫 +101721 火风三头蛇 +101722 风地三头蛇 +101723 火风伞蜥蜴 ( 未更新 ) +101724 地水伞蜥蜴 ( 未更新 ) +101725 狮子地水 +101726 狮子水火 +101727 狮子火风 +101728 狮子风地 +101729 蜥蜴 */ -/*ʯרͼ ţΣ */ +/*石器7.0专案新增图号 END */ -#define SPRSTART 100000 // SPR???????k? +#define SPRSTART 100000 // SPR???????? // ??? -#define SPR_001em 100000 // ?i? +#define SPR_001em 100000 // ??  #define SPR_001ax 100001 // ? -#define SPR_001cl 100002 // ??S +#define SPR_001cl 100002 // ?? #define SPR_001sp 100003 // ? #define SPR_001bw 100004 // ? -#define SPR_002em 100005 // ?i? +#define SPR_002em 100005 // ??  #define SPR_002ax 100006 // ? -#define SPR_002cl 100007 // ??S +#define SPR_002cl 100007 // ?? #define SPR_002sp 100008 // ? #define SPR_002bw 100009 // ? -#define SPR_003em 100010 // ?i? +#define SPR_003em 100010 // ??  #define SPR_003ax 100011 // ? -#define SPR_003cl 100012 // ??S +#define SPR_003cl 100012 // ?? #define SPR_003sp 100013 // ? #define SPR_003bw 100014 // ? -#define SPR_004em 100015 // ?i? +#define SPR_004em 100015 // ??  #define SPR_004ax 100016 // ? -#define SPR_004cl 100017 // ??S +#define SPR_004cl 100017 // ?? #define SPR_004sp 100018 // ? #define SPR_004bw 100019 // ? -#define SPR_011em 100020 // g? +#define SPR_011em 100020 // ?  #define SPR_011ax 100021 // ? -#define SPR_011cl 100022 // ??S +#define SPR_011cl 100022 // ?? #define SPR_011sp 100023 // ? #define SPR_011bw 100024 // ? -#define SPR_012em 100025 // g? +#define SPR_012em 100025 // ?  #define SPR_012ax 100026 // ? -#define SPR_012cl 100027 // ??S +#define SPR_012cl 100027 // ?? #define SPR_012sp 100028 // ? #define SPR_012bw 100029 // ? -#define SPR_013em 100030 // g? +#define SPR_013em 100030 // ?  #define SPR_013ax 100031 // ? -#define SPR_013cl 100032 // ??S +#define SPR_013cl 100032 // ?? #define SPR_013sp 100033 // ? #define SPR_013bw 100034 // ? -#define SPR_014em 100035 // g? +#define SPR_014em 100035 // ?  #define SPR_014ax 100036 // ? -#define SPR_014cl 100037 // ??S +#define SPR_014cl 100037 // ?? #define SPR_014sp 100038 // ? #define SPR_014bw 100039 // ? -#define SPR_021em 100040 // g? +#define SPR_021em 100040 // ?  #define SPR_021ax 100041 // ? -#define SPR_021cl 100042 // ??S +#define SPR_021cl 100042 // ?? #define SPR_021sp 100043 // ? #define SPR_021bw 100044 // ? @@ -319,9 +319,9 @@ #define SPR_024sp 100058 #define SPR_024bw 100059 -#define SPR_031em 100060 // g? +#define SPR_031em 100060 // ?  #define SPR_031ax 100061 // ? -#define SPR_031cl 100062 // ??S +#define SPR_031cl 100062 // ?? #define SPR_031sp 100063 // ? #define SPR_031bw 100064 // ? @@ -343,9 +343,9 @@ #define SPR_034sp 100078 #define SPR_034bw 100079 -#define SPR_041em 100080 // g? +#define SPR_041em 100080 // ?  #define SPR_041ax 100081 // ? -#define SPR_041cl 100082 // ??S +#define SPR_041cl 100082 // ?? #define SPR_041sp 100083 // ? #define SPR_041bw 100084 // ? @@ -367,9 +367,9 @@ #define SPR_044sp 100098 #define SPR_044bw 100099 -#define SPR_051em 100100 // g? +#define SPR_051em 100100 // ?  #define SPR_051ax 100101 // ? -#define SPR_051cl 100102 // ??S +#define SPR_051cl 100102 // ?? #define SPR_051sp 100103 // ? #define SPR_051bw 100104 // ? @@ -391,9 +391,9 @@ #define SPR_054sp 100118 #define SPR_054bw 100119 -#define SPR_061em 100120 // ??? +#define SPR_061em 100120 // ???  #define SPR_061ax 100121 // ? -#define SPR_061cl 100122 // ??S +#define SPR_061cl 100122 // ?? #define SPR_061sp 100123 // ? #define SPR_061bw 100124 // ? @@ -415,9 +415,9 @@ #define SPR_064sp 100138 #define SPR_064bw 100139 -#define SPR_071em 100140 // ??? +#define SPR_071em 100140 // ???  #define SPR_071ax 100141 // ? -#define SPR_071cl 100142 // ??S +#define SPR_071cl 100142 // ?? #define SPR_071sp 100143 // ? #define SPR_071bw 100144 // ? @@ -439,9 +439,9 @@ #define SPR_074sp 100158 #define SPR_074bw 100159 -#define SPR_081em 100160 // ?? +#define SPR_081em 100160 // ??  #define SPR_081ax 100161 // ? -#define SPR_081cl 100162 // ??S +#define SPR_081cl 100162 // ?? #define SPR_081sp 100163 // ? #define SPR_081bw 100164 // ? @@ -463,9 +463,9 @@ #define SPR_084sp 100178 #define SPR_084bw 100179 -#define SPR_091em 100180 // ?? +#define SPR_091em 100180 // ??  #define SPR_091ax 100181 // ? -#define SPR_091cl 100182 // ??S +#define SPR_091cl 100182 // ?? #define SPR_091sp 100183 // ? #define SPR_091bw 100184 // ? @@ -487,9 +487,9 @@ #define SPR_094sp 100198 #define SPR_094bw 100199 -#define SPR_101em 100200 // ?? +#define SPR_101em 100200 // ??  #define SPR_101ax 100201 // ? -#define SPR_101cl 100202 // ??S +#define SPR_101cl 100202 // ?? #define SPR_101sp 100203 // ? #define SPR_101bw 100204 // ? @@ -511,9 +511,9 @@ #define SPR_104sp 100218 #define SPR_104bw 100219 -#define SPR_111em 100220 // ?? +#define SPR_111em 100220 // ??  #define SPR_111ax 100221 // ? -#define SPR_111cl 100222 // ??S +#define SPR_111cl 100222 // ?? #define SPR_111sp 100223 // ? #define SPR_111bw 100224 // ? @@ -536,7 +536,7 @@ #define SPR_114bw 100239 -// ???????? +// ???????? #define SPR_pet001 100250 // ??? #define SPR_pet002 100251 // ???? #define SPR_pet003 100252 // ?????? @@ -709,77 +709,77 @@ #define SPR_pet333 100386 // ????? #define SPR_pet334 100387 // ?????? -// ?D???? +// ????? #define SPR_pet005 100388 // ?? #define SPR_pet085 100389 // ?????? -#define SPR_pet086 100390 // ???? +#define SPR_pet086 100390 // ???? #define SPR_pet087 100391 // ????????? #define SPR_pet088 100392 // ?????????? -#define SPR_pet065 100393 // ?N??? -#define SPR_pet095 100394 // ?N????? -#define SPR_pet175 100395 // ?N???? -#define SPR_pet255 100396 // ?N????? +#define SPR_pet065 100393 // ???? +#define SPR_pet095 100394 // ?????? +#define SPR_pet175 100395 // ????? +#define SPR_pet255 100396 // ?????? -// ?D????????? -#define SPR_121em 100400 // ???? +// ?????????? +#define SPR_121em 100400 // ????  #define SPR_121ax 100401 // ? -#define SPR_121cl 100402 // ?S +#define SPR_121cl 100402 // ? #define SPR_121sp 100403 // ? #define SPR_121bw 100404 // ? -#define SPR_122em 100405 // ???? +#define SPR_122em 100405 // ????  #define SPR_122ax 100406 // ? -#define SPR_122cl 100407 // ?S +#define SPR_122cl 100407 // ? #define SPR_122sp 100408 // ? #define SPR_122bw 100409 // ? -#define SPR_123em 100410 // ???? +#define SPR_123em 100410 // ????  #define SPR_123ax 100411 // ? -#define SPR_123cl 100412 // ?S +#define SPR_123cl 100412 // ? #define SPR_123sp 100413 // ? #define SPR_123bw 100414 // ? -#define SPR_124em 100415 // ???? +#define SPR_124em 100415 // ????  #define SPR_124ax 100416 // ? -#define SPR_124cl 100417 // ?S +#define SPR_124cl 100417 // ? #define SPR_124sp 100418 // ? #define SPR_124bw 100419 // ? -#define SPR_131em 100420 // ???? +#define SPR_131em 100420 // ????  #define SPR_131ax 100421 // ? -#define SPR_131cl 100422 // ?S +#define SPR_131cl 100422 // ? #define SPR_131sp 100423 // ? #define SPR_131bw 100424 // ? -#define SPR_132em 100425 // ???? +#define SPR_132em 100425 // ????  #define SPR_132ax 100426 // ? -#define SPR_132cl 100427 // ?S +#define SPR_132cl 100427 // ? #define SPR_132sp 100428 // ? #define SPR_132bw 100429 // ? #define SPR_pet315 100430 // ?????? -#define SPR_141em 100431 // ????? +#define SPR_141em 100431 // ?????  #define SPR_141ax 100432 // ? -#define SPR_141cl 100433 // ?S +#define SPR_141cl 100433 // ? #define SPR_141sp 100434 // ? #define SPR_141bw 100435 // ? -#define SPR_142em 100436 // ????? +#define SPR_142em 100436 // ?????  #define SPR_142ax 100437 // ? -#define SPR_142cl 100438 // ?S +#define SPR_142cl 100438 // ? #define SPR_142sp 100439 // ? #define SPR_142bw 100440 // ? -#define SPR_133em 100441 // ???? +#define SPR_133em 100441 // ????  #define SPR_133ax 100442 // ? -#define SPR_133cl 100443 // ?S +#define SPR_133cl 100443 // ? #define SPR_133sp 100444 // ? #define SPR_133bw 100445 // ? -#define SPR_151em 100446 // ??? +#define SPR_151em 100446 // ???  #define SPR_151ax 100447 // ? -#define SPR_151cl 100448 // ??S +#define SPR_151cl 100448 // ?? #define SPR_151sp 100449 // ? #define SPR_151bw 100450 // ? @@ -789,9 +789,9 @@ #define SPR_152sp 100454 #define SPR_152bw 100455 -#define SPR_161em 100456 // ??? +#define SPR_161em 100456 // ???  #define SPR_161ax 100457 // ? -#define SPR_161cl 100458 // ??S +#define SPR_161cl 100458 // ?? #define SPR_161sp 100459 // ? #define SPR_161bw 100460 // ? @@ -801,7 +801,7 @@ #define SPR_162sp 100464 #define SPR_162bw 100465 -//? ?? ????? +//? ?? ????? #define SPR_mwood1 100466 #define SPR_mwood2 100467 #define SPR_mwood3 100468 @@ -809,53 +809,53 @@ #define SPR_mstone2 100470 #define SPR_mstone3 100471 -//???????? +//???????? #define SPR_leader 100500 // ?????????????? -#define SPR_star 100501 // ??????????? +#define SPR_star 100501 // ??????????? #define SPR_boomerang 100502 // ????????????? -#define SPR_stonebomb 100503 // ?????????? +#define SPR_stonebomb 100503 // ?????????? #define SPR_ono 100504 // ?????????? #define SPR_onokage 100505 // ????????????? -#define SPR_isiware 100506 // ????????? -#define SPR_mail 100507 // ??????????? +#define SPR_isiware 100506 // ????????? +#define SPR_mail 100507 // ??????????? //????? -#define SPR_stone 100550 // ?????? +#define SPR_stone 100550 // ?????? #define SPR_shock 100551 // ??????? #define SPR_drunk 100552 // ??????? -#define SPR_sleep 100553 // ?????? +#define SPR_sleep 100553 // ?????? #define SPR_conf 100554 // ??????? -#define SPR_poison 100555 // ????? -#define SPR_zokusei 100556 // Nͨ?????? +#define SPR_poison 100555 // ????? +#define SPR_zokusei 100556 // ?????? #ifdef _MAGIC_WEAKEN -#define SPR_weaken 101420 // +#define SPR_weaken 101420 //虚弱 #endif #ifdef _MAGIC_DEEPPOISION -#define SPR_deeppoison 101417 //綾 +#define SPR_deeppoison 101417 //剧毒 #endif #ifdef _MAGIC_BARRIER -#define SPR_barrier 101421 //ħ +#define SPR_barrier 101421 //魔障 #endif #ifdef _MAGIC_NOCAST -#define SPR_nocast 101419 //Ĭ +#define SPR_nocast 101419 //沉默 #endif -//ǿ -#define SPR_all_att 101406 //ȫ -#define SPR_land_att 101403 // -#define SPR_water_att 101404 //ˮ -#define SPR_fire_att 101402 // -#define SPR_wind_att 101405 // -//ת -//#define SPR_all_att 101406 //ȫ -#define SPR_ch_earth 101408 // -#define SPR_ch_water 101409 //ˮ -#define SPR_ch_fire 101407 // -#define SPR_ch_wind 101410 // +//属性强化 +#define SPR_all_att 101406 //全属性 +#define SPR_land_att 101403 //地 +#define SPR_water_att 101404 //水 +#define SPR_fire_att 101402 //火 +#define SPR_wind_att 101405 //风 +//属性转换 +//#define SPR_all_att 101406 //全属性 +#define SPR_ch_earth 101408 //地 +#define SPR_ch_water 101409 //水 +#define SPR_ch_fire 101407 //火 +#define SPR_ch_wind 101410 //风 -#define SPR_tooth 101415 // -#define SPR_mic_def 101411 //ħ -#define SPR_ironwall 101416 // -#define SPR_bomb 101418 //Ա +#define SPR_tooth 101415 //啮齿 +#define SPR_mic_def 101411 //魔法防御 +#define SPR_ironwall 101416 //铁壁 +#define SPR_bomb 101418 //自爆 #ifdef _MIND_ICON #define SPR_heart 101296 @@ -876,25 +876,25 @@ #define SPR_money 101303 #define SPR_pk 101304 #endif -//???????????? -#define SPR_effect01 100600 // ??????? -//#define SPR_heal 100601 // ???????????? -#define SPR_heal 100601 // ???????????? -#define SPR_heal2 100602 // ???????????? -#define SPR_heal3 100603 // ???????????? -#define SPR_tyusya 100604 // ????????????????? -#define SPR_hoshi 100605 // ???????????????? -#define SPR_kyu 100606 // ??????????????????????? +//???????????? +#define SPR_effect01 100600 // ??????? +//#define SPR_heal 100601 // ???????????? +#define SPR_heal 100601 // ???????????? +#define SPR_heal2 100602 // ???????????? +#define SPR_heal3 100603 // ???????????? +#define SPR_tyusya 100604 // ????????????????? +#define SPR_hoshi 100605 // ???????????????? +#define SPR_kyu 100606 // ??????????????????????? #define SPR_fukkatu1 100607 // ????????????????????? #define SPR_fukkatu2 100608 // ????????????????????? #define SPR_fukkatu3 100609 // ????????????????????? -#define SPR_difence 100610 // \?????????????????? -#define SPR_item 100611 // ?????????????????? -#define SPR_item3 100612 // ?????????????????? -//\????????? -#define SPR_mirror 100650 // T??????? +#define SPR_difence 100610 // ?????????????????? +#define SPR_item 100611 // ?????????????????? +#define SPR_item3 100612 // ?????????????????? +//????????? +#define SPR_mirror 100650 // ??????? #define SPR_barrior 100651 // ?????????? -#define SPR_kyusyu 100652 // ????????????? +#define SPR_kyusyu 100652 // ????????????? #define SPR_005em 100700 #define SPR_005ax 100701 @@ -1301,11 +1301,11 @@ #define SPR_ride118 101118 #define SPR_ride119 101119 -#define SPR_pet340 101152 // -#define SPR_pet341 101153 // -#define SPR_pet342 101154 // -#define SPR_pet343 101155 // -#define SPR_180m 101156 // +#define SPR_pet340 101152 //蓝年兽 +#define SPR_pet341 101153 //红年兽 +#define SPR_pet342 101154 //绿年兽 +#define SPR_pet343 101155 //黄年兽 +#define SPR_180m 101156 //财神 #define SPR_170em 101157 #define SPR_170ax 101158 @@ -1337,19 +1337,19 @@ #define SPR_DRAGON 101180 -#define SPR_pet1115 102079 // ѩ -#define SPR_pet1116 102080 // ѩ +#define SPR_pet1115 102079 // 蓝雪怪 +#define SPR_pet1116 102080 // 红雪怪 -//#define SPR_pet1170 102079 // -//#define SPR_pet1171 102080 // +//#define SPR_pet1170 102079 // 红刺猬 +//#define SPR_pet1171 102080 // 蓝刺猬 -#define SPR_pet1180 102081 // +#define SPR_pet1180 102081 // 大嘴鸟 #define SPR_pet1181 102082 #define SPR_pet1182 102083 #define SPR_pet1183 102084 -#define SPR_ride262 103262 // +#define SPR_ride262 103262 // 金暴骑宠 #define SPR_ride263 103263 #define SPR_ride264 103264 #define SPR_ride265 103265 @@ -1362,7 +1362,7 @@ #define SPR_ride272 103272 #define SPR_ride273 103273 -#define SPR_ride274 103274 // +#define SPR_ride274 103274 // 蓝豹骑宠 #define SPR_ride275 103275 #define SPR_ride276 103276 #define SPR_ride277 103277 @@ -1378,7 +1378,7 @@ -#ifdef _WATERANIMATION //Syu ADD ֮ +#ifdef _WATERANIMATION //Syu ADD 泪之海动画层 #define SPR_learthbubble1 101502 #define SPR_learthbubble2 101503 #define SPR_learthbubble3 101504 @@ -1463,9 +1463,9 @@ */ /* // Fix -#define SPR_051emfix 100700 // g? +#define SPR_051emfix 100700 // ?  #define SPR_051axfix 100701 // ? -#define SPR_051clfix 100702 // ??S +#define SPR_051clfix 100702 // ?? #define SPR_051spfix 100703 // ? #define SPR_051bwfix 100704 // ? @@ -1487,14 +1487,14 @@ #define SPR_054spfix 100718 #define SPR_054bwfix 100719 */ -#ifdef _ITEM_CRACKER// +#ifdef _ITEM_CRACKER//拉炮 #define SPR_cracker 101401 #endif -#ifdef _SKILL_SELFEXPLODE //Ա +#ifdef _SKILL_SELFEXPLODE //自爆 #define SPR_selfexplod 101418//101126 #endif // ???????????????? ****************************************************/ -#define CG_INVISIBLE 99 // ???????????? +#define CG_INVISIBLE 99 // ???????????? #define CG_MOUSE_CURSOR 25000 #define CG_GRID_CURSOR 25001 @@ -1515,56 +1515,56 @@ #define CG_BTL_BUTTON_PET_DOWN 25113 #define CG_BTL_BUTTON_ESCAPE_UP 25114 #define CG_BTL_BUTTON_ESCAPE_DOWN 25115 -#define CG_BTL_BUTTON_BASE 25116 // ????U +#define CG_BTL_BUTTON_BASE 25116 // ???? #define CG_BTL_BUTTON_CROSS 25117 // ???? -// N???? -#define CG_ATR_ICON_EARTH_BIG 25120 // ?? -#define CG_ATR_ICON_EARTH_MDL 25121 // ??? -#define CG_ATR_ICON_EARTH_SML 25122 // ?? -#define CG_ATR_ICON_WATER_BIG 25123 // ??? +// ???? +#define CG_ATR_ICON_EARTH_BIG 25120 // ?佋? +#define CG_ATR_ICON_EARTH_MDL 25121 // ?佋?? +#define CG_ATR_ICON_EARTH_SML 25122 // ?佋? +#define CG_ATR_ICON_WATER_BIG 25123 // ??? #define CG_ATR_ICON_WATER_MDL 25124 // ???? -#define CG_ATR_ICON_WATER_SML 25125 // ??? -#define CG_ATR_ICON_FIRE_BIG 25126 // ??? +#define CG_ATR_ICON_WATER_SML 25125 // ??? +#define CG_ATR_ICON_FIRE_BIG 25126 // ??? #define CG_ATR_ICON_FIRE_MDL 25127 // ???? -#define CG_ATR_ICON_FIRE_SML 25128 // ??? -#define CG_ATR_ICON_WIND_BIG 25129 // ??? +#define CG_ATR_ICON_FIRE_SML 25128 // ??? +#define CG_ATR_ICON_WIND_BIG 25129 // ??? #define CG_ATR_ICON_WIND_MDL 25130 // ???? -#define CG_ATR_ICON_WIND_SML 25131 // ??? +#define CG_ATR_ICON_WIND_SML 25131 // ??? -// Pf?N???? -#define CG_ATR_ICON_EARTH_BATTLE 25132 // ?? +// ????? +#define CG_ATR_ICON_EARTH_BATTLE 25132 // ?佋? #define CG_ATR_ICON_WATER_BATTLE 25133 // ??? #define CG_ATR_ICON_FIRE_BATTLE 25134 // ??? #define CG_ATR_ICON_WIND_BATTLE 25135 // ??? // ?????????? -#define CG_PET_BTL_BUTTON_BASE 25140 // ????U -#define CG_PET_BTL_BUTTON_WAZA_UP 25141 // ???? +#define CG_PET_BTL_BUTTON_BASE 25140 // ???? +#define CG_PET_BTL_BUTTON_WAZA_UP 25141 // ???? #define CG_PET_BTL_BUTTON_WAZA_DOWN 25142 // ????? -#define CG_PET_BTL_BUTTON_CANCEL_UP 25143 // ???????? +#define CG_PET_BTL_BUTTON_CANCEL_UP 25143 // ???????? // ?????? -#define CG_HIT_MARK_00 25500 // Ѣ -#define CG_HIT_MARK_01 25501 // +#define CG_HIT_MARK_00 25500 //  +#define CG_HIT_MARK_01 25501 //  -#define CG_HIT_MARK_10 25502 // +#define CG_HIT_MARK_10 25502 //  #define CG_HIT_MARK_11 25503 #define CG_HIT_MARK_12 25504 -#define CG_HIT_MARK_20 25505 // +#define CG_HIT_MARK_20 25505 //  #define CG_HIT_MARK_21 25506 #define CG_HIT_MARK_22 25507 -#define CG_HIT_MARK_30 25508 // ? +#define CG_HIT_MARK_30 25508 // ? #define CG_HIT_MARK_31 25509 #define CG_HIT_MARK_32 25510 -#define CG_HIT_MARK_40 25511 // ? +#define CG_HIT_MARK_40 25511 // ? #define CG_HIT_MARK_41 25512 #define CG_HIT_MARK_42 25513 -// ? +// ? #define CG_SPEECH_BTL_OK 25520 #define CG_SPEECH_CHANGE 25521 #define CG_SPEECH_GROUP 25522 @@ -1614,7 +1614,7 @@ #define CG_ARROW_15 25645 // ????????? -#define CG_CNT_DOWN_0 25900 //սʱ +#define CG_CNT_DOWN_0 25900 //战斗时间 #define CG_CNT_DOWN_1 25901 #define CG_CNT_DOWN_2 25902 #define CG_CNT_DOWN_3 25903 @@ -1637,71 +1637,71 @@ // ????? #define CG_TASK_BAR_BACK 26012 -// Pf????????? +// ????????? #define CG_BATTLE_BAR_PLAYER 26013 // ????? #define CG_BATTLE_BAR_PLAYER_2 26019 // ????? -#define CG_BATTLE_BAR_PET 26014 // \? +#define CG_BATTLE_BAR_PET 26014 // ? #define CG_BATTLE_BAR_PET_2 26020 // ????????? //#define CG_BTL_PET_CHANGE_WND 126230 -#define CG_BTL_PET_RETURN_BTN 26041 // Pf???????????[?? +#define CG_BTL_PET_RETURN_BTN 26041 // ????????????? -// [???? -#define CG_CLOSE_BTN 26042 // ??????[?? -#define CG_RETURN_BTN 26043 // ??????[?? -#define CG_OK_BTN 26093 // ϣ????[?? -#define CG_CANCEL_BTN 26050 // ?????????[?? +// ???? +#define CG_CLOSE_BTN 26042 // ???????? +#define CG_RETURN_BTN 26043 // ???????? +#define CG_OK_BTN 26093 // OK?????? +#define CG_CANCEL_BTN 26050 // ??????????? #define CG_YES_BTN 26094 // "??"??? #define CG_NO_BTN 26095 // "???"??? -#define CG_EXIT_BTN 26096 // "?"??? +#define CG_EXIT_BTN 26096 // "?"??? #define CG_SEAL_BTN 26097 // "??"??? #define CG_BUY_BTN 26098 // "??"??? -#define CG_PET_WND_WAZA_BTN 26046 // ?????[?? -//#define CG_PREV_BTN 26047 // q??v??????[?? -//#define CG_NEXT_BTN 26048 // ???v??????[?? +#define CG_PET_WND_WAZA_BTN 26046 // ??????? +//#define CG_PREV_BTN 26047 // ?????????? +//#define CG_NEXT_BTN 26048 // ??????????? -//#define CG_NAME_CHANGE_BTN 26051 // q???? -#define CG_NAME_CHANGE_BTN 26058 // q???? -#define CG_NAME_CHANGE_BTN_DOWN 26059 // q????? +//#define CG_NAME_CHANGE_BTN 26051 // ???? +#define CG_NAME_CHANGE_BTN 26058 // ???? +#define CG_NAME_CHANGE_BTN_DOWN 26059 // ????? #ifdef _PETCOM_ -#define CG_PETCOM_CHANGE_BTN 55218 //ɳɰť -#define CG_PETCOM_WND 55220 //ɳ +#define CG_PETCOM_CHANGE_BTN 55218 //宠物计算成成按钮 +#define CG_PETCOM_WND 55220 //宠物计算成长背景 #endif #define CG_PET_WND_REST_BTN 26052 // ???????? -#define CG_PET_WND_STANDBY_BTN 26053 // ???r???? +#define CG_PET_WND_STANDBY_BTN 26053 // ??????? #define CG_PET_WND_BTL_BTN 26054 // ????????? #define CG_PET_WND_MAIL_BTN 26055 // ????????? #define CG_PET_WND_FAMILY_BTN 26245 // -#define CG_PET_WND_STATUS_BTN 26056 // ??????? +#define CG_PET_WND_STATUS_BTN 26056 // ??????? #define CG_PET_WND_RIDE_BTN 26247 // // ????????? -#define CG_ITEM_WND_0 26060 // ????????? -#define CG_ITEM_WND_GOLD_DROP_BTN_UP 26062 // ???????? +#define CG_ITEM_WND_0 26060 // ????????? +#define CG_ITEM_WND_GOLD_DROP_BTN_UP 26062 // ???????? #define CG_ITEM_WND_GOLD_DROP_BTN_DOWN 26063 // ????????? -#define CG_ITEM_WND_GOLD_INC_BTN_UP 26064 // ???????? +#define CG_ITEM_WND_GOLD_INC_BTN_UP 26064 // ???????? #define CG_ITEM_WND_GOLD_INC_BTN_DOWN 26065 // ????????? -#define CG_ITEM_WND_GOLD_DEC_BTN_UP 26066 // ???????? +#define CG_ITEM_WND_GOLD_DEC_BTN_UP 26066 // ???????? #define CG_ITEM_WND_GOLD_DEC_BTN_DOWN 26067 // ????????? -#define CG_ITEM_WND_JUJUTU_BTN 26069 // ????????????? -#define CG_BTL_ITEM_WND_TITLE 26072 // Pf??????????????? +#define CG_ITEM_WND_JUJUTU_BTN 26069 // ????????????? +#define CG_BTL_ITEM_WND_TITLE 26072 // ??????????????? // ?????????? #define CG_STATUS_WND_VICTORY_MARK 26074 // ????? -#define CG_STATUS_WND_LV_UP_POINT 26075 // ??????? -#define CG_STATUS_WND_UP_BTN_UP 26076 // ??????????? +#define CG_STATUS_WND_LV_UP_POINT 26075 // ??????? +#define CG_STATUS_WND_UP_BTN_UP 26076 // ??????????? #define CG_STATUS_WND_UP_BTN_DOWN 26077 // ???????????? -#define CG_STATUS_WND_SHOUGOU_BTN_UP 26078 // ???? -#define CG_STATUS_WND_SHOUGOU_BTN_DOWN 26079 // ????? +#define CG_STATUS_WND_SHOUGOU_BTN_UP 26078 // ???? +#define CG_STATUS_WND_SHOUGOU_BTN_DOWN 26079 // ????? #define CG_STATUS_WND_GROUP_BTN 26080 // ????????? -#ifdef _DELBORNPLACE //Syu ADD 6.0 ͳһִ +#ifdef _DELBORNPLACE //Syu ADD 6.0 统一出生于新手村 #define CG_NEWBORNPET_WND 26326 #endif @@ -1713,51 +1713,51 @@ #define CG_MAIL_WND_OFF_LINE_BTN 26085 // ????????? #define CG_MAIL_WND_MAIL_BTN 26086 // ????? #define CG_MAIL_WND_DELETE_BTN 26087 // ????? -#define CG_MAIL_WND_CLEAR_BTN_UP 26172 // ?????? -#define CG_MAIL_WND_CLEAR_BTN_DOWN 26173 // ??????? -#define CG_SEND_BTN 26099 // "?"??? -#define CG_SEND_BTN_DOWN 26174 // "?"???? +#define CG_MAIL_WND_CLEAR_BTN_UP 26172 // ?????? +#define CG_MAIL_WND_CLEAR_BTN_DOWN 26173 // ??????? +#define CG_SEND_BTN 26099 // "?"??? +#define CG_SEND_BTN_DOWN 26174 // "?"???? //sa3 ?????????????? #define CG_MAIL_WND_ON_LINE_MERCURY_BTN 25910 // ??????????? #define CG_MAIL_WND_ON_LINE_VINUS_BTN 25911 // ??????????? -#define CG_MAIL_WND_ON_LINE_EARTH_BTN 25912 // ?????????? +#define CG_MAIL_WND_ON_LINE_EARTH_BTN 25912 // ?????????佋? #define CG_MAIL_WND_ON_LINE_MARS_BTN 25913 // ? -#define CG_ALBUM_WND_NEW_ICON 26231 // ????? -#define CG_ALBUM_WND_SNAP_BTN_UP 26170 // ?? -#define CG_ALBUM_WND_SNAP_BTN_DOWN 26171 // ??? +#define CG_ALBUM_WND_NEW_ICON 26231 // ????? +#define CG_ALBUM_WND_SNAP_BTN_UP 26170 // ?? +#define CG_ALBUM_WND_SNAP_BTN_DOWN 26171 // ??? -//Ƥ +//宠物皮肤 #ifdef _PET_SKINS -#define CG_PET_SKINS_WIN 55270 //Ƥ -#define CG_PET_SKINS_SET 55271 //Ϊʹ +#define CG_PET_SKINS_WIN 55270 //宠物皮肤窗体 +#define CG_PET_SKINS_SET 55271 //设为使用 #define CG_PET_SKINS_PREV_BTN 55272 //< -#define CG_PET_SKINS_PREV_PRESSED_BTN 55273 //< +#define CG_PET_SKINS_PREV_PRESSED_BTN 55273 //<按下 #define CG_PET_SKINS_NEXT_BTN 55274 //> -#define CG_PET_SKINS_NEXT_PRESSED_BTN 55275 //> -#define CG_PET_SKINS_SHOW_BTN 55276 //Ƥť -#define CG_PET_SKINS_SHOW_PRESSED_BTN 55277 //Ƥ +#define CG_PET_SKINS_NEXT_PRESSED_BTN 55275 //>按下 +#define CG_PET_SKINS_SHOW_BTN 55276 //宠物皮肤按钮 +#define CG_PET_SKINS_SHOW_PRESSED_BTN 55277 //宠物皮肤按下 #endif -// ?V?[?????? +// ???????? #define CG_COMMON_YES_BTN 26091 // ????? #define CG_COMMON_NO_BTN 26092 // ?????? #ifdef __PHONEMESSAGE #define CG_FIELD_MENU_LEFT 26100 #else -// ?????????? -#define CG_FIELD_MENU_LEFT_OLD 26100 // mail call Ͻǵװ +// ?????????? +#define CG_FIELD_MENU_LEFT_OLD 26100 // mail call 左上角底板 //#ifdef __FAMILY_UI_ #ifdef _SPECIAL_LOGO #define CG_FIELD_MENU_LEFT_NEW 28553 #else -#define CG_FIELD_MENU_LEFT_NEW 26236 // ?Ƣ? +#define CG_FIELD_MENU_LEFT_NEW 26236 // ?? #endif //#else -#define CG_FIELD_MENU_LEFT 26233 // ?Ƣ? +#define CG_FIELD_MENU_LEFT 26233 // ?? //#endif #endif @@ -1766,22 +1766,22 @@ #define CG_FIELD_MENU_LEFT_75 35271 #endif -#define CG_FIELD_MENU_BTN_OFF 26101 // ?????????֢t -#define CG_FIELD_MENU_BTN_ON 26102 // ?????????֢t -#define CG_FIELD_CARD_BTN_OFF 26103 // ?????֢t -#define CG_FIELD_CARD_BTN_ON 26104 // ?????֢t -#define CG_FIELD_GROUP_BTN_OFF 26105 // ?????????֢t -#define CG_FIELD_GROUP_BTN_ON 26106 // ?????????֢t -#define CG_FIELD_MAIL_LAMP 26107 // ?????? +#define CG_FIELD_MENU_BTN_OFF 26101 // ????????? +#define CG_FIELD_MENU_BTN_ON 26102 // ????????? +#define CG_FIELD_CARD_BTN_OFF 26103 // ????? +#define CG_FIELD_CARD_BTN_ON 26104 // ????? +#define CG_FIELD_GROUP_BTN_OFF 26105 // ????????? +#define CG_FIELD_GROUP_BTN_ON 26106 // ????????? +#define CG_FIELD_MAIL_LAMP 26107 // ?????? #define CG_FIELD_MENU_RIGHT 26260 #define CG_FIELD_HELP_PRELAYER 26250 #define CG_FIELD_HELP_PREPAGE 26252 #define CG_FIELD_HELP_NEXTPAGE 26254 #define CG_FIELD_HELP_EXIT 26256 -#define CG_FIELD_JOIN_BTL_BTN_OFF 26111 // ӡP?????֢t -#define CG_FIELD_JOIN_BTL_BTN_ON 26112 // ӡP?????֢t -#define CG_FIELD_DUEL_BTN_OFF 26113 // nP?????֢t -#define CG_FIELD_DUEL_BTN_ON 26114 // nP????? +#define CG_FIELD_JOIN_BTL_BTN_OFF 26111 // ????? +#define CG_FIELD_JOIN_BTL_BTN_ON 26112 // ????? +#define CG_FIELD_DUEL_BTN_OFF 26113 // ????? +#define CG_FIELD_DUEL_BTN_ON 26114 // ????? #ifdef _CHANGE_HELP_BUTTON #define CG_FIELD_HELP_BTN_OFF 55237 #define CG_FIELD_HELP_BTN_ON 55238 @@ -1789,17 +1789,17 @@ #define CG_FIELD_HELP_BTN_OFF 26249 #define CG_FIELD_HELP_BTN_ON 26248 #endif -#define CG_FIELD_ACT_BTN_OFF 26115 // ??????????֢t -#define CG_FIELD_ACT_BTN_ON 26116 // ??????????֢t -#define CG_FIELD_AM_PM_00 26117 // ???????? -#define CG_FIELD_AM_PM_01 26118 // ???????? -#define CG_FIELD_AM_PM_02 26119 // ???????? -#define CG_FIELD_AM_PM_03 26120 // ???????? -#define CG_FIELD_MENU_RIGHT_BACK 26121 // ?Ƣ????? -#define CG_FIELD_TRADE_BTN_OFF 26234 // TRADE?????֢t -#define CG_FIELD_TRADE_BTN_ON 26235 // TRADE?????֢t -#define CG_FIELD_CHANNEL_BTN_OFF 26237 // CHANNEL?????֢t -#define CG_FIELD_CHANNEL_BTN_ON 26238 // CHANNEL?????֢t +#define CG_FIELD_ACT_BTN_OFF 26115 // ?????????? +#define CG_FIELD_ACT_BTN_ON 26116 // ?????????? +#define CG_FIELD_AM_PM_00 26117 // ???????? +#define CG_FIELD_AM_PM_01 26118 // ???????? +#define CG_FIELD_AM_PM_02 26119 // ???????? +#define CG_FIELD_AM_PM_03 26120 // ???????? +#define CG_FIELD_MENU_RIGHT_BACK 26121 // ?????? +#define CG_FIELD_TRADE_BTN_OFF 26234 // TRADE????? +#define CG_FIELD_TRADE_BTN_ON 26235 // TRADE????? +#define CG_FIELD_CHANNEL_BTN_OFF 26237 // CHANNEL????? +#define CG_FIELD_CHANNEL_BTN_ON 26238 // CHANNEL????? #define CG_FIELD_MSG_BTN_ON 26294 // Msg-Down button,added by LeiBoy #define CG_FIELD_MSG_BTN_OFF 26295 // Msg-Up button ,added by LeiBoy #ifdef _MO_SIGN_IN @@ -1840,25 +1840,25 @@ #define CG_TASK_BAR_SYSTEM_UP 26162 #define CG_TASK_BAR_SYSTEM_DOWN 26163 -// q???? -#define CG_PREV_BTN 26180 // ???? +// ???? +#define CG_PREV_BTN 26180 // ???? #define CG_PREV_BTN_DOWN 26181 // ????? -#define CG_NEXT_BTN 26182 // ???? +#define CG_NEXT_BTN 26182 // ???? #define CG_NEXT_BTN_DOWN 26183 // ????? -#define CG_PREV_BTN2 26184 // ???? +#define CG_PREV_BTN2 26184 // ???? #define CG_PREV_BTN2_DOWN 26185 // ????? -#define CG_NEXT_BTN2 26186 // ???? +#define CG_NEXT_BTN2 26186 // ???? #define CG_NEXT_BTN2_DOWN 26187 // ????? -#define CG_UP_BTN 26188 // ???? +#define CG_UP_BTN 26188 // ???? #define CG_UP_BTN_DOWN 26189 // ????? -#define CG_DOWN_BTN 26190 // ???? +#define CG_DOWN_BTN 26190 // ???? #define CG_DOWN_BTN_DOWN 26191 // ????? // ???? -#define CG_ICON_FUKIDASI 26500 // ????V??????? +#define CG_ICON_FUKIDASI 26500 // ??????????? #define CG_ICON_COME_ON 26501 // ?Come On!? #define CG_ICON_GO 26502 // ?Go!? #define CG_ICON_WATCHING 26503 // ?Watching? @@ -1875,11 +1875,11 @@ #define CG_ICON_GUARD_BREAK 26514 // ?Guard Break!? #define CG_ICON_CRUSH 26515 // ?Crush!? #define CG_ICON_CAPTURE_UP 26516 // ?Capture Up!? -#ifdef _SKILL_ROAR //輼:() +#ifdef _SKILL_ROAR //宠技:大吼(克年兽) #define CG_ICON_ROAR 25869 // ?Hwaoo!? #endif -// ???????????? +// ???????????? #define CG_NOW_PAINTING 28999 // ???? @@ -1891,7 +1891,7 @@ #ifdef _v4_0 #define CG_TITLE 29025 #endif -#ifdef _NEWLOGO // Syu ADD 6.0뻭logo Ҫ_v4_0 +#ifdef _NEWLOGO // Syu ADD 6.0登入画面新logo 要关_v4_0 #define CG_TITLE 29025 #endif #ifdef _SPECIAL_LOGO @@ -1925,7 +1925,7 @@ #define CG_TITLE_ID_PASS_QUIT 29028 #endif -#ifdef _NEWLOGO // Syu ADD 6.0뻭logo Ҫ_v4_0 +#ifdef _NEWLOGO // Syu ADD 6.0登入画面新logo 要关_v4_0 #ifdef _NEWPANEL_71 #ifdef _BACK_LOGO @@ -1979,24 +1979,24 @@ #endif #define CG_TITLE_SPRITEKING 29023 -// ???? -#define CG_CHR_MAKE_SEL_BG 29030 // ????k? -#define CG_CHR_MAKE_BG 29031 // ???????????? -#define CG_CHR_SEL_BG 29032 // ?????k? +// ???? +#define CG_CHR_MAKE_SEL_BG 29030 // ????? +#define CG_CHR_MAKE_BG 29031 // ???????????? +#define CG_CHR_SEL_BG 29032 // ?????? #define CG_CHR_SEL_LOGIN_BTN 29033 // ??????? -#define CG_CHR_SEL_NEW_BTN 29034 // ???? +#define CG_CHR_SEL_NEW_BTN 29034 // ???? #define CG_CHR_SEL_DEL_BTN 29035 // ????? #define CG_CHR_SEL_BACK_BTN 29036 // ????? -#define CG_CHR_MAKE_OK_BTN 29037 // ???? ?e??? -#define CG_CHR_MAKE_BACK_BTN 29038 // ???? ????? -#define CG_CHR_MAKE_SEL2_BG 29039 // ԡk? -#define CG_CHR_MAKE_HOME_NAME0 29040 // ??????Z? -#define CG_CHR_MAKE_HOME_NAME1 29041 // ??????Z? -#define CG_CHR_MAKE_HOME_NAME2 29042 // ??????Z? -#define CG_CHR_MAKE_HOME_NAME3 29043 // ???????Z? -#define CG_CHR_MAKE_EYE_SEL 29044 // ???? ???k -#define CG_CHR_MAKE_NOSE_SEL 29045 // ???? ??k -#define CG_CHR_MAKE_FACE 30000 // ??????? +#define CG_CHR_MAKE_OK_BTN 29037 // ???? ???? +#define CG_CHR_MAKE_BACK_BTN 29038 // ???? ????? +#define CG_CHR_MAKE_SEL2_BG 29039 // 佋? +#define CG_CHR_MAKE_HOME_NAME0 29040 // 佋??????? +#define CG_CHR_MAKE_HOME_NAME1 29041 // 佋??????? +#define CG_CHR_MAKE_HOME_NAME2 29042 // 佋??????? +#define CG_CHR_MAKE_HOME_NAME3 29043 // 佋???????? +#define CG_CHR_MAKE_EYE_SEL 29044 // ???? ??? +#define CG_CHR_MAKE_NOSE_SEL 29045 // ???? ?? +#define CG_CHR_MAKE_FACE 30000 // ??????? // trade sys @@ -2271,20 +2271,20 @@ typedef struct { static tagRideNoList RideNoList[] = { #ifdef _8_RIDEPETS - //{ , ë, , Χ, , ɽ, , , , 챩, , , , } - { 101305, 101306, 101307, 101308, 101309, 101310, 101311, 101312, 101008, 101009, 101989, 101978, SPR_ride278, SPR_ride266}, // ͷ - { 101313, 101314, 101315, 101316, 101317, 101318, 101319, 101320, 101018, 101019, 101988, 101986, SPR_ride274, SPR_ride262}, // ͷ - { 101321, 101322, 101323, 101324, 101325, 101326, 101327, 101328, 101028, 101029, 101965, 101975, SPR_ride275, SPR_ride263}, // Сβ - { 101329, 101330, 101331, 101332, 101333, 101334, 101335, 101336, 101038, 101039, 101966, 101976, SPR_ride276, SPR_ride264}, // - { 101337, 101338, 101339, 101340, 101341, 101342, 101343, 101344, 101048, 101049, 101973, 101984, SPR_ride284, SPR_ride272}, // Ƥֹ - { 101345, 101346, 101347, 101348, 101349, 101350, 101351, 101352, 101058, 101059, 101974, 101985, SPR_ride285, SPR_ride273}, // + //{ 机暴, 长毛象, 飞龙, 围巾蜥蜴, 人龙, 穿山甲, 兽蛙, 猩猩, 蓝暴, 红暴, 飞雷龙, 工鱼, 蓝豹, 金暴 } + { 101305, 101306, 101307, 101308, 101309, 101310, 101311, 101312, 101008, 101009, 101989, 101978, SPR_ride278, SPR_ride266}, // 玉米头 + { 101313, 101314, 101315, 101316, 101317, 101318, 101319, 101320, 101018, 101019, 101988, 101986, SPR_ride274, SPR_ride262}, // 刺猬头 + { 101321, 101322, 101323, 101324, 101325, 101326, 101327, 101328, 101028, 101029, 101965, 101975, SPR_ride275, SPR_ride263}, // 小马尾 + { 101329, 101330, 101331, 101332, 101333, 101334, 101335, 101336, 101038, 101039, 101966, 101976, SPR_ride276, SPR_ride264}, // 酷哥 + { 101337, 101338, 101339, 101340, 101341, 101342, 101343, 101344, 101048, 101049, 101973, 101984, SPR_ride284, SPR_ride272}, // 兽皮兄贵 + { 101345, 101346, 101347, 101348, 101349, 101350, 101351, 101352, 101058, 101059, 101974, 101985, SPR_ride285, SPR_ride273}, // 酋长 - { 101353, 101354, 101355, 101356, 101357, 101358, 101359, 101360, 101068, 101069, 101967, 101977, SPR_ride277, SPR_ride265}, // СŮ - { 101361, 101362, 101363, 101364, 101365, 101366, 101367, 101368, 101078, 101079, 101968, 101979, SPR_ride279, SPR_ride267}, // ٷ - { 101369, 101370, 101371, 101372, 101373, 101374, 101375, 101376, 101088, 101089, 101970, 101981, SPR_ride281, SPR_ride269}, // Сñ - { 101377, 101378, 101379, 101380, 101381, 101382, 101383, 101384, 101098, 101099, 101969, 101980, SPR_ride280, SPR_ride268}, // - { 101385, 101386, 101387, 101388, 101389, 101390, 101391, 101392, 101108, 101109, 101972, 101983, SPR_ride283, SPR_ride271}, // Ů - { 101393, 101394, 101395, 101396, 101397, 101398, 101399, 101400, 101118, 101119, 101971, 101982, SPR_ride282, SPR_ride270}, // Ů + { 101353, 101354, 101355, 101356, 101357, 101358, 101359, 101360, 101068, 101069, 101967, 101977, SPR_ride277, SPR_ride265}, // 小女孩 + { 101361, 101362, 101363, 101364, 101365, 101366, 101367, 101368, 101078, 101079, 101968, 101979, SPR_ride279, SPR_ride267}, // 玛蕾菲雅 + { 101369, 101370, 101371, 101372, 101373, 101374, 101375, 101376, 101088, 101089, 101970, 101981, SPR_ride281, SPR_ride269}, // 小帽子 + { 101377, 101378, 101379, 101380, 101381, 101382, 101383, 101384, 101098, 101099, 101969, 101980, SPR_ride280, SPR_ride268}, // 发箍 + { 101385, 101386, 101387, 101388, 101389, 101390, 101391, 101392, 101108, 101109, 101972, 101983, SPR_ride283, SPR_ride271}, // 不良女 + { 101393, 101394, 101395, 101396, 101397, 101398, 101399, 101400, 101118, 101119, 101971, 101982, SPR_ride282, SPR_ride270}, // 熟女 #else { 101305, 101306, 101307, 101308, 101309, 101310, 101311, 101312, 101008, 101009}, { 101313, 101314, 101315, 101316, 101317, 101318, 101319, 101320, 101018, 101019}, @@ -2307,174 +2307,174 @@ typedef struct { }tagRidePetList; static tagRidePetList RPlistMode[] = { - { 100000, 0 }, { 100005, 0 }, { 100010, 0 }, { 100015, 0 }, //С - { 100020, 1 }, { 100025, 1 }, { 100030, 1 }, { 100035, 1 }, // - { 100040, 2 }, { 100045, 2 }, { 100050, 2 }, { 100055, 2 }, //к - { 100060, 3 }, { 100065, 3 }, { 100070, 3 }, { 100075, 3 }, // - { 100080, 4 }, { 100085, 4 }, { 100090, 4 }, { 100095, 4 }, //Ƥ - { 100100, 5 }, { 100105, 5 }, { 100110, 5 }, { 100115, 5 }, // + { 100000, 0 }, { 100005, 0 }, { 100010, 0 }, { 100015, 0 }, //小矮子 + { 100020, 1 }, { 100025, 1 }, { 100030, 1 }, { 100035, 1 }, //赛亚人 + { 100040, 2 }, { 100045, 2 }, { 100050, 2 }, { 100055, 2 }, //辫子男孩 + { 100060, 3 }, { 100065, 3 }, { 100070, 3 }, { 100075, 3 }, //酷哥 + { 100080, 4 }, { 100085, 4 }, { 100090, 4 }, { 100095, 4 }, //熊皮男 + { 100100, 5 }, { 100105, 5 }, { 100110, 5 }, { 100115, 5 }, //大个 - { 100120, 6 }, { 100125, 6 }, { 100130, 6 }, { 100135, 6 }, //С - { 100140, 7 }, { 100145, 7 }, { 100150, 7 }, { 100155, 7 }, //Ƥ - { 100160, 8 }, { 100165, 8 }, { 100170, 8 }, { 100175, 8 }, //ñ - { 100180, 9 }, { 100185, 9 }, { 100190, 9 }, { 100195, 9 }, //̷ - { 100200, 10 }, { 100205, 10 }, { 100210, 10 }, { 100215, 10 }, //Ů - { 100220, 11 }, { 100225, 11 }, { 100230, 11 }, { 100235, 11 }, // + { 100120, 6 }, { 100125, 6 }, { 100130, 6 }, { 100135, 6 }, //小矮妹 + { 100140, 7 }, { 100145, 7 }, { 100150, 7 }, { 100155, 7 }, //熊皮妹 + { 100160, 8 }, { 100165, 8 }, { 100170, 8 }, { 100175, 8 }, //帽子妹 + { 100180, 9 }, { 100185, 9 }, { 100190, 9 }, { 100195, 9 }, //短法发夹妹 + { 100200, 10 }, { 100205, 10 }, { 100210, 10 }, { 100215, 10 }, //手套女 + { 100220, 11 }, { 100225, 11 }, { 100230, 11 }, { 100235, 11 }, //辣妹 }; #endif #ifdef _MO_IMAGE_EXTENSION #define CG_CHR_MAKE_NEWFACE 54500 -#define SPRNEW_001em 102003 // -#define SPRNEW_001ax 102004 //ͷ ? -#define SPRNEW_001cl 102005 //ľ ??S -#define SPRNEW_001sp 102006 //ì ? -#define SPRNEW_001bw 102007 // ? +#define SPRNEW_001em 102003 //火  +#define SPRNEW_001ax 102004 //斧头 ? +#define SPRNEW_001cl 102005 //木棍 ?? +#define SPRNEW_001sp 102006 //矛 ? +#define SPRNEW_001bw 102007 //弓 ? -#define SPRNEW_002em 102008 //ˮ -#define SPRNEW_002ax 102009 //ͷ ? -#define SPRNEW_002cl 102010 //ľ ??S -#define SPRNEW_002sp 102011 //ì ? -#define SPRNEW_002bw 102012 // +#define SPRNEW_002em 102008 //水  +#define SPRNEW_002ax 102009 //斧头 ? +#define SPRNEW_002cl 102010 //木棍 ?? +#define SPRNEW_002sp 102011 //矛 ? +#define SPRNEW_002bw 102012 //弓 -#define SPRNEW_003em 102013 // -#define SPRNEW_003ax 102014 //ͷ ? -#define SPRNEW_003cl 102015 //ľ ??S -#define SPRNEW_003sp 102016 //ì ? -#define SPRNEW_003bw 102017 // +#define SPRNEW_003em 102013 //风  +#define SPRNEW_003ax 102014 //斧头 ? +#define SPRNEW_003cl 102015 //木棍 ?? +#define SPRNEW_003sp 102016 //矛 ? +#define SPRNEW_003bw 102017 //弓 -#define SPRNEW_004em 102018 // -#define SPRNEW_004ax 102019 //ͷ ? -#define SPRNEW_004cl 102020 //ľ ??S -#define SPRNEW_004sp 102021 //ì ? -#define SPRNEW_004bw 102022 // +#define SPRNEW_004em 102018 //地  +#define SPRNEW_004ax 102019 //斧头 ? +#define SPRNEW_004cl 102020 //木棍 ?? +#define SPRNEW_004sp 102021 //矛 ? +#define SPRNEW_004bw 102022 //弓 -#define SPRNEW_005em 102023 // -#define SPRNEW_005ax 102024 //ͷ ? -#define SPRNEW_005cl 102025 //ľ ??S -#define SPRNEW_005sp 102026 //ì ? -#define SPRNEW_005bw 102027 // ? +#define SPRNEW_005em 102023 //火  +#define SPRNEW_005ax 102024 //斧头 ? +#define SPRNEW_005cl 102025 //木棍 ?? +#define SPRNEW_005sp 102026 //矛 ? +#define SPRNEW_005bw 102027 //弓 ? -#define SPRNEW_006em 102028 //ˮ -#define SPRNEW_006ax 102029 //ͷ ? -#define SPRNEW_006cl 102030 //ľ ??S -#define SPRNEW_006sp 102031 //ì ? -#define SPRNEW_006bw 102032 // +#define SPRNEW_006em 102028 //水  +#define SPRNEW_006ax 102029 //斧头 ? +#define SPRNEW_006cl 102030 //木棍 ?? +#define SPRNEW_006sp 102031 //矛 ? +#define SPRNEW_006bw 102032 //弓 -#define SPRNEW_007em 102033 // -#define SPRNEW_007ax 102034 //ͷ ? -#define SPRNEW_007cl 102035 //ľ ??S -#define SPRNEW_007sp 102036 //ì ? -#define SPRNEW_007bw 102037 // +#define SPRNEW_007em 102033 //风  +#define SPRNEW_007ax 102034 //斧头 ? +#define SPRNEW_007cl 102035 //木棍 ?? +#define SPRNEW_007sp 102036 //矛 ? +#define SPRNEW_007bw 102037 //弓 -#define SPRNEW_008em 102038 // -#define SPRNEW_008ax 102039 //ͷ ? -#define SPRNEW_008cl 102040 //ľ ??S -#define SPRNEW_008sp 102041 //ì ? -#define SPRNEW_008bw 102042 // +#define SPRNEW_008em 102038 //地  +#define SPRNEW_008ax 102039 //斧头 ? +#define SPRNEW_008cl 102040 //木棍 ?? +#define SPRNEW_008sp 102041 //矛 ? +#define SPRNEW_008bw 102042 //弓 -#define SPRNEW_009em 102043 // -#define SPRNEW_009ax 102044 //ͷ ? -#define SPRNEW_009cl 102045 //ľ ??S -#define SPRNEW_009sp 102046 //ì ? -#define SPRNEW_009bw 102047 // ? +#define SPRNEW_009em 102043 //火  +#define SPRNEW_009ax 102044 //斧头 ? +#define SPRNEW_009cl 102045 //木棍 ?? +#define SPRNEW_009sp 102046 //矛 ? +#define SPRNEW_009bw 102047 //弓 ? -#define SPRNEW_010em 102048 //ˮ -#define SPRNEW_010ax 102049 //ͷ ? -#define SPRNEW_010cl 102050 //ľ ??S -#define SPRNEW_010sp 102051 //ì ? -#define SPRNEW_010bw 102052 // +#define SPRNEW_010em 102048 //水  +#define SPRNEW_010ax 102049 //斧头 ? +#define SPRNEW_010cl 102050 //木棍 ?? +#define SPRNEW_010sp 102051 //矛 ? +#define SPRNEW_010bw 102052 //弓 -#define SPRNEW_011em 102053 // -#define SPRNEW_011ax 102054 //ͷ ? -#define SPRNEW_011cl 102055 //ľ ??S -#define SPRNEW_011sp 102056 //ì ? -#define SPRNEW_011bw 102057 // +#define SPRNEW_011em 102053 //风  +#define SPRNEW_011ax 102054 //斧头 ? +#define SPRNEW_011cl 102055 //木棍 ?? +#define SPRNEW_011sp 102056 //矛 ? +#define SPRNEW_011bw 102057 //弓 -#define SPRNEW_012em 102058 // -#define SPRNEW_012ax 102059 //ͷ ? -#define SPRNEW_012cl 102060 //ľ ??S -#define SPRNEW_012sp 102061 //ì ? -#define SPRNEW_012bw 102062 // +#define SPRNEW_012em 102058 //地  +#define SPRNEW_012ax 102059 //斧头 ? +#define SPRNEW_012cl 102060 //木棍 ?? +#define SPRNEW_012sp 102061 //矛 ? +#define SPRNEW_012bw 102062 //弓 -#define SPRNEW_013em 102063 // -#define SPRNEW_013ax 102064 //ͷ ? -#define SPRNEW_013cl 102065 //ľ ??S -#define SPRNEW_013sp 102066 //ì ? -#define SPRNEW_013bw 102067 // ? +#define SPRNEW_013em 102063 //火  +#define SPRNEW_013ax 102064 //斧头 ? +#define SPRNEW_013cl 102065 //木棍 ?? +#define SPRNEW_013sp 102066 //矛 ? +#define SPRNEW_013bw 102067 //弓 ? -#define SPRNEW_014em 102068 //ˮ -#define SPRNEW_014ax 102069 //ͷ ? -#define SPRNEW_014cl 102070 //ľ ??S -#define SPRNEW_014sp 102071 //ì ? -#define SPRNEW_014bw 102072 // +#define SPRNEW_014em 102068 //水  +#define SPRNEW_014ax 102069 //斧头 ? +#define SPRNEW_014cl 102070 //木棍 ?? +#define SPRNEW_014sp 102071 //矛 ? +#define SPRNEW_014bw 102072 //弓 -#define SPRNEW_015em 102073 // -#define SPRNEW_015ax 102074 //ͷ ? -#define SPRNEW_015cl 102075 //ľ ??S -#define SPRNEW_015sp 102076 //ì ? -#define SPRNEW_015bw 102077 // +#define SPRNEW_015em 102073 //风  +#define SPRNEW_015ax 102074 //斧头 ? +#define SPRNEW_015cl 102075 //木棍 ?? +#define SPRNEW_015sp 102076 //矛 ? +#define SPRNEW_015bw 102077 //弓 -#define SPRNEW_016em 102078 // -#define SPRNEW_016ax 102079 //ͷ ? -#define SPRNEW_016cl 102080 //ľ ??S -#define SPRNEW_016sp 102081 //ì ? -#define SPRNEW_016bw 102082 // +#define SPRNEW_016em 102078 //地  +#define SPRNEW_016ax 102079 //斧头 ? +#define SPRNEW_016cl 102080 //木棍 ?? +#define SPRNEW_016sp 102081 //矛 ? +#define SPRNEW_016bw 102082 //弓 -#define SPRNEW_016em 102078 // -#define SPRNEW_016ax 102079 //ͷ ? -#define SPRNEW_016cl 102080 //ľ ??S -#define SPRNEW_016sp 102081 //ì ? -#define SPRNEW_016bw 102082 // +#define SPRNEW_016em 102078 //地  +#define SPRNEW_016ax 102079 //斧头 ? +#define SPRNEW_016cl 102080 //木棍 ?? +#define SPRNEW_016sp 102081 //矛 ? +#define SPRNEW_016bw 102082 //弓 -#define SPRNEW_017em 102089 // -#define SPRNEW_017ax 102090 //ͷ ? -#define SPRNEW_017cl 102091 //ľ ??S -#define SPRNEW_017sp 102092 //ì ? -#define SPRNEW_017bw 102093 // +#define SPRNEW_017em 102089 //地  +#define SPRNEW_017ax 102090 //斧头 ? +#define SPRNEW_017cl 102091 //木棍 ?? +#define SPRNEW_017sp 102092 //矛 ? +#define SPRNEW_017bw 102093 //弓 -#define SPRNEW_018em 102094 // -#define SPRNEW_018ax 102095 //ͷ ? -#define SPRNEW_018cl 102096 //ľ ??S -#define SPRNEW_018sp 102097 //ì ? -#define SPRNEW_018bw 102098 // +#define SPRNEW_018em 102094 //地  +#define SPRNEW_018ax 102095 //斧头 ? +#define SPRNEW_018cl 102096 //木棍 ?? +#define SPRNEW_018sp 102097 //矛 ? +#define SPRNEW_018bw 102098 //弓 -#define SPRNEW_019em 102099 // -#define SPRNEW_019ax 102100 //ͷ ? -#define SPRNEW_019cl 102101 //ľ ??S -#define SPRNEW_019sp 102102 //ì ? -#define SPRNEW_019bw 102103 // +#define SPRNEW_019em 102099 //地  +#define SPRNEW_019ax 102100 //斧头 ? +#define SPRNEW_019cl 102101 //木棍 ?? +#define SPRNEW_019sp 102102 //矛 ? +#define SPRNEW_019bw 102103 //弓 -#define SPRNEW_020em 102104 // -#define SPRNEW_020ax 102105 //ͷ ? -#define SPRNEW_020cl 102106 //ľ ??S -#define SPRNEW_020sp 102107 //ì ? -#define SPRNEW_020bw 102108 // +#define SPRNEW_020em 102104 //地  +#define SPRNEW_020ax 102105 //斧头 ? +#define SPRNEW_020cl 102106 //木棍 ?? +#define SPRNEW_020sp 102107 //矛 ? +#define SPRNEW_020bw 102108 //弓 -#define SPRNEW_021em 102109 // -#define SPRNEW_021ax 102110 //ͷ ? -#define SPRNEW_021cl 102111 //ľ ??S -#define SPRNEW_021sp 102112 //ì ? -#define SPRNEW_021bw 102113 // +#define SPRNEW_021em 102109 //地  +#define SPRNEW_021ax 102110 //斧头 ? +#define SPRNEW_021cl 102111 //木棍 ?? +#define SPRNEW_021sp 102112 //矛 ? +#define SPRNEW_021bw 102113 //弓 -#define SPRNEW_022em 102114 // -#define SPRNEW_022ax 102115 //ͷ ? -#define SPRNEW_022cl 102116 //ľ ??S -#define SPRNEW_022sp 102117 //ì ? -#define SPRNEW_022bw 102118 // +#define SPRNEW_022em 102114 //地  +#define SPRNEW_022ax 102115 //斧头 ? +#define SPRNEW_022cl 102116 //木棍 ?? +#define SPRNEW_022sp 102117 //矛 ? +#define SPRNEW_022bw 102118 //弓 -#define SPRNEW_023em 102119 // -#define SPRNEW_023ax 102120 //ͷ ? -#define SPRNEW_023cl 102121 //ľ ??S -#define SPRNEW_023sp 102122 //ì ? -#define SPRNEW_023bw 102123 // +#define SPRNEW_023em 102119 //地  +#define SPRNEW_023ax 102120 //斧头 ? +#define SPRNEW_023cl 102121 //木棍 ?? +#define SPRNEW_023sp 102122 //矛 ? +#define SPRNEW_023bw 102123 //弓 -#define SPRNEW_024em 102124 // -#define SPRNEW_024ax 102125 //ͷ ? -#define SPRNEW_024cl 102126 //ľ ??S -#define SPRNEW_024sp 102127 //ì ? -#define SPRNEW_024bw 102128 // +#define SPRNEW_024em 102124 //地  +#define SPRNEW_024ax 102125 //斧头 ? +#define SPRNEW_024cl 102126 //木棍 ?? +#define SPRNEW_024sp 102127 //矛 ? +#define SPRNEW_024bw 102128 //弓 #endif \ No newline at end of file diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlebcdeb.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlebcdeb.h index da94c32..9804fb7 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlebcdeb.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlebcdeb.h @@ -1,22 +1,22 @@ -#if 0 -"BC|0|0|ԢO?????|ԢO?|18837|5C|280|280|5|5|????????||187E3|4E|2CF|2CF|1|A|???||186F2|4A|149|149|5|B|???|?????b|186A5|4F|122|122|5|F|???||1880A|45|2B4|2B4|1|10|D???k??||1880A|40|25A|25A|1|", -"BC|2|0|ԢO?????|ԢO?|18837|5C|280|280|4|5|????????||187E3|4E|25B|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????b|186A5|4F|122|122|404|F|???||1880A|45|1FE|2B4|400|10|D???k??||1880A|40|25A|25A|400|", -"BC|2|0|ԢO?????|ԢO?|18837|5C|1A9|280|4|5|????????||187E3|4E|132|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????b|186A5|4F|122|122|404|F|???||1880A|45|1FE|2B4|400|10|D???k??||1880A|40|25A|25A|400|", -"BC|2|0|ԢO?????|ԢO?|18837|5C|1A9|280|4|5|????????||187E3|4E|D6|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????b|186A5|4F|C6|122|40C|F|???||1880A|45|1FE|2B4|400|10|D???k??||1880A|40|25A|25A|400|", -"BC|0|0|ԢO?????|ԢO?|18837|5C|E7|280|4|5|????????||187E3|4E|D6|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????b|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|10|D???k??||1880A|40|25A|25A|400|", -"BC|2|0|ԢO?????|ԢO?|18837|5C|5D|280|4|5|????????||187E3|4E|D6|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????b|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|10|D???k??||1880A|40|129|25A|400|", -"BC|2|0|ԢO?????|ԢO?|18837|5C|173|280|4|5|????????||187E3|4E|D6|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????b|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|", +#if 0 +"BC|0|0|㏕?????|㏕?|18837|5C|280|280|5|5|????????||187E3|4E|2CF|2CF|1|A|???||186F2|4A|149|149|5|B|???|?????η|186A5|4F|122|122|5|F|???||1880A|45|2B4|2B4|1|10|翗???吻??||1880A|40|25A|25A|1|", +"BC|2|0|㏕?????|㏕?|18837|5C|280|280|4|5|????????||187E3|4E|25B|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????η|186A5|4F|122|122|404|F|???||1880A|45|1FE|2B4|400|10|翗???吻??||1880A|40|25A|25A|400|", +"BC|2|0|㏕?????|㏕?|18837|5C|1A9|280|4|5|????????||187E3|4E|132|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????η|186A5|4F|122|122|404|F|???||1880A|45|1FE|2B4|400|10|翗???吻??||1880A|40|25A|25A|400|", +"BC|2|0|㏕?????|㏕?|18837|5C|1A9|280|4|5|????????||187E3|4E|D6|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????η|186A5|4F|C6|122|40C|F|???||1880A|45|1FE|2B4|400|10|翗???吻??||1880A|40|25A|25A|400|", +"BC|0|0|㏕?????|㏕?|18837|5C|E7|280|4|5|????????||187E3|4E|D6|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????η|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|10|翗???吻??||1880A|40|25A|25A|400|", +"BC|2|0|㏕?????|㏕?|18837|5C|5D|280|4|5|????????||187E3|4E|D6|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????η|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|10|翗???吻??||1880A|40|129|25A|400|", +"BC|2|0|㏕?????|㏕?|18837|5C|173|280|4|5|????????||187E3|4E|D6|2CF|0|A|???||186F2|4A|149|149|404|B|???|?????η|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|", -"BC|2|0|ԢO?????|ԢO?|18837|5C|173|280|4|5|????????||187E3|4E|0|2CF|2|A|???||186F2|4A|113|149|40C|B|???|?????b|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|20E|20E|0|", -"BC|0|0|ԢO?????|ԢO?|18837|5C|B5|280|4|5|???????||187B8|4E|2E5|2E5|0|A|???||186F2|4A|DD|149|40C|B|???|?????b|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|20E|20E|0|", -"BC|2|0|ԢO?????|ԢO?|18837|5C|1DB|280|4|5|???????||187B8|4E|2E5|2E5|0|A|???||186F2|4A|A7|149|40C|B|???|?????b|186A5|4F|89|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|20E|20E|0|", -"BC|2|0|ԢO?????|ԢO?|18837|5C|1DB|280|4|5|???????||187B8|4E|2E5|2E5|0|A|???||186F2|4A|A7|149|404|B|???|?????b|186A5|4F|87|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|172|20E|0|", +"BC|2|0|㏕?????|㏕?|18837|5C|173|280|4|5|????????||187E3|4E|0|2CF|2|A|???||186F2|4A|113|149|40C|B|???|?????η|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|20E|20E|0|", +"BC|0|0|㏕?????|㏕?|18837|5C|B5|280|4|5|???????||187B8|4E|2E5|2E5|0|A|???||186F2|4A|DD|149|40C|B|???|?????η|186A5|4F|8C|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|20E|20E|0|", +"BC|2|0|㏕?????|㏕?|18837|5C|1DB|280|4|5|???????||187B8|4E|2E5|2E5|0|A|???||186F2|4A|A7|149|40C|B|???|?????η|186A5|4F|89|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|20E|20E|0|", +"BC|2|0|㏕?????|㏕?|18837|5C|1DB|280|4|5|???????||187B8|4E|2E5|2E5|0|A|???||186F2|4A|A7|149|404|B|???|?????η|186A5|4F|87|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|172|20E|0|", #else -"BC|14|0|ԢOɽ|ɽ|18837|5C|10E|280|4|5|???????||187B8|4E|2E5|2E5|0|A|???||186F2|4A|A7|149|404|B|???|?????b|186A5|4F|86|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|CE|20E|0|", -"BC|14|0|ԢOɽ|ɽ|18837|5C|10E|280|4|5|???????||187B8|4E|2E0|2E5|0|A|???||186F2|4A|A7|149|404|B|???|?????b|186A5|4F|86|122|404|F|???||1880A|45|1A8|2B4|400|10|??||187C0|2F|10|20E|0|", -"BC|14|0|ԢOɽ|ɽ|18837|5C|10E|280|4|5|???????||187B8|4E|2E0|2E5|0|A|???||186F2|4A|9C|149|404|B|???|?????b|186A5|4F|86|122|404|F|???||1880A|45|108|2B4|400|10|??||187C0|2F|0|20E|2|", +"BC|14|0|㏕刓崞|刓崞ˋ|18837|5C|10E|280|4|5|???????||187B8|4E|2E5|2E5|0|A|???||186F2|4A|A7|149|404|B|???|?????η|186A5|4F|86|122|404|F|???||1880A|45|1FE|2B4|400|10|??||187C0|2F|CE|20E|0|", +"BC|14|0|㏕刓崞|刓崞ˋ|18837|5C|10E|280|4|5|???????||187B8|4E|2E0|2E5|0|A|???||186F2|4A|A7|149|404|B|???|?????η|186A5|4F|86|122|404|F|???||1880A|45|1A8|2B4|400|10|??||187C0|2F|10|20E|0|", +"BC|14|0|㏕刓崞|刓崞ˋ|18837|5C|10E|280|4|5|???????||187B8|4E|2E0|2E5|0|A|???||186F2|4A|9C|149|404|B|???|?????η|186A5|4F|86|122|404|F|???||1880A|45|108|2B4|400|10|??||187C0|2F|0|20E|2|", #endif -"BC|14|0|ԢO?????|ԢO?|18837|5C|10E|280|4|5|???????||187B8|4E|2E0|2E5|0|A|???||186F2|4A|52|149|404|B|???|?????b|186A5|4F|86|122|404|F|???||1880A|45|108|2B4|400|10|??||187C0|2F|0|20E|2|", +"BC|14|0|㏕?????|㏕?|18837|5C|10E|280|4|5|???????||187B8|4E|2E0|2E5|0|A|???||186F2|4A|52|149|404|B|???|?????η|186A5|4F|86|122|404|F|???||1880A|45|108|2B4|400|10|??||187C0|2F|0|20E|2|", diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemap.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemap.h index a295f56..6c77fcc 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemap.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemap.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* battleMap.h */ /************************/ #ifndef _BATTLE_MAP_H_ @@ -7,13 +7,13 @@ // ???????????? #define BATTLE_MAP_FILES 220 -// ?????????k? +// ?????????吻? extern int BattleMapNo; -// ?????????????????????? ***************************/ +// ??????????????????????? ***************************/ BOOL ReadBattleMap( int no ); -// ??????? ***********************************************************/ +// ??????丙? ***********************************************************/ void DrawBattleMap( void ); #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemapname.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemapname.h index d31cf5a..f3cd6ff 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemapname.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemapname.h @@ -1,22 +1,22 @@ -// ?????? ???? -"data\\battleMap\\battle00.sabex", // U??? -"data\\battleMap\\battle01.sabex", // U??? -"data\\battleMap\\battle02.sabex", // U??? -"data\\battleMap\\battle03.sabex", // U????? -"data\\battleMap\\battle04.sabex", // U????? -"data\\battleMap\\battle05.sabex", // U????? +// ?????? ????? +"data\\battleMap\\battle00.sabex", // 冊??? +"data\\battleMap\\battle01.sabex", // 冊??? +"data\\battleMap\\battle02.sabex", // 冊??? +"data\\battleMap\\battle03.sabex", // 冊??至??? +"data\\battleMap\\battle04.sabex", // 冊??至??? +"data\\battleMap\\battle05.sabex", // 冊??至??? "data\\battleMap\\battle06.sabex", // ???? "data\\battleMap\\battle07.sabex", // ???? "data\\battleMap\\battle08.sabex", // ???? "data\\battleMap\\battle09.sabex", // ???? "data\\battleMap\\battle10.sabex", // ???? "data\\battleMap\\battle11.sabex", // ???? -"data\\battleMap\\battle12.sabex", // U???????? -"data\\battleMap\\battle13.sabex", // U???????? -"data\\battleMap\\battle14.sabex", // U???????? -"data\\battleMap\\battle15.sabex", // U???????? -"data\\battleMap\\battle16.sabex", // U???????? -"data\\battleMap\\battle17.sabex", // U???????? +"data\\battleMap\\battle12.sabex", // 冊???????? +"data\\battleMap\\battle13.sabex", // 冊???????? +"data\\battleMap\\battle14.sabex", // 冊???????? +"data\\battleMap\\battle15.sabex", // 冊???????? +"data\\battleMap\\battle16.sabex", // 冊???????? +"data\\battleMap\\battle17.sabex", // 冊???????? "data\\battleMap\\battle18.sabex", // ????????? "data\\battleMap\\battle19.sabex", // ????????? "data\\battleMap\\battle20.sabex", // ????????? @@ -29,51 +29,51 @@ "data\\battleMap\\battle27.sabex", // ???? "data\\battleMap\\battle28.sabex", // ???? "data\\battleMap\\battle29.sabex", // ???? -"data\\battleMap\\battle30.sabex", // U??? -"data\\battleMap\\battle31.sabex", // U??? -"data\\battleMap\\battle32.sabex", // U??? -"data\\battleMap\\battle33.sabex", // U???????? -"data\\battleMap\\battle34.sabex", // U???????? -"data\\battleMap\\battle35.sabex", // U???????? -"data\\battleMap\\battle36.sabex", // U???????? -"data\\battleMap\\battle37.sabex", // U???????? -"data\\battleMap\\battle38.sabex", // U???????? -"data\\battleMap\\battle39.sabex", // ? -"data\\battleMap\\battle40.sabex", // ? -"data\\battleMap\\battle41.sabex", // ? -"data\\battleMap\\battle42.sabex", // U??? -"data\\battleMap\\battle43.sabex", // U??? -"data\\battleMap\\battle44.sabex", // U??? -"data\\battleMap\\battle45.sabex", // U??U????? -"data\\battleMap\\battle46.sabex", // U??U????? -"data\\battleMap\\battle47.sabex", // U??U????? -"data\\battleMap\\battle48.sabex", // q??????? -"data\\battleMap\\battle49.sabex", // q??????? -"data\\battleMap\\battle50.sabex", // q??????? -"data\\battleMap\\battle51.sabex", // U?????h?? -"data\\battleMap\\battle52.sabex", // U?????h?? -"data\\battleMap\\battle53.sabex", // U?????h?? -"data\\battleMap\\battle54.sabex", // U?????h?? -"data\\battleMap\\battle55.sabex", // U?????h?? -"data\\battleMap\\battle56.sabex", // U?????h?? -"data\\battleMap\\battle57.sabex", // U?????h?? -"data\\battleMap\\battle58.sabex", // U?????h?? -"data\\battleMap\\battle59.sabex", // U?????h?? -"data\\battleMap\\battle60.sabex", // ??????h?? -"data\\battleMap\\battle61.sabex", // ??????h?? -"data\\battleMap\\battle62.sabex", // ??????h?? -"data\\battleMap\\battle63.sabex", // ??????h?? -"data\\battleMap\\battle64.sabex", // ??????h?? -"data\\battleMap\\battle65.sabex", // ??????h?? -"data\\battleMap\\battle66.sabex", // U??U????? -"data\\battleMap\\battle67.sabex", // U??U????? -"data\\battleMap\\battle68.sabex", // U??U????? -"data\\battleMap\\battle69.sabex", // s???????U? -"data\\battleMap\\battle70.sabex", // s???????U? -"data\\battleMap\\battle71.sabex", // s???????U? -"data\\battleMap\\battle72.sabex", // ????????U? -"data\\battleMap\\battle73.sabex", // ????????U? -"data\\battleMap\\battle74.sabex", // ????????U? +"data\\battleMap\\battle30.sabex", // 冊??? +"data\\battleMap\\battle31.sabex", // 冊??? +"data\\battleMap\\battle32.sabex", // 冊??? +"data\\battleMap\\battle33.sabex", // 冊???????? +"data\\battleMap\\battle34.sabex", // 冊???????? +"data\\battleMap\\battle35.sabex", // 冊???????? +"data\\battleMap\\battle36.sabex", // 冊???????? +"data\\battleMap\\battle37.sabex", // 冊???????? +"data\\battleMap\\battle38.sabex", // 冊???????? +"data\\battleMap\\battle39.sabex", // ?? +"data\\battleMap\\battle40.sabex", // ?? +"data\\battleMap\\battle41.sabex", // ?? +"data\\battleMap\\battle42.sabex", // 冊??? +"data\\battleMap\\battle43.sabex", // 冊??? +"data\\battleMap\\battle44.sabex", // 冊??? +"data\\battleMap\\battle45.sabex", // 冊??冊????? +"data\\battleMap\\battle46.sabex", // 冊??冊????? +"data\\battleMap\\battle47.sabex", // 冊??冊????? +"data\\battleMap\\battle48.sabex", // χ??????? +"data\\battleMap\\battle49.sabex", // χ??????? +"data\\battleMap\\battle50.sabex", // χ??????? +"data\\battleMap\\battle51.sabex", // 冊?????ν?? +"data\\battleMap\\battle52.sabex", // 冊?????ν?? +"data\\battleMap\\battle53.sabex", // 冊?????ν?? +"data\\battleMap\\battle54.sabex", // 冊?????ν?? +"data\\battleMap\\battle55.sabex", // 冊?????ν?? +"data\\battleMap\\battle56.sabex", // 冊?????ν?? +"data\\battleMap\\battle57.sabex", // 冊?????ν?? +"data\\battleMap\\battle58.sabex", // 冊?????ν?? +"data\\battleMap\\battle59.sabex", // 冊?????ν?? +"data\\battleMap\\battle60.sabex", // ??????ν?? +"data\\battleMap\\battle61.sabex", // ??????ν?? +"data\\battleMap\\battle62.sabex", // ??????ν?? +"data\\battleMap\\battle63.sabex", // ??????ν?? +"data\\battleMap\\battle64.sabex", // ??????ν?? +"data\\battleMap\\battle65.sabex", // ??????ν?? +"data\\battleMap\\battle66.sabex", // 冊??冊????? +"data\\battleMap\\battle67.sabex", // 冊??冊????? +"data\\battleMap\\battle68.sabex", // 冊??冊????? +"data\\battleMap\\battle69.sabex", // 存???????冊? +"data\\battleMap\\battle70.sabex", // 存???????冊? +"data\\battleMap\\battle71.sabex", // 存???????冊? +"data\\battleMap\\battle72.sabex", // ????????冊? +"data\\battleMap\\battle73.sabex", // ????????冊? +"data\\battleMap\\battle74.sabex", // ????????冊? "data\\battleMap\\battle75.sabex", // ??????????? "data\\battleMap\\battle76.sabex", // ??????????? "data\\battleMap\\battle77.sabex", // ??????????? @@ -83,60 +83,60 @@ "data\\battleMap\\battle81.sabex", // ????????? "data\\battleMap\\battle82.sabex", // ????????? "data\\battleMap\\battle83.sabex", // ????????? -"data\\battleMap\\battle84.sabex", // s???????U??????? -"data\\battleMap\\battle85.sabex", // s???????U??????? -"data\\battleMap\\battle86.sabex", // s???????U??????? +"data\\battleMap\\battle84.sabex", // 存???????冊??????? +"data\\battleMap\\battle85.sabex", // 存???????冊??????? +"data\\battleMap\\battle86.sabex", // 存???????冊??????? "data\\battleMap\\battle87.sabex", // ???????? "data\\battleMap\\battle88.sabex", // ???????? "data\\battleMap\\battle89.sabex", // ???????? -"data\\battleMap\\battle90.sabex", // s???????U??????? -"data\\battleMap\\battle91.sabex", // s???????U??????? -"data\\battleMap\\battle92.sabex", // s???????U??????? +"data\\battleMap\\battle90.sabex", // 存???????冊??????? +"data\\battleMap\\battle91.sabex", // 存???????冊??????? +"data\\battleMap\\battle92.sabex", // 存???????冊??????? "data\\battleMap\\battle93.sabex", // ????????? "data\\battleMap\\battle94.sabex", // ????????? "data\\battleMap\\battle95.sabex", // ????????? -"data\\battleMap\\battle96.sabex", // s???????U?????????U???? -"data\\battleMap\\battle97.sabex", // s???????U?????????U???? -"data\\battleMap\\battle98.sabex", // s???????U?????????U???? -"data\\battleMap\\battle99.sabex", // ??V???? -"data\\battleMap\\battle100.sabex", // ??V???? -"data\\battleMap\\battle101.sabex", // ??V???? -"data\\battleMap\\battle102.sabex", // ??V???? -"data\\battleMap\\battle103.sabex", // ??V???? -"data\\battleMap\\battle104.sabex", // ??V???? -"data\\battleMap\\battle105.sabex", // ?? -"data\\battleMap\\battle106.sabex", // ?? -"data\\battleMap\\battle107.sabex", // ?? -"data\\battleMap\\battle108.sabex", // ??U????? -"data\\battleMap\\battle109.sabex", // ??U????? -"data\\battleMap\\battle110.sabex", // ??U????? -"data\\battleMap\\battle111.sabex", // ??????? -"data\\battleMap\\battle112.sabex", // ??????? -"data\\battleMap\\battle113.sabex", // ??????? +"data\\battleMap\\battle96.sabex", // 存???????冊?????????冊???? +"data\\battleMap\\battle97.sabex", // 存???????冊?????????冊???? +"data\\battleMap\\battle98.sabex", // 存???????冊?????????冊???? +"data\\battleMap\\battle99.sabex", // ??–???? +"data\\battleMap\\battle100.sabex", // ??–???? +"data\\battleMap\\battle101.sabex", // ??–???? +"data\\battleMap\\battle102.sabex", // ?汝?–???? +"data\\battleMap\\battle103.sabex", // ?汝?–???? +"data\\battleMap\\battle104.sabex", // ?汝?–???? +"data\\battleMap\\battle105.sabex", // ?汝? +"data\\battleMap\\battle106.sabex", // ?汝? +"data\\battleMap\\battle107.sabex", // ?汝? +"data\\battleMap\\battle108.sabex", // ?汝?冊????? +"data\\battleMap\\battle109.sabex", // ?汝?冊????? +"data\\battleMap\\battle110.sabex", // ?汝?冊????? +"data\\battleMap\\battle111.sabex", // ???汝???? +"data\\battleMap\\battle112.sabex", // ???汝???? +"data\\battleMap\\battle113.sabex", // ???汝???? "data\\battleMap\\battle114.sabex", // ??????????? "data\\battleMap\\battle115.sabex", // ??????????? "data\\battleMap\\battle116.sabex", // ??????????? -"data\\battleMap\\battle117.sabex", // ?????????? -"data\\battleMap\\battle118.sabex", // ?????????? -"data\\battleMap\\battle119.sabex", // ?????????? -"data\\battleMap\\battle120.sabex", // ??U???????? -"data\\battleMap\\battle121.sabex", // ??U???????? -"data\\battleMap\\battle122.sabex", // ??U???????? -"data\\battleMap\\battle123.sabex", // ??n???? -"data\\battleMap\\battle124.sabex", // ??n???? -"data\\battleMap\\battle125.sabex", // ??n???? -"data\\battleMap\\battle126.sabex", // ??n???? -"data\\battleMap\\battle127.sabex", // ??n???? -"data\\battleMap\\battle128.sabex", // ??n???? -"data\\battleMap\\battle129.sabex", // ?n?? -"data\\battleMap\\battle130.sabex", // ?n?? -"data\\battleMap\\battle131.sabex", // ?n?? -"data\\battleMap\\battle132.sabex", // X?? -"data\\battleMap\\battle133.sabex", // X?? -"data\\battleMap\\battle134.sabex", // X?? -"data\\battleMap\\battle135.sabex", // ?n?? -"data\\battleMap\\battle136.sabex", // ?n?? -"data\\battleMap\\battle137.sabex", // ?n?? +"data\\battleMap\\battle117.sabex", // ???汝??????? +"data\\battleMap\\battle118.sabex", // ???汝??????? +"data\\battleMap\\battle119.sabex", // ???汝??????? +"data\\battleMap\\battle120.sabex", // ?汝?冊???????? +"data\\battleMap\\battle121.sabex", // ?汝?冊???????? +"data\\battleMap\\battle122.sabex", // ?汝?冊???????? +"data\\battleMap\\battle123.sabex", // ??叩???? +"data\\battleMap\\battle124.sabex", // ??叩???? +"data\\battleMap\\battle125.sabex", // ??叩???? +"data\\battleMap\\battle126.sabex", // ??叩???? +"data\\battleMap\\battle127.sabex", // ??叩???? +"data\\battleMap\\battle128.sabex", // ??叩???? +"data\\battleMap\\battle129.sabex", // ?叩?? +"data\\battleMap\\battle130.sabex", // ?叩?? +"data\\battleMap\\battle131.sabex", // ?叩?? +"data\\battleMap\\battle132.sabex", // Φ?? +"data\\battleMap\\battle133.sabex", // Φ?? +"data\\battleMap\\battle134.sabex", // Φ?? +"data\\battleMap\\battle135.sabex", // ?叩?? +"data\\battleMap\\battle136.sabex", // ?叩?? +"data\\battleMap\\battle137.sabex", // ?叩?? "data\\battleMap\\battle138.sabex", // ??????? "data\\battleMap\\battle139.sabex", // ??????? "data\\battleMap\\battle140.sabex", // ??????? @@ -144,9 +144,9 @@ "data\\battleMap\\battle142.sabex", // ??????? "data\\battleMap\\battle143.sabex", // ??????? "data\\battleMap\\battle144.sabex", // ??? -"data\\battleMap\\battle145.sabex", // s -"data\\battleMap\\battle146.sabex", // f??? -"data\\battleMap\\battle147.sabex", // f??? +"data\\battleMap\\battle145.sabex", // 叫 +"data\\battleMap\\battle146.sabex", // 卯??? +"data\\battleMap\\battle147.sabex", // 卯??? "data\\battleMap\\battle148.sabex", // ??? "data\\battleMap\\battle149.sabex", // ??? "data\\battleMap\\battle150.sabex", // ??? @@ -162,12 +162,12 @@ "data\\battleMap\\battle160.sabex", // ????????? "data\\battleMap\\battle161.sabex", // ????????? "data\\battleMap\\battle162.sabex", // ????????? -"data\\battleMap\\battle163.sabex", // ???U????? -"data\\battleMap\\battle164.sabex", // ???U????? -"data\\battleMap\\battle165.sabex", // ???U????? -"data\\battleMap\\battle166.sabex", // ???U????? -"data\\battleMap\\battle167.sabex", // ???U????? -"data\\battleMap\\battle168.sabex", // ???U????? +"data\\battleMap\\battle163.sabex", // ???冊????? +"data\\battleMap\\battle164.sabex", // ???冊????? +"data\\battleMap\\battle165.sabex", // ???冊????? +"data\\battleMap\\battle166.sabex", // ???冊????? +"data\\battleMap\\battle167.sabex", // ???冊????? +"data\\battleMap\\battle168.sabex", // ???冊????? "data\\battleMap\\battle169.sabex", // ??????? "data\\battleMap\\battle170.sabex", // ??????? "data\\battleMap\\battle171.sabex", // ??????? @@ -192,30 +192,30 @@ "data\\battleMap\\battle190.sabex", // ??????????? "data\\battleMap\\battle191.sabex", // ??????????? "data\\battleMap\\battle192.sabex", // ??????????? -"data\\battleMap\\battle193.sabex", // ?????U????? -"data\\battleMap\\battle194.sabex", // ?????U????? -"data\\battleMap\\battle195.sabex", // ?????U????? -"data\\battleMap\\battle196.sabex", // ?????U????? -"data\\battleMap\\battle197.sabex", // ?????U????? -"data\\battleMap\\battle198.sabex", // ?????U????? -"data\\battleMap\\battle199.sabex", // ?????Z -"data\\battleMap\\battle200.sabex", // ?????Z -"data\\battleMap\\battle201.sabex", // U????? -"data\\battleMap\\battle202.sabex", // U??????? -"data\\battleMap\\battle203.sabex", // U?????????? -"data\\battleMap\\battle204.sabex", // U??U??????? -"data\\battleMap\\battle205.sabex", // q????????? -"data\\battleMap\\battle206.sabex", // U?????h???? +"data\\battleMap\\battle193.sabex", // ?????冊????? +"data\\battleMap\\battle194.sabex", // ?????冊????? +"data\\battleMap\\battle195.sabex", // ?????冊????? +"data\\battleMap\\battle196.sabex", // ?????冊????? +"data\\battleMap\\battle197.sabex", // ?????冊????? +"data\\battleMap\\battle198.sabex", // ?????冊????? +"data\\battleMap\\battle199.sabex", // ?????兛 +"data\\battleMap\\battle200.sabex", // ?????兛 +"data\\battleMap\\battle201.sabex", // 冊????? +"data\\battleMap\\battle202.sabex", // 冊??至????? +"data\\battleMap\\battle203.sabex", // 冊?????????? +"data\\battleMap\\battle204.sabex", // 冊??冊??????? +"data\\battleMap\\battle205.sabex", // χ????????? +"data\\battleMap\\battle206.sabex", // 冊?????ν???? "data\\battleMap\\battle207.sabex", // ????????????? "data\\battleMap\\battle208.sabex", // ??????????? "data\\battleMap\\battle209.sabex", // ????????????? -"data\\battleMap\\battle210.sabex", // ???????????? -"data\\battleMap\\battle211.sabex", // ??U?????????? -"data\\battleMap\\battle212.sabex", // ?n???? -"data\\battleMap\\battle213.sabex", // ?n???? -"data\\battleMap\\battle214.sabex", // ?n???? -"data\\battleMap\\battle215.sabex", // ???U??????? -"data\\battleMap\\battle216.sabex", // ?????U??????? -"data\\battleMap\\battle217.sabex", // ?????U??????? -"data\\battleMap\\battle218.sabex", // ?????? +"data\\battleMap\\battle210.sabex", // ???汝????????? +"data\\battleMap\\battle211.sabex", // ?汝?冊?????????? +"data\\battleMap\\battle212.sabex", // ?叩???? +"data\\battleMap\\battle213.sabex", // ?叩???? +"data\\battleMap\\battle214.sabex", // ?叩???? +"data\\battleMap\\battle215.sabex", // ???冊??????? +"data\\battleMap\\battle216.sabex", // ?????冊??????? +"data\\battleMap\\battle217.sabex", // ?????冊??????? +"data\\battleMap\\battle218.sabex", // ?????? "data\\battleMap\\battle219.sabex", // \ No newline at end of file diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemenu.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemenu.h index 86a8066..3360786 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemenu.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemenu.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* battleMenu.h */ /************************/ #ifndef _BATTLE_MENU_H_ @@ -13,56 +13,56 @@ extern int AI; extern DWORD PauseAI; -// BattleBpFlag????ѩ -#define BATTLE_BP_JOIN ( 1 << 0 ) // ӡP +// BattleBpFlag????? +#define BATTLE_BP_JOIN ( 1 << 0 ) // · #define BATTLE_BP_PLAYER_MENU_NON ( 1 << 1 ) // ??????????? #define BATTLE_BP_BOOMERANG ( 1 << 2 ) // ????? #define BATTLE_BP_PET_MENU_NON ( 1 << 3 ) // ????????? -#define BATTLE_BP_ENEMY_SURPRISAL ( 1 << 4 ) // ??e???????????? -#define BATTLE_BP_PLAYER_SURPRISAL ( 1 << 5 ) // ???????e????? +#define BATTLE_BP_ENEMY_SURPRISAL ( 1 << 4 ) // ??自?▄?????自??????? +#define BATTLE_BP_PLAYER_SURPRISAL ( 1 << 5 ) // ??????自?▄????? // ?????????? #define BATTLE_BUF_SIZE 4 #define BATTLE_COMMAND_SIZE 4096 -// ????????? +// ???????更?? extern char BattleCmd[ BATTLE_COMMAND_SIZE ]; extern char BattleCmdBak[ BATTLE_BUF_SIZE ][ BATTLE_COMMAND_SIZE ]; -// ?????????????? +// ???????更??????? extern int BattleCmdReadPointer; extern int BattleCmdWritePointer; -// ??????????????? +// ???????更???????? //extern char BattleCmdBak[]; -// ???֢t?? +// ???┤更?? extern char BattleStatus[ BATTLE_COMMAND_SIZE ]; extern char BattleStatusBak[ BATTLE_BUF_SIZE ][ BATTLE_COMMAND_SIZE ]; -// ???֢t??????? +// ???┤更??????? extern int BattleStatusReadPointer; extern int BattleStatusWritePointer; -// ???֢t???????? +// ???┤更???????? //extern char BattleStatusBak[]; -// ???֢t???????? +// ???┤更???????? //extern char BattleStatusBak2[]; // ?????????? extern int battleMenuFlag2; -// ??k? +// 希???吻? extern int BattleMyNo; -// Pf????? +// ·卯??希??? extern int BattleMyMp; -// Pf????? +// ·卯????? extern int BattleEscFlag; // ???????????? extern int BattlePetStMenCnt; -// ӡP???k??????? +// ·???吻??????? extern int battlePetNoBak; -// ӡP???k???????? +// ·???吻???????? extern int battlePetNoBak2; // ????? extern int BattleBpFlag; -// ????V?????? +// ????向?????? extern int BattleAnimFlag; -// ?????? +// ?????? extern BOOL BattleTurnReceiveFlag; #ifdef PK_SYSTEM_TIMER_BY_ZHU extern BOOL BattleCntDownRest; @@ -71,10 +71,10 @@ extern DWORD BattleCntDown; #define BATTLE_CNT_DOWN_TIME 30000 #endif extern int BattleCliTurnNo; -// ??????????k? +// ??????????吻? extern int BattleSvTurnNo; -// Pf?????????? +// ·卯?????????? extern BOOL BattleResultWndFlag; #ifdef _HUNDRED_KILL @@ -83,25 +83,25 @@ extern BOOL BattleHundredFlag; // ????????? *********************************************************/ void BattleMenuProc( void ); -// ??????u??? *****************************************************/ +// ??????「??? *****************************************************/ void ClearBattleButton( void ); // ?????????? ********************************************************/ void InitBattleMenu( void ); -// ????V??????????? ********************************************/ +// ????向??????????? ********************************************/ void CheckBattleAnimFlag( void ); -// ???K?????? ********************************************/ +// ???匠?????? ********************************************/ int CheckBattle1P2P( void ); -// o?????? ***********************************************************/ +// ▊??????牙 ***********************************************************/ void HpMeterDisp( int no ); -// q? ************************************************************************/ +// ?〈?牙 ************************************************************************/ void BattleNameDisp( void ); -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (祥褫羲) Syu ADD 桵須撮夔賡醱 void BattleSetWazaHitBox( int no , int typeflag ) ; #endif #ifdef PK_SYSTEM_TIMER_BY_ZHU void BattleDown(); #endif -void battleMenuFix(void); // ޸սAIתBUG +void battleMenuFix(void); // 党葩桵須AI蛌遙腔BUG #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemvdeb.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemvdeb.h index 7271a6b..42b8599 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemvdeb.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/battlemvdeb.h @@ -1,4 +1,4 @@ -#if 0 +#if 0 "BJ|a0|m58|e188F8|e188FD|rA|rB|rF|r10|FF|BH|aF|r5|f2|d74|FF|BH|a10|r5|f20|d0|FF|BH|a5|rA|f202|dB6|gF|FF|BJ|aB|m46|e188F8|e188FE|rA|rB|rF|r10|FF|BR|A|1|BR|B|1|BR|F|1|BR|10|1|BV|A|2|", "BJ|a0|m4C|e188F8|e188FD|rA|rB|rF|r10|FF|BH|aF|r5|f2|d129|FF|BH|a5|rA|f20|d0|FF|BH|a10|r0|f2|dD7|FF|BH|aB|r0|f20|d0|r0|f20|d0|FF|BJ|aA|m4A|e188F8|e18902|rF|FF|", "BJ|a0|m40|e188F8|e188FD|rA|rB|rF|r10|FF|BM|B|1|BH|aF|r5|f2|d5C|FF|BH|a5|rB|fA|d22|FF|BH|a10|r0|f20|d0|FF|BD|rB|0|0|3A|bg|b|BJ|aA|m36|e188F8|e18902|rA|FF|", diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/battleproc.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/battleproc.h index b99b17e..2ddf0d3 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/battleproc.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/battleproc.h @@ -1,27 +1,27 @@ -/************************/ +/************************/ /* battleProc.h */ /************************/ #ifndef _BATTLE_PROC_H_ #define _BATTLE_PROC_H_ -// ??????? ??????k? +// ??????? ??????吻? enum{ - BATTLE_SUBPROC_INIT, // ???? - BATTLE_SUBPROC_IN_PRODUCE, // ??????? - BATTLE_SUBPROC_RECEIVE_BC, // ???r? - BATTLE_SUBPROC_CHAR_IN, // ?K? - BATTLE_SUBPROC_CMD_INPUT, // ?????V? - BATTLE_SUBPROC_RECEIVE_MOVIE, // ?????r? - BATTLE_SUBPROC_MOVIE, // ??????? - BATTLE_SUBPROC_OUT_PRODUCE_INIT, // ?????? - BATTLE_SUBPROC_OUT_PRODUCE, // ??? + BATTLE_SUBPROC_INIT, // ?ㄩ??? + BATTLE_SUBPROC_IN_PRODUCE, // ?ㄩ?????? + BATTLE_SUBPROC_RECEIVE_BC, // ?ㄩ??┴? + BATTLE_SUBPROC_CHAR_IN, // ?ㄩ仕? + BATTLE_SUBPROC_CMD_INPUT, // ?ㄩ????向? + BATTLE_SUBPROC_RECEIVE_MOVIE, // ?ㄩ????┴? + BATTLE_SUBPROC_MOVIE, // ?ㄩ?????? + BATTLE_SUBPROC_OUT_PRODUCE_INIT, // ?ㄩ????? + BATTLE_SUBPROC_OUT_PRODUCE, // ?ㄩ?? }; // ????????? extern BOOL EncountFlag; -// ?????? +// ??????? extern BOOL NoHelpFlag; -#ifdef _MAGIC_NOCAST//Ĭ +#ifdef _MAGIC_NOCAST//麥蘇 extern BOOL NoCastFlag; #endif // ??????????? diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/character.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/character.h index 27a1dc9..5175195 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/character.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/character.h @@ -1,4 +1,4 @@ -#ifndef _CHARACTER_H_ +#ifndef _CHARACTER_H_ #define _CHARACTER_H_ #include"action.h" @@ -6,68 +6,68 @@ enum { - CHR_STATUS_P = 0x0001, // + CHR_STATUS_P = 0x0001, //  CHR_STATUS_N = 0x0002, // ?? - CHR_STATUS_Q = 0x0004, // ? - CHR_STATUS_S = 0x0008, // ? + CHR_STATUS_Q = 0x0004, // ? + CHR_STATUS_S = 0x0008, // ? CHR_STATUS_D = 0x0010, // ?? CHR_STATUS_C = 0x0020, // ?? - CHR_STATUS_W = 0x0040, // ?????? + CHR_STATUS_W = 0x0040, // ?????? CHR_STATUS_H = 0x0080, // ?????? CHR_STATUS_LEADER = 0x0100, // ???? CHR_STATUS_PARTY = 0x0200, // ??????? - CHR_STATUS_BATTLE = 0x0400, // Pf? - CHR_STATUS_USE_MAGIC= 0x0800, // ? + CHR_STATUS_BATTLE = 0x0400, // ? + CHR_STATUS_USE_MAGIC= 0x0800, // ? CHR_STATUS_HELP = 0x1000, // ??? - CHR_STATUS_FUKIDASHI= 0x2000, // ??? - CHR_STATUS_WATCH = 0x4000, // ?P? - CHR_STATUS_TRADE = 0x8000, // + CHR_STATUS_FUKIDASHI= 0x2000, // ??? + CHR_STATUS_WATCH = 0x4000, // ?? + CHR_STATUS_TRADE = 0x8000, // 交易中 #ifdef _ANGEL_SUMMON - CHR_STATUS_ANGEL = 0x10000 // ʹ + CHR_STATUS_ANGEL = 0x10000 // 使者任务中 #endif }; enum -{ // ???????? +{ // ???????? CHAROBJ_TYPE_NPC = 0x0001, // NPC CHAROBJ_TYPE_ITEM = 0x0002, // ???? CHAROBJ_TYPE_MONEY = 0x0004, // ?? - CHAROBJ_TYPE_USER_NPC = 0x0008, // \?????? + CHAROBJ_TYPE_USER_NPC = 0x0008, // ?????? CHAROBJ_TYPE_LOOKAT = 0x0010, // ??? - CHAROBJ_TYPE_PARTY_OK = 0x0020, // ?????V?? - CHAROBJ_TYPE_ALL = 0x00FF // u? + CHAROBJ_TYPE_PARTY_OK = 0x0020, // ??????? + CHAROBJ_TYPE_ALL = 0x00FF // ? }; -// ???????k? +// ???????? enum { CHAR_TYPENONE, // ????? CHAR_TYPEPLAYER, // ????? - CHAR_TYPEENEMY, // + CHAR_TYPEENEMY, //  CHAR_TYPEPET, // ??? CHAR_TYPEDOOR, // ?? - CHAR_TYPEBOX , // ? - CHAR_TYPEMSG , // ?Y + CHAR_TYPEBOX , // ? + CHAR_TYPEMSG , // ? CHAR_TYPEWARP , // ?????? - CHAR_TYPESHOP , // + CHAR_TYPESHOP , //  CHAR_TYPEHEALER , // ???? - CHAR_TYPEOLDMAN , // ? - CHAR_TYPEROOMADMIN, // ۥh? + CHAR_TYPEOLDMAN , // ? + CHAR_TYPEROOMADMIN, // ? CHAR_TYPETOWNPEOPLE, // ????? - CHAR_TYPEDENGON, // ?\ - CHAR_TYPEADM, // ?\ + CHAR_TYPEDENGON, // ? + CHAR_TYPEADM, // ? CHAR_TYPETEMPLE, // Temple master CHAR_TYPESTORYTELLER, // ??? - CHAR_TYPERANKING, // ۥh???????? - CHAR_TYPEOTHERNPC, // ??\???n?????NPC - CHAR_TYPEPRINTPASSMAN, // ??????????NPC - CHAR_TYPENPCENEMY, // ?e - CHAR_TYPEACTION, // ??????T???NPC - CHAR_TYPEWINDOWMAN, // ???????NPC??????) + CHAR_TYPERANKING, // ???????? + CHAR_TYPEOTHERNPC, // ??????????NPC + CHAR_TYPEPRINTPASSMAN, // ??????????NPC + CHAR_TYPENPCENEMY, // ? + CHAR_TYPEACTION, // ?????????NPC + CHAR_TYPEWINDOWMAN, // ???????NPC??????) CHAR_TYPESAVEPOINT, // ??????? CHAR_TYPEWINDOWHEALER, // ????????????? - CHAR_TYPEITEMSHOP, // ? - CHAR_TYPESTONESHOP, // l????????? + CHAR_TYPEITEMSHOP, // ? + CHAR_TYPESTONESHOP, // ????????? CHAR_TYPEDUELRANKING, // DUEL?????NPC CHAR_TYPEWARPMAN, // ?????NPC CHAR_TYPEEVENT, // ????NPC @@ -80,16 +80,16 @@ enum typedef struct { - short use; // ??? - short type; // ? - int id; // ??????k? - int graNo; // ??????k? - int gx, gy; // ????? + short use; // ??? + short type; // ? + int id; // ??????? + int graNo; // ??????? + int gx, gy; // ????? int level; // ??? int dir; // ?? - int stockDir; // ?h???????????? - int stockDirX, stockDirY;// stockDir????? - short nameColor; // q?? + int stockDir; // ????????????? + int stockDirX, stockDirY;// stockDir????? + short nameColor; // ?? #ifdef _ANGEL_SUMMON unsigned status; // ????? #else @@ -97,23 +97,23 @@ typedef struct #endif int classNo; // ???????? int money; // ??? - char name[CHAR_NAME_LEN+1]; // q - char freeName[CHAR_FREENAME_LEN+1]; // ??????? - char info[64]; // ????????????ACTION?V?????????? - int battleNo; // Pfk? - short sideNo; // Pf?????????N????? + char name[CHAR_NAME_LEN+1]; //  + char freeName[CHAR_FREENAME_LEN+1]; // ??????? + char info[64]; // ????????????ACTION??????????? + int battleNo; // ? + short sideNo; // ?????????????? short helpMode; // ?????? - int charType; // ??????@e??N - short newFoundFlag; // D???????????????? + int charType; // ???????? + short newFoundFlag; // ???????????????? ACTION *ptAct; - int charNameColor; // ???????????q? + int charNameColor; // ???????????? // shan add - char fmname[CHAR_FMNAME_LEN+1]; // + char fmname[CHAR_FMNAME_LEN+1]; // 家族名称 // Robin char petName[CHAR_FREENAME_LEN+1]; int petLevel; -//#ifdef _CHAR_PROFESSION // WON ADD ְҵ +//#ifdef _CHAR_PROFESSION // WON ADD 人物职业 // int profession_class; //#endif @@ -121,10 +121,10 @@ typedef struct typedef struct { - int charObjTblId; // ????????k??V????? - unsigned int drawFukidashiTime; // ??????? - ACTION *ptActLeaderMark; // ???????? - ACTION *ptActMagicEffect; // ????? + int charObjTblId; // ??????????????? + unsigned int drawFukidashiTime; // ??????? + ACTION *ptActLeaderMark; // ???????? + ACTION *ptActMagicEffect; // ????? #ifdef __EMOTION ACTION *ptActEmotion; #endif @@ -165,18 +165,18 @@ typedef struct typedef struct { - short mode; // ????h???? - short moveDir; // ?h?????? - short preDir; // ???q??????? - short dirCnt; // ?Q??????? - int preGx, preGy; // ???q????? - int walkCnt; // ?h? - unsigned int createTime; // ??? + short mode; // ???????? + short moveDir; // ??????? + short preDir; // ?????????? + short dirCnt; // ???????? + int preGx, preGy; // ???????? + int walkCnt; // ?? + unsigned int createTime; // ??? ACTION *ptAct; ACTION *ptAct2; float angle; int r; - int id; // ??????k? + int id; // ??????? } PETEXTRA; #ifdef _NPC_MAGICCARD @@ -188,7 +188,7 @@ struct Posstruct int petY; int magic1X; int magic1Y; - //int offsetX; //ӫĻλʱ + //int offsetX; //荧幕有位移时的量 //int offsetY; }; @@ -203,7 +203,7 @@ void shiftBufCount( ACTION * ); ACTION *createCharAction( int, int, int, int ); -#ifdef _WATERANIMATION //Syu ADD ֮ +#ifdef _WATERANIMATION //Syu ADD 泪之海动画层 ACTION *createWaterAnimation( int , int , int , int ); #endif @@ -280,8 +280,8 @@ int checkCharObjPointStatus( int, int, short, unsigned short ); int checkCharObjPointNotStatus( int, int, short, unsigned short ); #endif -#ifdef _CHAR_PROFESSION // WON ADD ְҵ - #ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 + #ifdef _GM_IDENTIFY // Rog ADD GM识别 void setNpcCharObj( int, int, int, int, int, char *, char *, char *, int, char *, int, int, int, int, int, int, char *); #else #ifdef _NPC_PICTURE diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/chat.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/chat.h index 04ae8f2..37632dd 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/chat.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/chat.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* chat.h */ /************************/ #ifndef _CHAT_H_ @@ -7,45 +7,45 @@ #define STR_BUFFER_SIZE 260 // ??????????? #ifdef _NEW_RESOMODE #ifdef _SA_LIAOTIAN_ - #define MAX_CHAT_LINE 200 // + #define MAX_CHAT_LINE 200 // 聊天行数限制 #else - #define MAX_CHAT_LINE 20 // + #define MAX_CHAT_LINE 20 // 聊天行数限制 #endif #else - #define MAX_CHAT_LINE 20 // + #define MAX_CHAT_LINE 20 // 聊天行数限制 #endif -#define DEF_CHAT_LINE 20 // ??@e??????? +#define DEF_CHAT_LINE 20 // ????????? #define MAX_CHAT_HISTORY 64 // ??????????? -#define DEF_VOICE 3 // ???????? -#define MAX_VOICE 10 // ???????k +#define DEF_VOICE 3 // ???????? +#define MAX_VOICE 10 // ??????? #define NORMAL_TYPE 0 #define BLIND_TYPE 1 #define NUMBER_TYPE 2 -#ifdef _SAHOOK //Syu ADD Hookʽ +#ifdef _SAHOOK //Syu ADD Hook程式 #define HOOK_TYPE 3 #endif -// ????????Bl +// ???????? typedef struct{ - char buffer[ STR_BUFFER_SIZE ]; // ?????????? - unsigned char len; // ??? - unsigned char lineLen; // ?????? + char buffer[ STR_BUFFER_SIZE ]; // ?????????? + unsigned char len; // ??? + unsigned char lineLen; // ?????? unsigned char lineDist; // ????????????? - unsigned char cnt; // ?????? - unsigned char color; // ?? - unsigned char cursor; //αλ - int x, y; // ???? - int imeX, imeY; // ???????? - int fontPrio; // ??IT - BOOL filterFlag; // ??????????????? - int hitFontNo; // ???k?????????Re?? + unsigned char cnt; // ?????? + unsigned char color; // ?? + unsigned char cursor; //游标的位置 + int x, y; // ???? + int imeX, imeY; // ???????? + int fontPrio; // ?? + BOOL filterFlag; // ??????????????? + int hitFontNo; // ?????????????? }STR_BUFFER; typedef struct _CHAT_BUFFER{ - char buffer[ STR_BUFFER_SIZE + 1 ]; // ?????????? + char buffer[ STR_BUFFER_SIZE + 1 ]; // ?????????? unsigned char color; #ifdef _MO_CHAT_EXPRESSION int BmpNo; @@ -57,14 +57,14 @@ typedef struct _CHAT_BUFFER{ #endif }CHAT_BUFFER; -// ???????????Bl +// ??????????? typedef struct{ - char str[ MAX_CHAT_HISTORY ][ STR_BUFFER_SIZE + 1 ]; // ???????????? - int newNo; // ???????????k? - int nowNo; // ????????????k? + char str[ MAX_CHAT_HISTORY ][ STR_BUFFER_SIZE + 1 ]; // ???????????? + int newNo; // ???????????? + int nowNo; // ????????????? }CHAT_HISTORY; -// onlinegm¼ +// onlinegm问题输入纪录 typedef struct{ char str[115][STR_BUFFER_SIZE + 1 ]; int newNo; @@ -79,7 +79,7 @@ extern STR_BUFFER *pNowStrBuffer; // ????????? extern CHAT_BUFFER ChatBuffer[]; -// ?V???????? +// ????????? extern STR_BUFFER MyChatBuffer; // ?????????? @@ -88,15 +88,15 @@ extern int NowChatLine; // ?????????? extern int NowMaxChatLine; -// ????? +// ????? extern int NowMaxVoice; -/* һԪĿǰString buffer -parameter: c: Ԫ */ +/* 将单一字元储放至目前的输入String buffer +parameter: c: 字元 */ void StockStrBufferChar(char c); -/* ˫λԪԪĿǰString buffer -parameter: lpc: ˫λԪԪ */ +/* 将双位元字元储放至目前的输入String buffer +parameter: lpc: 双位元的字元 */ void StockStrBufferDBChar(char *lpc); /* ?????????????????????? */ @@ -117,7 +117,7 @@ void InitChat( void ); /* ???????? ************************************************************/ void ChatProc( void ); -// ??????????? **************************************************/ +// ??????????? **************************************************/ void FlashKeyboardCursor( void ); void KeyboardLeft(); @@ -129,9 +129,9 @@ void KeyboardReturn( void ); // ?????? ***************************************************************/ void KeyboardBackSpace( void ); -// ?????????V ****************************************************************/ +// ????????? ****************************************************************/ BOOL SaveChatHistoryStr( int no ); -// ???????????? ****************************************************************/ +// ???????????? ****************************************************************/ BOOL LoadChatHistoryStr( void ); BOOL LoadReadSayShield( void ); @@ -139,13 +139,13 @@ BOOL LoadReadNameShield( void ); bool CheckSay( const char* strSay, const char szReplace = '*' ); bool CheckName( const char* strSay/*, char* word*/ ); -// ?????????V????????? ********************************************/ +// ?????????????????? ********************************************/ void GetClipboad( void ); -// ??????????????????????? ***********************************/ +// ??????????????????????? ***********************************/ void SetClipboad( void ); int GetCharByte( char c ); -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 void StrToNowStrBuffer( char *str ); #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/directdraw.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/directdraw.h index c6623f0..e81aadd 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/directdraw.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/directdraw.h @@ -1,4 +1,4 @@ -#ifndef _DIRECT_DRAW_H_ +#ifndef _DIRECT_DRAW_H_ #define _DIRECT_DRAW_H_ #include "sprmgr.h" @@ -69,19 +69,19 @@ typedef struct { LPDIRECTDRAW lpDD; // DirectDraw?????? LPDIRECTDRAW2 lpDD2; // DirectDraw2?????? - LPDIRECTDRAWSURFACE lpFRONTBUFFER; // ???? + LPDIRECTDRAWSURFACE lpFRONTBUFFER; // 牙???? LPDIRECTDRAWSURFACE lpBACKBUFFER; // ????? #ifdef _READ16BITBMP LPDIRECTDRAWSURFACE lpBACKBUFFERSYS; #endif LPDIRECTDRAWCLIPPER lpCLIPPER; // ????? - DDSURFACEDESC ddsd; // ??????????????Ble? + DDSURFACEDESC ddsd; // ??????????????﹨▍叉? LPDIRECTDRAWPALETTE lpPALETTE; // ???? int xSize, ySize; // ????????? } DIRECT_DRAW; extern PALETTEENTRY Palette[256]; typedef struct{ - int palNo; // ????k? + int palNo; // ????吻? int time; // ????? int flag; // ?????? }PALETTE_STATE; diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/field.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/field.h index 989f74b..2f8392f 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/field.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/field.h @@ -1,13 +1,13 @@ -#ifndef _FIELD_H_ +#ifndef _FIELD_H_ #define _FIELD_H_ #include -// ?????????? -#define FIELD_BTN_PUSH_WAIT 500 // 0.5 +// ?????????? +#define FIELD_BTN_PUSH_WAIT 500 // 0.5 -// ????????? -#define FIELD_MAIL_LAMP_FLASH_TIME 1000 // 1?? +// ????????? +#define FIELD_MAIL_LAMP_FLASH_TIME 1000 // 1?? enum { @@ -33,7 +33,7 @@ enum #endif #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 FIELD_FUNC_CHATROOM, #endif @@ -62,55 +62,55 @@ enum #ifdef _PET_ITEM typedef struct SPetItemInfo { - int bmpNo; // ͼ - int color; // ɫ - char memo[ITEM_MEMO_LEN+1]; // ˵ - char name[ITEM_NAME_LEN+1]; // - char damage[16]; // ;ö + int bmpNo; // 图号 + int color; // 文字颜色 + char memo[ITEM_MEMO_LEN+1]; // 说明 + char name[ITEM_NAME_LEN+1]; // 名字 + char damage[16]; // 耐久度 }PetItemInfo; #endif #ifdef _STREET_VENDOR -#define MAX_SELL_ITEM 20 // ߼ӳﹲʮ +#define MAX_SELL_ITEM 20 // 道具加宠物共可卖二十个 typedef struct _Show_Sell_Item{ - int index; // - int pile; // - int price; // ۸ - bool needGetPrice; // ǷҪõ۸ - bool usage; // Ƿʹ - char name[ITEM_NAME_LEN+1]; // - char freeName[ITEM_NAME_LEN+1]; // - char kind; // ߻dz 0: 1: + int index; // 索引 + int pile; // 数量 + int price; // 价格 + bool needGetPrice; // 是否要得到价格 + bool usage; // 是否使用中 + char name[ITEM_NAME_LEN+1]; // 名字 + char freeName[ITEM_NAME_LEN+1]; // 名字 + char kind; // 道具或是宠物 0:道具 1:宠物 }Show_Sell_Item; typedef struct _Show_Vendor_Item{ - int bmpNo; // ͼ - int pile; // - int price; // ۸ - int color; // ɫ - int level; // ȼ - int maxhp,attack,defence,dex; // Χ - int earth,water,fire,wind,fidelity; // Լҳ϶ - int maxSkill; // 輼 - int index; // serverĴλ - bool usage; // Ƿʹ - bool bBuy; // ǷҪ - bool bGetData; // Ƿѽյϸ - char name[ITEM_NAME_LEN+1]; // - char freeName[ITEM_NAME_LEN+1]; // - char memo[ITEM_MEMO_LEN+1]; // ˵ - char damage[20]; // ;ö - char skillname[MAX_SKILL][SKILL_NAME_LEN+1]; // 輼 - char kind; // ߻dz 0: 1: - char trans; // ת + int bmpNo; // 图号 + int pile; // 数量 + int price; // 价格 + int color; // 文字颜色 + int level; // 等级 + int maxhp,attack,defence,dex; // 四围 + int earth,water,fire,wind,fidelity; // 四属性及忠诚度 + int maxSkill; // 宠技数量 + int index; // 在server的储存位置 + bool usage; // 是否使用中 + bool bBuy; // 是否要买 + bool bGetData; // 是否已接收到详细资料 + char name[ITEM_NAME_LEN+1]; // 名字 + char freeName[ITEM_NAME_LEN+1]; // 名字 + char memo[ITEM_MEMO_LEN+1]; // 说明 + char damage[20]; // 耐久度 + char skillname[MAX_SKILL][SKILL_NAME_LEN+1]; // 宠技名称 + char kind; // 道具或是宠物 0:道具 1:宠物 + char trans; // 转生数 #ifdef _PET_ITEM - PetItemInfo oPetItemInfo[MAX_PET_ITEM]; // ϵĵ + PetItemInfo oPetItemInfo[MAX_PET_ITEM]; // 宠物身上的道具 #endif #ifdef _NPC_ITEMUP int itemup; #endif #ifdef _PETCOM_ - int ylv,yhp,yack,ydef,ydex; //ʼΧ + int ylv,yhp,yack,ydef,ydex; //初始四围 #endif }Show_Vendor_Item; @@ -120,14 +120,14 @@ typedef struct _Show_Vendor_Item{ #define MAXMISSION 300 typedef struct _JOBDAILY{ - int JobId; // - char explain[200]; // ˵ - char state[10]; // ״̬ + int JobId; // 任务编号 + char explain[200]; // 任务说明 + char state[10]; // 状态 }JOBDAILY; #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 好友频道 extern short chatRoomBtn; extern short SelRoomBtn; #endif @@ -171,20 +171,20 @@ void drawFieldInfoWin( void ); void actionShortCutKeyProc( void ); -#ifdef _SPECIALSPACEANIM // Syu ADD ⳡ - #ifdef _SURFACE_ANIM //̬ʾ -//#define TOTAL_ANIM 5 // +#ifdef _SPECIALSPACEANIM // Syu ADD 特殊场景动画配置 + #ifdef _SURFACE_ANIM //动态地上物显示 +//#define TOTAL_ANIM 5 //阵列总量 #ifdef _SA_VERSION_25 - #define MAX_ANIM 256 //ͬһfloor޶ + #define MAX_ANIM 256 //同一个floor限定最大量动画数 #endif #else - #ifdef _MOON_FAIRYLAND // ROG ADD ֮ɾ - #define TOTAL_ANIM 5 // - #define MAX_ANIM 4 //ͬһfloorִAnim + #ifdef _MOON_FAIRYLAND // ROG ADD 月之仙境 + #define TOTAL_ANIM 5 //阵列总量 + #define MAX_ANIM 4 //同一个floor内现存最大量Anim #else - #define TOTAL_ANIM 1 // - #define MAX_ANIM 1 //ͬһfloorִAnim + #define TOTAL_ANIM 1 //阵列总量 + #define MAX_ANIM 1 //同一个floor内现存最大量Anim #endif #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/font.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/font.h index e808662..f1117c6 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/font.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/font.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* font.h */ /************************/ #ifndef _FONT_H_ @@ -12,15 +12,15 @@ #define FONT_SIZE2 19 #endif extern int FontZenkauWidth; -// S??????????? +// ??????????? extern int FontHankakuWidth; -/* ?????I?? fontPrio ?k ****************************************/ +/* ??????? fontPrio ? ****************************************/ enum{ - FONT_PRIO_BACK, /* ??? */ - FONT_PRIO_FRONT /* q? */ + FONT_PRIO_BACK, /* ??? */ + FONT_PRIO_FRONT /* ? */ -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի +#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架 , FONT_PRIO_AFRONT #endif #ifdef _CHANNEL_MODIFY @@ -28,13 +28,13 @@ enum{ #endif }; -// ??????????Bl +// ?????????? typedef struct{ - short x, y; // ? - char color; // - char str[ 256 ]; // ?? - UCHAR fontPrio; // ??I?? - BOOL hitFlag; // ???Re?????? ??? ???? + short x, y; // ? + char color; //  + char str[ 256 ]; // ?? + UCHAR fontPrio; // ???? + BOOL hitFlag; // ????????? ??:? ???:? #ifdef _FONT_SIZE int size; #endif @@ -47,10 +47,10 @@ extern FONT_BUFFER FontBuffer[]; extern int FontCnt; void FontPrint( char *moji, int x, int y, int dispPrio ); -// ???????? /////////////////////////////////////////////////////// +// ???????? /////////////////////////////////////////////////////// void FontPrintDec( char *moji, int x, int y, int dispPrio ); -/* ????ѩ????????? *********************************************/ +/* ????????????? *********************************************/ int StockFontBuffer( int x, int y, char fontPrio, int color, char *str, BOOL hitFlag ); #ifdef _MO_CHAT_EXPRESSION void NewStockFontBuffer(CHAT_BUFFER *chatbuffer,int x, unsigned char color,char *str, int size); diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/gemini.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/gemini.h index 9ebf251..bbb9fe8 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/gemini.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/gemini.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* gemini.h */ /************************/ #ifndef _GEMINI_ diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/handletime.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/handletime.h index c6ce813..7557e1c 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/handletime.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/handletime.h @@ -1,4 +1,4 @@ -#ifndef __HANDLETIME_H__ +#ifndef __HANDLETIME_H__ #define __HANDLETIME_H__ //#undef EXTERN @@ -31,9 +31,9 @@ #endif /*??????HiO?LS?????*/ -/* ??150()*60=9000=750*12 ? LS1T */ -/* LS1200?? LS1T */ -/* LS100T? LS1g */ +/* ??150(希)*60=9000企=750*12 ? LS1吋 */ +/* LS1200?? LS1吋 */ +/* LS100吋? LS1夙 */ typedef struct tagLSTIME { int year; @@ -55,13 +55,13 @@ extern LSTIME SaTime; extern long serverTime; extern long FirstTime; //the second extern long clientTime; //the third -extern int SaTimeZoneNo; // ?????q -extern BOOL TimeZonePalChangeFlag; // ??q?????????????? +extern int SaTimeZoneNo; // ?????┼ +extern BOOL TimeZonePalChangeFlag; // ??┼?????????????? void RealTimeToSATime( LSTIME *lstime ); /*void LSTimeToRealTime( LSTIME *lstime, long *t);*/ LSTIME_SECTION getLSTime (LSTIME *lstime); -// ??q??????????? ***********************************/ +// ??┼??????????? ***********************************/ void TimeZoneProc( void ); #endif /*__HANDLETIME_H__*/ diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/ime_sa.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/ime_sa.h index 199958b..6b5a3e9 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/ime_sa.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/ime_sa.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* ime.h */ /************************/ #ifndef _IME_H_ diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/init.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/init.h index 0f55c7d..735d535 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/init.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/init.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* init.h */ /************************/ #ifndef _INIT_H_ diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/loadrealbin.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/loadrealbin.h index 681d7eb..bcbcb97 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/loadrealbin.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/loadrealbin.h @@ -1,4 +1,4 @@ -#ifndef _LOADREALBIN_H_ +#ifndef _LOADREALBIN_H_ #define _LOADREALBIN_H_ #include "directdraw.h" void initAutoMapColor( char * ); @@ -39,30 +39,30 @@ int realGetSoundEffect(U4 GraphicNo); int realGetWalkSoundEffect(U4 GraphicNo); int realGetBitmapNo( int num ); typedef struct { - unsigned char atari_x,atari_y; //?? - unsigned short hit; // ɷ //??? + unsigned char atari_x,atari_y; //?? + unsigned short hit; // 可否行走 //??? short height; //????? short broken; //???? - short indamage; //VHP???? - short outdamage; //???? - short inpoison; //V - short innumb; //V??? - short inquiet; //V? - short instone; //V? - short indark; //V?? - short inconfuse; //V?? - short outpoison; //ҥ - short outnumb; //?? - short outquiet; //ң? - short outstone; //? - short outdark; //?? - short outconfuse; //?? - short effect1; //?????1??????????????? - short effect2; //?????2?V???????????? + short indamage; //HP???? + short outdamage; //???? + short inpoison; // + short innumb; //??? + short inquiet; //? + short instone; //? + short indark; //?? + short inconfuse; //?? + short outpoison; // + short outnumb; //?? + short outquiet; //? + short outstone; //? + short outdark; //?? + short outconfuse; //?? + short effect1; //?????1??????????????? + short effect2; //?????2????????????? unsigned short damy_a; unsigned short damy_b; unsigned short damy_c; - unsigned int bmpnumber; //??k? + unsigned int bmpnumber; //??? } MAP_ATTR; struct ADRNBIN{ @@ -78,17 +78,17 @@ struct ADRNBIN{ #ifdef _READ16BITBMP struct AddressBin_s{ - unsigned int bitmapno; // ͼ - unsigned int adder; // ͼصʼλַ - unsigned int palSize; // ɫϴС - unsigned int size; // һϵĴС - unsigned int alpha_size; // alpha_sizeΪ0ʾͼϺalpha,alpha_sizealphaϵĴС - // alpha_sizeΪ0ʾûдalpha + unsigned int bitmapno; // 图号 + unsigned int adder; // 资料在图素档里的起始位址 + unsigned int palSize; // 色盘资料大小 + unsigned int size; // 一笔资料的大小 + unsigned int alpha_size; // alpha_size不为0表示在图素资料后连着是alpha资料,alpha_size就是alpha资料的大小 + // 如果alpha_size为0表示没有带alpha资料 int xoffset; int yoffset; - unsigned int width; // ͼ - unsigned int height; // ͼ - unsigned int staturated; // ǷñЧ + unsigned int width; // 图宽 + unsigned int height; // 图高 + unsigned int staturated; // 是否用饱和效果 }; #endif @@ -130,23 +130,23 @@ static DWORD FontPal[FONT_PAL_NUM]={ }; /* -BOOL InitRealbinFileOpen( char *realbinfilename, char *addrbinfilename); //ʼrealbinϲصļ -//void SetCurFrame(); //ۼCurFramecounterÿframeִһ -void CacheRLU( int howlong); //ͷ̫ûʹõͼ -BOOL realGetNo( DWORD CharAction, DWORD *GraphicNo); //char actionתͼ -DWORD realGetNo2( DWORD bnum); //bnumתͼ -BOOL realIsValid( DWORD CharAction); //ͼǷЧ -DWORD realGetBitmapNo( DWORD num); //ͼתbnum -BOOL realGetPos( DWORD GraphicNo, short *x, short *y); //ȡGraphicNoxy offset -BOOL realGetWH( DWORD GraphicNo, short *w, short *h); //ȡGraphicNoĿ͸ -BOOL realGetHitPoints( DWORD GraphicNo, short *HitX, short *HitY); //ȡGraphicNoʵʿ͸ -BOOL realGetPrioType( DWORD GraphicNo , short *prioType); //ȡGraphicNoȨ -BOOL realGetHitFlag( DWORD GraphicNo, short *Hit); //ȡGraphicNoHit -BOOL realGetHeightFlag( DWORD GraphicNo, short *Height); //ȡGraphicNoǷи߶ -int realGetSoundEffect( DWORD GraphicNo); //ȡGraphicNoĻ -int realGetWalkSoundEffect( DWORD GraphicNo); //ȡGraphicNoĽŲ +BOOL InitRealbinFileOpen( char *realbinfilename, char *addrbinfilename); //初始化realbin的资料并配置相关的记忆体 +//void SetCurFrame(); //累加CurFrame的counter,请每个frame执行一次 +void CacheRLU( int howlong); //释放太久没使用的图档记忆体 +BOOL realGetNo( DWORD CharAction, DWORD *GraphicNo); //从char action转成图档编号 +DWORD realGetNo2( DWORD bnum); //从bnum转成图档编号 +BOOL realIsValid( DWORD CharAction); //检查图号是否有效 +DWORD realGetBitmapNo( DWORD num); //从图档编号转回bnum +BOOL realGetPos( DWORD GraphicNo, short *x, short *y); //取回GraphicNo的x和y offset +BOOL realGetWH( DWORD GraphicNo, short *w, short *h); //取回GraphicNo的宽和高 +BOOL realGetHitPoints( DWORD GraphicNo, short *HitX, short *HitY); //取回GraphicNo的实际宽和高 +BOOL realGetPrioType( DWORD GraphicNo , short *prioType); //取回GraphicNo的优先权种类 +BOOL realGetHitFlag( DWORD GraphicNo, short *Hit); //取回GraphicNo的Hit +BOOL realGetHeightFlag( DWORD GraphicNo, short *Height); //取回GraphicNo是否有高度 +int realGetSoundEffect( DWORD GraphicNo); //取回GraphicNo的环境音 +int realGetWalkSoundEffect( DWORD GraphicNo); //取回GraphicNo的脚步声 LPBYTE ReadRealBin( DWORD GraphicNo); -//realbin +//画出realbin BOOL DrawScaleImage( DWORD GraphicNo, int screenx, int screeny, int screenw, int screenh, LPWORD dest, int destw, int desth, int pitch, LPWORD pal); */ diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/loadsprbin.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/loadsprbin.h index 9f9a524..365ce00 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/loadsprbin.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/loadsprbin.h @@ -1,7 +1,7 @@ -#ifndef _SPRITE_H_ +#ifndef _SPRITE_H_ #define _SPRITE_H_ -//??????????e?????? +//???????????????? #define mxSPRITE 40000 #define maxBUFFER 1024*1024*6 @@ -19,48 +19,48 @@ typedef float F4; typedef double F8; typedef enum { - ANIM_ATTACK, // - ANIM_DAMAGE, // - ANIM_DEAD, // - ANIM_STAND, //վ - ANIM_WALK, // - ANIM_SIT, // - ANIM_HAND, // - ANIM_HAPPY, // - ANIM_ANGRY, // - ANIM_SAD, // - ANIM_GUARD, // - ANIM_NOD, //ͷ - ANIM_THROW, //Ͷ + ANIM_ATTACK, //攻击 + ANIM_DAMAGE, //受伤 + ANIM_DEAD, //死亡 + ANIM_STAND, //站立 + ANIM_WALK, //行走 + ANIM_SIT, //坐下 + ANIM_HAND, //挥手 + ANIM_HAPPY, //高兴 + ANIM_ANGRY, //生气 + ANIM_SAD, //伤心 + ANIM_GUARD, //防守 + ANIM_NOD, //点头 + ANIM_THROW, //投掷 ANIM_LIST_ } ANIM_LIST; -// 1?????ѩ +// 1????? typedef struct { - U4 BmpNo; //AdrnͼƬ - S2 PosX,PosY; //ͼƬʾʱxyƫ - U2 SoundNo; // С10000Ч,ʾҪЧ;ڵ10000С10100Ҫʾ˺Ч,ֻЧ - // ڵ10100????k? -} FRAMELIST;//һ֡ľϢ + U4 BmpNo; //Adrn图片编号 + S2 PosX,PosY; //图片显示时的x,y偏移 + U2 SoundNo; // 小于10000代表音效编号,表示要放音效;大于等于10000小于10100代表要显示伤害效果,数字或其他效果 + // 大于等于10100代表连击????? +} FRAMELIST;//一帧动作的具体信息 typedef struct { - U2 dir; // (0-8) - U2 no; // ķANIM_LISTĶ - U4 dtAnim; // ζѭĺʱ - U4 frameCnt; // FRAMELIST + U2 dir; // 动作方向(0-8) + U2 no; // 动作的分类见后面的ANIM_LIST的定义 + U4 dtAnim; // 次动作循环的耗时 + U4 frameCnt; // FRAMELIST的数量 FRAMELIST *ptFramelist; } ANIMLIST; -// SPR??tѩ +// SPR?? typedef struct { - U4 sprNo; // Spr - U4 offset; // ָspr.binеĵַ - U2 animSize; // ɫжٸĶ + U4 sprNo; // Spr序号 + U4 offset; // 指明在spr.bin中的地址 + U2 animSize; // 脚色有多少个完整的动作 } SPRADRN; @@ -85,10 +85,10 @@ typedef struct { typedef struct { - U2 dir; // (0-8) - U2 no; // ķANIM_LISTĶ - U4 dtAnim; // һζѭĺʱ - U4 frameCnt; // + U2 dir; // 动作方向(0-8) + U2 no; // 动作的分类见后面的ANIM_LIST的定义 + U4 dtAnim; // 一次动作循环的耗时 + U4 frameCnt; // 动作桢的数量 } ANIM_HEADER; diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/login.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/login.h index 00e8214..6d9f7e6 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/login.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/login.h @@ -1,4 +1,4 @@ -#ifndef _LOGIN_H_ +#ifndef _LOGIN_H_ #define _LOGIN_H_ #include "version.h" #include "action.h" @@ -9,17 +9,17 @@ enum { WINDOW_MESSAGETYPE_MESSAGE, // ??????? - WINDOW_MESSAGETYPE_MESSAGEANDLINEINPUT, // ????????V? - WINDOW_MESSAGETYPE_SELECT, // k????? - WINDOW_MESSAGETYPE_PETSELECT, // ???k????? - WINDOW_MESSAGETYPE_PARTYSELECT, // ??k????? - WINDOW_MESSAGETYPE_PETANDPARTYSELECT, // ??????k????? - WINDOW_MESSAGETYPE_ITEMSHOPMENU, // ??????????? - WINDOW_MESSAGETYPE_ITEMSHOPMAIN, // ?????????? - WINDOW_MESSAGETYPE_LIMITITEMSHOPMAIN, // ???M??????????????? + WINDOW_MESSAGETYPE_MESSAGEANDLINEINPUT, // ????????? + WINDOW_MESSAGETYPE_SELECT, // ????? + WINDOW_MESSAGETYPE_PETSELECT, // ???????? + WINDOW_MESSAGETYPE_PARTYSELECT, // ??????? + WINDOW_MESSAGETYPE_PETANDPARTYSELECT, // ??????????? + WINDOW_MESSAGETYPE_ITEMSHOPMENU, // ??????????? + WINDOW_MESSAGETYPE_ITEMSHOPMAIN, // ?????????? + WINDOW_MESSAGETYPE_LIMITITEMSHOPMAIN, // ?????????????????? WINDOW_MESSAGETYPE_PETSKILLSHOP, // ????????????? - WINDOW_MESSAGETYPE_WIDEMESSAGE, // ??????????? - WINDOW_MESSAGETYPE_WIDEMESSAGEANDLINEINPUT, // ????????V????? + WINDOW_MESSAGETYPE_WIDEMESSAGE, // ??????????? + WINDOW_MESSAGETYPE_WIDEMESSAGEANDLINEINPUT, // ????????????? WINDOW_MESSAGETYPE_POOLITEMSHOPMENU, // ????????????????? WINDOW_MESSAGETYPE_POOLITEMSHOPMAIN, // ????????????????? @@ -66,7 +66,7 @@ enum #ifdef _BLACK_MARKET WINDOW_MESSAGETYPE_BLACKMARKET, #endif -#ifdef _ADD_FAMILY_TAX // WON ADD ׯ԰˰ +#ifdef _ADD_FAMILY_TAX // WON ADD 增加庄园税收 WINDOWS_MESSAGETYPE_FAMILY_TAX, #endif #ifdef _NPC_FUSION @@ -82,16 +82,16 @@ enum WINDOWS_MESSAGETYPE_SELLSTHSELL, #endif -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业技能 WINDOW_MESSAGETYPE_PROFESSIONSHOP, #endif -#ifdef _NPC_WELFARE_2 // WON ADD ְҵNPC-2 +#ifdef _NPC_WELFARE_2 // WON ADD 职业NPC-2 WINDOW_MESSAGETYPE_PROFESSIONSHOP2, #endif #ifdef _NEW_MANOR_LAW - WINDOW_FMMESSAGETYPE_10_MEMONTUM, // ʮƼ - WINDOW_FMMESSAGETYPE_FM_MEMONTUM, // Լ - WINDOW_FMMESSAGETYPE_MANOR_SCHEDULE, // սׯ԰ + WINDOW_FMMESSAGETYPE_10_MEMONTUM, // 十大气势家族 + WINDOW_FMMESSAGETYPE_FM_MEMONTUM, // 自己家族气势排名 + WINDOW_FMMESSAGETYPE_MANOR_SCHEDULE, // 挑战庄园排行 #endif #ifdef _ANGEL_SUMMON @@ -194,9 +194,9 @@ void selectpkProc( void ); #ifdef _NEWSHOP_ typedef struct { - char MD5[64]; - char * ̳; -}̳ļ_; + char MD5码[64]; + char * 商城数据; +}商城文件_; #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/lssproto_cli.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/lssproto_cli.h index 5e4f7c5..60a6391 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/lssproto_cli.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/lssproto_cli.h @@ -1,4 +1,4 @@ -/* output by ./lsgen.perl 0.41 ( 1998 May) +/* output by ./lsgen.perl 0.41 ( 1998 May) * made Mon Jun 12 11:17:33 2000 * user kawata * host unicorn.lan.titan.co.jp @@ -145,7 +145,7 @@ void lssproto_TD_recv( int fd, char *data ) ; void old_lssproto_FM_send( int fd, char *data ) ; void lssproto_FM_recv( int fd, char *data ) ; #ifdef _FIX_DEL_MAP -void lssproto_DM_send(int fd); // WON ADD ҳͼͼ +void lssproto_DM_send(int fd); // WON ADD 俙模喲華芞冞潼郜 #endif //#endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/lssproto_util.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/lssproto_util.h index 8e7d7a1..a693883 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/lssproto_util.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/lssproto_util.h @@ -1,4 +1,4 @@ -#ifndef _LSSPROTOUTIL_H_ +#ifndef _LSSPROTOUTIL_H_ #define _LSSPROTOUTIL_H_ #include #include diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/magicitem.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/magicitem.h index 2981491..732c232 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/magicitem.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/magicitem.h @@ -1,4 +1,4 @@ -void InitMagicItemWin(char * ); +void InitMagicItemWin(char * 囀); ACTION* CreateMagicItemWin(); ACTION* ShowMagicItemData(); diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/main.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/main.h index 0962415..f5a140b 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/main.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/main.h @@ -1,4 +1,4 @@ -// main.cpp ??????? +// main.cpp ??????? #ifndef _MAIN_H_ #define _MAIN_H_ @@ -6,7 +6,7 @@ #include "version.h" //---------------------------------------------------------------------------// -// ?? ????define)L? // +// ?? ㄩ????define)‥? // //---------------------------------------------------------------------------// extern int DEF_APPSIZEX; @@ -15,7 +15,7 @@ extern int SCREEN_WIDTH_CENTER; extern int SCREEN_HEIGHT_CENTER; //---------------------------------------------------------------------------// -// ?? ????????L? // +// ?? ㄩ????????‥? // //---------------------------------------------------------------------------// int PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ); // ????? @@ -23,14 +23,14 @@ int PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lp LRESULT CALLBACK PASCAL WindMsgProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam ); //?????????? BOOL SystemTask( void ); // ?????????? -// ?????? +// ?????阪? extern HWND hWnd; // ????????? extern BOOL WindowMode; // ???????? extern int ResoMode; -extern int LowResoCmdFlag; // ??T???????? +extern int LowResoCmdFlag; // ??冉阪???????? extern int CmdShow; // Wi5nMain?????????????? extern LPSTR CmdLine; // WinMain????????????????????? -extern HANDLE hMutex; // i??h??????????????? +extern HANDLE hMutex; // 可??去??????????????? extern char realBinName[]; extern char adrnBinName[]; diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/map.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/map.h index e5c8f40..870bf64 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/map.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/map.h @@ -1,45 +1,45 @@ -#ifndef _MAP_H_ +#ifndef _MAP_H_ #define _MAP_H_ -// ????????????d???????nd?? +// ????????????????????? #define MAP_TILE_GRID_X1 -20 -#define MAP_TILE_GRID_X2 +17 // Z????? +#define MAP_TILE_GRID_X2 +17 // ????? #define MAP_TILE_GRID_Y1 -16 -#define MAP_TILE_GRID_Y2 +21 // Z????? +#define MAP_TILE_GRID_Y2 +21 // ????? -// ?????? +// ?????? #define MAP_X_SIZE (MAP_TILE_GRID_X2 - MAP_TILE_GRID_X1) #define MAP_Y_SIZE (MAP_TILE_GRID_Y2 - MAP_TILE_GRID_Y1) // ???????? #define GRID_SIZE 64 -// ?hLT +// ? #define MOVE_SPEED 4 #define MOVE_FRAME (GRID_SIZE/MOVE_SPEED) -// ????k? +// ????? enum { - EVENT_NONE, // ?????D??? - EVENT_NPC, // ?eNPC - EVENT_ENEMY, // ?e?????? + EVENT_NONE, // ???????? + EVENT_NPC, // ?NPC + EVENT_ENEMY, // ??????? EVENT_WARP, // ??? EVENT_DOOR, // ?? - EVENT_ALTERRATIVE, // ??????l??????????????? - EVENT_WARP_MONING, // ?e??? - EVENT_WARP_NOON, // ??e??? - EVENT_WARP_NIGHT, // ??e??? + EVENT_ALTERRATIVE, // ????????????????????? + EVENT_WARP_MONING, // ???? + EVENT_WARP_NOON, // ????? + EVENT_WARP_NIGHT, // ????? - EVENT_END // ????k???? + EVENT_END // ???????? }; // ??????? #define MAP_READ_FLAG 0x8000 // ??????????????????? -#define MAP_SEE_FLAG 0x4000 // ???????????????? +#define MAP_SEE_FLAG 0x4000 // ???????????????? -// ????? +// ????? #define FLOOR_NAME_LEN 24 extern char nowFloorName[]; @@ -112,7 +112,7 @@ void setMap( int, int, int ); void setWarpMap( int, int ); BOOL mapCheckSum( int, int, int, int, int, int, int, int ); -#ifdef _NEWDRAWBATTLEMAP // (ɿ) Syu ADD ԶBattleMap +#ifdef _NEWDRAWBATTLEMAP // (不可开放) Syu ADD 自动产生BattleMap void ddrawBattleMap( void ); #endif void drawMap( void ); diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/math2.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/math2.h index df311cd..3eee099 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/math2.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/math2.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* math2.h */ /************************/ #ifndef _MATH2_H_ @@ -8,26 +8,26 @@ #define ABS(a) ( ( (a)<0 ) ? -(a) : (a) ) -/* ?T ? ?? ??? ??? ?*******************************************************/ +/* ?冉 ? ?? ??? ??? ?*******************************************************/ void AdjustDir( float *dir ); void AdjustDir( int *dir ); -/* ????????????? ***********************************************************/ +/* ????????????? ***********************************************************/ float SinT( float theat ); -/* ????????????? ***********************************************************/ +/* ????????????? ***********************************************************/ float CosT( float theat ); /* ????????? *********************************************************************/ float Atan( float x, float y ); -/* ?????D *************************************************************************/ +/* ?????伶 *************************************************************************/ int Rnd( int min, int max ); void initRand2( void ); int rand2( void ); -/* ????????? *******************************************************************/ +/* ?????????? *******************************************************************/ float pointLen( float x1, float y1, float x2, float y2 ); float pointLen2( float x1, float y1, float x2, float y2 ); diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/menu.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/menu.h index 967cef0..f08d5e5 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/menu.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/menu.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* menu.h */ /************************/ #ifndef _MENU_H_ @@ -7,7 +7,7 @@ #include "pc.h" #include "chat.h" -#ifdef _TELLCHANNEL //ROG ADD Ƶ +#ifdef _TELLCHANNEL //ROG ADD 躇逄耋 #include "netproc.h" #endif @@ -18,46 +18,46 @@ #endif #define MENU_MAP_0 3 -#define MAIL_STR_LEN 140 // ?????? -#define MAIL_DATE_STR_LEN 20 // T????? +#define MAIL_STR_LEN 140 // ???更???? +#define MAIL_DATE_STR_LEN 20 // 吋至?更????? #define MAIL_MAX_HISTORY 20 // ????? -#define MAX_CHAT_REGISTY_STR 8 // ??????K??? +#define MAX_CHAT_REGISTY_STR 8 // ?????更?仕??? -// ??????????Bl +// ??????????﹨▍ typedef struct{ - int x, y; // ? - int defX, defY; // ?????? - int bmpNo; // ??k? - int dispPrio; // ?I + int x, y; // 牙?火 + int defX, defY; // ??????火 + int bmpNo; // ??吻? + int dispPrio; // 牙?! BOOL dragFlag; // ??????? - BOOL mixFlag; // ???? + BOOL mixFlag; // ???? }ITEM_BUFFER; -// ???????Bl +// ???????﹨▍ typedef struct{ - char str[ MAIL_MAX_HISTORY ][ MAIL_STR_LEN + 1 ]; // ???????? - char dateStr[ MAIL_MAX_HISTORY ][ MAIL_DATE_STR_LEN + 1 ]; // T??? - int noReadFlag[ MAIL_MAX_HISTORY ]; // t??????????????k?? - int petLevel[ MAIL_MAX_HISTORY ]; // ??????????k? - char petName[ MAIL_MAX_HISTORY ][ PET_NAME_LEN + 1 ]; // ????q - int itemGraNo[ MAIL_MAX_HISTORY ]; // ?????????????k? - int newHistoryNo; // ????k? + char str[ MAIL_MAX_HISTORY ][ MAIL_STR_LEN + 1 ]; // ??????更?? + char dateStr[ MAIL_MAX_HISTORY ][ MAIL_DATE_STR_LEN + 1 ]; // 吋至?更?? + int noReadFlag[ MAIL_MAX_HISTORY ]; // ???????????????吻?? + int petLevel[ MAIL_MAX_HISTORY ]; // ??????????吻? + char petName[ MAIL_MAX_HISTORY ][ PET_NAME_LEN + 1 ]; // ?????〈 + int itemGraNo[ MAIL_MAX_HISTORY ]; // ??????????????吻? + int newHistoryNo; // ????吻? }MAIL_HISTORY; -// ????????????Bl +// ?????牙????????﹨▍ typedef struct{ int sizeX,sizeY; // ??? - int titleNo; // ????k? - int titleX, titleY; // ?????? - int mx, my; // ?? - int nowX, nowY; // ?????? - int cnt; // ?? - int wndType; // ??????? - int hitFlag; // ???Re??? - int yesDispNo; // ??????Rek? - int noDispNo; // ???????Rek? - int boxDispPrio; // ???????I?? - int yesNoResult; // YesNo???????? ???? + int titleNo; // ????吻? + int titleX, titleY; // ??????火 + int mx, my; // ??火 + int nowX, nowY; // ??????? + int cnt; // ??火 + int wndType; // ??????? + int hitFlag; // ???刪叉???? + int yesDispNo; // ??????刪叉吻? + int noDispNo; // ???????刪叉吻? + int boxDispPrio; // ???????牙?!?? + int yesNoResult; // YesNo?????ㄩ??? ?ㄩ??? }WINDOW_DISP; #if defined(__ALBUM_47) @@ -710,64 +710,64 @@ typedef struct{ #define MAX_PET_KIND_14 353 #define MAX_PET_KIND 357 #else -#define MAX_PET_KIND 10000 // ????? +#define MAX_PET_KIND 10000 // ????? #define MAX_PET_TBL 181 // ??????????? #endif -#define MAX_PET_PAGE_SIZE 8 // ????????????? +#define MAX_PET_PAGE_SIZE 8 // ?????牙???????? #ifdef _PET_ITEM -#define MAX_PET_SPECIES 42 // +#define MAX_PET_SPECIES 42 // 唾昜昜笱杅講 #endif -// ????????????hk? +// ????????????去吻? enum{ - ANIM_DISP_PET, // ??? - ANIM_DISP_PET_SEND, // ?????????????h - ANIM_DISP_PET_RECIEVE, // ???????????h + ANIM_DISP_PET, // ???牙 + ANIM_DISP_PET_SEND, // ??????????????去 + ANIM_DISP_PET_RECIEVE, // ?????????????去 - ANIM_DISP_PET_MAIN, // ?????hk?? - ANIM_DISP_PET_WALK, // ? - ANIM_DISP_PET_STAND, // r? + ANIM_DISP_PET_MAIN, // ?????去︻??? + ANIM_DISP_PET_WALK, // 卷? + ANIM_DISP_PET_STAND, // ┴? ANIM_DISP_PET_ATTACK, // ?? ANIM_DISP_PET_GUARD, // ??? ANIM_DISP_PET_DAMAGE, // ???? - ANIM_DISP_PET_DEAD, // ? - ANIM_DISP_PET_ITEM, // ??????? + ANIM_DISP_PET_DEAD, // ?昀 + ANIM_DISP_PET_ITEM, // ???????牙 - ANIM_DISP_LETTER_MOVE, // ??h - ANIM_DISP_LETTER, // ???????? + ANIM_DISP_LETTER_MOVE, // ??去 + ANIM_DISP_LETTER, // ???????? - ANIM_DISP_MIX_PET_INIT, // ??????? - ANIM_DISP_MIX_PET_MOVE, // ?????????h - ANIM_DISP_MIX_PET_MOJI, // ??????????????? + ANIM_DISP_MIX_PET_INIT, // ??????? + ANIM_DISP_MIX_PET_MOVE, // ?????????去 + ANIM_DISP_MIX_PET_MOJI, // ??????????????? #ifdef _THEATER - ANIM_DISP_THEATER_NPC, // 糡NPCʾ + ANIM_DISP_THEATER_NPC, // 曄部NPC珆尨 #endif -#ifdef _AniCrossFrame // Syu ADD ι +#ifdef _AniCrossFrame // Syu ADD 雄賒脯蚔徹賒醱汜昜 ANIM_DISP_CROSSFRAME = 18, #endif - ANIM_DISP_MIX_PET_END, // ??????? + ANIM_DISP_MIX_PET_END, // ???????? }; -// ?????Bl +// ?????﹨▍ typedef struct{ - char name[ PET_NAME_LEN + 1 ]; // ????q - char freeName[ PET_NAME_LEN + 1 ]; // ?????? - int faceGraNo; // ???????????k? + char name[ PET_NAME_LEN + 1 ]; // ?????〈 + char freeName[ PET_NAME_LEN + 1 ]; // ??????? + int faceGraNo; // ???????????吻? int level; // ??? - int maxHp; // ??? + int maxHp; // ???? int str; // ??? - int quick; // ?? - int def; // \?? - int earth, water, fire, wind; // ??? - int flag; // K???????????? ??? ?????? ?K??? ? + int quick; // ??? + int def; // ?? + int earth, water, fire, wind; // ??? + int flag; // 仕??????ㄩ?????? ?ㄩ?? ?ㄩ????? ?ㄩ仕??? ? }PET_ALBUM; -// ????????????????Bl +// ????????????????﹨▍ typedef struct{ - int albumNo; // ?????????k? - char name[ PET_NAME_LEN + 1 ]; // ????q - int faceGraNo; // ???????????k? + int albumNo; // ?????????吻? + char name[ PET_NAME_LEN + 1 ]; // ?????〈 + int faceGraNo; // ???????????吻? }PET_ALBUM_TBL; @@ -779,27 +779,27 @@ extern unsigned int MenuToggleFlag; extern ITEM_BUFFER ItemBuffer[]; // ???????????? extern int StatusUpPoint; -// ӡP????????????? +// ·???阪?????????? extern BOOL BattlePetReceiveFlag; #ifdef _STANDBYPET extern BOOL StandbyPetSendFlag; #endif -// ????????k? +// ????????吻? extern int BattlePetReceivePetNo; -// ???????? +// ??????更?? extern MAIL_HISTORY MailHistory[]; -// ??????K??V?????? +// ?????更?仕??向?????? extern STR_BUFFER chatRegistryStr[]; -// ????V??? +// ????向?更?? extern STR_BUFFER MailStr; // ?????????????? extern ACTION *pActMenuWnd3; -// ??????K??V?????? +// ?????更?仕??向?????? extern STR_BUFFER chatRegistryStr[]; -// ?????????? +// ????????更?? extern STR_BUFFER shougouChange; -#ifdef _MONEYINPUT //Syu ADD ֶǮ +#ifdef _MONEYINPUT //Syu ADD 忒雄怀踢講 extern STR_BUFFER MymoneyBuffer; #endif #ifdef _ITEM_JIGSAW @@ -817,35 +817,35 @@ typedef enum{ }MAIL_WND_TYPE; extern STR_BUFFER TradeBuffer; -// ????q???? +// ?????〈阪??更?? extern STR_BUFFER petNameChange; // Terry add 2002/01/04 #ifdef __EDEN_AUCTION -extern STR_BUFFER AuctionStr; // ,50 -extern STR_BUFFER AuctionMoney; // Ǯһ +extern STR_BUFFER AuctionStr; // 鼴闖唦扴僕,50跺趼 +extern STR_BUFFER AuctionMoney; // 鼴闖歎郔嗣珨啃勀 #endif // Terry end -// ????????????????k? +// ???????牙?????????吻? extern int petStatusNo; -extern int mailHistoryWndPageNo; // ???????????k? -extern int mailHistoryWndSelectNo; // k?????k? -//extern int mailReceivePetGraNo; // ??????????????????k? +extern int mailHistoryWndPageNo; // ???????????吻? +extern int mailHistoryWndSelectNo; // ︻???????吻? +//extern int mailReceivePetGraNo; // ??????????????????吻? -// Pf??h????????????? +// ·卯??去????????牙????? extern int MapWmdFlagBak; -// Pf?????????????????? -#define RESULT_WND_CLOSE_TIME 300 // ? -// Pf????????????????? +// ·卯?????????????????? +#define RESULT_WND_CLOSE_TIME 300 // ?企 +// ·卯????????????????? extern int ResultWndTimer; -// ?????? +// ?????? extern BOOL ItemMixRecvFlag; // ??????? extern int MouseCursorFlag; -#ifdef _TRADETALKWND // (ɿ) Syu ADD Ի +#ifdef _TRADETALKWND // (祥褫羲) Syu ADD 蝠眢陔崝勤趕遺殤 void TradeTalk ( char *msg ) ; #endif @@ -857,56 +857,56 @@ void InitMenu( void ); // ??????????? *******************************************************/ void InitMenu2( void ); -// ??????????? *******************************************************/ +// ??????????? *******************************************************/ BOOL CheckMenuFlag( void ); // ?????? ***************************************************************/ void MenuProc( void ); -// ????????? ***************************************************/ +// ?????牙???? ***************************************************/ ACTION *MakeWindowDisp( int x, int y, int sizeX, int sizeY, int titleNo, int wndType -#ifdef _NEW_RESOMODE //800 600ģʽ +#ifdef _NEW_RESOMODE //800 600耀宒 , BOOL fixType = TRUE #endif ); -// ???Re????? ******************************************************/ +// ???刪叉????? ******************************************************/ BOOL MakeHitBox( int x1, int y1, int x2, int y2, int dispPrio ); -// ???????V ****************************************************************/ +// ???????卒㎏ ****************************************************************/ BOOL SaveMailHistory( int no ); -// ?????????? ****************************************************************/ +// ??????????? ****************************************************************/ BOOL LoadMailHistory( void ); -// ???t???? ****************************************************************/ +// ???????? ****************************************************************/ BOOL CheckMailNoReadFlag( void ); -// ??????????^M?? **************************************************/ +// ??????????兣?﹐?? **************************************************/ void InitOhtaParam( void ); -// ????????? **********************************************************/ +// ????????? **********************************************************/ void DeathLetterAction( void ); -// ?????K???V ****************************************************************/ +// ?????仕?更??卒㎏ ****************************************************************/ BOOL SaveChatRegistyStr( void ); -// ?????K?????? ****************************************************************/ +// ?????仕?更?????? ****************************************************************/ BOOL LoadChatRegistyStr( void ); -// ?????????? *****************************************************/ +// 更?????????? *****************************************************/ void CenteringStr( char *inStr, char *outStr, int max ); -// ????????? ****************************************************************/ +// ????????? ****************************************************************/ void CheckNewPet( int sprNo ); -// Pf?????????? **********************************************************/ +// ·卯?????????? **********************************************************/ void CheckBattleNewPet( void ); -// ???????? ****************************************************************/ +// ????????? ****************************************************************/ BOOL LoadAlbum( void ); -// ?????V ****************************************************************/ +// ?????卒㎏ ****************************************************************/ BOOL SaveAlbum( int no ); ACTION *MakeAnimDisp( int x, int y, int sprNo, int mode ); @@ -918,7 +918,7 @@ void BankmanWN( void ); void closeBankman( void ); #endif -#ifdef _TELLCHANNEL //ROG ADD Ƶ +#ifdef _TELLCHANNEL //ROG ADD 躇逄耋 void InitSelectChar( char *msg, BOOL endFlag); void SelectChar( void ); void DeathTellChannel( void ); @@ -927,12 +927,12 @@ extern char secretName[32]; #endif -#ifdef _FRIENDCHANNEL //ROG ADD Ƶ +#ifdef _FRIENDCHANNEL //ROG ADD 疑衭耋 #define MAX_ROOM_NUM 50 extern bool setRoomFlag; -extern bool secretFlag; // +extern bool secretFlag; //躇逄梓 extern int selChar; -extern ACTION *pChtChanlWnd; //Ӵ +extern ACTION *pChtChanlWnd; //謐毞弅弝敦 extern ACTION *pSelChanlWnd; void SelectChatRoom( void ); void InitSelChatRoom(char *msg); @@ -940,9 +940,9 @@ void InitCreateChatRoom(char *msg); void ChatRoomWnd(void); void initAssentWnd(char *data); void AssentWnd(void); -extern STR_BUFFER chatRoomName; // +extern STR_BUFFER chatRoomName; //謐毞弅靡備 extern ACTION *pSetRoomWnd; -void setRoomName(void); //趨 +void setRoomName(void); //扢隅謐毞弅靡備 #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/mouse.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/mouse.h index fe923ec..e156c2c 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/mouse.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/mouse.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* mouse.h */ /************************/ #ifndef _MOUSE_H_ @@ -6,84 +6,84 @@ //#include "menu.h" -// ????֢t +// ????┤ #define MOUSE_NO_CRICK 0 // ??????? -#define MOUSE_LEFT_CRICK ( 1 << 0 ) // ?????֢t -#define MOUSE_RIGHT_CRICK ( 1 << 1 ) // ?????֢t -#define MOUSE_LEFT_CRICK_UP ( 1 << 2 ) // ????????֢t -#define MOUSE_RIGHT_CRICK_UP ( 1 << 3 ) // ????????֢t -#define MOUSE_LEFT_DBL_CRICK ( 1 << 4 ) // ????????֢t -#define MOUSE_RIGHT_DBL_CRICK ( 1 << 5 ) // ????????֢t -//#define MOUSE_LEFT_AUTO_CRICK ( 1 << 6 ) // ????????֢t -//#define MOUSE_RIGHT_AUTO_CRICK ( 1 << 7 ) // ????????֢t +#define MOUSE_LEFT_CRICK ( 1 << 0 ) // ?????┤ +#define MOUSE_RIGHT_CRICK ( 1 << 1 ) // ?????┤ +#define MOUSE_LEFT_CRICK_UP ( 1 << 2 ) // ????????┤ +#define MOUSE_RIGHT_CRICK_UP ( 1 << 3 ) // ????????┤ +#define MOUSE_LEFT_DBL_CRICK ( 1 << 4 ) // ????????┤ +#define MOUSE_RIGHT_DBL_CRICK ( 1 << 5 ) // ????????┤ +//#define MOUSE_LEFT_AUTO_CRICK ( 1 << 6 ) // ????????┤ +//#define MOUSE_RIGHT_AUTO_CRICK ( 1 << 7 ) // ????????┤ -// ????? ?Bl +// ?????火 ?﹨▍ typedef struct{ - int x, y; // ????( ?,? )? + int x, y; // ????( ?,? )?火 }MOUSE_POINT; -// ????Bl +// ????﹨▍ typedef struct{ - MOUSE_POINT nowPoint; // ???????? - MOUSE_POINT crickLeftDownPoint; // ??????????????? - MOUSE_POINT crickLeftUpPoint; // ????????????????? - MOUSE_POINT crickRightDownPoint;// ??????????????? - MOUSE_POINT crickRightUpPoint; // ????????????????? - int state; // ???????֢t???????? - int onceState; // ???????֢t????????????????k?V? - int autoState; // ???????֢t??????? + MOUSE_POINT nowPoint; // ????????火 + MOUSE_POINT crickLeftDownPoint; // ???????????????火 + MOUSE_POINT crickLeftUpPoint; // ?????????????????火 + MOUSE_POINT crickRightDownPoint;// ???????????????火 + MOUSE_POINT crickRightUpPoint; // ?????????????????火 + int state; // ???????┤???????? + int onceState; // ???????┤????????????????π?向? + int autoState; // ???????┤??????? UINT beforeLeftPushTime; // ?????????????? UINT leftPushTime; // ?????????????? UINT beforeRightPushTime;// ?????????????? UINT rightPushTime; // ?????????????? UCHAR level; // ????????????? - int itemNo; // ?????????????k? - BOOL flag; // ???????????? + int itemNo; // ?????????????吻? + BOOL flag; // ????????牙??牙??? }MOUSE; // ????? ??? extern MOUSE mouse; -// ????????????????k???????? +// ????????????????吻???????? extern int HitFontNo; // ????????????????????????????? extern int HitDispNo; -// ???????? +// ??????更?? extern char OneLineInfoStr[]; -// ????? +// 牙????? extern int BoxColor; -// ???ѩ???? //////////////////////////////////////////////////////// +// ???????? //////////////////////////////////////////////////////// void MouseInit( void ); -// ????????t????? ////////////////////////////////////////////// +// ????????ㄅ????? ////////////////////////////////////////////// void MouseNowPoint( int x, int y ); -// ????????????????????t????? ////////////////////// +// ????????????????????ㄅ????? ////////////////////// void MouseCrickLeftDownPoint( int x, int y ); -// ????????????????????t????? ////////////////////// +// ????????????????????ㄅ????? ////////////////////// void MouseCrickLeftUpPoint( int x, int y ); -// ????????????????????t????? ////////////////////// +// ????????????????????ㄅ????? ////////////////////// void MouseCrickRightDownPoint( int x, int y ); -// ????????????????????t????? ////////////////////// +// ????????????????????ㄅ????? ////////////////////// void MouseCrickRightUpPoint( int x, int y ); -// ??????????????????t????? ////////////////////////// +// ??????????????????ㄅ????? ////////////////////////// void MouseDblCrickLeftUpPoint( int x, int y ); -// ??????????????????t????? ////////////////////////// +// ??????????????????ㄅ????? ////////////////////////// void MouseDblCrickRightUpPoint( int x, int y ); // ????? /////////////////////////////////////////////////////////////// void MouseProc( void ); -/* ???????????Re **************************************************/ +/* ???????????刪叉 **************************************************/ void HitMouseCursor( void ); #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/netmain.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/netmain.h index 880f2b3..e316074 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/netmain.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/netmain.h @@ -1,4 +1,4 @@ -#ifndef _NETMAIN_H_ +#ifndef _NETMAIN_H_ #define _NETMAIN_H_ #include "../systeminc/version.h" @@ -9,7 +9,7 @@ struct gameserver char ipaddr[127]; char port[64]; char name[64]; -#ifdef _SHOW_COUNT // WON ADD +#ifdef _SHOW_COUNT // WON ADD 秀服务器流量 char count[64]; #endif #ifdef _SHOWIPSLEEP_ @@ -24,7 +24,7 @@ struct gamegroup{ char name[61]; }; -#define SUCCESSFULSTR "successful" // ????????e?? +#define SUCCESSFULSTR "successful" // ?????????? #define FAILEDSTR "failed" #define OKSTR "ok" #define CANCLE "cancle" @@ -76,22 +76,22 @@ int getServerInfoByServerName( char *servername , char *hostname , short *port ) // ???????? -#define NET_ERRMSG_SOCKLIBERROR "·δ׼á" -#define NET_ERRMSG_BADNAME "Ʋȷ" -#define NET_ERRMSG_SOCKETERROR "޷ִsocketTCP" -#define NET_ERRMSG_NOTGETADDR ",ϵͷ" -#define NET_ERRMSG_NOTCONNECT_S "޷ʼзӡ" -#define NET_ERRMSG_NOTCONNECT "δ볢" -#define NET_ERRMSG_CONNECTTIMEOUT "ʱѵ" -#define NET_ERRMSG_LOGINTIMEOUT "봦ʱѵ" -#define NET_ERRMSG_CHARLISTTIMEOUT "ȡʱѵ" -#define NET_ERRMSG_LOGOUTTIMEOUT "dzʱѵ" -#define NET_ERRMSG_LOGINFAIL "޷" -#define NET_ERRMSG_CREATECHARTIMEOUT "ʱѵ" -#define NET_ERRMSG_DELETECHARTIMEOUT "ʱѵ" -#define NET_ERRMSG_VERSIONERROR "ǰİ汾̫ɣʹøϷ½" +#define NET_ERRMSG_SOCKLIBERROR "网路尚未准备好。" +#define NET_ERRMSG_BADNAME "服务器名称不正确。" +#define NET_ERRMSG_SOCKETERROR "无法执行socket的TCP。" +#define NET_ERRMSG_NOTGETADDR "网络故障,请联系客服。" +#define NET_ERRMSG_NOTCONNECT_S "无法开始进行服务器的连接。" +#define NET_ERRMSG_NOTCONNECT "服务器尚未开启。请尝试其他连线" +#define NET_ERRMSG_CONNECTTIMEOUT "服务器连接时间已到。" +#define NET_ERRMSG_LOGINTIMEOUT "登入处理时间已到。" +#define NET_ERRMSG_CHARLISTTIMEOUT "读取人物表时间已到。" +#define NET_ERRMSG_LOGOUTTIMEOUT "登出处理时间已到。" +#define NET_ERRMSG_LOGINFAIL "无法登入服务器。" +#define NET_ERRMSG_CREATECHARTIMEOUT "人物制作时间已到。" +#define NET_ERRMSG_DELETECHARTIMEOUT "人物削除时间已到。" +#define NET_ERRMSG_VERSIONERROR "您当前的版本太旧,请使用更新器更新游戏后登陆!" -#define GAMESTATE_ERRMSG_LOGOUTDENY "ܾdz" +#define GAMESTATE_ERRMSG_LOGOUTDENY "服务器拒绝处理登出。" #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/netproc.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/netproc.h index 5aad0b9..d01d55f 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/netproc.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/netproc.h @@ -1,30 +1,30 @@ -#ifndef _NETPROC_H_ +#ifndef _NETPROC_H_ #define _NETPROC_H_ #ifdef _THEATER enum { - E_DATA_TYPE_PLAYER, // - E_DATA_TYPE_TALK, // ̨ - E_DATA_TYPE_ASIDE, // ԰ - E_DATA_TYPE_ACTION, // - E_DATA_TYPE_MOVE, // ƶ - E_DATA_TYPE_SCENERY, // - E_DATA_TYPE_CHANGE, // - E_DATA_TYPE_DIR, // - E_DATA_TYPE_EFFECT, // Ч - E_DATA_TYPE_FACE, // - E_DATA_TYPE_NOTE, // ע - E_DATA_TYPE_BGM, // + E_DATA_TYPE_PLAYER, // 玩家 + E_DATA_TYPE_TALK, // 台词 + E_DATA_TYPE_ASIDE, // 旁白 + E_DATA_TYPE_ACTION, // 动作 + E_DATA_TYPE_MOVE, // 移动 + E_DATA_TYPE_SCENERY, // 布景 + E_DATA_TYPE_CHANGE, // 变身 + E_DATA_TYPE_DIR, // 方向 + E_DATA_TYPE_EFFECT, // 特效 + E_DATA_TYPE_FACE, // 表情 + E_DATA_TYPE_NOTE, // 注解 + E_DATA_TYPE_BGM, // 背景音乐 E_DATA_TYPE_NPC, // NPC E_DATA_TYPE_END }; -// lssproto_TheaterData_recv ʹ +// lssproto_TheaterData_recv 使用 enum { - E_THEATER_SEND_DATA_THEATER_MODE = E_DATA_TYPE_END + 1, // Ժģʽ : 0:ȡ糡ģʽ 1: 2: - E_THEATER_SEND_DATA_DISPLAY_SCORE, // ʾ : + E_THEATER_SEND_DATA_THEATER_MODE = E_DATA_TYPE_END + 1, // 剧院模式 参数: 0:取消剧场模式 1:观众 2:表演者 + E_THEATER_SEND_DATA_DISPLAY_SCORE, // 显示分数 参数: 分数 E_THEATER_SEND_DATA_END }; #endif @@ -52,7 +52,7 @@ extern char netprocErrmsg[]; extern int connectServer2Counter; /* -#ifdef _TELLCHANNEL // (ɿ) ROG ADD Ƶ +#ifdef _TELLCHANNEL // (不可开) ROG ADD 密语频道 extern char ReTellName[]; #endif */ diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/onlinegm.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/onlinegm.h index 36c9768..b7e37f2 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/onlinegm.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/onlinegm.h @@ -1,40 +1,40 @@ - + #ifndef _ONLINEGM_ #define _ONLINEGM_ -#define ONLINEGM_BACKGROUND OLD_GRAPHICS_START+821 //ͼ -#define ONLINEGM_YES_OR_NO 35322 //Сʯ屳ͼ 26195ͼ -#define ONLINEGM_CHECK_U OLD_GRAPHICS_START+820 //ѯ() -#define ONLINEGM_CHECK_D 35319 //ѯ() -#define ONLINEGM_DELETE_U OLD_GRAPHICS_START+819 //ɾ() -#define ONLINEGM_DELETE_D 35321 //ɾ() -#define ONLINEGM_ENTER_U 26099 //() -#define ONLINEGM_ENTER_D 35320//() -#define ONLINEGM_CLEAR_U 26298 //() -#define ONLINEGM_CLEAR_D 26299 //() -#define ONLINEGM_HELP_U OLD_GRAPHICS_START+818 //ע() -#define ONLINEGM_HELP_D 35318 //ע() -#define ONLINEGM_QUIT 26042 //ر -#define ONLINEGM_UP_U 26064 //Ͼ() -#define ONLINEGM_UP_D 26065 //Ͼ() -#define ONLINEGM_DOWN_U 26066 //¾() -#define ONLINEGM_DOWN_D 26067 //¾() -#define ONLINEGM_SURE_D 26288 //ȷ()(ɫ) -#define ONLINEGM_SURE_U 26289 //ȷ()(ɫ) -#define ONLINEGM_CHANCEL 26291 //ȡ +#define ONLINEGM_BACKGROUND OLD_GRAPHICS_START+821 //背景图 +#define ONLINEGM_YES_OR_NO 35322 //小长方石板背景图 26195有问题的图 +#define ONLINEGM_CHECK_U OLD_GRAPHICS_START+820 //查询(弹起) +#define ONLINEGM_CHECK_D 35319 //查询(按下) +#define ONLINEGM_DELETE_U OLD_GRAPHICS_START+819 //删除(弹起) +#define ONLINEGM_DELETE_D 35321 //删除(按下) +#define ONLINEGM_ENTER_U 26099 //传送(弹起) +#define ONLINEGM_ENTER_D 35320//传送(按下) +#define ONLINEGM_CLEAR_U 26298 //清除(弹起) +#define ONLINEGM_CLEAR_D 26299 //清除(按下) +#define ONLINEGM_HELP_U OLD_GRAPHICS_START+818 //注意事项(弹起) +#define ONLINEGM_HELP_D 35318 //注意事项(按下) +#define ONLINEGM_QUIT 26042 //关闭 +#define ONLINEGM_UP_U 26064 //上卷(弹起) +#define ONLINEGM_UP_D 26065 //上卷(按下) +#define ONLINEGM_DOWN_U 26066 //下卷(弹起) +#define ONLINEGM_DOWN_D 26067 //下卷(按下) +#define ONLINEGM_SURE_D 26288 //确定(按下)(黄色的) +#define ONLINEGM_SURE_U 26289 //确定(弹起)(黄色的) +#define ONLINEGM_CHANCEL 26291 //取消 -#define DEF_UPDOWN_TOTAL 22 // ¾ -#define DEF_BUTTON_TOTAL 28 // ϻرϵͳť -#define DEF_CLASS_TOTAL 2 // -#define DEF_C1_TOTAL 14 // һϸ -#define DEF_C2_TOTAL 11 // ϸ +#define DEF_UPDOWN_TOTAL 22 // 上下卷总数 +#define DEF_BUTTON_TOTAL 28 // 线上回报系统按钮总数 +#define DEF_CLASS_TOTAL 2 // 问题类别总数 +#define DEF_C1_TOTAL 14 // 类别一细项总数 +#define DEF_C2_TOTAL 11 // 类别二细项总数 -#define DEF_MAX_ADD_VALUE 20 //Ŀǰ趨20 +#define DEF_MAX_ADD_VALUE 20 //目前设定玩家最多留20笔 -#define MAX_INPUT_LINE 30 // +#define MAX_INPUT_LINE 30 // 问题输入行数限制 -#define DEF_INPUT_LINE 4 // ʾ chat20 +#define DEF_INPUT_LINE 4 // 问题数入显示行数 chat是20 #define MAX_INPUT_HISTORY 20 // ??????????? diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/palname.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/palname.h index 589b072..1b88c97 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/palname.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/palname.h @@ -1,21 +1,21 @@ -// ??????????? +// ??????????? "data\\pal\\Palet_1.sap", // ? -"data\\pal\\Palet_2.sap", // ? +"data\\pal\\Palet_2.sap", // ?? "data\\pal\\Palet_3.sap", // ? -"data\\pal\\Palet_4.sap", // +"data\\pal\\Palet_4.sap", // ? -"data\\pal\\Palet_5.sap", // ԢN -"data\\pal\\Palet_6.sap", // ?N -"data\\pal\\Palet_7.sap", // ?N -"data\\pal\\Palet_8.sap", // ?N -"data\\pal\\Palet_9.sap", // +"data\\pal\\Palet_5.sap", // ﹫ +"data\\pal\\Palet_6.sap", // ?﹫ +"data\\pal\\Palet_7.sap", // ?﹫ +"data\\pal\\Palet_8.sap", // ?﹫ +"data\\pal\\Palet_9.sap", //  "data\\pal\\Palet_10.sap", // ???? "data\\pal\\Palet_11.sap", // ??? "data\\pal\\Palet_12.sap", // ? -"data\\pal\\Palet_13.sap", // +"data\\pal\\Palet_13.sap", //  "data\\pal\\Palet_14.sap", // ? "data\\pal\\Palet_15.sap", // ? "data\\pal\\Palet_0.sap", //Waei logo -"white.sap", // ??{??? -"black.sap", // ??{??? +"white.sap", // ??叻??? +"black.sap", // ??叻??? diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/pattern.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/pattern.h index efdc771..a06221d 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/pattern.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/pattern.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* pattern.h */ /************************/ #ifndef _PATTERN_ diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/pc.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/pc.h index 3dab232..54853c6 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/pc.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/pc.h @@ -1,4 +1,4 @@ -#ifndef _PC_H_ +#ifndef _PC_H_ #define _PC_H_ #include "action.h" @@ -16,13 +16,13 @@ #define ITEM_MEMO_LEN 84 #define PET_NAME_LEN 16 #define PET_FREENAME_LEN 32 -#define CHAR_FMNAME_LEN 33 // +#define CHAR_FMNAME_LEN 33 // 家族名称 -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 #define PROFESSION_MEMO_LEN 84 #endif -#ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _GM_IDENTIFY // Rog ADD GM识别 #define GM_NAME_LEN 32 #endif @@ -62,13 +62,13 @@ typedef enum #endif CHAR_EQUIPPLACENUM, #ifdef _PET_ITEM - PET_HEAD = 0, // ͷ - PET_WING, // - PET_TOOTH, // - PET_PLATE, // - PET_BACK, // - PET_CLAW, // צ - PET_FOOT, // () + PET_HEAD = 0, // 头 + PET_WING, // 翼 + PET_TOOTH, // 牙 + PET_PLATE, // 身体 + PET_BACK, // 背 + PET_CLAW, // 爪 + PET_FOOT, // 脚(鳍) PET_EQUIPNUM #endif }CHAR_EquipPlace; @@ -76,16 +76,16 @@ typedef enum #ifdef _PET_ITEM typedef enum { -// , - ITEM_PET_HEAD = 29, // ͷ - ITEM_PET_WING, // - ITEM_PET_TOOTH, // - ITEM_PET_PLATE, // 廤 - ITEM_PET_BACK, // - ITEM_PET_CLAW, // צ - ITEM_PET_1_FOOT, // Ų,˫ - ITEM_PET_2_FOOT, // Ų, - ITEM_PET_FIN, // Ų, +// 宠物道具,共九种 + ITEM_PET_HEAD = 29, // 头 + ITEM_PET_WING, // 翼 + ITEM_PET_TOOTH, // 牙 + ITEM_PET_PLATE, // 身体护甲 + ITEM_PET_BACK, // 背部护甲 + ITEM_PET_CLAW, // 爪 + ITEM_PET_1_FOOT, // 脚部,双足 + ITEM_PET_2_FOOT, // 脚部,四足 + ITEM_PET_FIN, // 脚部,鳍 ITEM_CATEGORYNUM }ITEM_CATEGORY; #define MAX_PET_ITEM 7 @@ -95,7 +95,7 @@ typedef enum #define MAX_MAXHAVEITEM 15 #ifdef _NEW_ITEM_ #define MAX_ITEM (MAX_ITEMSTART+MAX_MAXHAVEITEM*3) -int жҵ(); +int 判断玩家道具数量(); #else #define MAX_ITEM (MAX_ITEMSTART+MAX_MAXHAVEITEM) #endif @@ -123,34 +123,34 @@ int #define MAX_PERSONAL_BANKGOLD 50000000 #ifdef _FMVER21 -#define FAMILY_MAXMEMBER 100 // +#define FAMILY_MAXMEMBER 100 // 家族人数 #else -#define FAMILY_MAXMEMBER 50 // +#define FAMILY_MAXMEMBER 50 // 家族人数 #endif enum { PC_ETCFLAG_PARTY = (1 << 0), PC_ETCFLAG_DUEL = (1 << 1), - PC_ETCFLAG_CHAT_MODE = (1 << 2), //Ƶ - PC_ETCFLAG_MAIL = (1 << 3), //ƬƵ + PC_ETCFLAG_CHAT_MODE = (1 << 2), //队伍频道开关 + PC_ETCFLAG_MAIL = (1 << 3), //名片频道 PC_ETCFLAG_TRADE = (1 << 4) #ifdef _CHANNEL_MODIFY - ,PC_ETCFLAG_CHAT_TELL = (1 << 5) //Ƶ - ,PC_ETCFLAG_CHAT_FM = (1 << 6) //Ƶ + ,PC_ETCFLAG_CHAT_TELL = (1 << 5) //密语频道开关 + ,PC_ETCFLAG_CHAT_FM = (1 << 6) //家族频道开关 #ifdef _CHAR_PROFESSION - ,PC_ETCFLAG_CHAT_OCC = (1 << 7) //ְҵƵ + ,PC_ETCFLAG_CHAT_OCC = (1 << 7) //职业频道开关 #endif - ,PC_ETCFLAG_CHAT_SAVE = (1 << 8) //Ի濪 + ,PC_ETCFLAG_CHAT_SAVE = (1 << 8) //对话储存开关 #ifdef _CHATROOMPROTOCOL - ,PC_ETCFLAG_CHAT_CHAT = (1 << 9) //ҿ + ,PC_ETCFLAG_CHAT_CHAT = (1 << 9) //聊天室开关 #endif #endif #ifdef _CHANNEL_WORLD - ,PC_ETCFLAG_CHAT_WORLD = (1 << 10) //Ƶ + ,PC_ETCFLAG_CHAT_WORLD = (1 << 10) //世界频道开关 #endif #ifdef _CHANNEL_ALL_SERV - ,PC_ETCFLAG_ALL_SERV = (1 << 11) //Ƶ + ,PC_ETCFLAG_ALL_SERV = (1 << 11) //星球频道开关 #endif ,PC_AI_MOD = (1 << 12) }; @@ -160,23 +160,23 @@ enum PC_ETCFLAG_CHAT_MODE_ID = 0 #ifdef _CHANNEL_MODIFY - ,PC_ETCFLAG_CHAT_TELL_ID //Ƶ - ,PC_ETCFLAG_CHAT_PARTY_ID //Ƶ - ,PC_ETCFLAG_CHAT_FM_ID //Ƶ + ,PC_ETCFLAG_CHAT_TELL_ID //密语频道 + ,PC_ETCFLAG_CHAT_PARTY_ID //队伍频道 + ,PC_ETCFLAG_CHAT_FM_ID //家族频道 #ifdef _CHAR_PROFESSION - ,PC_ETCFLAG_CHAT_OCC_ID //ְҵƵ + ,PC_ETCFLAG_CHAT_OCC_ID //职业频道 #endif #ifdef _CHATROOMPROTOCOL - ,PC_ETCFLAG_CHAT_CHAT_ID // + ,PC_ETCFLAG_CHAT_CHAT_ID //聊天室 #endif #else - ,PC_ETCFLAG_CHAT_PARTY_ID //Ƶ + ,PC_ETCFLAG_CHAT_PARTY_ID //队伍频道 #endif #ifdef _CHANNEL_WORLD - ,PC_ETCFLAG_CHAT_WORLD_ID //Ƶ + ,PC_ETCFLAG_CHAT_WORLD_ID //世界频道 #endif #ifdef _CHANNEL_ALL_SERV - ,PC_ETCFLAG_ALL_SERV_ID //Ƶ + ,PC_ETCFLAG_ALL_SERV_ID //星球频道开关 #endif ,PC_ETCFLAG_CHAT_WORLD_NUM }; @@ -184,20 +184,20 @@ enum #define ITEM_FLAG_PET_MAIL ( 1 << 0 ) #define ITEM_FLAG_MIX ( 1 << 1 ) #define ITEM_FLAG_COOKING_MIX ( 1 << 2 ) -#define ITEM_FLAG_METAL_MIX ( 1 << 3 ) // -#define ITEM_FLAG_JEWEL_MIX ( 1 << 4 ) //ʯ -#define ITEM_FLAG_FIX_MIX ( 1 << 5 ) //޸ +#define ITEM_FLAG_METAL_MIX ( 1 << 3 ) //金属 +#define ITEM_FLAG_JEWEL_MIX ( 1 << 4 ) //宝石 +#define ITEM_FLAG_FIX_MIX ( 1 << 5 ) //修复 #ifdef _ITEM_INTENSIFY -#define ITEM_FLAG_INTENSIFY_MIX ( 1 << 6 ) //ǿ +#define ITEM_FLAG_INTENSIFY_MIX ( 1 << 6 ) //强化 #endif #ifdef _ITEM_UPINSLAY -#define ITEM_FLAG_UPINSLAY_MIX ( 1 << 7 ) // +#define ITEM_FLAG_UPINSLAY_MIX ( 1 << 7 ) //凿孔 #endif typedef struct { - int color; // q? - int graNo; // ??k? + int color; // ? + int graNo; // ??? int level; // ??????? #ifdef _ITEM_PILENUMS int pile; @@ -205,13 +205,13 @@ typedef struct #ifdef _ALCHEMIST //#ifdef _ITEMSET7_TXT char alch[4+200]; #endif - short useFlag; // ???? - short field; // ????? - short target; // n - short deadTargetFlag; // ???????n??? - short sendFlag; // ?????????u? - char name[ITEM_NAME_LEN*2+1]; // ???? - char name2[ITEM_NAME2_LEN*2+1]; // ????? + short useFlag; // ???? + short field; // ????? + short target; //  + short deadTargetFlag; // ?????????? + short sendFlag; // ?????????? + char name[ITEM_NAME_LEN*2+1]; // ???? + char name2[ITEM_NAME2_LEN*2+1]; // ????? char memo[ITEM_MEMO_LEN*2+1]; // ?? char damage[20]; #ifdef _PET_ITEM @@ -227,7 +227,7 @@ typedef struct int counttime; #endif #ifdef _MAGIC_ITEM_ - int ; + int 道具类型; #endif } ITEM; @@ -280,7 +280,7 @@ typedef struct int channel; int quickChannel; int personal_bankgold; - int ridePetNo;// + int ridePetNo;//宠物形像 int learnride; unsigned int lowsride; char ridePetName[CHAR_FREENAME_LEN+1]; @@ -289,79 +289,79 @@ typedef struct int baseGraNo; ITEM itempool[MAX_ITEM]; int big4fm; - int trade_confirm; // 1 -> ʼֵ - // 2 -> [ҷȷ - // 3 -> Էȷ - // 4 -> ˫԰ȷ + int trade_confirm; // 1 -> 初始值 + // 2 -> 慬我方按下确定键 + // 3 -> 仅对方按下确定键 + // 4 -> 双方皆按下确定键 -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 int profession_class; int profession_level; // int profession_exp; int profession_skill_point; char profession_class_name[32]; #endif -#ifdef _ALLDOMAN // (ɿ) Syu ADD аNPC +#ifdef _ALLDOMAN // (不可开) Syu ADD 排行榜NPC int herofloor; #endif -#ifdef _GM_IDENTIFY // Rog ADD GMʶ +#ifdef _GM_IDENTIFY // Rog ADD GM识别 char gm_name[GM_NAME_LEN+1]; #endif -#ifdef _FRIENDCHANNEL // ROG ADD Ƶ +#ifdef _FRIENDCHANNEL // ROG ADD 好友频道 char chatRoomNum[4]; #endif #ifdef _STREET_VENDOR - int iOnStreetVendor; // ̯ģʽ + int iOnStreetVendor; // 摆摊模式 #endif - int skywalker; // GM?? + int skywalker; // GM天行者?? #ifdef _MOVE_SCREEN - BOOL bMoveScreenMode; // ƶӫĻģʽ - BOOL bCanUseMouse; // Ƿʹûƶ - int iDestX; // Ŀ X - int iDestY; // Ŀ Y + BOOL bMoveScreenMode; // 移动荧幕模式 + BOOL bCanUseMouse; // 是否可以使用滑鼠移动 + int iDestX; // 目标点 X 座标 + int iDestY; // 目标点 Y 座标 #endif #ifdef _THEATER - int iTheaterMode; // 糡ģʽ - int iSceneryNumber; // ¼Ժͼ - ACTION *pActNPC[5]; // ¼糡ʱNPC + int iTheaterMode; // 剧场模式 + int iSceneryNumber; // 记录剧院背景图号 + ACTION *pActNPC[5]; // 记录剧场中临时产生出来的NPC #endif #ifdef _NPC_DANCE - int iDanceMode; // һģʽ + int iDanceMode; // 动一动模式 #endif #ifdef _EVIL_KILL - int newfame; // ַħ + int newfame; // 讨伐魔军积分 short ftype; #endif int debugmode; #ifdef _SFUMATO - int sfumato; // Ⱦͼɫ + int sfumato; // 二次渲染图层色彩 #endif #ifdef _NEW_ITEM_ - int ״̬; + int 道具栏状态; #endif #ifdef _CHARSIGNADY_NO_ - int ǩ; + int 签到标记; #endif #ifdef _MAGIC_ITEM_ - int ״̬; - int ߹⻷Ч; + int 法宝道具状态; + int 道具光环效果; #endif } PC; #ifdef _FMVER21 enum { - FMMEMBER_NONE = -1, // δκμ - FMMEMBER_MEMBER = 1, // һԱ - FMMEMBER_APPLY, // - FMMEMBER_LEADER, // 峤 - FMMEMBER_ELDER, // - //FMMEMBER_INVITE, // ˾ - //FMMEMBER_BAILEE, // - //FMMEMBER_VICELEADER, // 峤 + FMMEMBER_NONE = -1, // 未加入任何家族 + FMMEMBER_MEMBER = 1, // 一般成员 + FMMEMBER_APPLY, // 申请加入家族 + FMMEMBER_LEADER, // 家族族长 + FMMEMBER_ELDER, // 长老 + //FMMEMBER_INVITE, // 祭司 + //FMMEMBER_BAILEE, // 财务长 + //FMMEMBER_VICELEADER, // 副族长 FMMEMBER_NUMBER, }; #endif @@ -385,9 +385,9 @@ enum MAGIC_TARGET_WITHOUTMYSELFANDPET, MAGIC_TARGET_WHOLEOTHERSIDE, #ifdef __ATTACK_MAGIC - MAGIC_TARGET_SINGLE, // Եзijһ - MAGIC_TARGET_ONE_ROW, // Եзijһ - MAGIC_TARGET_ALL_ROWS, // Եз + MAGIC_TARGET_SINGLE, // 针对敌方某一方 + MAGIC_TARGET_ONE_ROW, // 针对敌方某一列 + MAGIC_TARGET_ALL_ROWS, // 针对敌方所有人 #endif }; @@ -408,13 +408,13 @@ enum PETSKILL_TARGET_NONE, PETSKILL_TARGET_OTHERWITHOUTMYSELF, PETSKILL_TARGET_WITHOUTMYSELFANDPET -#ifdef _BATTLESKILL // (ɿ) Syu ADD սܽ +#ifdef _BATTLESKILL // (不可开) Syu ADD 战斗技能介面 ,PETSKILL_TARGET_ONE_ROW ,PETSKILL_TARGET_ONE_LINE ,PETSKILL_TARGER_DEATH #endif #ifdef _SKILL_ADDBARRIER - ,PETSKILL_TARGET_ONE_ROW_ALL //ѡҷĵ + ,PETSKILL_TARGET_ONE_ROW_ALL //选我方的单排 #endif }; @@ -442,32 +442,32 @@ enum typedef struct { - int index; //λ - int graNo; // ??k? - int hp, maxHp; // ?????? - int mp, maxMp; // ?????? - int exp, maxExp; // ??k???????????k + int index; //位置 + int graNo; // ??? + int hp, maxHp; // ?????? + int mp, maxMp; // ?????? + int exp, maxExp; // ????????????? int level; // ??? - int atk, def; // ????????\?? - int quick; // զ? - int ai; // ?ߥT - int earth, water, fire, wind; // ??? - int maxSkill; // ????? - int trn; // ת + int atk, def; // ?????????? + int quick; // ? + int ai; // ? + int earth, water, fire, wind; // 佋??? + int maxSkill; // ????? + int trn; // 宠物转生数 #ifdef _SHOW_FUSION - int fusion; // low word: 走, hi word: ֱ + int fusion; // low word: 宠蛋旗标, hi word: 物种编码 #endif #ifdef _ANGEL_SUMMON unsigned status; #else unsigned short status; // ?????(??????) #endif - char name[CHAR_NAME_LEN+1]; // ? - char freeName[PET_NAME_LEN+1]; // ???????q + char name[CHAR_NAME_LEN+1]; // ? + char freeName[PET_NAME_LEN+1]; // ??????? short useFlag; // ?????????????? - short changeNameFlag; // q????????? + short changeNameFlag; // ????????? #ifdef _PET_ITEM - ITEM item[MAX_PET_ITEM]; // + ITEM item[MAX_PET_ITEM]; // 宠物道具 #endif #ifdef _PETCOM_ int oldlevel,oldhp,oldatk,oldquick,olddef; @@ -519,7 +519,7 @@ typedef struct int dp; int graNo; char name[CHAR_NAME_LEN+1]; -#ifdef _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ +#ifdef _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 char planetname[64]; #endif } ADDRESS_BOOK; @@ -550,7 +550,7 @@ typedef struct char memo[SKILL_MEMO_LEN+1]; } PET_SKILL; -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 typedef struct { short useFlag; @@ -571,31 +571,31 @@ typedef struct typedef struct { - char name[CHAR_NAME_LEN+1]; // SJIS?q???? + char name[CHAR_NAME_LEN+1]; // SJIS????? short level; // ??? int login; // ?????? - int faceGraNo; // ???k? + int faceGraNo; // ???? int hp; // ?? int str; // ??? - int def; // \?? - int agi; // ? - int app; // u? - int attr[4]; // N???????? + int def; // ?? + int agi; // ? + int app; // ? + int attr[4]; // ?佋??????? int dp; // ???????? } CHARLISTTABLE; #ifdef _AIDENGLU_ typedef struct { - int ; - int ģ; - int С; - int ; - int ǷԶ; - int ǷԶ; - int ﷽; - char ½[4][32]; - int ½ʱʱ; + int 大区; + int 队模; + int 小区; + int 人物; + int 是否自动喊话; + int 是否自动遇敌; + int 人物方向; + char 登陆人物名称[4][32]; + int 登陆延时时间; }Landed; #endif @@ -661,19 +661,19 @@ void setPcAction( int ); #endif int getPcAction( void ); -#ifdef _CHAR_PROFESSION // WON ADD ְҵ +#ifdef _CHAR_PROFESSION // WON ADD 人物职业 #ifdef _PRO3_ADDSKILL #define MAX_PROFESSION_SKILL 30 #else #define MAX_PROFESSION_SKILL 26 #endif extern PROFESSION_SKILL profession_skill[]; -// #ifdef _GM_IDENTIFY // Rog ADD GMʶ +// #ifdef _GM_IDENTIFY // Rog ADD GM识别 // void setPcParam( char *, char *, int, char *, int, int, int, int, int, int, int, int, char *); // void setPcParam( char *, char *, int, char *, int, int, int, int, int, int, int, char *); // #else // void setPcParam( char *, char *, int, char *, int, int, int, int, int, int, int, int ); -#ifdef _ALLDOMAN // (ɿ) Syu ADD аNPC +#ifdef _ALLDOMAN // (不可开) Syu ADD 排行榜NPC void setPcParam( char *, char *, int, char *, int, int, int, int, int, int, int , int ); #else void setPcParam( char *, char *, int, char *, int, int, int, int, int, int, int ); diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/pet_skillinfo.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/pet_skillinfo.h index c75cbba..c3800bc 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/pet_skillinfo.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/pet_skillinfo.h @@ -1,4 +1,4 @@ -/* generated by makedefs.perl */ +/* generated by makedefs.perl */ #define PETSKILL_NONE ( 0 ) #define PETSKILL_NORMALATTACK ( 1 ) diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/petname.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/petname.h index 36feab4..3c9559e 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/petname.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/petname.h @@ -1,706 +1,706 @@ - + // ??????????? -//??{ ?????K?k??q??k? } +//??:{ ??????????? } -{ 0, "" /*"???"*/, 28001 }, -{ 1, "" /*"????"*/, 28002 }, -{ 2, "˹̹" /*"??????"*/, 28003 }, -{ 3, "³" /*"????"*/, 28004 }, +{ 0, "乌力" /*"???"*/, 28001 }, +{ 1, "乌力乌力" /*"????"*/, 28002 }, +{ 2, "乌力斯坦" /*"??????"*/, 28003 }, +{ 3, "乌力布鲁" /*"????"*/, 28004 }, //(pet01) -{ 8, "" /*"????"*/, 28011 }, -{ 9, "" /*"???????"*/, 28012 }, -{ 10, "" /*"???"*/, 28013 }, -{ 11, "" /*"?????"*/, 28014 }, -{ 12, "" /*"????"*/, 28015 }, +{ 8, "布比" /*"????"*/, 28011 }, +{ 9, "金布伊" /*"???????"*/, 28012 }, +{ 10, "布伊" /*"???"*/, 28013 }, +{ 11, "布伊比" /*"?????"*/, 28014 }, +{ 12, "卡布伊" /*"????"*/, 28015 }, //(pet02) -{ 16, "" /*"????"*/, 28021 }, -{ 17, "ӱ" /*"????"*/, 28022 }, -{ 18, "ӱȰ" /*"????"*/, 28023 }, -{ 19, "˹" /*"????"*/, 28024 }, +{ 16, "加美" /*"????"*/, 28021 }, +{ 17, "加比" /*"????"*/, 28022 }, +{ 18, "加比奥" /*"????"*/, 28023 }, +{ 19, "加斯" /*"????"*/, 28024 }, //(pet03) -{ 24, "ڱ" /*"???"*/, 28031 }, -{ 25, "" /*"????"*/, 28032 }, -{ 26, "ڿ³" /*"????"*/, 28033 }, -{ 27, "" /*"?????"*/, 28034 }, +{ 24, "乌宝宝" /*"???"*/, 28031 }, +{ 25, "威威" /*"????"*/, 28032 }, +{ 26, "乌卡鲁" /*"????"*/, 28033 }, +{ 27, "威伯" /*"?????"*/, 28034 }, //(pet04) -{ 32, "" /*"????"*/, 28041 }, -{ 33, "" /*"?????"*/, 28042 }, -{ 34, "屦˶" /*"??????"*/, 28043 }, -{ 35, "屦" /*"????"*/, 28044 }, +{ 32, "贝洛恩" /*"????"*/, 28041 }, +{ 33, "贝洛洛克" /*"?????"*/, 28042 }, +{ 34, "贝洛宝克尔" /*"??????"*/, 28043 }, +{ 35, "贝洛宝利" /*"????"*/, 28044 }, //(pet05) -{ 40, "֮" /*"?????"*/, 28051 }, -{ 41, "̹" /*"????"*/, 28052 }, -{ 42, "÷" /*"????"*/, 28053 }, -{ 43, "ʯ" /*"????"*/, 28054 }, +{ 40, "龟之盾" /*"?????"*/, 28051 }, +{ 41, "绿龟" /*"????"*/, 28052 }, +{ 42, "卡梅兰恩" /*"????"*/, 28053 }, +{ 43, "石龟" /*"????"*/, 28054 }, //(pet06) -{ 48, "" /*"????"*/, 28062 }, -{ 49, "˹" /*"???"*/, 28061 }, -{ 50, "" /*"????"*/, 28063 }, -{ 51, "˶" /*"????"*/, 28064 }, +{ 48, "阿哥亚" /*"????"*/, 28062 }, +{ 49, "尼可斯" /*"???"*/, 28061 }, +{ 50, "特洛昆" /*"????"*/, 28063 }, +{ 51, "达克尔" /*"????"*/, 28064 }, //(pet07? -{ 56, "³" /*"????"*/, 28071 }, -{ 57, "ΰ" /*"???"*/, 28072 }, -{ 58, "" /*"?????"*/, 28073 }, -{ 59, "³˹" /*"????"*/, 28074 }, +{ 56, "拉奇鲁哥" /*"????"*/, 28071 }, +{ 57, "呼拔拔" /*"???"*/, 28072 }, +{ 58, "多萨金格" /*"?????"*/, 28073 }, +{ 59, "鲁尼帖斯" /*"????"*/, 28074 }, //(pet08) -{ 64, "³˹" /*"?????"*/, 28081 }, -{ 65, "" /*"????"*/, 28082 }, -{ 66, "˹" /*"?????"*/, 28083 }, -{ 67, "氲" /*"????"*/, 28084 }, +{ 64, "卡达鲁卡斯" /*"?????"*/, 28081 }, +{ 65, "柯伊达" /*"????"*/, 28082 }, +{ 66, "柯洛加斯" /*"?????"*/, 28083 }, +{ 67, "洛奇安" /*"????"*/, 28084 }, //(pet09) -{ 72, "ŵ" /*"?????"*/, 28091 }, -{ 73, "˹" /*"?????"*/, 28092 }, -{ 74, "˹" /*"?????"*/, 28093 }, -{ 75, "ŵ" /*"?????"*/, 28094 }, +{ 72, "利则诺顿" /*"?????"*/, 28091 }, +{ 73, "扬奇洛斯" /*"?????"*/, 28092 }, +{ 74, "邦浦洛斯" /*"?????"*/, 28093 }, +{ 75, "邦奇诺" /*"?????"*/, 28094 }, //(pet10) -{ 80, "׶" /*"???"*/, 28101 }, -{ 81, "˿˶" /*"???"*/, 28102 }, -{ 82, "" /*"????"*/, 28103 }, -{ 83, "˹" /*"????"*/, 28104 }, +{ 80, "克雷尔" /*"???"*/, 28101 }, +{ 81, "克克尔" /*"???"*/, 28102 }, +{ 82, "克洛尔" /*"????"*/, 28103 }, +{ 83, "里斯基" /*"????"*/, 28104 }, //(pet11) -{ 88, "" /*"????"*/, 28111 }, -{ 89, "" /*"????"*/, 28112 }, -{ 90, "" /*"????"*/, 28113 }, -{ 91, "" /*"?????"*/, 28114 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, +{ 88, "卡比特" /*"????"*/, 28111 }, +{ 89, "凯比" /*"????"*/, 28112 }, +{ 90, "昆伊" /*"????"*/, 28113 }, +{ 91, "凯比特" /*"?????"*/, 28114 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, //(pet14) -{ 96, "" /*"????"*/, 28141 }, -{ 97, "" /*"????"*/, 28142 }, -{ 98, "" /*"??????"*/, 28143 }, -{ 99, "" /*"????"*/, 28144 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, +{ 96, "格尔顿" /*"????"*/, 28141 }, +{ 97, "奇拉顿" /*"????"*/, 28142 }, +{ 98, "齐尔格尔顿" /*"??????"*/, 28143 }, +{ 99, "格尔格" /*"????"*/, 28144 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, //(pet17) -{ 104, "ޱ" /*"????"*/, 28171 }, -{ 105, "˹" /*"????"*/, 28172 }, -{ 106, "˲" /*"?????"*/, 28173 }, -{ 107, "" /*"?????"*/, 28174 }, +{ 104, "修宝" /*"????"*/, 28171 }, +{ 105, "卡拉宝斯" /*"????"*/, 28172 }, +{ 106, "布克布克" /*"?????"*/, 28173 }, +{ 107, "多洛加" /*"?????"*/, 28174 }, //(pet18) -{ 112, "˶" /*"????"*/, 28181 }, -{ 113, "Ϳ" /*"????"*/, 28182 }, -{ 114, "" /*"??"*/, 28183 }, -{ 115, "" /*"????"*/, 28184 }, +{ 112, "卡克尔" /*"????"*/, 28181 }, +{ 113, "巴克" /*"????"*/, 28182 }, +{ 114, "鲍" /*"??"*/, 28183 }, +{ 115, "卡拉卡利" /*"????"*/, 28184 }, //(pet19) -{ 120, "³" /*"????"*/, 28191 }, -{ 121, "³" /*"?????"*/, 28192 }, -{ 122, "³˹" /*"????"*/, 28193 }, -{ 123, "³" /*"???????"*/, 28194 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, +{ 120, "贝鲁卡" /*"????"*/, 28191 }, +{ 121, "贝鲁伊卡" /*"?????"*/, 28192 }, +{ 122, "格鲁西斯" /*"????"*/, 28193 }, +{ 123, "金格萨贝鲁" /*"???????"*/, 28194 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, //(pet21) -{ 128, "ŵ˹" /*"?????"*/, 28211 }, -{ 129, "˹" /*"????"*/, 28212 }, -{ 130, "" /*"?????"*/, 28213 }, -{ 131, "岼˹" /*"????"*/, 28214 }, +{ 128, "多利诺布斯" /*"?????"*/, 28211 }, +{ 129, "贝恩达斯" /*"????"*/, 28212 }, +{ 130, "多利凯拉" /*"?????"*/, 28213 }, +{ 131, "多洛布斯" /*"????"*/, 28214 }, //(pet22) -{ 136, "˰˹" /*"?????"*/, 28221 }, -{ 137, "ӿ" /*"????"*/, 28222 }, -{ 138, "Ӹ" /*"????"*/, 28223 }, -{ 139, "" /*"????"*/, 28224 }, +{ 136, "克邦凯斯" /*"?????"*/, 28221 }, +{ 137, "加克拉" /*"????"*/, 28222 }, +{ 138, "加格" /*"????"*/, 28223 }, +{ 139, "邦恩吉" /*"????"*/, 28224 }, //(pet23) -{ 144, "濨˹" /*"????"*/, 28231 }, -{ 145, "" /*"???"*/, 28232 }, -{ 146, "濨˹" /*"?????"*/, 28233 }, -{ 147, "" /*"?????"*/, 28234 }, +{ 144, "奇卡洛斯" /*"????"*/, 28231 }, +{ 145, "奇娜" /*"???"*/, 28232 }, +{ 146, "奇卡宝斯" /*"?????"*/, 28233 }, +{ 147, "卡卡金宝" /*"?????"*/, 28234 }, //(pet24) -{ 152, "" /*"????"*/, 28241 }, -{ 153, "ķ" /*"????"*/, 28242 }, -{ 154, "" /*"?????"*/, 28243 }, -{ 155, "³" /*"?????"*/, 28244 }, +{ 152, "邦奇" /*"????"*/, 28241 }, +{ 153, "姆伊" /*"????"*/, 28242 }, +{ 154, "海主人" /*"?????"*/, 28243 }, +{ 155, "多鲁宝" /*"?????"*/, 28244 }, //(pet25) -{ 160, "˹" /*"?????"*/, 28251 }, -{ 161, "˹" /*"?????"*/, 28252 }, -{ 162, "˹" /*"?????"*/, 28253 }, -{ 163, "˹˹" /*"?????"*/, 28254 }, +{ 160, "布洛多斯" /*"?????"*/, 28251 }, +{ 161, "布林帖斯" /*"?????"*/, 28252 }, +{ 162, "布拉奇多斯" /*"?????"*/, 28253 }, +{ 163, "斯天多斯" /*"?????"*/, 28254 }, //(pet26) -{ 168, "Ħ" /*"????"*/, 28261 }, -{ 169, "ĦĦ" /*"???"*/, 28262 }, -{ 170, "Ħ˹" /*"????"*/, 28263 }, -{ 171, "Ħ˹" /*"?????"*/, 28264 }, +{ 168, "玛恩摩" /*"????"*/, 28261 }, +{ 169, "恩摩摩" /*"???"*/, 28262 }, +{ 170, "玛摩那斯" /*"????"*/, 28263 }, +{ 171, "玛恩摩洛斯" /*"?????"*/, 28264 }, //(pet27) -{ 176, "" /*"????"*/, 28271 }, -{ 177, "忨׶" /*"????"*/, 28272 }, -{ 178, "ӱ" /*"?????"*/, 28273 }, -{ 179, "˹" /*"????"*/, 28274 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, +{ 176, "帖拉格恩" /*"????"*/, 28271 }, +{ 177, "洛卡伦恩" /*"????"*/, 28272 }, +{ 178, "加宝格恩" /*"?????"*/, 28273 }, +{ 179, "朵拉比斯" /*"????"*/, 28274 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, //(pet29) -{ 184, "" /*"????"*/, 28291 }, -{ 185, "˿˹" /*"????"*/, 28292 }, -{ 186, "" /*"????"*/, 28293 }, -{ 187, "汦" /*"?????"*/, 28294 }, +{ 184, "火鸡" /*"????"*/, 28291 }, +{ 185, "克克洛斯" /*"????"*/, 28292 }, +{ 186, "霍尔克" /*"????"*/, 28293 }, +{ 187, "奇宝" /*"?????"*/, 28294 }, //(pet30) -{ 192, "¿˹" /*"????"*/, 28301 }, -{ 193, "˹" /*"?????"*/, 28302 }, -{ 194, "Ͷ" /*"????"*/, 28303 }, -{ 195, "" /*"?????"*/, 28304 }, +{ 192, "奥卡洛斯" /*"????"*/, 28301 }, +{ 193, "左迪洛斯" /*"?????"*/, 28302 }, +{ 194, "巴朵兰恩" /*"????"*/, 28303 }, +{ 195, "帖拉所伊朵" /*"?????"*/, 28304 }, //(pet31) -{ 200, "" /*"???"*/, 28311 }, -{ 201, "Ħ" /*"?????"*/, 28312 }, -{ 202, "" /*"?????"*/, 28313 }, -{ 203, "" /*"?????"*/, 28314 }, +{ 200, "布伊德" /*"???"*/, 28311 }, +{ 201, "摩娜西普" /*"?????"*/, 28312 }, +{ 202, "卡伊霍恩" /*"?????"*/, 28313 }, +{ 203, "拉伊霍恩" /*"?????"*/, 28314 }, //(pet32) -{ 208, "ʷ" /*"??????"*/, 28321 }, -{ 209, "˹" /*"????"*/, 28322 }, -{ 210, "˹" /*"?????"*/, 28323 }, -{ 211, "ŵ˹" /*"?????"*/, 28324 }, -{ 212, "˹" /*"????"*/, 28325 }, +{ 208, "史多拉奇顿" /*"??????"*/, 28321 }, +{ 209, "萨美洛斯" /*"????"*/, 28322 }, +{ 210, "阿利给洛斯" /*"?????"*/, 28323 }, +{ 211, "达伊诺洛斯" /*"?????"*/, 28324 }, +{ 212, "拉可拉斯" /*"????"*/, 28325 }, //(pet33) -{ 216, "˹" /*"?????"*/, 28331 }, -{ 217, "³˹" /*"?????"*/, 28332 }, -{ 218, "˹" /*"?????"*/, 28333 }, -{ 219, "ŵ˹˹" /*"??????"*/, 28334 }, +{ 216, "邦洛洛克斯" /*"?????"*/, 28331 }, +{ 217, "兰贝鲁斯" /*"?????"*/, 28332 }, +{ 218, "可利多洛斯" /*"?????"*/, 28333 }, +{ 219, "诺斯多洛斯" /*"??????"*/, 28334 }, -// ?D???? -{ 4, "" /*"????"*/, 28005 }, -{ 68, "˹" /*"????"*/, 28085 }, -{ 69, "" /*"????"*/, 28086 }, -{ 70, "³" /*"????"*/, 28087 }, -{ 71, "彫" /*"??????"*/, 28088 }, -{ 52, "ؿ˶" /*"????"*/, 28065 }, -{ 76, "³" /*"????"*/, 28095 }, -{ 108, "³" /*"????"*/, 28175 }, -{ 164, "˹" /*"?????"*/, 28255 }, +// ????? +{ 4, "黑乌力" /*"????"*/, 28005 }, +{ 68, "洛克斯" /*"????"*/, 28085 }, +{ 69, "阿伊萨" /*"????"*/, 28086 }, +{ 70, "格洛格鲁" /*"????"*/, 28087 }, +{ 71, "朵洛将恩" /*"??????"*/, 28088 }, +{ 52, "柏克尔" /*"????"*/, 28065 }, +{ 76, "布鲁顿" /*"????"*/, 28095 }, +{ 108, "布鲁宝" /*"????"*/, 28175 }, +{ 164, "邦恩多斯" /*"?????"*/, 28255 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, // 100400 -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, // 100400 +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, // 100410 -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, // 100410 +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, // 100420 -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, -{ -1, "" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, // 100420 +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, +{ -1, "无" /*"??"*/, 0 }, -{ 204, "" /*"??????"*/, 28315 }, // 100430 +{ 204, "邦达霍恩" /*"??????"*/, 28315 }, // 100430 -{ 5, "" /*"??????"*/, 28006 }, // 100820 -{ 6, "" /*"??????"*/, 28007 }, -{ 7, "" /*"??????"*/, 28008 }, +{ 5, "扑满乌力" /*"??????"*/, 28006 }, // 100820 +{ 6, "乌力莱德" /*"??????"*/, 28007 }, +{ 7, "乌力固力" /*"??????"*/, 28008 }, -{ 13, "³" /*"??????"*/, 28016 }, -{ 14, "" /*"??????"*/, 28017 }, -{ 15, "" /*"??????"*/, 28018 }, +{ 13, "布依布鲁" /*"??????"*/, 28016 }, +{ 14, "布依布依" /*"??????"*/, 28017 }, +{ 15, "布依胖" /*"??????"*/, 28018 }, -{ 20, "Ӽ" /*"??????"*/, 28025 }, -{ 21, "˹" /*"??????"*/, 28026 }, -{ 22, "Ӹ" /*"??????"*/, 28027 }, -{ 23, "ȱȼ" /*"??????"*/, 28028 }, +{ 20, "加加" /*"??????"*/, 28025 }, +{ 21, "加斯奥" /*"??????"*/, 28026 }, +{ 22, "加格雷依" /*"??????"*/, 28027 }, +{ 23, "比比加" /*"??????"*/, 28028 }, -{ 28, "ڱ" /*"??????"*/, 28035 }, -{ 29, "˹" /*"??????"*/, 28036 }, -{ 30, "" /*"??????"*/, 28037 }, -{ 31, "" /*"??????"*/, 28038 }, +{ 28, "乌宝依" /*"??????"*/, 28035 }, +{ 29, "威斯" /*"??????"*/, 28036 }, +{ 30, "威比" /*"??????"*/, 28037 }, +{ 31, "乌拉拉" /*"??????"*/, 28038 }, -{ 36, "" /*"??????"*/, 28045 }, -{ 37, "" /*"??????"*/, 28046 }, -{ 38, "屴" /*"??????"*/, 28047 }, -{ 39, "岨" /*"??????"*/, 28048 }, +{ 36, "贝洛金" /*"??????"*/, 28045 }, +{ 37, "贝洛格" /*"??????"*/, 28046 }, +{ 38, "贝洛贝" /*"??????"*/, 28047 }, +{ 39, "贝洛波波" /*"??????"*/, 28048 }, -{ 44, "" /*"??????"*/, 28055 }, -{ 45, "" /*"??????"*/, 28056 }, -{ 46, "֮" /*"??????"*/, 28057 }, -{ 47, "" /*"??????"*/, 28058 }, +{ 44, "蓝龟" /*"??????"*/, 28055 }, +{ 45, "卡拉格尔" /*"??????"*/, 28056 }, +{ 46, "龟之钢" /*"??????"*/, 28057 }, +{ 47, "卡拉龟" /*"??????"*/, 28058 }, -{ 53, "˹" /*"??????"*/, 28066 }, -{ 54, "˹" /*"??????"*/, 28067 }, -{ 55, "˹" /*"??????"*/, 28068 }, +{ 53, "尼加斯" /*"??????"*/, 28066 }, +{ 54, "尼基斯" /*"??????"*/, 28067 }, +{ 55, "特洛可斯" /*"??????"*/, 28068 }, -{ 60, "" /*"??????"*/, 28075 }, -{ 61, "³³" /*"??????"*/, 28076 }, -{ 62, "³˹" /*"??????"*/, 28077 }, -{ 63, "˹˹" /*"??????"*/, 28078 }, +{ 60, "呼波波" /*"??????"*/, 28075 }, +{ 61, "呼鲁鲁" /*"??????"*/, 28076 }, +{ 62, "鲁拉其斯" /*"??????"*/, 28077 }, +{ 63, "拉奇斯斯" /*"??????"*/, 28078 }, -{ 77, "ŵ˹" /*"??????"*/, 28096 }, -{ 78, "˹" /*"??????"*/, 28097 }, -{ 79, "ϻ˹" /*"??????"*/, 28098 }, +{ 77, "邦诺斯娜" /*"??????"*/, 28096 }, +{ 78, "杨格斯" /*"??????"*/, 28097 }, +{ 79, "迪基格斯" /*"??????"*/, 28098 }, -{ 84, "" /*"??????"*/, 28105 }, -{ 85, "˹" /*"??????"*/, 28106 }, -{ 86, "" /*"??????"*/, 28107 }, -{ 87, "˴" /*"??????"*/, 28108 }, +{ 84, "克拉尔" /*"??????"*/, 28105 }, +{ 85, "拉斯基" /*"??????"*/, 28106 }, +{ 86, "里拉拉" /*"??????"*/, 28107 }, +{ 87, "克达达" /*"??????"*/, 28108 }, -{ 92, "" /*"??????"*/, 28115 }, -{ 93, "" /*"??????"*/, 28116 }, -{ 94, "" /*"??????"*/, 28117 }, -{ 95, "ɿ" /*"??????"*/, 28118 }, +{ 92, "卡卡特" /*"??????"*/, 28115 }, +{ 93, "昆依特" /*"??????"*/, 28116 }, +{ 94, "比特" /*"??????"*/, 28117 }, +{ 95, "可卡特" /*"??????"*/, 28118 }, -{ 100, "˾" /*"??????"*/, 28145 }, -{ 101, "ϣ" /*"??????"*/, 28146 }, -{ 102, "÷ " /*"??????"*/, 28147 }, -{ 103, "Ƕ" /*"??????"*/, 28148 }, +{ 100, "司尔顿" /*"??????"*/, 28145 }, +{ 101, "格尔希洛" /*"??????"*/, 28146 }, +{ 102, "梅尔顿 " /*"??????"*/, 28147 }, +{ 103, "戈登尔顿" /*"??????"*/, 28148 }, -{ 109, "" /*"??????"*/, 28176 }, -{ 110, "±" /*"??????"*/, 28177 }, -{ 111, "ë" /*"??????"*/, 28178 }, +{ 109, "蓝宝" /*"??????"*/, 28176 }, +{ 110, "瑞德宝" /*"??????"*/, 28177 }, +{ 111, "毛宝" /*"??????"*/, 28178 }, -{ 116, "ŷּ³" /*"??????"*/, 28185 }, -{ 117, "ʷ³" /*"??????"*/, 28186 }, -{ 118, "Ү³" /*"??????"*/, 28187 }, -{ 119, "" /*"??????"*/, 28188 }, +{ 116, "欧林吉鲁" /*"??????"*/, 28185 }, +{ 117, "史凯鲁" /*"??????"*/, 28186 }, +{ 118, "耶普鲁" /*"??????"*/, 28187 }, +{ 119, "芭拉芭" /*"??????"*/, 28188 }, -{ 124, "³" /*"??????"*/, 28195 }, -{ 125, "¶" /*"??????"*/, 28196 }, -{ 126, "³" /*"??????"*/, 28197 }, -{ 127, "˹" /*"??????"*/, 28198 }, +{ 124, "普鲁夏" /*"??????"*/, 28195 }, +{ 125, "佩露夏" /*"??????"*/, 28196 }, +{ 126, "萨格鲁" /*"??????"*/, 28197 }, +{ 127, "玛斯贝卡" /*"??????"*/, 28198 }, -{ 132, "󶡲˹" /*"??????"*/, 28215 }, -{ 133, "Ү˹" /*"??????"*/, 28216 }, -{ 134, "ײ˹" /*"??????"*/, 28217 }, -{ 135, "岼˹" /*"??????"*/, 28218 }, +{ 132, "麦丁布斯" /*"??????"*/, 28215 }, +{ 133, "加耶布斯" /*"??????"*/, 28216 }, +{ 134, "迪米布斯" /*"??????"*/, 28217 }, +{ 135, "玻洛布斯" /*"??????"*/, 28218 }, -{ 140, "ϼ" /*"??????"*/, 28225 }, -{ 141, "ɰ" /*"??????"*/, 28226 }, -{ 142, "" /*"??????"*/, 28227 }, -{ 143, "÷³ɯ" /*"??????"*/, 28228 }, +{ 140, "迪加" /*"??????"*/, 28225 }, +{ 141, "砂鲨" /*"??????"*/, 28226 }, +{ 142, "波波顿" /*"??????"*/, 28227 }, +{ 143, "梅鲁莎" /*"??????"*/, 28228 }, -{ 148, "" /*"??????"*/, 28235 }, -{ 149, "" /*"??????"*/, 28236 }, -{ 150, "" /*"??????"*/, 28237 }, -{ 151, "ﰺ" /*"??????"*/, 28238 }, +{ 148, "尤里蛙" /*"??????"*/, 28235 }, +{ 149, "裘里蛙" /*"??????"*/, 28236 }, +{ 150, "艾尔蛙" /*"??????"*/, 28237 }, +{ 151, "里昂蛙" /*"??????"*/, 28238 }, -{ 156, "ŷɪ" /*"??????"*/, 28245 }, -{ 157, "Ī˾" /*"??????"*/, 28246 }, -{ 158, "˹" /*"??????"*/, 28247 }, -{ 159, "ɳ" /*"??????"*/, 28248 }, +{ 156, "欧瑟菲" /*"??????"*/, 28245 }, +{ 157, "莫拉司" /*"??????"*/, 28246 }, +{ 158, "玛斯特" /*"??????"*/, 28247 }, +{ 159, "沙瓦列" /*"??????"*/, 28248 }, -{ 165, "֨" /*"??????"*/, 28256 }, -{ 166, "˹˹" /*"??????"*/, 28257 }, -{ 167, "ɸ˹" /*"??????"*/, 28258 }, +{ 165, "嘎吱拉" /*"??????"*/, 28256 }, +{ 166, "哥斯哥斯" /*"??????"*/, 28257 }, +{ 167, "蒙哥拉斯" /*"??????"*/, 28258 }, -{ 172, "Ħ" /*"??????"*/, 28265 }, -{ 173, "ĦĦ" /*"??????"*/, 28266 }, -{ 174, "Ħ" /*"??????"*/, 28267 }, -{ 175, "Ħ" /*"??????"*/, 28268 }, +{ 172, "固力摩" /*"??????"*/, 28265 }, +{ 173, "摩吉摩吉" /*"??????"*/, 28266 }, +{ 174, "摩米索拉" /*"??????"*/, 28267 }, +{ 175, "摩酷罗" /*"??????"*/, 28268 }, -{ 180, "ɿɶ" /*"??????"*/, 28275 }, -{ 181, "" /*"??????"*/, 28276 }, -{ 182, "" /*"??????"*/, 28277 }, -{ 183, "ϲ" /*"??????"*/, 28278 }, +{ 180, "可可恩" /*"??????"*/, 28275 }, +{ 181, "克洛恩" /*"??????"*/, 28276 }, +{ 182, "布兰恩" /*"??????"*/, 28277 }, +{ 183, "迪布恩" /*"??????"*/, 28278 }, -{ 188, "" /*"??????"*/, 28295 }, -{ 189, "Ħ" /*"??????"*/, 28296 }, -{ 190, "" /*"??????"*/, 28297 }, -{ 191, "˹" /*"??????"*/, 28298 }, +{ 188, "格里兰" /*"??????"*/, 28295 }, +{ 189, "摩里" /*"??????"*/, 28296 }, +{ 190, "瑞里西尔" /*"??????"*/, 28297 }, +{ 191, "塔斯夫" /*"??????"*/, 28298 }, -{ 196, "" /*"??????"*/, 28305 }, -{ 197, "Ͽ" /*"??????"*/, 28306 }, -{ 198, "׶" /*"??????"*/, 28307 }, -{ 199, "˾" /*"??????"*/, 28308 }, +{ 196, "朵巴奈特" /*"??????"*/, 28305 }, +{ 197, "斑尼迪克" /*"??????"*/, 28306 }, +{ 198, "阿米朵" /*"??????"*/, 28307 }, +{ 199, "邦司凉朵" /*"??????"*/, 28308 }, -{ 205, "" /*"??????"*/, 28316 }, -{ 206, "˹" /*"??????"*/, 28317 }, -{ 207, "" /*"??????"*/, 28318 }, +{ 205, "布莱兹" /*"??????"*/, 28316 }, +{ 206, "布依伦斯" /*"??????"*/, 28317 }, +{ 207, "伊夫霍恩" /*"??????"*/, 28318 }, -{ 213, "ķ˹" /*"??????"*/, 28326 }, -{ 214, "˹" /*"??????"*/, 28327 }, -{ 215, "˹" /*"??????"*/, 28328 }, +{ 213, "莱姆洛斯" /*"??????"*/, 28326 }, +{ 214, "朱利洛斯" /*"??????"*/, 28327 }, +{ 215, "辛普洛斯" /*"??????"*/, 28328 }, -{ 220, "³˹" /*"??????"*/, 28335 }, -{ 221, "ŵ˹" /*"??????"*/, 28336 }, -{ 222, "Ϳ˾" /*"??????"*/, 28337 }, -{ 223, "׵˹" /*"??????"*/, 28338 }, +{ 220, "立杜鲁斯" /*"??????"*/, 28335 }, +{ 221, "诺克斯" /*"??????"*/, 28336 }, +{ 222, "巴克亚司" /*"??????"*/, 28337 }, +{ 223, "雷德力克斯" /*"??????"*/, 28338 }, -{ 224, "׻ŷ", 28343 }, -{ 225, "", 28341 }, -{ 226, "׼³", 28342 }, -{ 227, "", 28344 }, +{ 224, "葛雷基欧", 28343 }, +{ 225, "葛雷洛比", 28341 }, +{ 226, "葛雷吉鲁", 28342 }, +{ 227, "葛雷马恩", 28344 }, -{ 228, "", 28351 }, -{ 229, "", 28352 }, +{ 228, "吉比", 28351 }, +{ 229, "凯恩", 28352 }, -{ 230, "ʷն", 28355 }, -{ 231, "˹", 28354 }, -{ 232, "", 28358 }, -{ 233, "", 28356 }, -{ 234, "", 28357 }, -{ 235, "ޱ", 28359 }, -{ 236, "³", 28360 }, +{ 230, "史凯勒顿", 28355 }, +{ 231, "古斯特", 28354 }, +{ 232, "卡恩格登", 28358 }, +{ 233, "卡恩米兹", 28356 }, +{ 234, "卡恩法尔", 28357 }, +{ 235, "卡恩修比", 28359 }, +{ 236, "鲁比", 28360 }, -{ 237, "", 28362 }, -{ 238, "", 28361 }, -{ 239, "ϣ", 28363 }, +{ 237, "蒙奇", 28362 }, +{ 238, "菲奇亚", 28361 }, +{ 239, "艾迪希洛", 28363 }, -{ 240, "׶Ϳ", 28364 }, -{ 241, "ǰͿ", 28365 }, -{ 242, "ŷͿ", 28367 }, -{ 243, "ְͿ", 28366 }, -{ 244, "Ա", 28368 }, -{ 245, "˹", 28369 }, +{ 240, "雷恩巴肯", 28364 }, +{ 241, "法亚巴肯", 28365 }, +{ 242, "奇欧巴肯", 28367 }, +{ 243, "格林巴肯", 28366 }, +{ 244, "翟贝里恩", 28368 }, +{ 245, "赫拉克勒斯", 28369 }, -{ 246, "³", 28372}, -{ 247, "³", 28373}, -{ 248, "Ħ", 28374}, -{ 249, "˹", 28370}, -{ 250, "", 28371}, -{ 251, "˹", 28375}, -{ 252, "", 28376}, -{ 253, "˹", 28377}, -{ 254, "", 28378}, -{ 255, "ʷο", 28379}, -{ 256, "˹", 28380}, -{ 257, "˹", 28381}, -{ 258, "", 28382}, -{ 259, "ϸ˹", 28383}, -{ 260, "ñ˹", 28384}, -{ 261, "˹", 28385}, -{ 262, "˹", 28386}, -{ 263, "", 28387}, -{ 264, "׸", 28388}, -{ 265, "˶", 28389}, -{ 266, "׶˹", 28390}, -{ 267, "", 28391}, -{ 268, "", 28392}, -{ 269, "", 28393}, -{ 270, "", 28394}, -{ 271, "˹", 28395}, -{ 272, "ն", 28396}, -{ 273, "˹", 28398}, -{ 274, "˹", 28397}, -{ 275, "ǹ˹", 28399}, -{ 276, "³˹", 28400}, -{ 277, "", 28401}, -{ 278, "", 28402}, -{ 279, "", 28403}, -{ 280, "", 28404}, -{ 281, "", 28405}, -{ 282, "", 28406}, -{ 283, "˹", 28411}, -{ 284, "ǵ", 28410}, -{ 285, "ΰ", 28408}, -{ 286, "˹", 28407}, -{ 287, "", 28409}, -{ 288, "ŷ", 28412}, -{ 289, "", 28413}, -{ 290, "ӹ", 28414}, -{ 291, "", 28415}, -{ 292, "ŷ", 28416}, -{ 293, "³", 28417}, -{ 294, "ٿ˶", 28418}, -{ 295, "˹", 28419}, -{ 296, "ﵰ", 28420}, +{ 246, "米鲁多", 28372}, +{ 247, "多鲁多", 28373}, +{ 248, "布尔摩", 28374}, +{ 249, "洛奇斯德", 28370}, +{ 250, "缪那", 28371}, +{ 251, "库玛斯", 28375}, +{ 252, "雷玛特", 28376}, +{ 253, "菲斯玛", 28377}, +{ 254, "贝库尔", 28378}, +{ 255, "史奈克特", 28379}, +{ 256, "葛利斯奈", 28380}, +{ 257, "艾比斯", 28381}, +{ 258, "拉特利", 28382}, +{ 259, "毕格艾斯", 28383}, +{ 260, "裘比斯", 28384}, +{ 261, "阿卡西斯", 28385}, +{ 262, "洛可洛斯", 28386}, +{ 263, "法兹蒙特", 28387}, +{ 264, "雷格特", 28388}, +{ 265, "洛克尔", 28389}, +{ 266, "米恩斯特", 28390}, +{ 267, "利西亚", 28391}, +{ 268, "佩罗亚", 28392}, +{ 269, "伊利曼亚", 28393}, +{ 270, "卡力洛亚", 28394}, +{ 271, "奥普萨斯", 28395}, +{ 272, "利普多尔", 28396}, +{ 273, "邦克普斯", 28398}, +{ 274, "拉佛洛斯", 28397}, +{ 275, "迪亚古斯", 28399}, +{ 276, "马鲁古斯", 28400}, +{ 277, "尔洛普", 28401}, +{ 278, "卡克普", 28402}, +{ 279, "西修", 28403}, +{ 280, "哈尔修", 28404}, +{ 281, "弗利修", 28405}, +{ 282, "巴利", 28406}, +{ 283, "雅特拉斯", 28411}, +{ 284, "伊利亚德", 28410}, +{ 285, "米尼奈巴", 28408}, +{ 286, "德拉斯", 28407}, +{ 287, "科伦特", 28409}, +{ 288, "邦欧里", 28412}, +{ 289, "加雷", 28413}, +{ 290, "加古特", 28414}, +{ 291, "邦西普", 28415}, +{ 292, "伊亚欧莱", 28416}, +{ 293, "拉格多鲁", 28417}, +{ 294, "西顿克尔", 28418}, +{ 295, "克罗那斯", 28419}, +{ 296, "宠物蛋", 28420}, -{ 297, "᲼", 28421}, -{ 298, "ᱴ", 28422}, -{ 299, "", 28423}, -{ 300, "˹", 28424}, +{ 297, "帖尼布", 28421}, +{ 298, "帖尼贝", 28422}, +{ 299, "帖尼恩", 28423}, +{ 300, "帖尼斯", 28424}, -{ 301, "˹", 28425}, -{ 302, "", 28426}, -{ 303, "϶", 28427}, -{ 304, "ȿ", 28428}, +{ 301, "查洛奇斯", 28425}, +{ 302, "查洛可利", 28426}, +{ 303, "查洛毕尔", 28427}, +{ 304, "查洛比克", 28428}, -{ 305, "׵˹", 28429}, +{ 305, "雷帝斯洛", 28429}, -{ 306, "ʷ³", 28459}, -{ 307, "ʷ", 28458}, -{ 308, "尲", 28462}, -{ 309, "˹", 28463}, -{ 310, "ױ", 28461}, -{ 311, "", 28460}, -{ 312, "ؿ", 28442}, -{ 313, "˹", 28443}, -{ 314, "ɳ߿", 28430}, -{ 315, "ɳп", 28431}, -{ 316, "׿", 28468}, -{ 317, "׼", 28469}, -{ 318, "", 28439}, -{ 319, "˹", 28438}, -{ 320, "˹", 28464}, -{ 321, "˹", 28465}, -{ 322, "", 28435}, -{ 323, "Ƕ˹", 28434}, -{ 324, "", 28450}, -{ 325, "", 28451}, -{ 326, "", 28470}, -{ 327, "˹", 28471}, -{ 328, "ɳ", 28457}, -{ 329, "", 28456}, -{ 330, "ʷ", 28466}, -{ 331, "˹̹", 28467}, -{ 332, "", 28454}, -{ 333, "", 28455}, -{ 334, "", 28441}, -{ 335, "˹", 28440}, -{ 336, "", 28437}, -{ 337, "", 28436}, -{ 338, "յ", 28444}, -{ 339, "˹", 28445}, -{ 340, "", 28452}, -{ 341, "˶", 28453}, -{ 342, "", 28446}, -{ 343, "˹", 28447}, -{ 344, "", 28432}, -{ 345, "˹", 28433}, -{ 346, "˹Ħ", 28472}, -{ 347, "ŷĦ", 28473}, -{ 348, "Ħ", 28474}, -{ 349, "Ħ", 28475}, -{ 350, "޶", 28476}, -{ 351, "ؿ", 28449}, -{ 352, "", 28477}, +{ 306, "史卡鲁", 28459}, +{ 307, "史卡特", 28458}, +{ 308, "洛安奇", 28462}, +{ 309, "洛斯克", 28463}, +{ 310, "雷比特", 28461}, +{ 311, "洛比特", 28460}, +{ 312, "西柏克", 28442}, +{ 313, "特利斯克", 28443}, +{ 314, "沙瓦克", 28430}, +{ 315, "沙列克", 28431}, +{ 316, "特雷克洛", 28468}, +{ 317, "特雷吉洛", 28469}, +{ 318, "华可洛", 28439}, +{ 319, "华雷斯", 28438}, +{ 320, "克利多斯", 28464}, +{ 321, "多利可斯", 28465}, +{ 322, "多尔克", 28435}, +{ 323, "那尔斯", 28434}, +{ 324, "塔克", 28450}, +{ 325, "奥特普", 28451}, +{ 326, "那提拉", 28470}, +{ 327, "布斯迪", 28471}, +{ 328, "特雷沙", 28457}, +{ 329, "柏洛德", 28456}, +{ 330, "史比特", 28466}, +{ 331, "艾斯坦", 28467}, +{ 332, "康尔特", 28454}, +{ 333, "伯洛西", 28455}, +{ 334, "西考", 28441}, +{ 335, "玛那斯", 28440}, +{ 336, "卡特", 28437}, +{ 337, "卡伯", 28436}, +{ 338, "夏普德", 28444}, +{ 339, "夏斯德", 28445}, +{ 340, "伊古雷", 28452}, +{ 341, "伊克多", 28453}, +{ 342, "奇格拉", 28446}, +{ 343, "多格斯", 28447}, +{ 344, "贝沃特", 28432}, +{ 345, "贝恩斯", 28433}, +{ 346, "塔斯摩米", 28472}, +{ 347, "欧西摩米", 28473}, +{ 348, "洛德摩米", 28474}, +{ 349, "艾尔摩米", 28475}, +{ 350, "罗多克雷", 28476}, +{ 351, "罗特克拉", 28449}, +{ 352, "波比", 28477}, -{ 353, "ʷƤŵ", 28478}, -{ 354, "ʷƤ", 28479}, -{ 355, "ʷƤ", 28480}, -{ 356, "ʷƤ", 28481}, +{ 353, "史卡皮诺", 28478}, +{ 354, "史卡皮克", 28479}, +{ 355, "史卡皮奥", 28480}, +{ 356, "史卡皮顿", 28481}, -{ 357, "", 28482}, -{ 358, "޶", 28487}, -{ 359, "", 28488}, -{ 360, "׶", 28483}, -{ 361, "޶", 28484}, -{ 362, "Ͽ˹", 28485}, -{ 363, "Ͽ˹", 28486}, +{ 357, "菲奇亚", 28482}, +{ 358, "巴罗多", 28487}, +{ 359, "巴罗特", 28488}, +{ 360, "克雷多", 28483}, +{ 361, "培罗多", 28484}, +{ 362, "毕可斯", 28485}, +{ 363, "毕卡斯", 28486}, -{ 364, "", 28489}, -{ 365, "¶", 28490}, -{ 366, "", 28491}, -{ 367, "", 28492}, -{ 368, "ʷ˽", 28493}, -{ 369, "ʷ", 28494}, -{ 370, "·", 28495}, -{ 371, "·", 28496}, -{ 372, "ִ", 28497}, -{ 373, "ŷִ", 28498}, -{ 374, "˹", 28499}, -{ 375, "˹", 28500}, -{ 376, "", 28501}, -{ 377, "Ͽ", 28502}, -{ 378, "ִ", 28503}, -{ 379, "ִ", 28504}, -{ 380, "˹", 28505}, -{ 381, "ʷο", 28506}, -{ 382, "", 28507}, -{ 383, "", 28508}, -{ 384, "ŷ", 28509}, -{ 385, "ŷ", 28510}, -{ 386, "³ŷ", 28511}, -{ 387, "ŷ", 28512}, -{ 388, "¶", 28513}, -{ 389, "˹", 28514}, -{ 390, "µϱ", 28515}, -{ 391, "ɫ1", 28516}, -{ 392, "ɫ2", 28517}, -{ 393, "", 28518}, -{ 394, "¶", 28519}, -{ 395, "1", 28521}, -{ 396, "2", 28522}, -{ 397, "˹", 28520}, -{ 398, "", 28523}, -{ 399, "", 28524}, -{ 400, "׵", 28525}, -{ 401, "Ƶ", 28526}, -{ 402, "˹", 28527}, -{ 403, "", 28528}, -{ 404, "", 28529}, -{ 405, "˹", 28530}, -{ 406, "ֶ", 28531}, -{ 407, "׶", 28532}, -{ 408, "˹", 28533}, -{ 409, "ŵ˹", 28534}, -{ 410, "ŵ", 28535}, -{ 411, "˹", 28536}, -{ 412, "ŵ", 28537}, -{ 413, "³", 28538}, -{ 414, "", 28539}, -{ 415, "ֿ˱", 28540}, -{ 416, "˹ķ", 28541}, -{ 417, "", 28542}, -{ 418, "", 28543}, -{ 419, "", 28544}, -{ 420, "", 28545}, -{ 421, "", 28546}, -{ 422, "˹", 28547}, -{ 423, "ַ", 28548}, -{ 424, "", 28549}, -{ 425, "ƶ", 28556}, -{ 426, "", 28557}, -{ 427, "ο", 28558}, -{ 428, "", 28559}, -{ 429, "ܽ", 28583}, -{ 430, "", 28582}, -{ 431, "Ħ˼", 28584}, -{ 432, "", 28585}, -{ 433, "", 28586}, -{ 434, "ŷ", 28587}, -{ 435, "", 28588}, -{ 436, "ֿܶ", 28611}, -{ 437, "", 28612}, -{ 438, "", 28613}, -{ 439, "ֶ", 28614}, -// 8.0 -{ 440, "˹", 28589}, -{ 441, "³", 28590}, -{ 442, "꼪", 28591}, -{ 443, "", 28592}, -{ 444, "", 28593}, -{ 445, "", 28594}, -{ 446, "", 28595}, -{ 447, "˷", 28596}, -{ 448, "", 28597}, -{ 449, "", 28598}, -{ 450, "", 28599}, -{ 451, "ɪ", 28600}, -{ 452, "", 28601}, -{ 453, "ŷŷ", 28602}, -{ 454, "", 28603}, -{ 455, "ķ", 28604}, -{ 456, "˹", 28605}, -{ 457, "˹˹", 28606}, -{ 458, "˹", 28607}, -{ 459, "˹", 28608}, -{ 460, "èŮ3", 28610}, -{ 461, "走", 28609}, -{ 462, "նǒO", 28616}, -{ 463, "ՒOO", 28617}, -{ 464, "ՒO", 28618}, -{ 465, "ՒO", 28619}, -{ 466, "˹׿", 28615}, -{ 467, "ŵ", 28620}, -{ 468, "ŵ", 28621}, -{ 469, "ŵ", 28622}, -{ 470, "ŵ", 28623}, -{ 471, "¹ŵ±", 28624}, -{ 472, "˹ŵ", 28625}, -{ 473, "ŵ", 28626}, -{ 474, "չŵ", 28627}, -{ 475, "˾", 28628}, -{ 476, "ն", 28629}, -{ 477, "ձ", 28630}, -{ 478, "", 28631}, -{ 479, "޸", 28632}, -{ 480, "޿", 28633}, -{ 481, "̹", 28634}, -{ 482, "", 28635}, -{ 483, "˾", 28637},//1740 -{ 484, "Ī│", 28638},//1741 -{ 485, "޿", 28639}, -{ 486, "꿨", 28640}, +{ 364, "多芬", 28489}, +{ 365, "温多芬", 28490}, +{ 366, "多瑞里", 28491}, +{ 367, "贝瑞里", 28492}, +{ 368, "史克杰", 28493}, +{ 369, "史菲洛", 28494}, +{ 370, "贝路卡", 28495}, +{ 371, "奇路卡", 28496}, +{ 372, "库胖达", 28497}, +{ 373, "欧胖达", 28498}, +{ 374, "斯达克", 28499}, +{ 375, "西斯达", 28500}, +{ 376, "奇肯沃", 28501}, +{ 377, "奇肯克奈", 28502}, +{ 378, "胖达利", 28503}, +{ 379, "胖达多", 28504}, +{ 380, "葛利斯奈", 28505}, +{ 381, "史奈克特", 28506}, +{ 382, "艾柏瑞", 28507}, +{ 383, "呼萨瑞", 28508}, +{ 384, "贝里莱欧", 28509}, +{ 385, "萨法莱欧", 28510}, +{ 386, "鲁贝莱欧", 28511}, +{ 387, "多帕莱欧", 28512}, +{ 388, "里德尔", 28513}, +{ 389, "萨德斯凯", 28514}, +{ 390, "萨德迪比", 28515}, +{ 391, "变色龙1", 28516}, +{ 392, "变色龙2", 28517}, +{ 393, "弗丽雅", 28518}, +{ 394, "弗丽露", 28519}, +{ 395, "三角龙1", 28521}, +{ 396, "三角龙2", 28522}, +{ 397, "佛克斯", 28520}, +{ 398, "乌力王", 28523}, +{ 399, "美拉", 28524}, +{ 400, "伦迪", 28525}, +{ 401, "奇朋菲德", 28526}, +{ 402, "奇朋亚斯", 28527}, +{ 403, "奇朋德美", 28528}, +{ 404, "奇朋洛依", 28529}, +{ 405, "哈沃斯", 28530}, +{ 406, "哈沃恩", 28531}, +{ 407, "雷尔", 28532}, +{ 408, "哈利恩斯", 28533}, +{ 409, "帖伊诺斯", 28534}, +{ 410, "利则诺顿", 28535}, +{ 411, "扬奇洛斯", 28536}, +{ 412, "邦奇诺", 28537}, +{ 413, "布鲁顿", 28538}, +{ 414, "布里萨尔", 28539}, +{ 415, "沃克比", 28540}, +{ 416, "沃斯姆", 28541}, +{ 417, "巴雅", 28542}, +{ 418, "巴特", 28543}, +{ 419, "黑乌力王", 28544}, +{ 420, "莱恩奇夫", 28545}, +{ 421, "莱恩洛克", 28546}, +{ 422, "邦浦洛斯", 28547}, +{ 423, "怀沃夫", 28548}, +{ 424, "布伊酷", 28549}, +{ 425, "菲尔特", 28556}, +{ 426, "布林特", 28557}, +{ 427, "奈坎特", 28558}, +{ 428, "奈宇罗", 28559}, +{ 429, "卡芙娜", 28583}, +{ 430, "卡萝丽", 28582}, +{ 431, "摩洛索思", 28584}, +{ 432, "瓦奇肯", 28585}, +{ 433, "弗奇肯", 28586}, +{ 434, "欧奇肯", 28587}, +{ 435, "波奇肯", 28588}, +{ 436, "卡沃寇恩", 28611}, +{ 437, "卡沃裴特", 28612}, +{ 438, "莱福", 28613}, +{ 439, "乐多", 28614}, +// 8.0 宠物 +{ 440, "比斯吉", 28589}, +{ 441, "帕鲁吉", 28590}, +{ 442, "尼玛吉", 28591}, +{ 443, "威尔吉", 28592}, +{ 444, "艾恩克", 28593}, +{ 445, "艾美", 28594}, +{ 446, "艾茵", 28595}, +{ 447, "艾克夫", 28596}, +{ 448, "安古力", 28597}, +{ 449, "裘尼", 28598}, +{ 450, "卡卡力", 28599}, +{ 451, "亚瑟力", 28600}, +{ 452, "伊弗拉", 28601}, +{ 453, "欧拉欧拉", 28602}, +{ 454, "塔塔拉", 28603}, +{ 455, "吉姆拉", 28604}, +{ 456, "奥斯卡", 28605}, +{ 457, "斯斯卡", 28606}, +{ 458, "布里斯卡", 28607}, +{ 459, "邦斯卡", 28608}, +{ 460, "猫女3号", 28610}, +{ 461, "海宠蛋", 28609}, +{ 462, "普多那扥", 28616}, +{ 463, "普扥扥", 28617}, +{ 464, "伊普扥", 28618}, +{ 465, "普扥坎克", 28619}, +{ 466, "艾斯卓恩", 28615}, +{ 467, "洛狄雷诺", 28620}, +{ 468, "雷诺吉洛", 28621}, +{ 469, "葛多雷诺", 28622}, +{ 470, "雷诺夫", 28623}, +{ 471, "德古德贝特", 28624}, +{ 472, "奇斯古德", 28625}, +{ 473, "塔拉古德", 28626}, +{ 474, "赫古德", 28627}, +{ 475, "坎普洛司", 28628}, +{ 476, "坎普顿", 28629}, +{ 477, "坎普贝尔", 28630}, +{ 478, "坎奥尼亚", 28631}, +{ 479, "修格尔", 28632}, +{ 480, "尼修喀", 28633}, +{ 481, "修坦", 28634}, +{ 482, "修尼修尼", 28635}, +{ 483, "司卡奇", 28637},//1740 +{ 484, "莫里卡奇", 28638},//1741 +{ 485, "修卡", 28639}, +{ 486, "玛卡", 28640}, { 487, "", 28641}, { 488, "", 28642}, { 489, "", 28643}, -{ 490, "˹", 28644}, -{ 491, "˴", 28645}, -{ 492, "Ŀ", 28646}, -{ 493, "Ļ", 28647}, -{ 494, "Ƥ", 28648}, -{ 495, "Ƥ", 28649}, -{ 496, "ʷѸ", 28650},//ţ1 1753 -{ 497, "ʷڶ", 28651},//ţ2 -{ 498, "", 28652},//ż -{ 499, "ά", 28653}, -{ 500, "ά", 28654}, -{ 501, "", 28655}, -{ 502, "ϣ", 28656}, +{ 490, "卡克亚斯", 28644}, +{ 491, "卡克戴蒙", 28645}, +{ 492, "夏克", 28646}, +{ 493, "夏基", 28647}, +{ 494, "皮朋", 28648}, +{ 495, "皮拉迪", 28649}, +{ 496, "史内迅", 28650},//蜗牛1 1753 +{ 497, "史内尔", 28651},//蜗牛2 +{ 498, "", 28652},//猪布偶 +{ 499, "维特", 28653}, +{ 500, "维奇", 28654}, +{ 501, "杜洛库玛", 28655}, +{ 502, "希库玛", 28656}, { 503, "", 28657}, { 504, "", 28658}, -{ 505, "³", 28659}, -{ 506, "˹", 28660}, -{ 507, "ϸ", 28661}, -{ 508, "յ¶", 28662}, //Ȯһֻ +{ 505, "布鲁多基", 28659}, +{ 506, "哈斯多基", 28660}, +{ 507, "毕格多基", 28661}, +{ 508, "普德多基", 28662}, //犬年最后一只 { 509, "", 28663}, -{ 510, "ɭ", 28663}, //èͷӥ1 -{ 511, "", 28664}, //èͷӥ2 -{ 512, "", 28665}, //1 -{ 513, "", 28666}, //2 -{ 514, "", 28667}, //1 -{ 515, "", 28668}, //2 -{ 516, "", 28669}, //ػ -{ 517, "˹", 28670}, //1 8.5 -{ 518, "ɵ˹", 28671}, //2 8.5 -{ 519, "DZ", 28672}, //3 8.5 -{ 520, "", 28673}, //4 8.5 +{ 510, "奥特森", 28663}, //猫头鹰1 +{ 511, "奥乐奇", 28664}, //猫头鹰2 +{ 512, "马普立", 28665}, //狒狒1 +{ 513, "马普奇", 28666}, //狒狒2 +{ 514, "", 28667}, //袋鼠1 +{ 515, "", 28668}, //袋鼠2 +{ 516, "多奇", 28669}, //守护兽 +{ 517, "代蒙特斯", 28670}, //异齿兽1 8.5 +{ 518, "代蒙迪斯", 28671}, //异齿兽2 8.5 +{ 519, "代蒙那贝", 28672}, //异齿兽3 8.5 +{ 520, "代蒙索尼", 28673}, //异齿兽4 8.5 { 521, "" , 28674}, // { 522, "" , 28675}, // { 523, "" , 28676}, // { 524, "" , 28677}, // -{ 525, "׶" , 28678}, // -{ 526, "" , 28679}, // +{ 525, "阔米尔" , 28678}, // +{ 526, "阔尔达" , 28679}, // { 527, "" , 28680}, // { 528, "" , 28681}, // { 529, "" , 28682}, // @@ -710,48 +710,48 @@ { 533, "" , 28686}, // { 534, "" , 28687}, // { 535, "" , 28688}, // -{ 536, "˹", 28689}, //Сħ1 -{ 537, "", 28690}, //Сħ2 -{ 538, "ﲼ", 28691}, //Сħ3 -{ 539, "沨", 28692}, //Сħ4 -{ 540, "Ħ˹", 28693}, //1 -{ 541, "Ħ˹", 28694}, //2 -{ 542, "", 28695}, // -{ 543, "", 28696}, //ʼ1 -{ 544, "", 28697}, //ʼ2 -{ 545, "ڶߵ", 28698}, //1 -{ 546, "׸ߵ", 28699}, //2 -{ 547, "ͼߵ", 28700}, //3 -{ 548, "ߵ", 28701}, //4 -{ 549, "Ŷ", 28702}, // -{ 550, "Ŷ", 28703}, // -{ 551, "Ŷ", 28704}, // -{ 552, "Ŷ", 28705}, // -{ 553, "", 28706}, //Ա -{ 554, "ɭ", 28707}, //Ա -{ 555, "Ī", 28708}, // -{ 556, "IJ", 28709}, // +{ 536, "波益提斯", 28689}, //小恶魔1 +{ 537, "波益提亚", 28690}, //小恶魔2 +{ 538, "波益达布", 28691}, //小恶魔3 +{ 539, "波益波拿", 28692}, //小恶魔4 +{ 540, "摩门斯", 28693}, //象人1 +{ 541, "曼摩斯", 28694}, //象人2 +{ 542, "怀肯沃", 28695}, //黑狼 +{ 543, "亚奇儿", 28696}, //始祖鸟1 +{ 544, "亚蒙特", 28697}, //始祖鸟2 +{ 545, "乌多高登", 28698}, //猪年兽1 +{ 546, "乌米高登", 28699}, //猪年兽2 +{ 547, "乌图高登", 28700}, //猪年兽3 +{ 548, "乌萨高登", 28701}, //猪年兽4 +{ 549, "古丁巴拉", 28702}, //蓝企鹅 +{ 550, "古丁格格", 28703}, //灰企鹅 +{ 551, "古丁拉尔", 28704}, //绿企鹅 +{ 552, "古丁亚拉", 28705}, //红企鹅 +{ 553, "伊多亚", 28706}, //黄猎豹 +{ 554, "伊古森", 28707}, //绿猎豹 +{ 555, "夏莫", 28708}, // +{ 556, "夏波", 28709}, // // Robin add -{ 557, "ֵ", 28710}, // -{ 558, "Ī", 28711}, // -{ 559, "Ī", 28712}, // +{ 557, "夏乐地", 28710}, // +{ 558, "莫可", 28711}, // 虎人 +{ 559, "莫洛特", 28712}, // -{ 560, "׶", 28713}, // -{ 561, "׶", 28714}, // -{ 562, "ֶ", 28715}, // -{ 563, "", 28716}, // +{ 560, "米多多", 28713}, // 鼠年兽 +{ 561, "米多亚", 28714}, // 鼠年兽 +{ 562, "米乐多", 28715}, // 鼠年兽 +{ 563, "米尼乐", 28716}, // 鼠年兽 -{ 564, "", 28717}, // ѩ -{ 565, "", 28718}, // ѩ +{ 564, "戈力拉", 28717}, // 蓝雪怪 +{ 565, "戈力多", 28718}, // 红雪怪 -//{ 564, "", 28718}, // -//{ 565, "", 28717}, // +//{ 564, "红刺猬", 28718}, // 红刺猬 +//{ 565, "蓝刺猬", 28717}, // 蓝刺猬 -{ 566, "ſ", 28719}, // -{ 567, "ŵ", 28720}, -{ 568, "", 28721}, -{ 569, "ȶ", 28722}, +{ 566, "雅肯", 28719}, // 大嘴鸟 +{ 567, "诺肯", 28720}, +{ 568, "多肯", 28721}, +{ 569, "谷多", 28722}, -// ಾλʱҲҪ menu.h MAX_PET_KIND Ŀ +// 增加相簿栏位时,也要增加 menu.h 中 MAX_PET_KIND 数目 diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/process.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/process.h index 8a714aa..abf0d88 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/process.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/process.h @@ -1,30 +1,30 @@ -/************************/ +/************************/ /* process.h */ /************************/ #ifndef _PROCESS_H_ #define _PROCESS_H_ -/* ?????? */ +/* ?????? */ enum{ PROC_INIT, - PROC_ID_PASSWORD, // ????????V??? - PROC_TITLE_MENU, // ????????? - PROC_CHAR_SELECT, // ???k - PROC_CHAR_MAKE, // ???? - PROC_CHAR_LOGIN_START, // ???????? + PROC_ID_PASSWORD, // ????????向??? + PROC_TITLE_MENU, // ??????????牙 + PROC_CHAR_SELECT, // ???︻? + PROC_CHAR_MAKE, // ???? + PROC_CHAR_LOGIN_START, // ???????? PROC_CHAR_LOGIN, // ???????? PROC_CHAR_LOGOUT, // ???????? PROC_OPENNING, PROC_GAME, // ??????? PROC_BATTLE, // ??????? - PROC_DISCONNECT_SERVER, // ???????e??????? + PROC_DISCONNECT_SERVER, // ???????κ??????? - PROC_TAKE_TEST, // {??? - PROC_OHTA_TEST, // ^??? - PROC_DWAF_TEST, // Z??? - PROC_SPR_VIEW, // ??????_???? - PROC_ANIM_VIEW, // ????????_???? - PROC_SE_TEST, // ???_???? + PROC_TAKE_TEST, // ㄌ???? + PROC_OHTA_TEST, // 兣???? + PROC_DWAF_TEST, // 兛??? + PROC_SPR_VIEW, // ??????囝???? + PROC_ANIM_VIEW, // ????????囝???? + PROC_SE_TEST, // ???囝???? #ifdef _80_LOGIN_PLAY PROC_80_LOGIN, @@ -35,13 +35,13 @@ enum{ PROC_ENDING }; -/* ????k? */ +/* ????吻? */ extern UINT ProcNo; -/* ??????k? */ +/* ??????吻? */ extern UINT SubProcNo; -/* ????k? */ +/* ????吻? */ extern int ProcNo2; -/* ??????k? */ +/* ??????吻? */ extern int SubProcNo2; extern int palNo; @@ -51,31 +51,31 @@ extern int palTime; //the third /* ?????? */ void Process( void ); -/* ??????? */ +/* ????阪??? */ void ChangeProc( int procNo ); -/* ??????? */ +/* ????阪??? */ void ChangeProc( int procNo, int subProcNo ); -/* ??????? */ +/* ????阪??? */ void ChangeProc2( int procNo ); -/* ??????? */ +/* ????阪??? */ void ChangeProc2( int procNo, int subProcNo ); /* ????????? */ void GameProc( void ); -// ????? +// ????? void warpEffectProc( void ); -// ????? +// ?????? void repairMap( void ); void paletteProc( void ); #ifdef _STONDEBUG_ -/* {????????? */ +/* ㄌ?????????? */ void TakeTestProc( void ); -/* ^??????? */ +/* 兣???????? */ void OhtaTestProc( void ); #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/produce.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/produce.h index 715b01c..ad2a311 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/produce.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/produce.h @@ -1,70 +1,70 @@ -/************************/ +/************************/ /* produce.h */ /************************/ #ifndef _PRODUCE_H_ #define _PRODUCE_H_ -// ???????????? +// ???????????? enum{ - PRODUCE_UP_ACCELE, // ?L?h - PRODUCE_UP_BRAKE, // ?L?h + PRODUCE_UP_ACCELE, // ?﹩?去 + PRODUCE_UP_BRAKE, // ?﹩?去 - PRODUCE_DOWN_ACCELE, // ??L?h - PRODUCE_DOWN_BRAKE, // ??L?h + PRODUCE_DOWN_ACCELE, // ??﹩?去 + PRODUCE_DOWN_BRAKE, // ??﹩?去 - PRODUCE_LEFT_ACCELE, // ??L?h - PRODUCE_LEFT_BRAKE, // ??L?h + PRODUCE_LEFT_ACCELE, // ??﹩?去 + PRODUCE_LEFT_BRAKE, // ??﹩?去 - PRODUCE_RIGHT_ACCELE, // ??L?h - PRODUCE_RIGHT_BRAKE, // ??L?h + PRODUCE_RIGHT_ACCELE, // ??﹩?去 + PRODUCE_RIGHT_BRAKE, // ??﹩?去 - PRODUCE_LEFT_RIGHT_ACCELE, // ???L?h - PRODUCE_LEFT_RIGHT_BRAKE, // ???L?h + PRODUCE_LEFT_RIGHT_ACCELE, // ???﹩?去 + PRODUCE_LEFT_RIGHT_BRAKE, // ???﹩?去 - PRODUCE_UP_DOWM_ACCELE, // ??L?h - PRODUCE_UP_DOWM_BRAKE, // ??L?h + PRODUCE_UP_DOWM_ACCELE, // ??﹩?去 + PRODUCE_UP_DOWM_BRAKE, // ??﹩?去 - PRODUCE_4WAY_OUT, // ??h??? - PRODUCE_4WAY_IN, // ??h?? + PRODUCE_4WAY_OUT, // ???去???? + PRODUCE_4WAY_IN, // ???去???? - PRODUCE_HAGARE_OUT, // ????????? - PRODUCE_HAGARE_IN, // ?????????? + PRODUCE_HAGARE_OUT, // ????????? + PRODUCE_HAGARE_IN, // ?????????? - PRODUCE_HAGARE_OCHI_OUT, // ????????? - PRODUCE_HAGARE_OCHI_IN, // ?????????? + PRODUCE_HAGARE_OCHI_OUT, // ????????? + PRODUCE_HAGARE_OCHI_IN, // ?????????? - PRODUCE_BRAN_SMALL, // ??? - PRODUCE_BRAN_BIG, // ???? + PRODUCE_BRAN_SMALL, // ??? + PRODUCE_BRAN_BIG, // ????? - PRODUCE_BREAK_UP1, //??????? - PRODUCE_BREAK_UP2, //?????? + PRODUCE_BREAK_UP1, //??????? + PRODUCE_BREAK_UP2, //?????? - PRODUCE_BREAK_UP3, //??????? - PRODUCE_BREAK_UP4, //??????? + PRODUCE_BREAK_UP3, //??????? + PRODUCE_BREAK_UP4, //??????? - PRODUCE_BREAK_UP5, //???????? - PRODUCE_BREAK_UP6, //??????? + PRODUCE_BREAK_UP5, //???????? + PRODUCE_BREAK_UP6, //??????? - PRODUCE_BREAK_UP7, //???????? - PRODUCE_BREAK_UP8, //?????? + PRODUCE_BREAK_UP7, //???????? + PRODUCE_BREAK_UP8, //?????? - PRODUCE_CENTER_PRESSIN, // ???????? - PRODUCE_CENTER_PRESSOUT, // ????????? + PRODUCE_CENTER_PRESSIN, // ???????? + PRODUCE_CENTER_PRESSOUT, // ????????? - PRODUCE_END, // ? + PRODUCE_END, // ? }; -// ??????? +// ??????? extern int ProduceInitFlag; -// ???????????? **************************************************/ +// ???????????? **************************************************/ void CopyBackBuffer( void ); -// ?Ҥ? ********************************************************************/ +// ?丙? ********************************************************************/ BOOL DrawProduce( int no ); -// ????? ********************************************************************/ +// ????? ********************************************************************/ void TitleProduce( void ); #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/radar.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/radar.h index afff865..1d2a13b 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/radar.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/radar.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* radar.h */ /************************/ #ifndef _RADAR_ @@ -10,14 +10,14 @@ void radar(ACTION *,int *,int *); * * ???? * -* IN pAct ?????????? -* x ??? -* y ??? -* cnt ??????? +* IN pAct 希?????????? +* x ?火??火 +* y ?火??火 +* cnt ??阪?????? * * OUT d1 ?? ( 0 ? ??? ) * -* ???( 0 ? 31 )? a0->crs ?V? +* ???( 0 ? 31 )? a0->crs ?向? * ********************************************************************/ int radar2(ACTION *pAct,int x,int y, int cnt ); diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/savedata.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/savedata.h index e2e2863..1bd50cb 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/savedata.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/savedata.h @@ -1,4 +1,4 @@ -#ifndef _SAVEDATA_H_ +#ifndef _SAVEDATA_H_ #define _SAVEDATA_H_ BOOL saveUserSetting( void ); @@ -24,7 +24,7 @@ extern int sCharSide; // ???????? -#define SAVE_ERRMSG_loadNowState "ȡ浵ʧܡ(code = %d)" +#define SAVE_ERRMSG_loadNowState "黍揣湔紫偶囮啖﹝(code = %d)" diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/shop.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/shop.h index 52f5a7e..8628bbe 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/shop.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/shop.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* battleMap.h */ /************************/ #ifndef _BATTLE_MAP_H_ @@ -7,13 +7,13 @@ // ???????????? #define BATTLE_MAP_FILES 220 -// ?????????k? +// ?????????? extern int BattleMapNo; -// ?????????????????????? ***************************/ +// ?????????????????????? ***************************/ BOOL ReadBattleMap( int no ); -// ??????? ***********************************************************/ +// ??????? ***********************************************************/ void DrawBattleMap( void ); -void ʾ(short x,short y,UCHAR ,char* ,unsigned int ,char* ); +void 显示道具数据(short x,short y,UCHAR 层次,char* 内容,unsigned int 形像,char*名字 ); #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/sndcnf.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/sndcnf.h index 101ffba..9b9575e 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/sndcnf.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/sndcnf.h @@ -1,21 +1,21 @@ -// k?????????????????S?O?????????????????????????????? +// ???????????????????????????????????????????????? SNDCONFIG sndconfig[] = { // ????? - { 1, "data\\se\\sap_01.wav", 85, 0, 0 /*, "a?????"*/ }, - { 2, "data\\se\\sap_02.wav", 85, 0, 0 /*, "a?????S?"*/ }, + { 1, "data\\se\\sap_01.wav", 85, 0, 0 /*, "a?????"*/ }, + { 2, "data\\se\\sap_02.wav", 85, 0, 0 /*, "a??????"*/ }, { 3, "data\\se\\sap_03.wav", 85, 0, 0 /*, "a??????"*/ }, - { 4, "data\\se\\sap_04.wav", 100, 0, 0 /*, "a????"*/ }, + { 4, "data\\se\\sap_04.wav", 100, 0, 0 /*, "a????"*/ }, { 5, "data\\se\\sap_05.wav", 85, 0, 0 /*, "a????"*/ }, - { 6, "data\\se\\sap_06.wav", 60, 0, 0 /*, "a?"*/ }, + { 6, "data\\se\\sap_06.wav", 60, 0, 0 /*, "a?"*/ }, { 7, "data\\se\\sap_07.wav", 123, 0, 0 /*, "a??????"*/ }, { 8, "data\\se\\sap_08.wav", 80, 0, 0 /*, "?????"*/ }, { 9, "data\\se\\sap_09.wav", 80, 0, 0 /*, "a??????"*/ }, { 10, "data\\se\\sap_10.wav", 80, 0, 0 /*, "a???????"*/ }, -//x { 11, "data\\se\\sap_11.wav", 105, 7, 0 /*, "??"*/ }, - { 11, "data\\se\\sap_11.wav", 105, 0, 0 /*, "??"*/ }, - { 12, "data\\se\\sap_14.wav", 100, 0, 0 /*, "??"*/ }, +//x { 11, "data\\se\\sap_11.wav", 105, 7, 0 /*, "??"*/ }, + { 11, "data\\se\\sap_11.wav", 105, 0, 0 /*, "??"*/ }, + { 12, "data\\se\\sap_14.wav", 100, 0, 0 /*, "??"*/ }, { 13, "data\\se\\sap_12.wav", 90, 0, 0 /*, "?????"*/ }, { 14, "data\\se\\sap_13.wav", 105, 0, 0 /*, "??????"*/ }, @@ -26,7 +26,7 @@ SNDCONFIG sndconfig[] = { 54, "data\\se\\sae_04.wav", 123, 0, 0 /*, ""*/ }, { 55, "data\\se\\sae_05.wav", 123, 0, 0 /*, ""*/ }, { 56, "data\\se\\sae_06.wav", 105, 0, 0 /*, "?????"*/ }, - { 57, "data\\se\\sae_07.wav", 80, 0, 0 /*, "???????"*/ }, + { 57, "data\\se\\sae_07.wav", 80, 0, 0 /*, "???????"*/ }, { 58, "data\\se\\sae_08.wav", 123, 0, 0 /*, ""*/ }, { 59, "data\\se\\sae_09.wav", 123, 0, 0 /*, ""*/ }, { 60, "data\\se\\sae_10.wav", 80, 0, 0 /*, "????"*/ }, @@ -35,7 +35,7 @@ SNDCONFIG sndconfig[] = { 63, "data\\se\\sae_13.wav", 80, 0, 0 /*, "?????"*/ }, { 64, "data\\se\\sae_14.wav", 90, 0, 0 /*, "???"*/ }, { 65, "data\\se\\sae_15.wav", 95, 0, 0 /*, "?????"*/ }, - { 66, "data\\se\\sae_16.wav", 95, 0, 0 /*, "???"*/ }, + { 66, "data\\se\\sae_16.wav", 95, 0, 0 /*, "???"*/ }, { 67, "data\\se\\sae_17.wav", 123, 0, 0 /*, ""*/ }, { 68, "data\\se\\sae_18.wav", 123, 0, 0 /*, ""*/ }, { 69, "data\\se\\sae_19.wav", 123, 0, 0 /*, ""*/ }, @@ -53,186 +53,186 @@ SNDCONFIG sndconfig[] = { 81, "data\\se\\sae_31.wav", 123, 0, 0 /*, ""*/ }, { 82, "data\\se\\sae_32.wav", 123, 0, 0 /*, ""*/ }, - // ? - { 100, "data\\se\\sam_01.wav", 75, 0, 0 /*, "??????"*/ }, - { 101, "data\\se\\sam_02.wav", 75, 0, 0 /*, "????"*/ }, + // ? + { 100, "data\\se\\sam_01.wav", 75, 0, 0 /*, "??????"*/ }, + { 101, "data\\se\\sam_02.wav", 75, 0, 0 /*, "????"*/ }, { 102, "data\\se\\sam_03.wav", 75, 0, 0 /*, "??"*/ }, - { 103, "data\\se\\sam_04.wav", 123, 0, 0 /*, "????"*/ }, + { 103, "data\\se\\sam_04.wav", 123, 0, 0 /*, "????"*/ }, { 104, "data\\se\\sam_05.wav", 123, 0, 0 /*, "?????"*/ }, - { 105, "data\\se\\sam_06.wav", 123, 0, 0 /*, "????"*/ }, - { 106, "data\\se\\sam_07.wav", 123, 0, 0 /*, "????"*/ }, + { 105, "data\\se\\sam_06.wav", 123, 0, 0 /*, "????"*/ }, + { 106, "data\\se\\sam_07.wav", 123, 0, 0 /*, "????"*/ }, { 107, "data\\se\\sam_08.wav", 123, 0, 0 /*, "?????"*/ }, - { 108, "data\\se\\sam_09.wav", 123, 0, 0 /*, "????"*/ }, - { 109, "data\\se\\sam_10.wav", 123, 0, 0 /*, "????"*/ }, + { 108, "data\\se\\sam_09.wav", 123, 0, 0 /*, "????"*/ }, + { 109, "data\\se\\sam_10.wav", 123, 0, 0 /*, "????"*/ }, { 110, "data\\se\\sam_11.wav", 123, 0, 0 /*, "?????"*/ }, - { 111, "data\\se\\sam_12.wav", 123, 0, 0 /*, "????"*/ }, - { 112, "data\\se\\sam_13.wav", 123, 0, 0 /*, "????"*/ }, + { 111, "data\\se\\sam_12.wav", 123, 0, 0 /*, "????"*/ }, + { 112, "data\\se\\sam_13.wav", 123, 0, 0 /*, "????"*/ }, { 113, "data\\se\\sam_14.wav", 123, 0, 0 /*, "?????"*/ }, { 114, "data\\se\\sam_15.wav", 85, 0, 0 /*, "?????????"*/ }, { 115, "data\\se\\sam_16.wav", 123, 0, 0 /*, "???"*/ }, - { 116, "data\\se\\sam_17.wav", 123, 0, 0 /*, "?_"*/ }, + { 116, "data\\se\\sam_17.wav", 123, 0, 0 /*, "?"*/ }, { 117, "data\\se\\sam_18.wav", 123, 0, 0 /*, "????"*/ }, { 118, "data\\se\\sam_19.wav", 123, 0, 0 /*, "??"*/ }, - { 119, "data\\se\\sam_20.wav", 123, 0, 0 /*, "?"*/ }, - { 120, "data\\se\\sam_21.wav", 123, 0, 0 /*, "?"*/ }, - { 121, "data\\se\\sam_22.wav", 123, 0, 0 /*, ""*/ }, - { 122, "data\\se\\sam_23.wav", 123, 0, 0 /*, "?d"*/ }, - { 123, "data\\se\\sam_24.wav", 123, 0, 0 /*, "?"*/ }, + { 119, "data\\se\\sam_20.wav", 123, 0, 0 /*, "?"*/ }, + { 120, "data\\se\\sam_21.wav", 123, 0, 0 /*, "?"*/ }, + { 121, "data\\se\\sam_22.wav", 123, 0, 0 /*, ""*/ }, + { 122, "data\\se\\sam_23.wav", 123, 0, 0 /*, "?"*/ }, + { 123, "data\\se\\sam_24.wav", 123, 0, 0 /*, "?"*/ }, // ?? // { 151, "data\\se\\sak_01.wav", 121, 0, 1 /*, "????"*/ }, -// { 152, "data\\se\\sak_02.wav", 121, 0, 1 /*, "???]?"*/ }, +// { 152, "data\\se\\sak_02.wav", 121, 0, 1 /*, "????"*/ }, { 151, "data\\se\\sak_01.wav", 127, 0, 1 /*, "?????"*/ }, -//x { 152, "data\\se\\sak_02.wav", 127, 4, 1 /*, "?????"*/ }, - { 152, "data\\se\\sak_02.wav", 127, 0, 1 /*, "?????"*/ }, +//x { 152, "data\\se\\sak_02.wav", 127, 4, 1 /*, "?????"*/ }, + { 152, "data\\se\\sak_02.wav", 127, 0, 1 /*, "?????"*/ }, { 153, "data\\se\\sak_03.wav", 121, 0, 1 /*, "?"*/ }, { 154, "data\\se\\sak_04.wav", 90, 0, 1 /*, "?"*/ }, - { 155, "data\\se\\sak_05.wav", 95, 0, 1 /*, "?D"*/ }, - { 156, "data\\se\\sak_06.wav", 127, 0, 1 /*, "?"*/ }, - { 157, "data\\se\\sak_07.wav", 125, 0, 1 /*, "O?????"*/ }, - { 158, "data\\se\\sak_08.wav", 125, 0, 1 /*, "??????"*/ }, - { 159, "data\\se\\sak_09a.wav", 120, 0, 1 /*, "??"*/ }, - { 160, "data\\se\\sak_10.wav", 115, 0, 1 /*, "??????"*/ }, - { 161, "data\\se\\sak_11.wav", 85, 0, 1 /*, "?"*/ }, - { 162, "data\\se\\sak_12.wav", 120, 0, 1 /*, "?"*/ }, - { 163, "data\\se\\sak_13.wav", 100, 0, 1 /*, "???????"*/ }, + { 155, "data\\se\\sak_05.wav", 95, 0, 1 /*, "?"*/ }, + { 156, "data\\se\\sak_06.wav", 127, 0, 1 /*, "?"*/ }, + { 157, "data\\se\\sak_07.wav", 125, 0, 1 /*, "?????"*/ }, + { 158, "data\\se\\sak_08.wav", 125, 0, 1 /*, "??????"*/ }, + { 159, "data\\se\\sak_09a.wav", 120, 0, 1 /*, "??"*/ }, + { 160, "data\\se\\sak_10.wav", 115, 0, 1 /*, "??????"*/ }, + { 161, "data\\se\\sak_11.wav", 85, 0, 1 /*, "?"*/ }, + { 162, "data\\se\\sak_12.wav", 120, 0, 1 /*, "?"*/ }, + { 163, "data\\se\\sak_13.wav", 100, 0, 1 /*, "???????"*/ }, { 164, "data\\se\\sak_14.wav", 127, 0, 1 /*, "??"*/ }, - { 165, "data\\se\\sak_15.wav", 120, 0, 1 /*, "??"*/ }, - { 166, "data\\se\\sak_16.wav", 120, 0, 1 /*, "????????"*/ }, - { 167, "data\\se\\sak_17.wav", 110, 0, 1 /*, "??"*/ }, - { 168, "data\\se\\sak_09b.wav", 120, 0, 1 /*, "????"*/ }, + { 165, "data\\se\\sak_15.wav", 120, 0, 1 /*, "佋??"*/ }, + { 166, "data\\se\\sak_16.wav", 120, 0, 1 /*, "????????"*/ }, + { 167, "data\\se\\sak_17.wav", 110, 0, 1 /*, "??"*/ }, + { 168, "data\\se\\sak_09b.wav", 120, 0, 1 /*, "????"*/ }, // ???? - { 201, "data\\se\\sas_01.wav", 90, 0, 0 /*, "???"*/ }, + { 201, "data\\se\\sas_01.wav", 90, 0, 0 /*, "???"*/ }, { 202, "data\\se\\sas_02.wav", 80, 0, 0 /*, "????????"*/ }, - { 203, "data\\se\\sas_03.wav", 75, 0, 0 /*, "????????"*/ }, + { 203, "data\\se\\sas_03.wav", 75, 0, 0 /*, "????????"*/ }, { 204, "data\\se\\sas_04.wav", 80, 0, 0 /*, "?????????"*/ }, - { 205, "data\\se\\sas_05.wav", 80, 0, 0 /*, "?????????"*/ }, + { 205, "data\\se\\sas_05.wav", 80, 0, 0 /*, "?????????"*/ }, { 206, "data\\se\\sas_06.wav", 80, 0, 0 /*, "???????"*/ }, { 207, "data\\se\\sas_07.wav", 123, 0, 0 /*, ""*/ }, { 208, "data\\se\\sas_08.wav", 123, 0, 0 /*, ""*/ }, { 209, "data\\se\\sas_09.wav", 123, 0, 0 /*, ""*/ }, { 210, "data\\se\\sas_10.wav", 123, 0, 0 /*, ""*/ }, { 211, "data\\se\\sas_11.wav", 65, 0, 0 /*, ??????""*/ }, - { 212, "data\\se\\sas_12.wav", 80, 0, 0 /*, "?????"*/ }, - { 213, "data\\se\\sas_13.wav", 123, 0, 0 /*, "????"*/ }, + { 212, "data\\se\\sas_12.wav", 80, 0, 0 /*, "?????"*/ }, + { 213, "data\\se\\sas_13.wav", 123, 0, 0 /*, "????"*/ }, // { 214, "data\\se\\sas_14.wav", 127, 0, 0 /*, "??"*/ }, { 215, "data\\se\\sas_15.wav", 82, 0, 0 /*, "??????"*/ }, { 216, "data\\se\\sas_16.wav", 110, 0, 0 /*, "?????"*/ }, { 217, "data\\se\\sas_17.wav", 85, 0, 0 /*, "????????"*/ }, { 218, "data\\se\\sas_18.wav", 123, 0, 0 /*, ""*/ }, - { 219, "data\\se\\sas_19.wav", 82, 0, 0 /*, "?"*/ }, - { 220, "data\\se\\sas_20.wav", 60, 0, 0 /*, "???Y?"*/ }, + { 219, "data\\se\\sas_19.wav", 82, 0, 0 /*, "?"*/ }, + { 220, "data\\se\\sas_20.wav", 60, 0, 0 /*, "????"*/ }, { 221, "data\\se\\sas_21.wav", 123, 0, 0 /*, ""*/ }, // ???? - { 250, "data\\se\\sad_01.wav", 85, 0, 0 /*, "???????"*/ }, - { 251, "data\\se\\sad_02.wav", 80, 0, 0 /*, "?????????S?"*/ }, + { 250, "data\\se\\sad_01.wav", 85, 0, 0 /*, "???????"*/ }, + { 251, "data\\se\\sad_02.wav", 80, 0, 0 /*, "??????????"*/ }, //x { 252, "data\\se\\sad_03.wav", 95, -3, 0 /*, "????????"*/ }, { 252, "data\\se\\sad_03.wav", 95, 0, 0 /*, "????????"*/ }, { 253, "data\\se\\sad_04.wav", 85, 0, 0 /*, "????????"*/ }, - { 254, "data\\se\\sad_05.wav", 90, 0, 0 /*, "??????Y?"*/ }, + { 254, "data\\se\\sad_05.wav", 90, 0, 0 /*, "???????"*/ }, #ifdef __ATTACK_MAGIC - { 300,"data\\se\\saam_01.wav",120, 0, 0 /*, "ǰħ ħ"*/ }, - { 301,"data\\se\\saam_02.wav",120, 0, 0 /*, "ħ ͼ"*/ }, - { 302,"data\\se\\saam_03.wav",120, 0, 0 /*, "ħ ħLv1"*/ }, - { 303,"data\\se\\saam_04.wav",120, 0, 0 /*, "ħ ħLv2"*/ }, - { 304,"data\\se\\saam_05.wav",120, 0, 0 /*, "ħ ħLv3-1"*/ }, - { 305,"data\\se\\saam_06.wav",120, 0, 0 /*, "ħ ħLv3-2*/ }, - { 306,"data\\se\\saam_07.wav",120, 0, 0 /*, "ħ ħLv3-3*/ }, - { 307,"data\\se\\saam_08.wav",120, 0, 0 /*, "ħ ħLv4*/ }, - { 308,"data\\se\\saam_09.wav",120, 0, 0 /*, "ˮħ ħLv1"*/ }, - { 309,"data\\se\\saam_10.wav",120, 0, 0 /*, "ˮħ ħLv2"*/ }, - { 310,"data\\se\\saam_11.wav",120, 0, 0 /*, "ˮħ ħLv3-1"*/ }, - { 311,"data\\se\\saam_12.wav",120, 0, 0 /*, "ˮħ ħLv3-2"*/ }, - { 312,"data\\se\\saam_13.wav",120, 0, 0 /*, "ˮħ ħLv3-3"*/ }, - { 313,"data\\se\\saam_14.wav",120, 0, 0 /*, "ˮħ ħLv4"*/ }, - { 314,"data\\se\\saam_15.wav",120, 0, 0 /*, "ħ ħLv1"*/ }, - { 315,"data\\se\\saam_16.wav",120, 0, 0 /*, "ħ ħLv2"*/ }, - { 316,"data\\se\\saam_17.wav",120, 0, 0 /*, "ħ ħLv3-1"*/ }, - { 317,"data\\se\\saam_18.wav",120, 0, 0 /*, "ħ ħLv3-2"*/ }, - { 318,"data\\se\\saam_19.wav",120, 0, 0 /*, "ħ ħLv3-3"*/ }, - { 319,"data\\se\\saam_20.wav",120, 0, 0 /*, "ħ ħLv4"*/ }, - { 320,"data\\se\\saam_21.wav",120, 0, 0 /*, "ħ ħLv1"*/ }, - { 321,"data\\se\\saam_22.wav",120, 0, 0 /*, "ħ ħLv2"*/ }, - { 322,"data\\se\\saam_23.wav",120, 0, 0 /*, "ħ ħLv3-1"*/ }, - { 323,"data\\se\\saam_24.wav",120, 0, 0 /*, "ħ ħLv3-2"*/ }, - { 324,"data\\se\\saam_25.wav",120, 0, 0 /*, "ħ ħLv3-3"*/ }, - { 325,"data\\se\\saam_26.wav",120, 0, 0 /*, "ħ ħLv4"*/ }, - { 326,"data\\se\\saam_27.wav",120, 0, 0 /*, "ħħ ħLv5"*/ }, + { 300,"data\\se\\saam_01.wav",120, 0, 0 /*, "前置魔法 魔法阵"*/ }, + { 301,"data\\se\\saam_02.wav",120, 0, 0 /*, "后置魔法 受伤图"*/ }, + { 302,"data\\se\\saam_03.wav",120, 0, 0 /*, "地魔法 魔法Lv1"*/ }, + { 303,"data\\se\\saam_04.wav",120, 0, 0 /*, "地魔法 魔法Lv2"*/ }, + { 304,"data\\se\\saam_05.wav",120, 0, 0 /*, "地魔法 魔法Lv3-1"*/ }, + { 305,"data\\se\\saam_06.wav",120, 0, 0 /*, "地魔法 魔法Lv3-2*/ }, + { 306,"data\\se\\saam_07.wav",120, 0, 0 /*, "地魔法 魔法Lv3-3*/ }, + { 307,"data\\se\\saam_08.wav",120, 0, 0 /*, "地魔法 魔法Lv4*/ }, + { 308,"data\\se\\saam_09.wav",120, 0, 0 /*, "水魔法 魔法Lv1"*/ }, + { 309,"data\\se\\saam_10.wav",120, 0, 0 /*, "水魔法 魔法Lv2"*/ }, + { 310,"data\\se\\saam_11.wav",120, 0, 0 /*, "水魔法 魔法Lv3-1"*/ }, + { 311,"data\\se\\saam_12.wav",120, 0, 0 /*, "水魔法 魔法Lv3-2"*/ }, + { 312,"data\\se\\saam_13.wav",120, 0, 0 /*, "水魔法 魔法Lv3-3"*/ }, + { 313,"data\\se\\saam_14.wav",120, 0, 0 /*, "水魔法 魔法Lv4"*/ }, + { 314,"data\\se\\saam_15.wav",120, 0, 0 /*, "火魔法 魔法Lv1"*/ }, + { 315,"data\\se\\saam_16.wav",120, 0, 0 /*, "火魔法 魔法Lv2"*/ }, + { 316,"data\\se\\saam_17.wav",120, 0, 0 /*, "火魔法 魔法Lv3-1"*/ }, + { 317,"data\\se\\saam_18.wav",120, 0, 0 /*, "火魔法 魔法Lv3-2"*/ }, + { 318,"data\\se\\saam_19.wav",120, 0, 0 /*, "火魔法 魔法Lv3-3"*/ }, + { 319,"data\\se\\saam_20.wav",120, 0, 0 /*, "火魔法 魔法Lv4"*/ }, + { 320,"data\\se\\saam_21.wav",120, 0, 0 /*, "风魔法 魔法Lv1"*/ }, + { 321,"data\\se\\saam_22.wav",120, 0, 0 /*, "风魔法 魔法Lv2"*/ }, + { 322,"data\\se\\saam_23.wav",120, 0, 0 /*, "风魔法 魔法Lv3-1"*/ }, + { 323,"data\\se\\saam_24.wav",120, 0, 0 /*, "风魔法 魔法Lv3-2"*/ }, + { 324,"data\\se\\saam_25.wav",120, 0, 0 /*, "风魔法 魔法Lv3-3"*/ }, + { 325,"data\\se\\saam_26.wav",120, 0, 0 /*, "风魔法 魔法Lv4"*/ }, + { 326,"data\\se\\saam_27.wav",120, 0, 0 /*, "魔王魔法 魔法Lv5"*/ }, #endif #ifdef _NEWSOUNDEFFECT - { 327,"data\\se\\sa1_01.wav",120, 0 ,0 } , //ĩ - { 328,"data\\se\\sa1_02.wav",120, 0 ,0 } , //ǹ - { 371,"data\\se\\sa2_01.wav",120, 0 ,0 } , //ر - { 372,"data\\se\\sa2_02.wav",120, 0 ,0 } , // - { 373,"data\\se\\sa2_03.wav",120, 0 ,0 } , //ۼ - { 374,"data\\se\\sa2_04.wav",120, 0 ,0 } , //רעս - { 375,"data\\se\\sa2_05.wav",120, 0 ,0 } , // - { 376,"data\\se\\sa2_06.wav",120, 0, 0 } , //ʿܹʮֹ - { 377,"data\\se\\sa2_07.wav",120, 0, 0 } , //ᴩ1 - { 378,"data\\se\\sa2_08.wav",120, 0, 0 } , //ᴩ2 - { 379,"data\\se\\sa2_09.wav",120, 0, 0 } , //1 - { 380,"data\\se\\sa2_10.wav",120, 0, 0 } , //2 - { 381,"data\\se\\sa3_01.wav",120, 0, 0 } , //׷Ѱ - { 382,"data\\se\\sa3_02.wav",120, 0, 0 } , // - { 383,"data\\se\\sa3_03.wav",120, 0, 0 } , // - { 384,"data\\se\\sa3_04.wav",120, 0, 0 } , // - { 385,"data\\se\\sa3_05.wav",120, 0, 0 } , //׵翹 - { 386,"data\\se\\sa3_06.wav",120, 0, 0 } , //濹Է - { 387,"data\\se\\sa3_07.wav",120, 0, 0 } , //濹 - { 388,"data\\se\\sa1_03.wav",120, 0, 0 } , // - { 389,"data\\se\\sa1_04.wav",120, 0, 0 } , // - { 390,"data\\se\\sa1_05.wav",120, 0, 0 } , // - { 391,"data\\se\\sa1_06.wav",120, 0, 0 } , // - { 392,"data\\se\\sa1_07.wav",120, 0, 0 } , // - { 393,"data\\se\\sa1_08.wav",120, 0, 0 } , // - { 394,"data\\se\\sa1_09.wav",120, 0, 0 } , //С - { 395,"data\\se\\sa1_10.wav",120, 0, 0 } , //ɽȪ - { 396,"data\\se\\sa1_11.wav",120, 0, 0 } , //ɽȪ - { 397,"data\\se\\sa1_12.wav",120, 0, 0 } , //ɽȪС - { 398,"data\\se\\sa3_08.wav",120, 0, 0 } , //ʹ - { 399,"data\\se\\sa3_09.wav",120, 0, 0 } , //㹥 - { 271,"data\\se\\sa1_13.wav",120, 0, 0 } , //һѪ + { 327,"data\\se\\sa1_01.wav",120, 0 ,0 } , //世界末日 + { 328,"data\\se\\sa1_02.wav",120, 0 ,0 } , //火龙枪 + { 371,"data\\se\\sa2_01.wav",120, 0 ,0 } , //回避 + { 372,"data\\se\\sa2_02.wav",120, 0 ,0 } , //激化攻击 + { 373,"data\\se\\sa2_03.wav",120, 0 ,0 } , //能量聚集 + { 374,"data\\se\\sa2_04.wav",120, 0 ,0 } , //专注战斗 + { 375,"data\\se\\sa2_05.wav",120, 0 ,0 } , //濒死攻击 + { 376,"data\\se\\sa2_06.wav",120, 0, 0 } , //勇士技能攻击命中十字光 + { 377,"data\\se\\sa2_07.wav",120, 0, 0 } , //贯穿攻击1 + { 378,"data\\se\\sa2_08.wav",120, 0, 0 } , //贯穿攻击2 + { 379,"data\\se\\sa2_09.wav",120, 0, 0 } , //回旋攻击1 + { 380,"data\\se\\sa2_10.wav",120, 0, 0 } , //回旋攻击2 + { 381,"data\\se\\sa3_01.wav",120, 0, 0 } , //追寻敌踪 + { 382,"data\\se\\sa3_02.wav",120, 0, 0 } , //树根缠绕 + { 383,"data\\se\\sa3_03.wav",120, 0, 0 } , //毒素武器 + { 384,"data\\se\\sa3_04.wav",120, 0, 0 } , //冰冻抗性 + { 385,"data\\se\\sa3_05.wav",120, 0, 0 } , //雷电抗性 + { 386,"data\\se\\sa3_06.wav",120, 0, 0 } , //火焰抗性放 + { 387,"data\\se\\sa3_07.wav",120, 0, 0 } , //火焰抗性中 + { 388,"data\\se\\sa1_03.wav",120, 0, 0 } , //电流术 + { 389,"data\\se\\sa1_04.wav",120, 0, 0 } , //召雷术 + { 390,"data\\se\\sa1_05.wav",120, 0, 0 } , //暴风雨大 + { 391,"data\\se\\sa1_06.wav",120, 0, 0 } , //冰箭术 + { 392,"data\\se\\sa1_07.wav",120, 0, 0 } , //冰爆术 + { 393,"data\\se\\sa1_08.wav",120, 0, 0 } , //冰镜术 + { 394,"data\\se\\sa1_09.wav",120, 0, 0 } , //暴风雨小 + { 395,"data\\se\\sa1_10.wav",120, 0, 0 } , //火山泉大 + { 396,"data\\se\\sa1_11.wav",120, 0, 0 } , //火山泉中 + { 397,"data\\se\\sa1_12.wav",120, 0, 0 } , //火山泉小 + { 398,"data\\se\\sa3_08.wav",120, 0, 0 } , //猎人使用 + { 399,"data\\se\\sa3_09.wav",120, 0, 0 } , //弱点攻击 + { 271,"data\\se\\sa1_13.wav",120, 0, 0 } , //一针见血 - { 261,"data\\se\\sa1_14.wav",120, 0, 0 } , //׸ - { 262,"data\\se\\sa1_15.wav",120, 0, 0 } , // - { 263,"data\\se\\sa1_16.wav",120, 0, 0 } , //Ѫ - { 264,"data\\se\\sa1_17.wav",120, 0, 0 } , // - { 265,"data\\se\\sa1_18.wav",120, 0, 0 } , //Ѫ10 - { 266,"data\\se\\sa1_19.wav",120, 0, 0 } , //Ѫ7 - { 267,"data\\se\\sa1_20.wav",120, 0, 0 } , //Ѫ4 - { 268,"data\\se\\sa1_21.wav",120, 0, 0 } , //Ѫ1 - { 269,"data\\se\\sa1_22.wav",120, 0, 0 } , // - { 270,"data\\se\\sa1_23.wav",120, 0, 0 } , //λλ - { 272,"data\\se\\sa2_12.wav",120, 0, 0 } , // + { 261,"data\\se\\sa1_14.wav",120, 0, 0 } , //雷附体 + { 262,"data\\se\\sa1_15.wav",120, 0, 0 } , //冰火附体 + { 263,"data\\se\\sa1_16.wav",120, 0, 0 } , //嗜血蛊 + { 264,"data\\se\\sa1_17.wav",120, 0, 0 } , //附身术 + { 265,"data\\se\\sa1_18.wav",120, 0, 0 } , //嗜血成性10 + { 266,"data\\se\\sa1_19.wav",120, 0, 0 } , //嗜血成性7 + { 267,"data\\se\\sa1_20.wav",120, 0, 0 } , //嗜血成性4 + { 268,"data\\se\\sa1_21.wav",120, 0, 0 } , //嗜血成性1 + { 269,"data\\se\\sa1_22.wav",120, 0, 0 } , //火星球 + { 270,"data\\se\\sa1_23.wav",120, 0, 0 } , //移形换位 + { 272,"data\\se\\sa2_12.wav",120, 0, 0 } , //暴击气流 #endif #ifdef _PROFESSION_ADDSKILL - { 400,"data\\se\\sae_10.wav",120, 0, 0 } , //Ȼsak_92.wav + { 400,"data\\se\\sae_10.wav",120, 0, 0 } , //号召自然sak_92.wav #endif // BGM // { 401, "data\\bgm\\ls2b_01.wav", 5 /*, "????????"*/ }, // { 402, "data\\bgm\\ls2b_02.wav", 5 /*, "??????"*/ }, -// { 403, "data\\bgm\\ls2b_03.wav", 5 /*, "???"*/ }, +// { 403, "data\\bgm\\ls2b_03.wav", 5 /*, "佋???"*/ }, // { 404, "data\\bgm\\ls2b_04.wav", 5 /*, "????"*/ }, #ifdef _FIREWORK_SOUND - { 405,"data\\se\\sax_01.wav",120, 0, 0 } , //̻Ч - { 406,"data\\se\\sax_02.wav",120, 0, 0 } , //̻Ч - { 407,"data\\se\\sax_03.wav",120, 0, 0 } , //Ը̻Ч + { 405,"data\\se\\sax_01.wav",120, 0, 0 } , //人型烟火音效 + { 406,"data\\se\\sax_02.wav",120, 0, 0 } , //宠型烟火音效 + { 407,"data\\se\\sax_03.wav",120, 0, 0 } , //愿藏烟火音效 #endif - { 408,"data\\se\\sak_91.wav",120, 0, 0 } , //Ч¼ - { 409,"data\\se\\sak_93.wav",120, 0, 0 } , //һǾЧ¼ - { 130,"data\\se\\sap_14.wav",100, 0, 0 } , //רЧ - { 410,"data\\se\\sak_94.wav",120, 0, 0 } , //ӥЧ + { 408,"data\\se\\sak_91.wav",120, 0, 0 } , //鸡年兽特效收录 + { 409,"data\\se\\sak_93.wav",120, 0, 0 } , //一角鲸特效收录 + { 130,"data\\se\\sap_14.wav",100, 0, 0 } , //沧龙专用音效档 + { 410,"data\\se\\sak_94.wav",120, 0, 0 } , //老鹰音效档 #ifdef _NPC_DANCE - { 222,"data\\se\\sas_33.wav",120, 0, 0 } , //һЧ1 - { 223,"data\\se\\sas_34.wav",120, 0, 0 } , //һЧ2 - { 224,"data\\se\\sas_35.wav",120, 0, 0 } , //һЧ3 + { 222,"data\\se\\sas_33.wav",120, 0, 0 } , //动一动新增音效1 + { 223,"data\\se\\sas_34.wav",120, 0, 0 } , //动一动新增音效2 + { 224,"data\\se\\sas_35.wav",120, 0, 0 } , //动一动新增音效3 #endif - { -1 } // Z?????????? + { -1 } // ?????????? }; diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/sprdisp.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/sprdisp.h index 9ce17ce..aab0d6a 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/sprdisp.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/sprdisp.h @@ -1,60 +1,60 @@ -/************************/ +/************************/ /* sprdisp.h */ /************************/ #ifndef _SPRDISP_H_ #define _SPRDISP_H_ #include "version.h" -#define DISP_BUFFER_SIZE 4096 // ??????? +#define DISP_BUFFER_SIZE 4096 // ??????? enum{ - DISP_PRIO_BG = 0, // - DISP_PRIO_TILE = 1, //ر// ???????????????? - DISP_PRIO_CHAR = 10, //// ??? - DISP_PRIO_PARTS = 10, //// ??????? - DISP_PRIO_RESERVE = 20, //Ԥ - DISP_PRIO_JIKI = 30, /* ? */ + DISP_PRIO_BG = 0, //背景 + DISP_PRIO_TILE = 1, //地表// ???????????????? + DISP_PRIO_CHAR = 10, //人物// ??? + DISP_PRIO_PARTS = 10, //建物// ??????? + DISP_PRIO_RESERVE = 20, //预留 + DISP_PRIO_JIKI = 30, /* ? */ DISP_PRIO_GRID = 100, // ???????? DISP_PRIO_BOX, /* ???? */ - DISP_PRIO_IME1, /* ???????????? ?? */ - DISP_PRIO_IME2, /* ???????????? ? */ + DISP_PRIO_IME1, /* ???????????? ?? */ + DISP_PRIO_IME2, /* ???????????? ? */ /* ??????? */ - DISP_PRIO_MENU, //ѡ/* ???? */ - DISP_PRIO_IME3, /* ????????????? ?? */ - DISP_PRIO_IME4, /* ????????????? ? */ + DISP_PRIO_MENU, //选单/* ???? */ + DISP_PRIO_IME3, /* ????????????? ?? */ + DISP_PRIO_IME4, /* ????????????? ? */ DISP_PRIO_BOX2, /* ????? */ DISP_PRIO_ITEM, /* ???? */ /* ???????? */ - DISP_PRIO_YES_NO_WND, /* ?_????? */ - DISP_PRIO_YES_NO_BTN, /* ?_??? */ + DISP_PRIO_YES_NO_WND, /* ?????? */ + DISP_PRIO_YES_NO_BTN, /* ???? */ DISP_PRIO_BOX3, /* ????? */ DISP_PRIO_DRAG, /* ????? */ DISP_PRIO_MOUSE, /* ??????? */ - DISP_PRIO_TOP = 255 /* ??I */ + DISP_PRIO_TOP = 255 /* ?? */ }; typedef struct { - int x, y; //ͼʱ// ? - int bmpNo; //ͼ - ACTION *pAct; // - BOOL hitFlag; // ʮλΪ 1:Ҫʾalpha 2:ʹ 3:ʯ 4:ж - char DrawEffect; // 0:ر 1:alpha 2:ʹ 3:ʯ 4:ж + int x, y; //秀图时的座标// ? + int bmpNo; //图编号 + ACTION *pAct; // 动作 + BOOL hitFlag; // 十位数为 1:要显示alpha 2:饱和处理 3:石化 4:中毒 + char DrawEffect; // 0:无特别处理 1:alpha 2:饱和处理 3:石化 4:中毒 #ifdef _READ16BITBMP - char DrawEffect; // 0:ر 1:alpha 2:ʹ 3:ʯ 4:ж + char DrawEffect; // 0:无特别处理 1:alpha 2:饱和处理 3:石化 4:中毒 #endif #ifdef _SFUMATO - int sfumato; // Ⱦͼɫ + int sfumato; // 二次渲染图层色彩 #endif }DISP_INFO; typedef struct { - short no; //ͼDISP_INFOλ// ?????t??k? - UCHAR dispPrio; //ʾʱ˳// ??I?? + short no; //这张图在DISP_INFO的位置// ???????? + UCHAR dispPrio; //显示时的优先顺序// ???? }DISP_SORT; typedef struct{ DISP_INFO DispInfo[ DISP_BUFFER_SIZE ]; DISP_SORT DispSort[ DISP_BUFFER_SIZE ]; - short DispCnt; //Ŀǰ// + short DispCnt; //目前储存数量// }DISP_BUFFER; extern DISP_BUFFER DispBuffer; @@ -65,16 +65,16 @@ extern BYTE *pRealBinAlpha; #endif void DrawAlpha32( - unsigned long* lpDst, // Ŀ껺 - unsigned long iDstX, // Ŀλ - unsigned long iDstY, // Ŀλ - unsigned long iDstPitch, // Ŀ껺pitch - unsigned long* lpSrc, // ԭɫʻ - unsigned long iSrcX, // ԭɫλ - unsigned long iSrcY, // ԭɫλ - unsigned long iSrcW, // ԭijߴ - unsigned long iSrcH, // ԭijߴ - unsigned long iSrcPitch // ԭɫpitch + unsigned long* lpDst, // 目标缓冲 + unsigned long iDstX, // 目标位置 + unsigned long iDstY, // 目标位置 + unsigned long iDstPitch, // 目标缓冲的pitch + unsigned long* lpSrc, // 原色彩缓冲 + unsigned long iSrcX, // 原色彩位置 + unsigned long iSrcY, // 原色彩位置 + unsigned long iSrcW, // 原缓冲的尺寸 + unsigned long iSrcH, // 原缓冲的尺寸 + unsigned long iSrcPitch // 原色彩pitch ); void ablend_565(unsigned char *lpAlpha, unsigned int iAlpPitch, @@ -85,7 +85,7 @@ void ablend_565(unsigned char *lpAlpha, unsigned int iAlpPitch, unsigned int iDstPitch); extern int SurfaceBusyFlag; void SortDispBuffer( void ); -BOOL ȡߴ(ACTION* a0,short* wx,short* wy); +BOOL 获取动画尺寸(ACTION* a0,short* wx,short* wy); void PutBmp( void ); int StockDispBuffer( int x, int y, UCHAR prio, int bmpNo, BOOL hitFlag ); #ifdef _SFUMATO diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/sprmgr.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/sprmgr.h index b2f9b36..d87a7d6 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/sprmgr.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/sprmgr.h @@ -1,30 +1,30 @@ -/************************/ +/************************/ /* sprmgr.h */ /************************/ #ifndef _SPRMGR_H_ #define _SPRMGR_H_ #include #ifndef _READ16BITBMP - //غ _READ16BITBMPVARIABLES IJ - #define OLD_GRAPHICS_START 1000000 // ԭrealbinͼ - #define MAX_GRAPHICS OLD_GRAPHICS_START // ͼ// ????? + //关后用 _READ16BITBMPVARIABLES 的参数来代替 + #define OLD_GRAPHICS_START 1000000 // 原本realbin图的最大量 + #define MAX_GRAPHICS OLD_GRAPHICS_START // 最大图量// ????? #else - #define MAX_GRAPHICS_24 50000 // ߲ͼͼ - #define OLD_GRAPHICS_START 1000000 // ԭrealbinͼ - #define MAX_GRAPHICS OLD_GRAPHICS_START + MAX_GRAPHICS_24 // ͼ// ????? - #define MAX_GRAPHICS_ALPHA 50000 // ߲ͼalphaͨͼ + #define MAX_GRAPHICS_24 50000 // 高彩图最大图量 + #define OLD_GRAPHICS_START 1000000 // 原本realbin图的最大量 + #define MAX_GRAPHICS OLD_GRAPHICS_START + MAX_GRAPHICS_24 // 最大图量// ????? + #define MAX_GRAPHICS_ALPHA 50000 // 高彩图alpha通道最大图量 #endif -#ifdef _READ16BITBMPVARIABLES // _READ16BITBMP ҪIJ - #define MAX_GRAPHICS_24 50000 // ߲ͼͼ - #define OLD_GRAPHICS_START 500000 // ԭrealbinͼ - #define MAX_GRAPHICS OLD_GRAPHICS_START + MAX_GRAPHICS_24 // ͼ// ?? +#ifdef _READ16BITBMPVARIABLES //关 _READ16BITBMP 后还须要的参数 + #define MAX_GRAPHICS_24 50000 // 高彩图最大图量 + #define OLD_GRAPHICS_START 500000 // 原本realbin图的最大量 + #define MAX_GRAPHICS OLD_GRAPHICS_START + MAX_GRAPHICS_24 // 最大图量// ?? #endif -#define DEF_COLORKEY 0 //Ԥ͸ɫ// a???k? +#define DEF_COLORKEY 0 //预设透明色// ???? -#define SURFACE_WIDTH 64 //ͼõsource face// -#define SURFACE_HEIGHT 48 //ͼõsource face// +#define SURFACE_WIDTH 64 //存图用的source face宽// +#define SURFACE_HEIGHT 48 //存图用的source face高// extern LPDIRECTDRAWSURFACE lpBattleSurface; #ifdef _READ16BITBMP @@ -37,11 +37,11 @@ extern UINT SurfaceDate; struct surfaceInfo{ LPDIRECTDRAWSURFACE lpSurface; #ifdef _CACHE_SURFACE_ - char *lpCacheData; // - int palNo; //ǰɫ - int sizeX; //ƿ - int sizeY; //Ƹ߶ - BOOL colordepth; //ʹõɫ + char *lpCacheData; //缓冲数据 + int palNo; //当前调色板 + int sizeX; //绘制宽度 + int sizeY; //绘制高度 + BOOL colordepth; //使用调色板 #endif #ifdef _READ16BITBMP BYTE *lpAlphaData; @@ -49,10 +49,10 @@ struct surfaceInfo{ #endif #ifdef _NEW_COLOR_ BOOL useAlpha; - BYTE *lpAlphaData; //16λֱ±͸ + BYTE *lpAlphaData; //16位分辨率下保存半透明像素 #endif - int bmpNo; //ͼı,-1 source faceΪյ// ??????k? - UINT date; //¼source faceʹõ + int bmpNo; //图的编号,-1 代表source face为空的// ??????? + UINT date; //记录这个source face使用的日期 short offsetX; short offsetY; surfaceInfo *pNext; diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/system.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/system.h index 6381a5d..574a67b 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/system.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/system.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* system.h */ /************************/ #ifndef _SYSTEM_H_ diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/t_music.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/t_music.h index b8122c4..bcb3f30 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/t_music.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/t_music.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* t_music.h */ /************************/ #ifndef _T_MUSIC_ @@ -10,12 +10,12 @@ #define TONE_MAX 500//400//256 typedef struct{ - int voice_place; //??????????????? + int voice_place; //??????????????? int voice_cnt; //????? int voice_loop; //?????? - int voice_volume; //?????? - int voice_note; //???k? - int play_time; //??? + int voice_volume; //?????? + int voice_note; //???吻? + int play_time; //??? int voice_rate; int voice_address; } TONE_EQU; @@ -43,7 +43,7 @@ extern int t_music_se_no; extern char t_music_bgm_pitch[16]; extern int draw_map_bgm_flg; extern int map_bgm_no; -//־ +//噙秞梓祩 extern BOOL MuteFlag; bool cdda_play(int); diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/talkwindow.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/talkwindow.h index 3e7840a..908aa73 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/talkwindow.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/talkwindow.h @@ -1,31 +1,31 @@ -#ifndef _TALKWINDOW_H_ +#ifndef _TALKWINDOW_H_ #define _TALKWINDOW_H_ #include #include "../systeminc/chat.h" #define WM_UPDATE_SKIN 0x8000 #define MAX_TALK_WINDOW_LINE 6 -#define TALK_WINDOW_SXO 12 // ԻӴֵʼx -#define TALK_WINDOW_SYO 10 // ԻӴֵʼy -#define TALK_WINDOW_SXI 30 // ԻӴֵʼx -#define TALK_WINDOW_SYI 128 // ԻӴֵʼy +#define TALK_WINDOW_SXO 12 // 对话视窗输出文字的起始x座标 +#define TALK_WINDOW_SYO 10 // 对话视窗输出文字的起始y座标 +#define TALK_WINDOW_SXI 30 // 对话视窗输入文字的起始x座标 +#define TALK_WINDOW_SYI 128 // 对话视窗输入文字的起始y座标 #define SKIN_WIDTH 645 #define SKIN_HEIGHT 155 #define SKIN_KIND 5 -#define TALK_WINDOW_MAX_CHAT_LINE 40 // buffer +#define TALK_WINDOW_MAX_CHAT_LINE 40 // 最大聊天buffer #ifdef _STONDEBUG_ -#define FACE_SYMBOL_NUM 20 // -#define STORE_SYMBOL_NUM 200 // ¼λ -#define LINE_HEIGHT 20 // ʱо -#define SYMBOL_WIDTH 19 // ͼ -#define SYMBOL_HEIGHT 19 // ͼ +#define FACE_SYMBOL_NUM 20 // 表情符号数量 +#define STORE_SYMBOL_NUM 200 // 记录表情位置数量 +#define LINE_HEIGHT 20 // 文字输出时的行距 +#define SYMBOL_WIDTH 19 // 表情符号图宽 +#define SYMBOL_HEIGHT 19 // 表情符号图高 #endif extern BOOL g_bTalkWindow; extern int g_iCursorCount; #ifdef _STONDEBUG_ -typedef struct _tsFaceSymbol{ // +typedef struct _tsFaceSymbol{ // 表情符号 HDC hDraw; HDC hDrawMask; HBITMAP hbmpMaskBMP; @@ -33,11 +33,11 @@ typedef struct _tsFaceSymbol{ // HANDLE hOldLoadBMP; HANDLE hOldMaskBMP; BOOL bUse; - char szSymbol[8]; // ( :) :( :D ...etc) - char szFaceName[32]; // + char szSymbol[8]; // 符号( :) :( :D ...etc) + char szFaceName[32]; // 档名 }FaceSymbol; -typedef struct _tsStoreSymbol{ // ¼ʾ +typedef struct _tsStoreSymbol{ // 记录在那里显示表情 BOOL bUse; HDC hDraw; HDC hDrawMask; @@ -58,27 +58,27 @@ LRESULT CALLBACK TalkWindowProc(HWND hWnd,UINT Message,WPARAM wParam,LPARAM lPar class CTalkWindow { private: - HWND m_hWnd; // Ӵ HWND - HWND m_hTalkWindow; // Լ HWND - HINSTANCE m_hInstance; // Ӵ HINSTANCE + HWND m_hWnd; // 父视窗的 HWND + HWND m_hTalkWindow; // 自己的 HWND + HINSTANCE m_hInstance; // 父视窗的 HINSTANCE HANDLE m_hSkin[SKIN_KIND]; // SKIN_KIND->0:base 1:up arrow 2:up arrow hit 3:down arrow 4:down arrow hit HANDLE m_hOldSkin[SKIN_KIND]; HDC m_hdcSkin[SKIN_KIND]; // SKIN_KIND->0:base 1:up arrow 2:up arrow hit 3:down arrow 4:down arrow hit HDC m_hdcBackBuffer; // backbuffer dc for draw HBITMAP m_hbmpBackBuffer; // backbuffer of memory for draw HANDLE m_hbmpOldBackBuffer; - BOOL m_bUpArrowHit; // ϾťǷ - BOOL m_bDownArrowHit; // ¾ťǷ - BOOL m_bScroll; // Ƿھ - BOOL m_bInit; // ʼɹʧ - ChatBufferLink *m_pCBLHead; // ָԻlinkһlinkָ - ChatBufferLink *m_pCBLTail; // ָԻlinkһlinkָ - ChatBufferLink *m_pCBLString; // ָԻlink׼ִlinkָ - ChatBufferLink *m_pCBLView; // ָҪʾڻϵһеִlinkָ - ChatBufferLink *m_pCBLViewBottom; // ָҪʾڻһеִlinkָ + BOOL m_bUpArrowHit; // 上卷按钮是否按下 + BOOL m_bDownArrowHit; // 下卷按钮是否按下 + BOOL m_bScroll; // 现在是否正处于卷动中 + BOOL m_bInit; // 初始化成功或失败 + ChatBufferLink *m_pCBLHead; // 指向对话link第一个link的指标 + ChatBufferLink *m_pCBLTail; // 指向对话link最后一个link的指标 + ChatBufferLink *m_pCBLString; // 指向对话link准备被填入字串的link的指标 + ChatBufferLink *m_pCBLView; // 指向要显示在画面上第一行的字串的link指标 + ChatBufferLink *m_pCBLViewBottom; // 指向要显示在画面上最后一行的字串的link指标 #ifdef _STONDEBUG_ - FaceSymbol m_fsFaceSymbol[FACE_SYMBOL_NUM]; // - StoreSymbol m_ssStoreSymbol[STORE_SYMBOL_NUM]; // ¼DZʾ + FaceSymbol m_fsFaceSymbol[FACE_SYMBOL_NUM]; // 表情符号 + StoreSymbol m_ssStoreSymbol[STORE_SYMBOL_NUM]; // 记录在那边显示表情 int m_iSymbolCount; #endif int m_iline; diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/testview.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/testview.h index 2f722b3..427f1c3 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/testview.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/testview.h @@ -1,4 +1,4 @@ -/************************/ +/************************/ /* testView.h */ /************************/ #ifndef _TEST_VIEW_H_ @@ -6,13 +6,13 @@ #ifdef _STONDEBUG_ -// ??????_???? +// ??????囝???? void SprViewProc( void ); -// ????????_???? +// ????????囝???? void AnimViewProc( void ); -// ???_???? +// ???囝???? void SeTestProc( void ); #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/tool.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/tool.h index d22da71..c564c0d 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/tool.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/tool.h @@ -1,22 +1,22 @@ -#ifndef _TOOL_H_ +#ifndef _TOOL_H_ #define _TOOL_H_ #include #if 0 -//?????????????? +//??????????希????? void freadline( char *ptbuf , FILE *ptFile ); #endif -//?????????t?????????? +//??更???????ㄅ?????????? int wordchk( char **pp ); -//????i????????????h?? +//?更???可?????更???刺????去?? int strstr2( char **pp , char *q ); -//?????????????????????h +//??更????????希???????????去 int getword(char **pp , char *q); -//?????????????k????? +//??更????????希???π???刺?? int strint2( char **pp ); -//????????????????long??k????? +//??更????????希??????long??π???刺?? long strlong2( char **pp ); int getStringToken( char *src , char delim , int count , int maxlen , char *out ); diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/unpack.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/unpack.h index b9a0974..d8935cb 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/unpack.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/unpack.h @@ -1,4 +1,4 @@ -#ifndef _UNPACK_H_ +#ifndef _UNPACK_H_ #define _UNPACK_H_ typedef struct diff --git a/石器时代8.5客户端最新源代码/石器源码/systeminc/version.h b/石器时代8.5客户端最新源代码/石器源码/systeminc/version.h index 5fec8a6..d6b1700 100644 --- a/石器时代8.5客户端最新源代码/石器源码/systeminc/version.h +++ b/石器时代8.5客户端最新源代码/石器源码/systeminc/version.h @@ -1,4 +1,4 @@ -#ifndef __VERSION_H__ +#ifndef __VERSION_H__ #define __VERSION_H__ #ifdef _WIN32 @@ -9,90 +9,90 @@ #ifdef _SA_VERSION_SPECIAL #define _SA_VERSION_60 #define __ALBUM_47 -#define _FONT_SIZE // Robin (Ҫ) ɸʹС -#define _ITEM_PILENUMS // (ɿ) ANDY زĶѵ -#define _ITEM_INTENSIFY // (ɿ) Change 輼:ǿ -#define _ALCHEMIST // Robin -#define _CHAR_NEWLOGOUT // (ɿ) ANDY µdz -//#define _ITEM_JIGSAW // (ɿ) Change ƴͼ -#define _TELLCHANNEL // (ɿ) ROG ADD Ƶ -#define _TRADETALKWND // (ɿ) Syu ADD Ի -#define _DROPPETWND // (ɿ) Syu ADD ȷ -#define _TEAM_KICKPARTY // (ɿ) ANDY ӳ -#define _MONEYINPUT // (ɿ) Syu ADD ֶǮ +#define _FONT_SIZE // Robin (要开) 可改字型大小 +#define _ITEM_PILENUMS // (可开放) ANDY 道具素材堆叠 +#define _ITEM_INTENSIFY // (可开) Change 宠技:强化道具 +#define _ALCHEMIST // Robin 精炼功能 +#define _CHAR_NEWLOGOUT // (可开放) ANDY 新登出机制 +//#define _ITEM_JIGSAW // (可开) Change 拼图道具 +#define _TELLCHANNEL // (可开放) ROG ADD 密语频道 +#define _TRADETALKWND // (可开放) Syu ADD 交易新增对话框架 +#define _DROPPETWND // (可开放) Syu ADD 丢弃宠物确认 +#define _TEAM_KICKPARTY // (可开放) ANDY 队长踢人 +#define _MONEYINPUT // (可开放) Syu ADD 手动输入金钱量 -#define _STREET_VENDOR // ̯ -#define _STREET_VENDOR_CHANGE_ICON // ޸İ̯ͼʾ -#define _NEW_MANOR_LAW // ׯ԰ -#define _PETS_SELECTCON // (ɿ) ANDY ѡ -#define _FM_MODIFY // 幦޸ -#define _CHANNEL_MODIFY // Ƶ -#define _TRADELOCKBTN // (ɿ) Syu ADD -#define _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ -#define _LOCKPARTYFLOOR // (ɿ) Syu ADD Ӳӵĵͼ -#define _LOCKHELP_OK // (ɿ) Syu ADD ɼս -#define _JOBDAILY // cyg ־ -// #define _TALK_WINDOW // ԻӴ -#define _SHOW_FUSION // (ɿ) Change ںϳCLIENTֻʾת,޸ΪںϳʾΪں -#define _ITEM_FIREWORK // ̻ -#define _FIREWORK_SOUND // cyg Ч(̻) -//#define _GET_HOSTNAME // (ɿ) Change ȡõ -#define _NPC_MAGICCARD // cyg ħϷ -#define _THEATER // Terry 糡 -#define _MOVE_SCREEN // Terry ƶӫĻָ -#define _NPC_DANCE // cyg һnpc -#define _CHANNEL_WORLD // Ƶ -#define _STANDBYPET // Robin ʹбServer -#define _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ -#define _EXTEND_AB // cyg Ƭ -#define _ITEM_EQUITSPACE // (ɿ) ANDY װλ -#define _EQUIT_ARRANGE // (ɿ) ANDY -#define _EQUIT_NEWGLOVE // (ɿ) ANDY λ -//#define _ALCHEMIST // Robin -//#define _ALCHEPLUS // Robin -//#define _NPC_ITEMUP // (ɿ) Change õNPC -//#define _ITEM_COUNTDOWN // cyg ߵ -//#define _CHATROOMPROTOCOL // (ɿ) Syu ADD Ƶ -//#define _FRIENDCHANNEL // (ɿ) ROG ADD Ƶ +#define _STREET_VENDOR // 摆摊功能 +#define _STREET_VENDOR_CHANGE_ICON // 修改摆摊图示 +#define _NEW_MANOR_LAW // 新庄园规则 +#define _PETS_SELECTCON // (可开放) ANDY 宠物选择 +#define _FM_MODIFY // 家族功能修改 +#define _CHANNEL_MODIFY // 频道功能整合 +#define _TRADELOCKBTN // (可开放) Syu ADD 增加锁定键 +#define _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 +#define _LOCKPARTYFLOOR // (可开放) Syu ADD 增加不可组队的地图编号 +#define _LOCKHELP_OK // (可开放) Syu ADD 锁定不可加入战斗 +#define _JOBDAILY // cyg 任务日志功能 +// #define _TALK_WINDOW // 对话视窗 +#define _SHOW_FUSION // (可开) Change 融合宠物在CLIENT端只显示转生数,修改为融合宠显示为融合 +#define _ITEM_FIREWORK // 烟火功能 +#define _FIREWORK_SOUND // cyg 新增音效(烟火用) +//#define _GET_HOSTNAME // (可开) Change 取得电脑名称 +#define _NPC_MAGICCARD // cyg 魔法牌游戏 +#define _THEATER // Terry 剧场功能 +#define _MOVE_SCREEN // Terry 移动荧幕到指定的座标 +#define _NPC_DANCE // cyg 动一动npc +#define _CHANNEL_WORLD // 增加世界频道 +#define _STANDBYPET // Robin 送待机宠列表到Server +#define _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 +#define _EXTEND_AB // cyg 扩充名片功能 +#define _ITEM_EQUITSPACE // (可开放) ANDY 新增装备栏位 +#define _EQUIT_ARRANGE // (可开放) ANDY 格挡 +#define _EQUIT_NEWGLOVE // (可开放) ANDY 手套栏位 +//#define _ALCHEMIST // Robin 精炼功能 +//#define _ALCHEPLUS // Robin 鉴定功能 +//#define _NPC_ITEMUP // (可开) Change 让道具升级的NPC +//#define _ITEM_COUNTDOWN // cyg 道具倒数功能 +//#define _CHATROOMPROTOCOL // (可开放) Syu ADD 聊天室频道 +//#define _FRIENDCHANNEL // (可开放) ROG ADD 好友频道 //#define __ONLINEGM #endif -//#define _BATTLE_PK_PLAYER_FOR_40 // 40ս -//#define _BATTLE_PK_PLAYER_FOR_6VS6 // 6 vs 6 XIEZI +//#define _BATTLE_PK_PLAYER_FOR_40 // 40人战斗 +//#define _BATTLE_PK_PLAYER_FOR_6VS6 // 6 vs 6 XIEZI 添加 #ifdef _BATTLE_PK_PLAYER_FOR_40 -#define BATTLESIDENUM 4 //ս -#define BATTLKPKPLYAERNUM 40 //սɫ -#define MAX_BATTLE_ROW_CHARS 5 //ÿսɫ +#define BATTLESIDENUM 4 //战斗队伍数量 +#define BATTLKPKPLYAERNUM 40 //最大参战角色数 +#define MAX_BATTLE_ROW_CHARS 5 //每行最大战斗角色数 #else -#define BATTLESIDENUM 2 //ս +#define BATTLESIDENUM 2 //战斗队伍数量 #ifdef _BATTLE_PK_PLAYER_FOR_6VS6 -#define BATTLKPKPLYAERNUM 24 //սɫ -#define MAX_BATTLE_ROW_CHARS 6 //ÿսɫ +#define BATTLKPKPLYAERNUM 24 //最大参战角色数 +#define MAX_BATTLE_ROW_CHARS 6 //每行最大战斗角色数 #else -#define BATTLKPKPLYAERNUM 20 //սɫ -#define MAX_BATTLE_ROW_CHARS 5 //ÿսɫ +#define BATTLKPKPLYAERNUM 20 //最大参战角色数 +#define MAX_BATTLE_ROW_CHARS 5 //每行最大战斗角色数 #endif #endif -#define _NEW_SYSTEM_MENU // ϵͳ˵ 2011/12/21 -#define _PTTERN_SEPARATION_BIN // 벹 -//#define _SFUMATO // Ⱦ δƣԴ -#define _SPECIAL_LOGO // µ½ͼ -#define _CHANNEL_ALL_SERV // Ƶ 2011/12/21 -#define _EXTEND_FONT_PAL // չɫɫ 2011/12/22 -//#define _FONT_PARAGRAPH_COLOR // ɫ 2011/12/22 -#define _NEW_CLIENT_LOGIN // ½¼MACַ·ѡ 2011/12/22 -//#define _NEW_SHOP_FRAME // ̵ 2011/12/22 +#define _NEW_SYSTEM_MENU // 新系统菜单 2011/12/21 +#define _PTTERN_SEPARATION_BIN // 分离补丁加载 +//#define _SFUMATO // 二次渲染 未完善,需美术资源配合 +#define _SPECIAL_LOGO // 新登陆图 +#define _CHANNEL_ALL_SERV // 增加星球频道 2011/12/21 +#define _EXTEND_FONT_PAL // 扩展字体颜色色板 2011/12/22 +//#define _FONT_PARAGRAPH_COLOR // 字体分离颜色 2011/12/22 +#define _NEW_CLIENT_LOGIN // 登陆记录MAC地址及线路选择 2011/12/22 +//#define _NEW_SHOP_FRAME // 新商店框架 2011/12/22 -#define _HI_COLOR_16 // (ɿ) ANDY (8bit to 16bit) ͼ -#define _HI_COLOR_32 // (ɿ) longzoro (32 bit) ͼ -#define _NEW_RESOMODE //800 600ģʽ -#define _MOUSE_SHOW_INFO_FOR_HEAD // (ɿ) longzoro ʾϢ -//#define _NEWLOGO // (ɿ) Syu ADD 6.0뻭logo Ҫ_v4_0 +#define _HI_COLOR_16 // (可开) ANDY (8bit to 16bit) 含图档 +#define _HI_COLOR_32 // (可开) longzoro (32 bit) 含图档 +#define _NEW_RESOMODE //800 600模式 +#define _MOUSE_SHOW_INFO_FOR_HEAD // (可开) longzoro 鼠标显示信息 +//#define _NEWLOGO // (可开放) Syu ADD 6.0登入画面新logo 要关_v4_0 /* ------------------------------------------------------------------- -* ¹ܣʯ 800 * 600 -* Ա, -* ˵ +* 新功能:石器 800 * 600 +* 人员:旭诚,镇玮 +* 说明: */ extern int DISPLACEMENT_X; @@ -100,9 +100,9 @@ extern int DISPLACEMENT_Y; extern int viewOffsetX; extern int viewOffsetY; -//#define _NEWDRAWBATTLEMAP_FIX // (ɿ)ROG ADD սͼ޸ +//#define _NEWDRAWBATTLEMAP_FIX // (不可开)ROG ADD 战斗地图修改 -// 汾ָ +// 版本分割 #ifdef _SA_VERSION_85 #define _SA_VERSION_80 #endif @@ -129,142 +129,142 @@ extern int viewOffsetY; -/* 뽫ר definition -* Ȼ remark/unmark ع +/* 请将控制专案的 definition 放在这个档案 +* 然后藉由 remark/unmark 来开关功能 */ /* ------------------------------------------------------------------- -* רְ幦ܲ -* ԱС褡ѫ־ΰС -* ˵ +* 专案:族人职务与家族功能补充 +* 人员:小瑜、彦勋、志伟、小民 +* 说明: */ -#define _FMVER21 // (ɿ) ְƹ -#define _PERSONAL_FAME // (ɿ) Arminius 8.30 +#define _FMVER21 // (可开放) 家族职掌功能 +#define _PERSONAL_FAME // (可开放) Arminius 8.30 家族个人声望 // ------------------------------------------------------------------- -// ר½NPC̸ -// Ա -// ˵__EDEN_EFFECT:ijNPC'ίн׵NPC -// __EDEN_AUCTION:ίNPCƷ -#define __EDEN_EFFECT // (ɿ) ʱҪ -#define __EDEN_AUCTION // (ɿ) ʱҪ +// 专案:伊甸大陆新NPC交谈介面 +// 人员:晓威 +// 说明:__EDEN_EFFECT:赌场的银行NPC'委托交易的NPC +// __EDEN_AUCTION:委托NPC拍卖物品介面 +#define __EDEN_EFFECT // (可开放) 但测试时要打开 +#define __EDEN_AUCTION // (可开放) 但测试时要打开 // ------------------------------------------------------------------- -// ר -// Ա־ -// ˵ +// 专案:攻击性咒术的制作 +// 人员:笃志 +// 说明: #define __ATTACK_MAGIC // ------------------------------------------------------------------- -// ר޵ı -// Ա -// ˵ +// 专案:吓年兽的鞭炮 +// 人员:晓威 +// 说明: #define _ITEM_FIRECREAKER /* ------------------------------------------------------------------- -* ¹ܣPKϵ -* Աѫ -* ˵ +* 新功能:PK星系 +* 人员:彦勋 +* 说明: */ -//#define _PKSERVER // (ɿ) +//#define _PKSERVER // (不可开放) // ------------------------------------------------------------------- -// רֻѶҽʵ -// Ա (LeiBoy) -// ˵ҿԴѶضASPҳ -// Ҫص : PhoneMsg.cpp -// : 20020128 -// : 20020304 +// 专案:传送手机简讯的玩家界面实作 +// 人员:昌磊 (LeiBoy) +// 说明:让玩家可以传简讯给特定的ASP网页处理 +// 主要相关档 : PhoneMsg.cpp +// 完成日期 : 2002年01月28日 +// 开放日期 : 2002年03月04日 // Status : Ready! //#define __PHONEMESSAGE -#define _FIX_URLENCODE // WON ADD ( ) Ѷ޷ӿո +#define _FIX_URLENCODE // WON ADD (可 开 放) 北京修正简讯无法加空格的问题 // ------------------------------------------------------------------- -// רֻѶĶڹ -// Ա(ԭ) (Ӱδ) -// ˵ҿԴѶƬкѵֻ -// : ֹ!! -// Status : ... -//#define __CARDMESSAGE //()!! +// 专案:传送手机简讯的二期工程 +// 人员:(原定)昌磊 (接班人未定) +// 说明:让玩家可以传简讯到名片中好友的手机中 +// 开放日期 : 禁止开放!! +// Status : 建构中... +//#define __CARDMESSAGE //(禁用)!! -//#define __NEW_CLIENT_ONLY_WRITE //Cary(,δ) -//#define CHINA_VER //Cary () +//#define __NEW_CLIENT_ONLY_WRITE //Cary(禁用,未测过) +//#define CHINA_VER //Cary (禁用) //#define __ALBUM_4 -//#define __ALBUM_6 //Cary µijಾ() -//#define __TEST_SERVER //Cary 3.0IJserver +//#define __ALBUM_6 //Cary 加入新的宠物相簿(含年兽) +//#define __TEST_SERVER //Cary 3.0的测试server -#define __HELP //Cary ˵ -#define __NEW_PROTOCOL //Cary µĵײ +#define __HELP //Cary 线上说明 +#define __NEW_PROTOCOL //Cary 新的底层 #define __NEW_CLIENT_MEM //Cary -#define __SKYISLAND //Cary յĹ -#define __HI_COLOR //Cary ߲ʵĹ(debug versionר) -#define __TALK_TO_NPC //Cary ʹnpc˵ -#define __NEW_BATTLE_EFFECT //Cary 2002.2.21 µսЧ: -#define _AFTER_TRADE_PETWAIT_ // ( ) set pet status to wait after trade :vincent +#define __SKYISLAND //Cary 加入天空岛的功能 +#define __HI_COLOR //Cary 加入高彩的功能(debug version专用) +#define __TALK_TO_NPC //Cary 使用左键和npc说话 +#define __NEW_BATTLE_EFFECT //Cary 2002.2.21 新的战斗特效,如:替身娃娃 +#define _AFTER_TRADE_PETWAIT_ // (可 开 放) set pet status to wait after trade :vincent #ifdef _SA_VERSION_40 /* ------------------------------------------------------------------- -* ¹ܣ4 -* Ա־ -* ˵ +* 新功能:伊甸4 +* 人员:志旺 +* 说明: */ -#define _FIX_DEL_MAP // (ɿ) WON ADD ҳͼ +#define _FIX_DEL_MAP // (可开放) WON ADD 修正玩家抽地图 -#define _FIX_9_FMPOINT // (ɿ) WON ADD Ŵׯ԰ -#define _FIX_10_FMPOINT //(ɿ) Change ʮׯ԰ 20050404 +#define _FIX_9_FMPOINT // (可开放) WON ADD 九大庄园 +#define _FIX_10_FMPOINT //(可开) Change 十大庄园 20050404 #ifdef _FIX_10_FMPOINT -#define fm_point_num 10 // ׯ԰ +#define fm_point_num 10 // 庄园数 #else -#define fm_point_num 9 // (ɿ) WON ADD ׯ԰ +#define fm_point_num 9 // (可开放) WON ADD 庄园数 #endif -#define _ADD_POOL_ITEM // (ɿ) WON ADD Ӽķŵ -//#define _ADD_FAMILY_TAX // (ɿ) WON ADD ׯ԰˰ +#define _ADD_POOL_ITEM // (可开放) WON ADD 增加寄放道具 +//#define _ADD_FAMILY_TAX // (不可开) WON ADD 增加庄园税收 -#define _LOST_FOREST_FOG // (ɿ) the lostforest's fog. code:shan -#define _MIND_ICON // (ɿ) show icon from char mind. code:shan -#define _MAGIC_WEAKEN // (ɿ) show magic(weaken). code:shan +#define _LOST_FOREST_FOG // (可开放) the lostforest's fog. code:shan +#define _MIND_ICON // (可开放) show icon from char mind. code:shan +#define _MAGIC_WEAKEN // (可开放) show magic(weaken). code:shan -#define _BLACK_MARKET // (ɿ) a black market. code:shan +#define _BLACK_MARKET // (不可开) a black market. code:shan // ------------------------------------------------------------------- // vincent define -#define _MAGIC_DEEPPOISION // (ɿ) show magic(deeppoison). code:vincent -#define _MAGIC_BARRIER // (ɿ) show magic(barrier). code:vincent -#define _MAGIC_NOCAST // (ɿ) show magic(nocast). code:vincent -#define _ITEM_CRACKER // (ɿ) : code:vincent -#define _SKILL_ROAR // (ɿ) vincent 輼:() -#define _SKILL_SELFEXPLODE // (ɿ) vincent 輼:Ա +#define _MAGIC_DEEPPOISION // (可开放) show magic(deeppoison). code:vincent +#define _MAGIC_BARRIER // (可开放) show magic(barrier). code:vincent +#define _MAGIC_NOCAST // (可开放) show magic(nocast). code:vincent +#define _ITEM_CRACKER // (可开放) 道具:拉炮 code:vincent +#define _SKILL_ROAR // (可开放) vincent 宠技:大吼(克年兽) +#define _SKILL_SELFEXPLODE // (可开放) vincent 宠技:自爆 -#define _NEW_RIDEPETS // (ɿ) +#define _NEW_RIDEPETS // (可开放) 新骑宠 -#define _ATTDOUBLE_ATTACK // (ɿ) ǿ -#define __TOCALL_MAGIC // (ɿ) kjl 02/06/24 -#define _VARY_WOLF // (ɿ) pet skill : vary wolf. code:shan -#define _PIRATE_ANM // (ɿ) monster move(). code: shan -#define _TRADE_PETCOLOR // (ɿ) Syu ADD ı佻ʱתɫ -#define _FIXSHOWMPERR // (ɿ) Syu ADD ʱʾ -#define _LIZARDPOSITION // (ɿ) Syu ADD ʾλù +#define _ATTDOUBLE_ATTACK // (可开放) 属性强化攻击 +#define __TOCALL_MAGIC // (可开放) kjl 02/06/24 +#define _VARY_WOLF // (可开放) pet skill : vary wolf. code:shan +#define _PIRATE_ANM // (可开放) monster move(海盗王). code: shan +#define _TRADE_PETCOLOR // (可开放) Syu ADD 改变交易时宠物转生颜色 +#define _FIXSHOWMPERR // (可开放) Syu ADD 修正补气时动画显示错误 +#define _LIZARDPOSITION // (可开放) Syu ADD 修正龙蜥显示位置过低 /* ------------------------------------------------------------------- -* ¹ܣ -* 2002/12/18 14:00 +* 新功能: +* 更新日期2002/12/18 14:00 更新 */ -#define _TEAM_KICKPARTY // (ɿ) ANDY ӳ -#define _MONEYINPUT // (ɿ) Syu ADD ֶǮ +#define _TEAM_KICKPARTY // (可开放) ANDY 队长踢人 +#define _MONEYINPUT // (可开放) Syu ADD 手动输入金钱量 -#define _PETS_SELECTCON // (ɿ) ANDY ѡ +#define _PETS_SELECTCON // (可开放) ANDY 宠物选择 #endif // _SA_VERSION_40 @@ -272,145 +272,145 @@ extern int viewOffsetY; #ifdef _SA_VERSION_60 /* ------------------------------------------------------------------- -* ¹ܣʯ6.0 -* +* 新功能:石器6.0 +* 更新日期 */ -#define _OBJSEND_C // (ɿ) ANDY 6.0 -#define _ADD_SHOW_ITEMDAMAGE // (ɿ) WON ADD ʾߵ;ö -#define _WATERANIMATION // (ɿ) Syu ADD ֮ -#define _NEWDRAWBATTLEMAP // (ɿ) Syu ADD ˮսرսЧ -#define _AniCharBubble // (ɿ) Syu ADD ³ -#define _AniCrossFrame // (ɿ) Syu ADD ι -#define _AniImmobile // (ɿ) Syu ADD ض -#define _AniRandom // (ɿ) Syu ADD -//#define _DELBORNPLACE // (ɿ) Syu ADD 6.0 ͳһִ -#define _NEWMUSICFILE6_0 // (ɿ) Syu ADD 6.0 µͼ -#define _TRADESHOWNAME // (ɿ) Syu ADD ʾԷ -#define _TRADEINPUTMONEY // (ɿ) Syu ADD ֶǮ -#define _TRADE_SHOWHP // (ɿ) Syu ADD ʾѪ -#define _CHANGETRADERULE // (ɿ) Syu ADD ׹޶ -#define _PETSKILL_CANNEDFOOD // (ɿ) ANDY \ܹͷ -#define _SPECIALSPACEANIM // (ɿ) Syu ADD ⳡ -#define _SHOOTCHESTNUT // (ɿ) Syu ADD 輼 -//#define _NEWLOGO // (ɿ) Syu ADD 6.0뻭logo Ҫ_v4_0 +#define _OBJSEND_C // (可开放) ANDY 6.0 +#define _ADD_SHOW_ITEMDAMAGE // (可开放) WON ADD 显示道具的耐久度 +#define _WATERANIMATION // (可开放) Syu ADD 泪之海动画层 +#define _NEWDRAWBATTLEMAP // (可开放) Syu ADD 水世界战斗地表与战斗特效 +#define _AniCharBubble // (可开放) Syu ADD 动画层人物吐出气泡 +#define _AniCrossFrame // (可开放) Syu ADD 动画层游过画面生物 +#define _AniImmobile // (可开放) Syu ADD 定点产生特定动画 +#define _AniRandom // (可开放) Syu ADD 随机产生环境动画 +//#define _DELBORNPLACE // (可开放) Syu ADD 6.0 统一出生于新手村 +#define _NEWMUSICFILE6_0 // (可开放) Syu ADD 6.0 新地图音乐 +#define _TRADESHOWNAME // (可开放) Syu ADD 交易显示对方名称 +#define _TRADEINPUTMONEY // (可开放) Syu ADD 交易手动输入金钱 +#define _TRADE_SHOWHP // (可开放) Syu ADD 交易显示血量 +#define _CHANGETRADERULE // (可开放) Syu ADD 交易规则修订 +#define _PETSKILL_CANNEDFOOD // (可开放) ANDY 宠物技能罐头 +#define _SPECIALSPACEANIM // (可开放) Syu ADD 特殊场景动画配置 +#define _SHOOTCHESTNUT // (可开放) Syu ADD 宠技:丢栗子 +//#define _NEWLOGO // (可开放) Syu ADD 6.0登入画面新logo 要关_v4_0 #endif //SA_VERSION_60 -#define _TRADESYSTEM2 // (ɿ) Syu ADD ½ϵͳ +#define _TRADESYSTEM2 // (可开放) Syu ADD 新交易系统 #ifdef _SA_VERSION_70 /* ------------------------------------------------------------------- -* ¹ܣʯ7.0 -* +* 新功能:石器7.0 +* 更新日期 */ -//ѿ -#define _SARS // (ɿ) WON ADD ɷ -#define _FIX_MAXGOLD // (ɿ) WON ADD Ǯ +//已开放 +#define _SARS // (可开放) WON ADD 毒煞蔓延 +#define _FIX_MAXGOLD // (可开放) WON ADD 增加人物金钱上限 -#define _ITEM_PILENUMS // (ɿ) ANDY زĶѵ +#define _ITEM_PILENUMS // (可开放) ANDY 道具素材堆叠 -#define _ITEM_EQUITSPACE // (ɿ) ANDY װλ -#define _EQUIT_ARRANGE // (ɿ) ANDY -#define _EQUIT_NEWGLOVE // (ɿ) ANDY λ +#define _ITEM_EQUITSPACE // (可开放) ANDY 新增装备栏位 +#define _EQUIT_ARRANGE // (可开放) ANDY 格挡 +#define _EQUIT_NEWGLOVE // (可开放) ANDY 手套栏位 -#define _LOCKPARTYFLOOR // (ɿ) Syu ADD Ӳӵĵͼ -#define _LOCKHELP_OK // (ɿ) Syu ADD ɼս +#define _LOCKPARTYFLOOR // (可开放) Syu ADD 增加不可组队的地图编号 +#define _LOCKHELP_OK // (可开放) Syu ADD 锁定不可加入战斗 -#define _TRADETALKWND // (ɿ) Syu ADD Ի -#define _TRADELOCKBTN // (ɿ) Syu ADD +#define _TRADETALKWND // (可开放) Syu ADD 交易新增对话框架 +#define _TRADELOCKBTN // (可开放) Syu ADD 增加锁定键 -#define _WAVETRACK // (ɿ) Syu ADD +#define _WAVETRACK // (可开放) Syu ADD 音波攻击轨道修正 -#define _CHAR_NEWLOGOUT // (ɿ) ANDY µdz +#define _CHAR_NEWLOGOUT // (可开放) ANDY 新登出机制 -//¹ܣְҵ -#define _TABLEOFSKILL // (ɿ) Syu ADD 7.0 \ܱ -//#define _NEWPANEL_71 // (ɿ) ROG ADD login -//#define _NEWPANEL_70 // (ɿ) Syu ADD ʯ7.0 LOGIN -#define _CHAR_PROFESSION // (ɿ) WON ADD ְҵ -#define _SKILLSORT // (ɿ) Syu ADD ְҵз -#define _NEWREQUESTPROTOCOL // (ɿ) Syu ADD ProtocolҪϸ -#define _OUTOFBATTLESKILL // (ɿ) Syu ADD սʱProtocol -#define _NEWSOUNDEFFECT // (ɿ) Syu ADD Ч -#define _FIXSTATUS // (ɿ) Syu ADD ս״̬ʾʽ -#define _ALLDOMAN // (ɿ) Syu ADD аNPC -#define _CHATROOMPROTOCOL // (ɿ) Syu ADD Ƶ -#define _FRIENDCHANNEL // (ɿ) ROG ADD Ƶ -#define _TELLCHANNEL // (ɿ) ROG ADD Ƶ +//新功能:人物职业 +#define _TABLEOFSKILL // (可开放) Syu ADD 7.0 新增人物技能表单 +//#define _NEWPANEL_71 // (可开放) ROG ADD 新login画面 +//#define _NEWPANEL_70 // (可开放) Syu ADD 石器7.0 LOGIN 画面 +#define _CHAR_PROFESSION // (可开放) WON ADD 人物职业 +#define _SKILLSORT // (可开放) Syu ADD 职业技能排列分类 +#define _NEWREQUESTPROTOCOL // (可开放) Syu ADD 新增Protocol要求能力细项 +#define _OUTOFBATTLESKILL // (可开放) Syu ADD 非战斗时技能Protocol +#define _NEWSOUNDEFFECT // (可开放) Syu ADD 动画音效档 +#define _FIXSTATUS // (可开放) Syu ADD 新战斗状态显示方式 +#define _ALLDOMAN // (可开放) Syu ADD 排行榜NPC +#define _CHATROOMPROTOCOL // (可开放) Syu ADD 聊天室频道 +#define _FRIENDCHANNEL // (可开放) ROG ADD 好友频道 +#define _TELLCHANNEL // (可开放) ROG ADD 密语频道 -#define _DROPPETWND // (ɿ) Syu ADD ȷ +#define _DROPPETWND // (可开放) Syu ADD 丢弃宠物确认 -#define _MAILSHOWPLANET // (ɿ) Syu ADD ʾƬ -#define _MOON_FAIRYLAND // (ɿ) ROG ADD ֮ɾ -#define _SPECIALSPACEANIM_FIX // (ɿ) ROG ADD -//#define _TIMEBAR_FUNCTION // (ɿ) ROG ADD ʱbarʽ +#define _MAILSHOWPLANET // (可开放) Syu ADD 显示名片星球 +#define _MOON_FAIRYLAND // (可开放) ROG ADD 月之仙境 +#define _SPECIALSPACEANIM_FIX // (可开放) ROG ADD 修正动画 +//#define _TIMEBAR_FUNCTION // (不可开) ROG ADD 时间bar函式 //10/23 -#define _FM_MODIFY // 幦޸ +#define _FM_MODIFY // 家族功能修改 -#define _FIREHUNTER_SKILL // (ɿ) ROG ADD ȸ_ɱ -#define _PETSKILL_ACUPUNCTURE // (ɿ) Change 輼:Ƥ -#define _PETSKILL_DAMAGETOHP // (ɿ) Change 輼:¿(Ѫı) -#define _PETSKILL_BECOMEFOX // (ɿ) Change 輼:Ļ -#define _PETSKILL_BECOMEPIG // (ɿ) Change 輼: +#define _FIREHUNTER_SKILL // (可开放) ROG ADD 朱雀技能_火线猎杀 +#define _PETSKILL_ACUPUNCTURE // (可开放) Change 宠技:针刺外皮 +#define _PETSKILL_DAMAGETOHP // (可开放) Change 宠技:暗月狂狼(嗜血技的变体) +#define _PETSKILL_BECOMEFOX // (可开放) Change 宠技:媚惑术 +#define _PETSKILL_BECOMEPIG // (可开) Change 宠技:乌力化 -// ¹ܣϿ(¸ѻ) -#define _NEW_WGS_MSG // (ɿ) WON ADD WGSӴ +// 新功能:连接新资料库(新付费机制) +#define _NEW_WGS_MSG // (可开) WON ADD WGS的新视窗 -#define _CHANNEL_MODIFY // Ƶ +#define _CHANNEL_MODIFY // 频道功能整合 -#define _CHANGEGALAXY // Robin ϵ -#define _ERROR301 // Robin APش301,Ʒδע +#define _CHANGEGALAXY // Robin 星系移民 +#define _ERROR301 // Robin AP回传301错误,产品尚未注册 -#define _STANDBYPET // Robin ʹбServer +#define _STANDBYPET // Robin 送待机宠列表到Server #endif //SA_VERSION_70 -#define DIRECTINPUT_VERSION 0x0700 // Robin DirectX SDK +#define DIRECTINPUT_VERSION 0x0700 // Robin 增加DirectX SDK的相容性 -#define _CLOUD_EFFECT // (ɿ) ROG ADD ƲЧ -//#define _NPC_WELFARE_2 // (ɿ) WON ADD ְҵNPC-2 +#define _CLOUD_EFFECT // (不可开) ROG ADD 云层效果 +//#define _NPC_WELFARE_2 // (不可开) WON ADD 职业NPC-2 -//#define _NPC_SELLSTH // (ɿ) ANDY +//#define _NPC_SELLSTH // (可开放) ANDY 拍卖 //#define _SYUTEST //#define _SYUTEST2 //#define _SYUTEST3 -//#define _AUCPROTOCOL // (ɿ) Syu ADD ƵProtocol +//#define _AUCPROTOCOL // (不可开) Syu ADD 拍卖频道开关Protocol /* ------------------------------------------------------------------- -* ¹ܣPK -* +* 新功能:PK服务器 +* 更新日期 */ -// -// +//测试中 +//制作中 -//#define _PKSERVERCHARSEL // (ɿ) Syu ADD PKѡϵ +//#define _PKSERVERCHARSEL // (不可开) Syu ADD PK服务器选择星系人物 // ------------------------------------------------------------------- -// ²ɿ +// 以下不可开 /* ------------------------------------------------------------------- -* ¹ܣreal.binͼ -* +* 新功能:real.bin分图 +* 更新日期 */ -//F -//#define _SAHOOK // (ɿ) Syu ADD Hookʽ -//#define _REALDIVISION // (ɿ) Syu ADD real.binͼҪrealtxt.txt +//测试中F +//#define _SAHOOK // (不可开) Syu ADD Hook程式 +//#define _REALDIVISION // (不可开) Syu ADD real.bin分图,要有realtxt.txt档 // ------------------------------------------------------------------- -//#define _OMIT_WGS // (ɿ) ԹʺšWGS. code:shan +//#define _OMIT_WGS // (不可开) 略过帐号、密码至WGS. code:shan // ------------------------------------------------------------------- #ifdef _SA_VERSION_50 /* ------------------------------------------------------------------- -* ¹ܣʯ5.0 -* ˵ +* 新功能:石器5.0 +* 说明: */ -//#define _CANT_ATK // (ɿ) can't attack(own team). code: shan -//#define _SETTICK_COUNT // (ɿ) ANDY ظ -//#define _GM_MARK // (ɿ) WON ADD GM ʶ -//#define _GM_IDENTIFY // (ɿ)Rog ADD GMʶgmָ +//#define _CANT_ATK // (不可开) can't attack(own team). code: shan +//#define _SETTICK_COUNT // (不可开) ANDY 重复发话 +//#define _GM_MARK // (不可开) WON ADD GM 识别 +//#define _GM_IDENTIFY // (不可开)Rog ADD GM识别的gm指令 -//#define _LOGINKICK // (ɿ) Syu ADD 뻭泬30߻ϵб +//#define _LOGINKICK // (不可开) Syu ADD 登入画面超过30秒踢回星系列表 #endif //SA_VERSION_50 #define MALLOC(s) malloc(s) #define CALLOC(c,s) calloc(c,s) @@ -418,9 +418,9 @@ extern int viewOffsetY; #define FREE(p) free(p) //#define _PET_TRACE_MOUSE -//#define __EDEN_DICE // (ɿ) ij -#define _AI_OTHER // AI -#define __AI // Cary Զս +//#define __EDEN_DICE // (不可开) 赌场骰子 +#define _AI_OTHER // AI其它功能 +#define __AI // Cary 加入自动战斗功能 #ifdef _AI_OTHER #define _AI_CAPTURE #endif @@ -429,258 +429,258 @@ unsigned int TimeGetTime(void); #ifdef _SA_VERSION_70 #ifdef _BACK_VERSION -#define _REMAKE_20 // ʯ̹ܿ() +#define _REMAKE_20 // 石器复刻功能控制(防外挂) #define _BACK_LOGO -#define _BACK_WINDOW //̰Ӵ(debugſɿ,ڲԱʹ) -#define _READ16BITBMP // Terry ɶ뼰ʾ߲ͼ +#define _BACK_WINDOW //复刻版视窗化(debug版才可开,内部人员使用) +#define _READ16BITBMP // Terry 可读入及显示高彩图 #else -#define _ATTACK_AI // ڹҹAI -#define _AI_NEW_FIRST // AI ״οְҵ -#define _BATTLESKILL // (ɿ) Syu ADD սܽ -#define _NEWPANEL // (ɿ) Syu ADD 7.0 ״̬ +#define _ATTACK_AI // 内挂攻击AI +#define _AI_NEW_FIRST // AI 首次可以用职业技能 +#define _BATTLESKILL // (可开放) Syu ADD 战斗技能介面 +#define _NEWPANEL // (可开放) Syu ADD 7.0 新人物状态介面 #endif #endif #ifdef _SA_VERSION_75 /* ------------------------------------------------------------------- -* ¹ܣʯ7.5 -* +* 新功能:石器7.5 +* 更新日期 */ -#define _ANGEL_SUMMON // ʹл Robin -#define _PROFESSION_ADDSKILL // (ɿ) Change ׷ְҵ -#define _TRANS_6 // (ɿ) Change 6ת -#define _PET_2TRANS // (ɿ) Change 2ת -//#define _75_LOGIN // 7.5login -#define _STREET_VENDOR // ̯ -#define _NEW_MANOR_LAW // ׯ԰ +#define _ANGEL_SUMMON // 天使的招唤 Robin +#define _PROFESSION_ADDSKILL // (可开) Change 追加职业技能 +#define _TRANS_6 // (可开) Change 人物6转 +#define _PET_2TRANS // (可开) Change 宠物2转 +//#define _75_LOGIN // 7.5版login画面 +#define _STREET_VENDOR // 摆摊功能 +#define _NEW_MANOR_LAW // 新庄园规则 -#define _PETSKILL_LER // ׶ -//#define _PK_SERVER //PK -//#define _8_TEST //8.0server +#define _PETSKILL_LER // 雷尔技能 +//#define _PK_SERVER //百万PK活动 +//#define _8_TEST //8.0测试server // ------------------------------------------------------------------- -// רϻرϵͳ -// Աݿ -// ˵ +// 专案:线上回报系统 +// 人员:逸俊 +// 说明: //#define __ONLINEGM //-------------------------------------------------------------------- -#define _STREET_VENDOR_CHANGE_ICON // ޸İ̯ͼʾ +#define _STREET_VENDOR_CHANGE_ICON // 修改摆摊图示 -#define _TALK_WINDOW // ԻӴ -#define _SHOW_FUSION // (ɿ) Change ںϳCLIENTֻʾת,޸ΪںϳʾΪں -#define _NPC_FUSION // (m) ANDY NPCо +#define _TALK_WINDOW // 对话视窗 +#define _SHOW_FUSION // (可开) Change 融合宠物在CLIENT端只显示转生数,修改为融合宠显示为融合 +#define _NPC_FUSION // (□宮□) ANDY NPC□□芯シ -#define _FONT_SIZE // Robin (Ҫ) ɸʹС -#define _CONTRACT // Robin (Ҫ) Լ -#define _HALLOWEEN_EFFECT // ʥЧ -#define _ADD_STATUS_2 // ״̬ڶ -#define _PETSKILL_BATTLE_MODEL // \սģ -#define _RACEMAN // cyg Գnpc -#define _PETSKILL_ANTINTER // (ɿ) Change 輼:֮ -#define _PETSKILL_EXPLODE // (ɿ) Change 輼:ѹ -#define _ITEM_FIREWORK // ̻ -#define _FIREWORK_SOUND // cyg Ч(̻) -#define _GET_HOSTNAME // (ɿ) Change ȡõ -#define _SKILL_ADDBARRIER // (ɿ) Change 輼:Ϊħ쳣Թ -#define _PETSKILL_PEEL // (ɿ) Change 輼:ѿ +#define _FONT_SIZE // Robin (要开) 可改字型大小 +#define _CONTRACT // Robin (要开) 契约功能 +#define _HALLOWEEN_EFFECT // 万圣节特效 +#define _ADD_STATUS_2 // 新增传送人物状态第二类 +#define _PETSKILL_BATTLE_MODEL // 宠物技能战斗模组 +#define _RACEMAN // cyg 猎宠大会新npc +#define _PETSKILL_ANTINTER // (可开) Change 宠技:蚁之葬 +#define _PETSKILL_EXPLODE // (可开) Change 宠技:爆裂攻击 +#define _ITEM_FIREWORK // 烟火功能 +#define _FIREWORK_SOUND // cyg 新增音效(烟火用) +#define _GET_HOSTNAME // (可开) Change 取得电脑名称 +#define _SKILL_ADDBARRIER // (可开) Change 宠技:为魔障增加异常抗性功能 +#define _PETSKILL_PEEL // (可开) Change 宠技:金蝉脱壳 -//#define _MOUSE_DBL_CLICK // Robin Ҽ˫ +//#define _MOUSE_DBL_CLICK // Robin 滑鼠右键双击功能 #endif //SA_VERSION_75 #ifdef _SA_VERSION_80 //-------------------------------------------------------------------------------------------------------- -//ר 8.0 ʧ ¼ӹܶ Աѫ ݿ +//专案 8.0 失落的世界 新加功能定义区 人员:彦勋 奇铨 晓威 逸俊 //-------------------------------------------------------------------------------------------------------- -#define _PET_ITEM // Terry װ -#define _NPC_PICTURE // (ɿ) Change ¶ij(ʱNPC) -#define _JOBDAILY // cyg ־ -#define _ITEM_PATH // (ɿ) Change ̤ϲĵ -#define _ALCHEMIST // Robin -#define _ALCHEPLUS // Robin -#define _EXTEND_AB // cyg Ƭ -#define _ITEM_INTENSIFY // (ɿ) Change 輼:ǿ -#define _TEACHER_SYSTEM // Terry ʦϵͳ -#define _ITEM_UPINSLAY // (ɿ) Change 輼:(õ߿ϸ౦ʯ) -#define _MAG_MENU // (ɿ) Change ħȡʾΪͼʾ -#define _NPC_MAGICCARD // cyg ħϷ -#define _THEATER // Terry 糡 -#define _MOVE_SCREEN // Terry ƶӫĻָ -// #define _80_LOGIN // Terry 8.0 뻭 -#define _8_RIDEPETS // (ɿ) Change 8.0 -#define _8BATTLEMAP // Change 8.0 սر -#define _PETKILL_COST_FAME // Terry \ܵѧҪ -#define _DRAGON_FUSION // Robin +#define _PET_ITEM // Terry 宠物可装备道具 +#define _NPC_PICTURE // (可开) Change 新赌场功能(随时变身的NPC) +#define _JOBDAILY // cyg 任务日志功能 +#define _ITEM_PATH // (可开) Change 可踏上不可走区域的道具 +#define _ALCHEMIST // Robin 精炼功能 +#define _ALCHEPLUS // Robin 鉴定功能 +#define _EXTEND_AB // cyg 扩充名片功能 +#define _ITEM_INTENSIFY // (可开) Change 宠技:强化道具 +#define _TEACHER_SYSTEM // Terry 导师系统 +#define _ITEM_UPINSLAY // (可开) Change 宠技:凿孔(让道具可镶上更多宝石) +#define _MAG_MENU // (可开) Change 魔法熟练度、抗性由文字显示改为图示化 +#define _NPC_MAGICCARD // cyg 魔法牌游戏 +#define _THEATER // Terry 剧场功能 +#define _MOVE_SCREEN // Terry 移动荧幕到指定的座标 +// #define _80_LOGIN // Terry 8.0 登入画面 +#define _8_RIDEPETS // (可开) Change 8.0骑宠 +#define _8BATTLEMAP // Change 8.0 战斗地表 +#define _PETKILL_COST_FAME // Terry 宠物技能店学技能要花费声望 +#define _DRAGON_FUSION // Robin 人龙进化 -#define _MACADDRESSD // (ɿ) Change get MAC card -#define _NEW_EARTH // Terry µ,ɿڲ -//#define _80_LOGIN_PLAY // Terry 8.0 뻭 +#define _MACADDRESSD // (可开) Change get MAC card +#define _NEW_EARTH // Terry 新地球,可看见内部服务器 +//#define _80_LOGIN_PLAY // Terry 8.0 登入画面 //---------------------------------------------------------------------- -//#define _ITEM_JIGSAW // (ɿ) Change ƴͼ +//#define _ITEM_JIGSAW // (可开) Change 拼图道具 -#define _NPC_DANCE // cyg һnpc -#define _ATTACK_EFFECT // ɫᲥŹЧ +#define _NPC_DANCE // cyg 动一动npc +#define _ATTACK_EFFECT // 角色攻击完后会播放攻击特效 -//#define _2005_ValentineDay // Terry 2005 ˽ڻ -#define _PETSKILL_ADDATTCRAZED // (ɿ) Change 輼:ұӹ -#define _PETSKILL_JUSTICE // (ɿ) Change 輼: -#define _CALLBUS // (ɿ) Change ùбеĹ +//#define _2005_ValentineDay // Terry 2005 情人节活动 +#define _PETSKILL_ADDATTCRAZED // (可开) Change 宠技:狂乱暴走增加功能 +#define _PETSKILL_JUSTICE // (可开) Change 宠技:审判 +#define _CALLBUS // (可开) Change 让公车具有被呼叫的功能 -//#define _NPC_ITEMUP // (ɿ) Change õNPC -//#define _ITEM_COUNTDOWN // cyg ߵ +//#define _NPC_ITEMUP // (可开) Change 让道具升级的NPC +//#define _ITEM_COUNTDOWN // cyg 道具倒数功能 -#define _PRO_KILLME // Change ְ ʰյ -#define _PETSKILL_EVOLUTION // (ɿ) Change ܳ輼: -#define _PETSKILL_PROVOKEFIGHT // (ɿ) Change Ȯ輼:Ʒ -#define _FIX_ACUPUNCTURE // (ɿ) Change Ƥ޸ -#define _PETSKILL_RIDE // (ɿ) Change 輼: +#define _PRO_KILLME // Change 白狼职技 拾身诱敌 +#define _PETSKILL_EVOLUTION // (可开) Change 北极熊宠技:进化 +#define _PETSKILL_PROVOKEFIGHT // (可开) Change 犬年宠技:挑衅反击 +#define _FIX_ACUPUNCTURE // (可开) Change 针刺外皮的修改 +#define _PETSKILL_RIDE // (可开) Change 宠技:上马术 #endif // _SA_VERSION_80 #ifdef _SA_VERSION_85 //-------------------------------------------------------------------------------------------------------- -//ר 8.5 ħð ¼ӹܶ Ա ݿ +//专案 8.5 魔域大冒险 新加功能定义区 人员:奇铨 逸俊 //-------------------------------------------------------------------------------------------------------- -#define _PRO_ABSOLUTE_DEFENSE // (ɿ) Change ְ Է -#define _PRO3_ADDSKILL // (ɿ) Change ׷8.5ְҵ -#define _NPC_DAYACTION // cyg ÿջ -#define _EVIL_KILL // cyg ַħϵͳ -#define _HUNDRED_KILL // cyg ˫ -#define _NEW_CLOUD // (ɿ) Change µĵͼЧ -//#define _85_LOGIN // (ɿ) Change 8.5뻭 +#define _PRO_ABSOLUTE_DEFENSE // (可开) Change 白狼职技 绝对防御 +#define _PRO3_ADDSKILL // (可开) Change 追加8.5职业技能 +#define _NPC_DAYACTION // cyg 每日活动 +#define _EVIL_KILL // cyg 讨伐魔军系统 +#define _HUNDRED_KILL // cyg 百人无双 +#define _NEW_CLOUD // (可开) Change 新的地图的云效果 +//#define _85_LOGIN // (可开) Change 8.5登入画面 //---------------------------------------------------------------------- -#define _AI_SKILL_UPDATE //AI -#define _TEACHER_SYSTEM_2 // cyg µʦϵͳ +#define _AI_SKILL_UPDATE //新AI技能 +#define _TEACHER_SYSTEM_2 // cyg 新导师系统 #endif #endif /* - +新增宏增加 */ -#define _FIX_MAXGOLD // (ɿ) WON ADD Ǯ -#define _MOON_FAIRYLAND // (ɿ) ROG ADD ֮ɾ -#define _SPECIALSPACEANIM_FIX // (ɿ) ROG ADD -#define _LOGINKICK // (ɿ) Syu ADD 뻭泬30߻ϵб -//#define _CHECK_GAMESPEED // (ɿ) ANDY -#define _NEW_CLOUD // (ɿ) Change µĵͼЧ -#define _FIX_BATTLE_AI // ޸սAIתBUG -#define _WIN_LUAJIT_ //LUAJITչ ֧Ľӿں·LUAļ -#define _NEW_COLOR_ //֧16λRGB565߲ͼƬ -#define _NEW_WIN_POS_ //800ƫ -#define _NEW_ALPHA_ //½͸ -//#define _CACHE_SURFACE_ // -//#define _OPTIMIZATIONFLIP_ //ŻFlip -#define _KEY_ "AEB3A729E71F8870D4611FBDC01D0A4B" //м +#define _FIX_MAXGOLD // (可开放) WON ADD 增加人物金钱上限 +#define _MOON_FAIRYLAND // (可开放) ROG ADD 月之仙境 +#define _SPECIALSPACEANIM_FIX // (可开放) ROG ADD 修正动画 +#define _LOGINKICK // (不可开) Syu ADD 登入画面超过30秒踢回星系列表 +//#define _CHECK_GAMESPEED // (不可开) ANDY 检测加速 +#define _NEW_CLOUD // (可开) Change 新的地图的云效果 +#define _FIX_BATTLE_AI // 修复战斗AI转换的BUG +#define _WIN_LUAJIT_ //增加LUAJIT扩展功能 支持中文接口和中文路径LUA文件 +#define _NEW_COLOR_ //补丁支持16位RGB565高彩图片 +#define _NEW_WIN_POS_ //800窗口偏移设置 +#define _NEW_ALPHA_ //新建半透明处理 +//#define _CACHE_SURFACE_ //缓存表面 +//#define _OPTIMIZATIONFLIP_ //优化Flip +#define _KEY_ "AEB3A729E71F8870D4611FBDC01D0A4B" //所有加密 //#define _NEWFONT_ -#define _MO_SIGN_IN //ͻǩť -#define _CHANGE_HELP_BUTTON //޸İťͼ -#define _PETCOM_ //ɳԶ -#define _NEW_SPEED_ //Ϸٶ +#define _MO_SIGN_IN //客户端签到按钮 +#define _CHANGE_HELP_BUTTON //修改帮助按钮图形 +#define _PETCOM_ //宠物成长自动计算 +#define _NEW_SPEED_ //新游戏速度 -#define _PETCOLOR_ //1ɫ -#define _PETKILL_COST_FAME // Terry \ܵѧҪ -#define _AIDENGLU_ //Զ½ -#define _ZHENGSHIKAIFU_ //ʽ -#define _ZENGJIASHUO_ //һߵͼ꣬ͬʱĵ߲ѡ -#define _BUDING_ "554CDB1A99DF514B2F0B09DBDA0A6E9D" // -#define _TIME_GET_TIME // QueryPerformanceCounterȡtimeGetTime -#define _FAMILYBADGE_ // -#define _SHOWFAMILYBADGE_ //ʾ -#define _NEWNET_ //· -//#define _LOGIP_ //½ʱȡIP -//#define _SHOWIPSLEEP_ //ʾ·ʱ -//#define _MEMORYLEAK_CHECK //ڴй© -//#define _COMFIRM_TRADE_REQUEST //ȷ -#define _DIEJIA_ //ӹ -#define _FANILYTEXIAOY_ 45 //ƫY ԽԽڶ -#define _OTHERTEXIAOY_ 70 //ͼƫY ԽԽڶ -#define _ATTACK_EFFECT // ɫᲥŹЧ +#define _PETCOLOR_ //1级宠物变色 +#define _PETKILL_COST_FAME // Terry 宠物技能店学技能要花费声 +#define _AIDENGLU_ //自动登陆 +#define _ZHENGSHIKAIFU_ //正式开服打开 +#define _ZENGJIASHUO_ //增加一个锁道具的图标,同时被锁的道具不能选中 +#define _BUDING_ "554CDB1A99DF514B2F0B09DBDA0A6E9D" //补丁加密 +#define _TIME_GET_TIME // 用QueryPerformanceCounter取代timeGetTime +#define _FAMILYBADGE_ //家族徽章 +#define _SHOWFAMILYBADGE_ //显示家族徽章 +#define _NEWNET_ //新封包机制 +//#define _LOGIP_ //登陆时获取IP +//#define _SHOWIPSLEEP_ //显示线路延时 +//#define _MEMORYLEAK_CHECK //内存泄漏检测 +//#define _COMFIRM_TRADE_REQUEST //交易请求确认 +#define _DIEJIA_ //叠加功能 +#define _FANILYTEXIAOY_ 45 //家族徽章偏移Y 越大则越靠窗口顶部 +#define _OTHERTEXIAOY_ 70 //其它图标偏移Y 越大则越靠窗口顶部 +#define _ATTACK_EFFECT // 角色攻击完后会播放攻击特效 #define _SA_VERSION 'N' -#define _SA_MAC_VERSION_CONTROL //MAC汾ſ -#define FAMILY_MANOR_ //ׯ԰⻷ -#define _CHAR_MANOR_ //¹⻷ -//#define _CHAR_MANOR_DEBUG //¹⻷DEBUG -#define _ANNOUNCEMENT_ //ϵͳ -//#define _EFFECT_MAP_ //Ч +#define _SA_MAC_VERSION_CONTROL //MAC版本号控制 +#define FAMILY_MANOR_ //庄园光环 +#define _CHAR_MANOR_ //人物脚下光环 +//#define _CHAR_MANOR_DEBUG //人物脚下光环DEBUG +#define _ANNOUNCEMENT_ //公告系统 +//#define _EFFECT_MAP_ //塔特效 #ifndef _DEBUG__ -#define _VMP_ //VMPܿ -//#define _NODEBUG_ // Եʱˣʽʹ +#define _VMP_ //VMP功能开启 +//#define _NODEBUG_ //反调试 测试的时候把这个屏蔽了,正式使用则把这个开启 #else -#define _CMD_MODE //ģʽ -//#define _STONDEBUG__PACKET_ //Է -//#define _MO_SHOW_FPS //ʾfps -#define _RELUA_ //DEBUGģʽðϢضLUA +#define _CMD_MODE //调试模式 +//#define _STONDEBUG__PACKET_ //调试封包 +//#define _MO_SHOW_FPS //显示fps +#define _RELUA_ //DEBUG模式下启用按个人信息则重读LUA #endif #define SHOW_VERSION "www.shiqi.hk" -//#define _TRADE_BUG_LOG //bug־ -#define _SECONDARY_WINDOW_DATA_ // -#define LABEL_STR_ //ض[][] +//#define _TRADE_BUG_LOG //交易bug日志 +#define _SECONDARY_WINDOW_DATA_ //二级窗口内容 +#define LABEL_STR_ //标记重定义输出[普][密] #ifdef _SA_VERSION_25 -#define _DEFAULT_PKEY "shiqi" // ĬϵԿ -#define _RUNNING_KEY "shiqi.hk" // Կ -#define _SYSTEM_SLEEP_ 6 //Ϸٶ -#define _SURFACE_ANIM // ̬ʾ -#define _DEFENSETOOENNUM_ 5 //޼ +#define _DEFAULT_PKEY "shiqi" // 默认的密钥 +#define _RUNNING_KEY "shiqi.hk" // 运行中密钥 +#define _SYSTEM_SLEEP_ 6 //游戏速度设置 +#define _SURFACE_ANIM // 动态地上物显示 +#define _DEFENSETOOENNUM_ 5 //限几开 #define DENGLUKEY1 "6D27AEB8326A2A8E7D04B9F9B44C59C7" -#define _LEADERRIDE // (ɿ) Ĵﱩ Robin 0921 -//#define _MO_IMAGE_EXTENSION //չ -#define _NEW_ITEM_ //µ +#define _LEADERRIDE // (可开放) 四大家族骑暴功能 Robin 0921 +//#define _MO_IMAGE_EXTENSION //形象扩展 +#define _NEW_ITEM_ //新道具栏 #ifdef _WIN_LUAJIT_ -#define _LUA_PATCH_ ".//lua" //LUA· -#define _LUA_KEY_ "6A68673107B8C5B829815A507FF5C274" //LUAԿ +#define _LUA_PATCH_ ".//lua" //LUA路径 +#define _LUA_KEY_ "6A68673107B8C5B829815A507FF5C274" //LUA加密密钥 #endif -#define _MAGIC_ITEM_ // -#define _ICONBUTTONS_ //ת +#define _MAGIC_ITEM_ //法宝功能 +#define _ICONBUTTONS_ //转盘 #define _BATTLE_TIME_ 99000 -#define _PET_2TRANS // (ɿ) Change 2ת -#define _DEBUGVER_ "2.2" //DEBUG汾 -#define _NEWSHOP_ //̳ -#define _SHOWPETTRN_ //ʾת +#define _PET_2TRANS // (可开) Change 宠物2转 +#define _DEBUGVER_ "2.2" //DEBUG版本号 +#define _NEWSHOP_ //商城 +#define _SHOWPETTRN_ //显示宠物转数 #ifdef _SA_MAC_VERSION_CONTROL #define _SA_MAC_VERSION "7sa2" #endif -#define _CHANGETEAM_ //ӳл +#define _CHANGETEAM_ //队长切换 #define SA_MUTE "sa25.exe" -#define _NEW_CHARDATA_ // -#define _PETBLESS_ //ף -#define _RIDEPET_ //迪 -#define DEF_APPNAME "STONEAGE" // Ϸ -#define _RIDEQUERY_ //ѯ -#define _CHAT_SPACING 24 //о 20 -#define __EMOTION //Cary ı飬ֻclient -//#define _PET_SKINS //Ƥ -#define _PET_2TRANS // (ɿ) Change 2ת -#define _NPC_EVENT_NOTICE //npcϢʾ -#define _SHOWPETTRN_ //ʾת -//#define _PET_VAL_COLOR_ //ɫ -#define _MO_CHAT_EXPRESSION //鹦 -#define _SA_LIAOTIAN_ //ɾť -#define _CHARTITLE_STR_ //ֳƺ óƺſ,ͼγƺʧЧ -#define _FONT_STYLE_ //֘ʽ -#define _MESSAGE_FRONT_ //ϢǰӸ -#define _TRADITIONAL_LONG_ //ϵͳ½ -#define _FONTDATALEN_ 100 //Ϣ 112 +#define _NEW_CHARDATA_ //新人物资料 +#define _PETBLESS_ //宠物祝福 +#define _RIDEPET_ //骑宠开关 +#define DEF_APPNAME "STONEAGE" // 游戏标题 +#define _RIDEQUERY_ //骑宠查询 +#define _CHAT_SPACING 24 //聊天行距设置 20 +#define __EMOTION //Cary 特殊的表情,只做client +//#define _PET_SKINS //宠物皮肤 +#define _PET_2TRANS // (可开) Change 宠物2转 +#define _NPC_EVENT_NOTICE //npc任务信息提示 +#define _SHOWPETTRN_ //显示宠物转数 +//#define _PET_VAL_COLOR_ //宠物属性上色 +#define _MO_CHAT_EXPRESSION //聊天表情功能 +#define _SA_LIAOTIAN_ //聊天删减按钮 +#define _CHARTITLE_STR_ //文字称号 该称号开启,图形称号失效 +#define _FONT_STYLE_ //文字樣式解析 +#define _MESSAGE_FRONT_ //聊天信息前面加个符号 +#define _TRADITIONAL_LONG_ //繁体系统创建人物登陆 +#define _FONTDATALEN_ 100 //聊天信息长度 112 #define MAX_AIRPLANENUM 8 #define _FIX_CG_ATR_ICON #define _PETSKILL_LER -//#define _CANCEL_FANTI //ȡл -//#define _RED_MEMOY_ // +//#define _CANCEL_FANTI //取消繁体切换 +//#define _RED_MEMOY_ //红包 #endif #ifdef _MO_CHAT_EXPRESSION #define CG_FIELD_CHAT_BTN_ON 55102 #define CG_FIELD_CHAT_BTN_OFF 55102 -//#define EXPRESSION_NOID_START 55300 //ͼʼID -//#define EXPRESSION_NOID_END 55421 //ͼŽID -#define EXPRESSION_NOID_START 55117 //ͼʼID -#define EXPRESSION_NOID_END 55215 //ͼŽID +//#define EXPRESSION_NOID_START 55300 //表情地图号起始ID +//#define EXPRESSION_NOID_END 55421 //表情地图号结束ID +#define EXPRESSION_NOID_START 55117 //表情地图号起始ID +#define EXPRESSION_NOID_END 55215 //表情地图号结束ID #define EXPRESSION_NOID_NUM EXPRESSION_NOID_END-EXPRESSION_NOID_START -#define _SUNDAY_STR_SEARCH //SUNDAYַ㷨 KMPţٶȸ㷨 +#define _SUNDAY_STR_SEARCH //SUNDAY字符串搜索算法 比KMP更牛速度更快的算法 #endif diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/Ping.cpp b/石器时代8.5客户端最新源代码/石器源码/wgs/Ping.cpp index 23502a3..fd01222 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/Ping.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/Ping.cpp @@ -1,4 +1,4 @@ -//ping.cpp +//ping.cpp #include #include #include "ping.h" @@ -6,26 +6,26 @@ bool CPing::Ping(LPCSTR pstrHost, UINT nRetries) { - //һRaw׽ + //创建一个Raw套节字 SOCKET rawSocket = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); if (rawSocket == INVALID_SOCKET) { int err = WSAGetLastError(); return false; } - int nNetTimeout = 1000;//1 - //ʱ + int nNetTimeout = 1000;//1秒 + //发送时限 setsockopt(rawSocket, SOL_SOCKET, SO_SNDTIMEO, (char *)&nNetTimeout, sizeof(int)); - //ʱ + //接收时限 setsockopt(rawSocket, SOL_SOCKET, SO_RCVTIMEO, (char *)&nNetTimeout, sizeof(int)); - //Ϣ + //获得主机信息 LPHOSTENT lpHost = gethostbyname(pstrHost); if (lpHost == NULL) { return false; } - //Ŀ׽ֵַϢ + //构造目标套节字地址信息 struct sockaddr_in saDest; struct sockaddr_in saSrc; saDest.sin_addr.s_addr = *((u_long FAR *) (lpHost->h_addr)); @@ -38,10 +38,10 @@ bool CPing::Ping(LPCSTR pstrHost, UINT nRetries) int nRecvNum = 0; int nTotalTime = 0; - //ping + //多次ping for (UINT nLoop = 0; nLoop < nRetries; ++nLoop) { - //ICMPӦ + //发送ICMP回应请求 if ((nRet = SendEchoRequest(rawSocket, &saDest)) < 0) { break; @@ -54,14 +54,14 @@ bool CPing::Ping(LPCSTR pstrHost, UINT nRetries) if (nRet) { - //ûӦ + //获得回应 if ((dwTimeSent = RecvEchoReply(rawSocket, &saSrc, &cTTL)) < 0) { nRet = dwTimeSent; break; } - //ʱ + //计算时间 nTotalTime += GetTickCount() - dwTimeSent; ++nRecvNum; } @@ -81,7 +81,7 @@ bool CPing::Ping(LPCSTR pstrHost, UINT nRetries) -//ICMPECHOݰ +//发送ICMPECHO数据包请求 int CPing::SendEchoRequest(SOCKET s, LPSOCKADDR_IN lpstToAddr) { static ECHOREQUEST echoReq; @@ -89,7 +89,7 @@ int CPing::SendEchoRequest(SOCKET s, LPSOCKADDR_IN lpstToAddr) static int nSeq = 1; int nRet; - //Ӧ + //构造回应请求 echoReq.icmpHdr.Type = ICMP_ECHOREQ; echoReq.icmpHdr.Code = 0; echoReq.icmpHdr.Checksum = 0; @@ -99,19 +99,19 @@ int CPing::SendEchoRequest(SOCKET s, LPSOCKADDR_IN lpstToAddr) for (nRet = 0; nRet < REQ_DATASIZE; nRet++) echoReq.cData[nRet] = ' ' + nRet; - //淢ʱ + //保存发送时间 echoReq.dwTime = GetTickCount(); echoReq.icmpHdr.Checksum = in_cksum((u_short *)&echoReq, sizeof(ECHOREQUEST)); - // + //发送请求 nRet = sendto(s, (LPSTR)&echoReq, sizeof(ECHOREQUEST), 0, (LPSOCKADDR)lpstToAddr, sizeof(SOCKADDR_IN)); - //鷵ֵ + //检查返回值 if (nRet == SOCKET_ERROR) { @@ -122,14 +122,14 @@ int CPing::SendEchoRequest(SOCKET s, LPSOCKADDR_IN lpstToAddr) -//ICMPECHOݰӦ +//接收ICMPECHO数据包回应 DWORD CPing::RecvEchoReply(SOCKET s, LPSOCKADDR_IN lpsaFrom, u_char *pTTL) { ECHOREPLY echoReply; int nRet; int nAddrLen = sizeof(struct sockaddr_in); - //Ӧ + //接收请求回应 nRet = recvfrom(s, (LPSTR)&echoReply, sizeof(ECHOREPLY), @@ -137,13 +137,13 @@ DWORD CPing::RecvEchoReply(SOCKET s, LPSOCKADDR_IN lpsaFrom, u_char *pTTL) (LPSOCKADDR)lpsaFrom, &nAddrLen); - //鷵ֵ + //检查返回值 if (nRet == SOCKET_ERROR) { return nRet; } - //ط͵ʱ + //返回发送的时间 *pTTL = echoReply.ipHdr.TTL; return(echoReply.echoRequest.dwTime); @@ -151,7 +151,7 @@ DWORD CPing::RecvEchoReply(SOCKET s, LPSOCKADDR_IN lpsaFrom, u_char *pTTL) -//ȴӦ +//等待回应 int CPing::WaitForEchoReply(SOCKET s) { struct timeval Timeout; @@ -169,7 +169,7 @@ int CPing::WaitForEchoReply(SOCKET s) -//תַ +//转换地址 u_short CPing::in_cksum(u_short *addr, int len) { register int nleft = len; diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/Ping.h b/石器时代8.5客户端最新源代码/石器源码/wgs/Ping.h index d07db10..564fb9a 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/Ping.h +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/Ping.h @@ -1,16 +1,16 @@ -//ping.h +//ping.h #ifndef _CPING_H_ #define _CPING_H_ #pragma pack(1) #define ICMP_ECHOREPLY 0 #define ICMP_ECHOREQ 8 -#define REQ_DATASIZE 32 // Echo ݵĴС +#define REQ_DATASIZE 32 // Echo 请求数据的大小 class CPing { public: - //ping host nRetries-ping + //ping host, nRetries-ping次数 bool Ping(LPCSTR pstrHost, UINT nRetries = 4); void Result(int* nElapseTime, float* fMissPack = NULL, u_char* cTTL = NULL); @@ -18,7 +18,7 @@ public: private: int WaitForEchoReply(SOCKET s); - //ICMPӦͻش + //ICMP回应的请求和回答函数 int SendEchoRequest(SOCKET, LPSOCKADDR_IN); DWORD RecvEchoReply(SOCKET, LPSOCKADDR_IN, u_char *); u_short in_cksum(u_short *addr, int len); @@ -26,9 +26,9 @@ private: private: struct REQ_RESULT { - int nElapseTime; //Ӧʱ䡣 - u_char cTTL; //TTL(ʱ) - float fMissPack; // + int nElapseTime; //请求响应时间。 + u_char cTTL; //请求TTL(生存时间) + float fMissPack; //丢包率 }; REQ_RESULT m_Result; diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/common.cpp b/石器时代8.5客户端最新源代码/石器源码/wgs/common.cpp index 7cf961f..3bfa807 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/common.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/common.cpp @@ -1,6 +1,6 @@ -/*----------------------------------------------- +/*----------------------------------------------- Common.cpp -- common function - (c) ʤCary Hsu, 1999.10.4 + (c) 许百胜Cary Hsu, 1999.10.4 -----------------------------------------------*/ #include #include @@ -20,24 +20,24 @@ char szAnnouncement[1024]; //#ifdef CHINA_VER - // ½ + // 大陆版 // char szWGS[]="210.51.17.41"; // WORD wWGS=9125; //#else #ifdef _BACK_VERSION //// - // ̰ + // 复刻版 char szWGS[]="210.64.97.28"; WORD wWGS=13009; #else #ifdef _PK_SERVER - // PK + // 百万PK版 char szWGS[]="210.64.97.28"; WORD wWGS=13010; #else - // ʽ + // 正式版 char szWGS[]="210.64.97.28"; //char szWGS[]="wgs.hwaei.com.tw"; WORD wWGS=13005; @@ -202,39 +202,39 @@ void SetTestServer() ZeroMemory( gmgroup, sizeof(gamegroup)*MAX_GMGROUP); /* nGroup = 2; - strcpy( gmgroup[0].name, ""); + strcpy( gmgroup[0].name, "测试区"); gmgroup[0].num = 2; gmgroup[0].startindex = 0; gmgroup[0].used = 1; - strcpy( gmgroup[1].name, "Դ"); + strcpy( gmgroup[1].name, "测试大区"); gmgroup[1].num = 2; gmgroup[1].startindex = 2; gmgroup[1].used = 1; strcpy( gmsv[0].ipaddr, "127.0.0.1"); - strcpy( gmsv[0].name, "һ"); + strcpy( gmsv[0].name, "测试一线"); strcpy( gmsv[0].port, "7001"); gmsv[0].used = '1'; strcpy( gmsv[1].ipaddr, "114.215.158.113"); - strcpy( gmsv[1].name, "Զ"); + strcpy( gmsv[1].name, "测试二线"); strcpy( gmsv[1].port, "7001"); gmsv[1].used = '1'; strcpy( gmsv[2].ipaddr, "192.168.0.104"); - strcpy( gmsv[2].name, ""); + strcpy( gmsv[2].name, "测试三线"); strcpy( gmsv[2].port, "7001"); gmsv[2].used = '1'; strcpy( gmsv[3].ipaddr, "my.gamma7happy.com"); - strcpy( gmsv[3].name, ""); + strcpy( gmsv[3].name, "测试四线"); strcpy( gmsv[3].port, "7001"); gmsv[3].used = '1'; */ HRESULT hr = ::CoInitialize( NULL ); if ( FAILED( hr ) ) { - MessageBoxA( NULL, "ʼʧ", "ERROR", MB_OK ); + MessageBoxA( NULL, "初始化失败", "ERROR", MB_OK ); return; } ::CoUninitialize(); @@ -252,7 +252,7 @@ void ipAddressAnalyze() DWORD dwCafeKey = GetCafeNumber(); Parameter *param = messHead->param; HKEY hkey; - if( RegOpenKeyEx( HKEY_LOCAL_MACHINE , "Software\\Waei\\ʯʱ\\5.00.000" , 0 , KEY_READ , &hkey ) == ERROR_SUCCESS ){ + if( RegOpenKeyEx( HKEY_LOCAL_MACHINE , "Software\\Waei\\石器时代\\5.00.000" , 0 , KEY_READ , &hkey ) == ERROR_SUCCESS ){ dwCafeKey |= 0x02; RegCloseKey( hkey ); } @@ -266,7 +266,7 @@ void ipAddressAnalyze() nGroup1 = MAX_GMGROUP; param = ReleaseMessHeadParam(); -#ifdef _SHOW_COUNT // WON ADD +#ifdef _SHOW_COUNT // WON ADD 秀服务器流量 if( param && param->lpstrParam){ param = ReleaseMessHeadParam(); } @@ -277,16 +277,16 @@ void ipAddressAnalyze() dwID = atoi( param->lpstrParam); param = ReleaseMessHeadParam(); dwResult = dwID & dwCafeKey; - dwLevel = 1; //ѡ + dwLevel = 1; //可以选 if( dwCafeKey){ - // ֻҪСͿԿϵ + // 只要有小地球就可以看到所有星系 /*if(dwID){ if( 0 == dwResult) - dwLevel = 0; // + dwLevel = 0; //看不到 }*/ }else{ if(dwID){ - dwLevel = 0;// + dwLevel = 0;//看不到 } #ifdef _8_TEST if( dwID == 2 ) @@ -296,12 +296,12 @@ void ipAddressAnalyze() #endif } /* - dwLevel = 1; //ѡ + dwLevel = 1; //可以选 if( 0 == dwResult){ if( dwID > 1) - dwLevel = 2; //ֻܿѡ + dwLevel = 2; //只能看不能选 else if( 1 == dwID) - dwLevel = 0; // + dwLevel = 0; //看不到 } */ } @@ -319,7 +319,7 @@ void ipAddressAnalyze() param = ReleaseMessHeadParam(); gmgroup[nGroup].startindex = indexgm; -#ifdef _SHOW_COUNT // WON ADD +#ifdef _SHOW_COUNT // WON ADD 秀服务器流量 if( param && param->lpstrParam){ param = ReleaseMessHeadParam(); } @@ -336,11 +336,11 @@ void ipAddressAnalyze() if( dwLevel){ char *sss; if( lpstrTemp = strtok_s( param->lpstrParam, ":",&sss)){ - if( szIP[0]){ //ͬһgroupͬһC classķΧ + if( szIP[0]){ //同一group在同一C class的范围 strcpy( gmsv[indexgm].ipaddr, szIP); strcat_s( gmsv[indexgm].ipaddr, "."); strcat_s( gmsv[indexgm].ipaddr, lpstrTemp); - }else //Copy IP address + }else //Copy 完整的IP address strcpy( gmsv[indexgm].ipaddr, lpstrTemp); char *sss; if( lpstrTemp = strtok_s( NULL, ":",&sss)){ @@ -351,7 +351,7 @@ void ipAddressAnalyze() } param = ReleaseMessHeadParam(); } -#ifdef _SHOW_COUNT // WON ADD +#ifdef _SHOW_COUNT // WON ADD 秀服务器流量 if( param && param->lpstrParam){ strcpy( gmsv[indexgm].count, param->lpstrParam); param = ReleaseMessHeadParam(); diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/descrypt.cpp b/石器时代8.5客户端最新源代码/石器源码/wgs/descrypt.cpp index 9398ad9..953da2c 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/descrypt.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/descrypt.cpp @@ -1,4 +1,4 @@ -/* +/* * ecb_crypt, cbc_crypt, des_setparity - DES encryption/decryption routine * * Written by Koichiro Mori (kmori@lsi-j.co.jp) diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/descrypt.h b/石器时代8.5客户端最新源代码/石器源码/wgs/descrypt.h index 5b9ca13..4d617b8 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/descrypt.h +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/descrypt.h @@ -1,4 +1,4 @@ -/* +/* * DES encryption/decryption library interface * * Written by Koichiro Mori (kmori@lsi-j.co.jp) diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/message.cpp b/石器时代8.5客户端最新源代码/石器源码/wgs/message.cpp index fe3f7ed..501d6c6 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/message.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/message.cpp @@ -1,6 +1,6 @@ -/*----------------------------------------------- +/*----------------------------------------------- Message.cpp -- Message format definition - (c) ʤCary Hsu, 1999.8.18 + (c) 许百胜Cary Hsu, 1999.8.18 -----------------------------------------------*/ #include #include "../systeminc/version.h" @@ -24,11 +24,11 @@ Parameter *messNewTailParam; MessNode *messNew; MessNode *messHead; MessNode *messTail; -//ѶϢʽʱʹ -int iFormatLen; //ѶϢʽij,DWORDΪλ +//制作讯息格式时使用 +int iFormatLen; //此讯息格式的长度,以DWORD为单位 int iNumStart=0; char szFormatBuf[1024]; -//ʱʹ +//分析时使用 char szAnalyzeBuf[1024]; int nState; BOOL backslash; diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/message.h b/石器时代8.5客户端最新源代码/石器源码/wgs/message.h index 8d01aa4..f468691 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/message.h +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/message.h @@ -1,6 +1,6 @@ -/*----------------------------------------------- +/*----------------------------------------------- Message.h -- Message format definition - (c) ʤCary Hsu, 1999.8.18 + (c) 许百胜Cary Hsu, 1999.8.18 +----+------------+------------------+ |name|Data len'\0'| Data | |1B | 5 Byte | 0~4090B | @@ -20,7 +20,7 @@ #define M_MESG 'M' #define M_ERRO 'E' // (E Error) or E ID #define M_SKEY 'S' // S 1234567 -#define M_LOAD 'L' // L +#define M_LOAD 'L' // L 人数 #define M_ACKN 'K' // K ID CodingData #define M_DATA 'D' // D ID SaveData #define M_GOTO 'G' // G 202.52.121.208 @@ -81,7 +81,7 @@ //#ifdef _STONDEBUG_ -#define NO_WGS //ʹWGS֤ +#define NO_WGS //不使用WGS认证 //#endif struct Parameter @@ -125,7 +125,7 @@ enum #define FORMAT_ONLYONE 0x03 #ifdef _BACK_VERSION //// -#define SZ_ECB "9304001" //Ʒ +#define SZ_ECB "9304001" //产品序号 #else #ifdef _PK_SERVER #define SZ_ECB "9306001" diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/reproc.cpp b/石器时代8.5客户端最新源代码/石器源码/wgs/reproc.cpp index 6040880..49a3ad3 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/reproc.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/reproc.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include "../systeminc/version.h" @@ -18,7 +18,7 @@ void CloseParentProcess() do{ if( pe32.th32ProcessID == dwPID){ if( hParentProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, pe32.th32ParentProcessID)){ -// MessageBoxNew( NULL, "ҵ", "ѰҸʽ", MB_OK); +// MessageBoxNew( NULL, "梑善賸", "扆梑虜最宒", MB_OK); TerminateProcess( hParentProcess, 0); CloseHandle( hParentProcess); } diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/tea.cpp b/石器时代8.5客户端最新源代码/石器源码/wgs/tea.cpp index b0e069b..aedd3c7 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/tea.cpp +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/tea.cpp @@ -1,11 +1,11 @@ -#include +#include #include #include #include "tea.h" #include "../systeminc/VMProtectSDK.h" unsigned long DELTA=0x9e3779b9; #define MX (z>>5^y<<2) + (y>>3^z<<4)^(sum^y) + (k[p&3^e]^z); -long TEA(long* v, long n, long* k) +long TEA加密(long* v, long n, long* k) { #ifdef _VMP_ VMProtectBegin("teajiami"); @@ -15,7 +15,7 @@ long TEA y=v[0]; sum=0; long p, q; - /* ܹ */ + /* 加密过程 */ q = 6 + 52/n; while (q-- > 0) { @@ -32,7 +32,7 @@ long TEA return 0 ; } -long TEA(long* v, long n, long* k) +long TEA解密(long* v, long n, long* k) { unsigned long z,y,sum,e; z=v[n-1]; diff --git a/石器时代8.5客户端最新源代码/石器源码/wgs/tea.h b/石器时代8.5客户端最新源代码/石器源码/wgs/tea.h index 99abba3..b7e5813 100644 --- a/石器时代8.5客户端最新源代码/石器源码/wgs/tea.h +++ b/石器时代8.5客户端最新源代码/石器源码/wgs/tea.h @@ -1,2 +1,2 @@ -long TEA(long* v, long n, long* k); -long TEA(long* v, long n, long* k); +long TEA樓躇(long* v, long n, long* k); +long TEA賤躇(long* v, long n, long* k); diff --git a/石器时代8.5客户端最新源代码/石器源码/石器源码.vcxproj b/石器时代8.5客户端最新源代码/石器源码/石器源码.vcxproj index aa6a843..5a5f38f 100644 --- a/石器时代8.5客户端最新源代码/石器源码/石器源码.vcxproj +++ b/石器时代8.5客户端最新源代码/石器源码/石器源码.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -226,25 +226,26 @@ {7BCA4759-A8C8-4746-ABD8-C2B4C3C2DEFE} Win32Proj 石器源码 + 10.0.17763.0 Application true MultiByte - v120 + v141 Application true MultiByte - v100 + v141 Application true MultiByte - v100 + v141 Application @@ -257,21 +258,21 @@ false true MultiByte - v100 + v141 Application false true MultiByte - v100 + v141 Application false true MultiByte - v100 + v141 Application @@ -281,7 +282,7 @@ v120_xp - v120 + v141 @@ -322,7 +323,7 @@ .\openssl;.\mylua\lua;.\curl;$(IncludePath) .\mylua\lua;.\sdk;$(LibraryPath) sa25 - F:\石器时代\7-sa\ + D:\stoneAge\client true diff --git a/石器时代8.5客户端最新源代码/石器源码/石器源码.vcxproj.user b/石器时代8.5客户端最新源代码/石器源码/石器源码.vcxproj.user index 9681f02..b905df4 100644 --- a/石器时代8.5客户端最新源代码/石器源码/石器源码.vcxproj.user +++ b/石器时代8.5客户端最新源代码/石器源码/石器源码.vcxproj.user @@ -24,13 +24,13 @@ WindowsLocalDebugger - F:\7-sa\sa25.exe + D:\stoneAge\client\sa25.exe G:\台式数据\石器TW\saex.exe - F:\7-sa\ + D:\stoneAge\client WindowsLocalDebugger OpenClient