unit 会员服务;( `5 V) H: W- _2 Y! i7 i" ^
9 c3 x, h. k, P: O8 d
inte**ce$ w( b( O: w$ i: @' g
$ G- p. g) ]7 ?2 C
function GetToken (aStr, aToken, aSep : String) : String;/ r: u/ `* X, X, |( K/ l
function CompareStr (aStr1, aStr2 : String) : Boolean;
* C" D; n' `( I) dfunction callfunc (aText: string): string;2 `$ W, v" a* q2 C/ h
procedure print (aText: string);
! t$ j2 R/ y8 u# t- Gfunction Random (aScope: integer): integer;
" ^ X/ z, r7 h. f6 }! Yfunction Length (aText: string): integer;0 Y1 B6 z/ r1 Z" t4 e
procedure Inc (aInt: integer);
2 `! S3 F2 ^1 h4 Zprocedure Dec (aInt: integer);: ~3 v6 n$ A' T, @$ L; k: I
function StrToInt (astr: string): integer;8 k$ F" P4 {4 r: i2 U
function IntToStr (aInt: integer): string;" V; J: C' g4 G' r& F5 @" a0 G
procedure exit; v: _* ]* E8 `
7 i' e# s/ X; C' g
procedure OnLeftClick (aStr : String);( M* |* } h2 N: s, D! M( v: \/ _
procedure OnGetResult (aStr : String);
0 y9 r- |; k( H0 ~
/ g2 _& l4 f1 E! E- Gimplementation* O; L$ v p0 J. }6 \6 Y
procedure OnLeftClick (aStr : String);3 ~: N+ _( C3 I E. |
var R" _+ N A3 M, o) V: Y8 S+ k7 A
Str : String;
7 Z8 s: p& m, S Race : Integer;
% j' m! n2 y6 z! A% L$ _begin$ W- \+ N3 y0 r. A7 o) o+ T
Str := callfunc ('getsenderrace');9 U: A2 l4 Q- v) H- j, o, `) V. e
Race := StrToInt (Str);
. w s1 y2 J# B( G' X if Race = 1 then begin8 n& @" s; F& f, k: K+ c5 I% t0 m4 U U! n
Str := 'showwindow .\help\会员服务.txt 0';3 P3 o7 K& ]! k# r
print (Str);
' S; C; g+ k0 [$ { exit;
3 j! e, s" k/ P/ H end;
. }( e/ p5 V, }0 }end;
3 P) B2 t' A5 f+ Z8 J$ r7 Yprocedure OnGetResult (aStr : String);
& }8 e- u& S- l4 H$ Z* tvar" h5 K" i$ @% s+ L7 Z+ l
Str, Name, MapNo, WqName : String;: {' Z% G; r0 j1 f# {
iCount, MapID : Integer;
; x: V, |: s& j/ ^begin
]2 `3 o5 s+ X$ {8 w9 f Name := callfunc ('getsendername');. J' J2 e2 _7 I
if aStr = 'close' then begin
) k- {6 p5 \: z1 |/ |4 ? exit;
1 V% u$ f0 _1 t/ M* d G5 ?5 V end;9 x( X$ W1 h( k0 c
if aStr = 'xuanzhe' then begin6 I: B6 L- t- \* [9 a7 P$ p
Str := 'showwindow .\help\会员服务1.txt 0';9 @/ w, b( q# D3 \' n
print (Str);
7 @8 M8 r3 u5 T- ?2 s/ C6 \ exit;
1 `1 h3 x5 _$ w- S: @, w end;
$ K, S8 X# z4 L( r% i/ U if aStr = 'lingqu' then begin
5 m8 s' p1 d u7 m! X+ H Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设( Y7 i: C1 F6 F5 f! V
if Str = 'false' then begin9 _+ p: s& D* E* ]% R
print ('say 你不是会员吧');/ F* w7 R- s7 G% Q a. Q. t
exit;. C6 N9 ^, K6 W$ H: R! o
end;
8 E/ O2 G* E, q6 H& `# r6 V* t Str := callfunc ('checkenoughspace 5');
/ E& z' ?& a% j% i5 X( f5 g" Q if Str = 'false' then begin
1 N5 e% }6 f- O; K; y print ('say 物品栏已满需要5个空格!');' e1 B& h+ M1 ^" U5 t f+ K) T
exit;4 ]" Z X; I, d8 o3 D
end;6 c5 A2 R, V' `4 p
for MapId := 0 to 200 do
7 x0 @- M8 s: i- j# p. u begin/ M5 A0 z9 ?. r$ v
MapNo := IntToStr (MapID);
$ A2 ]/ L" V/ V) \' k3 l3 b str := 'sendnoticemsgformapuser ' + MapNo;2 a& h9 G/ h. z
Str := Str + ' '; k ^1 V2 Z9 b8 K& _3 T
Str := Str + '【会员系统】:『';6 w# U- z3 z$ ^& f4 |3 ]
Str := Str + Name;5 u! E4 U9 W1 z* N+ ^
Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
7 H1 |. m6 H& n, q! o+ l( k9 j; A print (str);
/ x, H! ]- }6 p; G7 ^ end;3 A4 }& }. ^3 U
print ('putsendermagicitem 修练枪:1 @会员服务 4');
, y* L" ~( }8 B8 {2 D% f- l: C print ('putsendermagicitem 修练刀:1 @会员服务 4'); ( z( @3 t @- u% Q
print ('putsendermagicitem 修练剑:1 @会员服务 4');
, i/ D+ u2 Q! C2 s print ('putsendermagicitem 修练斧:1 @会员服务 4');8 n m7 Y {: u$ n5 M& {$ P
print ('putsendermagicitem 修练拳套:1 @会员服务 4');
7 Y+ W( k1 s% Z4 x/ l* M0 Z7 t V print (Str);
! P& ^$ G. B Q4 S+ e4 ~8 e! z exit;
1 n8 v4 }0 {/ e8 E end;$ m% \0 U `; o- ^6 N5 b, u- W
if aStr = 'chuqu' then begin
9 Q: v" `$ t \, F WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!4 i: v) |4 d4 i R
if WqName = '修炼枪' then begin
3 x/ @( E c: {% o print ('say 你不是吧!想带走修炼武器!');, L J' l+ P4 }! y, h6 `( i
exit;
) Y x( S- E8 p; Y8 ?, r end;
$ I4 @, a4 R+ c if WqName = '修炼剑' then begin
; u" v9 [; q5 A3 y) j* {" G print ('say 你不是吧!想带走修炼武器!');$ \1 m3 m. s8 J" K' r: l v
exit;
3 |7 E8 L+ g% ]( T0 a& V end;7 h' c( q, @, n0 \
if WqName = '修炼刀' then begin
: K }7 Q& I* Z print ('say 你不是吧!想带走修炼武器!');) r" ~) c' S9 I: `
exit;/ R$ K2 R- C' z' }- a5 ]7 O( N2 ?
end;
' o. N( \. K9 c# f& U if WqName = '修炼斧' then begin
c# i% d3 V- e7 V; H- p) n* B. W print ('say 你不是吧!想带走修炼武器!');
0 B G- M( h" n W: D, A$ E6 F exit;
1 Q8 q" ]: Q" _3 u, ]: l7 o, G5 w end;6 W. t4 W( N1 W; E4 H; U
if WqName = '修炼拳套' then begin6 s3 J' B8 Z. m
print ('say 你不是吧!想带走修炼武器!');
; p# T- W0 f, l+ H U' F exit;
3 b% }+ L; y& _. F" p end;
# ?3 K" ]7 E4 j$ Z for MapId := 0 to 200 do
/ a2 ?* u* r9 G1 N$ O begin0 C1 I3 t( @( u3 T, u3 s, ]
MapNo := IntToStr (MapID);! j* P. _' E, s7 K
str := 'sendnoticemsgformapuser ' + MapNo;
2 h1 d- Q! W0 }' u; x% B; N Str := Str + ' ';4 j4 e# S0 F% I7 r3 T1 o
Str := Str + '【会员系统】:『';3 G% a- A3 `& c4 I
Str := Str + Name;/ K. X* z7 B6 |$ `
Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';- J* ^; E# T( C) |* ]& d
print (str);
6 H8 R7 V0 t) _6 J+ n8 G; l% S end;
# O3 O! E! x, H4 K5 o2 r& R" K print ('getsenderitem 修练枪:1');//出去就全部删除物品
" g+ a$ G1 y" C* K) J1 c7 R* Z$ F print ('getsenderitem 修练刀:1');/ E# u9 P) E& Q
print ('getsenderitem 修练剑:1');) s' _$ t" ^5 _* K2 W
print ('getsenderitem 修练斧:1');0 U" X$ Z. Z+ o
print ('getsenderitem 修练拳套:1');, n3 O p- k0 r- {! D! W
print (str);
" d( U, o) H* l9 N& W' E; K3 ] Str := 'movespace ' + Name;( y. U; C, q: i7 j
Str := Str + ' user 1 500 500';/ m: I- \% H* `
print (Str);
/ K+ S8 I+ X- T/ S% r/ `! T, ^' T exit;
7 }, K1 W1 R9 X4 s end;
* h/ ^8 g1 s/ K+ Zend;/ V6 K3 n+ g% K8 {
end. % Q6 j. b9 U4 _6 D# N* o
|