unit 会员服务; G+ Z, f i" _4 G
" M! n/ ~9 U4 |8 p( y- R
interface
4 E# X/ p2 a- ]7 O% l ~8 v% ]0 b/ v5 ]. i Q O
function GetToken (aStr, aToken, aSep : String) : String;$ A5 Q! N( M3 |$ p
function CompareStr (aStr1, aStr2 : String) : Boolean;
- X4 h) B: f+ r% {" D" ifunction callfunc (aText: string): string;
/ \* d/ ~( d$ c2 G6 Q. L! xprocedure print (aText: string);
6 ^: I4 ?* j/ t5 t: ~function Random (aScope: integer): integer;
: f0 L" E4 c7 v2 f% tfunction Length (aText: string): integer;
" r, s& ~2 Y3 q* Q% c: T" w zprocedure Inc (aInt: integer);
! F8 |$ |( p8 a# D4 D( cprocedure Dec (aInt: integer);) Y( ~; d: i! G3 h
function StrToInt (astr: string): integer;) b1 d9 u# b1 f
function IntToStr (aInt: integer): string;
% U5 o& v: v8 }procedure exit; ]8 K+ z8 v- I- f" K7 t
) Y0 i5 X9 }5 J, d/ {' G
procedure OnLeftClick (aStr : String);
) c& ]2 L2 R8 W1 N! C3 y! M- lprocedure OnGetResult (aStr : String);
5 p( I% W0 [& Y# D7 _% d
) J! Z+ U/ N( d. u8 gimplementation
$ A' L4 d* E% C. k4 Xprocedure OnLeftClick (aStr : String);* k- E, L- m; o6 E
var
" k* r+ B0 w' [7 A2 H) ` Str : String;+ [: V g; j p! X
Race : Integer;# P' n% U$ M+ A% p0 Y1 c* E
begin
! } h; f" i( i' T Str := callfunc ('getsenderrace');
* R0 @- v+ W7 P. G. j) I$ d Race := StrToInt (Str);
3 z7 r- g( Y2 v- h if Race = 1 then begin
6 @9 F( \: \8 _& r' f2 D& S- a9 g# x Str := 'showwindow .\help\会员服务.txt 0';! M3 M8 T2 M) d2 H/ W1 j1 Q( \
print (Str);
( G1 R/ Z. |% s* B# S exit;
! z' B' j {- l& i* ], A6 t$ T end;) P* k+ ^" G3 Y M4 n" _
end;
8 ~; m, `) A3 ?9 }! k# vprocedure OnGetResult (aStr : String);1 k# K( {% h2 [2 a' g) S: R9 L
var
: ?% j6 `* l: e: U5 T4 {2 F1 E Str, Name, MapNo, WqName : String;
+ Q7 J2 }* H3 r1 H9 f* p- E& n iCount, MapID : Integer;: S2 o- E6 g7 @7 S4 K3 N
begin* M5 @6 q# e( X# O( R8 F: Q3 o
Name := callfunc ('getsendername');4 l1 c( n- h* r0 _5 f8 n
if aStr = 'close' then begin
$ Z) m' O6 t, ]# a; I exit;' Y9 T: o0 k N9 d
end;& R [8 d4 r# h3 J0 |0 c: {
if aStr = 'xuanzhe' then begin
( u1 Z5 e- C5 z; ^ Str := 'showwindow .\help\会员服务1.txt 0';) Z/ C5 k; w c. t
print (Str);7 h4 }6 S- p# S4 J
exit;+ F. C! {) Z* @1 h# |( _1 R4 Z
end;2 s* ^$ g8 o$ }- }8 o& j
if aStr = 'lingqu' then begin2 @ ~/ \* Q2 _3 A! ^; h
Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设
3 x2 q1 r A% ? ]. y$ d if Str = 'false' then begin
+ `0 L! U/ v0 H; r- C9 g4 h0 C print ('say 你不是会员吧');
6 L* Z& ^( A7 I# J' d exit;9 }, o/ ?: s ^$ V) y
end;
: v7 N, y2 G* u- Z! H+ F Str := callfunc ('checkenoughspace 5');
7 i7 ]4 I5 ?" t' | if Str = 'false' then begin' l) ^& }. A% F0 O9 a1 k. C% `
print ('say 物品栏已满需要5个空格!');
/ k& a6 y6 V2 }4 ? exit;
8 ]$ ^+ N8 G2 f5 q3 o end;
; k: K6 M8 w( L" x- ~ for MapId := 0 to 200 do
4 c4 K0 ^/ ?6 }1 m+ e begin0 t, @ n. H1 {2 v, f3 k u
MapNo := IntToStr (MapID);. Q/ Z( N8 h9 j9 j" n! {" r% d
str := 'sendnoticemsgformapuser ' + MapNo;% @5 `- h$ _ o1 |5 `
Str := Str + ' ';
, b6 X) n) M: h( N Str := Str + '【会员系统】:『';
( a. R' @( U% W6 A- v Str := Str + Name;& I4 k( B" F) |
Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
* D: D0 z1 u7 `& \ print (str);0 q2 M# R: K' ]+ x- D
end;+ X9 L, y6 b: w- B0 x, m9 v6 s
print ('putsendermagicitem 修练枪:1 @会员服务 4');
5 Y8 z& {3 l, H print ('putsendermagicitem 修练刀:1 @会员服务 4');
y4 Z6 w3 u! p; P1 W0 l+ d4 { print ('putsendermagicitem 修练剑:1 @会员服务 4');
* }, s9 ]6 w% h) Y3 e print ('putsendermagicitem 修练斧:1 @会员服务 4');
- S) n0 V& |- u8 T- `! y print ('putsendermagicitem 修练拳套:1 @会员服务 4');
0 i2 L% Z* I" t; O print (Str);
' p3 N" g- J: h" q, y exit;
; g. ~0 s# X& ? end;) K$ R6 X* B0 r2 r8 S
if aStr = 'chuqu' then begin
& O1 B$ R; \) ]( b9 L4 }9 A WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!4 p" I; @6 x: p) F) ^
if WqName = '修炼枪' then begin0 X7 C, | I3 f
print ('say 你不是吧!想带走修炼武器!');5 u; _( U+ r; _. x$ s1 N
exit;
1 g$ ~( E' F3 L$ { end;
4 `$ ?9 i) Z2 C! p) k& W+ _8 A if WqName = '修炼剑' then begin4 u2 Y! N4 p# y5 V/ ^+ a
print ('say 你不是吧!想带走修炼武器!');
- D2 m) z+ A& t3 d* b exit;
2 I9 s, E/ t$ L9 ^) \& \5 a1 r* D end;( _( [* j' k& g& m8 x$ `) F
if WqName = '修炼刀' then begin8 q) k' q L: p8 ^
print ('say 你不是吧!想带走修炼武器!');
1 C( y5 U. j @8 ] exit;9 N( h! u0 [; o, ~, t
end;
) Z- v% [& K" M# e+ F B if WqName = '修炼斧' then begin
% [" Q1 H' }; \& n) A# d- p print ('say 你不是吧!想带走修炼武器!');
; a/ Q5 L- m& |! f- m7 P: K0 L exit;9 D7 H: D, s% [4 S/ [
end; C: Q- M* p& @5 b
if WqName = '修炼拳套' then begin* n5 K8 _1 s% F$ D7 X% B( _
print ('say 你不是吧!想带走修炼武器!');* A- d: x8 j5 w) L8 c
exit;8 }1 ~/ }1 ~ \; N
end; @5 h5 n, ?2 B7 r& B4 u- {
for MapId := 0 to 200 do2 T' u, N' @5 F4 @: t f! h* H
begin
. O) ~! s# E& f) m! l5 g; { MapNo := IntToStr (MapID);1 I- T5 W/ t4 T! X6 ~
str := 'sendnoticemsgformapuser ' + MapNo;
+ ^, D5 l( n+ G. ]( t Str := Str + ' ';5 s2 H" A1 t- q0 m5 b, o
Str := Str + '【会员系统】:『';/ i7 r; u7 q' P# Y+ @# S/ E
Str := Str + Name;
9 h, \5 _4 }* |9 @: z Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1';4 v8 N7 B# m0 W& U' i; J
print (str);
7 @7 \ P$ k, l t( @' s end;
9 s( b+ `+ ?# ^4 s1 Q print ('getsenderitem 修练枪:1');//出去就全部删除物品
: Q% l9 d2 O2 d- E. W, P& s print ('getsenderitem 修练刀:1');* E. l" O% B! ?& n7 b. s
print ('getsenderitem 修练剑:1');# t# x# E: T7 @: E. G+ z
print ('getsenderitem 修练斧:1');1 {+ d: f# B. I% ?# K4 C |/ ~) Q
print ('getsenderitem 修练拳套:1');' Z& P7 `1 i' L, q( H- [8 e8 @# D! h
print (str);
; X* }4 n7 {- R$ F2 Z- P+ S Str := 'movespace ' + Name;
0 v A" u3 d/ {7 D2 f Str := Str + ' user 1 500 500';' d9 p! U2 ? | y1 \, ?
print (Str);0 @+ v& g2 T2 v% G0 C" ?
exit;& b Q" ?$ z' E1 R" b
end;
& E/ _3 S, g4 ^0 W; b: i. n6 r/ ~end;! i% ~# Z% W! y0 m
end. # S! S8 h7 @$ s" Q( v
|