unit 会员服务;
' T) W4 `9 T) r3 v2 k" J! q4 r; o0 W! C6 L$ G# c( j4 ~5 O( Y
inte**ce
. M0 w. e# o/ h$ B( G! ?+ R4 ]4 K% w: H* g
function GetToken (aStr, aToken, aSep : String) : String;- B& ~% i' B* i2 a2 X
function CompareStr (aStr1, aStr2 : String) : Boolean;
; c. Z3 K3 y) gfunction callfunc (aText: string): string;) i2 X. K5 M0 c5 v/ E1 l
procedure print (aText: string);
, r+ J6 u/ H; B' G. u$ Q" Rfunction Random (aScope: integer): integer;! ^2 Z/ C3 J( ?# r, {1 o
function Length (aText: string): integer;% `- q3 G, g7 Q9 m& }
procedure Inc (aInt: integer);
8 V- K6 n, K& [5 fprocedure Dec (aInt: integer);
& s5 K0 U% p$ |, w: ]. z, m4 e2 Wfunction StrToInt (astr: string): integer;! C9 |& c7 s! F, g" Q; i- ]5 Z
function IntToStr (aInt: integer): string;% L/ b8 U& M1 w- ?6 K0 R
procedure exit;; t8 ^: ]7 k) I1 V
8 I: a$ Z3 f0 {! o; D7 C
procedure OnLeftClick (aStr : String);
3 x, F. b" d: s( b/ jprocedure OnGetResult (aStr : String);
7 T/ Z5 {+ [9 ]3 t! m) D+ n; V" B" q' g
implementation8 T4 d: r8 l7 I# \5 F# W1 ^
procedure OnLeftClick (aStr : String);
% Z4 [ O9 I2 l3 g; t, s" evar, h# |% J0 a/ L7 m1 r
Str : String;
$ L- u2 t7 P% H* t0 D3 h Race : Integer;
% F# B6 X+ X3 R* ^4 wbegin' J* q% e& q1 J6 X8 k- N
Str := callfunc ('getsenderrace');) Y; O5 k1 Q/ p) Q! V9 Q6 n
Race := StrToInt (Str);0 d0 v2 P: l* R7 o6 ^# O
if Race = 1 then begin- k) B; c2 L& o ^+ f+ x
Str := 'showwindow .\help\会员服务.txt 0';$ l& M- {0 R* o! O2 A q
print (Str);) Z% N! `# o! Z
exit;
; j/ b& V y( L end;
8 V% b% p, z" Xend;. F( u! I5 t. F8 k; g4 Q" q
procedure OnGetResult (aStr : String);8 R& ]+ ^) e; K; s! N" ?1 B8 j
var; T5 G, t# z, E! G! G
Str, Name, MapNo, WqName : String;4 ?, f8 o% [5 A/ @ M" U
iCount, MapID : Integer;& V1 O. z' B4 \# b3 Q
begin L. W2 N7 E! E! a' |
Name := callfunc ('getsendername');
( V6 E9 R5 K. Y3 x$ [; t if aStr = 'close' then begin
7 F. T% b! ~4 W% u$ f) G exit;/ T q1 G$ y4 q4 k3 [+ a; F
end;
: ~! z5 W& H+ G1 K' I( b8 o if aStr = 'xuanzhe' then begin( g- g: j8 `2 R9 u
Str := 'showwindow .\help\会员服务1.txt 0';
# n0 r+ z' }2 u- R- {/ h- c+ r, V print (Str);
. [% E% l) C$ ] exit;
1 N* I# V; d1 \2 N6 k end;
3 s+ @0 O1 _ j if aStr = 'lingqu' then begin
( F+ ^; s2 }; m# s9 J4 S) { Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设
! ?- E$ ^& n5 L' \8 f if Str = 'false' then begin
9 ^1 e1 g; I) t print ('say 你不是会员吧');
, Z( T# G8 C5 |- a: P. G exit;
# E7 k8 C1 s. ?5 A( y end;! p) E! Y8 b) k0 L2 p7 B
Str := callfunc ('checkenoughspace 5');; Y9 E5 i, i" z- u7 |
if Str = 'false' then begin
& u8 Q* ?4 D& `+ o$ | V5 L print ('say 物品栏已满需要5个空格!');
' T" a0 ]: Q3 A3 s v' n exit;+ q4 {: @' J1 Z& v. R' d# [
end;0 c# \; y# ?& H* ?1 }8 x, |
for MapId := 0 to 200 do
5 I4 q- @- \9 Y7 D" c begin$ B7 i+ w6 c; H, F5 |
MapNo := IntToStr (MapID);) W2 t" Z. @5 u) j
str := 'sendnoticemsgformapuser ' + MapNo;
+ w6 f: f4 b& {0 p t; m6 v Str := Str + ' ';
4 J) Y; |5 ^; ~2 z' B G8 R) W Str := Str + '【会员系统】:『';
# t. M1 Y5 y" H6 q. ]7 A0 t5 [/ j Str := Str + Name;: s3 @) I0 s( z
Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
0 h$ C: A" ]3 X- Q print (str);
1 G2 I3 C D7 y9 J1 v end;
9 z- A1 A8 ^3 ]% [' {! G print ('putsendermagicitem 修练枪:1 @会员服务 4');7 Y4 N1 \4 d: K2 K; j f
print ('putsendermagicitem 修练刀:1 @会员服务 4'); % F4 T4 m* }& }8 K2 ~
print ('putsendermagicitem 修练剑:1 @会员服务 4');
! z5 a8 M3 F7 w5 K( @( J8 C p: M. o print ('putsendermagicitem 修练斧:1 @会员服务 4');
: H, J g; B5 x7 R7 B' ~/ \/ O print ('putsendermagicitem 修练拳套:1 @会员服务 4');0 d/ B" V; ~; U$ d8 n; K! Y
print (Str); . A3 X( C$ u1 X% h# Q6 g
exit;
% E1 A6 L. @! G) Q end;/ |1 b; N# T3 [; R5 ~5 M
if aStr = 'chuqu' then begin
& d7 V* ]3 Y* P WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!. ^- l; H5 `- P) E! ^5 _& ]9 E8 q
if WqName = '修炼枪' then begin
+ S" Q8 X- S \# K" j# ~ print ('say 你不是吧!想带走修炼武器!');6 {. @$ b# o5 u' j4 J
exit;
# Q! B- R8 p! b) } end;9 j. Z) ?, a( u+ i P
if WqName = '修炼剑' then begin
# Z, Q t3 C3 W" O! j" C print ('say 你不是吧!想带走修炼武器!');/ B# G# _4 m% B: |1 k5 U
exit;
" {* P8 x* m# v+ F end;
9 f# Z. Z* ?6 c ^# q# l# K3 A( v if WqName = '修炼刀' then begin- A2 f4 d5 ]- _( {. y
print ('say 你不是吧!想带走修炼武器!');0 H+ {* ]8 G% \1 { P
exit;
1 ]* e! c! D& n% H' z1 @ end;4 p! e9 B! C) J. T
if WqName = '修炼斧' then begin
1 Q' T9 x! ?, u4 M6 P3 X3 u) M print ('say 你不是吧!想带走修炼武器!');
6 s; | V' }; d: c6 J# \5 f" E exit;
4 r$ x( y& ]9 A7 H6 \# Y& F end;
v2 W# z6 A9 L5 p, z1 ^0 G if WqName = '修炼拳套' then begin h' K7 W9 F7 @3 I) }
print ('say 你不是吧!想带走修炼武器!');& L8 p' p" N, y! m& T& d9 W' S
exit;# t( J6 D5 z' Y( @+ n/ z( {2 l
end;% f1 e! R8 v& h2 U( N$ y
for MapId := 0 to 200 do
" {( w8 U+ D# e5 k! C begin! S1 A9 t8 i" C# i3 E
MapNo := IntToStr (MapID);# m& x; O) f% O+ R) U( m0 d
str := 'sendnoticemsgformapuser ' + MapNo;0 v( k2 x3 A8 r
Str := Str + ' ';4 V1 j6 m# `( a: Y2 d2 x
Str := Str + '【会员系统】:『';/ n' h- L1 W' b6 H2 l" O7 ]
Str := Str + Name;" R9 _8 A' c# w; c9 f: b8 I2 g: u
Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';7 [/ o' M3 Y7 ]# T
print (str);
4 u6 u% v/ e _1 y' \( [ end;
( P. z' `" ]" Z/ g0 x1 k print ('getsenderitem 修练枪:1');//出去就全部删除物品
0 g1 e' t. l) n: p1 T- q `+ G print ('getsenderitem 修练刀:1');8 K( q: {5 X0 I$ W& `; @
print ('getsenderitem 修练剑:1');* O( e3 k E0 ~9 p, k. u& O
print ('getsenderitem 修练斧:1');5 a$ m( q* D* k4 u, E* S% x
print ('getsenderitem 修练拳套:1');' u3 n, {! x! n9 W3 K; _6 w
print (str);: Q4 \# \- ]* M. Y \* z1 _% ^1 ^
Str := 'movespace ' + Name;
- a+ [+ e7 ^' [* f4 j. K5 N Str := Str + ' user 1 500 500';
5 u! W6 A1 \2 z; j2 ] print (Str);; |* x6 f* r# k2 F5 g( n
exit;
( o/ {9 W. c) q- y" d end;! U. |. `0 U7 [7 {+ {8 S; p9 K9 g
end;, k) E6 a$ r0 O
end.
2 f6 ^/ l0 P; _ |