unit 会员服务;5 K) b3 j5 z N0 M
1 F" _. b& k' F) cinte**ce
$ B) g4 l0 E c" T# a# s2 U0 [. Q; _) e& \
function GetToken (aStr, aToken, aSep : String) : String;
! H- e% d# V/ O8 H* M& ~, \function CompareStr (aStr1, aStr2 : String) : Boolean;
% y& K* ^& i3 |* Jfunction callfunc (aText: string): string;
0 m7 A1 c9 x9 |% q) V4 K9 f. gprocedure print (aText: string);5 c+ V0 d5 a$ S& p* K9 p. n$ u& H! d& Z+ h
function Random (aScope: integer): integer;' A- H- ]; P" v. E. U. h
function Length (aText: string): integer;
- R/ O2 Q- o6 Z- p9 q, Zprocedure Inc (aInt: integer);
1 w5 V) g* K- x) ~procedure Dec (aInt: integer);
h; m i, @: _. q: xfunction StrToInt (astr: string): integer;
9 n) V6 |9 w9 Z$ |function IntToStr (aInt: integer): string;8 N) Y: S! d- {: s: j' Q4 A" X& b
procedure exit;% r' y4 j( G" B/ b" w9 _
$ T. U% u4 u0 E' A( b+ n
procedure OnLeftClick (aStr : String);
# W9 v2 B/ b! Z: wprocedure OnGetResult (aStr : String);
% v; H' w: j) j' Y
/ K, t/ m6 a, d ~5 ]% p2 aimplementation6 S7 D6 b$ _5 i6 Y w: w
procedure OnLeftClick (aStr : String);0 ~1 c% W7 P0 Q7 k5 e& w! Z
var
' D& a" Y7 g& A: b, n: v4 ?6 Y Str : String;
3 t6 g' A4 M" k/ |- |5 ~ Race : Integer;7 h3 d8 c9 @" z& t
begin
f( ]/ _% c7 ^* T" v/ U Str := callfunc ('getsenderrace');* I5 b7 M: I$ w" G) ?0 F5 V
Race := StrToInt (Str);
2 N3 A) j8 c: [/ j4 c% x if Race = 1 then begin
9 x% g9 P* N- S3 L; i Str := 'showwindow .\help\会员服务.txt 0';1 ^ Y4 g- {0 m, \ Y% T, g
print (Str);
9 |* _/ q! `, t3 ? exit; ! \; h4 U# {, l) F* b
end;+ _1 |; d. |. o) v- w: j
end;
4 Z) m" M8 A0 { k& I j- kprocedure OnGetResult (aStr : String);3 V- d( A. ~1 Q, ^" { f
var: @/ B# U3 t) m$ q+ n
Str, Name, MapNo, WqName : String;' S+ {: {5 B3 g: @: @( Z
iCount, MapID : Integer;; Y* }3 Z4 ]! [5 p& j+ n( n
begin
+ X( q3 x) R- W Name := callfunc ('getsendername');; d- R1 y; s$ h0 @- H4 `
if aStr = 'close' then begin0 z( k6 V2 U5 A) O8 L
exit;
" L, c8 n+ ` s- i4 H. a0 k end;0 ~# y! x! n! i9 M
if aStr = 'xuanzhe' then begin
6 y Z. s# \* L) U+ o/ p( x4 w Str := 'showwindow .\help\会员服务1.txt 0';/ P# \" K/ f; |
print (Str);4 T( w* w5 L2 I9 ? S& y5 O% l
exit;" s# ^, r3 l: D9 X
end;% L* g6 o0 n4 P' l
if aStr = 'lingqu' then begin' g3 [' W% V% H1 Q1 x7 q1 g
Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设1 k( j& M) p; c
if Str = 'false' then begin- e9 e6 [3 ~# c% J% p
print ('say 你不是会员吧');
9 h, v" ^2 _- w2 m exit;
7 `" V! g6 f2 m" U* @ end;& F5 ?$ v, L! D* n/ t! ^' w. f
Str := callfunc ('checkenoughspace 5');' [5 e q6 S; r/ @3 G
if Str = 'false' then begin7 O( z# H6 j6 A6 l6 X1 u+ i
print ('say 物品栏已满需要5个空格!');
* @: H/ Y" \! I- j5 ? exit;
) n2 s$ ^9 k; A0 H end;# _# r9 m1 s- u p) j0 T" o
for MapId := 0 to 200 do
6 s. h3 t, p) T) x6 }/ k2 x7 O/ t begin: M' C" X3 I4 X, {- C; U8 i' L
MapNo := IntToStr (MapID);
7 A9 K1 y6 `# I str := 'sendnoticemsgformapuser ' + MapNo;% l7 d- y F$ W4 A
Str := Str + ' ';
( m' |) c# [' p: S3 B Str := Str + '【会员系统】:『';
' N& a) i6 Q) K8 R; G Str := Str + Name;7 G5 J1 z4 N# i/ z( c7 C4 g
Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
. N) K5 i' h/ R" R7 }% r print (str);
- X* j2 N t# J% L$ ]0 R; p% s/ P; w end;3 j! v/ C5 I' k4 D' h
print ('putsendermagicitem 修练枪:1 @会员服务 4');
! c1 N9 p2 N/ I! P print ('putsendermagicitem 修练刀:1 @会员服务 4'); : j! e8 l: g& L; @0 n7 r5 y
print ('putsendermagicitem 修练剑:1 @会员服务 4');
% O* }3 n. B) u$ M* B print ('putsendermagicitem 修练斧:1 @会员服务 4');2 _4 J l0 _8 m$ e
print ('putsendermagicitem 修练拳套:1 @会员服务 4');* V" e. z; S/ P) r2 {/ V$ w5 I$ Y
print (Str);
6 T/ c) s2 i' O3 J7 u exit;. `+ N; W9 q8 A- W+ f \# i
end;
0 _; n l5 ]4 X, v4 `- @9 y; V if aStr = 'chuqu' then begin
6 ^9 p9 S! P W1 s WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!1 a5 _$ h# {7 y& ?# F( K& w [
if WqName = '修炼枪' then begin* n2 l. ^5 ~' m. i; |
print ('say 你不是吧!想带走修炼武器!');
1 O" b8 _* E% |) w$ m; g+ j! ?7 o- O exit;
3 T5 K: d, P+ k end;" P# O, s& `- n* B
if WqName = '修炼剑' then begin( q/ @- Y0 a+ f1 o, \6 H; \
print ('say 你不是吧!想带走修炼武器!');
' r E- L2 t' q exit;; W0 C# v4 P1 t1 l5 t
end;; P. ~- q& c! s8 H! K5 V- u/ ^
if WqName = '修炼刀' then begin
, E( b& U, V( N, D' ~. l a4 _ print ('say 你不是吧!想带走修炼武器!');
Q" R% X2 ~8 T; R# g exit;
! S& Y% v, L; G m7 O8 c& D end;
* E5 |5 Z. b: P; P4 m6 X" _8 a if WqName = '修炼斧' then begin
- `3 V- r. I3 G7 N, K" K print ('say 你不是吧!想带走修炼武器!');( Z9 a2 ?7 \ G$ _: b
exit;
2 s% ~9 k( W" a; C end;
" z* s( E0 [) z0 C$ X6 @' y$ i if WqName = '修炼拳套' then begin2 k; Q6 i0 l$ h- q3 `3 d. \% @
print ('say 你不是吧!想带走修炼武器!');- j/ n: }+ Z( A3 t
exit;
4 C' y" F& `" v( [% l s end;
) [" ?) G# B) V. n for MapId := 0 to 200 do( } E$ r9 Q9 I. p' A9 k! v5 _% L
begin
4 ^# r* _& H7 M6 }# [ MapNo := IntToStr (MapID);
1 f# @6 \$ G/ [' L& `7 K str := 'sendnoticemsgformapuser ' + MapNo;
( G8 p8 `: I1 e. B I5 d Str := Str + ' ';2 q6 J2 F7 w1 g2 l3 @* I* O
Str := Str + '【会员系统】:『';
' K" Y* M7 N7 b* p/ w/ f( X Str := Str + Name; S7 `! v) c( Z9 J& T1 l' U9 j
Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';, m& I5 i/ }/ c# v5 |. _
print (str);
1 i( C4 D5 Q+ M H5 I" U4 e+ _/ U; Y end;7 W* x+ h T* O; e1 [
print ('getsenderitem 修练枪:1');//出去就全部删除物品6 T* z% @ ]5 M5 E1 T
print ('getsenderitem 修练刀:1');% }5 D5 I% [9 c: {) n
print ('getsenderitem 修练剑:1');
/ Q- Y! s1 T7 r- {/ ]* k1 @ print ('getsenderitem 修练斧:1');, f) Q ^; L1 G
print ('getsenderitem 修练拳套:1');8 w' Q9 F0 T7 n
print (str);
$ z8 I( {) c7 a; j! j& M Str := 'movespace ' + Name;7 X* l2 r! v( q2 s4 ?& A: }* V
Str := Str + ' user 1 500 500'; t, U, N/ l: J ^
print (Str);+ ]! u2 Y+ K; m! h8 E" _' j
exit;
' L; ]# f# O2 ]+ }3 a( G3 z end;# U9 }/ V7 N2 Q
end;
8 k! p; w2 C$ fend.
- V; g6 c7 `; f: K4 }* V |