unit 会员服务;
3 l$ w, z. }. Q2 a% U" \5 Z# G8 d. P& {, x% ~; ?
interface/ {' A- |" [$ A* D @+ p$ ~
, u+ }: l+ t! e# G' K2 d
function GetToken (aStr, aToken, aSep : String) : String;) ]5 D; I2 h) X/ p" z, _% w; F
function CompareStr (aStr1, aStr2 : String) : Boolean;. Q" D }2 E& Y( \3 z2 [! |/ z ^
function callfunc (aText: string): string;/ I2 ?5 L$ d+ Y8 _* t
procedure print (aText: string);* u6 |( `: r) \5 q/ f) ^
function Random (aScope: integer): integer;: S8 d% ?5 E7 ~ s) O
function Length (aText: string): integer;
7 d9 w% V" C. |/ r+ Mprocedure Inc (aInt: integer);2 w. u) q. ]3 ]/ }; Z
procedure Dec (aInt: integer);# Q; O) r: r3 u7 M
function StrToInt (astr: string): integer;
; Q% N) ^( S. O4 Ffunction IntToStr (aInt: integer): string;$ B B) b, A; R- n2 }$ H
procedure exit;/ N0 p/ b# v# k7 F: ` U1 K7 \
4 R8 H: B& B1 p5 d/ ~
procedure OnLeftClick (aStr : String);
" T0 E6 K8 J, P. cprocedure OnGetResult (aStr : String);0 u x8 z+ h9 v1 q t1 \& s# t
& c9 D# E) Q6 N2 ?; v) d( J; x" Jimplementation
2 p3 C1 Y4 t' g, o' I) K- Aprocedure OnLeftClick (aStr : String);
( ]* G8 u, N/ x* K! Q" n, y kvar# w: w2 f/ ]* z5 f* W
Str : String;4 E% V0 h, g+ g; V# k& Y; M
Race : Integer;0 e G, P1 H6 t' ] j
begin
' {; d# Z7 F7 E w5 C; Q8 ` Str := callfunc ('getsenderrace');* N* \: ^! k1 ]! R# o4 ~
Race := StrToInt (Str);
& J5 e, s6 y+ D. `) u' \0 \$ R if Race = 1 then begin
8 @! s5 p$ j2 h9 T Str := 'showwindow .\help\会员服务.txt 0';
( r1 `( s0 S* b0 O4 V print (Str);* h" O2 e) ~+ d6 @
exit;
7 g' g- Q8 l5 W) K( t- W$ j end;" w1 Q' g J, e1 M" q% g8 V
end;
9 ^% ?& C9 C) O8 ?procedure OnGetResult (aStr : String);' e# v0 {( ? i( ]! ? Z% c/ {1 L9 S t
var3 z9 Y/ U G' }( w
Str, Name, MapNo, WqName : String;+ L/ c0 q& |* }; u
iCount, MapID : Integer;$ P9 ]0 ~( V/ `; K
begin0 U( E! g. V1 [4 U& j$ [2 u3 @
Name := callfunc ('getsendername');
1 Q7 C2 D- r u if aStr = 'close' then begin4 t3 a4 y; g) x) m
exit;
9 j* S7 t# Q; X, D end;
' ?# z A' q) k0 j$ X+ V# `0 i1 w if aStr = 'xuanzhe' then begin! o$ o; [8 A5 V; _9 p6 @( C: d/ p
Str := 'showwindow .\help\会员服务1.txt 0';- `3 u7 o9 _4 J0 h; [
print (Str);
) N. V) V% p8 e8 [$ ~* l exit;
3 A, B$ ~! I; B7 t8 N& d6 ` end;
) z" X# U7 ]% N5 D* K6 r9 z' `0 t. Z if aStr = 'lingqu' then begin
* \3 M/ G; g6 H. V. a Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设" z1 s' S% l+ Z) }# R7 ^9 Q- ~
if Str = 'false' then begin
4 W( M K! o' Z: U print ('say 你不是会员吧');: [+ p4 V8 s4 `* c5 w
exit;( B# d4 M3 X! C0 b' f, G& {4 i
end;: g, L) @/ | n1 N
Str := callfunc ('checkenoughspace 5');
2 ?1 l. d: i' `/ z if Str = 'false' then begin
$ |+ a& s9 W {2 T- }0 X- V8 ] print ('say 物品栏已满需要5个空格!');
0 i, G% _: t Z8 b, ]9 Z exit;
d7 ?. Z# Y; Z0 d8 m& `' d& \ end;
) q9 @" S/ E' l' f" z for MapId := 0 to 200 do8 {+ \/ k7 B* y
begin
( I7 S% y, \3 i4 [0 L- v0 C8 [ MapNo := IntToStr (MapID);
7 g: I* P& w5 r+ s M str := 'sendnoticemsgformapuser ' + MapNo;+ z. d8 t1 {5 S' J
Str := Str + ' ';: S# p, o$ D- r, I$ d
Str := Str + '【会员系统】:『';8 v( a/ h8 ?. K7 b
Str := Str + Name;
f1 Y, U& I1 `% x6 v# V) C( L# o Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
2 r, P% p/ T# D/ L% U print (str);
9 w3 P* ~* v# H M, F- e* I2 Y end;6 o2 A( b7 h, w! K3 `
print ('putsendermagicitem 修练枪:1 @会员服务 4');- |# ]# Q% k) N- b0 }9 D
print ('putsendermagicitem 修练刀:1 @会员服务 4');
. k. G& P. x. U0 m: Q print ('putsendermagicitem 修练剑:1 @会员服务 4');
x9 j; o% _. y6 v print ('putsendermagicitem 修练斧:1 @会员服务 4');
( ]/ C7 p' X& d" c7 I print ('putsendermagicitem 修练拳套:1 @会员服务 4');
- W, E3 f+ C$ j1 X, L+ T print (Str);
k. R9 K9 h/ T) |' D exit;
8 O3 b: e1 ~0 s3 K9 b9 o end;2 C( c! G# E! Y9 i) P
if aStr = 'chuqu' then begin
* e9 A( R [7 a$ X! f WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!9 v: \2 n1 _8 A, q* r% Q
if WqName = '修炼枪' then begin
3 S% ]( }% h) y; ~3 L# y& L print ('say 你不是吧!想带走修炼武器!');# Y( u# A M4 M+ X# o# i+ ^4 R
exit;
9 j. p' I! _! q) j: c# | end;; K: q9 B3 T% `3 B* w( z
if WqName = '修炼剑' then begin, B |; a' Y0 a Z
print ('say 你不是吧!想带走修炼武器!'); O1 j3 F# \& H
exit;
) u7 O8 g# r B4 ~/ ?$ O9 y end;0 {% H) p' O2 Q1 P- h: K
if WqName = '修炼刀' then begin9 a2 O2 \. s c1 ]9 u
print ('say 你不是吧!想带走修炼武器!');( N7 S7 |8 O+ y6 c7 l3 ?# p
exit;$ B" R; d& D# M1 j9 T- p
end;! b. R. s& N0 l& Y4 a! {6 Q
if WqName = '修炼斧' then begin, l. q. f- a% ~4 W, P A W1 c
print ('say 你不是吧!想带走修炼武器!');- Q4 f5 c8 g N+ i% O: F
exit;* x7 W/ g% _. B4 t8 ^0 K; f% q3 h' f
end;
/ f0 N" F t) A1 f8 y+ y+ j if WqName = '修炼拳套' then begin
! `2 F3 S o4 J* C print ('say 你不是吧!想带走修炼武器!');5 K9 [$ T, d* ?% g. S
exit;: D$ M1 r% s& I0 r7 P
end;# J% Z0 g& A; p1 l5 |; e
for MapId := 0 to 200 do
5 I. r B L( y, k7 i6 S" r8 t9 B begin4 e* }% K4 ?7 w. c
MapNo := IntToStr (MapID);
4 y* }8 i) _6 |& s) a3 W str := 'sendnoticemsgformapuser ' + MapNo;+ V' ]* ?$ }5 e [6 j x* O. ^ a
Str := Str + ' ';% [- U+ J* ?4 [! ?! y
Str := Str + '【会员系统】:『';
6 F K7 U( b4 M0 b Str := Str + Name; T' _8 L2 ~5 b3 r7 ~% s7 @8 m
Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';' \& ~8 A& D/ ]4 M5 b% c% y" y
print (str);, I/ u$ z0 _( y/ `# j b
end;
# G" j: f( e5 l, w3 W9 f. M4 K print ('getsenderitem 修练枪:1');//出去就全部删除物品
9 \+ u1 j! M0 k0 q* q print ('getsenderitem 修练刀:1'); [5 ~. Z1 g% y: Q7 T
print ('getsenderitem 修练剑:1');3 e, k+ ~& @+ Q. |' p0 E
print ('getsenderitem 修练斧:1');
% O# s! q. s$ H( u% l( p$ ? print ('getsenderitem 修练拳套:1');
( x* _' M/ Y) D( q" T print (str);
2 r; {- ~0 Z; ~& P, B Str := 'movespace ' + Name;
: G0 l# t& N6 w9 R Str := Str + ' user 1 500 500';
8 l4 g* S( \2 o1 w1 {* k print (Str);
5 j" o8 N& L: z& c7 A8 O exit;3 C3 t* x$ }2 L$ A D! b3 e) L
end;8 H1 `) @( S# K) F8 e
end;' {% Z; X1 \& k0 W, H) Q9 G1 C
end.
9 {; \& p) }' ^3 C* i p' w" C" h |