unit 会员服务;
: _& ~+ H D3 B/ h7 H
$ i" U# g9 J: z4 j6 Jinterface6 _* X# E' \6 F2 Q& i8 j
6 J, ^# N9 h5 ?/ R4 M$ Gfunction GetToken (aStr, aToken, aSep : String) : String;; @. q8 K. u3 M! Z$ \: {
function CompareStr (aStr1, aStr2 : String) : Boolean;7 V( s4 M, S6 V# g8 X
function callfunc (aText: string): string;
- e5 R7 @6 Y9 Y4 x3 w6 x$ ~procedure print (aText: string);/ G" o& Q7 \/ ?7 O `' L1 W/ L
function Random (aScope: integer): integer; t: o p9 s: I4 A) C; @4 \
function Length (aText: string): integer;
% D: Z- ]4 d! I* g5 h' l+ o0 [procedure Inc (aInt: integer);+ v4 b5 b! b& g' m
procedure Dec (aInt: integer);
- r |! T' U0 R6 rfunction StrToInt (astr: string): integer;
" I8 y" K2 g( K6 ]1 j- T$ Nfunction IntToStr (aInt: integer): string;* c2 x8 G. L& A- v% j1 W
procedure exit;
C" ]: ~6 D: j+ [5 N1 j' B
- E% L5 p+ r) [9 Z2 zprocedure OnLeftClick (aStr : String);
# Z) y: f& M3 eprocedure OnGetResult (aStr : String);
1 |& j* d! z# x2 G; l0 W) B" _( y: o/ ?, T: R% T) i
implementation
$ }+ L. N( m* T2 n$ Q5 V; iprocedure OnLeftClick (aStr : String);4 {4 d/ I' b; a' } O! d+ W
var R- r8 [) o6 V% m+ |9 i! z+ Z& d/ [
Str : String; M1 n; h9 {/ J& ~
Race : Integer;% o( n7 y4 {4 j6 I8 l: }( u4 a
begin9 v7 S$ s! S7 K4 g+ X8 x; m
Str := callfunc ('getsenderrace');
3 A' d1 X W z& m Race := StrToInt (Str);
$ k" [& W1 o1 ?& c- Z if Race = 1 then begin
! s6 I3 N# e$ @" [; h/ W$ @" Q Str := 'showwindow .\help\会员服务.txt 0';
! I- _6 ?/ E( A% Q0 N& M! e7 S0 l print (Str);" J1 s" r- ?/ B5 q D
exit; + `6 {3 }3 U+ l* e- Z# L7 S. P# n
end;
5 ?5 k% t+ K9 x2 W z3 Z/ L: f/ B7 Yend;$ v# U' l) a# _5 y0 _5 L) K% o$ v
procedure OnGetResult (aStr : String);# Y* b& f0 H4 d0 g
var% A( D4 ~3 X$ t" k
Str, Name, MapNo, WqName : String;) s: [6 s- m& A7 a6 \9 n5 a0 ]0 [
iCount, MapID : Integer;+ h3 W" E& [9 A
begin! c1 i) h, f) Y1 O& }
Name := callfunc ('getsendername');
; o: [" c$ U& U+ u1 X6 C8 | if aStr = 'close' then begin6 d' Z5 ^4 }5 e1 s& F( p; E
exit;
% y) z0 A: L9 Z" l& r* S( j. r( L end;5 }, h$ ]' ]5 b, a3 \- ]6 I
if aStr = 'xuanzhe' then begin0 K0 u/ l9 K/ q Z, B1 g" y
Str := 'showwindow .\help\会员服务1.txt 0';+ s0 q2 n( G! Y0 }2 u
print (Str);4 ^4 [% `! d% B- W& f D
exit;
8 @" t$ n# h, `3 l- t end;
; h$ ^( K5 W8 c+ t' t if aStr = 'lingqu' then begin
, k+ F3 J% s; A" ^. P. P/ A Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设
8 F1 y% l* [) z2 z5 ] if Str = 'false' then begin
1 O2 y# P( H0 c' ^* ?( _. w0 j% q print ('say 你不是会员吧');
8 m$ H$ ?4 L0 \2 o0 I exit;9 `0 d. N8 \" h% R
end;
2 P) A) c0 u, a Str := callfunc ('checkenoughspace 5'); C/ U) P3 L3 [
if Str = 'false' then begin
+ I" W ]. n) f/ x print ('say 物品栏已满需要5个空格!');
$ c( w; O; P- k6 A; n exit;
7 r7 N/ J* O" [9 [7 e7 ` end;
7 n/ b, }* R" W' r, b( E for MapId := 0 to 200 do4 i+ A3 ~- R6 I+ \( I+ j
begin
% b5 E2 ~* F5 Z* }1 b( H MapNo := IntToStr (MapID);
5 a4 @+ X6 O0 W0 a" _( F str := 'sendnoticemsgformapuser ' + MapNo;% L2 m8 R. X8 u7 a+ T. \
Str := Str + ' ';
5 N9 J/ |, D1 n7 u1 p3 k6 P3 x( a Str := Str + '【会员系统】:『';
+ I' f8 s L* y0 x% c2 q Str := Str + Name;
7 S! M: Z, `0 b } Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
; z3 | f- }. j* W; |; Q print (str);
% p0 S5 b1 P, p; ?9 { C5 | end;) \1 @; s- w) [, T: x7 D
print ('putsendermagicitem 修练枪:1 @会员服务 4');# q4 f$ Z$ i6 o, \& K4 O
print ('putsendermagicitem 修练刀:1 @会员服务 4');
7 T) Z6 g+ p b print ('putsendermagicitem 修练剑:1 @会员服务 4');1 F4 M# A7 R8 J. ?/ d- ]
print ('putsendermagicitem 修练斧:1 @会员服务 4');5 W O+ h( T$ z' U& ]7 O
print ('putsendermagicitem 修练拳套:1 @会员服务 4');9 X7 [' I/ H3 V* {+ e& q& p
print (Str);
( K1 S; j4 ~' u' ~4 F! G( `8 G& J6 h exit;
7 J8 H1 G" ?* p! @ end;
& F) k( o& w9 E4 O. F if aStr = 'chuqu' then begin* i {) G# L2 i' d& P2 {( x
WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!
6 {7 L4 e- Y" V) S9 H+ g, f; V if WqName = '修炼枪' then begin
* B/ n/ B4 g L0 F0 U# N, c print ('say 你不是吧!想带走修炼武器!');, b, _/ G5 X, s: [. p; T" x5 o( L8 _
exit;. b, d0 {+ L9 h; M- ?& J3 P8 T6 Z6 G0 p+ z
end;
o3 r; |/ x; [+ L if WqName = '修炼剑' then begin R; r+ p _3 s! _
print ('say 你不是吧!想带走修炼武器!');
9 d! f/ m( L$ G, |. E* A {4 X# O2 t exit;
- l# \! v" |& z$ R% x end;
# H- V4 a/ E! V) M- ~' n if WqName = '修炼刀' then begin& [7 d' F/ ?0 Q
print ('say 你不是吧!想带走修炼武器!');1 h. O( N0 s) w( b* Y
exit;0 I7 ~- H) l, c* \. a3 H+ P/ L# _
end;; [9 y8 t) ?" _' p5 F) B
if WqName = '修炼斧' then begin; f5 I7 y$ K1 N
print ('say 你不是吧!想带走修炼武器!');6 a2 q& n/ E6 t2 i
exit;
! S) U, c2 u: s end;
9 P" Q3 N. {# P if WqName = '修炼拳套' then begin8 ?- N( A: F. T( i H. j
print ('say 你不是吧!想带走修炼武器!');
* {! b1 C& v* A( ]7 [+ O exit;
, \9 _$ }1 m2 R& W" f end;
3 I% Q! n* |) k' Y7 H for MapId := 0 to 200 do
* U) A. s# w4 ~ begin
0 R; }7 F2 b l9 `( | MapNo := IntToStr (MapID);4 [: [, s9 U* Q7 {
str := 'sendnoticemsgformapuser ' + MapNo;
) T8 G! D! z+ c3 Q) L; N6 e, u Str := Str + ' ';7 y2 g1 |+ M- ?2 Q
Str := Str + '【会员系统】:『';3 g9 p) z) ^( g" H/ d N
Str := Str + Name;
% ^/ {0 v' K& B Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';4 j7 g9 O% I% P1 A+ l, Z7 ^
print (str);
- F) A/ P- E: Q. P end;, `0 O& f7 m* I/ |
print ('getsenderitem 修练枪:1');//出去就全部删除物品: Q" Z& F& L7 f) i
print ('getsenderitem 修练刀:1');
I7 m% @1 f7 I print ('getsenderitem 修练剑:1');. m; k+ u. k2 M$ K9 i. Y3 `
print ('getsenderitem 修练斧:1');5 R% ?4 x; s. _( Y+ D% a0 m
print ('getsenderitem 修练拳套:1');
+ [( |1 Y4 K# Z1 S4 j+ W, j# ^ print (str);: g4 _8 R# r" G
Str := 'movespace ' + Name;
( L! H* f8 Z8 v' T; Z, }! a Str := Str + ' user 1 500 500';
) V8 {. D# F3 H# ~/ n1 H( D print (Str);
- K4 R7 i+ z# r2 P' l exit;+ U6 ^9 N9 G5 X0 y3 @
end;
) `* b" D7 o8 h! w, t8 G) c Tend;
, w% g; q0 x/ B; Nend. / G- e7 m9 ]4 `0 S7 ^
|