unit 会员服务;
% E% y& b+ ]; h3 j
3 {" M8 ?6 }6 _; n9 _/ V% Yinte**ce
5 U1 P' e% ]5 {$ U* Q+ K; ?3 E5 P9 |, B9 R7 a8 w
function GetToken (aStr, aToken, aSep : String) : String;; u5 h" b" ^- {9 V
function CompareStr (aStr1, aStr2 : String) : Boolean;' G9 G. y5 k6 \- x; |1 I
function callfunc (aText: string): string;3 N( D$ Y- m6 x4 S
procedure print (aText: string);
+ g$ t4 C. I3 s( p( q: r# Hfunction Random (aScope: integer): integer;
+ [- f, L0 ^. ofunction Length (aText: string): integer;& A$ \$ P4 A- s: m$ \! e
procedure Inc (aInt: integer);
8 Z! k; @! S! m: Pprocedure Dec (aInt: integer);
w8 H; C+ ]% K8 d" U1 t# X4 efunction StrToInt (astr: string): integer;
5 o8 A9 n o; t6 U7 s5 _function IntToStr (aInt: integer): string;& m% r: O6 a7 q( p
procedure exit;
5 Z6 s$ r' m' z5 o# {/ C ]* j' k. m4 A& [: }) z% `
procedure OnLeftClick (aStr : String);
* O+ h3 n9 Y2 R5 I" a7 r0 X/ `! u. Hprocedure OnGetResult (aStr : String);1 d/ E/ Z C# x! e" u/ N0 {' D
4 t6 n$ x- y+ Q1 u5 @6 ~* n
implementation
# z1 S$ a/ n3 Y& y4 k1 Aprocedure OnLeftClick (aStr : String);) P1 @( m: [9 }+ i+ v
var6 q' ^" G+ Q$ J' K$ |" l. d* V, ^+ q
Str : String;
% e7 j0 l3 ~7 w' c6 \ Race : Integer;0 I! x+ F1 q0 s+ J7 g. w
begin
, g/ s4 U6 i, v( x3 N2 [6 r Str := callfunc ('getsenderrace');
4 ]) [/ x# O6 X/ v# h2 @- g2 o. {/ r Race := StrToInt (Str);2 @ b: |' I6 h1 d8 v' f* l) I
if Race = 1 then begin- k6 n5 ]! ~! l% j+ ^9 l1 i
Str := 'showwindow .\help\会员服务.txt 0';1 Y0 M3 n! \1 J$ z2 @0 g
print (Str);$ S2 h; g; ], P# x
exit;
5 ^ B+ F- s v* T% i; a9 q end;
2 v- B& _8 ^2 y: \- ]4 y- Z& p# [end;- i8 F4 q9 t1 b) ^6 G+ a
procedure OnGetResult (aStr : String);
+ Y6 ~9 c# B' ^7 H) E; G" e& [var6 G( ?# S& L/ k: F9 z/ d+ Q
Str, Name, MapNo, WqName : String;4 @) d$ m3 e! X
iCount, MapID : Integer;
7 g4 c8 q+ c* g* F+ wbegin% N8 ?6 c7 x, [. v3 {( `
Name := callfunc ('getsendername');) L) m/ D+ T; t; m5 J1 v# U4 q, c
if aStr = 'close' then begin
# g& z. ?7 p- ^' H exit;
) B1 j7 T& o# o. j2 O1 s end;3 ^1 o/ R; w( V5 H" ^8 J% W
if aStr = 'xuanzhe' then begin0 y5 \1 b3 }' v, g
Str := 'showwindow .\help\会员服务1.txt 0';
9 K- D8 Q! E3 }6 k$ f print (Str);1 [+ `6 C! F7 Y" [- Y) R y+ ?9 c
exit;
) s$ i/ d9 |2 t6 O! M end;
& S/ Z* V8 I/ m+ Y. F if aStr = 'lingqu' then begin8 t/ Z$ X) Y' n+ E7 n6 f
Str := callfunc ('getsenderitemexistence 烈焰金戒:1');//此物品自己可以设
8 A: R H+ `! ^ if Str = 'false' then begin
7 U+ S6 `/ T6 e) }# H print ('say 你不是会员吧');/ \0 k6 s6 G9 ]4 k/ ~% x+ G ]
exit;( l3 T* U$ ?$ S$ J5 z9 ]
end;
% q( n' r/ Y' i* r Str := callfunc ('checkenoughspace 5');6 X z4 V& I* L$ {8 N" z9 S
if Str = 'false' then begin
1 c2 _. a' L8 W& B print ('say 物品栏已满需要5个空格!');4 m, Z8 R' r2 e& g% A
exit;$ H. u: G; ^! p: n* M' F! p' c! d
end;) y) x+ F. U# H3 ^7 C
for MapId := 0 to 200 do
5 H* L9 I; H5 P: K" |( }$ y begin
: d% s% u& T+ o: e MapNo := IntToStr (MapID);, N/ V- A/ k0 j; i3 k7 Q
str := 'sendnoticemsgformapuser ' + MapNo;5 I' b6 _& ]. Q( I5 g
Str := Str + ' ';: y4 G7 M8 b1 R
Str := Str + '【会员系统】:『';- W# h/ n0 e( d+ j3 \4 h7 l# _
Str := Str + Name;0 _% y9 N. [2 t$ z/ t
Str := Str + '』_领取了会员专用修炼物品开始修炼啦! 1';
. Z1 k4 a1 @4 S5 n. Y print (str);4 j' v/ v0 x* Q& E/ A, P
end;
7 N7 C5 R7 V( r: V: f7 i: i print ('putsendermagicitem 修练枪:1 @会员服务 4');
$ J% S# `, W: Y, M print ('putsendermagicitem 修练刀:1 @会员服务 4'); ! E/ s( M$ U, \
print ('putsendermagicitem 修练剑:1 @会员服务 4');3 f ~" T% l0 p. @
print ('putsendermagicitem 修练斧:1 @会员服务 4');
3 u1 {7 i3 [* q' w S print ('putsendermagicitem 修练拳套:1 @会员服务 4');
# F v m4 m: \1 {; _, p. p print (Str); + D# `6 |$ h/ U1 C" k
exit;
8 L0 H1 A/ @& `% F end;. _$ ]6 g+ h# `! k) [5 \5 g
if aStr = 'chuqu' then begin
! b. B5 _& a6 y3 r& T0 T9 p4 ] WqName := callfunc ('getsenderwearitemname 9');//检测是不是拿在手上,因为拿在手里就无法删除!特别声明此检测执行命令段由忧郁工作室小飞技术支持协助完成!特别鸣谢小飞支持!
+ T3 C/ ^- F; L y# O' S# p if WqName = '修炼枪' then begin
3 Z9 o: I5 o S+ n+ j) c) T4 J7 N5 g* l print ('say 你不是吧!想带走修炼武器!');
4 p2 o" w2 \0 d0 W. ^7 \ exit;/ E! k8 t" d* l/ w a, q- m
end;
9 L/ R+ Z5 Z3 S2 N) L if WqName = '修炼剑' then begin2 p1 f* J* |: Q; I, `; K% `' ~4 F
print ('say 你不是吧!想带走修炼武器!');1 |6 u! ?* d- g# O
exit;
' o* A2 b3 ~8 l0 i end;
( x8 e3 `$ a$ H" L if WqName = '修炼刀' then begin; _6 i. E5 ^3 {: }$ G' d
print ('say 你不是吧!想带走修炼武器!');4 O" [9 }* X) s; d6 k: f
exit;
7 I; m: N0 c# I& @. @ end;
* d$ b, F9 p- f$ x1 w if WqName = '修炼斧' then begin6 `, v0 `: B8 C4 V2 [
print ('say 你不是吧!想带走修炼武器!');
+ P% Q) ~, a1 t6 t2 t6 C exit;2 A8 h+ b/ Y5 M% _& h' s
end;
# E4 k" I; @) t2 b. \# K1 z if WqName = '修炼拳套' then begin% r$ p/ [9 o0 p# }" Z( c
print ('say 你不是吧!想带走修炼武器!');
: t; T# _9 s3 s( n3 s. k! Z exit; S2 H/ v" P5 z
end;
1 Y S* {% T! a* y! c9 T for MapId := 0 to 200 do# q2 V5 o: X; k+ S
begin5 E+ E/ W( _' o( O
MapNo := IntToStr (MapID);
0 |1 B) Y9 r) _6 n6 a str := 'sendnoticemsgformapuser ' + MapNo;/ m* B9 {9 Q, g3 C
Str := Str + ' ';0 z1 E' N/ q# ~/ }) }
Str := Str + '【会员系统】:『';
8 v7 w( i, S y5 M$ { E Str := Str + Name;
5 {% m( A' c5 g8 y# x Str := Str + '』_会员修炼完成.开始闯荡千年江湖! 1'; O( w8 M: Q/ l# F' W) F
print (str);. D: p- g/ d+ }& p! D, A
end;
3 c/ ]+ ?+ Z$ e+ n! g$ N print ('getsenderitem 修练枪:1');//出去就全部删除物品
# Q% ]* I6 ?: d$ O9 x; X! J8 G print ('getsenderitem 修练刀:1');4 ?! Y/ ~, i1 q/ l( x0 |
print ('getsenderitem 修练剑:1');; S$ S& t, }, l; C0 V
print ('getsenderitem 修练斧:1');
; J* f& \# w+ [7 d; \( E print ('getsenderitem 修练拳套:1');
+ \; d9 |3 g5 i$ [ print (str);: _9 V" _' l5 ?3 I, k! T
Str := 'movespace ' + Name;' Q6 ?% I; L( \4 l" O
Str := Str + ' user 1 500 500';
3 y% p# f! R! k. p4 z. d print (Str);
5 }* h: y4 A& F/ b0 c! b2 B exit;
; [8 ]8 p9 C; m& _- Y end;
6 P+ L& Z/ f/ S0 f. f2 b" ^( O- X+ Tend;
6 D1 \2 f9 A1 U- f7 }0 uend. ( r8 y- P8 V6 |4 t' O1 H1 K
|