unit 会员服务;
" |. x Q: Z; t9 ^+ c9 `, ]' [9 ]4 b9 `0 s e$ |+ I3 A8 _/ j" C
interface
' P Y+ o0 I4 T! h/ ] P
& m+ v+ j: V+ ]4 w3 Bfunction GetToken (aStr, aToken, aSep : String) : String;
0 k1 a- }) d. H3 s' n% C Sfunction CompareStr (aStr1, aStr2 : String) : Boolean;6 ]- T+ e6 h3 g8 n# Y% g6 x0 r
function callfunc (aText: string): string;0 p2 {' ]: L! }. v4 e1 c% j
procedure print (aText: string);
2 g" S( |: @: gfunction Random (aScope: integer): integer;% {0 V% }, g/ z: A/ d" c) x0 g7 l
function Length (aText: string): integer;
/ M' ]; g" @! P) Q* t0 q+ Fprocedure Inc (aInt: integer);
9 Y+ h1 \9 |' J2 n& f) Zprocedure Dec (aInt: integer);/ l7 M$ j, _- ~# y
function StrToInt (astr: string): integer;
6 U' A3 G4 J( i* y$ A9 ffunction IntToStr (aInt: integer): string;
2 x2 O+ @- T5 [! ]( ~- h' oprocedure exit;+ @( _; U/ P% {+ j. _: D
3 _4 `' \& c9 E' a* F: ^procedure OnLeftClick (aStr : String);
7 D6 c- X, z" t6 T+ H4 A5 ^procedure OnGetResult (aStr : String);( t/ x0 h/ z4 J% W. t# a' N5 W8 B
4 M! R4 t; g6 Z( ?1 H! d* qimplementation
. U8 k: x% \* D7 Q: kprocedure OnLeftClick (aStr : String);
6 d8 @4 V$ u! D. J8 M6 w2 O1 ~var
# g, c; P( Z. z U0 N5 W3 x% B6 W Str : String;
1 o& C7 Z3 P8 h Race : Integer;
: _: ^. m5 V& V8 dbegin
& x% ?! q6 }7 ^) m S Str := callfunc ('getsenderrace');( j7 e( H1 Y' K/ S
Race := StrToInt (Str);
( @2 ~- ]2 c3 a2 R) E if Race = 1 then begin" D' G8 t9 c5 p, ^( S6 F
Str := 'showwindow .\help\会员服务.txt 0';
. Y& t2 j7 o* A2 K print (Str);+ Y! a3 I& Y- e0 W; ~% E
exit; `* G0 [* p6 f; `% H. N, N- g
end;' I. ]& G& H( T+ A* ~, c
end;
5 F3 S: ^9 \. K" nprocedure OnGetResult (aStr : String);: e! U1 h7 }% [6 ?6 x
var' Z4 Z, D8 z; R6 p( D( P. U3 y5 W' L
Str, Name, MapNo, WqName : String;: t0 Z, B0 o [
iCount, MapID : Integer;
) ?. `& d8 H2 ~* O4 N' e Pbegin% ] {$ {& T/ ]+ }+ ^' e& d
Name := callfunc ('getsendername');
" b! O! X4 _, i3 U x if aStr = 'close' then begin
% `6 S0 b) `( o {1 v exit;
2 f# J9 E9 T/ i4 {/ P3 S; n end;7 A4 k7 f/ e! x+ q( E& o9 `
if aStr = 'xuanzhe' then begin
! M- d( ?, |# `2 E7 M* s$ |. l Str := 'showwindow .\help\会员服务1.txt 0';
. F+ r9 m3 c" L, z; V9 Z, g print (Str);
* F1 a$ G$ [) K# s8 Y9 \ exit;
2 {; s8 `: w+ J3 w end;
' e3 f+ g& |2 v3 g- k/ R if aStr = 'lingqu' then begin
3 l: B, R3 I; w$ ~4 A+ @" T Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设
. b! H- P9 Y) x. P- D( g4 C3 J( D if Str = 'false' then begin& U( S% X6 N6 a0 w2 _7 \
print ('say 你不是会员吧');% O9 C/ L2 @8 [3 j& {
exit;& J9 \0 y# _) r+ o) N& X, u; n( h; u
end;
- y; b7 ]2 F$ r( D1 B) T Str := callfunc ('checkenoughspace 5');* ?$ U9 p' C/ [$ X3 `& X$ w5 W* V
if Str = 'false' then begin
+ Y* m& o8 V6 j& Z4 O print ('say 物品栏已满需要5个空格!'); g. v/ o" E! K! i3 N7 j7 G
exit;
8 B4 `9 R* Y2 ] end;8 L7 h' T/ J3 L _# y/ Q9 r
for MapId := 0 to 200 do( ^' Y8 \& c3 A* v# W$ {$ y
begin
+ [; k# Q- K$ w( n* q2 @ MapNo := IntToStr (MapID);2 I$ {4 H0 h7 @9 N, E6 F, X' W- B
str := 'sendnoticemsgformapuser ' + MapNo;
4 Y. ?$ w. C# E1 b2 s% x Str := Str + ' ';; t* d6 Z# q, y* o3 O3 n5 o/ |
Str := Str + '【会员系统】:『';/ }+ u* ~( a* O
Str := Str + Name;& p& ?0 W: p% _6 ~) x( T# ?3 m
Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
1 N! i5 p# Q, M1 E+ B$ ]4 L0 M* S print (str);" ^2 F9 o/ Y0 A7 ]( v1 g8 \) x9 u8 E/ W
end;
% t X6 B( ?6 q8 ~6 e2 k2 J3 Q print ('putsendermagicitem 修练枪:1 @会员服务 4');& o/ Z) r* I6 G! U) K! N# v
print ('putsendermagicitem 修练刀:1 @会员服务 4');
W' _/ B5 H' j( N- z2 J! h print ('putsendermagicitem 修练剑:1 @会员服务 4');
" e/ G. k/ Q- d! `# ? print ('putsendermagicitem 修练斧:1 @会员服务 4');' `3 M( F* s( Y. P+ U
print ('putsendermagicitem 修练拳套:1 @会员服务 4');
4 O# }/ b7 C; C8 S print (Str); : j: |$ z8 B8 k& t) E K4 W
exit;% s: t- _2 S" v) l; \7 \: y# w
end;
: P# o1 ~3 R) N. k2 u+ B if aStr = 'chuqu' then begin
% D' {7 N* M; F; _0 o WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!" Q% e+ t+ t- ]' n% P; O
if WqName = '修炼枪' then begin
5 [. q- S! {* r7 _" ~ print ('say 你不是吧!想带走修炼武器!');& y* L. v1 O. L" N# Z9 ?$ K( b- s
exit;
: S8 F6 s, ]/ ^+ R7 Z. [ end;1 u+ |5 \( y) }1 T6 `0 X
if WqName = '修炼剑' then begin
( U V, |9 r4 O* s, L print ('say 你不是吧!想带走修炼武器!');6 @2 Y5 \- F; N! A
exit;, \0 U: q/ N- J; T, t/ L
end;
: m: e! F, f* j) u, j if WqName = '修炼刀' then begin- I* j% u+ T+ s9 U/ D5 T# Y9 h
print ('say 你不是吧!想带走修炼武器!');
7 m2 G& ^1 z+ S1 L+ }5 S$ U exit;3 D( b& L) `+ G( @3 h3 _
end;# y% n0 F. ?! Q8 U2 F% K- I9 Y5 A' a
if WqName = '修炼斧' then begin y& ?: Z) p& p+ Q y
print ('say 你不是吧!想带走修炼武器!');
& I* h7 `0 F( Y' v exit;) z! {% V u' S R3 X7 z; e
end;
( {/ y1 y0 o; s4 {8 W6 M if WqName = '修炼拳套' then begin
) ?; {( S0 j: E! R1 Q print ('say 你不是吧!想带走修炼武器!');
! ~/ X& p1 h0 a& G5 v0 | exit;
+ L6 L0 T4 C- M+ K+ L; P; B% p end;
' } U# q+ q5 m- O for MapId := 0 to 200 do' J9 c; |- @9 r
begin' j# P6 w6 [' d9 K
MapNo := IntToStr (MapID);
( s+ y2 |, \. r; w' _ str := 'sendnoticemsgformapuser ' + MapNo;
. h* K" A; R8 { Str := Str + ' ';8 m. ?% t0 s+ _" j4 `3 C4 y
Str := Str + '【会员系统】:『';
7 Q8 G( x# D- ^ Str := Str + Name;
* q" }' G- z5 V( n0 Z8 u Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';. k/ u4 q5 R0 L9 u; p( k5 e* J
print (str);
6 i, ]: a) g9 ~( q end;
8 _( V6 U9 m9 S, t8 L) C& J5 f print ('getsenderitem 修练枪:1');//出去就全部删除物品
5 Q% h0 m- p9 a2 c print ('getsenderitem 修练刀:1');
/ g( t9 ~4 p0 L8 \! B: e; C; P print ('getsenderitem 修练剑:1');$ a$ o+ J4 |8 Q8 M* P& a. E
print ('getsenderitem 修练斧:1');
7 R2 q+ s. {* n print ('getsenderitem 修练拳套:1');9 A# F. W- S' u5 V" D8 n
print (str);
4 t9 C8 _: p+ S5 _- f* G Str := 'movespace ' + Name;
' S Z- L$ D3 L. F: q Str := Str + ' user 1 500 500';
" ]$ ^! m: _5 [; U) r/ b print (Str);' X; n% i0 |8 j4 @& F9 b
exit;
( @% t6 `0 A5 v( q end;. H% w$ \- X2 s8 [0 u
end;8 c% |( K' w/ R% I/ ^: H" z: W) _) ~
end.
. c0 i) Z. u' ^ @' {: v W |