unit 会员服务;
6 o% _2 \% w& G0 T+ r% t: `& } o7 s/ k
6 }2 V. B# {- t) X/ Vinterface
/ l& s! ^0 v4 u" I2 j- f ]5 U: Y4 G
function GetToken (aStr, aToken, aSep : String) : String;
* U9 F* F0 R" e% J" u. i$ ffunction CompareStr (aStr1, aStr2 : String) : Boolean;+ [$ y3 i" A% Q0 e) e
function callfunc (aText: string): string;
% S) a' e9 X& |4 l7 vprocedure print (aText: string);" x* D# V3 o/ u2 M' S% n
function Random (aScope: integer): integer;9 V' ]7 m b; {) ?/ R ^9 t" \: ~
function Length (aText: string): integer;: P+ v4 O9 U8 @8 H! Z' u l
procedure Inc (aInt: integer);
- i* S+ l6 o/ n5 N, k% W! tprocedure Dec (aInt: integer);
& I v0 u" ~! W1 s& ]- n+ Kfunction StrToInt (astr: string): integer;
& O; x; g( C3 X: O2 A. V) Dfunction IntToStr (aInt: integer): string;# ~5 P' @: u/ h' T% |
procedure exit;% N/ Q5 A" K0 f4 E. p" T$ g4 y; I
: ^8 ^- K$ } g
procedure OnLeftClick (aStr : String);
) V0 c" m, ?0 q. j1 o5 n+ Tprocedure OnGetResult (aStr : String);3 k2 Z( e. [" V8 e; ~ w G
, W% B" u& h( h* Q
implementation7 @4 [9 \! @5 D, S% D
procedure OnLeftClick (aStr : String);+ T. d. B3 c' H' N! W8 E& X
var
! R8 t/ M- h4 l m/ O" a0 Z: K/ f Str : String;7 c0 A" k# X4 f8 `+ }
Race : Integer;- ~; h/ [ I$ x w9 c; d
begin0 }) F t+ P* _( ]' x* r! h
Str := callfunc ('getsenderrace');: e& w0 P v; g
Race := StrToInt (Str);. T' h% k" k& o( D5 s
if Race = 1 then begin4 p0 O7 w, V- p# g+ f" t
Str := 'showwindow .\help\会员服务.txt 0';
/ V T" M6 q( W2 w4 N1 D: v print (Str);0 X; E0 `. Z2 C; u/ h7 ^
exit;
9 S8 A2 B4 q7 J- n% f7 L end;& J5 E- U8 v4 h: N0 A7 X0 i) j
end;" ~* E8 L- @ ]
procedure OnGetResult (aStr : String);/ S/ J0 ?0 p4 j9 Y+ S9 L- H2 m
var
* V; V* Y8 N/ R5 r6 p( n Str, Name, MapNo, WqName : String;6 I0 g5 ~! ~, C$ A8 M
iCount, MapID : Integer;6 ~" Q" U% ?$ q+ E& x
begin
4 U. }; W, B1 @: p! p% k- H% G Name := callfunc ('getsendername');, p& P- B- l$ d, R8 q
if aStr = 'close' then begin/ x: S- ~- s. b0 }8 v# X
exit;3 w& [5 {+ h* Z {
end;2 O" J3 u5 u8 @' Y
if aStr = 'xuanzhe' then begin
7 O* M. @( K* C. { Str := 'showwindow .\help\会员服务1.txt 0';
% I. F$ O/ i* |8 M6 v" K print (Str);
8 U& U$ @+ Z- Q exit;
Q! I9 B( a- v4 G end;
( u1 [2 q9 _* |9 f8 M2 O if aStr = 'lingqu' then begin8 T8 x: P4 ~! ~) T( q5 i
Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设
) T) D9 T2 C; _1 d& t if Str = 'false' then begin; @; ^8 h1 G1 E2 H) x# j
print ('say 你不是会员吧');
& F/ r5 ?8 @, T- n2 L4 ]; l exit;
$ W% k" {6 Z4 q+ ~+ b8 a v end;- s" m i- i9 k) }8 B+ H ^
Str := callfunc ('checkenoughspace 5');; D" U7 p4 {9 D+ [ N6 O9 s
if Str = 'false' then begin
! o* I4 s3 w1 v* f7 Q print ('say 物品栏已满需要5个空格!');
0 f5 P/ C( T" X exit;
" d( l) A) ?& `0 R+ C' y$ U- ` end;
" Q: x J/ {% I6 }5 R$ X3 k! ~9 B for MapId := 0 to 200 do
1 {6 I/ D& H- e( w9 @5 X begin. ?/ Y$ q$ C2 h/ O9 o' x
MapNo := IntToStr (MapID);: V' ?4 x' Z% l% w
str := 'sendnoticemsgformapuser ' + MapNo;
8 f9 t! q( _% ~8 j1 i) g Str := Str + ' ';# u/ Y) A9 ~0 A& l; h" ]/ ]$ _% t
Str := Str + '【会员系统】:『';* x8 p' l9 K5 k1 O. B9 M
Str := Str + Name;
; a8 \5 ^3 s; ` Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
% \" ~% j A! E- p: I$ } print (str);; O L& A: [) E* W6 E/ v
end;
( @! V/ q4 J$ G: Z$ K print ('putsendermagicitem 修练枪:1 @会员服务 4');
( F0 W7 A( `. {3 m4 _6 c4 E print ('putsendermagicitem 修练刀:1 @会员服务 4'); ) j( D! G4 S D3 A
print ('putsendermagicitem 修练剑:1 @会员服务 4');
3 M# n2 D) `3 z4 c& f) w* t' L6 ` print ('putsendermagicitem 修练斧:1 @会员服务 4');
0 s% a% W4 P9 v6 U9 U# ]3 w print ('putsendermagicitem 修练拳套:1 @会员服务 4');
+ F, p" |1 i+ A$ B F2 L3 d print (Str);
+ o3 Z* ?1 s) \( a" _8 ~6 I exit;6 d% J |* G6 `+ [9 q9 g' J$ O
end;
" B* ^; z2 |; W% c2 Y! R1 ]& i* D if aStr = 'chuqu' then begin1 A# L0 X& g7 B5 T
WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!
6 m6 z( W( P1 @6 i7 G if WqName = '修炼枪' then begin- g2 ~/ e# U& x6 D1 Q
print ('say 你不是吧!想带走修炼武器!');; m' e" q$ [; {' e+ Z
exit;0 I' q2 P# q8 N! ]+ N/ G, T
end;/ F) d: x# \+ E9 w: }. ]
if WqName = '修炼剑' then begin) w) S) M) M' Q2 T: n+ E
print ('say 你不是吧!想带走修炼武器!');
% q: H p" x3 D$ o1 r# j exit;$ y, G1 r$ V# P# s0 C( J* O* \
end;
0 N" P, I& }4 c( I if WqName = '修炼刀' then begin- u7 B6 n0 L( i* Q) q8 E
print ('say 你不是吧!想带走修炼武器!');
7 Z J( @3 m6 H, r9 D! J exit;6 y- p' a1 O% v3 \# h
end;& {) s: Z6 U4 C6 f
if WqName = '修炼斧' then begin
8 K( T# _. U+ X5 C$ i) A print ('say 你不是吧!想带走修炼武器!');& j3 R3 W' P7 e8 h
exit;% P' ^6 x7 a; n' z
end;5 F+ y j$ x8 f2 i5 c
if WqName = '修炼拳套' then begin4 f) z, V4 ]; ~0 N$ o* s8 }2 Z
print ('say 你不是吧!想带走修炼武器!');' {8 b9 K* f5 `+ F% F) y
exit;' K$ L; x$ _! |! `" v$ p* X
end;' q6 K, r, @4 ]; v( r
for MapId := 0 to 200 do4 c; H# z8 N" v1 X- i& O6 Z0 G
begin$ w' z( W! S \; w l, U6 p
MapNo := IntToStr (MapID);; K0 _3 V2 m" `1 V
str := 'sendnoticemsgformapuser ' + MapNo;" L% R- O9 F% Z8 b
Str := Str + ' ';
6 ^, X! z/ u; O5 p) H( f Str := Str + '【会员系统】:『';
5 ^. W) y/ s# M Str := Str + Name;
1 z8 A* `4 t# I% R& A/ E Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';
( l" X) z3 |% p$ \: j% [* z* Q print (str);' ]5 R$ L) K4 \0 A% c3 f
end;, M8 V0 M" s: b/ `- o
print ('getsenderitem 修练枪:1');//出去就全部删除物品
1 ~; r; d/ d6 I7 F print ('getsenderitem 修练刀:1');
! D. r. ]0 x% S8 ?* u7 Y: g print ('getsenderitem 修练剑:1');
* W+ c) C0 ~+ _4 v0 k" O print ('getsenderitem 修练斧:1');
% w2 A; n z- T; a3 \& M print ('getsenderitem 修练拳套:1');9 l! }- t4 m& U8 d/ T; Q
print (str);& U, h6 }; p8 h
Str := 'movespace ' + Name; ~ b4 r$ ~2 b
Str := Str + ' user 1 500 500';
& f% g" A5 T, D1 `1 b2 [ print (Str);
8 U1 w& C# `( o Z7 H; ~ exit;# E/ _# F. C1 L* ]9 ]5 W( x, ~
end;' S- a0 l s+ ]- `. Z- t- D
end;! I8 w6 g( U% v8 g* q- j
end. $ i5 p& P$ M) m) w* @2 R' a
|