3540 lines
120 KiB
C++
3540 lines
120 KiB
C++
![]() |
/*#ifdef __NEW_PROTOCOL
|
|||
|
|
|||
|
/* output by ./lsgen.perl 0.41 ( 1998 May)
|
|||
|
* made Mon Jun 12 11:17:33 2000
|
|||
|
* user kawata
|
|||
|
* host unicorn.lan.titan.co.jp
|
|||
|
* file /opt/kawata/sa/bin/output/lssproto_cli.c
|
|||
|
* util output/lssproto_util.c , output/lssproto_util.h
|
|||
|
* src /opt/kawata/sa/bin/../doc/lssproto.html
|
|||
|
*//*
|
|||
|
#define _LSSPROTOCLI_C_
|
|||
|
#include <windows.h>
|
|||
|
#include "../systeminc/version.h"
|
|||
|
#include "../systeminc/lssproto_cli.h"
|
|||
|
|
|||
|
void lssproto_SetClientLogFiles( char *r , char *w )
|
|||
|
{
|
|||
|
lssproto_strcpysafe( lssproto_readlogfilename , r , sizeof( lssproto_readlogfilename ) );
|
|||
|
lssproto_strcpysafe( lssproto_writelogfilename , w , sizeof( lssproto_writelogfilename ) );
|
|||
|
}
|
|||
|
int lssproto_InitClient( int (*writefunc)(int,char*,int) ,int bufsiz ,int fd)
|
|||
|
{
|
|||
|
int i;
|
|||
|
if( (void*)writefunc == NULL){lssproto.write_func = lssproto_default_write_wrap;} else {lssproto.write_func = writefunc;}
|
|||
|
lssproto_AllocateCommonWork(bufsiz);
|
|||
|
lssproto_stringwrapper = (char**)MALLOC(sizeof(char*) * MAXLSRPCARGS);
|
|||
|
if(lssproto_stringwrapper ==NULL)return -1;
|
|||
|
memset( lssproto_stringwrapper , 0, sizeof(char*)*MAXLSRPCARGS);
|
|||
|
for(i=0;i<MAXLSRPCARGS;i++){
|
|||
|
lssproto_stringwrapper[i] = (char*)MALLOC( bufsiz );
|
|||
|
if( lssproto_stringwrapper[i] == NULL){
|
|||
|
for(i=0;i<MAXLSRPCARGS;i++){FREE( lssproto_stringwrapper[i]);return -1;}
|
|||
|
}
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
void lssproto_CleanupClient( void )
|
|||
|
{
|
|||
|
int i;
|
|||
|
// Nuke start
|
|||
|
/*{
|
|||
|
int i;
|
|||
|
if (NJT_dummy) FREE(NJT_dummy);
|
|||
|
for (i=0;i<NJT_MAX;i++) if (NJT[i]) FREE(NJT[i]);
|
|||
|
}*/
|
|||
|
/*
|
|||
|
// Nuke end
|
|||
|
FREE( lssproto.work );
|
|||
|
FREE( lssproto.arraywork);
|
|||
|
FREE( lssproto.escapework );
|
|||
|
FREE( lssproto.val_str);
|
|||
|
FREE( lssproto.token_list );
|
|||
|
for(i=0;i<MAXLSRPCARGS;i++){FREE( lssproto_stringwrapper[i]);}
|
|||
|
FREE( lssproto_stringwrapper );
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
#else
|
|||
|
*/
|
|||
|
|
|||
|
/* output by ./lsgen.perl 0.41 ( 1998 May)
|
|||
|
* made Mon Jun 12 11:17:33 2000
|
|||
|
* user kawata
|
|||
|
* host unicorn.lan.titan.co.jp
|
|||
|
* file /opt/kawata/sa/bin/output/lssproto_cli.c
|
|||
|
* util output/lssproto_util.c , output/lssproto_util.h
|
|||
|
* src /opt/kawata/sa/bin/../doc/lssproto.html
|
|||
|
*/
|
|||
|
#define _LSSPROTOCLI_C_
|
|||
|
#include <windows.h>
|
|||
|
#include "../systeminc/version.h"
|
|||
|
#include "../systeminc/lssproto_cli.h"
|
|||
|
|
|||
|
// nuke: TNJ: ttom & nuke & jongan : prevent packet cheat
|
|||
|
//extern char *NJT_dummy;
|
|||
|
//extern char *NJT[NJT_MAX];
|
|||
|
|
|||
|
/*#define JNT \
|
|||
|
((lssproto.work[0]+lssproto.work[1]+lssproto.work[2]+lssproto.work[3]+ \
|
|||
|
lssproto.work[4]+lssproto.work[5]+lssproto.work[6]+lssproto.work[7])%NJT_MAX)
|
|||
|
|
|||
|
#define TNJ { if(NJT[JNT]) lssproto.work=NJT[JNT]; }
|
|||
|
*/
|
|||
|
|
|||
|
|
|||
|
//cary
|
|||
|
void old_lssproto_FC_send( int fd )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "FC" );
|
|||
|
lssproto_strcatsafe( lssproto.work , "" ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
//end
|
|||
|
|
|||
|
|
|||
|
/*
|
|||
|
166 : <LI><a name="CS_W"><font color=red>clienttoserver W( int x, int y, string direction);<br></font></a>
|
|||
|
167 : (Walk)<EFBFBD><EFBFBD>?????????????????????<EFBFBD><EFBFBD><EFBFBD>e??????<EFBFBD><EFBFBD>??
|
|||
|
168 : ??<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>????????????<EFBFBD><EFBFBD>?????????????
|
|||
|
169 : ???<EFBFBD>R<EFBFBD>e??????????????????<EFBFBD>u?<EFBFBD>u???????<EFBFBD>q<EFBFBD>n?
|
|||
|
170 : ??????????W???????????????????????<EFBFBD><EFBFBD>?
|
|||
|
171 : <EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???????????<EFBFBD>\???????????????
|
|||
|
172 : ??????????
|
|||
|
173 : ?????????<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>???MC??<EFBFBD><EFBFBD>?????????????MC
|
|||
|
174 : ????????????????????????????????????
|
|||
|
175 : <EFBFBD><EFBFBD>????<EFBFBD>֢t????<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????????
|
|||
|
176 :
|
|||
|
177 :
|
|||
|
178 :
|
|||
|
179 : <br><br>
|
|||
|
180 : <dl>
|
|||
|
181 : <dt>int x,y
|
|||
|
182 : <dd><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????????????????<EFBFBD><EFBFBD>?
|
|||
|
183 :
|
|||
|
184 : <dt>string direction
|
|||
|
185 : <dd>???<EFBFBD><EFBFBD>? a,b,c,d,e,f,g,h?<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>????<EFBFBD>h??
|
|||
|
186 : a?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(dx,dy)=(0,-1)???????? h??<EFBFBD><EFBFBD>(-1,-1)
|
|||
|
187 : A,B,C,D,E,F,G,H ???<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?
|
|||
|
188 : ?????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>?? "ccae"???
|
|||
|
189 : <EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?????????"G"??<EFBFBD><EFBFBD>
|
|||
|
190 : ????????????1<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>??<EFBFBD>n???????
|
|||
|
191 : ?<EFBFBD><EFBFBD>????????????
|
|||
|
192 :
|
|||
|
193 : </dl>
|
|||
|
194 : <br>
|
|||
|
195 : <br>
|
|||
|
196 : <hr>
|
|||
|
197 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_W_send( int fd,int x,int y,char* direction )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "W" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( direction ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
198 : <LI><a name="CS_W2"><font color=red>clienttoserver w( int x, int y, string direction);<br></font></a>
|
|||
|
199 : ?<EFBFBD>o<EFBFBD><EFBFBD>????<EFBFBD>u?<EFBFBD>i?????????????????????<EFBFBD>h???<EFBFBD><EFBFBD>??
|
|||
|
200 : ??????<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>??MC?????????OK????<EFBFBD><EFBFBD>??
|
|||
|
201 : ??MC?<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>???MC????????????<EFBFBD><EFBFBD>?????w?????????
|
|||
|
202 : ?????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>?????????????????? <a href="#CS_EV">CHAR_EVENT_ALTERRATIVE</a>
|
|||
|
203 : ???<EFBFBD><EFBFBD>?????????????????<EFBFBD><EFBFBD>??????<EFBFBD>u<EFBFBD><EFBFBD>??????<EFBFBD>G????????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>???
|
|||
|
204 : <br>
|
|||
|
205 : <br>
|
|||
|
206 : <hr>
|
|||
|
207 : <br>
|
|||
|
208 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_w_send( int fd,int x,int y,char* direction )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "w" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( direction ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
212 : <LI><a name="CS_EV"><font color=red>clienttoserver EV( int event,int seqno,int x, int y, int dir);<br></font></a>
|
|||
|
213 : ??????????????????<EFBFBD>_????<EFBFBD>D<EFBFBD><EFBFBD>???
|
|||
|
214 : ?????<EFBFBD>e<EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD>?????
|
|||
|
215 :
|
|||
|
216 : <br><br>
|
|||
|
217 : <dl>
|
|||
|
218 : <dt>int event
|
|||
|
219 : <dd>?????<EFBFBD><EFBFBD>??char_base.h????????<EFBFBD>e???????<br>
|
|||
|
220 : <pre>
|
|||
|
221 : typedef enum
|
|||
|
222 : {
|
|||
|
223 : CHAR_EVENT_NONE, ?????<EFBFBD>D<EFBFBD><EFBFBD>???
|
|||
|
224 : CHAR_EVENT_NPC, ?<EFBFBD>eNPC???
|
|||
|
225 : CHAR_EVENT_ENEMY, ?<EFBFBD>e<EFBFBD><EFBFBD>??????????
|
|||
|
226 : CHAR_EVENT_WARP, ???????
|
|||
|
227 : CHAR_EVENT_ALTERRATIVE, ??<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>????????????????<EFBFBD><EFBFBD>?????????
|
|||
|
228 : CHAR_EVENTNUM,
|
|||
|
229 : }CHAR_EVENT;
|
|||
|
230 :
|
|||
|
231 : </pre>
|
|||
|
232 : CHAR_EVENT_NPC?<EFBFBD><EFBFBD>???<EFBFBD>O??NPC??????????????????
|
|||
|
233 : ???????EV????????????<EFBFBD>R<EFBFBD>e??<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD>?????????<br>
|
|||
|
234 : <dt>int seqno
|
|||
|
235 : <dd>??????????No?<EFBFBD>e?????????????<EFBFBD>T??????????????
|
|||
|
236 : ???????????????
|
|||
|
237 : ?????EV????<EFBFBD>n??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????
|
|||
|
238 : <dt>int x,y
|
|||
|
239 : <dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD>t
|
|||
|
240 : <dt>int dir
|
|||
|
241 : <dd>??????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD>t????????????<EFBFBD><EFBFBD>??<EFBFBD>S??<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>i?<EFBFBD><EFBFBD>????-1?
|
|||
|
242 : </dl>
|
|||
|
243 : <br>
|
|||
|
244 : <br>
|
|||
|
245 : <hr>
|
|||
|
246 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_EV_send( int fd,int event,int seqno,int x,int y,int dir )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "EV" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( event ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( seqno ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( dir ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
261 : <LI><a name="CS_EN"><font color=red>clienttoserver EN( int x, int y );<br></font></a>
|
|||
|
262 : ?????????<EFBFBD>e?????<EFBFBD><EFBFBD>?????????????<EFBFBD><EFBFBD>???
|
|||
|
263 : ??<EFBFBD><EFBFBD>????????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??????????
|
|||
|
264 : <br><br>
|
|||
|
265 : <dl>
|
|||
|
266 : <dt>int x,y
|
|||
|
267 : <dd>??????????????????????<EFBFBD><EFBFBD>?
|
|||
|
268 : </dl>
|
|||
|
269 : <br>
|
|||
|
270 : <br>
|
|||
|
271 : <hr>
|
|||
|
272 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_EN_send( int fd,int x,int y )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "EN" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
273 : <LI><a name="CS_DU"><font color=red>clienttoserver DU( int x, int y);<br></font></a>
|
|||
|
274 : ????????????<EFBFBD>i<EFBFBD><EFBFBD>????????????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???
|
|||
|
275 : ??<EFBFBD><EFBFBD>????????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??????????
|
|||
|
276 : <br><br>
|
|||
|
277 : <dl>
|
|||
|
278 : <dt>int x,y
|
|||
|
279 : <dd>??????????????????????<EFBFBD><EFBFBD>?
|
|||
|
280 : </dl>
|
|||
|
281 : <br>
|
|||
|
282 : <br>
|
|||
|
283 : <hr>
|
|||
|
284 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_DU_send( int fd,int x,int y )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "DU" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
298 : <LI><a name="CS_EO"><font color=red>clienttoserver EO( int dummy );<br></font></a>
|
|||
|
299 : ????????????????<EFBFBD><EFBFBD>?????????
|
|||
|
300 : <dl>
|
|||
|
301 : <dt>int dummy
|
|||
|
302 : <dd>???????????????
|
|||
|
303 : </dL>
|
|||
|
304 : <br>
|
|||
|
305 : <br>
|
|||
|
306 : <hr>
|
|||
|
307 : <br>
|
|||
|
308 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_EO_send( int fd,int dummy )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "EO" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( dummy ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
309 : <LI><a name="CS_BU"><font color=red>clienttoserver BU( int dummy );<br></font></a>
|
|||
|
310 : ???????????????<EFBFBD>e???<EFBFBD><EFBFBD>?????
|
|||
|
311 : <dl>
|
|||
|
312 : <dt>int dummy
|
|||
|
313 : <dd>???????????????
|
|||
|
314 : </dL>
|
|||
|
315 : <br>
|
|||
|
316 : <br>
|
|||
|
317 : <hr>
|
|||
|
318 : <br>
|
|||
|
319 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_BU_send( int fd,int dummy )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "BU" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( dummy ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
320 : <LI><a name="CS_JB"><font color=red>clienttoserver JB( int x, int y );<br></font></a>
|
|||
|
321 : <EFBFBD>\?<EFBFBD>P<EFBFBD>f?<EFBFBD>ӡP???<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?? EN ???<EFBFBD><EFBFBD>??
|
|||
|
322 : <dl>
|
|||
|
323 : <dt>int x, int y;
|
|||
|
324 : <dd>???????????<EFBFBD><EFBFBD>?
|
|||
|
325 : </dL>
|
|||
|
326 : <br>
|
|||
|
327 : <br>
|
|||
|
328 : <hr>
|
|||
|
329 : <br>
|
|||
|
330 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_JB_send( int fd,int x,int y )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "JB" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
331 : <LI><a name="CS_LB"><font color=red>clienttoserver LB( int x, int y );<br></font></a>
|
|||
|
332 : <EFBFBD>\?<EFBFBD>P<EFBFBD>f??<EFBFBD>P???<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?? EN ???<EFBFBD><EFBFBD>??
|
|||
|
333 : <dl>
|
|||
|
334 : <dt>int x, int y;
|
|||
|
335 : <dd>???????????<EFBFBD><EFBFBD>?
|
|||
|
336 : </dL>
|
|||
|
337 : <br>
|
|||
|
338 : <br>
|
|||
|
339 : <hr>
|
|||
|
340 : <br>
|
|||
|
341 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_LB_send( int fd,int x,int y )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "LB" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
354 : <LI><a name="CS_B"><font color=red>clienttoserver B( string command );<br></font></a>
|
|||
|
355 : ??????????????<EFBFBD>P<EFBFBD>f??????<EFBFBD><EFBFBD><EFBFBD>e???????<EFBFBD><EFBFBD><EFBFBD>k????????<EFBFBD><EFBFBD><EFBFBD>e????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????<EFBFBD>D???<EFBFBD>u<EFBFBD>l?<EFBFBD><EFBFBD><EFBFBD>e??????<EFBFBD>D???<EFBFBD>u<EFBFBD>l??????????<EFBFBD>u<EFBFBD>l?<EFBFBD><EFBFBD>??<br><br>
|
|||
|
356 : <ul>
|
|||
|
357 : <li>H|?<EFBFBD><EFBFBD><EFBFBD>k?(%X)(0?19)<br><EFBFBD>G<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?<EFBFBD>k??<EFBFBD><EFBFBD><EFBFBD>e<br><br>
|
|||
|
358 : <li>E<br><EFBFBD>`???<br><br>
|
|||
|
359 : <li>G<br><EFBFBD>\??<br><br>
|
|||
|
360 : <li>N<br>??????<br><br>
|
|||
|
361 : <li>T|?<EFBFBD><EFBFBD><EFBFBD>k?(%X)<br><EFBFBD><EFBFBD>??<br><br>
|
|||
|
362 : <li>J|<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>k?(%X)|?<EFBFBD><EFBFBD><EFBFBD>k?(%X)?
|
|||
|
363 : <br><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>k?????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD>k??<EFBFBD><EFBFBD>??
|
|||
|
364 : ???(0?5)?<br><br>
|
|||
|
365 : <li>W|????<EFBFBD>k?(%X)|?<EFBFBD><EFBFBD><EFBFBD>k?(%X)<br>
|
|||
|
366 : ?????<EFBFBD><EFBFBD>????????????<EFBFBD>k?????????<EFBFBD>k??
|
|||
|
367 : ???(0?7)<br><br>
|
|||
|
368 : <li>S|????<EFBFBD>k?(%d)?<br>???<EFBFBD><EFBFBD>?????????????<br><br>
|
|||
|
369 : <li>I|?????<EFBFBD>k?(%X)|?<EFBFBD><EFBFBD><EFBFBD>k?(%X)?
|
|||
|
370 : <br>?????<EFBFBD><EFBFBD>??????????<EFBFBD>k???????????????<EFBFBD>k??<EFBFBD><EFBFBD>??
|
|||
|
371 : ???(5?19)?<br><br>
|
|||
|
372 : </ul>
|
|||
|
373 : <br>
|
|||
|
374 : <br>
|
|||
|
375 : <br>
|
|||
|
376 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_B_send( int fd,char* command )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "B" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( command ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
542 : <LI><a name="SKD"><font color=red>clienttoserver SKD( int dir , int index );<br></font></a>
|
|||
|
543 : (SKillDir)
|
|||
|
544 : <EFBFBD><EFBFBD><EFBFBD>e??<EFBFBD><EFBFBD>??????????
|
|||
|
545 : <br><br>
|
|||
|
546 : <dl>
|
|||
|
547 : <dt>int dir
|
|||
|
548 : <dd>????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
|||
|
549 : <dt>int index
|
|||
|
550 : <dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD>??index.
|
|||
|
551 : </dl>
|
|||
|
552 : ???<EFBFBD><EFBFBD>????<EFBFBD>G??????????????????<EFBFBD><EFBFBD>????
|
|||
|
553 : <pre>
|
|||
|
554 :
|
|||
|
555 : ?????????????
|
|||
|
556 : rpcgen C???????????????????<EFBFBD>G??????
|
|||
|
557 : ?????????enum
|
|||
|
558 :
|
|||
|
559 : ???<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD>?????????<EFBFBD>s???????
|
|||
|
560 : typedef enum
|
|||
|
561 : {
|
|||
|
562 : SKILL_FIRE,
|
|||
|
563 : SKILL_MAGICIAN, ?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?
|
|||
|
564 : SKILL_PRIEST, <EFBFBD><EFBFBD>?
|
|||
|
565 : SKILL_ALOTOFTHINGS, ????
|
|||
|
566 : ??<EFBFBD><EFBFBD>??
|
|||
|
567 : 7(?<EFBFBD><EFBFBD>) + 8 (?? ) + 4*(???????)
|
|||
|
568 : SKILL_AVOIDRATEUP, ???????? 3% ?????
|
|||
|
569 : SKILL_DETERMINEITEM, ????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
570 :
|
|||
|
571 : SKILL_DETERMINOTHERS, <EFBFBD>J??
|
|||
|
572 : 0 ??<EFBFBD>R<EFBFBD>e???(<EFBFBD><EFBFBD>?)
|
|||
|
573 : 1 <EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???????????<EFBFBD>V??
|
|||
|
574 : ???????<EFBFBD>V???????<EFBFBD><EFBFBD>
|
|||
|
575 : 2 ?????
|
|||
|
576 : 3 NPC
|
|||
|
577 : 4 ????
|
|||
|
578 : 5 <EFBFBD><EFBFBD>
|
|||
|
579 :
|
|||
|
580 : SKILL_FIRECUT, ??? 5 %
|
|||
|
581 : SKILL_THUNDERCUT, ???? 5 %
|
|||
|
582 : SKILL_ICECUT, <EFBFBD><EFBFBD>?? 5 %
|
|||
|
583 : SKILL_MERCHANT, <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ??20% ??100% ?? 5%?????
|
|||
|
584 : SKILL_HEALER, <EFBFBD><EFBFBD>?
|
|||
|
585 : ?????????<EFBFBD>k?<EFBFBD><EFBFBD>?????????
|
|||
|
586 : 1 <EFBFBD><EFBFBD>
|
|||
|
587 : 2 ???
|
|||
|
588 : 3 <EFBFBD><EFBFBD>?
|
|||
|
589 : 4 <EFBFBD><EFBFBD>?
|
|||
|
590 : 5 ??
|
|||
|
591 : 6 ??
|
|||
|
592 : 7 HP 1 ???
|
|||
|
593 : 8 HP ???????
|
|||
|
594 : ????<EFBFBD>u?
|
|||
|
595 : <EFBFBD><EFBFBD>????????????
|
|||
|
596 : 0 0
|
|||
|
597 : 1 50
|
|||
|
598 : 2 57
|
|||
|
599 : 3 64
|
|||
|
600 : 4 71
|
|||
|
601 : 5 78
|
|||
|
602 : 6 85
|
|||
|
603 : 7 92
|
|||
|
604 : 8 100
|
|||
|
605 : ?????????( 100 ??? )??<EFBFBD>k??? 1 10 ????
|
|||
|
606 : ??? + ?????
|
|||
|
607 : 0 0
|
|||
|
608 : 1 1
|
|||
|
609 : 2 2
|
|||
|
610 : 3 3
|
|||
|
611 : 4 4
|
|||
|
612 : 5 5
|
|||
|
613 : 6 6
|
|||
|
614 : 7 7
|
|||
|
615 : 8 8
|
|||
|
616 :
|
|||
|
617 : SKILL_FIST, <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>
|
|||
|
618 : SKILL_SWORD, ??<EFBFBD><EFBFBD>
|
|||
|
619 : SKILL_AXE, ??<EFBFBD><EFBFBD>
|
|||
|
620 : SKILL_SPEAR, ??<EFBFBD><EFBFBD>
|
|||
|
621 : SKILL_BOW, ??<EFBFBD><EFBFBD>
|
|||
|
622 : SKILL_CANE, <EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>
|
|||
|
623 :
|
|||
|
624 : SKILL_LARGEVOICE, <EFBFBD><EFBFBD>??<EFBFBD><EFBFBD> Lv 8
|
|||
|
625 : <EFBFBD><EFBFBD>?????????? TK ?
|
|||
|
626 : SKILL_NUM
|
|||
|
627 : }SKILL_ID;
|
|||
|
628 : </pre>
|
|||
|
629 : <br>
|
|||
|
630 : <hr>
|
|||
|
631 : <br>
|
|||
|
632 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_SKD_send( int fd,int dir,int index )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "SKD" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( dir ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( index ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
633 : <li><a name="CS_ID"><font color=red>clienttoserver ID( int x, int y, int haveitemindex,int toindex);<br></font></a>
|
|||
|
634 : (useItemDir)?????<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>???????????????<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>??
|
|||
|
635 : ??????<EFBFBD><EFBFBD>?????
|
|||
|
636 :
|
|||
|
637 :
|
|||
|
638 : <dl>
|
|||
|
639 : <dt>int x,y
|
|||
|
640 : <dd> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?x,y ?<EFBFBD><EFBFBD>
|
|||
|
641 : <dt>int haveitemindex
|
|||
|
642 : <dd> ???????<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>?????
|
|||
|
643 : <dt>int toindex
|
|||
|
644 : <dd> <EFBFBD>M??????<EFBFBD><EFBFBD>???????????????????index????????????????
|
|||
|
645 : <pre>
|
|||
|
646 : <EFBFBD><EFBFBD><EFBFBD><EFBFBD> = 0
|
|||
|
647 : ??? = 1 ?5
|
|||
|
648 : ?? = 6 ?10 ?S N ?0?4?<EFBFBD>n??<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>????????
|
|||
|
649 : </pre>
|
|||
|
650 : <EFBFBD>n<EFBFBD><EFBFBD>?<EFBFBD>u????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>??-1??<EFBFBD><EFBFBD>???<br>
|
|||
|
651 : <br>
|
|||
|
652 : </dl>
|
|||
|
653 : <br>
|
|||
|
654 : <br>
|
|||
|
655 : <hr>
|
|||
|
656 : <br>
|
|||
|
657 :
|
|||
|
658 :
|
|||
|
659 :
|
|||
|
660 :
|
|||
|
661 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_ID_send( int fd,int x,int y,int haveitemindex,int toindex )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "ID" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( haveitemindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( toindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
662 : <LI><a name="PI"><font color=red>clienttoserver PI( int x, int y,int dir );<br></font></a>
|
|||
|
663 : (PickupItem)
|
|||
|
664 : ?????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???<EFBFBD>K??????<EFBFBD><EFBFBD>??9??????<br><br>
|
|||
|
665 : <dl>
|
|||
|
666 : <dt>int x,y
|
|||
|
667 : <dd> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?x,y ?<EFBFBD><EFBFBD>
|
|||
|
668 : <dt>int dir
|
|||
|
669 : <dd><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>???<EFBFBD>K????? ????<EFBFBD>K??????
|
|||
|
670 : </dl>
|
|||
|
671 : <br>
|
|||
|
672 : <hr>
|
|||
|
673 : <br>
|
|||
|
674 :
|
|||
|
675 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_PI_send( int fd,int x,int y,int dir )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "PI" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( dir ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
676 : <LI><a name="DI"><font color=red>clienttoserver DI( int x, int y, int itemindex);<br></font></a>
|
|||
|
677 : (DropItem)
|
|||
|
678 : ?????<EFBFBD>t??<EFBFBD>t???????????<EFBFBD>t????<EFBFBD><EFBFBD>???<EFBFBD>t?
|
|||
|
679 : <EFBFBD><EFBFBD><EFBFBD>e????itemindex??????<EFBFBD>t??????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>q?<EFBFBD>t??
|
|||
|
680 : <br><br>
|
|||
|
681 :
|
|||
|
682 : <dl>
|
|||
|
683 : <dt>int x,y
|
|||
|
684 : <dd> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?x,y ?<EFBFBD><EFBFBD>
|
|||
|
685 : <dt>int itemindex
|
|||
|
686 : <dd><EFBFBD>t??????????????
|
|||
|
687 : </dl>
|
|||
|
688 : <br>
|
|||
|
689 : <hr>
|
|||
|
690 : <br>
|
|||
|
691 :
|
|||
|
692 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_DI_send( int fd,int x,int y,int itemindex )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "DI" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( itemindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
693 : <LI><a name="DG"><font color=red>clienttoserver DG( int x, int y, int amount );<br></font></a>
|
|||
|
694 : (DropGold)
|
|||
|
695 : ???<EFBFBD>t??SA?????<EFBFBD>t??<EFBFBD><EFBFBD>?<EFBFBD>D??<br><br>
|
|||
|
696 : <dl>
|
|||
|
697 : <dt>int x,y
|
|||
|
698 : <dd> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?x,y ?<EFBFBD><EFBFBD>
|
|||
|
699 : <dt>int amount
|
|||
|
700 : <dd><EFBFBD>t??????
|
|||
|
701 : </dl>
|
|||
|
702 : <br>
|
|||
|
703 : <hr>
|
|||
|
704 : <br>
|
|||
|
705 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_DG_send( int fd,int x,int y,int amount )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "DG" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( amount ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
706 : <LI><a name="DP"><font color=red>clienttoserver DP( int x, int y,int petindex);<br></font></a>
|
|||
|
707 : (DropPet)
|
|||
|
708 : ????<EFBFBD>t??<EFBFBD><EFBFBD>???<EFBFBD>t?<EFBFBD><EFBFBD><EFBFBD>e????
|
|||
|
709 : petindex??????<EFBFBD>t??????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>q?<EFBFBD>t??
|
|||
|
710 : <br><br>
|
|||
|
711 :
|
|||
|
712 : <dl>
|
|||
|
713 : <dt>int x,y
|
|||
|
714 : <dd> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?x,y ?<EFBFBD><EFBFBD>
|
|||
|
715 : <dt>int petindex
|
|||
|
716 : <dd><EFBFBD>t???????index????????<EFBFBD>k????????????
|
|||
|
717 : </dl>
|
|||
|
718 : <br>
|
|||
|
719 : <hr>
|
|||
|
720 : <br>
|
|||
|
721 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_DP_send( int fd,int x,int y,int petindex )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "DP" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( petindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
741 : <LI><a name="MI"><font color=red>clienttoserver MI( int fromindex , int toindex);<br></font></a>
|
|||
|
742 : (MoveItem)<br>
|
|||
|
743 : ??????<EFBFBD>h/?<EFBFBD><EFBFBD>/?<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>????????
|
|||
|
744 : ?<EFBFBD>h?<EFBFBD><EFBFBD>??????<br><br>
|
|||
|
745 : <dl>
|
|||
|
746 : <dt>int fromindex
|
|||
|
747 : <dd>?<EFBFBD>h?????????????
|
|||
|
748 : <dt>int toindex
|
|||
|
749 : <dd>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????????
|
|||
|
750 : </dl>
|
|||
|
751 : ?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????<EFBFBD>G??
|
|||
|
752 : <ul>
|
|||
|
753 : <li>0 ???<EFBFBD><EFBFBD>???( <EFBFBD>d )
|
|||
|
754 : <li>1 ???<EFBFBD><EFBFBD>???( <EFBFBD>l )
|
|||
|
755 : <li>2 ????????<EFBFBD><EFBFBD>???(<EFBFBD><EFBFBD>)
|
|||
|
756 : <li>3 ?<EFBFBD>ߦ<EFBFBD>??<EFBFBD><EFBFBD>???1
|
|||
|
757 : <li>4 ?<EFBFBD>ߦ<EFBFBD>??<EFBFBD><EFBFBD>???2
|
|||
|
758 : <li>???<EFBFBD><EFBFBD>? ?????
|
|||
|
759 : </ul>
|
|||
|
760 : <br>
|
|||
|
761 : <hr>
|
|||
|
762 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_MI_send( int fd,int fromindex,int toindex )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "MI" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( fromindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( toindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
788 : <LI><a name="CS_MSG"><font color=red>clienttoserver MSG( int index , string message , int color );<br></font></a>
|
|||
|
789 : (MeSsaGe)
|
|||
|
790 : ?????????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>?index?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????
|
|||
|
791 : ???????????<br><br>
|
|||
|
792 : <dl>
|
|||
|
793 : <dt>int index
|
|||
|
794 : <dd>???????????<EFBFBD><EFBFBD>???????
|
|||
|
795 : <dt>string message
|
|||
|
796 : <dd>?<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>????????EUC???????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>
|
|||
|
797 : ???????????????????????<EFBFBD><EFBFBD>?????
|
|||
|
798 : <dt>int color
|
|||
|
799 : <dd>??????<EFBFBD><EFBFBD>?
|
|||
|
800 : </dl>
|
|||
|
801 : <br>
|
|||
|
802 : <br>
|
|||
|
803 : <hr>
|
|||
|
804 : <br>
|
|||
|
805 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_MSG_send( int fd,int index,char* message,int color )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "MSG" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( index ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( message ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( color ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
830 : <LI><a name="CS_PMSG"><font color=red>clienttoserver PMSG( int index, int petindex, int itemindex, string message , int color );<br></font></a>
|
|||
|
831 : (PetMeSsaGe)
|
|||
|
832 : ?????????<EFBFBD><EFBFBD>????????????<EFBFBD><EFBFBD>?index?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????
|
|||
|
833 : ?????????????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>???<br><br>
|
|||
|
834 : <dl>
|
|||
|
835 : <dt>int index
|
|||
|
836 : <dd>???????????<EFBFBD><EFBFBD>???????
|
|||
|
837 : <dt>int petindex
|
|||
|
838 : <dd>?<EFBFBD>k???????<EFBFBD><EFBFBD>???
|
|||
|
839 : <dt>int itemindex
|
|||
|
840 : <dd>?<EFBFBD>k????????<EFBFBD><EFBFBD>????
|
|||
|
841 : <dt>string message
|
|||
|
842 : <dd>?<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>????????EUC???????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>
|
|||
|
843 : ???????????????????????<EFBFBD><EFBFBD>?????
|
|||
|
844 : <dt>int color
|
|||
|
845 : <dd>??????<EFBFBD><EFBFBD>?
|
|||
|
846 : </dl>
|
|||
|
847 : <br>
|
|||
|
848 : <br>
|
|||
|
849 : <hr>
|
|||
|
850 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_PMSG_send( int fd,int index,int petindex,int itemindex,char* message,int color )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "PMSG" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( index ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( petindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( itemindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( message ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( color ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
|
|||
|
void old_lssproto_AB_send( int fd )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "AB" );
|
|||
|
lssproto_strcatsafe( lssproto.work , "" ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
921 : <LI><a name="DAB"><font color=red>clienttoserver DAB( int index );</font></a><br>
|
|||
|
922 : (DeleteAddressBookitem)????????????????????
|
|||
|
923 : ??????????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???????????AB??
|
|||
|
924 : ????<EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????????????<EFBFBD><EFBFBD>?
|
|||
|
925 : ??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?????
|
|||
|
926 : <dl>
|
|||
|
927 : <dt>int index
|
|||
|
928 : <dd><EFBFBD><EFBFBD>??????index.??????0????
|
|||
|
929 : </dl>
|
|||
|
930 : ???????????????<EFBFBD>{?<EFBFBD><EFBFBD>??????????
|
|||
|
931 : <br>
|
|||
|
932 : <hr>
|
|||
|
933 : <br>
|
|||
|
934 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_DAB_send( int fd,int index )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "DAB" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( index ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
935 : <LI><a name="AAB"><font color=red>clienttoserver AAB( int x, int y );</font></a><br>
|
|||
|
936 : (AddAddressBookitem)
|
|||
|
937 : ??<EFBFBD>q??????????????????????
|
|||
|
938 : <EFBFBD><EFBFBD>????????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??????
|
|||
|
939 : ?????AB??????<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???
|
|||
|
940 : <dl>
|
|||
|
941 : <dt>int x,y
|
|||
|
942 : <dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>
|
|||
|
943 : </dl>
|
|||
|
944 : <br>
|
|||
|
945 : <hr>
|
|||
|
946 : <br>
|
|||
|
947 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_AAB_send( int fd,int x,int y )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "AAB" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
948 : <LI><a name="L"><font color=red>clienttoserver L( int dir);</font></a><br>
|
|||
|
949 : (Look)
|
|||
|
950 : dir ?<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????<EFBFBD>D
|
|||
|
951 : <EFBFBD><EFBFBD>???????????????<EFBFBD>M????????????????
|
|||
|
952 : ???????????????????????<EFBFBD><EFBFBD>????????
|
|||
|
953 : ?????????????<EFBFBD><EFBFBD>??????????????<EFBFBD>Y????
|
|||
|
954 : ??<EFBFBD>q?????(<EFBFBD>a<EFBFBD><EFBFBD>?NPC?????)??????<EFBFBD>q???NPC?<EFBFBD>n
|
|||
|
955 : ????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>n??????<EFBFBD><EFBFBD>??????????NPC?
|
|||
|
956 : ??<EFBFBD>h???????????<EFBFBD><EFBFBD>??????????<EFBFBD>l??????
|
|||
|
957 : TK??????????<EFBFBD><EFBFBD>???
|
|||
|
958 : <br>
|
|||
|
959 : <hr>
|
|||
|
960 : <br>
|
|||
|
961 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_L_send( int fd,int dir )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "L" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( dir ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
962 : <LI><a name="C2STK"><font color=red>clienttoserver TK( int x, int y, string message ,int color, int area);<br></font></a>
|
|||
|
963 : (TalK)
|
|||
|
964 : ????????????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>?????<br><br>
|
|||
|
965 : <dl>
|
|||
|
966 : <dt>int x,y
|
|||
|
967 : <dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>
|
|||
|
968 : <dt>string message
|
|||
|
969 : <dd>string ?<EFBFBD><EFBFBD>??, "|" ?2???<EFBFBD><EFBFBD>?????????????
|
|||
|
970 : ???<EFBFBD><EFBFBD>?????2????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?????2??
|
|||
|
971 : ??????<a href="#escaping">?????</a>??????
|
|||
|
972 : ?????????????????????
|
|||
|
973 : <ul>
|
|||
|
974 : <li>P??<br>
|
|||
|
975 : <EFBFBD>I<EFBFBD>d?C<EFBFBD><EFBFBD>???"P"???<EFBFBD><EFBFBD>???????????<EFBFBD>V
|
|||
|
976 : ??????????????????????????
|
|||
|
977 : ???<EFBFBD><EFBFBD>???<EFBFBD>I<EFBFBD>d???????<EFBFBD><EFBFBD>????????
|
|||
|
978 : ??????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>???<EFBFBD>I<EFBFBD>d?"P"?
|
|||
|
979 : ?<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>????<EFBFBD>R<EFBFBD>e????<EFBFBD><EFBFBD>???<EFBFBD>d???<EFBFBD><EFBFBD>?
|
|||
|
980 : ???????TK??????????TK??????<EFBFBD><EFBFBD>?
|
|||
|
981 : ?<EFBFBD><EFBFBD>??????"P"?????????<EFBFBD>V???
|
|||
|
982 : <br>
|
|||
|
983 : <EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>
|
|||
|
984 : <pre>
|
|||
|
985 : "P|??????<3F><>????!!"
|
|||
|
986 : </pre>
|
|||
|
987 : <br>
|
|||
|
988 : ???????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>???<EFBFBD>d??<EFBFBD><EFBFBD><EFBFBD>e
|
|||
|
989 : ??????<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>???????????<EFBFBD>R<EFBFBD>e?
|
|||
|
990 : ??<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??C????<EFBFBD><EFBFBD>?????'!' ?<EFBFBD>u?<EFBFBD><EFBFBD>
|
|||
|
991 : ??<EFBFBD>V????<EFBFBD><EFBFBD>????????????'!'???<EFBFBD>T
|
|||
|
992 : ????????????????<EFBFBD>u?<EFBFBD><EFBFBD>??<EFBFBD>S?<EFBFBD><EFBFBD>??
|
|||
|
993 : ?????<EFBFBD><EFBFBD>????!?????????????<EFBFBD><EFBFBD>?
|
|||
|
994 : ???<EFBFBD><EFBFBD>???<EFBFBD>d??????
|
|||
|
995 : <table border>
|
|||
|
996 : <tr><td>"..."</td><td>?????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??
|
|||
|
997 : </td></tr>
|
|||
|
998 :
|
|||
|
999 : </table>
|
|||
|
1000 : </ul>
|
|||
|
1001 : <dt>int color
|
|||
|
1002 : <dd><EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>?
|
|||
|
1003 : <dt>int area
|
|||
|
1004 : <dd>??????<EFBFBD><EFBFBD>???<EFBFBD>d?????<EFBFBD><EFBFBD><EFBFBD>e????
|
|||
|
1005 :
|
|||
|
1006 : </dl>
|
|||
|
1007 : <br>
|
|||
|
1008 : <hr>
|
|||
|
1009 : <br>
|
|||
|
1010 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_TK_send( int fd,int x,int y,char* message,int color,int area )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "TK" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( message ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( color ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( area ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1071 : <LI><a name="CS_M"><font color=red>clienttoserver M(int fl , int x1 , int y1 , int x2, int y2 );<br></font></a>
|
|||
|
1072 : ????????????????<EFBFBD><EFBFBD>??M????????????
|
|||
|
1073 : ?<EFBFBD><EFBFBD>???????MC???????????????????
|
|||
|
1074 : <EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????????????
|
|||
|
1075 : <dl>
|
|||
|
1076 : <dt>int fl
|
|||
|
1077 : <dd>???<EFBFBD>k?
|
|||
|
1078 : <dt>int x1
|
|||
|
1079 : <dd>?<EFBFBD><EFBFBD>X
|
|||
|
1080 : <dt>int y1
|
|||
|
1081 : <dd>?<EFBFBD><EFBFBD>Y
|
|||
|
1082 : <dt>int x2
|
|||
|
1083 : <dd>??X
|
|||
|
1084 : <dt>int y2
|
|||
|
1085 : <dd>??Y
|
|||
|
1086 : </dl>
|
|||
|
1087 : <br>
|
|||
|
1088 : <hr>
|
|||
|
1089 : <br>
|
|||
|
1090 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_M_send( int fd,int fl,int x1,int y1,int x2,int y2 )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "M" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( fl ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x1 ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y1 ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x2 ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y2 ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1128 : <LI><a name="C2SC"><font color=red>clienttoserver C( int index );<bR></font></a>
|
|||
|
1129 : ????<EFBFBD>ѩ<EFBFBD>??????????index CA ????????<EFBFBD><EFBFBD>??
|
|||
|
1130 : C ?<EFBFBD><EFBFBD>??????????????????<EFBFBD><EFBFBD>?????
|
|||
|
1131 : <br>
|
|||
|
1132 : <hr>
|
|||
|
1133 : <br>
|
|||
|
1134 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_C_send( int fd,int index )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "C" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( index ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1345 : <LI><a name="CS_S"><font color=red>clienttoserver S( string category );<br></font></a>
|
|||
|
1346 : (Status)
|
|||
|
1347 : ???????????????
|
|||
|
1348 : <dl>
|
|||
|
1349 : <dt>string category
|
|||
|
1350 : <dd>???<EFBFBD>ѩ<EFBFBD>?????????????<EFBFBD><EFBFBD><EFBFBD>e?
|
|||
|
1351 : <ul>
|
|||
|
1352 : <LI>P <EFBFBD>u?????
|
|||
|
1353 : <LI>C ?<EFBFBD><EFBFBD>
|
|||
|
1354 : <LI>I <EFBFBD>u????
|
|||
|
1355 : <LI>S <EFBFBD>u???
|
|||
|
1356 : <LI>T <EFBFBD>u<EFBFBD><EFBFBD>?
|
|||
|
1357 : <LI>M ?<EFBFBD><EFBFBD>?????
|
|||
|
1358 : <li>E ????????
|
|||
|
1359 : <li>K0 - K4 ???????
|
|||
|
1360 : <li>D ID
|
|||
|
1361 : </ul>
|
|||
|
1362 : </dl>
|
|||
|
1363 : ????<EFBFBD>ѩ<EFBFBD>???????????????????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?
|
|||
|
1364 : ??<EFBFBD><EFBFBD>?????????????
|
|||
|
1365 : <br>
|
|||
|
1366 : <hr>
|
|||
|
1367 : <br>
|
|||
|
1368 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_S_send( int fd,char* category )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "S" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( category ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1745 : <li><a name="CS_FS"><font color=red>clienttoserver FS( int flg);<br></font></a>
|
|||
|
1746 : (FlgSet)???<EFBFBD><EFBFBD>?<EFBFBD>V????DUEL<EFBFBD>ϣ<EFBFBD>?????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????On/Off???<br><br>
|
|||
|
1747 :
|
|||
|
1748 : <dl>
|
|||
|
1749 : <dt>int flg
|
|||
|
1750 : <dd> 0 bit 0: ??Off 1: ??On<br>
|
|||
|
1751 : ???<EFBFBD>t<EFBFBD><EFBFBD>??1 bit 0: <EFBFBD>P<EFBFBD>f<EFBFBD>N?<EFBFBD><EFBFBD>?off 1: <EFBFBD>P<EFBFBD>f<EFBFBD>N?<EFBFBD><EFBFBD>?On <br>
|
|||
|
1752 : 2 bit 0: DUEL off 1: DUEL On<br>
|
|||
|
1753 : 3 bit 0: ?<EFBFBD>G???????? 1: ????????????<EFBFBD><EFBFBD>??????<br>
|
|||
|
1754 : 4 bit 0: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>??OK 1: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>???<EFBFBD>r<br>
|
|||
|
1755 : </dl>
|
|||
|
1756 : <br>
|
|||
|
1757 : <br>
|
|||
|
1758 : <hr>
|
|||
|
1759 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_FS_send( int fd,int flg )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "FS" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( flg ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1774 : <li><a name="CS_HL"><font color=red>clienttoserver HL( int flg);<br></font></a>
|
|||
|
1775 : (HeLp)???????<EFBFBD>@<EFBFBD>e??????ON?????<EFBFBD>\?<EFBFBD><EFBFBD>?<EFBFBD>P<EFBFBD>f?<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>???<br><br>
|
|||
|
1776 :
|
|||
|
1777 : <dl>
|
|||
|
1778 : <dt>int flg
|
|||
|
1779 : <dd> 0: ??????Off 1: ??????On<br>
|
|||
|
1780 : </dl>
|
|||
|
1781 : <br>
|
|||
|
1782 : <br>
|
|||
|
1783 : <hr>
|
|||
|
1784 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_HL_send( int fd,int flg )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "HL" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( flg ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1795 : <li><a name="CS_PR"><font color=red>clienttoserver PR( int x, int y,int request);<br></font></a>
|
|||
|
1796 : (PartyRequest)???<EFBFBD>V?or?<EFBFBD><EFBFBD> ??????<br><br>
|
|||
|
1797 :
|
|||
|
1798 : <dl>
|
|||
|
1799 : <dt>int x,y
|
|||
|
1800 : <dd> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?x,y ?<EFBFBD><EFBFBD>
|
|||
|
1801 : <dt>int request
|
|||
|
1802 : <dd>0: ?<EFBFBD><EFBFBD>??1: ???????
|
|||
|
1803 : </dl>
|
|||
|
1804 : <br>
|
|||
|
1805 : <br>
|
|||
|
1806 : <hr>
|
|||
|
1807 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_PR_send( int fd,int x,int y,int request )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "PR" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( request ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1824 : <li><a name="CS_KS"><font color=red>clienttoserver KS( int petarray);<br></font></a>
|
|||
|
1825 : (Kyoryu Select)<EFBFBD>P<EFBFBD>f?<EFBFBD><EFBFBD>?????<EFBFBD>k<EFBFBD><EFBFBD>???<br><br>
|
|||
|
1826 :
|
|||
|
1827 : <dl>
|
|||
|
1828 : <dt>int petarray
|
|||
|
1829 : <dd>0 ? 4 ??????<EFBFBD>k???????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?????????<EFBFBD>P<EFBFBD>f??????????????????-1?<EFBFBD>V???
|
|||
|
1830 : </dl>
|
|||
|
1831 : <br>
|
|||
|
1832 : <br>
|
|||
|
1833 : <hr>
|
|||
|
1834 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_KS_send( int fd,int petarray )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "KS" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( petarray ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1852 : <li><a name="CS_AC"><font color=red>clienttoserver AC( int x, int y, int actionno);<br></font></a>
|
|||
|
1853 : (action)?<EFBFBD>W?????<EFBFBD><EFBFBD>????<br><br>
|
|||
|
1854 :
|
|||
|
1855 : <dl>
|
|||
|
1856 : <dt>int x,y
|
|||
|
1857 : <dd> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?x,y ?<EFBFBD><EFBFBD>
|
|||
|
1858 : <dt>int actionno
|
|||
|
1859 : <dd>?????????????????<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>???????(CA)??<EFBFBD><EFBFBD>???
|
|||
|
1860 : ???????<EFBFBD>e<EFBFBD><EFBFBD>??????????????????<EFBFBD>k????????<EFBFBD>n?????<EFBFBD>G??<br>
|
|||
|
1861 : <br>
|
|||
|
1862 : <table border=1>
|
|||
|
1863 : <tr><td>action</td><td>no</td></tr>
|
|||
|
1864 : <tr><td>??</td><td>0</td></tr>
|
|||
|
1865 : <tr><td>????</td><td>1</td></tr>
|
|||
|
1866 : <tr><td><EFBFBD>X??</td><td>2</td></tr>
|
|||
|
1867 : <tr><td>?????</td><td>3</td></tr>
|
|||
|
1868 : <tr><td><EFBFBD><EFBFBD>?</td><td>4</td></tr>
|
|||
|
1869 : <tr><td>??</td><td>5</td></tr>
|
|||
|
1870 : <tr><td><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?</td><td>6</td></tr>
|
|||
|
1871 : <tr><td>??</td><td>7</td></tr>
|
|||
|
1872 : <tr><td><EFBFBD>W?</td><td>8</td></tr>
|
|||
|
1873 : <tr><td><EFBFBD>v??</td><td>9</td></tr>
|
|||
|
1874 : <tr><td>???</td><td>10</td></tr>
|
|||
|
1875 : <tr><td>????</td><td>11</td></tr>
|
|||
|
1876 : <tr><td>???</td><td>12</td></tr>
|
|||
|
1877 : </table>
|
|||
|
1878 : </dl>
|
|||
|
1879 : <br>
|
|||
|
1880 : <br>
|
|||
|
1881 : <hr>
|
|||
|
1882 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_AC_send( int fd,int x,int y,int actionno )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "AC" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( actionno ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1883 : <li><a name="CS_MU"><font color=red>clienttoserver MU( int x, int y, int array, int toindex);<br></font></a>
|
|||
|
1884 : (magic use)?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>???????????????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??
|
|||
|
1885 : ??????<EFBFBD><EFBFBD>?????
|
|||
|
1886 :
|
|||
|
1887 :
|
|||
|
1888 : <dl>
|
|||
|
1889 : <dt>int x,y
|
|||
|
1890 : <dd> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?x,y ?<EFBFBD><EFBFBD>
|
|||
|
1891 : <dt>int array
|
|||
|
1892 : <dd> ???<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????????? P ? Jn(n ?<EFBFBD>\????)?<EFBFBD>n???????????
|
|||
|
1893 : <dt>int toindex
|
|||
|
1894 : <dd> <EFBFBD>M??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????????????????index????????????????
|
|||
|
1895 : <pre>
|
|||
|
1896 : <EFBFBD><EFBFBD><EFBFBD><EFBFBD> = 0
|
|||
|
1897 : ??? = 1 ?5
|
|||
|
1898 : ?? = 6 ?10 ?S N ?0?4?<EFBFBD>n??<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>????????
|
|||
|
1899 : </pre>
|
|||
|
1900 : <EFBFBD>n<EFBFBD><EFBFBD>?<EFBFBD>u????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>??-1??<EFBFBD><EFBFBD>???<br>
|
|||
|
1901 : <br>
|
|||
|
1902 : </dl>
|
|||
|
1903 : <br>
|
|||
|
1904 : <br>
|
|||
|
1905 : <hr>
|
|||
|
1906 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_MU_send( int fd,int x,int y,int array,int toindex )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "MU" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( array ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( toindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1907 : <li><a name="CS_PS"><font color=red>clienttoserver PS( int havepetindex, int havepetskill, int toindex, string data);<br></font></a>
|
|||
|
1908 : (PetSkill use )??????<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>??????????
|
|||
|
1909 :
|
|||
|
1910 : <dl>
|
|||
|
1911 : <dt>int havepetindex
|
|||
|
1912 : <dd>?<EFBFBD>k??????<EFBFBD><EFBFBD>?????
|
|||
|
1913 : <dt>int havepetskill
|
|||
|
1914 : <dd>?<EFBFBD>k????<EFBFBD><EFBFBD>?????
|
|||
|
1915 : <dt>int toindex
|
|||
|
1916 : <dd> <EFBFBD>M??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????????????????index????????????????
|
|||
|
1917 : <pre>
|
|||
|
1918 : <EFBFBD><EFBFBD><EFBFBD><EFBFBD> = 0
|
|||
|
1919 : ??? = 1 ?5
|
|||
|
1920 : ?? = 6 ?10 ?S N ?0?4?<EFBFBD>n??<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>????????
|
|||
|
1921 : </pre>
|
|||
|
1922 : <EFBFBD>n<EFBFBD><EFBFBD>?<EFBFBD>u????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>??-1??<EFBFBD><EFBFBD>???<br>
|
|||
|
1923 : <br>
|
|||
|
1924 : <dt>string data
|
|||
|
1925 : <dd><EFBFBD><EFBFBD>?<EFBFBD>ѩ<EFBFBD>??????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???haveitemindex1|haveitemindex2|haveitemindex3|...<br>
|
|||
|
1926 : ???<EFBFBD><EFBFBD>???????<EFBFBD>k??<EFBFBD>V?????
|
|||
|
1927 :
|
|||
|
1928 : </dl>
|
|||
|
1929 :
|
|||
|
1930 : <br>
|
|||
|
1931 : <br>
|
|||
|
1932 : <hr>
|
|||
|
1933 : <br>
|
|||
|
1934 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_PS_send( int fd,int havepetindex,int havepetskill,int toindex,char* data )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "PS" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( havepetindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( havepetskill ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( toindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( data ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1963 : <LI><a name="ST"><font color=red>clienttoserver ST( int titleindex );<br></font></a>
|
|||
|
1964 : (SelectTitle)
|
|||
|
1965 : <EFBFBD><EFBFBD>??????titleindex ? -1 ????<EFBFBD><EFBFBD>???????????
|
|||
|
1966 : ??<br><br>
|
|||
|
1967 : <dl>
|
|||
|
1968 : <dt>int titleindex
|
|||
|
1969 : <dd>?<EFBFBD>k??<EFBFBD><EFBFBD>???
|
|||
|
1970 : </dl>
|
|||
|
1971 : ????Txt??????????????????????????
|
|||
|
1972 : ?<EFBFBD>G<EFBFBD>l????
|
|||
|
1973 : <br>
|
|||
|
1974 : <br>
|
|||
|
1975 : <hr>
|
|||
|
1976 : <br>
|
|||
|
1977 :
|
|||
|
1978 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_ST_send( int fd,int titleindex )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "ST" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( titleindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1979 : <LI><a name="DT"><font color=red>clienttoserver DT( int titleindex );<br></font></a>
|
|||
|
1980 : (DeleteTitle)
|
|||
|
1981 : <EFBFBD><EFBFBD>???????<br><br>
|
|||
|
1982 : <dl>
|
|||
|
1983 : <dt>int titleindex
|
|||
|
1984 : <dd>????<EFBFBD><EFBFBD>????????
|
|||
|
1985 : </dl>
|
|||
|
1986 : ????Txt?????????????????????????????<EFBFBD>G
|
|||
|
1987 : <EFBFBD>l????
|
|||
|
1988 : <br>
|
|||
|
1989 : <br>
|
|||
|
1990 : <hr>
|
|||
|
1991 : <br>
|
|||
|
1992 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_DT_send( int fd,int titleindex )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "DT" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( titleindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
1993 : <LI><a name="FT"><font color=red>clienttoserver FT( string data );<br></font></a>
|
|||
|
1994 : (inputFreeTitle)
|
|||
|
1995 : <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>V???<EFBFBD><EFBFBD>??<EFBFBD>V????<br><br>
|
|||
|
1996 : <dl>
|
|||
|
1997 : <dt>string data
|
|||
|
1998 : <dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>V???<EFBFBD><EFBFBD>??EUC???????<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>???
|
|||
|
1999 : ????????????????<EFBFBD><EFBFBD>??1?info?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??
|
|||
|
2000 : ?????????<EFBFBD><EFBFBD>????????????????
|
|||
|
2001 : ???????<EFBFBD><EFBFBD>?????
|
|||
|
2002 : </dl>
|
|||
|
2003 : ??????Txt???<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???<EFBFBD>G<EFBFBD>l????????????
|
|||
|
2004 : <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?CHARINDEX?<EFBFBD>n???Ch?????????<EFBFBD><EFBFBD>????????
|
|||
|
2005 : ???
|
|||
|
2006 : <br>
|
|||
|
2007 : <br>
|
|||
|
2008 : <hr>
|
|||
|
2009 : <br>
|
|||
|
2010 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_FT_send( int fd,char* data )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "FT" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( data ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
2019 : <LI><a name="C2SSKUP"><font color=red>clienttoserver SKUP( int skillid );<br></font></a>
|
|||
|
2020 : (SKillUP)
|
|||
|
2021 : ??????????????<br><br>
|
|||
|
2022 : <dl>
|
|||
|
2023 : <dt>int skillid
|
|||
|
2024 : <dd>???????????0=<EFBFBD>l?, 1=??, 2=<EFBFBD>Ǧ<EFBFBD>?, 3=<EFBFBD><EFBFBD>??
|
|||
|
2025 : </dl>
|
|||
|
2026 : <br>
|
|||
|
2027 : <hr>
|
|||
|
2028 : <br>
|
|||
|
2029 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_SKUP_send( int fd,int skillid )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "SKUP" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( skillid ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
2030 : <LI><a name="CS_KN"><font color=red>clienttoserver KN( int havepetindex, string data );<br></font></a>
|
|||
|
2031 : (inputKyoryuName)
|
|||
|
2032 : ????<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD>V????<br><br>
|
|||
|
2033 : <dl>
|
|||
|
2034 : <dt>int havepetindex
|
|||
|
2035 : <dd>????<EFBFBD>k??
|
|||
|
2036 : <dt>string data
|
|||
|
2037 : <dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD><EFBFBD>q?????
|
|||
|
2038 :
|
|||
|
2039 : </dl>
|
|||
|
2040 : ??????Txt???<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???<EFBFBD>G<EFBFBD>l????????????
|
|||
|
2041 : ???????????????????
|
|||
|
2042 : <br>
|
|||
|
2043 : <br>
|
|||
|
2044 : <hr>
|
|||
|
2045 : <br>
|
|||
|
2046 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_KN_send( int fd,int havepetindex,char* data )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "KN" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( havepetindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( data ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
2166 : <LI><a name="CS_WN"><font color=red>clienttoserver WN( int x, int y, int seqno, int objindex, int select, string data );<br></font></a>
|
|||
|
2167 : <br>
|
|||
|
2168 : ?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>n??<EFBFBD><EFBFBD>?<br>
|
|||
|
2169 : <br>
|
|||
|
2170 : <dl>
|
|||
|
2171 : <dt>int x,y
|
|||
|
2172 : <dd>???????x,y?<EFBFBD><EFBFBD>
|
|||
|
2173 : <dt>int seqno
|
|||
|
2174 : <dd>????????seqno?????<EFBFBD><EFBFBD>?
|
|||
|
2175 : <dt>int objindex
|
|||
|
2176 : <dd>????????objindex?????<EFBFBD><EFBFBD>?
|
|||
|
2177 : <dt>int select
|
|||
|
2178 : <dd>??????<EFBFBD>k<EFBFBD><EFBFBD>????????<EFBFBD>k<EFBFBD><EFBFBD>?????????WN ?buttontype ?define?<EFBFBD>i??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??
|
|||
|
2179 : <dt>string data
|
|||
|
2180 : <dd>??<EFBFBD>V?????????????<EFBFBD>V???????
|
|||
|
2181 : <EFBFBD>k<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>?????<EFBFBD>k<EFBFBD><EFBFBD>??<EFBFBD>k???1???
|
|||
|
2182 : ?????????<EFBFBD>k<EFBFBD><EFBFBD>???????????????????????????
|
|||
|
2183 : <br><br>??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??<br>
|
|||
|
2184 : ????<EFBFBD><EFBFBD><EFBFBD>k<EFBFBD><EFBFBD>??<EFBFBD>k??????????<br>
|
|||
|
2185 : ????<EFBFBD><EFBFBD><EFBFBD>k<EFBFBD><EFBFBD>????????<EFBFBD>k??????|??<br>
|
|||
|
2186 : ??<EFBFBD>\ <EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>1 ??<EFBFBD><EFBFBD>2 <EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>3
|
|||
|
2187 :
|
|||
|
2188 : <br><br><br>???????<EFBFBD><EFBFBD>??<br>
|
|||
|
2189 : ??????????(<EFBFBD>k<EFBFBD><EFBFBD><EFBFBD>k?)????????(<EFBFBD>k<EFBFBD><EFBFBD><EFBFBD>k?)?????????(<EFBFBD>k<EFBFBD><EFBFBD><EFBFBD>k?)?<EFBFBD>k<EFBFBD>h<br>
|
|||
|
2190 :
|
|||
|
2191 : </dl>
|
|||
|
2192 : <br>
|
|||
|
2193 : <br>
|
|||
|
2194 : <hr>
|
|||
|
2195 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_WN_send( int fd,int x,int y,int seqno,int objindex,int select,char* data )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "WN" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( seqno ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( objindex ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( select ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( data ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
2238 : <LI><a name="CS_SP"><font color=red>clienttoserver SP( int x, int y, int dir );<br></font></a>
|
|||
|
2239 : (SetPosition)<br>
|
|||
|
2240 : ???????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>????
|
|||
|
2241 : ?????????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???<br>
|
|||
|
2242 : <br>
|
|||
|
2243 : <dl>
|
|||
|
2244 : <dt>int x,y, dir
|
|||
|
2245 : <dd>?<EFBFBD><EFBFBD>,???
|
|||
|
2246 : </dl>
|
|||
|
2247 : <br>
|
|||
|
2248 : <br>
|
|||
|
2249 : <hr>
|
|||
|
2250 : <br>
|
|||
|
2251 : <!-- ??????????<EFBFBD><EFBFBD>????????? -->
|
|||
|
2252 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_SP_send( int fd,int x,int y,int dir )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "SP" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( x ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( y ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( dir ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
|
|||
|
/*
|
|||
|
2253 : <LI><a name="CS_CLIENTLOGIN"><font color=red>clienttoserver ClientLogin(string cdkey,string passwd);<br></font></a>
|
|||
|
2254 : ?????????????????????<EFBFBD><EFBFBD>??????????
|
|||
|
2255 : ????????????????<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>???????
|
|||
|
2256 : ?????????????<EFBFBD><EFBFBD>??????????????????
|
|||
|
2257 : ???<EFBFBD>O????????<EFBFBD>ѩ<EFBFBD>??????????????????
|
|||
|
2258 : <EFBFBD><EFBFBD>????????????<EFBFBD><EFBFBD>??????<EFBFBD>T?????????
|
|||
|
2259 :
|
|||
|
2260 : <br><br>
|
|||
|
2261 : <dl>
|
|||
|
2262 : <dt>string cdkey
|
|||
|
2263 : <dd>CDKEY
|
|||
|
2264 : <dt>string passwd
|
|||
|
2265 : <dd>????????<EFBFBD><EFBFBD>?????????????
|
|||
|
2266 : </dl>
|
|||
|
2267 : <br>
|
|||
|
2268 : <hr>
|
|||
|
2269 : <br>
|
|||
|
2270 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_ClientLogin_send( int fd,char* cdkey,char* passwd )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "ClientLogin" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( cdkey ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( passwd ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
2284 : <LI><a name="CS_CREATENEWCHAR"><font color=red>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);<br></font></a>
|
|||
|
2285 : <EFBFBD><EFBFBD>????????????
|
|||
|
2286 : <br><br>
|
|||
|
2287 : <dl>
|
|||
|
2288 : <dt>int dataplacenum
|
|||
|
2289 : <dd>????<EFBFBD>k???????????????????????????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????<EFBFBD>R<EFBFBD>e???
|
|||
|
2290 : <dt>string charname
|
|||
|
2291 : <dd>???<EFBFBD><EFBFBD>(??????????????<EFBFBD><EFBFBD>??)?
|
|||
|
2292 : ??<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>?????????????<EFBFBD><EFBFBD>?????
|
|||
|
2293 : <dt>int imgno
|
|||
|
2294 : <dd>?????????<EFBFBD>k??
|
|||
|
2295 : <dt>int faceimgno
|
|||
|
2296 : <dd>????<EFBFBD>k??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?????
|
|||
|
2297 : <dt>int vital, str,tgh dex
|
|||
|
2298 : <dd>???????
|
|||
|
2299 : <dt>int earth, water, fire, wind
|
|||
|
2300 : <dd>?<EFBFBD>N<EFBFBD>ͣk
|
|||
|
2301 : <dt>int hometown
|
|||
|
2302 : <dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?0???<EFBFBD>k?<EFBFBD>J????
|
|||
|
2303 : <dt>string option
|
|||
|
2304 : </table>
|
|||
|
2305 : ???????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD>e?????????<EFBFBD>k
|
|||
|
2306 : ???????????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>???????
|
|||
|
2307 : ?????
|
|||
|
2308 : </dl>
|
|||
|
2309 : <br>
|
|||
|
2310 : <hr>
|
|||
|
2311 : <br>
|
|||
|
2312 :
|
|||
|
2313 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_CreateNewChar_send( int fd,int dataplacenum,char* charname,int imgno,int faceimgno,int vital,int str,int tgh,int dex,int earth,int water,int fire,int wind,int hometown )
|
|||
|
{
|
|||
|
//cary
|
|||
|
if(imgno>=100239)
|
|||
|
return;
|
|||
|
//end
|
|||
|
lssproto_CreateHeader( lssproto.work , "CreateNewChar" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( dataplacenum ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( charname ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( imgno ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( faceimgno ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( vital ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( str ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( tgh ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( dex ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( earth ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( water ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( fire ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( wind ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( hometown ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
/*
|
|||
|
2338 : <LI><a name="CS_CHARDELETE"><font color=red>clienttoserver CharDelete(string charname);<br></font></a>
|
|||
|
2339 : ????<EFBFBD><EFBFBD>??
|
|||
|
2340 : <br><br>
|
|||
|
2341 : <dl>
|
|||
|
2342 : <dt>string charname
|
|||
|
2343 : <dd>???<EFBFBD><EFBFBD>??????????????????????
|
|||
|
2344 : </dl>
|
|||
|
2345 : <br>
|
|||
|
2346 : <br>
|
|||
|
2347 : <hr>
|
|||
|
2348 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_CharDelete_send( int fd,char* charname )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "CharDelete" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( charname ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
/*
|
|||
|
2366 : <LI><a name="CS_CHARLOGIN"><font color=red>clienttoserver CharLogin(string charname);<br></font></a>
|
|||
|
2367 : ?????????????????????<EFBFBD><EFBFBD>??
|
|||
|
2368 : <br><br>
|
|||
|
2369 : <dl>
|
|||
|
2370 : <dt>string charname
|
|||
|
2371 : <dd>???<EFBFBD><EFBFBD>???????????????????????
|
|||
|
2372 : </dl>
|
|||
|
2373 : <br>
|
|||
|
2374 : <hr>
|
|||
|
2375 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_CharLogin_send( int fd,char* charname )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "CharLogin" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( charname ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
/*
|
|||
|
2391 : <LI><a name="CS_CHARLIST"><font color=red>clienttoserver CharList( void );<br></font></a>
|
|||
|
2392 : ???????<EFBFBD>x??
|
|||
|
2393 : <br><br>
|
|||
|
2394 : <hr>
|
|||
|
2395 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_CharList_send( int fd )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "CharList" );
|
|||
|
lssproto_strcatsafe( lssproto.work , "" ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
// TNJ;
|
|||
|
}
|
|||
|
/*
|
|||
|
2438 : <LI><a name="CS_CHARLOGOUT"><font color=red>clienttoserver CharLogout(void);<br></font></a>
|
|||
|
2439 : ???????????????????????<EFBFBD><EFBFBD>??
|
|||
|
2440 : ?????
|
|||
|
2441 : <br>
|
|||
|
2442 : <hr>
|
|||
|
2443 : <br>
|
|||
|
2444 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_CharLogout_send( int fd )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "CharLogout" );
|
|||
|
lssproto_strcatsafe( lssproto.work , "" ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
/*
|
|||
|
2459 : <LI><a name="CS_PROCGET"><font color=red>clienttoserver ProcGet(void);<br></font></a>
|
|||
|
2460 : proc ????<EFBFBD><EFBFBD><EFBFBD>x?????????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>???
|
|||
|
2461 : <br>
|
|||
|
2462 : <hr>
|
|||
|
2463 : <br>
|
|||
|
2464 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_ProcGet_send( int fd )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "ProcGet" );
|
|||
|
lssproto_strcatsafe( lssproto.work , "" ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
/*
|
|||
|
2477 : <LI><a name="CS_PLAYERNUMGET"><font color=red>clienttoserver PlayerNumGet(void);<br></font></a>
|
|||
|
2478 : ??????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD>x???
|
|||
|
2479 : <br>
|
|||
|
2480 : <hr>
|
|||
|
2481 : <br>
|
|||
|
2482 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_PlayerNumGet_send( int fd )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "PlayerNumGet" );
|
|||
|
lssproto_strcatsafe( lssproto.work , "" ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
/*
|
|||
|
2495 : <LI><a name="CS_ECHO"><font color=red>clienttoserver Echo( string test);<br></font></a>
|
|||
|
2496 : ?????<EFBFBD><EFBFBD>??????????????????<EFBFBD><EFBFBD>??
|
|||
|
2497 : <br><br>
|
|||
|
2498 : <dl>
|
|||
|
2499 : <dt>string test
|
|||
|
2500 : <dd>????<EFBFBD><EFBFBD>????????????
|
|||
|
2501 : </dl>
|
|||
|
2502 : <br>
|
|||
|
2503 : <hr>
|
|||
|
2504 : <br>
|
|||
|
2505 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_Echo_send( int fd,char* test )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "Echo" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( test ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
/*
|
|||
|
2517 : <LI><a name="CS_SHUTDOWN"><font color=red>clienttoserver Shutdown( string passwd, int min);<br></font></a>
|
|||
|
2518 : ??????????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><br><br>
|
|||
|
2519 : ??????????????<EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>?????????????????????<EFBFBD><EFBFBD>??
|
|||
|
2520 : ??????????denyaccept()???????????????<EFBFBD><EFBFBD>??????
|
|||
|
2521 : ???closeallsockets()?????????????<EFBFBD><EFBFBD>?????????
|
|||
|
2522 : <br><br>
|
|||
|
2523 : <dl>
|
|||
|
2524 : <dt>string passwd
|
|||
|
2525 : <dd>???????????????????<EFBFBD>@<EFBFBD>e?????
|
|||
|
2526 : <dt>int min
|
|||
|
2527 : <dd>????<EFBFBD><EFBFBD>???????????????<EFBFBD><EFBFBD>?<EFBFBD>@<EFBFBD>e???
|
|||
|
2528 : </dl>
|
|||
|
2529 : <br>
|
|||
|
2530 : <hr>
|
|||
|
2531 : <br>
|
|||
|
2532 :
|
|||
|
*/
|
|||
|
|
|||
|
void old_lssproto_Shutdown_send( int fd,char* passwd,int min )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "Shutdown" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( passwd ) ,lssproto.workbufsize );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_int( min ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
|
|||
|
// Robin 2001/04/10 trade
|
|||
|
void old_lssproto_TD_send( int fd,char* message )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "TD" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( message ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
|
|||
|
void old_lssproto_FM_send( int fd,char* message )
|
|||
|
{
|
|||
|
lssproto_CreateHeader( lssproto.work , "FM" );
|
|||
|
lssproto_strcatsafe( lssproto.work , lssproto_mkstr_string( message ) ,lssproto.workbufsize );
|
|||
|
lssproto_Send( fd , lssproto.work );
|
|||
|
}
|
|||
|
|
|||
|
int lssproto_ClientDispatchMessage(int fd ,char*line)
|
|||
|
{
|
|||
|
int msgid;
|
|||
|
char funcname[1024];
|
|||
|
lssproto_strcpysafe( lssproto.work , line,lssproto.workbufsize );
|
|||
|
lssproto_splitString( lssproto.work);
|
|||
|
lssproto_GetMessageInfo( &msgid , funcname , sizeof(funcname),lssproto.token_list);
|
|||
|
/*
|
|||
|
209 : <LI><a name="SC_XYD"><font color=blue>servertoclient XYD( int x, int y, int dir );<br></font></a>
|
|||
|
210 : <EFBFBD><EFBFBD>?<EFBFBD>P<EFBFBD>f<EFBFBD><EFBFBD>??????????<EFBFBD>t?<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??
|
|||
|
211 : <br><br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "XYD" ) == 0 ){
|
|||
|
int x;
|
|||
|
int y;
|
|||
|
int dir;
|
|||
|
x = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
y = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
dir = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
lssproto_XYD_recv( fd,x,y,dir);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
247 : <LI><a name="SC_EV"><font color=blue>servertoclient EV(int seqno,int result);<br></font></a>
|
|||
|
248 : ???????EV?<EFBFBD>n???<EFBFBD><EFBFBD>?????
|
|||
|
249 : ???<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????????????<EFBFBD><EFBFBD>????????
|
|||
|
250 : <EFBFBD><EFBFBD>????
|
|||
|
251 :
|
|||
|
252 : <dl>
|
|||
|
253 : <dt>int seqno
|
|||
|
254 : <dd>??????EV?seqno?<EFBFBD>n????
|
|||
|
255 : <dt>int result
|
|||
|
256 : <dd>???0:????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?? 1:<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>???????<EFBFBD>n??<EFBFBD>G<EFBFBD><EFBFBD>???????????????
|
|||
|
257 : </dL>
|
|||
|
258 : <br>
|
|||
|
259 : <hr>
|
|||
|
260 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "EV" ) == 0 ){
|
|||
|
int seqno;
|
|||
|
int result;
|
|||
|
seqno = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
result = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
lssproto_EV_recv( fd,seqno,result);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
285 : <LI><a name="SC_EN"><font color=blue>servertoclient EN(int result,int field);<br></font></a>
|
|||
|
286 : ???????EN??DU?<EFBFBD>n???<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>?????????
|
|||
|
287 :
|
|||
|
288 : <dl>
|
|||
|
289 : <dt>int result
|
|||
|
290 : <dd>???0:??????<EFBFBD><EFBFBD>?or???? 1:<EFBFBD><EFBFBD>??<EFBFBD>P<EFBFBD>f<EFBFBD>ϣ<EFBFBD>?2:<EFBFBD>n<EFBFBD><EFBFBD>??<EFBFBD>P<EFBFBD>f<EFBFBD>ϣ<EFBFBD>?????<EFBFBD>P<EFBFBD>f????<EFBFBD>G<EFBFBD><EFBFBD> ???????????????
|
|||
|
291 : <dt>int field
|
|||
|
292 : <dd>????????<EFBFBD>k??
|
|||
|
293 : </dL>
|
|||
|
294 : <br>
|
|||
|
295 : <hr>
|
|||
|
296 : <br>
|
|||
|
297 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "EN" ) == 0 ){
|
|||
|
int result;
|
|||
|
int field;
|
|||
|
result = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
field = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
lssproto_EN_recv( fd,result,field);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
342 : <LI><a name="SC_RS"><font color=blue>servertoclient RS( string data );<br></font></a>
|
|||
|
343 : <EFBFBD>P<EFBFBD>f<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD><EFBFBD>x????????????<EFBFBD>G<EFBFBD>l?<br>
|
|||
|
344 : RS|<EFBFBD>k?(10<EFBFBD><EFBFBD>)|?????????(10<EFBFBD><EFBFBD>)|EXP(62<EFBFBD><EFBFBD>),<EFBFBD>k?|?????????|EXP,???,????<EFBFBD><EFBFBD>|????<EFBFBD><EFBFBD>|????<EFBFBD><EFBFBD><br><br>
|
|||
|
345 : <EFBFBD>k????<EFBFBD>k?5<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??","?????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???????????????<EFBFBD>k??-2?<br>
|
|||
|
346 : 2<EFBFBD><EFBFBD>???4<EFBFBD><EFBFBD>????????<EFBFBD>k??0?4)??????<EFBFBD>k????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??????","????<br>
|
|||
|
347 : ????????<EFBFBD><EFBFBD><EFBFBD>q?"|"??<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???????"|"????
|
|||
|
348 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "RS" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_RS_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
349 : <LI><a name="SC_RD"><font color=blue>servertoclient RD( string data );<br></font></a>
|
|||
|
350 : ????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD><EFBFBD>x??<EFBFBD><EFBFBD>???????????<EFBFBD>G<EFBFBD>l?<br>
|
|||
|
351 : RD|<EFBFBD>x?(<EFBFBD><EFBFBD>??)DP(62<EFBFBD><EFBFBD>)|?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?DP(62<EFBFBD><EFBFBD>)|<br><br>
|
|||
|
352 :
|
|||
|
353 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "RD" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_RD_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
377 : <LI><a name="SC_B"><font color=blue>servertoclient B( string command );<br></font></a>
|
|||
|
378 : <EFBFBD>P<EFBFBD>f???????<EFBFBD>u?????<EFBFBD>k??<EFBFBD>u? <EFBFBD><EFBFBD><EFBFBD><EFBFBD>?16<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??<BR>
|
|||
|
379 : ???[?<EFBFBD><EFBFBD><EFBFBD>k?]????????????<EFBFBD>k?????
|
|||
|
380 : <EFBFBD><EFBFBD><EFBFBD>q??????????<EFBFBD><EFBFBD><EFBFBD>q???????????<EFBFBD>D??????????
|
|||
|
381 : <br><br>
|
|||
|
382 : <h4>
|
|||
|
383 : ???????
|
|||
|
384 : </h4>
|
|||
|
385 : ????????<EFBFBD><EFBFBD>?<EFBFBD>u??????<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>?<BR>
|
|||
|
386 : ???( BATTLESTR_ADD( <EFBFBD><EFBFBD>?? ) )?<EFBFBD><EFBFBD>????????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??????????????<EFBFBD><EFBFBD>????<BR>
|
|||
|
387 : ????????????<EFBFBD>u??<EFBFBD>k????????<EFBFBD>k???<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?(???????<EFBFBD><EFBFBD>????)<br>
|
|||
|
388 :
|
|||
|
389 : <BR>
|
|||
|
390 : ???????????<EFBFBD>s<EFBFBD><EFBFBD>????????<BR>
|
|||
|
391 : ---?????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?<BR>
|
|||
|
392 : ---?????<EFBFBD><EFBFBD><EFBFBD>G<EFBFBD><EFBFBD>???<BR>
|
|||
|
393 : ---?????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???<BR>
|
|||
|
394 : ---?????<EFBFBD><EFBFBD><EFBFBD>\?<BR>
|
|||
|
395 : ---?????<EFBFBD><EFBFBD>?????<BR>
|
|||
|
396 : ---?????<EFBFBD><EFBFBD>???<BR>
|
|||
|
397 : ---?????<EFBFBD><EFBFBD>????????????<BR>
|
|||
|
398 : ---?????<EFBFBD><EFBFBD>????????????<BR>
|
|||
|
399 : ---?????<EFBFBD><EFBFBD>???????????<BR>
|
|||
|
400 : ---?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???<BR>
|
|||
|
401 : <br>
|
|||
|
402 : <ul>
|
|||
|
403 : <li>BH|????<EFBFBD>G<EFBFBD><EFBFBD>??????<br>
|
|||
|
404 : BH|??<EFBFBD>D<EFBFBD>k?|<EFBFBD>駍<EFBFBD>D<EFBFBD>k?|???|????|<EFBFBD>駍<EFBFBD>D<EFBFBD>k?|???|????|???????<EFBFBD><EFBFBD>??<EFBFBD>駍<EFBFBD>D<EFBFBD>k??FF???????????<EFBFBD><EFBFBD>??????<br>
|
|||
|
405 : <br>
|
|||
|
406 :
|
|||
|
407 : (<EFBFBD>G<EFBFBD><EFBFBD>???) B|BH|attack_0|defense_A|flag_2|damage_32|defense_B|flag_2|damage_32|FF|<BR>
|
|||
|
408 : ???0<EFBFBD>k?(attack_0)A<EFBFBD>k(defense_A)?0x32???????(damage_32)???B<EFBFBD>k(defense_B)????????0x32????(damage_32)??????????<Br><Br>
|
|||
|
409 :
|
|||
|
410 : (???????) B|BH|attack_0|defense_A|flag_2|dagame_32|counter_0|flag_10|damage_16|FF|<BR>
|
|||
|
411 : ???0<EFBFBD>k?(attack_0)?A<EFBFBD>k????(defense_A)????0x32(damage_32)???????0<EFBFBD>k(counter_0)???????(flag_10)????0x16(damage_16)?<EFBFBD><EFBFBD>????????????????<EFBFBD>D<EFBFBD>h??????<EFBFBD><EFBFBD><EFBFBD>q?????????<EFBFBD>k????<Br><br>
|
|||
|
412 :
|
|||
|
413 : (<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????) B|BH|attack_0|defense_A|flag_202|dagame_32|gardian_B|FF|<BR>
|
|||
|
414 : ???0<EFBFBD>k?(attack_0)?A<EFBFBD>k????(defense_A)????0x32(damage_32)?????????B<EFBFBD>k?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??????????????????<Br><Br>
|
|||
|
415 : <Br>
|
|||
|
416 :
|
|||
|
417 : <li>BT|????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????<br>
|
|||
|
418 : BT|??<EFBFBD>D<EFBFBD>k?|<EFBFBD>駍<EFBFBD>D<EFBFBD>k?|???|<br>
|
|||
|
419 : ?????????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>?
|
|||
|
420 : ??<EFBFBD><EFBFBD>??????????????????<EFBFBD>R<EFBFBD>e???<br><br>
|
|||
|
421 :
|
|||
|
422 : <li>BE|????<EFBFBD>`<EFBFBD><EFBFBD>????<br>
|
|||
|
423 : BE|<EFBFBD>`??<EFBFBD>D<EFBFBD>k?|<EFBFBD>駍<EFBFBD>D<EFBFBD>k?|???|<br>
|
|||
|
424 : ?????????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>?
|
|||
|
425 : ??<EFBFBD><EFBFBD>??????????????????<EFBFBD>R<EFBFBD>e????????????<EFBFBD>`??
|
|||
|
426 : <EFBFBD><EFBFBD>???????BE?<EFBFBD><EFBFBD>??????<EFBFBD>`????????<br>
|
|||
|
427 : <br>
|
|||
|
428 :
|
|||
|
429 : <li>bg|???????????<br>
|
|||
|
430 : bg|?????<EFBFBD>D<EFBFBD>k?|<br>
|
|||
|
431 : ???<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????????????<EFBFBD>h??<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???????????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??
|
|||
|
432 : ??????????????????<br>
|
|||
|
433 : <br>
|
|||
|
434 :
|
|||
|
435 : <li>BD|?????????<EFBFBD><EFBFBD>?????<br>
|
|||
|
436 : BD|<EFBFBD><EFBFBD>???????<EFBFBD>k?|<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?|?????????|??<EFBFBD>k|<br>
|
|||
|
437 : <EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?????????????????????????????????<br>
|
|||
|
438 : <br>
|
|||
|
439 :
|
|||
|
440 : <li>BF|??????????????????<br>
|
|||
|
441 : BF|??????<EFBFBD>k?|<br>
|
|||
|
442 : ??????<EFBFBD><EFBFBD>?????????????????<EFBFBD><EFBFBD>?????????????
|
|||
|
443 : ?<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?<br>
|
|||
|
444 : <br>
|
|||
|
445 :
|
|||
|
446 : <li>BJ|????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>????<br>
|
|||
|
447 : BJ|<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD>k?|<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>D?????<EFBFBD>k?|<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>D?????<EFBFBD>k?|<EFBFBD><EFBFBD>?????<EFBFBD>k?|<EFBFBD><EFBFBD>?????<EFBFBD>k?|???|FF|<br>
|
|||
|
448 : ?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>?????<EFBFBD>k???<EFBFBD>Q???<EFBFBD><EFBFBD>???????FF?????
|
|||
|
449 : <br>
|
|||
|
450 : <br>
|
|||
|
451 :
|
|||
|
452 : <li>BB|????<EFBFBD><EFBFBD>?<EFBFBD>s???????<br>
|
|||
|
453 : BB|??<EFBFBD>D<EFBFBD>k?|<EFBFBD><EFBFBD>?<EFBFBD>s??<EFBFBD><EFBFBD>?|<EFBFBD>駍<EFBFBD>D<EFBFBD>k?|???|????|<EFBFBD>駍<EFBFBD>D<EFBFBD>k?|???|FF|<BR>
|
|||
|
454 : ?<EFBFBD>k?????<EFBFBD><EFBFBD>?<EFBFBD>s??<EFBFBD><EFBFBD>??<EFBFBD>V????<EFBFBD><EFBFBD>??<EFBFBD>G<EFBFBD><EFBFBD>???<EFBFBD>i??<br>
|
|||
|
455 : <EFBFBD><EFBFBD>?<EFBFBD>s??<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??????<br>
|
|||
|
456 :
|
|||
|
457 : <br>
|
|||
|
458 : <li>BM|??????????<EFBFBD>Ш<EFBFBD>?????<br>
|
|||
|
459 : BM|?????<EFBFBD><EFBFBD>??????<EFBFBD>k?|????????<EFBFBD><EFBFBD>?|<br>
|
|||
|
460 : ??????<EFBFBD>Чk??<br>
|
|||
|
461 : ---?<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<br>
|
|||
|
462 : ---?<EFBFBD><EFBFBD><EFBFBD><EFBFBD><br>
|
|||
|
463 : ---?<EFBFBD><EFBFBD>??<br>
|
|||
|
464 : ---?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<br>
|
|||
|
465 : ---?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<br>
|
|||
|
466 : ---?<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?<br>
|
|||
|
467 : ---?<EFBFBD><EFBFBD>??<br>
|
|||
|
468 : <br>
|
|||
|
469 :
|
|||
|
470 : <li>BO|?????????????<br>
|
|||
|
471 : BO|??<EFBFBD>D<EFBFBD>k?|<EFBFBD>駍<EFBFBD>D<EFBFBD>k?|???|????|<EFBFBD>駍<EFBFBD>D<EFBFBD>k?|???|FF|<BR>
|
|||
|
472 : ?<EFBFBD>k?????<EFBFBD><EFBFBD>?<EFBFBD>s??<EFBFBD><EFBFBD>??<EFBFBD>V????<EFBFBD><EFBFBD>??<EFBFBD>G<EFBFBD><EFBFBD>???<EFBFBD>i??<br>
|
|||
|
473 : <br>
|
|||
|
474 :
|
|||
|
475 : <li>BS|???????<EFBFBD><EFBFBD>?<EFBFBD>V?????<br>
|
|||
|
476 : BS|????<EFBFBD>k?[0?19](%X)|???|??<EFBFBD>k?|???|??|<EFBFBD><EFBFBD><EFBFBD>q|<BR>
|
|||
|
477 : ???????????????????????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>????<br>
|
|||
|
478 : ???????????<EFBFBD><EFBFBD>??????????????<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>?????????BS??????????<br>
|
|||
|
479 :
|
|||
|
480 : <li>BU|????<EFBFBD>P<EFBFBD>f??<EFBFBD>I??????<br>
|
|||
|
481 : ??<EFBFBD><EFBFBD>?????????????????????<EFBFBD>֢t??<EFBFBD><EFBFBD>?<EFBFBD>w????????<EFBFBD>r????????<EFBFBD><EFBFBD>??????????????<EFBFBD>P<EFBFBD>f??<EFBFBD>I?????????????<EFBFBD><EFBFBD>????<br>
|
|||
|
482 : <br>
|
|||
|
483 :
|
|||
|
484 : <li>BV|?????????<EFBFBD>N<EFBFBD>ͨ<EFBFBD>?????<br>
|
|||
|
485 : BV|<EFBFBD><EFBFBD>????????<EFBFBD>k?|<EFBFBD><EFBFBD>???<EFBFBD>N<EFBFBD>ͧk?|<br>
|
|||
|
486 : <EFBFBD><EFBFBD>???<EFBFBD>N<EFBFBD>ͧk???<br>
|
|||
|
487 : ---?<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><EFBFBD><br>
|
|||
|
488 : ---?<EFBFBD><EFBFBD><EFBFBD>ԢN<EFBFBD><EFBFBD><br>
|
|||
|
489 : ---?<EFBFBD><EFBFBD>?<EFBFBD>N<EFBFBD><EFBFBD><br>
|
|||
|
490 : ---?<EFBFBD><EFBFBD>?<EFBFBD>N<EFBFBD><EFBFBD><br>
|
|||
|
491 : ---?<EFBFBD><EFBFBD>?<EFBFBD>N<EFBFBD><EFBFBD><br>
|
|||
|
492 : <br>
|
|||
|
493 :
|
|||
|
494 : <li>BY|?????<EFBFBD>l??????<br>
|
|||
|
495 : BY|<EFBFBD>駍<EFBFBD>D<EFBFBD>k?|??<EFBFBD>D<EFBFBD>k?|???|????|??<EFBFBD>D<EFBFBD>k?|???|????|???????<EFBFBD><EFBFBD>??<EFBFBD>G<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?<EFBFBD>V?<EFBFBD>v?????<br>
|
|||
|
496 : <br>
|
|||
|
497 : </ul>
|
|||
|
498 :
|
|||
|
499 : <h4>
|
|||
|
500 : ??????????????
|
|||
|
501 : </h4>
|
|||
|
502 : <ul>
|
|||
|
503 : <li>BC|?????????????????????<EFBFBD>u??<EFBFBD>i?????????<br>
|
|||
|
504 : BC|<EFBFBD>k?[0?19](%X)|???<EFBFBD><EFBFBD>(%s)|??<EFBFBD>k?(%X)|???(%X)|HP(%X)|???(%X)|???<BR><BR>
|
|||
|
505 : ?????<EFBFBD>s<EFBFBD><EFBFBD>????????<BR>
|
|||
|
506 : ---?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?<BR>
|
|||
|
507 : ---?????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><BR>
|
|||
|
508 : ---?????<EFBFBD><EFBFBD>?????????<BR>
|
|||
|
509 : ---?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD><BR>
|
|||
|
510 : ---?????<EFBFBD><EFBFBD>??<BR>
|
|||
|
511 : ---?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<BR>
|
|||
|
512 : ---?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<BR>
|
|||
|
513 : ---?????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?<BR>
|
|||
|
514 : ---?????<EFBFBD><EFBFBD>??<BR>
|
|||
|
515 : <br>
|
|||
|
516 : <li>BP|????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???????????<EFBFBD>o<EFBFBD><EFBFBD>????????<br>
|
|||
|
517 : BP|<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>k?[0?19](%X)|???(%X)|?????(%X)|???<BR><BR>
|
|||
|
518 : ?????<EFBFBD>s<EFBFBD><EFBFBD>????????<BR>
|
|||
|
519 : ---?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?<BR>
|
|||
|
520 : ---?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?<EFBFBD>e??<EFBFBD><EFBFBD>?????<BR>
|
|||
|
521 : ---?????<EFBFBD><EFBFBD>????????????<BR>
|
|||
|
522 : </ul>
|
|||
|
523 : <h4>
|
|||
|
524 : ?????????<EFBFBD>e???????????????????
|
|||
|
525 : </h4>
|
|||
|
526 : <ul>
|
|||
|
527 : <li>BA|??????????????????????<EFBFBD>M??????????????????<EFBFBD>u???????<br>
|
|||
|
528 : BA|?????????(%X)|????(%X)|
|
|||
|
529 : <BR><BR>
|
|||
|
530 : ?????????????<EFBFBD>O???<EFBFBD><EFBFBD>???<EFBFBD>k?????????????????
|
|||
|
531 : ?????????????????????????????????????
|
|||
|
532 : ??????????????????????????<EFBFBD>_<EFBFBD><EFBFBD>??????????????????<EFBFBD><EFBFBD>???<BR>
|
|||
|
533 : ??????????<EFBFBD>u??<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>??????????????
|
|||
|
534 : ??<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>?????????????
|
|||
|
535 : </ul>
|
|||
|
536 : <br>
|
|||
|
537 : <br>
|
|||
|
538 : <hr>
|
|||
|
539 : <br>
|
|||
|
540 :
|
|||
|
541 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "B" ) == 0 ){
|
|||
|
char* command;
|
|||
|
command = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_B_recv( fd,command);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
722 : <LI><a name="SC_I"><font color=blue>servertoclient I( string data );<br></font></a>
|
|||
|
723 : (item)<br>
|
|||
|
724 : <br>
|
|||
|
725 : ????<EFBFBD>ѩ<EFBFBD>?S I ?<EFBFBD>u??????<EFBFBD><EFBFBD>????<EFBFBD>n?????<EFBFBD><EFBFBD><EFBFBD>e???????<EFBFBD>k???????
|
|||
|
726 : <EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>???
|
|||
|
727 :
|
|||
|
728 : <dl>
|
|||
|
729 : <dt>string data
|
|||
|
730 : <dd>????<EFBFBD>ѩ<EFBFBD>?
|
|||
|
731 : ?????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????
|
|||
|
732 : ???????????????????????
|
|||
|
733 : ?<EFBFBD><EFBFBD>?????????S I???????<EFBFBD>i????<EFBFBD>I<EFBFBD>d???????????<EFBFBD><EFBFBD>??
|
|||
|
734 : <EFBFBD><EFBFBD>?????????????<EFBFBD>k????????<EFBFBD>R<EFBFBD>e???<br>
|
|||
|
735 : </dl>
|
|||
|
736 : <br>
|
|||
|
737 : <hr>
|
|||
|
738 : <br>
|
|||
|
739 : <br>
|
|||
|
740 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "I" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_I_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
763 : <LI><a name="SI"><font color=blue>servertoclient SI( int fromindex, int toindex );</font><br>
|
|||
|
764 : (SwapItem)
|
|||
|
765 : ??????????????<EFBFBD><EFBFBD>??<EFBFBD>s?MI?<EFBFBD>i????
|
|||
|
766 : ??????????????<EFBFBD>G<EFBFBD>l??????????
|
|||
|
767 : <EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?????SI???????<EFBFBD><EFBFBD>??????
|
|||
|
768 : <EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??????(<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?????)??
|
|||
|
769 : ???????????<EFBFBD>h?????????????<EFBFBD>G<EFBFBD>l?????
|
|||
|
770 : <EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>??????????????????????
|
|||
|
771 : ?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????<EFBFBD>u?????????
|
|||
|
772 : ?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??????????????????????????
|
|||
|
773 : ????????????????<EFBFBD><EFBFBD>??????????????????
|
|||
|
774 : ???????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????
|
|||
|
775 : ?<EFBFBD>k???<EFBFBD>k?<EFBFBD><EFBFBD>?????????????<EFBFBD>G<EFBFBD>l???
|
|||
|
776 :
|
|||
|
777 : <dl>
|
|||
|
778 : <dt>int fromindex
|
|||
|
779 : <dd>?<EFBFBD>h?????????????
|
|||
|
780 : <dt>int toindex
|
|||
|
781 : <dd>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????????
|
|||
|
782 : </dl>
|
|||
|
783 : ?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD>s??MI?<EFBFBD>i?????
|
|||
|
784 : <br>
|
|||
|
785 : <hr>
|
|||
|
786 : <br>
|
|||
|
787 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "SI" ) == 0 ){
|
|||
|
int fromindex;
|
|||
|
int toindex;
|
|||
|
fromindex = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
toindex = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
lssproto_SI_recv( fd,fromindex,toindex);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
806 : <LI><a name="SC_MSG"><font color=blue>servertoclient MSG( int aindex , string text , int color );</font></a><br>
|
|||
|
807 : (MeSsaGe)
|
|||
|
808 : ????????????????????????????????
|
|||
|
809 : ??<EFBFBD><EFBFBD>??????<EFBFBD>G<EFBFBD><EFBFBD>????????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???
|
|||
|
810 : ?????????????????T??<EFBFBD><EFBFBD>????????????
|
|||
|
811 : <dl>
|
|||
|
812 : <dt>int aindex
|
|||
|
813 : <dd>??????????????????????<EFBFBD>{<EFBFBD>e????<EFBFBD><EFBFBD>
|
|||
|
814 : ??????????????????
|
|||
|
815 : <dt>string text
|
|||
|
816 : <dd>??????<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>???mm/dd hh:mm|text...|graphicsno|lv|name|itemgraphicsno
|
|||
|
817 : ??????????????<EFBFBD>T<EFBFBD><EFBFBD>????<EFBFBD>V???????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>??????<EFBFBD>k??
|
|||
|
818 : <EFBFBD>G<EFBFBD><EFBFBD>????-1???<EFBFBD><EFBFBD>????????????<EFBFBD>V????????mm/dd hh:mm|text|-1
|
|||
|
819 : ???????<EFBFBD><EFBFBD>??????????????<EFBFBD>k???<EFBFBD>t??????
|
|||
|
820 : lv????????????????????<EFBFBD><EFBFBD><EFBFBD>q??<EFBFBD>t????????????????????
|
|||
|
821 : itemgraphicsno ?????????????<EFBFBD>k???<EFBFBD>t??????
|
|||
|
822 : <dt>int color
|
|||
|
823 : <dd><EFBFBD><EFBFBD>?
|
|||
|
824 : <dt>
|
|||
|
825 : </dl>
|
|||
|
826 : <br>
|
|||
|
827 : <hr>
|
|||
|
828 : <br>
|
|||
|
829 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "MSG" ) == 0 ){
|
|||
|
int aindex;
|
|||
|
char* text;
|
|||
|
int color;
|
|||
|
aindex = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
text = lssproto_wrapStringAddr( lssproto_stringwrapper[2] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[3] ));
|
|||
|
color = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
lssproto_MSG_recv( fd,aindex,text,color);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
851 : <LI><a name="SC_PME"><font color=blue>servertoclient PME( int objindex, int graphicsno, int x, int y, int dir, int flg, int no, string cdata );<br></font></a>
|
|||
|
852 : (PetMeSsaEffect)
|
|||
|
853 : ?????????????<EFBFBD>K<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????<br><br>
|
|||
|
854 : <dl>
|
|||
|
855 : <dt>int objindex
|
|||
|
856 : <dd>??????????<EFBFBD>k??
|
|||
|
857 : <dt>int graphicsno
|
|||
|
858 : <dd><EFBFBD>K<EFBFBD><EFBFBD>????????<EFBFBD>k?
|
|||
|
859 : <dt>int x,y
|
|||
|
860 : <dd>???<EFBFBD>t?<EFBFBD><EFBFBD>????
|
|||
|
861 : <dt>int dir;
|
|||
|
862 : <dd>??<EFBFBD><EFBFBD>??????????
|
|||
|
863 : <dt>int flg
|
|||
|
864 : <dd>?????(0)??????(1)?
|
|||
|
865 : <dt>int no
|
|||
|
866 : <dd>?<EFBFBD>ҧk??
|
|||
|
867 : <dt>string cdata
|
|||
|
868 : <dd>C ?????<EFBFBD>V????????????????<EFBFBD><EFBFBD>????????????????????
|
|||
|
869 : ???<EFBFBD><EFBFBD>???????????????<EFBFBD><EFBFBD>?????????????<EFBFBD><EFBFBD>??
|
|||
|
870 : ????????C ??????????
|
|||
|
871 : </dl>
|
|||
|
872 : <br>
|
|||
|
873 : <br>
|
|||
|
874 : <hr>
|
|||
|
875 : <br>
|
|||
|
876 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "PME" ) == 0 ){
|
|||
|
int objindex;
|
|||
|
int graphicsno;
|
|||
|
int x;
|
|||
|
int y;
|
|||
|
int dir;
|
|||
|
int flg;
|
|||
|
int no;
|
|||
|
char* cdata;
|
|||
|
objindex = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
graphicsno = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
x = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
y = lssproto_demkstr_int( lssproto.token_list[5] );
|
|||
|
dir = lssproto_demkstr_int( lssproto.token_list[6] );
|
|||
|
flg = lssproto_demkstr_int( lssproto.token_list[7] );
|
|||
|
no = lssproto_demkstr_int( lssproto.token_list[8] );
|
|||
|
cdata = lssproto_wrapStringAddr( lssproto_stringwrapper[8] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[9] ));
|
|||
|
lssproto_PME_recv( fd,objindex,graphicsno,x,y,dir,flg,no,cdata);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
882 : <LI><a name="SC_AB"><font color=blue>servertoclient AB( string data );</font></a><br>
|
|||
|
883 : ?????????????<EFBFBD><EFBFBD>??????????<EFBFBD>u<EFBFBD><EFBFBD>??
|
|||
|
884 : <dl>
|
|||
|
885 : <dt>string data
|
|||
|
886 : <dd><EFBFBD>ѩ<EFBFBD>?<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??<EFBFBD>ѩ<EFBFBD>?????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD><EFBFBD>q?
|
|||
|
887 : ???????????????????????????
|
|||
|
888 : ???<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????
|
|||
|
889 : ???????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>????
|
|||
|
890 : <code>?<EFBFBD><EFBFBD>?|<EFBFBD>K<EFBFBD><EFBFBD>?|...</code><EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?????
|
|||
|
891 :
|
|||
|
892 : ?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>????
|
|||
|
893 : <br>
|
|||
|
894 : <code><EFBFBD><EFBFBD>????|<EFBFBD><EFBFBD><EFBFBD>q(<EFBFBD><EFBFBD>??)|????<EFBFBD>k|duelpoint|???|??<EFBFBD>k?
|
|||
|
895 : </code>
|
|||
|
896 : <br>
|
|||
|
897 : ?????? N<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD>q????????? 4(N-1)+1<EFBFBD>k??
|
|||
|
898 : ??????????????????????????<EFBFBD>V??
|
|||
|
899 : ????????????????<EFBFBD>V?????<EFBFBD><EFBFBD><EFBFBD>q<EFBFBD><EFBFBD>???<a
|
|||
|
900 : href="#escaping">?????</a>??????<EFBFBD>S?????
|
|||
|
901 : ????0????????1?<EFBFBD><EFBFBD>???????????
|
|||
|
902 : ??<EFBFBD>k???????<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>?????
|
|||
|
903 : setup.cf?? servernumber=n ?n?<EFBFBD>k??<EFBFBD><EFBFBD>????
|
|||
|
904 : <EFBFBD>{<EFBFBD><EFBFBD>??<EFBFBD>u????<EFBFBD><EFBFBD><EFBFBD>q????????<EFBFBD><EFBFBD>????<EFBFBD>q?AB
|
|||
|
905 : ?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD>ѩ<EFBFBD>??<EFBFBD><EFBFBD>???????????
|
|||
|
906 : ??????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD>ѩ<EFBFBD>?????<EFBFBD><EFBFBD>?
|
|||
|
907 : 2<EFBFBD>T??<EFBFBD><EFBFBD>????????
|
|||
|
908 :
|
|||
|
909 : </dl>
|
|||
|
910 : <br>
|
|||
|
911 : <hr>
|
|||
|
912 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "AB" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_AB_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
913 : <LI><a name="SC_ABI"><font color=blue>servertoclient ABI( int num, string data );</font></a><br>
|
|||
|
914 : AB?<EFBFBD>O<EFBFBD>l<EFBFBD>\?num ??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????????<EFBFBD>k???????<EFBFBD>V?????
|
|||
|
915 : data??<EFBFBD><EFBFBD>?AB?????<br>
|
|||
|
916 : <br>
|
|||
|
917 : <br>
|
|||
|
918 : <hr>
|
|||
|
919 : <br>
|
|||
|
920 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "ABI" ) == 0 ){
|
|||
|
int num;
|
|||
|
char* data;
|
|||
|
num = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[2] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[3] ));
|
|||
|
lssproto_ABI_recv( fd,num,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1011 : <LI><a name="S2CTK"><font color=blue>servertoclient TK( int index,string message ,int color);<br></font></a>
|
|||
|
1012 : <dl>
|
|||
|
1013 : <dt>index
|
|||
|
1014 : <dd>????????????????-1 ?????????<EFBFBD><EFBFBD>
|
|||
|
1015 : ?????????????<br>
|
|||
|
1016 : <dt>string
|
|||
|
1017 : <dd>string ?<EFBFBD><EFBFBD>??, "|" ?2???<EFBFBD><EFBFBD>?????????????
|
|||
|
1018 : ???<EFBFBD><EFBFBD>?????2????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?????2??
|
|||
|
1019 : ??????<a href="#escaping">?????</a>??????
|
|||
|
1020 : ?????????????????????
|
|||
|
1021 : <ul>
|
|||
|
1022 : <li>"P" ???<br>
|
|||
|
1023 : ??????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????????????
|
|||
|
1024 : ??????????????????????
|
|||
|
1025 : <pre>
|
|||
|
1026 : "P|?????"
|
|||
|
1027 : </pre>
|
|||
|
1028 : <li>"F"???<br>
|
|||
|
1029 : <pre>
|
|||
|
1030 : F|charaindex|?????
|
|||
|
1031 : </pre>
|
|||
|
1032 : ??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD><EFBFBD>e???charaindex???<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?
|
|||
|
1033 : ??????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???<br>
|
|||
|
1034 :
|
|||
|
1035 : </ul>
|
|||
|
1036 : <dt>color
|
|||
|
1037 : <dd>??????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?<EFBFBD>e???
|
|||
|
1038 : </dl>
|
|||
|
1039 : <br>
|
|||
|
1040 : <hr>
|
|||
|
1041 : <br>
|
|||
|
1042 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "TK" ) == 0 ){
|
|||
|
int index;
|
|||
|
char* message;
|
|||
|
int color;
|
|||
|
index = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
message = lssproto_wrapStringAddr( lssproto_stringwrapper[2] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[3] ));
|
|||
|
color = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
lssproto_TK_recv( fd,index,message,color);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
if( strcmp( funcname , "MC" ) == 0 ){
|
|||
|
int fl;
|
|||
|
int x1;
|
|||
|
int y1;
|
|||
|
int x2;
|
|||
|
int y2;
|
|||
|
int tilesum;
|
|||
|
int objsum;
|
|||
|
int eventsum;
|
|||
|
char* data;
|
|||
|
fl = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
x1 = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
y1 = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
x2 = lssproto_demkstr_int( lssproto.token_list[5] );
|
|||
|
y2 = lssproto_demkstr_int( lssproto.token_list[6] );
|
|||
|
tilesum = lssproto_demkstr_int( lssproto.token_list[7] );
|
|||
|
objsum = lssproto_demkstr_int( lssproto.token_list[8] );
|
|||
|
eventsum = lssproto_demkstr_int( lssproto.token_list[9] );
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[9] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[10] ));
|
|||
|
#ifdef __SKYISLAND
|
|||
|
extern void SkyIslandSetNo( int fl);
|
|||
|
SkyIslandSetNo( fl);
|
|||
|
#endif
|
|||
|
lssproto_MC_recv( fd,fl,x1,y1,x2,y2,tilesum,objsum,eventsum,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
if( strcmp( funcname , "M" ) == 0 ){
|
|||
|
int fl;
|
|||
|
int x1;
|
|||
|
int y1;
|
|||
|
int x2;
|
|||
|
int y2;
|
|||
|
char* data;
|
|||
|
fl = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
x1 = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
y1 = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
x2 = lssproto_demkstr_int( lssproto.token_list[5] );
|
|||
|
y2 = lssproto_demkstr_int( lssproto.token_list[6] );
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[6] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[7] ));
|
|||
|
lssproto_M_recv( fd,fl,x1,y1,x2,y2,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1135 : <LI><a name="S2CC"><font color=blue>servertoclient C( string data );<bR></font></a>
|
|||
|
1136 : (Characters)
|
|||
|
1137 : ??????? CA ?????????????<EFBFBD><EFBFBD>??????? C
|
|||
|
1138 : ????????????????????????
|
|||
|
1139 : <br><br>
|
|||
|
1140 : <dl>
|
|||
|
1141 : <dt>string data
|
|||
|
1142 : <dd> ??????? ???3<EFBFBD><EFBFBD>?????????????
|
|||
|
1143 : ?????.?????????<EFBFBD><EFBFBD>??????<EFBFBD>S'|'?????
|
|||
|
1144 : ????
|
|||
|
1145 :
|
|||
|
1146 : <ul>
|
|||
|
1147 : <li>??<EFBFBD>S???????????12??<EFBFBD><EFBFBD>?<br>
|
|||
|
1148 : ?????<EFBFBD><EFBFBD>??
|
|||
|
1149 :
|
|||
|
1150 : <code>WHICHTYPE|CHARINDEX|X|Y|DIR|BASEIMG|LEVEL|NAMECOLOR|NAME|SELFTITLE|WALKABLE|HEIGHT|POPUPNAMECOLOR</code>
|
|||
|
1151 : ???????????????????????????<br>
|
|||
|
1152 :
|
|||
|
1153 : WHICHTYPE ????????????????<EFBFBD><EFBFBD>????
|
|||
|
1154 : ????????????????????<EFBFBD>e???????<br>
|
|||
|
1155 : <pre>
|
|||
|
1156 : typedef enum
|
|||
|
1157 : {
|
|||
|
1158 : CHAR_TYPENONE, ?????
|
|||
|
1159 : CHAR_TYPEPLAYER, ?????
|
|||
|
1160 : CHAR_TYPEENEMY, <EFBFBD><EFBFBD>
|
|||
|
1161 : CHAR_TYPEPET, ???
|
|||
|
1162 : CHAR_TYPEDOOR, ??
|
|||
|
1163 : CHAR_TYPEBOX , <EFBFBD><EFBFBD>?
|
|||
|
1164 : CHAR_TYPEMSG , ?<EFBFBD>Y
|
|||
|
1165 : CHAR_TYPEWARP , ??????
|
|||
|
1166 : CHAR_TYPESHOP , <EFBFBD><EFBFBD>
|
|||
|
1167 : CHAR_TYPEHEALER , ????
|
|||
|
1168 : CHAR_TYPEOLDMAN , <EFBFBD><EFBFBD>?
|
|||
|
1169 : CHAR_TYPEROOMADMIN, <EFBFBD>ۥh<EFBFBD><EFBFBD>?
|
|||
|
1170 : CHAR_TYPETOWNPEOPLE, ?????
|
|||
|
1171 : CHAR_TYPEDENGON, <EFBFBD><EFBFBD>?<EFBFBD>\
|
|||
|
1172 : CHAR_TYPEADM, <EFBFBD><EFBFBD>?<EFBFBD>\
|
|||
|
1173 : CHAR_TYPETEMPLE, Temple master
|
|||
|
1174 : CHAR_TYPESTORYTELLER, ???
|
|||
|
1175 : CHAR_TYPERANKING, <EFBFBD>ۥh<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???
|
|||
|
1176 : CHAR_TYPEOTHERNPC, ??<EFBFBD>\???<EFBFBD>n<EFBFBD><EFBFBD>?????NPC
|
|||
|
1177 : CHAR_TYPEPRINTPASSMAN, ????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??NPC
|
|||
|
1178 : CHAR_TYPENPCENEMY, ?<EFBFBD>e<EFBFBD><EFBFBD>
|
|||
|
1179 : CHAR_TYPEACTION, ??????<EFBFBD>T???NPC
|
|||
|
1180 : CHAR_TYPEWINDOWMAN, ?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??NPC??????)
|
|||
|
1181 : CHAR_TYPESAVEPOINT, ???????
|
|||
|
1182 : CHAR_TYPEWINDOWHEALER, ?????????????
|
|||
|
1183 : CHAR_TYPEITEMSHOP, ?<EFBFBD><EFBFBD>
|
|||
|
1184 : CHAR_TYPESTONESHOP, <EFBFBD><EFBFBD><EFBFBD>l?????????
|
|||
|
1185 : CHAR_TYPEDUELRANKING, DUEL?????NPC
|
|||
|
1186 : CHAR_TYPEWARPMAN, ?????NPC
|
|||
|
1187 : CHAR_TYPEEVENT, ????NPC
|
|||
|
1188 : CHAR_TYPEMIC, ????NPC
|
|||
|
1189 : CHAR_TYPELUCKYMAN, ????NPC
|
|||
|
1190 : CHAR_TYPEBUS, ??????
|
|||
|
1191 : CHAR_TYPECHARM, ????NPC
|
|||
|
1192 : CHAR_TYPENUM,
|
|||
|
1193 : }CHAR_TYPE;
|
|||
|
1194 : </pre>
|
|||
|
1195 :
|
|||
|
1196 : ???<EFBFBD>\???????NPC?<EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD>
|
|||
|
1197 : ????????<EFBFBD>d?????<EFBFBD>u??<EFBFBD><EFBFBD>?????
|
|||
|
1198 : ????????????????<EFBFBD><EFBFBD>?????????
|
|||
|
1199 : ??????????????????????<EFBFBD><EFBFBD>???
|
|||
|
1200 : ??????????????????????????
|
|||
|
1201 : ??????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD>ѩ<EFBFBD>???<EFBFBD>ѩ<EFBFBD>?????????
|
|||
|
1202 : ???????????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????
|
|||
|
1203 : <EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>??????????????<EFBFBD>u<EFBFBD>h<EFBFBD><EFBFBD>???
|
|||
|
1204 : ??????????? SELFTITLE??????????
|
|||
|
1205 : ?????<EFBFBD>S????????????????????
|
|||
|
1206 : ?????????????????(CA)???????
|
|||
|
1207 : ??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???CHARINDEX????<EFBFBD><EFBFBD>????????<EFBFBD>{
|
|||
|
1208 : <EFBFBD>e???<EFBFBD>k??BASEIMG?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD>k??LEVEL???
|
|||
|
1209 : ?????(0??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????<EFBFBD>k?NPC???<EFBFBD><EFBFBD>??)
|
|||
|
1210 : WALKABLE?1?????<EFBFBD><EFBFBD>?<EFBFBD>G?????????0??<EFBFBD>G
|
|||
|
1211 : ???????????HEIGHT????????????
|
|||
|
1212 : ?????<EFBFBD><EFBFBD><EFBFBD>e?
|
|||
|
1213 :
|
|||
|
1214 : ???????<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???<a href="#escaping">
|
|||
|
1215 : ?????</a>???????????'|'??????
|
|||
|
1216 : <EFBFBD><EFBFBD>?????????????????????????'
|
|||
|
1217 : |'????<EFBFBD><EFBFBD>?????????????<EFBFBD>O??'|'??
|
|||
|
1218 : ??????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????
|
|||
|
1219 : ?????????<EFBFBD>S????????<EFBFBD><EFBFBD>???
|
|||
|
1220 : ???????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>????????<EFBFBD>@<EFBFBD>e
|
|||
|
1221 : ??????<EFBFBD><EFBFBD><EFBFBD>q??<EFBFBD><EFBFBD>??????<br>
|
|||
|
1222 :
|
|||
|
1223 : <Li>??<EFBFBD>S???????????6??<EFBFBD><EFBFBD>?<br>
|
|||
|
1224 : ?????<EFBFBD><EFBFBD>??
|
|||
|
1225 : <code>INDEX|X|Y|BASEIMG|LEVEL|ITEM1LINEINFO</code>
|
|||
|
1226 : ?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????????????<EFBFBD>ѩ<EFBFBD>????
|
|||
|
1227 : INDEX?????????????????INDEX????
|
|||
|
1228 : ???????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>????X,Y?????????
|
|||
|
1229 : ???<EFBFBD>t?BASEIMG????<EFBFBD>k??ITEM1LINEINFO?1?
|
|||
|
1230 : info?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????<EFBFBD>ѩ<EFBFBD>?????????????<EFBFBD><EFBFBD>
|
|||
|
1231 : ?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD>ѩ<EFBFBD>?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????????????
|
|||
|
1232 : ?CA?????ITEM1LINEINFO?<a href="#escape">????
|
|||
|
1233 : ?</a>????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?
|
|||
|
1234 :
|
|||
|
1235 : <Li>??<EFBFBD>S???????????4??<EFBFBD><EFBFBD>?<br>
|
|||
|
1236 : ?????<EFBFBD><EFBFBD>??
|
|||
|
1237 : <code>INDEX|X|Y|VALUE</code>
|
|||
|
1238 : ?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????????????<EFBFBD>ѩ<EFBFBD>????<EFBFBD><EFBFBD>???
|
|||
|
1239 : ?????INDEX,X,Y ??????<EFBFBD>i??VALUE ????
|
|||
|
1240 : ?????????????????????<EFBFBD>ѩ<EFBFBD>????
|
|||
|
1241 : <li>??<EFBFBD>S???????????1??<EFBFBD><EFBFBD>?<br>
|
|||
|
1242 : <code>INDEX</code>
|
|||
|
1243 : ??????C????????
|
|||
|
1244 : </ul>
|
|||
|
1245 : </dl>
|
|||
|
1246 : <br>
|
|||
|
1247 : <br>
|
|||
|
1248 : <hr>
|
|||
|
1249 : <br>
|
|||
|
1250 :
|
|||
|
1251 :
|
|||
|
1252 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "C" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_C_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1253 : <LI><a name="SC_CA"><font color=blue>servertoclient CA( string data );<br></font></a>
|
|||
|
1254 : (CharacterAction)
|
|||
|
1255 : ???<EFBFBD>d?????????????<EFBFBD>֢t??<EFBFBD><EFBFBD>???
|
|||
|
1256 : ??????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???
|
|||
|
1257 : ?????1?????????<EFBFBD><EFBFBD>????????????????
|
|||
|
1258 : ??<EFBFBD><EFBFBD>?????<br><br>
|
|||
|
1259 :
|
|||
|
1260 : <dl>
|
|||
|
1261 : <dt>string data
|
|||
|
1262 : <dd>CHARINDEX|X|Y|ACTION|PARAM1|PARAM2|PARAM3|PARAM4|....??
|
|||
|
1263 : ?????????????PARAM????????????
|
|||
|
1264 : <EFBFBD><EFBFBD>????????????????????X,Y??<EFBFBD>t??
|
|||
|
1265 : ???????????????<EFBFBD>t?<EFBFBD><EFBFBD><EFBFBD>e???
|
|||
|
1266 : ??<EFBFBD><EFBFBD>?????????????
|
|||
|
1267 : <table border>
|
|||
|
1268 : <tr><td>ACTION</td><td>PARAM1</td><td>PARAM2</td>
|
|||
|
1269 : <td>PARAM3</td><td>PARAM4</td></tr>
|
|||
|
1270 : <tr><td>Stand:0</td><td><EFBFBD><EFBFBD>?0~7</td><td></td><td></td><td></td></tr>
|
|||
|
1271 : <tr><td>Walk:1</td><td><EFBFBD><EFBFBD>?0~7</td><td></td><td></td><td></td></tr>
|
|||
|
1272 : <tr><td>Attack:2</td><td><EFBFBD><EFBFBD>?0~7</td><td></td><td></td><td></td></tr>
|
|||
|
1273 : <tr><td>Throw:3</td><td><EFBFBD><EFBFBD>?0~7</td><td></td><td></td><td></td></tr>
|
|||
|
1274 : <tr><td>Damage:4</td><td><EFBFBD><EFBFBD>?0~7</td><td></td><td></td></tr>
|
|||
|
1275 : <tr><td>Dead:5</td><td><EFBFBD><EFBFBD>?0~7</td><td></td><td></td><td></td></tr>
|
|||
|
1276 : <tr><td>UseMagic:6</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1277 : <tr><td>UseItem:7</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1278 : <tr><td>Effect:8</td><td><EFBFBD><EFBFBD>?0~7</td><td>?????<EFBFBD>k?</td></tr>
|
|||
|
1279 : <tr><td>Down:10 (<EFBFBD>X??)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1280 : <tr><td>Sit:11 (??)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1281 : <tr><td>Hand:12 (<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1282 : <tr><td>Pleasure:13 (??)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1283 : <tr><td>Angry:14 (<EFBFBD>W?)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1284 : <tr><td>Sad:15 (<EFBFBD>v??)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1285 : <tr><td>Guard:16 (???)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1286 : <tr><td>actionwalk:17 (??????<EFBFBD><EFBFBD>?)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1287 : <tr><td>nod:18 (????)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1288 : <tr><td>actionstand:19 (???????????)</td><td><EFBFBD><EFBFBD>?0~7</td></tr>
|
|||
|
1289 : <tr><td>Battle:20 (<EFBFBD>P<EFBFBD>f<EFBFBD>ѩ<EFBFBD>)</td><td><EFBFBD><EFBFBD>?0~7</td><td>BattleNo(-1 ??<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>??</td><td>SideNo</td><td>HelpNo?????????CA<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??</td></tr>
|
|||
|
1290 : <tr><td>Leader:21 (????<EFBFBD>ѩ<EFBFBD>)</td><td><EFBFBD><EFBFBD>?0~7</td><td>0:<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>? 1:<EFBFBD><EFBFBD><EFBFBD><EFBFBD></td></tr>
|
|||
|
1291 : <tr><td>Watch:22 (<EFBFBD>P<EFBFBD>f?<EFBFBD>P)</td><td><EFBFBD><EFBFBD>?0~7</td><td>0:<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>? 1:<EFBFBD><EFBFBD><EFBFBD><EFBFBD></td></tr>
|
|||
|
1292 : <tr><td>namecolor:23(<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD><EFBFBD>ѩ<EFBFBD>)</td><td><EFBFBD><EFBFBD>?0~7</td><td><EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD><EFBFBD>k?</td></tr>
|
|||
|
1293 : <tr><td>Turn:30(<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?)</td><td><EFBFBD><EFBFBD>?0~7</td><td></td></tr>
|
|||
|
1294 : <tr><td>Warp:31(???)</td><td><EFBFBD><EFBFBD>?0~7</td><td></td></tr>
|
|||
|
1295 :
|
|||
|
1296 : </table>
|
|||
|
1297 : ACTION?<EFBFBD>k?<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??<EFBFBD>Z???????
|
|||
|
1298 : </dl>
|
|||
|
1299 : <br>
|
|||
|
1300 : <br>
|
|||
|
1301 : <hr>
|
|||
|
1302 : <br>
|
|||
|
1303 :
|
|||
|
1304 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "CA" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_CA_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1305 : <LI><a name="CD"><font color=blue>servertoclient CD( string data );<bR></font></a>
|
|||
|
1306 : (CharacterDelete)
|
|||
|
1307 : data ??????,???<EFBFBD><EFBFBD>??????????
|
|||
|
1308 : <EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>???
|
|||
|
1309 : ??ID????????????<EFBFBD><EFBFBD>????????????????
|
|||
|
1310 : ?<EFBFBD><EFBFBD>???
|
|||
|
1311 : <br>
|
|||
|
1312 : <hr>
|
|||
|
1313 : <br>
|
|||
|
1314 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "CD" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_CD_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1315 : <LI><a name="R"><font color=blue>servertoclient R( string data );<br></font></a>
|
|||
|
1316 : (Radar)
|
|||
|
1317 : ?????<EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD>?????????????<EFBFBD><EFBFBD>?
|
|||
|
1318 : ???????????????<EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>???
|
|||
|
1319 : ????10<EFBFBD><EFBFBD>????????1<EFBFBD><EFBFBD>?????<br><br>
|
|||
|
1320 :
|
|||
|
1321 : <dl>
|
|||
|
1322 : <dt>string data
|
|||
|
1323 : <dd>x ,y, kind ,???<EFBFBD>k?'|'????????????
|
|||
|
1324 : ???'|'????????
|
|||
|
1325 : x,y???????<EFBFBD>E<EFBFBD>n?<EFBFBD>t?kind????????<EFBFBD>k????
|
|||
|
1326 : ???????????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD>e???????????
|
|||
|
1327 : ?<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>??????
|
|||
|
1328 : ?????????
|
|||
|
1329 : <table border>
|
|||
|
1330 : <tr><td>kind?<EFBFBD>k</td><td><EFBFBD><EFBFBD>?</td></tr>
|
|||
|
1331 : <tr><td>E</td><td><EFBFBD><EFBFBD></td></tr>
|
|||
|
1332 : <tr><td>P</td><td>?????</td></tr>
|
|||
|
1333 : <tr><td>S</td><td>?</td></tr>
|
|||
|
1334 : <tr><td>G</td><td>??</td></tr>
|
|||
|
1335 : <tr><td>I</td><td>????(???)</td></tr>
|
|||
|
1336 : </table>
|
|||
|
1337 : </dl>
|
|||
|
1338 : data??<EFBFBD><EFBFBD><code>"12|22|E|13|24|P|14|28|P"</code>
|
|||
|
1339 : ??<EFBFBD><EFBFBD>?????????????
|
|||
|
1340 : <br>
|
|||
|
1341 : <br>
|
|||
|
1342 : <hr>
|
|||
|
1343 : <br>
|
|||
|
1344 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "R" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_R_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1369 : <LI><a name="SC_S"><font color=blue>servertoclient S( string data );<br></font></a>
|
|||
|
1370 : (Status)
|
|||
|
1371 : ???????????<EFBFBD><EFBFBD>???
|
|||
|
1372 : ???? ??????<EFBFBD><EFBFBD>?(?<EFBFBD><EFBFBD>?)<EFBFBD><EFBFBD>? ?????????????
|
|||
|
1373 : 1<EFBFBD><EFBFBD>?????????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??2<EFBFBD><EFBFBD>????????
|
|||
|
1374 : <EFBFBD><EFBFBD>???????????????????<EFBFBD>S??'|'?????????
|
|||
|
1375 : 2??????????<EFBFBD><EFBFBD>?????<br>
|
|||
|
1376 : <br>
|
|||
|
1377 : <UL>
|
|||
|
1378 : <LI>P <EFBFBD>u?????<br><br>
|
|||
|
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 <EFBFBD><EFBFBD>????
|
|||
|
1383 : <EFBFBD><EFBFBD>??index <EFBFBD><EFBFBD><EFBFBD>q <EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>? <br>
|
|||
|
1384 :
|
|||
|
1385 : ????? '|' ??????<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???
|
|||
|
1386 : <a href="#escaping">?????</a>?????
|
|||
|
1387 : ??<EFBFBD>S????????<EFBFBD>G<EFBFBD><EFBFBD>????<br>
|
|||
|
1388 : ?????<EFBFBD>k??????<br>
|
|||
|
1389 : kubun ???<EFBFBD>V?????<EFBFBD>q???????<EFBFBD><EFBFBD>?
|
|||
|
1390 : ??<EFBFBD><EFBFBD>???????????????????????<EFBFBD>k?<EFBFBD>V???<EFBFBD><EFBFBD>??????
|
|||
|
1391 : ?????????hp?Maxhp?kubun ????????<EFBFBD>t???????<br>
|
|||
|
1392 : <table border>
|
|||
|
1393 : <tr><td>kunun</td><td>int</td></tr>
|
|||
|
1394 : <tr><td>Hp(<EFBFBD>l?)hp</td><td>int</td></tr>
|
|||
|
1395 : <tr><td>MaxHp</td><td>int</td></tr>
|
|||
|
1396 : <tr><td>Mp(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???)</td><td>int</td></tr>
|
|||
|
1397 : <tr><td>MaxMp</td><td>int</td></tr>
|
|||
|
1398 : <tr><td>Vital(<EFBFBD>l?)</td><td>int</td></tr>
|
|||
|
1399 : <tr><td>Str(??)</td><td>int</td></tr>
|
|||
|
1400 : <tr><td>Tough(<EFBFBD>Ǧ<EFBFBD>?)</td><td>int</td></tr>
|
|||
|
1401 : <tr><td>Dex(<EFBFBD><EFBFBD>??)</td><td>int</td></tr>
|
|||
|
1402 : <tr><td>Exp(??<EFBFBD>k)exp</td><td>int</td></tr>
|
|||
|
1403 : <tr><td>MaxExp(??????<EFBFBD>k)</td><td>int</td></tr>
|
|||
|
1404 : <tr><td>Level(???)</td><td>int</td></tr>
|
|||
|
1405 : <tr><td>Attack(???)</td><td>int</td></tr>
|
|||
|
1406 : <tr><td>Defense(<EFBFBD>駍?)</td><td>int</td></tr>
|
|||
|
1407 : <tr><td>fQuick(?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??)</td><td>int</td></tr>
|
|||
|
1408 : <tr><td>fCharm(<EFBFBD>u?)</td><td>int</td></tr>
|
|||
|
1409 : <tr><td>fLuck(?)</td><td>int</td></tr>
|
|||
|
1410 : <tr><td>fEarth(<EFBFBD><EFBFBD>)fixearthat</td><td>int</td></tr>
|
|||
|
1411 : <tr><td>fWater(?)</td><td>int</td></tr>
|
|||
|
1412 : <tr><td>fFire(?)</td><td>int</td></tr>
|
|||
|
1413 : <tr><td>fWid(?)fixwindat</td><td>int</td></tr>
|
|||
|
1414 : <tr><td>Gold(??)</td><td>int</td></tr>
|
|||
|
1415 : <tr><td><EFBFBD><EFBFBD>??index</td><td>int</td></tr>
|
|||
|
1416 : <tr><td>????????</td><td>int</td></tr>
|
|||
|
1417 : <tr><td><EFBFBD><EFBFBD><EFBFBD>q</td><td><EFBFBD><EFBFBD>??</td></tr>
|
|||
|
1418 : <tr><td><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?</td><td><EFBFBD><EFBFBD>??</td></tr>
|
|||
|
1419 : </table>
|
|||
|
1420 : ?<EFBFBD>l?( char ?<EFBFBD><EFBFBD>??????? )<br>
|
|||
|
1421 : <code>
|
|||
|
1422 : P10|20|10|20|10|10|10|1|2|13|13|1|100|10|???|abc|def
|
|||
|
1423 : </code>
|
|||
|
1424 : <br><br>
|
|||
|
1425 : <li>C ?<EFBFBD><EFBFBD><br><br>
|
|||
|
1426 : floor maxx maxy x y<br>
|
|||
|
1427 : ? | ??<EFBFBD><EFBFBD>?????<br>
|
|||
|
1428 : ?<EFBFBD>l?( char ?<EFBFBD><EFBFBD>??????? )<br>
|
|||
|
1429 : <code>
|
|||
|
1430 : C1024|100|100|10|20
|
|||
|
1431 : </code>
|
|||
|
1432 : <EFBFBD><EFBFBD>?????????ID1024, ???100x100 X 10,Y 20???
|
|||
|
1433 : ??????????????<EFBFBD><EFBFBD>??????????????
|
|||
|
1434 : ????????<EFBFBD><EFBFBD>????????<EFBFBD>l???????????
|
|||
|
1435 : ??????????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>??<EFBFBD>t??????
|
|||
|
1436 : ??????????<EFBFBD><EFBFBD>???<EFBFBD>h<EFBFBD><EFBFBD>?????????????
|
|||
|
1437 : ?????????????<EFBFBD><EFBFBD>??<EFBFBD>k??<EFBFBD><EFBFBD>??????????
|
|||
|
1438 :
|
|||
|
1439 :
|
|||
|
1440 : <br><br>
|
|||
|
1441 : <LI>I <EFBFBD>u????<br><br>
|
|||
|
1442 : (????1)|(????2)...(????n)<br>
|
|||
|
1443 : ?????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????
|
|||
|
1444 : ?????????????????6???????????
|
|||
|
1445 : ?<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>???<br>
|
|||
|
1446 : <br>
|
|||
|
1447 : <EFBFBD><EFBFBD><EFBFBD>q|<EFBFBD><EFBFBD><EFBFBD>q2|????|?????<EFBFBD>C<EFBFBD><EFBFBD>|???<EFBFBD>k?|<EFBFBD><EFBFBD>??<EFBFBD>u<EFBFBD><EFBFBD>?|<EFBFBD><EFBFBD>?<EFBFBD>n<EFBFBD><EFBFBD>|???????|????<br>
|
|||
|
1448 : <br>
|
|||
|
1449 : <ul>
|
|||
|
1450 : <li>????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?????
|
|||
|
1451 : <li><EFBFBD><EFBFBD><EFBFBD>q2?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????????????<EFBFBD>u??<EFBFBD>V??<EFBFBD>e?
|
|||
|
1452 : ?????????????2???<EFBFBD>V????
|
|||
|
1453 : <li>?????<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD>?<EFBFBD>v???<EFBFBD><EFBFBD>??
|
|||
|
1454 : <li>?????<EFBFBD>C<EFBFBD><EFBFBD>?
|
|||
|
1455 : <li>???<EFBFBD>k?????<EFBFBD>k??
|
|||
|
1456 : <li><EFBFBD><EFBFBD>??<EFBFBD>u<EFBFBD><EFBFBD>??????????????<EFBFBD><EFBFBD>??????<EFBFBD>u??<EFBFBD>V?????
|
|||
|
1457 : ????????????????<EFBFBD>e???????<br>
|
|||
|
1458 : <pre>
|
|||
|
1459 : typedef enum
|
|||
|
1460 : {
|
|||
|
1461 : ITEM_FIELD_ALL, ????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??
|
|||
|
1462 : ITEM_FIELD_BATTLE, <EFBFBD>P<EFBFBD>f???
|
|||
|
1463 : ITEM_FIELD_MAP, <EFBFBD>G<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??
|
|||
|
1464 :
|
|||
|
1465 : }ITEM_FIELDTYPE;
|
|||
|
1466 : </pre>
|
|||
|
1467 : <br>
|
|||
|
1468 : <li><EFBFBD><EFBFBD>?<EFBFBD>n<EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>??<EFBFBD>n<EFBFBD><EFBFBD>?<EFBFBD>V?????
|
|||
|
1469 : ????????????<EFBFBD>e???????
|
|||
|
1470 : <pre>
|
|||
|
1471 : typedef enum
|
|||
|
1472 : {
|
|||
|
1473 : ITEM_TARGET_MYSELF, <EFBFBD><EFBFBD><EFBFBD><EFBFBD>??
|
|||
|
1474 : ITEM_TARGET_OTHER, <EFBFBD>\?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??)
|
|||
|
1475 : ITEM_TARGET_ALLMYSIDE, <EFBFBD>s<EFBFBD><EFBFBD><EFBFBD>u<EFBFBD>l
|
|||
|
1476 : ITEM_TARGET_ALLOTHERSIDE, ?<EFBFBD><EFBFBD><EFBFBD>D<EFBFBD>u<EFBFBD>l
|
|||
|
1477 : ITEM_TARGET_ALL, <EFBFBD>u?
|
|||
|
1478 : }ITEM_TARGETTYPE;
|
|||
|
1479 : </pre>
|
|||
|
1480 : <font size=+1>?????100?<EFBFBD>K????????<EFBFBD><EFBFBD>?<EFBFBD>n<EFBFBD><EFBFBD>????</font><br>
|
|||
|
1481 : <li>??????????????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????
|
|||
|
1482 : <li>?????<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>????????<EFBFBD>n?????<EFBFBD>G??<br>
|
|||
|
1483 : <table border=1>
|
|||
|
1484 : <tr><td>0bit?</td><td>????????<EFBFBD><EFBFBD>?<EFBFBD>u???????????<EFBFBD><EFBFBD>?<EFBFBD>u????????<EFBFBD><EFBFBD>?????</td></tr>
|
|||
|
1485 : <tr><td>1Bit?</td><td>????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????</td></tr>
|
|||
|
1486 : <tr><td>2Bit?</td><td>??????????????1????????</td></tr>
|
|||
|
1487 : </table>
|
|||
|
1488 : <br>
|
|||
|
1489 : <br>
|
|||
|
1490 : </ul>
|
|||
|
1491 : <br>
|
|||
|
1492 : ??????<a href="#escaping">?????</a>???<br>
|
|||
|
1493 : ?<EFBFBD>l?( char ?<EFBFBD><EFBFBD>??????? )<br>
|
|||
|
1494 : <code>
|
|||
|
1495 : I?? ? <EFBFBD><EFBFBD>|str+2|1|??\|??|10|2|0
|
|||
|
1496 : </code>
|
|||
|
1497 : ?????<EFBFBD>k??<EFBFBD>s??<EFBFBD><EFBFBD>?<EFBFBD>k?
|
|||
|
1498 : <table border>
|
|||
|
1499 : <tr><td>1</td><td>????A</td></tr>
|
|||
|
1500 : <tr><td>2</td><td>????B</td></tr>
|
|||
|
1501 : <tr><td>3</td><td>????C</td></tr>
|
|||
|
1502 : <tr><td>4</td><td>????D</td></tr>
|
|||
|
1503 : </table>
|
|||
|
1504 : ???????????<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>??????5???????
|
|||
|
1505 : ????????<EFBFBD>S?????<EFBFBD>֢t??<EFBFBD><EFBFBD>??????
|
|||
|
1506 :
|
|||
|
1507 : <br><br>
|
|||
|
1508 : <LI>S <EFBFBD>u???<br><br>
|
|||
|
1509 : (???0)|(???1)|(???2) ... (???n)<br>
|
|||
|
1510 : <EFBFBD><EFBFBD>??<EFBFBD>i???????????<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?????
|
|||
|
1511 : ?????? ||| ????????
|
|||
|
1512 : ??????<EFBFBD><EFBFBD>???<br>
|
|||
|
1513 : ????<EFBFBD><EFBFBD>????|???<br>
|
|||
|
1514 : ????<br>
|
|||
|
1515 : ?<EFBFBD>l?( char ?<EFBFBD><EFBFBD>??????? )<br>
|
|||
|
1516 : <code>
|
|||
|
1517 : S10|2|20|2|||
|
|||
|
1518 : </code>
|
|||
|
1519 :
|
|||
|
1520 : <br><br>
|
|||
|
1521 : <LI>T <EFBFBD><EFBFBD>?<br><br>
|
|||
|
1522 : (<EFBFBD><EFBFBD>?0)|(<EFBFBD><EFBFBD>?1)|(<EFBFBD><EFBFBD>?2) ... (<EFBFBD><EFBFBD>?n)<br><br>
|
|||
|
1523 : <EFBFBD><EFBFBD>?????????<EFBFBD><EFBFBD>?? '|' ??<EFBFBD>Q??????<EFBFBD>Q???
|
|||
|
1524 : ??<EFBFBD><EFBFBD>????????????????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>
|
|||
|
1525 : ???<br>
|
|||
|
1526 : ????????<EFBFBD><EFBFBD>???<br>
|
|||
|
1527 : <EFBFBD><EFBFBD><EFBFBD>q<br>
|
|||
|
1528 : ??????<br>
|
|||
|
1529 : ?<EFBFBD>l?( ?????? char ?<EFBFBD><EFBFBD>???????? )<br>
|
|||
|
1530 : <code>
|
|||
|
1531 : T??|?????
|
|||
|
1532 : </code>
|
|||
|
1533 : ???<a href="#escaping">?????</a>???<br>
|
|||
|
1534 :
|
|||
|
1535 : <br>
|
|||
|
1536 : <LI>M ?<EFBFBD><EFBFBD>?????<br><br>
|
|||
|
1537 : ????????????????<EFBFBD><EFBFBD><EFBFBD>`?<EFBFBD><EFBFBD>??????(??
|
|||
|
1538 : <EFBFBD>k)????????(?<EFBFBD><EFBFBD><EFBFBD>k??)?????????????
|
|||
|
1539 : ?<EFBFBD><EFBFBD>?????????<EFBFBD>u?????????<EFBFBD><EFBFBD>???????
|
|||
|
1540 : ??????????<EFBFBD><EFBFBD><EFBFBD>j?<EFBFBD><EFBFBD>?????????<EFBFBD>{?HP ,
|
|||
|
1541 : MP,EXP?<EFBFBD>k?????????????<EFBFBD><EFBFBD>??????????
|
|||
|
1542 : ?????M????????2<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??????HP?
|
|||
|
1543 : ??<EFBFBD>k , <EFBFBD><EFBFBD><EFBFBD>K?????MP?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????EXP????
|
|||
|
1544 : ????<EFBFBD>l??????
|
|||
|
1545 : <code>
|
|||
|
1546 : M54|210|8944909
|
|||
|
1547 : </code>
|
|||
|
1548 : ?????HP???<EFBFBD>k?54?MP???<EFBFBD>k?210???<EFBFBD>k?8944909
|
|||
|
1549 : ???????????3<EFBFBD><EFBFBD>??<EFBFBD>{?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD>T????<EFBFBD><EFBFBD>???
|
|||
|
1550 : ??<EFBFBD><EFBFBD>??????????????????M???????
|
|||
|
1551 : ??P?????<EFBFBD>u???????<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>
|
|||
|
1552 : ????????<EFBFBD><EFBFBD>?????????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>
|
|||
|
1553 : ????
|
|||
|
1554 :
|
|||
|
1555 : <br><br>
|
|||
|
1556 : <li>D ????ID<br><br>
|
|||
|
1557 : ??????????????index??????????
|
|||
|
1558 : <code>D1000|912766409</code>????????
|
|||
|
1559 : <br><br>
|
|||
|
1560 : <li>E ???????????)|(<EFBFBD><EFBFBD>?)<br><br>
|
|||
|
1561 : ?????????<EFBFBD><EFBFBD>??????n/100<br>
|
|||
|
1562 : ???????????<EFBFBD>k??????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???+1???????????????<EFBFBD>R<EFBFBD>e???
|
|||
|
1563 : ????<EFBFBD><EFBFBD>??<EFBFBD>k???????????
|
|||
|
1564 : ???????????????????????????<EFBFBD><EFBFBD>????
|
|||
|
1565 :
|
|||
|
1566 : <br><br>
|
|||
|
1567 : <li>J0 ?J6 <EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?<br><br>
|
|||
|
1568 : <EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???<br>
|
|||
|
1569 : 0 ?6 ???????????<EFBFBD><EFBFBD>???<EFBFBD>n??????????<EFBFBD><EFBFBD>???<EFBFBD>d?<EFBFBD>q?<EFBFBD><EFBFBD>??<EFBFBD>ߦ<EFBFBD>?
|
|||
|
1570 : ???<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD>e??????<EFBFBD><EFBFBD>???<EFBFBD>u???<EFBFBD><EFBFBD>???<EFBFBD>ѩ<EFBFBD>???<br>
|
|||
|
1571 : <code>J0|kubun|mp|field|target|name|comment</code><br>
|
|||
|
1572 : ????????????????<br>
|
|||
|
1573 : kubun ????????<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>??????????????????????
|
|||
|
1574 : mp?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??<br>
|
|||
|
1575 : field???<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>???????????????<EFBFBD>e???????<br>
|
|||
|
1576 : <pre>
|
|||
|
1577 : typedef enum
|
|||
|
1578 : {
|
|||
|
1579 : MAGIC_FIELD_ALL, ????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??
|
|||
|
1580 : MAGIC_FIELD_BATTLE, <EFBFBD>P<EFBFBD>f???
|
|||
|
1581 : MAGIC_FIELD_MAP, <EFBFBD>G<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??
|
|||
|
1582 :
|
|||
|
1583 : }MAGIC_FIELDTYPE;
|
|||
|
1584 : </pre>
|
|||
|
1585 : target????<EFBFBD>n<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????????????????<EFBFBD>e???????<br>
|
|||
|
1586 : <pre>
|
|||
|
1587 : typedef enum
|
|||
|
1588 : {
|
|||
|
1589 : MAGIC_TARGET_MYSELF, <EFBFBD><EFBFBD><EFBFBD><EFBFBD>??
|
|||
|
1590 : MAGIC_TARGET_OTHER, <EFBFBD>\?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??)
|
|||
|
1591 : MAGIC_TARGET_ALLMYSIDE, <EFBFBD>s<EFBFBD><EFBFBD><EFBFBD>u<EFBFBD>l
|
|||
|
1592 : MAGIC_TARGET_ALLOTHERSIDE, ?<EFBFBD><EFBFBD><EFBFBD>D<EFBFBD>u<EFBFBD>l
|
|||
|
1593 : MAGIC_TARGET_ALL, <EFBFBD>u?
|
|||
|
1594 : MAGIC_TARGET_NONE, <EFBFBD>M?<EFBFBD>k<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD>\??????
|
|||
|
1595 : MAGIC_TARGET_OTHERWITHOUTMYSELF,<EFBFBD>\?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????)
|
|||
|
1596 : MAGIC_TARGET_WITHOUTMYSELFANDPET, <EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????
|
|||
|
1597 : MAGIC_TARGET_WHOLEOTHERSIDE, <EFBFBD>©<EFBFBD>????<EFBFBD>u<EFBFBD>l
|
|||
|
1598 : }MAGIC_TARGETTYPE;
|
|||
|
1599 : </pre>
|
|||
|
1600 : <font size=+1>?????100?<EFBFBD>K????????<EFBFBD><EFBFBD>?<EFBFBD>n<EFBFBD><EFBFBD>????</font><br>
|
|||
|
1601 : <br>
|
|||
|
1602 : name?<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<br>
|
|||
|
1603 : comment???<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>C<EFBFBD><EFBFBD>?<br>
|
|||
|
1604 : <br>
|
|||
|
1605 : <br>
|
|||
|
1606 : <li>N0 ? N3 ????????<br><br>
|
|||
|
1607 : ????????<EFBFBD><EFBFBD>?<EFBFBD>ѩ<EFBFBD>??<EFBFBD><EFBFBD>???<br>
|
|||
|
1608 : <code>N0|kubun|level|charaindex|maxhp|hp|mp|name</code>
|
|||
|
1609 : <br>
|
|||
|
1610 : kubun ????????<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>?????????????????<EFBFBD>u??????<br>
|
|||
|
1611 : 2?<EFBFBD><EFBFBD>??????????????????????1bit ? level 2bit ?charaindex???
|
|||
|
1612 : ??<EFBFBD><EFBFBD>????<br>
|
|||
|
1613 : charaindex ????charaindex<br>
|
|||
|
1614 : level???<EFBFBD><EFBFBD>?????<br>
|
|||
|
1615 : maxhp???<EFBFBD><EFBFBD>?MAXHP<br>
|
|||
|
1616 : hp???<EFBFBD><EFBFBD>????HP<br>
|
|||
|
1617 : mp???<EFBFBD><EFBFBD>???<br>
|
|||
|
1618 : name ???<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD>q?<br>
|
|||
|
1619 : <br><br>
|
|||
|
1620 :
|
|||
|
1621 : <LI>K0?K4 ???????<br><br>
|
|||
|
1622 : hp maxhp mp maxmp str tough exp
|
|||
|
1623 : level attackpower deffencepower
|
|||
|
1624 : fixdex fixcharm fixluck fixfireat fixwaterat fixearthat fixwindat
|
|||
|
1625 : <EFBFBD><EFBFBD><EFBFBD>q status<br>
|
|||
|
1626 : K???0?4?<EFBFBD><EFBFBD><EFBFBD>e?????????<EFBFBD><EFBFBD><EFBFBD>e?????
|
|||
|
1627 : ?????????0???????????<EFBFBD><EFBFBD>??????
|
|||
|
1628 : ??<EFBFBD><EFBFBD>???????1??<EFBFBD>u??????
|
|||
|
1629 : 2?<EFBFBD><EFBFBD>??????????????????????1bit ? hp 2bit ?maxhp???
|
|||
|
1630 : ??<EFBFBD><EFBFBD>????<br>
|
|||
|
1631 : ????? '|' ??????<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???
|
|||
|
1632 : <a href="#escaping">?????</a>?????
|
|||
|
1633 : ??<EFBFBD>S????????<EFBFBD>G<EFBFBD><EFBFBD>????<br>
|
|||
|
1634 : ?????<EFBFBD>k??????
|
|||
|
1635 : <table border>
|
|||
|
1636 : <tr><td>No.(<EFBFBD>k?)</td><td>int</td></tr>
|
|||
|
1637 : <tr><td>islive(<EFBFBD><EFBFBD>?)</td><td>int</td></tr>
|
|||
|
1638 : <tr><td>GRA(??<EFBFBD>k?)</td><td>int</td></tr>
|
|||
|
1639 : <tr><td>Hp(<EFBFBD>o??)</td><td>int</td></tr>
|
|||
|
1640 : <tr><td>MaxHp(?<EFBFBD><EFBFBD><EFBFBD>o??)</td><td>int</td></tr>
|
|||
|
1641 : <tr><td>Mp</td><td>int</td></tr>
|
|||
|
1642 : <tr><td>MapMp</td><td>int</td></tr>
|
|||
|
1643 : <tr><td>Exp(??<EFBFBD>k)</td><td>int</td></tr>
|
|||
|
1644 : <tr><td>MaxExp(??????<EFBFBD>k)</td><td>int</td></tr>
|
|||
|
1645 : <tr><td>Level(???)</td><td>int</td></tr>
|
|||
|
1646 : <tr><td>Attack(???)</td><td>int</td></tr>
|
|||
|
1647 : <tr><td>Defense(<EFBFBD>駍?)</td><td>int</td></tr>
|
|||
|
1648 : <tr><td>Quick(<EFBFBD><EFBFBD>??)</td><td>int</td></tr>
|
|||
|
1649 : <tr><td>Ai(?<EFBFBD>ߥT)</td><td>int</td></tr>
|
|||
|
1650 : <tr><td>fEarth(<EFBFBD><EFBFBD>)</td><td>int</td></tr>
|
|||
|
1651 : <tr><td>fWater(?)</td><td>int</td></tr>
|
|||
|
1652 : <tr><td>fFire(?)</td><td>int</td></tr>
|
|||
|
1653 : <tr><td>fWid(?)</td><td>int</td></tr>
|
|||
|
1654 : <tr><td>Slot(?<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\?)</td><td>int</td></tr>
|
|||
|
1655 : <tr><td><EFBFBD><EFBFBD><EFBFBD>q<EFBFBD><EFBFBD>??????</td><td>int</td></tr>
|
|||
|
1656 : <tr><td><EFBFBD><EFBFBD><EFBFBD>q</td><td><EFBFBD><EFBFBD>??</td></tr>
|
|||
|
1657 : <tr><td>???????<EFBFBD><EFBFBD></td><td><EFBFBD><EFBFBD>??</td></tr>
|
|||
|
1658 : </table>
|
|||
|
1659 : <br>
|
|||
|
1660 : <EFBFBD><EFBFBD><EFBFBD>q<EFBFBD><EFBFBD>???????????????<EFBFBD><EFBFBD><EFBFBD>q?<EFBFBD><EFBFBD>???????????????
|
|||
|
1661 : 1 ??<EFBFBD><EFBFBD>?<EFBFBD>ϣ<EFBFBD>????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?????<br>
|
|||
|
1662 : <br>
|
|||
|
1663 : <br>
|
|||
|
1664 : <br>
|
|||
|
1665 : ?<EFBFBD>l?( char ?<EFBFBD><EFBFBD>??????? )<br>
|
|||
|
1666 : <code>
|
|||
|
1667 : P10|20|10|20|10|10|10|1|2|13|13|1|100|10|???|PC
|
|||
|
1668 : </code>
|
|||
|
1669 :
|
|||
|
1670 : <br><br>
|
|||
|
1671 :
|
|||
|
1672 : <LI>W0?W4 ????????<br><br>
|
|||
|
1673 : <code>W0|skillid|field|target|name|comment| x 7</code><br>
|
|||
|
1674 : W0 ? W4 ??????????<EFBFBD>n??????<br>
|
|||
|
1675 : petskillid ????????<EFBFBD>k??pet_skillinfo.h?<EFBFBD>e???????<br>
|
|||
|
1676 : field ????????<EFBFBD><EFBFBD>??????????????????<EFBFBD>e???????<br>
|
|||
|
1677 : <pre>
|
|||
|
1678 : typedef enum
|
|||
|
1679 : {
|
|||
|
1680 : PETSKILL_FIELD_ALL, ????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??
|
|||
|
1681 : PETSKILL_FIELD_BATTLE, <EFBFBD>P<EFBFBD>f???
|
|||
|
1682 : PETSKILL_FIELD_MAP, <EFBFBD>G<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??
|
|||
|
1683 :
|
|||
|
1684 : }PETSKILL_FIELDTYPE;
|
|||
|
1685 :
|
|||
|
1686 : </pre>
|
|||
|
1687 : target ?????<EFBFBD>n<EFBFBD><EFBFBD>????????????????????<EFBFBD>e???????<br>
|
|||
|
1688 : <pre>
|
|||
|
1689 : typedef enum
|
|||
|
1690 : {
|
|||
|
1691 : PETSKILL_TARGET_MYSELF, <EFBFBD><EFBFBD><EFBFBD><EFBFBD>??
|
|||
|
1692 : PETSKILL_TARGET_OTHER, <EFBFBD>\?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??)
|
|||
|
1693 : PETSKILL_TARGET_ALLMYSIDE, <EFBFBD>s<EFBFBD><EFBFBD><EFBFBD>u<EFBFBD>l
|
|||
|
1694 : PETSKILL_TARGET_ALLOTHERSIDE, ?<EFBFBD><EFBFBD><EFBFBD>D<EFBFBD>u<EFBFBD>l
|
|||
|
1695 : PETSKILL_TARGET_ALL, <EFBFBD>u?
|
|||
|
1696 : PETSKILL_TARGET_NONE, <EFBFBD>M?<EFBFBD>k<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD>\??????
|
|||
|
1697 : PETSKILL_TARGET_OTHERWITHOUTMYSELF,<EFBFBD>\?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????)
|
|||
|
1698 : PETSKILL_TARGET_WITHOUTMYSELFANDPET, <EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????
|
|||
|
1699 : }PETSKILL_TARGETTYPE;
|
|||
|
1700 : </pre>
|
|||
|
1701 : <br>
|
|||
|
1702 : name ???<EFBFBD><EFBFBD><EFBFBD>q?<br>
|
|||
|
1703 : comment?????<EFBFBD>n??<EFBFBD>C<EFBFBD><EFBFBD>?<br>
|
|||
|
1704 : target|name|comment| ?????<EFBFBD><EFBFBD>??????????
|
|||
|
1705 : ?????????<EFBFBD>N????<EFBFBD>I?????"|"???<EFBFBD>Q??<EFBFBD><EFBFBD>?
|
|||
|
1706 : ???????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<br>
|
|||
|
1707 : <br><br>
|
|||
|
1708 :
|
|||
|
1709 : </ul>
|
|||
|
1710 :
|
|||
|
1711 : <br>
|
|||
|
1712 : <hr>
|
|||
|
1713 : <br>
|
|||
|
1714 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "S" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_S_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1715 : <LI><a name="D"><font color=blue>servertoclient D( int category , int dx , int dy , string data );<br></font></a>
|
|||
|
1716 : (Display)
|
|||
|
1717 : ?<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??<br><br>
|
|||
|
1718 :
|
|||
|
1719 : <dl>
|
|||
|
1720 : <dt>int category
|
|||
|
1721 : <dd>??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>????
|
|||
|
1722 : <table border>
|
|||
|
1723 : <tr><td><EFBFBD>k</td><td><EFBFBD><EFBFBD>?</td></tr>
|
|||
|
1724 : <tr><td>1</td><td><EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????????data?<EFBFBD><EFBFBD>?
|
|||
|
1725 : ?????<EFBFBD>k?</td></tr>
|
|||
|
1726 : <tr><td>2</td><td><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????????data?<EFBFBD><EFBFBD>???
|
|||
|
1727 : ???<EFBFBD>k</td></tr>
|
|||
|
1728 : </table>
|
|||
|
1729 : <dt>int dx
|
|||
|
1730 : <dd>?????????????<EFBFBD>n?<EFBFBD>tX??<EFBFBD>a<EFBFBD><EFBFBD>???????<EFBFBD>D<EFBFBD><EFBFBD>
|
|||
|
1731 : ???<EFBFBD>t??????????<EFBFBD>k??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD>t??<EFBFBD><EFBFBD>??
|
|||
|
1732 : <EFBFBD><EFBFBD>????
|
|||
|
1733 : <dt>int dy
|
|||
|
1734 : <dd>?<EFBFBD>n?<EFBFBD>tY
|
|||
|
1735 : <dt>string data
|
|||
|
1736 : <dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??category????????
|
|||
|
1737 : ??<EFBFBD><EFBFBD>???<a href="#escaping">?????</a>??????
|
|||
|
1738 : ?????
|
|||
|
1739 : </dl>
|
|||
|
1740 : <br>
|
|||
|
1741 : <br>
|
|||
|
1742 : <br>
|
|||
|
1743 : <hr>
|
|||
|
1744 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "D" ) == 0 ){
|
|||
|
int category;
|
|||
|
int dx;
|
|||
|
int dy;
|
|||
|
char* data;
|
|||
|
category = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
dx = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
dy = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[4] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[5] ));
|
|||
|
lssproto_D_recv( fd,category,dx,dy,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1760 : <li><a name="SC_FS"><font color=blue>servertoclient FS( int flg);<br></font></a>
|
|||
|
1761 : (FlgSet)PS????????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<EFBFBD>֢t??????????<br><br>
|
|||
|
1762 : <dl>
|
|||
|
1763 : <dt>int flg
|
|||
|
1764 : <dd> 0 bit 0: ??Off 1: ??On<br>
|
|||
|
1765 : ???<EFBFBD>t<EFBFBD><EFBFBD>??1 bit 0: <EFBFBD>P<EFBFBD>f<EFBFBD>N?<EFBFBD><EFBFBD>?off 1: <EFBFBD>P<EFBFBD>f<EFBFBD>N?<EFBFBD><EFBFBD>?On <br>
|
|||
|
1766 : 2 bit 0: DUEL off 1: DUEL On<br>
|
|||
|
1767 : 3 bit 0: ?<EFBFBD>G???????? 1: ????????????<EFBFBD><EFBFBD>??????<br>
|
|||
|
1768 : 4 bit 0: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>??OK 1: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>???<EFBFBD>r<br>
|
|||
|
1769 : </dl>
|
|||
|
1770 : <br>
|
|||
|
1771 : <br>
|
|||
|
1772 : <hr>
|
|||
|
1773 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "FS" ) == 0 ){
|
|||
|
int flg;
|
|||
|
flg = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
lssproto_FS_recv( fd,flg);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1785 : <li><a name="SC_HL"><font color=blue>servertoclient HL( int flg);<br></font></a>
|
|||
|
1786 : (HeLp)HL????????????????<EFBFBD>P<EFBFBD>f????????<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>?????????<br><br>
|
|||
|
1787 : <dl>
|
|||
|
1788 : <dt>int flg
|
|||
|
1789 : <dd> 0: ??????Off 1: ??????On<br>
|
|||
|
1790 : </dl>
|
|||
|
1791 : <br>
|
|||
|
1792 : <br>
|
|||
|
1793 : <hr>
|
|||
|
1794 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "HL" ) == 0 ){
|
|||
|
int flg;
|
|||
|
flg = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
lssproto_HL_recv( fd,flg);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1808 : <li><a name="SC_PR"><font color=blue>servertoclient PR( int request, int result);<br></font></a>
|
|||
|
1809 : (PartyRequest)????????PR???????????????????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>??????
|
|||
|
1810 : ?????<EFBFBD><EFBFBD><EFBFBD>t?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?<EFBFBD>I????????
|
|||
|
1811 : <br><br>
|
|||
|
1812 :
|
|||
|
1813 : <dl>
|
|||
|
1814 : <dt>int request
|
|||
|
1815 : <dd>0: ?<EFBFBD><EFBFBD> 1:<EFBFBD>V<EFBFBD><EFBFBD>
|
|||
|
1816 : <dt>int result
|
|||
|
1817 : <dd>0: <EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1: <EFBFBD><EFBFBD>?
|
|||
|
1818 : </dl>
|
|||
|
1819 : <br>
|
|||
|
1820 : <br>
|
|||
|
1821 : <br>
|
|||
|
1822 : <hr>
|
|||
|
1823 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "PR" ) == 0 ){
|
|||
|
int request;
|
|||
|
int result;
|
|||
|
request = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
result = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
lssproto_PR_recv( fd,request,result);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1835 : <li><a name="SC_KS"><font color=blue>servertoclient KS( int petarray,int result);<br></font></a>
|
|||
|
1836 : ???????KS?<EFBFBD>n??<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>??????????????
|
|||
|
1837 : ?????????????????????
|
|||
|
1838 : ???<EFBFBD>P<EFBFBD>f?<EFBFBD><EFBFBD>??<EFBFBD>k<EFBFBD><EFBFBD>????????????????<EFBFBD><EFBFBD>???????<EFBFBD>t??????<EFBFBD>k<EFBFBD><EFBFBD>?????????
|
|||
|
1839 : ???????????????
|
|||
|
1840 : <br><br>
|
|||
|
1841 :
|
|||
|
1842 : <dl>
|
|||
|
1843 : <dt>int petarray
|
|||
|
1844 : <dd>????<EFBFBD>k?
|
|||
|
1845 : <dt>int result
|
|||
|
1846 : <dd>0: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>????<EFBFBD>k<EFBFBD><EFBFBD>????????? 1:<EFBFBD><EFBFBD>?
|
|||
|
1847 : </dl>
|
|||
|
1848 : <br>
|
|||
|
1849 : <br>
|
|||
|
1850 : <hr>
|
|||
|
1851 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "KS" ) == 0 ){
|
|||
|
int petarray;
|
|||
|
int result;
|
|||
|
petarray = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
result = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
lssproto_KS_recv( fd,petarray,result);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
1935 : <li><a name="SC_PS"><font color=blue>servertoclient PS( int result, int havepetindex, int havepetskill, int toindex);<br></font></a>
|
|||
|
1936 : (PetSkill use result)??????<EFBFBD><EFBFBD>???????????PS?<EFBFBD>n??????????
|
|||
|
1937 : result ??????????PS?<EFBFBD>n???????????<EFBFBD><EFBFBD>??????????
|
|||
|
1938 :
|
|||
|
1939 : <dl>
|
|||
|
1940 : <dt>int result
|
|||
|
1941 : <dd>???0: <EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1:<EFBFBD><EFBFBD>?
|
|||
|
1942 : <dt>int havepetindex
|
|||
|
1943 : <dd>?<EFBFBD>k??????<EFBFBD><EFBFBD>?????
|
|||
|
1944 : <dt>int havepetskill
|
|||
|
1945 : <dd>?<EFBFBD>k????<EFBFBD><EFBFBD>?????
|
|||
|
1946 : <dt>int toindex
|
|||
|
1947 : <dd> <EFBFBD>M??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????????????????index????????????????
|
|||
|
1948 : <pre>
|
|||
|
1949 : <EFBFBD><EFBFBD><EFBFBD><EFBFBD> = 0
|
|||
|
1950 : ??? = 1 ?5
|
|||
|
1951 : ?? = 6 ?10 ?S N ?0?4?<EFBFBD>n??<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>????????
|
|||
|
1952 : </pre>
|
|||
|
1953 : <EFBFBD>n<EFBFBD><EFBFBD>?<EFBFBD>u????<EFBFBD><EFBFBD>????????<EFBFBD><EFBFBD>??-1??<EFBFBD><EFBFBD>???<br>
|
|||
|
1954 : <br>
|
|||
|
1955 :
|
|||
|
1956 : </dl>
|
|||
|
1957 :
|
|||
|
1958 : <br>
|
|||
|
1959 : <br>
|
|||
|
1960 : <hr>
|
|||
|
1961 : <br>
|
|||
|
1962 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "PS" ) == 0 ){
|
|||
|
int result;
|
|||
|
int havepetindex;
|
|||
|
int havepetskill;
|
|||
|
int toindex;
|
|||
|
result = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
havepetindex = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
havepetskill = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
toindex = lssproto_demkstr_int( lssproto.token_list[5] );
|
|||
|
lssproto_PS_recv( fd,result,havepetindex,havepetskill,toindex);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2011 : <LI><a name="S2CSKUP"><font color=blue>servertoclient SKUP( int point );<br></font></a>
|
|||
|
2012 : (SKillUP)
|
|||
|
2013 : ????????????????<EFBFBD>G<EFBFBD>l??????<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD><EFBFBD>e???
|
|||
|
2014 : <br>
|
|||
|
2015 : <br>
|
|||
|
2016 : <hr>
|
|||
|
2017 : <br>
|
|||
|
2018 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "SKUP" ) == 0 ){
|
|||
|
int point;
|
|||
|
point = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
lssproto_SKUP_recv( fd,point);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2047 : <LI><a name="SC_WN"><font color=blue>servertoclient WN( int windowtype, int buttontype, int seqno, int objindex, string data );<br></font></a>
|
|||
|
2048 : (Window)<br>
|
|||
|
2049 : ??????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????????????<EFBFBD>G<EFBFBD>l???<br>
|
|||
|
2050 : <br>
|
|||
|
2051 : <dl>
|
|||
|
2052 : <dt>int windowtype
|
|||
|
2053 : <dd>???????????????<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???????buttontype ?<EFBFBD><EFBFBD>?????
|
|||
|
2054 : ???????<EFBFBD>e???<br>
|
|||
|
2055 : ???????????<EFBFBD>@<EFBFBD>e??????<br>
|
|||
|
2056 : <pre>
|
|||
|
2057 : typedef enum
|
|||
|
2058 : {
|
|||
|
2059 : WINDOW_MESSAGETYPE_MESSAGE, ???????
|
|||
|
2060 : WINDOW_MESSAGETYPE_MESSAGEANDLINEINPUT, ????????<EFBFBD>V?
|
|||
|
2061 : WINDOW_MESSAGETYPE_SELECT, <EFBFBD>k<EFBFBD><EFBFBD>?????
|
|||
|
2062 : WINDOW_MESSAGETYPE_PETSELECT, ???<EFBFBD>k<EFBFBD><EFBFBD>?????
|
|||
|
2063 : WINDOW_MESSAGETYPE_PARTYSELECT, ??<EFBFBD>k<EFBFBD><EFBFBD>?????
|
|||
|
2064 : WINDOW_MESSAGETYPE_PETANDPARTYSELECT, ??????<EFBFBD>k<EFBFBD><EFBFBD>?????
|
|||
|
2065 : WINDOW_MESSAGETYPE_ITEMSHOPMENU, ?<EFBFBD><EFBFBD>??????????
|
|||
|
2066 : WINDOW_MWSSAGETYPE_ITEMSHOPYMAIN, ?<EFBFBD><EFBFBD>?????????
|
|||
|
2067 : WINDOW_MESSAGETYPE_LIMITITEMSHOPMAIN, ??<EFBFBD><EFBFBD>?<EFBFBD>M???????????????
|
|||
|
2068 : WINDOW_MESSAGETYPE_PETSKILLSHOP, ?????????????
|
|||
|
2069 : WINDOW_MESSAGETYPE_WIDEMESSAGE, ????????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?
|
|||
|
2070 : WINDOW_MESSAGETYPE_WIDEMESSAGEANDLINEINPUT, ????????<EFBFBD>V??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?
|
|||
|
2071 :
|
|||
|
2072 : }WINDOW_MESSAGETYPE;
|
|||
|
2073 : </pre>
|
|||
|
2074 :
|
|||
|
2075 : <dt>int buttontype
|
|||
|
2076 : <dd>?????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD>e??????????????<EFBFBD>e???????<br>
|
|||
|
2077 : <pre>
|
|||
|
2078 : #define WINDOW_BUTTONTYPE_NONE (0)
|
|||
|
2079 : #define WINDOW_BUTTONTYPE_OK (1 << 0)
|
|||
|
2080 : #define WINDOW_BUTTONTYPE_CANCEL (1 << 1)
|
|||
|
2081 : #define WINDOW_BUTTONTYPE_YES (1 << 2)
|
|||
|
2082 : #define WINDOW_BUTTONTYPE_NO (1 << 3)
|
|||
|
2083 : #define WINDOW_BUTTONTYPE_PREV (1 << 4)
|
|||
|
2084 : #define WINDOW_BUTTONTYPE_NEXT (1 << 5)
|
|||
|
2085 : </pre>
|
|||
|
2086 : ????<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>???????YES????NO?????????<br>
|
|||
|
2087 : WINDOW_BUTTONTYPE_YES | WINDOW_BUTTONTYPE_NO (=12)<br>
|
|||
|
2088 : ????
|
|||
|
2089 :
|
|||
|
2090 : <dt>int seqno
|
|||
|
2091 : <dd>????????<EFBFBD>k??<EFBFBD><EFBFBD>????????????
|
|||
|
2092 : ???????WN???????????????<EFBFBD><EFBFBD>??????<EFBFBD>k??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>????
|
|||
|
2093 : ?????????????NPC???<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?????????<EFBFBD>R<EFBFBD>e<EFBFBD><EFBFBD>????????
|
|||
|
2094 : <dt>int objindex
|
|||
|
2095 : <dd>????????<EFBFBD><EFBFBD>?????NPC???index??<EFBFBD>t??????
|
|||
|
2096 : ?????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??-1???<EFBFBD>V?????
|
|||
|
2097 : ?????????????<EFBFBD>V???WN?????????<EFBFBD>k?????<EFBFBD><EFBFBD>?????
|
|||
|
2098 : <dt>string data
|
|||
|
2099 : <dd>?????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??????????"\n"??<EFBFBD><EFBFBD>????????<EFBFBD>s????
|
|||
|
2100 : ????????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><EFBFBD>???????
|
|||
|
2101 : <EFBFBD>k<EFBFBD><EFBFBD>????????????"\n"??<EFBFBD><EFBFBD>???????????????????
|
|||
|
2102 : ?????????????????????????<EFBFBD><EFBFBD><EFBFBD>e?????<EFBFBD>Q??
|
|||
|
2103 : ????????????????<EFBFBD>k<EFBFBD><EFBFBD>???????<EFBFBD>q???? 1 ??
|
|||
|
2104 : <EFBFBD>k???????<EFBFBD>k<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??WN??<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>??
|
|||
|
2105 : <dt>string data(?<EFBFBD><EFBFBD>??
|
|||
|
2106 : <dd>?????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??????????"\n"??<EFBFBD><EFBFBD>????????<EFBFBD>s????
|
|||
|
2107 : ????????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><EFBFBD>???????
|
|||
|
2108 : ???<EFBFBD><EFBFBD>?????"?"??<EFBFBD><EFBFBD>???????
|
|||
|
2109 : <br><br><dd>????<br>
|
|||
|
2110 : ???????????<EFBFBD><EFBFBD>?????<EFBFBD>q????<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>1??
|
|||
|
2111 : <EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD>q???????<EFBFBD><EFBFBD>????????<EFBFBD>k<EFBFBD><EFBFBD>?????????<EFBFBD>K??????????<EFBFBD>_??????
|
|||
|
2112 : ???????????????????<EFBFBD><EFBFBD>???????????????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>???????????
|
|||
|
2113 : <EFBFBD>k<EFBFBD>h???<EFBFBD>k??<EFBFBD>C<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>????????????????????<EFBFBD>k<EFBFBD>h???<EFBFBD>k??<EFBFBD>C<EFBFBD><EFBFBD>
|
|||
|
2114 : <br><br>
|
|||
|
2115 : 0|1|????????|?????????????|???????????|??<EFBFBD><EFBFBD>???|????<EFBFBD><EFBFBD>????????
|
|||
|
2116 : <EFBFBD>K??????????|<EFBFBD>o???????|?????????????????????????|
|
|||
|
2117 : ?|???|?????|??????\n??<EFBFBD>I?|??|?|??|?????|??????\n<EFBFBD>T?????<EFBFBD><EFBFBD>\n???
|
|||
|
2118 :
|
|||
|
2119 : <br><dd><br>????<br>
|
|||
|
2120 : ???????????<EFBFBD><EFBFBD>?????<EFBFBD>q????<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>1??
|
|||
|
2121 : <EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD>q???????<EFBFBD><EFBFBD>????????????????????????|?<EFBFBD>_??????
|
|||
|
2122 : ????<EFBFBD><EFBFBD>????????????<EFBFBD>k<EFBFBD>h???<EFBFBD>k??<EFBFBD>C<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>????????????
|
|||
|
2123 : <EFBFBD>k<EFBFBD>h???<EFBFBD>k??<EFBFBD>C<EFBFBD><EFBFBD>?
|
|||
|
2124 :
|
|||
|
2125 : <br><br>
|
|||
|
2126 : ?|1|?????<EFBFBD>s??|?????????????????????????????|<EFBFBD>o???????|
|
|||
|
2127 : ???????????????????????|?|??|?????|
|
|||
|
2128 : ??????\n??<EFBFBD>I?|??|?|??|?????|??????\n<EFBFBD>T?????<EFBFBD><EFBFBD>\n???
|
|||
|
2129 : <br><dd><br>?????????<br>
|
|||
|
2130 : ??????=??????????????<br>
|
|||
|
2131 : <EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD>q?<br>
|
|||
|
2132 : ????????????<EFBFBD><EFBFBD>?????????????<EFBFBD>_??????<br>
|
|||
|
2133 : <EFBFBD><EFBFBD><EFBFBD>q????????????<EFBFBD>u???<EFBFBD><EFBFBD>?????<EFBFBD>k<EFBFBD>h???<EFBFBD>k??????????????<EFBFBD>k??????<br>
|
|||
|
2134 : <EFBFBD><EFBFBD><EFBFBD>q????????????<EFBFBD>u???<EFBFBD><EFBFBD>?????<EFBFBD>k<EFBFBD>h???<EFBFBD>k??????????????<EFBFBD>k??????<br>
|
|||
|
2135 : <br><dd><br>???????<EFBFBD><EFBFBD>??<br>
|
|||
|
2136 : ??????<EFBFBD><EFBFBD>?=???
|
|||
|
2137 : <EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD>q???<EFBFBD><EFBFBD>?????????????<EFBFBD><EFBFBD>????????|?<EFBFBD>_??????<br>
|
|||
|
2138 : <EFBFBD><EFBFBD><EFBFBD>q???<EFBFBD><EFBFBD>???????????<EFBFBD>u???<EFBFBD><EFBFBD>?????????????<EFBFBD>k<EFBFBD>h???<EFBFBD>k?????????<br>
|
|||
|
2139 : <EFBFBD><EFBFBD><EFBFBD>q???<EFBFBD><EFBFBD>???????????<EFBFBD>u???<EFBFBD><EFBFBD>?????????????<EFBFBD>k<EFBFBD>h???<EFBFBD>k?????????<br>
|
|||
|
2140 :
|
|||
|
2141 :
|
|||
|
2142 : <br><dd><br>???<EFBFBD>\?<br>
|
|||
|
2143 : <EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD>q??????
|
|||
|
2144 :
|
|||
|
2145 : <br><br>
|
|||
|
2146 : ?????<EFBFBD>s??|????????????
|
|||
|
2147 :
|
|||
|
2148 : <br><br><br>
|
|||
|
2149 : <dt>string data(??????????
|
|||
|
2150 : <dd>?????<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>??????????"\n"??<EFBFBD><EFBFBD>????????<EFBFBD>s????
|
|||
|
2151 : ????????????????<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>??????????<EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><EFBFBD>???????
|
|||
|
2152 : ???<EFBFBD><EFBFBD>?????"?"??<EFBFBD><EFBFBD>???????
|
|||
|
2153 : <br><br><dd>??????<EFBFBD><EFBFBD><EFBFBD>x?<br>
|
|||
|
2154 : <EFBFBD>q?<EFBFBD>ѩ<EFBFBD><EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>0 <EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>1??<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD><EFBFBD>q??????????
|
|||
|
2155 : ?<EFBFBD><EFBFBD>?<EFBFBD>k<EFBFBD>h??<EFBFBD>C<EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?<EFBFBD>k<EFBFBD>h??<EFBFBD>C<EFBFBD><EFBFBD>
|
|||
|
2156 : <br><br>
|
|||
|
2157 : 1?????????????????????????????????
|
|||
|
2158 : <EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>????500????????? <EFBFBD>\??????????
|
|||
|
2159 : <EFBFBD><EFBFBD>??<EFBFBD><EFBFBD>?1000?<EFBFBD><EFBFBD>??<EFBFBD>D???????<EFBFBD><EFBFBD>???
|
|||
|
2160 : </dl>
|
|||
|
2161 : <br>
|
|||
|
2162 : <br>
|
|||
|
2163 : <hr>
|
|||
|
2164 : <br>
|
|||
|
2165 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "WN" ) == 0 ){
|
|||
|
int windowtype;
|
|||
|
int buttontype;
|
|||
|
int seqno;
|
|||
|
int objindex;
|
|||
|
char* data;
|
|||
|
windowtype = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
buttontype = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
seqno = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
objindex = lssproto_demkstr_int( lssproto.token_list[5] );
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[5] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[6] ));
|
|||
|
lssproto_WN_recv( fd,windowtype,buttontype,seqno,objindex,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2196 : <LI><a name="SC_EF"><font color=blue>servertoclient EF( int effect, int level, string option );<br></font></a>
|
|||
|
2197 : (EFfect)<br>
|
|||
|
2198 : <EFBFBD>D????????????????<EFBFBD>u<EFBFBD>l<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>???????<br>
|
|||
|
2199 : <br>
|
|||
|
2200 : <dl>
|
|||
|
2201 : <dt>int effect
|
|||
|
2202 : <dd>??<EFBFBD>k???????<EFBFBD>K?<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??????<EFBFBD>x????????????<EFBFBD>D???????????
|
|||
|
2203 : <ul>
|
|||
|
2204 : <li>1:?
|
|||
|
2205 : <li>2:<EFBFBD>D
|
|||
|
2206 : <li>4:??<EFBFBD>D??<EFBFBD>e?
|
|||
|
2207 : </ul>
|
|||
|
2208 : <dt>int level
|
|||
|
2209 : <dd>????????<EFBFBD><EFBFBD>??????<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>??
|
|||
|
2210 : <dt>string option
|
|||
|
2211 : <dd>???<EFBFBD><EFBFBD>?
|
|||
|
2212 : </dl>
|
|||
|
2213 : <br>
|
|||
|
2214 : <br>
|
|||
|
2215 : <hr>
|
|||
|
2216 : <br>
|
|||
|
2217 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "EF" ) == 0 ){
|
|||
|
int effect;
|
|||
|
int level;
|
|||
|
char* option;
|
|||
|
effect = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
level = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
option = lssproto_wrapStringAddr( lssproto_stringwrapper[3] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[4] ));
|
|||
|
lssproto_EF_recv( fd,effect,level,option);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2218 : <LI><a name="SC_SE"><font color=blue>servertoclient SE( int x, int y, int senumber, int sw );<br></font></a>
|
|||
|
2219 : (SoundEffect)<br>
|
|||
|
2220 : ???????SE?<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???<br>
|
|||
|
2221 : <br>
|
|||
|
2222 : <dl>
|
|||
|
2223 : <dt>int x,y
|
|||
|
2224 : <dd>SE?<EFBFBD>D<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>?
|
|||
|
2225 : <dt>int senumber
|
|||
|
2226 : <dd>???<EFBFBD>k?
|
|||
|
2227 : <dt>int sw
|
|||
|
2228 : <dd>???<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>????
|
|||
|
2229 : <ul>
|
|||
|
2230 : <li>0:<EFBFBD><EFBFBD>??
|
|||
|
2231 : <li>1:<EFBFBD><EFBFBD>??
|
|||
|
2232 : </ul>
|
|||
|
2233 : </dl>
|
|||
|
2234 : <br>
|
|||
|
2235 : <br>
|
|||
|
2236 : <hr>
|
|||
|
2237 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "SE" ) == 0 ){
|
|||
|
int x;
|
|||
|
int y;
|
|||
|
int senumber;
|
|||
|
int sw;
|
|||
|
x = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
y = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
senumber = lssproto_demkstr_int( lssproto.token_list[4] );
|
|||
|
sw = lssproto_demkstr_int( lssproto.token_list[5] );
|
|||
|
lssproto_SE_recv( fd,x,y,senumber,sw);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2271 : <LI><a name="SC_CLIENTLOGIN"><font color=blue>servertoclient ClientLogin(string result);<br></font></a>
|
|||
|
2272 : ClientLogin?<EFBFBD><EFBFBD>??
|
|||
|
2273 : <br><br>
|
|||
|
2274 : <dl>
|
|||
|
2275 : <dt>string result
|
|||
|
2276 : <dd>"ok" ???<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>?????????????
|
|||
|
2277 : </dl>
|
|||
|
2278 : <br>
|
|||
|
2279 : <br>
|
|||
|
2280 : <hr>
|
|||
|
2281 : <br>
|
|||
|
2282 :
|
|||
|
2283 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "ClientLogin" ) == 0 ){
|
|||
|
char* result;
|
|||
|
result = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_ClientLogin_recv( fd,result);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2314 : <LI><a name="SC_CREATENEWCHAR"><font color=blue>servertoclient CreateNewChar(string result,string data);<br></font></a>
|
|||
|
2315 : CreateNewChar?<EFBFBD><EFBFBD>??
|
|||
|
2316 : <br><br>
|
|||
|
2317 : <dl>
|
|||
|
2318 : <dt>string result
|
|||
|
2319 : <dd>"successful" ? "failed" ????????<EFBFBD><EFBFBD>???????
|
|||
|
2320 : ?????
|
|||
|
2321 : <dt>string data
|
|||
|
2322 : <dd>"failed" ??????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
|||
|
2323 : ????????????????<EFBFBD><EFBFBD>?????????
|
|||
|
2324 : ???<EFBFBD><EFBFBD>??
|
|||
|
2325 : <pre>
|
|||
|
2326 : "failed bad parameter"
|
|||
|
2327 : </pre>
|
|||
|
2328 : ?<EFBFBD><EFBFBD>???????<EFBFBD><EFBFBD>?????<EFBFBD>e???????<EFBFBD>d?????
|
|||
|
2329 : ????????<EFBFBD>s??????????????<EFBFBD><EFBFBD>?????
|
|||
|
2330 : ?????????<EFBFBD><EFBFBD>????????????
|
|||
|
2331 :
|
|||
|
2332 : </dl>
|
|||
|
2333 : <br>
|
|||
|
2334 : <br>
|
|||
|
2335 : <hr>
|
|||
|
2336 : <br>
|
|||
|
2337 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "CreateNewChar" ) == 0 ){
|
|||
|
char* result;
|
|||
|
char* data;
|
|||
|
result = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[2] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[3] ));
|
|||
|
lssproto_CreateNewChar_recv( fd,result,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2349 : <LI><a name="SC_CHARDELETE"><font color=blue>servertoclient CharDelete(string result,string data);<br></font></a>
|
|||
|
2350 : CharDelete ?<EFBFBD><EFBFBD>??
|
|||
|
2351 : <br><br>
|
|||
|
2352 : <dl>
|
|||
|
2353 : <dt>string result
|
|||
|
2354 : <dd>"successful" ? "failed" ???????????????
|
|||
|
2355 : <dt>string data
|
|||
|
2356 : <dd>"failed" ??????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
|||
|
2357 : ????????????????<EFBFBD><EFBFBD>?????????
|
|||
|
2358 : ??????????????????????
|
|||
|
2359 : </dl>
|
|||
|
2360 : <br>
|
|||
|
2361 : <br>
|
|||
|
2362 : <hr>
|
|||
|
2363 : <br>
|
|||
|
2364 :
|
|||
|
2365 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "CharDelete" ) == 0 ){
|
|||
|
char* result;
|
|||
|
char* data;
|
|||
|
result = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[2] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[3] ));
|
|||
|
lssproto_CharDelete_recv( fd,result,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2376 : <LI><a name="SC_CHARLOGIN"><font color=blue>servertoclient CharLogin(string result,string data);<br></font></a>
|
|||
|
2377 : CharaLogin?<EFBFBD><EFBFBD>??
|
|||
|
2378 : <br><br>
|
|||
|
2379 : <dl>
|
|||
|
2380 : <dt>string result
|
|||
|
2381 : <dd>"successful" ? "failed" ???????????????
|
|||
|
2382 : <dt>string data
|
|||
|
2383 : <dd>"failed" ??? ?????<EFBFBD><EFBFBD>????????????
|
|||
|
2384 : </dl>
|
|||
|
2385 : <br>
|
|||
|
2386 : <br>
|
|||
|
2387 : <hr>
|
|||
|
2388 : <br>
|
|||
|
2389 :
|
|||
|
2390 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "CharLogin" ) == 0 ){
|
|||
|
char* result;
|
|||
|
char* data;
|
|||
|
result = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[2] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[3] ));
|
|||
|
lssproto_CharLogin_recv( fd,result,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2396 : <LI><a name="SC_CHARLIST"><font color=blue>servertoclient CharList(string result,string data);<br></font></a>
|
|||
|
2397 : CharList?<EFBFBD><EFBFBD>??
|
|||
|
2398 : <br><br>
|
|||
|
2399 : <dl>
|
|||
|
2400 : <dt>string result
|
|||
|
2401 : <dd>"successful" ? "failed" ??????????????
|
|||
|
2402 : <dt>string data
|
|||
|
2403 : <dd>result?"successful"??????????????<EFBFBD><EFBFBD><EFBFBD>V???
|
|||
|
2404 : ??????????<EFBFBD><EFBFBD><EFBFBD>q??????????????<EFBFBD><EFBFBD>??
|
|||
|
2405 : ???<EFBFBD><EFBFBD>?????<EFBFBD><EFBFBD>????????????????????
|
|||
|
2406 : result ? "failed" ??????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>????<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???
|
|||
|
2407 : ???<EFBFBD><EFBFBD>???????????<EFBFBD><EFBFBD>???????????<br>
|
|||
|
2408 : dataplace|faceimage|level|maxhp|atk|def|quick|charm|earth|water|fire|wind|logincount|name|place<br>
|
|||
|
2409 :
|
|||
|
2410 : <dl>
|
|||
|
2411 : <dt>dataplace
|
|||
|
2412 : <dd>????????<EFBFBD>k?????????????????<EFBFBD>k????<EFBFBD>e???
|
|||
|
2413 : <dt>faceimage
|
|||
|
2414 : <dd>????<EFBFBD>k?
|
|||
|
2415 : <dt>level
|
|||
|
2416 : <dd>???????
|
|||
|
2417 : <dt>maxhp,atk,def,quick,charm
|
|||
|
2418 : <dd>???????
|
|||
|
2419 : <dt>earth.water,fire,wind
|
|||
|
2420 : <dd>?<EFBFBD>N<EFBFBD>ͣk
|
|||
|
2421 : <dt>logincount
|
|||
|
2422 : <dd>????????
|
|||
|
2423 : <dt>name
|
|||
|
2424 : <dd>????<EFBFBD><EFBFBD><EFBFBD>q
|
|||
|
2425 : <dt>place
|
|||
|
2426 : <dd>??????<EFBFBD><EFBFBD>?
|
|||
|
2427 : </dl>
|
|||
|
2428 : "|" ??<EFBFBD><EFBFBD>?????? ?????????<a
|
|||
|
2429 : href="#escaping">?????</a>????????????<EFBFBD>S
|
|||
|
2430 : ??????<br>
|
|||
|
2431 :
|
|||
|
2432 : </dl>
|
|||
|
2433 : <br>
|
|||
|
2434 : <br>
|
|||
|
2435 : <hr>
|
|||
|
2436 : <br>
|
|||
|
2437 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "CharList" ) == 0 ){
|
|||
|
char* result;
|
|||
|
char* data;
|
|||
|
result = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[2] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[3] ));
|
|||
|
lssproto_CharList_recv( fd,result,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2445 : <LI><a name="SC_CHARLOGOUT"><font color=blue>servertoclient CharLogout(string result , string data);<br></font></a>
|
|||
|
2446 : Logout?<EFBFBD>n??<EFBFBD><EFBFBD>??
|
|||
|
2447 : <br><br>
|
|||
|
2448 : <dl>
|
|||
|
2449 : <dt>string result
|
|||
|
2450 : <dd>"successful" ? "failed" ???????????????
|
|||
|
2451 : <dt>string data
|
|||
|
2452 : <dd>"failed" ??????<EFBFBD>s????<EFBFBD><EFBFBD><EFBFBD><EFBFBD>???(<EFBFBD>֢t)?<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
|||
|
2453 : ???<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>???????????????
|
|||
|
2454 : </dl>
|
|||
|
2455 : <br>
|
|||
|
2456 : <br>
|
|||
|
2457 : <hr>
|
|||
|
2458 : <br>
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "CharLogout" ) == 0 ){
|
|||
|
char* result;
|
|||
|
char* data;
|
|||
|
result = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[2] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[3] ));
|
|||
|
lssproto_CharLogout_recv( fd,result,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2465 : <LI><a name="SC_PROCGET"><font color=blue>servertoclient ProcGet( string data);<br></font></a>
|
|||
|
2466 : ProcGet?<EFBFBD><EFBFBD>??
|
|||
|
2467 : <br><br>
|
|||
|
2468 : <dl>
|
|||
|
2469 : <dt>string data
|
|||
|
2470 : <dd>????????????????<EFBFBD><EFBFBD>?<EFBFBD>ѩ<EFBFBD>??<EFBFBD><EFBFBD>???<EFBFBD><EFBFBD>??log/proc?????????<EFBFBD><EFBFBD>??<EFBFBD>i??
|
|||
|
2471 : </dl>
|
|||
|
2472 : <br>
|
|||
|
2473 : <br>
|
|||
|
2474 : <hr>
|
|||
|
2475 : <br>
|
|||
|
2476 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "ProcGet" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_ProcGet_recv( fd,data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2483 : <LI><a name="SC_PLAYERNUMGET"><font color=blue>servertoclient PlayerNumGet( int logincount, int player);<br></font></a>
|
|||
|
2484 : PlayerNumGet?<EFBFBD><EFBFBD>??
|
|||
|
2485 : <br><br>
|
|||
|
2486 : <dl>
|
|||
|
2487 : <dt>int logincount,player
|
|||
|
2488 : <dd>
|
|||
|
2489 : </dl>
|
|||
|
2490 : <br>
|
|||
|
2491 : <br>
|
|||
|
2492 : <hr>
|
|||
|
2493 : <br>
|
|||
|
2494 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "PlayerNumGet" ) == 0 ){
|
|||
|
int logincount;
|
|||
|
int player;
|
|||
|
logincount = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
player = lssproto_demkstr_int( lssproto.token_list[3] );
|
|||
|
lssproto_PlayerNumGet_recv( fd,logincount,player);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
/*
|
|||
|
2506 : <LI><a name="SC_ECHO"><font color=blue>servertoclient Echo( string test );<br></font></a>
|
|||
|
2507 : Echo?<EFBFBD>n??<EFBFBD><EFBFBD>??
|
|||
|
2508 : <dl>
|
|||
|
2509 : <dt>string test
|
|||
|
2510 : <dd>????<EFBFBD>V????<EFBFBD><EFBFBD>????????????
|
|||
|
2511 : </dl>
|
|||
|
2512 : <br>
|
|||
|
2513 : <br>
|
|||
|
2514 : <hr>
|
|||
|
2515 : <br>
|
|||
|
2516 :
|
|||
|
*/
|
|||
|
|
|||
|
if( strcmp( funcname , "Echo" ) == 0 ){
|
|||
|
char* test;
|
|||
|
test = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_Echo_recv( fd,test);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
//-------------------------------------------------------
|
|||
|
// Add Command Count
|
|||
|
// Robin 2001/04/06
|
|||
|
//-------------------------------------------------------
|
|||
|
|
|||
|
if( strcmp( funcname , "NU" ) == 0 ){
|
|||
|
int AddCount;
|
|||
|
AddCount = lssproto_demkstr_int( lssproto.token_list[2] );
|
|||
|
lssproto_NU_recv( fd, AddCount);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
// Robin 04/12 trade
|
|||
|
if( strcmp( funcname , "TD" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[2] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[3] ));
|
|||
|
lssproto_TD_recv( fd, data);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
// Robin 0529 family
|
|||
|
if( strcmp( funcname , "FM" ) == 0 ){
|
|||
|
char* data;
|
|||
|
data = lssproto_wrapStringAddr( lssproto_stringwrapper[1] , lssproto.workbufsize , lssproto_demkstr_string( lssproto.token_list[2] ));
|
|||
|
lssproto_FM_recv( fd, data);
|
|||
|
//lssproto_FM_recv( fd, lssproto_stringwrapper[0] );
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
return -1;
|
|||
|
}
|
|||
|
void lssproto_SetClientLogFiles( char *r , char *w )
|
|||
|
{
|
|||
|
lssproto_strcpysafe( lssproto_readlogfilename , r , sizeof( lssproto_readlogfilename ) );
|
|||
|
lssproto_strcpysafe( lssproto_writelogfilename , w , sizeof( lssproto_writelogfilename ) );
|
|||
|
}
|
|||
|
int lssproto_InitClient( int (*writefunc)(int,char*,int) ,int bufsiz ,int fd)
|
|||
|
{
|
|||
|
int i;
|
|||
|
if( (void*)writefunc == NULL){lssproto.write_func = lssproto_default_write_wrap;} else {lssproto.write_func = writefunc;}
|
|||
|
lssproto_AllocateCommonWork(bufsiz);
|
|||
|
lssproto_stringwrapper = (char**)MALLOC(sizeof(char*) * MAXLSRPCARGS);
|
|||
|
if(lssproto_stringwrapper ==NULL)return -1;
|
|||
|
memset( lssproto_stringwrapper , 0, sizeof(char*)*MAXLSRPCARGS);
|
|||
|
for(i=0;i<MAXLSRPCARGS;i++){
|
|||
|
lssproto_stringwrapper[i] = (char*)MALLOC( bufsiz );
|
|||
|
if( lssproto_stringwrapper[i] == NULL){
|
|||
|
for(i=0;i<MAXLSRPCARGS;i++){FREE( lssproto_stringwrapper[i]);return -1;}
|
|||
|
}
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
void lssproto_CleanupClient( void )
|
|||
|
{
|
|||
|
int i;
|
|||
|
// Nuke start
|
|||
|
/*{
|
|||
|
int i;
|
|||
|
if (NJT_dummy) FREE(NJT_dummy);
|
|||
|
for (i=0;i<NJT_MAX;i++) if (NJT[i]) FREE(NJT[i]);
|
|||
|
}*/
|
|||
|
// Nuke end
|
|||
|
FREE( lssproto.work );
|
|||
|
lssproto.work = NULL;
|
|||
|
FREE( lssproto.arraywork);
|
|||
|
lssproto.arraywork = NULL;
|
|||
|
FREE( lssproto.escapework );
|
|||
|
lssproto.escapework = NULL;
|
|||
|
FREE( lssproto.val_str);
|
|||
|
lssproto.val_str = NULL;
|
|||
|
FREE( lssproto.token_list );
|
|||
|
lssproto.token_list = NULL;
|
|||
|
FREE( lssproto.cryptwork );
|
|||
|
lssproto.cryptwork = NULL;
|
|||
|
FREE( lssproto.jencodecopy );
|
|||
|
lssproto.jencodecopy = NULL;
|
|||
|
FREE( lssproto.jencodeout );
|
|||
|
lssproto.jencodeout = NULL;
|
|||
|
FREE( lssproto.compresswork );
|
|||
|
lssproto.compresswork = NULL;
|
|||
|
for(i=0;i<MAXLSRPCARGS;i++){
|
|||
|
FREE( lssproto_stringwrapper[i]);
|
|||
|
lssproto_stringwrapper[i] = NULL;
|
|||
|
}
|
|||
|
FREE( lssproto_stringwrapper );
|
|||
|
lssproto_stringwrapper = NULL;
|
|||
|
}
|
|||
|
/* end of the generated client code */
|
|||
|
|
|||
|
//#endif
|