unit 会员服务;
" j/ y+ q& Q8 E" b# i- m' w- V# \& V
inte**ce
6 D0 i9 {' z8 `' S' e, g8 A% J9 c" X7 ~7 M2 B7 ]6 y* J
function GetToken (aStr, aToken, aSep : String) : String;# u7 g# R$ `% I' @. H+ t$ D
function CompareStr (aStr1, aStr2 : String) : Boolean;2 e7 b x; U9 ]& X
function callfunc (aText: string): string;, a: L! V- f+ P" V* F
procedure print (aText: string);
/ C/ t: m7 ~9 U9 }, E, ]function Random (aScope: integer): integer;
$ s* W/ t9 r4 Z8 d: d7 S' tfunction Length (aText: string): integer;
n4 Z; F$ c1 @8 B2 Xprocedure Inc (aInt: integer); o$ b) n+ N. e' N3 |: i" o
procedure Dec (aInt: integer);
& G" d2 F4 ^ U( P) H5 @$ afunction StrToInt (astr: string): integer;
% g! C7 N# C( W. i$ zfunction IntToStr (aInt: integer): string;
# u: d7 C( S( kprocedure exit;8 [0 [1 G0 L; K P
/ \: \ p$ c) t: Z. [
procedure OnLeftClick (aStr : String);# q7 \4 N; B: w0 \! p7 u
procedure OnGetResult (aStr : String);
& {4 V& G8 i6 }: I" |7 ^
" z( @8 ~8 D; |, u* O; e& k9 H8 aimplementation! N$ A7 n _9 A- ]% V( W8 E
procedure OnLeftClick (aStr : String);/ _8 w& F2 n2 |0 O
var
# b. J: j8 n: m0 n: a' r6 W Str : String;
: l+ e3 b1 K5 t1 V; p4 t- x( g( [ Race : Integer;
8 F( q1 p6 n3 Y7 Qbegin
2 x* T2 d- B& g6 b1 H9 E Str := callfunc ('getsenderrace');* b5 r& F0 V9 J' z! E8 _" o
Race := StrToInt (Str);- C3 T p0 w9 n# {8 ?! x1 E
if Race = 1 then begin1 {* ^0 b/ U! ]/ x3 {5 M$ n
Str := 'showwindow .\help\会员服务.txt 0';' T# y8 x8 l% v/ X6 a N
print (Str);! `0 M9 e7 y( Z$ |5 A; @
exit;
* r3 I5 r& n( I$ R end;( s, J+ T$ |& E! j3 U% X- X
end;5 A) t. K& X& {$ \
procedure OnGetResult (aStr : String);7 ^' R! ^$ E8 W# ]
var8 u* s+ U. H& `- K$ d2 ]
Str, Name, MapNo, WqName : String;1 W, ]4 q+ o; M* G5 E& n7 ^5 K2 c
iCount, MapID : Integer;9 n2 t; v* ]4 e: ~- n& V* W1 L
begin1 O( E& v0 M% Q x4 ?
Name := callfunc ('getsendername');; A: z1 Y) ]' `, E. g( w P" R
if aStr = 'close' then begin
r8 a/ C% x& y& ~8 s exit;
; l. |9 R# C& U `1 _ end;: x5 I4 L. [6 s6 o
if aStr = 'xuanzhe' then begin/ L9 _ [* w; S+ N. z7 d# p5 b/ y9 f
Str := 'showwindow .\help\会员服务1.txt 0';
. \3 f# |0 v# W- e/ r print (Str);$ K h' o) V8 M1 l/ v% b" [
exit;
# f/ o6 x1 W, U& L! g end;
. }. K% o# [" r$ V if aStr = 'lingqu' then begin
* g; G% V, I. R, C8 k Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设
2 v/ @8 @6 c s* P0 H9 Z! g& k if Str = 'false' then begin
" c7 W; S2 t* k6 a. B print ('say 你不是会员吧');# [7 I% A" B% f- }
exit;
' e& H: [4 \; ^/ p$ q* b end;+ C' @% a7 ~7 G. m* k, R" r% C, \
Str := callfunc ('checkenoughspace 5');4 }, x4 j* w) J* {
if Str = 'false' then begin
: ]5 _7 j" Z* X# j& z: }2 l print ('say 物品栏已满需要5个空格!');
3 }2 _/ G3 D& _& H9 F b exit;0 q) C1 W0 }( j( t& o" t% h% t
end;+ F7 |; r" T. y: H4 x& A0 V# K
for MapId := 0 to 200 do
) K$ P+ Q5 J5 i: R) ]8 V begin5 u* @* F( i! W$ T) d$ u4 |
MapNo := IntToStr (MapID);
8 ~4 M& z9 f6 D) C$ z* J3 ^) O str := 'sendnoticemsgformapuser ' + MapNo;) K Z' c, m+ t7 S0 w* e1 G+ H
Str := Str + ' ';
8 W* U. W' x, X0 i Str := Str + '【会员系统】:『';
6 M2 x7 x3 j- w* E& G Str := Str + Name;
1 g0 M% f4 _9 _; K8 l- N Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
+ G* y/ i9 U- Y* }/ y print (str); u8 U7 K' c. j7 L$ p( \" o7 j
end;2 r' e; n6 e# w% }/ W
print ('putsendermagicitem 修练枪:1 @会员服务 4');
3 f5 k8 p' l+ b* ^/ K$ [ print ('putsendermagicitem 修练刀:1 @会员服务 4');
, Z7 \" p" V. o' l print ('putsendermagicitem 修练剑:1 @会员服务 4');
) ^# T# f, z& d1 s3 W print ('putsendermagicitem 修练斧:1 @会员服务 4');
5 E; t# ?: k4 x/ M, P, W* f print ('putsendermagicitem 修练拳套:1 @会员服务 4');+ n( {: e" B" G( j0 Z2 U
print (Str); ( _6 v4 `0 I) X
exit;
$ S+ g( I4 k% U" p L end;- a; J5 s* }! m* h0 P9 q
if aStr = 'chuqu' then begin+ l. z/ T8 a1 ^( e: S9 V8 `
WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!
R m/ d7 ]2 m0 x* }9 | if WqName = '修炼枪' then begin
$ r! M2 c+ ~6 F9 x print ('say 你不是吧!想带走修炼武器!');& T0 s+ h2 R- O+ B' [, [
exit;) B) U1 F1 B' q
end;- T) H) X# y1 g- y
if WqName = '修炼剑' then begin
" Y5 }2 F4 V8 w! ]. Z print ('say 你不是吧!想带走修炼武器!');
/ ~. D8 P, S( c; Q B, ? exit;9 E! n& S7 c$ P
end;
5 c$ S$ Z4 c* u2 q if WqName = '修炼刀' then begin
1 v1 }' R( S5 V' t& O print ('say 你不是吧!想带走修炼武器!');/ W) W. j3 L) L6 `, r
exit;3 i3 z. X. f: M0 M" r8 s! p
end;! l% z% D1 L3 v1 ]* }6 B0 n+ e6 V
if WqName = '修炼斧' then begin2 }4 |5 z& C7 r9 u' n
print ('say 你不是吧!想带走修炼武器!');
7 s) }: n' T% }1 ?% K: _ exit;! w4 a/ \# ^: C$ S3 k
end;+ D# W- r( f$ d0 j
if WqName = '修炼拳套' then begin
' c3 p* J# ?: y print ('say 你不是吧!想带走修炼武器!');
8 @: j/ L5 U% R( [ exit;
9 A* m" P0 Z/ r2 D end;
/ E1 o; V/ Q% h$ D- |$ [ for MapId := 0 to 200 do, b4 q/ |9 K1 k
begin
" u: z. G) L1 P MapNo := IntToStr (MapID);9 ?0 ^+ Q. O8 t* G4 f' D* o# B
str := 'sendnoticemsgformapuser ' + MapNo;* f4 H' K$ k' V, s' _! P) S1 N# p; Z2 A
Str := Str + ' ';; h) N+ k" y8 O. z5 |5 o3 B8 k$ G
Str := Str + '【会员系统】:『';* H. [9 \6 ~( Y
Str := Str + Name;. i4 N, y7 `2 \: j" W
Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';$ O4 X2 N) u5 [+ g* M# \5 c9 N+ j
print (str);8 S; r2 k7 Z$ e7 [8 A" f; r4 O
end;
9 f$ j$ u# n( a% A6 x print ('getsenderitem 修练枪:1');//出去就全部删除物品% }2 J) s& Q" |5 L5 I7 i( C; [4 Y
print ('getsenderitem 修练刀:1'); V0 }( n) G8 O1 C! H
print ('getsenderitem 修练剑:1');0 B- b8 {+ `$ \$ F3 G
print ('getsenderitem 修练斧:1');4 V2 {0 r, T9 R
print ('getsenderitem 修练拳套:1');" W W& D. d, ^( W$ ]
print (str);
3 s- j# A" W7 G% x) Y" Y Str := 'movespace ' + Name;7 _* }) r% d: I7 t
Str := Str + ' user 1 500 500';
2 `. d7 E% I$ N- E- N* g1 M7 } print (Str);
3 t& d% u1 u- w) J8 t& H' N exit;
% A/ G- Q, R, Y% R" m end;
3 Z4 m/ Q# l' ?1 R2 Send; R9 Q* ~& e' j! ^- \: n
end. - v% X3 F: Z- @- o8 i( b7 a4 n
|