新手村擂台脚本
: Z- U4 K. D7 K; j0 ^* H2 |2 a) [: p! @
3 ]( q; N$ u: I
释放到同名文件夹下覆盖原有文件。( ?( G; t. j$ D' L3 U9 x" M
1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。
V9 D3 y1 ~- h h" Y$ `2 \2.Item 里面是任务发放奖品的物品资料,把我发的加进去。
, c$ y1 C7 L y( d6 P(由11月23号发布的最新服务端修改)
7 j6 z6 K' K4 L$ V/ A, A& Q) N-----------------------------------------
' F) T# @. ^/ \4 C内容介绍:& P+ s3 u9 p* A" O4 ]
新手村比武获得奖励:; `. f- T7 {3 m7 T
同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0. ^ t2 ^, N9 T! f" B2 @
1 s2 m+ |2 _# g( G" ^! q2 P) W+ ?2 P/ s$ X8 f* i6 ?: Z
最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较) J9 V5 o& ~" }* |# e) m
, s; c' t# u- i, \5 r0 Z喜欢黑龙,所以是黑龙的加强版!); l V; R; d6 ?/ B9 [
8 ^. Y% Z5 i3 z/ Q# s3 [+ n[replyview]; ` z, W" V* l6 _
! ^2 s f- X W- O0 z" N) b-------------------------------------
# V" X2 N" f8 t# n5 f1 W7 l2 x M8 p7 I+ E
unit 一级梅花夫人;7 ]2 X5 o# a8 c0 `8 m U# D
" g0 g* j# B5 D6 _1 _interface
3 L/ f" l/ f; R& l* r" ]( w% Q1 p
$ s2 X4 @& A. I7 }+ ?function GetToken (aStr, aToken, aSep : String) : String;' x7 |! I1 o& Q$ n+ V, O9 v1 }+ L1 r
function CompareStr (aStr1, aStr2 : String) : Boolean;( ?8 [0 n+ H* Y; l- k
function callfunc (aText: string): string;( E# @8 g- l: e: c$ B5 A
procedure print (aText: string);) F0 G6 }& o! Z" X0 ^; Q/ f
function Random (aScope: integer): integer;
F( H( N0 {0 b" v# r1 Kfunction Length (aText: string): integer;
! ~$ H+ p3 D, f: v8 f5 k2 M3 N- cprocedure Inc (aInt: integer);* Q' U: S- m+ A) K! H1 n& ]& p
procedure Dec (aInt: integer);: W$ @- z; k' ?! y7 z9 d3 J8 ?
function StrToInt (astr: string): integer;
# h. A' Q$ t0 }( C7 ?3 d. u0 l" ffunction IntToStr (aInt: integer): string;
' c6 o% p% n* [$ a, R \6 m. Uprocedure exit;
" F/ E/ B* I o* H( @
& j( d) N) b. s0 M3 A& f) eprocedure OnCreate (aStr : String);, G6 b" D" Q. j) }$ h
procedure OnDie (aStr : String);+ Z6 ^/ k8 i9 l: e
procedure OnChangeState (aStr : String);
5 Z+ x( [' [2 g* s9 [. qprocedure OnGetResult (aStr : String);3 O2 F. n6 X4 ?, c5 ]6 C
( n# Y4 h- }. D1 x, U' ~
implementation: i9 T3 s& v/ X
1 g' m$ J# _2 ~: I/ }procedure OnGetResult (aStr : String);
: S7 H2 p7 s3 ?+ {! `8 ]: cvar
) y" f# j3 J7 _( p; d$ U- R Str, Name : String;" _- _2 L P9 k9 j7 G4 k
iCount : Integer;& M+ J; Z/ T" w" {0 X* {2 O% y2 u
begin& U5 e8 h1 @4 L7 G
if aStr = 'start' then begin
5 I6 ]- d: I. S7 [& W Str := callfunc ('getsenderserverid');' J: l2 h0 M0 G" \9 s
if Str <> '51' then exit;
6 j0 [7 O# u7 b( S
; D. M2 R6 C+ Z! _+ s7 q Str := callfunc ('getsenderrace');3 e3 o, s' C: q) G% s
if Str <> '1' then exit;: B, A2 ~2 J' r9 A. _
4 h6 X& E2 F( k% F5 h( q4 @0 b Str := callfunc ('checksenderpowerwearitem');/ `% ^9 j8 c9 A. A7 h4 q L
iCount := StrToInt (Str);0 K. w( l6 {3 P% o* d# F
if iCount > 0 then begin. A* V8 A+ y& | N
print ('say 先将带技能值装备脱掉!');$ l! a# y* s, y/ q9 @
Name := callfunc ('getsendername');
* J1 Y. y9 |# E Str := 'movespace ' + Name;* ` c4 v# E' J1 V
Str := Str + ' user 49 106 55 100';8 Y4 k$ ^/ [; B; c' {. x; |& z* h. ]+ s
print (Str);# D x' a, Z) V2 ~+ j. t
exit;* X/ ?5 o% o' j9 t: ?
end;" P% D- a( v! C- S
Str := callfunc ('checksendercurusemagic 0');
0 w5 B a' p" i: o/ W if Str = 'true' then begin
3 p' ^1 z9 a/ p: D0 h9 n o print ('say 选错武功啦!');1 z, Z% ]% p- l2 {( {1 \8 L1 h
Name := callfunc ('getsendername');
3 w' O5 H* ^) Q5 \ Str := 'movespace ' + Name;
0 g t0 i4 R! }( e5 H" R' I- o# A( T Str := Str + ' user 49 106 55 100';
0 Q3 [# p7 G& N% N print (Str);1 h6 a# W. q7 N* m8 b. q5 [
exit;
3 O+ F, c+ l q0 E end;
0 A9 N5 M/ j6 q9 q Str := callfunc ('checksendercurusemagic 1');# ~7 N4 m1 W& x# {, M, ^
if Str = 'true' then begin
: N3 K( S& V* Z4 x print ('say 选错武功啦!');% a, I0 H% E1 G N
Name := callfunc ('getsendername');
1 H0 t1 t# J: o; M Str := 'movespace ' + Name;
0 ~, _& ~5 K2 `7 H. H4 c& T" {. K Str := Str + ' user 49 106 55 100';/ J3 U; B6 m% M& M& J7 x$ u
print (Str);
, E1 B2 c- \: H& ?+ d exit;- l& G& [" g9 v0 s( S
end;+ J, X3 `& @+ K1 o
" S2 i; p2 B4 j* g& v; R
print ('directmovespace 一级梅花夫人 npc 51 20 18 0');
' C. @, X3 r2 v( L4 }) E, Y" a5 c% n& `
print ('commandicebyname 一级梅花夫人 npc 1000');
; ^8 |7 B; ]- E, E) D1 y$ F- ^4 I print ('setallowhitbytick true 1000');
. K% G* c) g; Y# j$ n9 A- ]
1 c' u" ^* n5 E% A" p1 n Name := callfunc ('getsendername');
$ c' [( u' |4 @) f3 ? Str := 'commandicebyname ' + Name;( m# H8 ~. U0 K7 e! o# G) I
Str := Str + ' user 1000';0 F+ {, Y' R% s7 A
print (Str);
+ d4 G8 h9 X' L, R9 @: L! z! a/ d* g
print ('senderrefill');0 l3 M- L; _& o
! h) j) g/ W' r+ o$ G' V" Z print ('say 别害怕 50');
3 Q. v d7 `# W print ('say 我会收下留情的... 400');
3 g4 L! w, X$ I- o8 o5 ]+ V exit;
) f* a K) `* d8 @ end;; d* L! L5 P* i0 Z4 @# ^1 q6 l5 s
end;
0 g" |5 c- o' x, F( q+ C8 f
, m( E+ t3 P0 Oprocedure OnCreate (aStr : String);' `* ^! g5 C! ]% r
var
! H: w, ]9 N& w; _6 i Str : String;8 N$ ]- w& `3 c I2 l; H$ O2 \
begin
; v: H5 H. q1 k! V% H& i- ]4 z Str := callfunc ('getsenderrace');
2 |5 G% x" W* r5 b. t% E( G, y if Str <> '1' then begin
& D7 x2 T/ j; q9 j8 u; ^ exit;
$ w8 d' O n& ` end;" X. x6 k5 ^9 }" f, E- }7 H
$ ]0 S: N$ c4 [" M/ c: x [6 X1 W& c
Str := 'showwindow .\help\一级梅花夫人.txt 1';
0 b9 \+ i I" D7 m& y+ c/ G print (Str);! {; Q% K' B9 `: Q6 c8 @, P
exit;
* }9 m. A8 ]/ @. j9 mend;
2 v$ U/ R3 Z: V4 D: Z
6 \3 d! @6 a4 O, S% k' Fprocedure OnDie (aStr : String);, K; v _ D$ k2 r/ I# D5 z8 p
var* @# S6 p* |6 g+ o& q
Str, Name : String;/ L* _6 T: Z! M: C2 D
FirstQuest : Integer; 5 u W+ x" f/ E$ S3 f7 p# O
begin! H2 F- j7 S4 `3 K
Str := callfunc ('getsenderrace');
$ @5 J: a9 A& }- O$ K) @) l if Str <> '1' then exit;
$ x: O% }: j/ M( g( R1 P) Y; ~! _' r+ P
Str := callfunc ('getsenderfirstquest');/ `; W. x" \4 V' P# z
FirstQuest := StrToInt (Str);9 h+ Q6 R* s6 T
. Q! h" r' {0 n4 _! n- S) `- h
if FirstQuest < 3 then begin4 N* K, l# a( {1 O! z# v& ^% I: e
Str := callfunc ('checkenoughspace');8 H' [ v$ d0 y. s. C" o
if Str = 'false' then begin5 p, s& T( P! J% R* f/ C& T
print ('say 物品栏已满...');. j# O1 j2 K5 V. s* b7 c$ z$ C
exit;/ J* D6 M# w& Z/ U5 N1 ?
end;( R% d/ N5 X# K7 k4 Z
9 {3 s# n- @/ G- {, c: p- V
print ('changesenderfirstquest 3');
8 m( F5 L. V0 R print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');
" |. q# z7 ]8 L) d end;' V! y" b. M6 h9 V4 ]# T7 @
; ]* `) _ t1 W$ [* ?( q& u print ('say 我可只用了3层功力哟 100');' S8 v( X$ r) I
4 p5 P. l; H" ^8 l7 m% e print ('mapregen 52');1 y% t* U D% S6 ^: [( p
2 m9 Y" p- p& o, k: t Name := callfunc ('getsendername');
0 \: O: o" Z6 ~. j7 Q2 `; z Str := 'movespace ' + Name;* T0 _* j3 k- x6 O* G
Str := Str + ' user 52 17 18 500';
- r6 ~2 Y5 v5 T a4 d print (Str);
1 X" F% I0 X+ x exit;( ~/ @! g( l! w! J5 ~) `7 ~
end;! ~0 E' N1 z* S. I
4 G+ o( n* x' {7 Q& |4 R+ c/ bprocedure OnChangeState (aStr : String);
) H$ i f% w p1 U# R6 q# ?var& V- d8 }2 Q: {* @5 L
Str, Name : String;
( T: D) c: @# t5 ^% Zbegin
" y, _+ A; X! R% k! Z if aStr <> 'die' then exit;! H: g3 H6 X7 R& i: v* {5 ^# V
) y B! h8 [2 l6 ^$ I# k; S
Str := callfunc ('getsenderrace');
. k* Z0 p' J* Q. a0 N6 d4 E if Str <> '1' then exit;/ T/ N! {% G* g0 A
5 V$ j) s% G2 d print ('say 别无他法 50');
9 |7 S, O* o# f# G print ('say 是不是修炼方法不妥呀? 400'); E# o6 Y7 s' a1 }$ Y5 w
: C7 E1 f' f9 U4 O, q1 U
Name := callfunc ('getsendername');
! _/ x; T6 C7 h Str := 'movespace ' + Name;
6 d$ i6 d6 ]% x8 _$ F% {! z Str := Str + ' user 49 106 55 600';0 z! u4 q/ W" y% {6 m: n
print (Str);
' K9 v. T: @" g0 g& m# I! xend;
- R T( X* P3 L+ W, q- I' a0 g4 \; h0 O! v/ e4 T1 Q; }
end.7 d/ X. O# P, c, Q! _8 u- s: Y* G6 u
-------------------------------------------; Q6 l- t5 e! A- J' B
unit 一级捕盗大将;3 e, I2 C9 i) _" D
& c% L1 d/ `# s* A4 g# k! Rinterface
6 w* f' p0 t' O6 |4 L8 N8 e' x6 z0 C4 A
function GetToken (aStr, aToken, aSep : String) : String;) a( a7 p$ A# D
function CompareStr (aStr1, aStr2 : String) : Boolean;# z2 r* P) j: F
function callfunc (aText: string): string;
: ]! K9 l2 q! d% t/ Qprocedure print (aText: string);. \3 m* v* w Z+ @8 S
function Random (aScope: integer): integer;
" ^( c# g' m. X( L/ P) r+ ]+ cfunction Length (aText: string): integer;
, u" X( s& S# ^/ b% I- ~* D }procedure Inc (aInt: integer);
; h! @1 e/ k" l! }" t6 u i. dprocedure Dec (aInt: integer);# a) T% C# k# U" v/ e x
function StrToInt (astr: string): integer;
/ \* h5 t9 E8 w# B5 ?/ ^& ~function IntToStr (aInt: integer): string;
. s9 `/ h4 \+ x3 n B' Q# dprocedure exit;
: h1 H) U8 f0 w* N+ k( P% _0 z2 d0 e8 p' u
procedure OnCreate (aStr : String);# r& D* P. @5 I: t; p8 N+ E7 ^
procedure OnDie (aStr : String);
' N( I# o# u% Q4 b+ v1 Hprocedure OnChangeState (aStr : String);
t0 y5 c+ a* }& j6 Vprocedure OnGetResult (aStr : String);
J; S- t4 ^. W9 i3 I$ i; C4 w/ c# z, T$ v& C
implementation
! W: ^( ~5 P: k7 z! s0 A. S( w$ ?9 m, g- \( T0 ?
procedure OnGetResult (aStr : String);
& d' u$ N( a& f0 J0 m# Xvar+ Q" g/ E8 x6 M! I, r# C
Str, Name : String;
2 }3 Q& M2 ^3 R% i6 B iCount : Integer;
* t* C' b2 ^) C4 s0 P2 sbegin' H/ i! ~1 F) C4 ` D0 \, V
if aStr = 'start' then begin) f d4 H- N- H- G. _/ g
Str := callfunc ('getsenderserverid');8 p" l# i2 ], E
if Str <> '50' then exit;7 x+ \. y" {. l9 Y2 E
* o6 }% r2 h& ?0 S+ Q; ^0 z2 k6 g
Str := callfunc ('getsenderrace');
( B- B* a9 h" B* b$ q" e if Str <> '1' then exit;
9 O1 o1 e, @0 r! f
: W8 J6 s- C: R) Z4 b Str := callfunc ('checksenderpowerwearitem');; r* s$ D6 Z$ A4 M9 z. S
iCount := StrToInt (Str);
4 F5 f7 S9 V8 p1 k# v8 P2 m if iCount > 0 then begin) F5 ^) W6 F% j6 m' t/ l
print ('say 请先脱掉带技能值的装备!');
) L, i: X$ w$ W* F" U9 x2 c Name := callfunc ('getsendername');
0 T& E( O: _' A' a' g% d% n9 O k Str := 'movespace ' + Name;! p- \7 | |7 X! f
Str := Str + ' user 49 106 55 100';
( i+ O. d' A; |5 \. L8 N" L print (Str);
8 n5 f! q2 |7 D9 D. Q0 X3 ~9 E exit;
+ W/ D w. x* l) | end;& Y* c* b3 C, O( r% b8 K/ X. m3 w
Str := callfunc ('checksendercurusemagic 0');
) \1 q7 W6 n8 P2 c" K if Str = 'true' then begin
4 H+ h# A& I- ? ]: {$ M, a print ('say 选错武功了!');
% X9 V) Z3 q8 C+ b$ R, I" j! A1 A Name := callfunc ('getsendername');4 |9 l( t1 Z2 X' p7 V
Str := 'movespace ' + Name;
; `* i$ j9 G& \( B) \* @5 q; J Str := Str + ' user 49 106 55 100';" Z0 `# `' g5 {5 I" m
print (Str);
0 m) G4 V5 \# R6 J; R exit;
1 Q5 R3 Q4 q- [+ y+ v. t; d) P J end;
" p1 m4 T: m/ J$ o1 F7 W6 A, g2 w Str := callfunc ('checksendercurusemagic 1');. }8 T( ?& z/ L% X
if Str = 'true' then begin9 |- F" }: I- a. o7 R+ `# O
print ('say 选错武功了!');4 E; M0 |. u! T$ f
Name := callfunc ('getsendername');
4 O3 K1 v( p& \0 {, G0 {: W' \7 E Str := 'movespace ' + Name;
' P9 x, W7 p: I) s* e Str := Str + ' user 49 106 55 100';" P* q! Y' C( i( f
print (Str);7 i+ {6 t" K" J3 N7 ]
exit;4 B$ D" x2 [ G/ j, d& r
end;
4 s5 i8 X( c" V3 X
1 X0 G6 y! G+ R4 w9 B print ('directmovespace 一级捕盗大将 npc 50 20 18 0');0 ?9 _+ M3 h( h! g8 g
. c* O/ ^' T* ^4 k6 a. _2 a print ('commandicebyname 一级捕盗大将 npc 1000');6 d" P) _; p1 B9 M$ p; U3 D
print ('setallowhitbytick true 1000');
: K7 s; r- S; ^4 K& ]( y3 l1 t9 J) t2 h- F+ y5 f; M
Name := callfunc ('getsendername');
7 [7 h B5 r4 D* F8 v Str := 'commandicebyname ' + Name;& Y; a" J4 @4 d6 f! i) G
Str := Str + ' user 1000';
, b$ B/ I: X' H; [% f. N! S, J% p print (Str);
! @& i8 P6 s+ E% Y& U
6 o0 a' ?4 G3 z, \+ H print ('senderrefill');
) {9 ?( k; H' H, ^, w$ g, S; A& D9 V1 G0 v1 M# ?3 s7 n
print ('say 你还太嫩! 50');& B& r" u: _: U- X, y: P
print ('say 留神啦_我可不会手下留情 400');4 D y2 r4 Z# X# k, B4 v- T
exit;
" a! J) {) r3 O& @7 F$ w end;
9 ]% `% s0 G+ X$ u7 H$ d' Uend;, Y2 c1 h. ^( A
# s4 S2 J3 D1 Cprocedure OnCreate (aStr : String);* q& V( l, V- J- q2 y2 h4 Q* _- W* e
var
6 F( L2 q. R( i5 D7 @ Str : String;0 c# q& @4 ~2 R. I
begin/ _0 E* H* W3 i. f5 G
Str := callfunc ('getsenderrace');
. ^" J! {- X' y if Str <> '1' then begin
# g g) N2 g, d' A exit;3 l3 f t) _( n" B. x% R0 N
end;4 g% D: J' w1 A% _2 E1 P) E6 `
( a7 i6 ~9 e. H/ _% C6 e6 F* } print ('setallowhitbyname 一级捕盗大将 monster true');, `2 f* O4 r* z1 y6 T
+ V7 ]/ S5 W/ U7 x8 x/ T
Str := 'showwindow .\help\一级捕盗大将.txt 1';
4 p. z6 }; _% V6 j9 |- g( a Y$ o print (Str);
7 f* @& T; C9 u( j6 H exit;
3 D2 K' E( i6 _! W$ iend;' L$ Y! M9 a1 T3 K0 q" ~$ M x2 R6 j1 R
$ ]/ |! J8 g+ R
procedure OnDie (aStr : String);8 a& L, s( X' l
var) c3 |' \0 a: O8 B
Str, Name : String; u) E/ S3 B0 K6 a% d1 I3 J
FirstQuest : Integer;
6 f0 w, m' a) wbegin9 k2 Z0 g& \3 V' Z+ P# {$ N
Str := callfunc ('getsenderrace');0 ~* P8 S4 _5 `4 T2 t9 u' _# Z% x. |
if Str <> '1' then exit;
d% o3 X5 \0 X' b6 P4 r
; O& u( g, e i9 M, q$ a Str := callfunc ('getsenderfirstquest');
* v. z2 v( B1 \8 f3 d: f FirstQuest := StrToInt (Str);3 |: I: Q: C' g" v, d+ k
/ h0 ^" O$ _9 L0 d if FirstQuest < 2 then begin7 N# L9 b% u* V! E7 I3 U
Str := callfunc ('checkenoughspace');
/ Y0 D( r& `+ R" L Y; x: f if Str = 'false' then begin9 K: J g7 x2 m1 X. V! `
print ('say 物品栏已满...');$ U0 a- U$ D" `, H1 Z5 E
exit;0 h% g+ ~, J" d9 P1 |& n
end;# s7 J+ u' U% F- ], m0 U$ k
: ^! {9 n2 u' Z$ ^9 f' q) M
print ('changesenderfirstquest 2');
1 U! M" \8 V1 t' j print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4'); N; b) b9 h7 D- k) Z( j
end;. g* k* J/ q# D1 n2 r
; \* W; @! { ~! J1 p) c print ('say 不可能_我怎么可能输呢.. 100'); g* A2 m+ {! W" p M
! O8 m, t9 [# l- z4 I print ('mapregen 51');8 G5 o, {/ e/ k4 l+ c. R u; h" W
+ ^8 r3 Z9 g" d1 A
Name := callfunc ('getsendername');
6 ~( b9 `$ S' w+ } Str := 'movespace ' + Name;
4 h2 M" |( c/ P Str := Str + ' user 51 17 18 500';
: J4 [2 B( m( {) _ t8 k4 W print (Str);
& j8 G1 s ^2 E: Y, `end;
- ^# ?# L# U2 [0 B; ]) u; p+ ]* {* i9 H' A* Z; ~& z
procedure OnChangeState (aStr : String);7 K- [ R% V% P% T1 A3 D
var6 X0 k% J- [0 F
Str, Name : String;
+ |0 }; E; N* g3 ^# T8 Wbegin Q% l, A1 S$ O
if aStr <> 'die' then exit;
: K! U' f1 p( O) ?- G8 ?
' ^9 c7 w0 C' l- Y" q Str := callfunc ('getsenderrace');- B1 z5 v4 s9 R/ ^; z. ^
if Str <> '1' then exit;
# c0 W+ n) g4 a4 E" G' V3 y! E
5 k9 T4 c5 Z$ L. \6 X. \6 r" Q print ('say 回去再修炼个10年吧50');% @/ n I6 Q/ Z/ J# W- k
print ('say 到那时我在用双手跟你打 400');# c9 w1 p k3 |: O' V
2 w' p; p1 b* n
Name := callfunc ('getsendername');7 G% j- W f/ |7 `7 K* z
Str := 'movespace ' + Name;
9 x5 Z6 `7 x* x; E, m6 n1 u Str := Str + ' user 49 106 55 600';8 ] M0 f; x5 q' f. W- K* P
print (Str);/ y" U- C a1 T- g: C& E6 p% r
2 s2 B1 f; j/ s& i! @; |( r
print ('boMapEnter 50 true'); 9 U2 v! K% Q! N
end;
0 V v# d. x1 N% ^3 j+ v- i
& m4 n- u' L& B o7 ~end./ ^, l1 j, o4 i" w$ g! z) W
& L4 \6 W- `% z; ?" F X# S% S---------------------------------------/ T, V# _5 n/ |
( P: V' t9 d5 T4 j) ~
unit 一级牛俊;# e) n( W" K! V0 a' F/ A
- A- j( _4 M1 v; `8 P8 t) m- |interface
% z" ?" ?% b6 q( I3 V' ?$ K: Y( f1 G2 _6 w# p
function GetToken (aStr, aToken, aSep : String) : String;8 `+ D8 D; y! {# q) T- z& M
function CompareStr (aStr1, aStr2 : String) : Boolean;
6 B3 ^0 `: x5 hfunction callfunc (aText: string): string;
8 z: {0 J) s7 I1 e- [+ Tprocedure print (aText: string);# _+ i$ Y; L {( t
function Random (aScope: integer): integer;
* W/ q, O( C" l/ ~function Length (aText: string): integer;' ]2 q/ S$ @7 n/ j7 }& j; h" _6 `5 ~9 N
procedure Inc (aInt: integer);- e4 J- K' Q: v
procedure Dec (aInt: integer);
+ Q0 h& h; c/ a. afunction StrToInt (astr: string): integer;" L" p; @9 d1 l" E; R
function IntToStr (aInt: integer): string;
! a/ q$ D! W# @, b ~$ \procedure exit;
8 P/ T% w, Z* S; K6 @* Z. e8 V
procedure OnCreate (aStr : String);& U- o; f5 \' V: N, e
procedure OnDie (aStr : String); d! \* ?2 B/ g. R8 i7 g1 i2 Z& \
procedure OnChangeState (aStr : String);7 f, X n, c, o! {
procedure OnGetResult (aStr : String);
) B4 I' j- }: {) |5 y# J! g) _. L/ M: B1 \8 e1 p( ~. V; a1 L% u' {
implementation) U$ B) {6 A+ s5 Y4 e7 ?% V2 [
- O( A# W5 ]# m% e* s$ y8 k( P# m Vprocedure OnGetResult (aStr : String);
' C" R/ E# y$ s/ i0 Ovar1 w: c, w |- h
Str, Name : String;
) m" P: Z* T$ u$ Z8 @ iCount : Integer;
]$ n3 d1 L: V% j! rbegin
! O5 }; I* k2 J0 Y$ t if aStr = 'start' then begin: }. \1 U& k: G' o9 B
Str := callfunc ('getsenderserverid');
+ ~/ d6 j- J+ Q" [ if Str <> '52' then exit;
, z, T1 O( ?5 n9 L, n: h [! ^3 N: i
Str := callfunc ('getsenderrace');$ v+ Q2 `8 o+ d6 X9 i
if Str <> '1' then exit;
" B$ Q' m6 g2 i8 {, Q" O: t; x/ n4 c5 I* y! ^ d9 ~% J2 ~
Str := callfunc ('checksenderpowerwearitem');$ T6 H- g3 Z) a e# v, O
iCount := StrToInt (Str);5 l6 s: v+ t3 x' r3 G
if iCount > 0 then begin, w# F n6 Q, P( F. ^: s, S
print ('say 请先脱掉带技能值的装备!');
% G& `) y5 x! y7 u4 i Name := callfunc ('getsendername');; P! B& U$ z1 U' y
Str := 'movespace ' + Name;4 P1 g4 i6 B2 J6 n
Str := Str + ' user 49 106 55 100'; V, y2 B, b# L5 h1 O) |- Z7 Y' G
print (Str); n+ `7 S3 F: Y. F& z
exit;. X. i0 I# S& k$ m; S+ h* P
end;0 _2 `* ~( H2 @4 }5 b1 R5 Q
Str := callfunc ('checksendercurusemagic 0');1 g, n( W+ i+ }1 l
if Str = 'true' then begin6 q1 O" _0 v" j& P) x5 j2 d( l
print ('say 选错武功了!');# s9 X. F* Q0 t) i8 p: ~
Name := callfunc ('getsendername');% Y- ?2 F' N t4 [% H
Str := 'movespace ' + Name;$ Q. O5 M0 M7 Z& V- e* u
Str := Str + ' user 49 106 55 100';
# n$ f3 g% q+ S" d3 L; L; U print (Str);
7 p# F! i$ t1 A& X& U exit;
( z; b+ V1 {; w end;- p2 D" o0 O, O9 J. r
Str := callfunc ('checksendercurusemagic 1');
' L0 p" U- A/ {/ u* J4 I) L if Str = 'true' then begin
0 `, [- n1 O3 m print ('say 选错武功了!');, ~$ p# u, U4 \1 T }8 p
Name := callfunc ('getsendername');# W, D# @( \) u8 H4 ~
Str := 'movespace ' + Name;
o% Q5 X0 l7 J5 A Str := Str + ' user 49 106 55 100';
/ i5 b0 K0 q! { print (Str);
9 x/ `" Y4 X$ b# q/ F2 p0 Q exit;* M6 C! N: e( d2 R7 j# F4 p
end;
: ]3 u9 R" v9 V+ f0 ~1 M/ i# R; n# [$ ?6 f
print ('directmovespace 一级牛俊 npc 52 20 18 0');; `: c/ ~. r W/ V! _; {
# d( A4 G' U- ]' o" b4 G
print ('commandicebyname 一级牛俊 npc 500');6 h+ l( v) K" f; t+ k5 v, O
print ('setallowhitbytick true 500'); . D& @" j3 D' g/ G
% B4 Z6 [( f t: c
Name := callfunc ('getsendername');4 M8 H9 d4 a9 i2 \% [
Str := 'commandicebyname ' + Name;
; J! t! W, k/ F Str := Str + ' user 500';; P0 T- Q; |% q( a# Q
print (Str);
; f L3 }1 l$ {$ M+ O( Y& W/ K, C+ C+ f4 i& D3 z2 o/ d0 u
print ('senderrefill');
; E- c7 C# B# Q2 m
$ j: B# ^ Q* C: o" Y8 \ print ('say 10如果10秒内不能将你搞定 50');
& C- O8 y) C: o& w D6 \ print ('say 就算我输! 400');
8 `. o) G" L: e6 T& N$ F exit;
- R& Y7 s8 r6 L) u5 y end;
2 h; `7 ]4 [6 Lend;
' T. z; P1 Z' I8 \! }8 m
' g5 H; G F6 {procedure OnCreate (aStr : String);
4 s3 a B% H: X' k, M2 ?var7 D0 i6 d+ r3 ]& G
Str : String;9 I, q* f2 ]: K3 O. i
begin
3 \ W9 x. H( N# t+ T1 B Str := callfunc ('getsenderrace');
7 } }( T, b" g if Str <> '1' then begin
( `3 k+ u) {1 `! Y: w. ~ exit;+ V) l8 c9 K- N1 q, r7 q+ x: n1 Y" U+ {
end;4 ~# F$ ^0 q0 M( ~
7 S1 U" ]4 F1 n
Str := 'showwindow .\help\一级牛俊.txt 1';
8 e7 T* B8 ~) b$ r print (Str);- H& {, o4 q7 ~# W# c8 q6 N
exit;
+ k# A/ R! d8 [end;
; q3 {- }. }- { N4 i2 P8 p7 D+ C- u+ w4 R3 \3 U; [
procedure OnDie (aStr : String); W1 b# B" S) g, U% R6 E2 |
var9 u3 V/ z- ~( Y( ?2 e: C/ m
Str, Name : String;* A7 X" E: y4 F. d5 M! H
FirstQuest : Integer;
. N4 |! N! X# T3 N, `% G5 l. }9 Cbegin5 l: R; V0 U& h
Str := callfunc ('getsenderrace');
7 h0 b3 h2 p- f7 { if Str <> '1' then exit;+ N5 A! L7 d' F% n$ `3 f
$ ?+ \( d0 Z$ h8 [4 g
Str := callfunc ('getsenderfirstquest');
' s8 v3 ~5 M( R FirstQuest := StrToInt (Str);3 S+ g+ i8 i. p% O% N) V
! x( @, ]& i9 b/ w if FirstQuest < 4 then begin5 L+ |3 l! L! g
Str := callfunc ('checkenoughspace');& r, U: K7 }4 m: Z9 k3 B7 X
if Str = 'false' then begin" }; D7 B+ _% P4 e( ~8 B
print ('say 物品栏已满...');8 g; C0 ~6 `: ^4 G: `
exit;7 X/ M1 v9 [' w- ^4 m
end;
. Q" [# q4 B7 r6 C' S. f; D
7 J0 S- Z2 q/ Z print ('changesenderfirstquest 4');. {+ [( q- g4 q1 P: x# `
print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');
5 }. P0 {# w- p# h end;3 ~/ Q0 p/ J# D) Z) o( K
- R" e! g0 X: E! C6 a- \; l7 A
print ('say 什么_不敢相信!! 100'); y7 J4 W/ }- E9 L% n; h
+ M' J; O% I ~" ?8 z7 Y$ F
print ('mapregen 53');: Z2 ^! A! u+ F. Y% n
! o8 b3 U8 w+ c$ }/ {
Name := callfunc ('getsendername');
8 e+ K9 w, K8 g/ k2 ? Str := 'movespace ' + Name;
7 t6 V) n( Z9 _ Str := Str + ' user 53 17 18 500';* |( t4 \, Q7 R k. h4 r" w- B, |, A
print (Str);" D+ s# ]- T& Y3 M) Z
end;
4 u, W8 A1 X! U* T
* q7 c8 x8 [, ^3 h5 C: h+ Kprocedure OnChangeState (aStr : String);
9 t' p6 l8 N% N. a2 d W' Uvar
. j. G% {( x Z6 r3 ]3 N2 o6 V1 X1 n Str, Name : String;: l8 o0 R* k$ [6 W8 j x4 G
begin
2 Q) _6 O. G& S if aStr <> 'die' then exit;
) \% P, t* P7 t8 Q
! [& U+ B/ R6 z3 u5 p8 b Str := callfunc ('getsenderrace');/ U2 ^' s- D" D! w- a
if Str <> '1' then exit;
* ^. K9 j) j+ ?+ }, e6 Q
( t; \" ]# d' l* V+ x" I( w print ('say 领教了吧! 50');! D0 p* v& M; e$ b
print ('say 差远了... 400');
@- F# G2 g# l5 e, E* V, Y5 _6 d4 R7 w2 [; m: P* C) c# {; ^
Name := callfunc ('getsendername');/ D* i, {& X: v( s5 K
Str := 'movespace ' + Name;. c1 I! g! ?& ^
Str := Str + ' user 49 106 55 600';
; F- y% \6 H% H& J5 ? print (Str);
% Q/ A4 i, w! M+ l1 ]% Pend;+ g/ T( P- P7 c
" W7 J: T3 d- m1 q+ w3 |/ Xend.
+ i2 }; Q6 [1 r----------------------------------------8 |3 c& o% Z. C& n2 h9 M2 L- N$ J
unit 一级雨中客;
. e- U1 H- G$ {6 u
O: H% [7 Q0 |% v; ~# finterface( C3 o5 h3 ^' G! }& L* W
5 ?5 R* P- l6 h1 F9 I3 y5 Ufunction GetToken (aStr, aToken, aSep : String) : String;0 c, t% [" L1 ]- Z
function CompareStr (aStr1, aStr2 : String) : Boolean;
% a, k0 o7 r. Ofunction callfunc (aText: string): string;/ d" M$ C7 v* ]9 f- ]% s. r! l
procedure print (aText: string);) ~" f/ o4 o Y% q E6 j
function Random (aScope: integer): integer;
& y$ z( R2 {% d0 Cfunction Length (aText: string): integer;- i- [/ b8 n5 l& I) W# w: l" [9 p
procedure Inc (aInt: integer);
% e1 D: N+ x1 v& ~' f) i- Aprocedure Dec (aInt: integer);$ U6 w, E4 G1 D z: Q% W2 ] ^
function StrToInt (astr: string): integer;
! U# V- I8 F; H: t6 l5 nfunction IntToStr (aInt: integer): string;
8 l" X: L& s& i, lprocedure exit;
. t+ t" ?5 _ a7 U1 _- A
- D! Y7 g9 Y* Q+ F& z8 [procedure OnCreate (aStr : String);
" Q% `% Q$ E* M- I8 i3 Z" sprocedure OnDie (aStr : String);
3 q( B ] _2 U* c- P' U& Cprocedure OnChangeState (aStr : String);
' N* ]) f; t; B _. l0 J, b6 Oprocedure OnGetResult (aStr : String);
) T) X0 k/ o( N$ i O N% V; b. @1 J: J' W" ~4 k! d. l
implementation' z/ b+ k* N0 q5 Z& W
# K$ W, P+ F; u `% S
procedure OnGetResult (aStr : String);( x j6 P3 z9 l) d
var: N; `. y3 r- C7 c7 Q( c
Str, Name : String;$ [: M1 \9 U! R8 ^5 e) K9 [) h9 J' |
iCount : Integer;
$ e9 P' \- m: O3 Kbegin# E+ L+ `, E+ a4 G
if aStr = 'start' then begin
2 o) ^9 ~4 N l8 H+ W# V# P Str := callfunc ('getsenderserverid');3 |4 c# x+ h7 N. ?" p4 J4 r
if Str <> '53' then exit;
5 O* a4 l* i' T) ?
7 x& e5 U) \' ~7 k: o- M Str := callfunc ('getsenderrace');0 ~- k. p8 q: X; R: w4 g) @
if Str <> '1' then exit;
$ n- y4 Y8 G# @4 z& u4 K9 h% [
6 u/ b; H y. ], A# M Str := callfunc ('checksenderpowerwearitem');8 f, M+ i, j% o" x
iCount := StrToInt (Str);
6 l2 }4 q9 r& ?8 ] if iCount > 0 then begin
0 Z( _! P% r y5 m* t* ?( y- Z print ('say 请先脱掉带技能值的装备!');
; d; w$ _& I: D# [" Q* ^- X) B Name := callfunc ('getsendername');: E& U) _' g( w( X$ D+ p
Str := 'movespace ' + Name;1 K" j5 ~ l" H# L
Str := Str + ' user 49 106 55 100';+ \8 L+ m) {! P Q$ V' z
print (Str);
+ {6 M# T" u/ C0 b exit;6 ]; }; r( n3 ~$ _; o7 o
end;
, j3 K! j: Z3 U) B9 Z( d Str := callfunc ('checksendercurusemagic 0');
# e. [( x. \" [3 W y( V3 j- W if Str = 'true' then begin
6 h$ @: C' A# x5 m `5 I) u2 T print ('say 选错武功了!');
; L0 _2 g5 @3 C Name := callfunc ('getsendername');
0 w+ q/ {7 ]; Y" R Str := 'movespace ' + Name;
& _. J, }) [0 w; k$ ^ Str := Str + ' user 49 106 55 100';7 L6 c! h4 o4 X& Z0 T
print (Str);
5 H( @( W7 H! p- B exit;) ]( u3 F8 N; [# ~7 ]8 I
end;6 P0 x" Q% p+ d$ V* ~/ q9 p
Str := callfunc ('checksendercurusemagic 1');
+ [/ `! U4 _0 D. ?$ \9 v. u if Str = 'true' then begin. \6 t3 C8 l8 [) L: v/ {
print ('say 选错武功了!');+ j9 a2 J$ r% {- d
Name := callfunc ('getsendername');
" d1 P* J7 N+ y Str := 'movespace ' + Name;9 f$ S. H8 q: h! y6 o' U
Str := Str + ' user 49 106 55 100'; \" w0 {* j# S9 g& z
print (Str); ?6 D' ]/ h' v4 \ y+ z
exit;
) Z+ o1 c- i0 O1 r; p; U end;
& ~$ Q* d0 h9 G* Z$ |% e
, ]9 X2 u& U2 ^$ p+ B L* P print ('directmovespace 一级雨中客 npc 53 20 18 0');1 K: c% G; H( g; @+ J
- |& Y6 P! B2 [# P$ D print ('commandicebyname 一级雨中客 npc 500');
, g" m9 |2 T- P& N$ y print ('setallowhitbytick true 500'); 5 R1 H0 H3 q: x4 x* E
/ a" ~1 ]8 q; S$ G
Name := callfunc ('getsendername');
8 A& s1 ]1 i5 d5 A5 K Str := 'commandicebyname ' + Name;+ ?# z0 w W8 @0 s2 G: y! s
Str := Str + ' user 500';7 ^; I/ E1 G2 b% w+ \
print (Str);4 {! d! U! m- @/ N3 ?/ G$ j
0 `4 s7 i( q J8 {8 L print ('senderrefill');
, `3 k( K9 p( z, z- K& W1 A. a
- L# i) k# c% D% o+ b7 ] print ('say 领教了 50');0 N B5 z4 r, C4 F) s0 W) E$ E' [
print ('say 开始吧 400');$ J, r& |* o' P6 \. V5 i% V8 A
exit;$ s2 M# `* @7 U' }
end;4 w0 W& W, \3 P
end; m, ?9 R& g" M1 _" M! ~
# U& c7 S1 ]- Q/ ^procedure OnCreate (aStr : String);
, `2 W4 |+ l- Y# n( w- i; ^$ b1 Ivar5 A s* k2 q& O# o
Str : String;
+ E) h1 U; m. N9 R) P# H0 |; i' y, tbegin
4 l) K& E G1 B( m# r: n Str := callfunc ('getsenderrace');, w8 \/ N X6 S& s
if Str <> '1' then begin
2 ^2 Z& S8 u1 U# f l exit;' i2 J' C) x0 |" G+ U
end;
4 i1 `0 r2 H* Z3 k8 V
' r4 I& V7 U! ~$ v Str := 'showwindow .\help\一级雨中客.txt 1';
2 q$ I+ g( T7 {6 J4 w7 D2 p print (Str);
( l( g5 Y' `9 A* n! V( I9 F exit;0 j$ ?7 Y C4 c: }
end;
: f6 D- O' [ ^7 ~% p; F
, w, @' b( D8 p0 t5 Mprocedure OnDie (aStr : String);
( P$ A3 d- n, T) m0 Ovar! W0 `% h4 A2 n. K
Str, Name : String;
( Z4 W' w+ S* z FirstQuest : Integer;
# |5 h4 v) {* G2 f: W% f2 k, obegin5 U% l4 ?% C( P: x
Str := callfunc ('getsenderrace');& }. L. N! h' Z0 b! Z" ]) I8 l, z
if Str <> '1' then exit;- E5 g+ g' I1 c" w' g
, P& U' d9 t) D; O+ j9 ^1 h2 b
Str := callfunc ('getsenderfirstquest');8 n$ S6 r# F/ h- R) v/ b; t
FirstQuest := StrToInt (Str);" C9 E, h3 W8 r4 j( }$ t( ~6 P
. ]) Y. u: C9 U" R- E
if FirstQuest < 5 then begin) C+ k7 M* n8 y5 l0 f
Str := callfunc ('checkenoughspace');
4 T" d4 v: e6 ^: a) @8 l if Str = 'false' then begin
% X) B& ^+ k' R9 {; S; M: Y print ('say 物品栏已满...');/ M: _: }# O; Y0 f: q: k* E! F: \
exit;
b9 y3 P: Z$ ~" G% ?" X$ R end;% V* l8 q$ m! u! r- C( N
/ K F' ]; G7 ? Y' x2 O) i) z print ('changesenderfirstquest 5');
( P3 u1 g0 G) p) h) G print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');
; i/ a w2 P: {( _+ i) T end;
6 i0 Q- U9 L3 y. ]6 T
2 B6 ]% T/ d5 ]( u4 Y print ('say 早料到了_佩服 100');
( V6 L2 C; h* b) X) a
. G% v, a# k* I% w4 j print ('mapregen 54');
9 p% R* V- \ J6 Y. y5 K7 ^7 L1 o8 @
Name := callfunc ('getsendername');- Z9 [7 m' w+ Y% E% K, o: I
Str := 'movespace ' + Name;; o8 h5 o, b- q
Str := Str + ' user 54 17 18 500';5 h) R7 s0 _5 p$ v& S! S. ?7 p2 _! A
print (Str);
- v" g" E5 Y! \end;% t6 S' x4 f' f, ^" U6 W. f* I' d; [
4 A% T. ?. B) ^5 f
procedure OnChangeState (aStr : String);
1 w- R5 z8 ~: tvar
: W; n! ?1 X% y {4 g( x5 a% { Str, Name : String;
+ n# o7 z7 y2 i& b6 R" q( abegin
4 X; Q. N/ j8 D* r# E4 a if aStr <> 'die' then exit;! Y& h8 V+ b' B
* Z4 S5 u. s$ C# c S2 ]" v
Str := callfunc ('getsenderrace');8 L, p1 K8 F& p
if Str <> '1' then exit;1 @3 k- @ y7 i3 B
) u7 ^5 ?1 ] a4 I print ('say 不错。只要能维持几秒钟');# o i( z- q0 O" Z6 d
print ('say 到那时谁都不是你的对手 400');3 L z6 E- L9 e) }
: K! d z# U' k1 p+ E F9 Y
Name := callfunc ('getsendername');
; I" @) D1 d5 G4 O) k Str := 'movespace ' + Name;' L' K+ S( k1 E: P( H6 X2 X$ g
Str := Str + ' user 49 106 55 600';
6 n" e" M/ Z2 J' Q0 B' N5 V print (Str);" w i& h) M Y) |' s4 D6 I2 Y0 G7 U, |
end; q, [+ |8 E' d* M
/ B/ n% M* H3 s! j- N1 @8 u
end.
7 p4 v" Y4 g1 I' l5 k; |3 \" B6 r0 @7 J3 ~; ]2 w6 l! v2 K
--------------------------------------------------------------------------------------------------------------% N* J7 X2 n ^8 k
( s! i9 c' Q" }4 i
unit 一级老侠客;2 |0 ]4 N! S( I, G' V
6 D4 a0 L/ F- U( S/ T
interface
7 j' }' n! N8 a8 n2 z9 [; X0 h7 O! C& p$ I `& X4 ~- t
function GetToken (aStr, aToken, aSep : String) : String;3 |0 t. J3 p; T) h& D/ p# h0 R& @
function CompareStr (aStr1, aStr2 : String) : Boolean;
$ K( @* A ~" s) C# ffunction callfunc (aText: string): string;* P* h; c* P* V7 L9 |: {0 e$ t
procedure print (aText: string);
9 z; J+ U1 W, R, k n/ dfunction Random (aScope: integer): integer;9 u) S9 b( P& e$ I7 G' V; L
function Length (aText: string): integer;
1 F0 F) ~ R1 X! |procedure Inc (aInt: integer);
J i2 v" N) T7 Yprocedure Dec (aInt: integer);
7 m/ {) {9 R2 R7 y; T2 P8 }function StrToInt (astr: string): integer;
9 Z& c9 }' g! s: Zfunction IntToStr (aInt: integer): string;: w: c0 |6 s8 P+ R
procedure exit;
* X( B- L1 n- r- g3 W! n
( F: l& l; Q$ k# U, P8 Dprocedure OnCreate (aStr : String);
$ c" M/ w1 ~- G' Wprocedure OnDie (aStr : String);3 q) P2 i" z# i
procedure OnChangeState (aStr : String);8 i, }. Z5 q2 G4 q
procedure OnGetResult (aStr : String);% E& Q9 j) j4 u) y
7 z( x l( M7 @implementation E8 z( ]3 O3 d0 J1 k/ L" p
% S: G: n0 d( I$ qprocedure OnGetResult (aStr : String);$ P6 k D7 f4 _* }
var
& {' \4 F, A9 C! _8 ?4 P Str, Name : String;
; R6 l! P1 n" f" I r. r3 M iCount : Integer;
" w; i3 H7 b& ?( c$ ^! Xbegin
2 P0 V6 _& R J7 ] if aStr = 'start' then begin
4 R/ `1 d# E! z2 t; u8 p) @ Str := callfunc ('getsenderserverid');
0 A- E9 I. I6 E7 j/ E( d if Str <> '54' then exit;
! P9 l8 a6 K3 Y3 O
! q6 G" \ b/ f! b1 h' H% ^; T Str := callfunc ('getsenderrace');
3 K; H. ]$ q ^3 A; B5 A if Str <> '1' then exit; L" E1 y3 h' G
$ Q: h; k: N3 O" F% J( y2 f Str := callfunc ('checksenderpowerwearitem');' k1 }0 q' ^# ^9 Q* F
iCount := StrToInt (Str);2 B; q' a) H9 ~4 Z
if iCount > 0 then begin
) o0 F7 ?$ }) _) n' H print ('say 请先脱掉带技能值的装备!');
/ E9 J4 V- B% a' ~1 |# Z' n Name := callfunc ('getsendername');1 c* G- o' a- f) l4 n
Str := 'movespace ' + Name;. s1 o' L+ v6 x; }: d
Str := Str + ' user 49 106 55 100';
{0 K7 ^3 |4 m9 z" A% V! B* b1 ? print (Str);
/ q1 \" {5 G R) [+ S exit;
2 J% R7 D- j, Q' ^' s! u2 j3 B end;" [; {9 m+ v( N' o6 I, c
Str := callfunc ('checksendercurusemagic 0');; b7 {) z4 E& J1 v' B- T$ @ z
if Str = 'true' then begin
0 M2 S3 R- J) U3 u9 L print ('say 选错武功了!');
( o6 I0 |8 J. f. D% `$ D4 j0 a Name := callfunc ('getsendername');
4 @; ]( o ^; e! h# n) x. s Str := 'movespace ' + Name;9 U! S# f" a- }' S- d1 C. x+ w
Str := Str + ' user 49 106 55 100';' T$ v C1 Q- O: }$ Z- L
print (Str);8 I( n" f+ G' h6 u
exit;
" m+ s; C; d7 M) O, F end;
: p9 u& H/ {. y6 x4 a; ?" t Str := callfunc ('checksendercurusemagic 1');
P" V# ^6 T2 Z) I0 [ if Str = 'true' then begin
; D/ `% X* m, ~2 V2 S print ('say 选错武功了!');
T+ d8 C& r& z7 ]4 H+ l k$ ^9 q& t Name := callfunc ('getsendername');! C8 O) S* F8 I/ l" n
Str := 'movespace ' + Name;3 l- S4 R" o6 }0 M
Str := Str + ' user 49 106 55 100';* G6 O7 q, p5 c2 X3 q
print (Str);4 x( J, D8 K N" F
exit;" t. S/ }7 b. S8 W1 H4 E: `
end;4 D7 p8 z2 Y% n, J3 |
( S3 l, [, n" R3 n4 i# {; h2 t print ('directmovespace 一级老侠客 npc 54 20 18 0');
7 G4 r% `6 ~1 E$ ?( _
( u5 g7 M6 j- N9 _! g print ('commandicebyname 一级老侠客 npc 500');
1 [6 i8 O8 c; |- B1 [ print ('setallowhitbytick true 500');
- x/ A6 g" u) T# a( n0 H3 V+ \5 h% D, e1 q) U3 f6 Y
Name := callfunc ('getsendername');
3 _9 A# z2 e2 ^) u Str := 'commandicebyname ' + Name;$ v$ H$ U7 Q0 t3 z* {4 U
Str := Str + ' user 500';! y; I x+ T% O: i
print (Str);
( _2 P, G3 `3 `& N: g* M1 Q3 y1 G, J1 x. a. Q5 }
print ('senderrefill');# r3 J9 W7 u. c& E3 ^; i
8 u# I* d$ b3 B. e& z. F* }7 g print ('say 如果你实在想比 50');/ j% Z- b, `" w
print ('say 我将奉陪到底 400');# q+ e& a- v3 {9 g
exit;
9 R/ R5 n! i$ l1 r7 { end;* J- \! a6 l2 ]# X
end;
; G7 ]% u- f8 X& r. ^7 r6 c* f
7 r, Y' K" U0 j( R% e5 kprocedure OnCreate (aStr : String);+ k y, ~+ l2 A% p5 M
var. J: c( k, Q1 N7 x/ g7 F; ^
Str : String;+ `$ K( i8 w6 k0 v8 F6 h5 ?
begin
* m- g- `/ x4 f/ v' m) V. O Str := callfunc ('getsenderrace');1 [4 T( \7 e" u; o
if Str <> '1' then begin( l2 p; b* `, j8 c
exit;0 t% P; n7 {# P# _: S! w6 W
end;
2 k: K1 R6 Z6 Z4 K" O
3 H5 o" L' e: p3 b9 r7 p+ [ m Str := 'showwindow .\help\一级老侠客.txt 1';
: D2 X; X' m. m8 f" d print (Str);* u; z% m7 u; h4 [- Y( g
exit;, y+ M2 j8 |. T" L4 f
end;
, ?6 x4 ^" R/ G4 W1 L9 b' B( U, U
* Y6 D5 c0 L) @; I) i4 |procedure OnDie (aStr : String);
1 l. K4 y0 P$ ~var
3 v& `; g9 Q d( [1 Q, W, T Str, Name : String;& G; L$ {2 Y2 m4 v
n, FirstQuest : Integer;
- Y( f& W6 Q" `% Y, T, Q& ibegin
/ q$ G9 k9 Z' u. ^5 f/ J; P Str := callfunc ('getsenderrace');
/ i5 s/ ]+ q1 [5 J! m, u! o: w if Str <> '1' then exit;! e E* U% m/ s, q, {' p5 Z
9 `$ m2 q6 [, ]: o Str := callfunc ('getsenderfirstquest');: W6 c" Q8 z7 Y2 f4 c/ |8 D0 f+ @
FirstQuest := StrToInt (Str);% @5 s' w" Y* l" C+ U3 z( B
1 |; I5 r1 k/ t! J% _, P1 X Name := callfunc ('getsendername');$ b3 O. a! S% U( a
, F" @9 v( z& m; W6 G$ E1 ~7 o if FirstQuest < 6 then begin% P. ^" N2 i& ?; z, p
Str := 'sendsendertopmsg ' + Name;
: d$ I+ S$ L9 g Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';
7 d/ F& Q' ?7 X+ ` print (Str);! z' [- B' U- }* a
- W! v+ z0 ]! ?3 }1 A) [
Str := callfunc ('checkenoughspace');
+ R5 [. A$ j4 J; V if Str = 'false' then begin" n7 `& T- S# B3 q: p1 i
print ('say 物品栏已满...');0 [# P8 {8 ~. W. x
exit;+ H# H9 ?9 v6 `/ I0 m+ G
end;
3 C4 T9 v) d: x% i, y8 \: r9 R( L5 p
( n- w O5 w5 ~, |; t print ('changesenderfirstquest 6');
8 w" T i, @, X/ X( }! Z! W5 {& E9 t [$ V# o$ T5 S6 T. V
Str := callfunc ('getsendersex');; n2 R; D2 |& j% y2 @
n := StrToInt (Str);. n% T. z g4 ~3 [9 a6 U/ m8 q
if n = 1 then begin' [- {. J; Z9 A
print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');
' _6 w F1 J9 Q* \+ T3 h end;7 N2 @5 }5 N+ m
if n = 2 then begin0 U5 T" |3 v# _$ b, T. z1 P
print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');% m6 t1 |' S3 l6 l0 b
end;
* M5 ^3 P% Y2 ~: s1 l. R) W print ('putsendermagicitem 新手训练神剑 @一级老侠客 4'); z; u" w, j! e; S5 o8 z, W
end;8 L7 Y! `; ^1 c
' Y0 G- |' ^, Y% N1 K print ('say 佩服_佩服 100');2 `) ?9 o2 E1 z) Q) `8 @* v
3 s" n2 [1 n4 m, g Str := 'movespace ' + Name;; Q9 f1 t1 u/ X5 x8 r) R$ a- c$ {
Str := Str + ' user 49 25 35 500';
0 H+ @5 V$ b, Q print (Str);4 O( v' [4 e9 H' ?# S u
end;+ L! v1 k! I& l* d: ~
* I( Y) S8 I: L6 {7 }$ `procedure OnChangeState (aStr : String);
1 ^7 x1 a5 ?9 g3 b. v* Y! |& ~+ Yvar
: L& n5 `3 G2 V1 i Str, Name : String;$ B$ Y( U7 K, w6 [0 c8 J
begin
4 ]( j+ e" M0 S4 r if aStr <> 'die' then exit;$ p3 R- q* Z( K4 {6 Y4 L1 I
9 P1 o7 [3 ?7 N! ]) n
Str := callfunc ('getsenderrace');: h4 q4 L8 U& W9 [* }! Q$ U6 Q
if Str <> '1' then exit;2 t0 ^7 r# i) A7 Y) {: O2 S' U
1 o' O# \5 @5 Q% V print ('say 小小年纪_就有如此高深的武功 50');
& E' [8 w2 Z+ ^- ` print ('say 日后要继续修炼... 400');8 ^# Z+ D3 i; a6 m P7 d
, C ^" [# r9 r o# e Name := callfunc ('getsendername');% z; Q- y- q8 y$ c8 [# F
Str := 'movespace ' + Name;. H, S! y8 b) x/ j
Str := Str + ' user 49 106 55 600';1 N' }, a$ \# |( d* C
print (Str);$ S" H4 K; {" K5 v0 E% s
end;
- ^8 ~# b, J& @- P# h1 d& @& J
: H+ r( e' v+ l1 x- I( K7 fend./ D( S+ g* i# z! q5 }' d* B
5 ~5 i# T% t% P: N, W) u# W+ H-------------------------------------
" V2 T2 B3 [$ d; P
7 O' t A' u r! w*************************************
- ]6 H* e b0 ]; a/ [5 x
4 g& [8 k% |4 f/ a: P* o+ Z奖励物品代码:. v4 A j2 c, G" v
' ]- X$ e) J' a7 S
*************************************( l3 A4 o& J4 K+ ]. o; v1 k
6 `% N! `+ M8 \& H" H3 c男子侠客弓服,男子侠客弓服,24,新手村擂台战利
7 z& [ r1 B) S( G }: N- A" d" k' q4 K( {3 N8 I& N
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10, C) N) y9 s" ]: K3 K
6 [5 _* l. b% T* w% b9 o7 f
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,# d8 o3 s2 G* L% x& @* Y% Z0 D
女子侠客弓服,女子侠客弓服,24,新手村擂台战利! g" t$ k1 q {4 c+ j
7 n0 b Y* N: @$ A5 R品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
# h! g) e0 H G8 m
# v0 s7 j& U5 f* z z* P1 x0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,* s# M( R/ H7 F/ ~# R
新手训练拳套,新手训练拳套,6,新手村擂台战利
/ b7 d, z/ b- d X# ~3 m T
8 B1 y: x# z, M! P( o1 W品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,( M( Q, q, a" b5 Z0 l+ g
, H/ Z( N/ T$ f+ i9 ]( X+ T,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,( u8 N/ `$ R; K
新手训练神剑,新手训练神剑,6,新手村擂台战利% m5 r- g0 d/ l( Z W( u
- |3 {+ S V# l2 a0 z& p! l0 ~& J品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
; U! v9 ~5 G8 W* Z4 m7 q
# g% i$ Y- }/ B4 a# |2 |,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,( }4 a4 t+ V2 K' R9 V7 t
新手训练弯刀,新手训练弯刀,6,新手村擂台战利' z; M& e! s( Y% ?& Z; t
5 U5 b2 M+ S; d5 l8 a" \, }
品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,! d, v6 U& \3 t/ l7 p
4 o. N: ]* y! q! p& l h. ~8 X
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
& W: p6 g* S) [+ V% j新手训练长矛,新手训练长矛,6,新手村擂台战利
2 k! Q- w+ G# P
* b. v1 f2 f! n! H品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,
3 x( ?$ v* _; |7 S4 b
N8 r' h3 D3 ~6 R, L5 g" A,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,* w* A5 b& V( M1 N* e5 W( q
新手训练大斧,新手训练大斧,6,新手村擂台战利
& [# Y3 N" n3 s% q3 j
0 \ `: B& E! e5 K% J4 N品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,$ X! _" b9 |4 Q/ |) x
5 ^+ j7 z& y) o,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
- }5 L4 a( p p' K
" q& [, b, ?, k: j" O" t8 V******************************************
. [5 F. {5 Q a& y% G, ^+ v2 w5 }1 s7 `
: M0 r) ] k0 m; [' U |