unit 会员服务;! d. O% |5 @- j
8 F" y1 n: O: \* s6 Kinterface
3 q) z6 C- l* v4 o2 j; o( }
: k2 |2 I# k# B+ b: [ R$ Pfunction GetToken (aStr, aToken, aSep : String) : String;
& \3 c5 F* j k* t0 Y& Ifunction CompareStr (aStr1, aStr2 : String) : Boolean;
* q3 [/ z M5 z/ Mfunction callfunc (aText: string): string;
& ~5 K0 G; A6 \6 U1 ~% Xprocedure print (aText: string);
: \: m# [% `; e7 Mfunction Random (aScope: integer): integer;( @0 X, M% F9 F! V6 i8 Z, w
function Length (aText: string): integer;4 ~' g* D: _% O) {
procedure Inc (aInt: integer);
% T" h( A4 m/ J& c; rprocedure Dec (aInt: integer);
6 `; [. i W" @6 `0 ^; hfunction StrToInt (astr: string): integer;4 n! v7 D( C* B! a: \8 d" T
function IntToStr (aInt: integer): string;
^- k1 x" s( Tprocedure exit;
6 t/ r* R4 e0 @; \! P( N! ^
# }5 A. ^! v) Wprocedure OnLeftClick (aStr : String);0 O4 q8 W+ S3 P( E* u" ]9 Z
procedure OnGetResult (aStr : String);
, `" F3 P- u9 f' ~ H4 L
+ [! k! a8 l& x- }implementation
_% `& j" `+ Y( t7 {procedure OnLeftClick (aStr : String);
- D8 [1 V% o) Q- t. ~; I$ A5 Ivar
2 m: E! K; ~* T Str : String;
$ k/ N3 x. L/ ^( d Race : Integer;
) o4 ?1 o% q6 i/ O/ rbegin4 {1 M5 {4 I: n! G j
Str := callfunc ('getsenderrace');5 z4 w8 u$ @9 C9 x" i9 a
Race := StrToInt (Str);
, _$ Z E0 a4 b- e* A0 ~ if Race = 1 then begin
0 G( r7 G/ D# |6 x Str := 'showwindow .\help\会员服务.txt 0'; u6 K) ~$ t8 l, v0 ]/ u0 U
print (Str);
% z, x# D7 k, Q. c( N3 h) Z9 M& O exit; J9 z+ J/ \) b. }
end;
5 b5 }$ C$ J% g+ W9 Kend;
; s0 H& B3 H$ c8 U1 H7 X! v4 rprocedure OnGetResult (aStr : String);9 D, v) Z7 c! p% _% u* u
var7 ^) M6 T7 ~- ~- B6 j+ L V8 A
Str, Name, MapNo, WqName : String;
. m. {# k. p: U" A9 c* \# k2 i iCount, MapID : Integer;, [+ o# d* R. b1 E
begin
6 A# X, x. H% X! Y Name := callfunc ('getsendername');
t. `! ?2 n% `, a if aStr = 'close' then begin) E* B1 t6 r5 G: P
exit;
0 e6 g T8 C! H- r% }5 O end;
: c. E b) [6 _9 ?3 D" {! C if aStr = 'xuanzhe' then begin
2 e8 C5 W( _; c0 M Str := 'showwindow .\help\会员服务1.txt 0';
) S- A9 E9 R5 l' a print (Str);, W! H6 f- [1 y: g. k
exit;
$ M; s7 g) D% A: V- Q8 I end;3 C- H8 F3 Q: z; g+ P
if aStr = 'lingqu' then begin
1 M' D4 z% d# q3 c/ S Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设. B7 l% E4 o9 t; ~
if Str = 'false' then begin' F6 Q9 O" j( \0 N/ |* _3 E& m
print ('say 你不是会员吧');& O- O( T5 O7 e6 `+ b% R7 w
exit;2 Y3 B5 F% x7 I8 s1 U- h
end;
3 G( x. t2 X1 [/ N& s5 ^ W Str := callfunc ('checkenoughspace 5');
. q2 X! j7 v5 T- i if Str = 'false' then begin
! J0 z) J' m6 \3 S; Z print ('say 物品栏已满需要5个空格!');8 |" j% H' a7 \
exit;6 F. C, S0 J c: r O: V2 Z
end;
$ D" n* B2 O$ |/ T9 g0 y( f1 ?. n for MapId := 0 to 200 do: G! p0 s' O9 T9 y7 W5 G
begin& X" n1 j. `0 S0 b
MapNo := IntToStr (MapID);
( W, Q. ^, Q5 U D9 Y: P2 G str := 'sendnoticemsgformapuser ' + MapNo;( u. I$ l+ m) _/ m$ I/ Y
Str := Str + ' ';- M, C2 G9 X3 n4 Q0 H
Str := Str + '【会员系统】:『';
# T! |7 U6 p; l/ F* ^ Str := Str + Name;
) b) c: ?6 F5 J. f6 y Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
% z7 c! f6 r& V S# m% O. w/ z print (str);
" X' c ?% U. V3 o) \. H end;, z) I5 o. B3 `/ w& w4 v
print ('putsendermagicitem 修练枪:1 @会员服务 4');
1 O9 }0 b _; f m$ a8 d0 E3 h print ('putsendermagicitem 修练刀:1 @会员服务 4'); 8 c: A5 b9 g3 K
print ('putsendermagicitem 修练剑:1 @会员服务 4');1 Y4 f5 F3 w0 J9 t7 G
print ('putsendermagicitem 修练斧:1 @会员服务 4');1 J1 Z4 V- E4 g3 ?; s$ d
print ('putsendermagicitem 修练拳套:1 @会员服务 4');
6 c0 v: u/ S" R6 a print (Str);
e1 H3 V+ ^! l7 c* h exit;
* `8 Z% |* I! I. Z6 \4 e4 G end;
. O" b9 ~& e, L& Y if aStr = 'chuqu' then begin
' ]; h( t6 c ?' \+ W- U WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!4 ]1 d2 k" Q' ~+ W" d- n' g
if WqName = '修炼枪' then begin
% ?; m' e# R$ h print ('say 你不是吧!想带走修炼武器!');, e1 Q$ x8 O5 x5 a; v+ B) Y8 I3 q
exit;9 w9 h$ G% a! x, R6 o
end;9 }4 f% q* B0 O
if WqName = '修炼剑' then begin: i7 V1 \ h. h. }+ r4 Z
print ('say 你不是吧!想带走修炼武器!');
& I" w, A) ]+ f( o) G3 P( K! [ exit;( u1 m- x1 V9 P
end;: X& S6 x, i! g* E
if WqName = '修炼刀' then begin$ J8 `7 {7 R4 H1 v8 m4 ?" \2 y
print ('say 你不是吧!想带走修炼武器!');' ?$ r. B/ U& D" N7 m
exit;
% n4 \' V& h# D8 s& R0 r7 ?) L7 p6 [ end;
: c4 O. O0 y7 A' N9 X* P if WqName = '修炼斧' then begin
- \6 V% X3 L2 J8 M( a* Q. m print ('say 你不是吧!想带走修炼武器!');
: _% n: Q% l" f9 T( ^, y9 z W ] exit;
. U+ J6 _! M1 Z4 P end;
8 G$ m5 n8 w m/ T if WqName = '修炼拳套' then begin
( M1 j6 x, c! ~8 ] print ('say 你不是吧!想带走修炼武器!');2 H8 [2 { W3 Y5 {6 k" |
exit; v# P$ m# V& }' A( _( c% A" |
end;0 Y; O7 T$ u4 U; ]$ v
for MapId := 0 to 200 do
1 h5 ^7 l/ H0 G begin
W1 |6 U( g" f8 I# @ MapNo := IntToStr (MapID);
5 d/ b2 @" I2 \0 {7 L( e+ S str := 'sendnoticemsgformapuser ' + MapNo;9 u+ o4 Z: v5 C: Q5 R
Str := Str + ' ';
- v: [# B# ?% O2 J* G Str := Str + '【会员系统】:『';" \1 @# \) ^0 M( p b, |# p% u
Str := Str + Name;
0 Y p% R8 V. B+ q7 v6 c5 o Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';- w0 m. }' F/ C6 I- e" b
print (str);
& O2 v0 h% |" C end;- C9 j' A7 d A- j/ J# z
print ('getsenderitem 修练枪:1');//出去就全部删除物品8 W p1 S' f2 \$ O/ \
print ('getsenderitem 修练刀:1');! f/ o6 k3 U/ n; V3 X5 U
print ('getsenderitem 修练剑:1');
+ t& Y+ t5 l1 I! O ?% T0 } print ('getsenderitem 修练斧:1');
% ?7 d9 @2 w' r/ v print ('getsenderitem 修练拳套:1');
$ ^0 U4 i+ K% h- z1 I print (str);. @" [$ a* G9 t5 V; v
Str := 'movespace ' + Name; [/ w7 W9 E2 m$ _
Str := Str + ' user 1 500 500';+ A1 F1 ^8 N0 U/ u5 s, e
print (Str);
) P C+ i+ U, w exit;8 l7 N6 c, c; e) n
end;
* H3 _. o' c- j! e6 k% aend;2 t0 ~5 E$ k, \/ p$ c2 X7 |* u
end. + E0 x; l* A$ z
|