三千论坛

标题: 新手村擂台脚本 [打印本页]

作者: 异仟年    时间: 2022-9-5 20:23
标题: 新手村擂台脚本
新手村擂台脚本
$ T: [/ o8 {! T' D
$ o+ i8 Q, o4 m3 H9 J8 p* d; Y6 a9 ]/ F7 n+ o
释放到同名文件夹下覆盖原有文件。+ Q/ h" a! m, a7 ]+ L
1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。) t# d" c6 {) A+ w% ^
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。
+ x+ F2 [! B6 c- I" W' y( K4 [(由11月23号发布的最新服务端修改)
6 |0 Y6 h. l; _9 b-----------------------------------------+ B  R! a0 l) r2 ~3 |
内容介绍:
" p7 j% a0 y5 M: B% ^新手村比武获得奖励:
1 q5 h) K$ o6 I# `, B% t: e6 l同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0$ v9 N, }6 q. Y' s

$ E, S; Y! G: n: ^. g) j) ]1 J. [9 H/ U" m
最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较
7 F7 j4 N" ^, H; u) ~8 ]/ D) K3 {" Q2 t! a; H5 q
喜欢黑龙,所以是黑龙的加强版!)& J& N& Y  u9 T* e, m- x( G1 r/ G

& C" r- ^1 d  T+ L7 k4 l[replyview]: F% I+ V5 X8 {& T
" ?# ~& P* s' m
-------------------------------------
( Q% l: |8 l3 O, N% r' U' A9 e" E% |" g! Q" y4 A+ h0 O
unit 一级梅花夫人;
: p! Y* u9 F! D( g% Q3 c  j3 I9 V& D( O) g  D$ O! ~
interface
/ S0 x$ ?" K* E6 s/ F1 i! B, \0 T% D
% J! F2 ~; U% ^* w" x. @function  GetToken (aStr, aToken, aSep : String) : String;
# H; p7 l% q  r1 n' w: b% Tfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
: z/ M$ \8 s2 Bfunction  callfunc (aText: string): string;: ^# }) k$ c0 e2 _
procedure print (aText: string);& _* M+ w+ T! k/ U/ A: p
function  Random (aScope: integer): integer;/ I: @; O* B; g7 k3 k# O
function  Length (aText: string): integer;/ d% t9 a! T' y4 t1 W
procedure Inc (aInt: integer);; B$ T' h9 c9 C# ?: f
procedure Dec (aInt: integer);
" Q# s) l* P# Y/ q" ~function  StrToInt (astr: string): integer;- N# |+ P- \( e5 X
function  IntToStr (aInt: integer): string;" I2 Y( L. f& V. r' o$ r* n, a% R
procedure exit;% R" x$ ^# ]5 P: T

3 q1 b  U. Q7 Q& F. ?5 N% cprocedure OnCreate (aStr : String);6 c& P' x' G0 b5 s2 |
procedure OnDie (aStr : String);
$ Q1 a% D$ w% V; v7 e) N! Pprocedure OnChangeState (aStr : String);
; i# v. S. u8 b, eprocedure OnGetResult (aStr : String);: G$ G: z, _% e# w8 e/ t' Y
7 x9 i  Y( d: J1 q
implementation6 [7 T( Y5 s' j- y$ p. n
! |- M" f- R$ V5 [
procedure OnGetResult (aStr : String);2 a2 G: A0 [! J9 |5 ~2 J% m$ L
var2 H" c, m; w9 x5 ]5 Q1 a
   Str, Name : String;
: n4 S6 W1 Y: X+ _# e   iCount : Integer;
) V$ `; `: X  ^5 kbegin
' \2 K; R6 y( c1 S1 s# m4 M   if aStr = 'start' then begin& R4 g8 c; A4 R3 t% B7 ?/ G
      Str := callfunc ('getsenderserverid');
. V8 s) u! Z# ~0 c/ t      if Str <> '51' then exit;
( {4 O2 e/ _/ C2 h9 C9 O8 ?
" f" x" Z& Y* P/ {5 _+ y      Str := callfunc ('getsenderrace');& |; \- G1 i8 W/ ~& k2 t5 {
      if Str <> '1' then exit;
! j8 [/ u% D2 q+ C8 v( s
: h/ {: N# Y9 d      Str := callfunc ('checksenderpowerwearitem');6 \) B( ~6 M5 S
      iCount := StrToInt (Str);7 n" d0 F3 {( g: k* o
      if iCount > 0 then begin1 r* k& T$ D. b4 f# u
         print ('say 先将带技能值装备脱掉!');
7 g- z& U' b4 m& L  r         Name := callfunc ('getsendername');
/ Q& p. o6 G; |) i! S3 G         Str := 'movespace ' + Name;
* z$ y2 [! y( t         Str := Str + ' user 49 106 55 100';
7 B; `/ z6 L* ]" Y         print (Str);
+ n% K2 n4 D& @( z' Y  s! c         exit;
! u4 K3 a3 q$ ]' h/ D+ O      end;
: u0 J8 X# h; J      Str := callfunc ('checksendercurusemagic 0');6 c  R5 d- o$ [4 G. H! X6 p
      if Str = 'true' then begin
1 C; ~4 x3 P% P. [2 p* `         print ('say 选错武功啦!');! B" d( }9 ]6 F/ F! L+ v
         Name := callfunc ('getsendername');
. a3 R9 Y: i2 _* u1 [, h  y4 H; p; Q         Str := 'movespace ' + Name;. o% X* r# x0 O3 D
         Str := Str + ' user 49 106 55 100';2 @+ l, X2 L) I" Q; i: h5 [6 m
         print (Str);! v# v& p! X0 k2 ~' o, K
         exit;3 z' q) [/ W, P; o9 D6 w
      end;
8 O; P5 C( a" @( F0 ]: G- ?      Str := callfunc ('checksendercurusemagic 1');! L, n& {( M$ _% z+ t# t
      if Str = 'true' then begin
7 a4 U, K3 B- u& ]         print ('say 选错武功啦!');% W. {8 m0 d9 P2 ^6 i
         Name := callfunc ('getsendername');% p: N' Q/ e0 i1 _# a" k
         Str := 'movespace ' + Name;
9 D2 J3 \3 X; q6 Q7 g3 ^         Str := Str + ' user 49 106 55 100';
2 Q6 E4 P# v2 ], @3 d+ ?         print (Str);
: d3 h3 ^$ \  K- m         exit;# T0 P! l# X3 C4 h: ~
      end;3 j  g+ W4 {% s; N& ?
, D$ ]9 ]9 W( k! m. Z
      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');
7 c8 G1 ^3 d5 W8 d/ Q5 Y* r+ Z4 z7 h
2 e7 O2 g9 w+ d3 I- V      print ('commandicebyname 一级梅花夫人 npc 1000');! m- E1 f# U$ B  b& i) K
      print ('setallowhitbytick true 1000');( |1 {' i" I1 b2 O% ^: d$ u" n  ?

! j- t: O5 k. S3 D      Name := callfunc ('getsendername');
+ ~" }) G" `) s: B+ v$ @      Str := 'commandicebyname ' + Name;4 v% ], A$ T1 O: e
      Str := Str + ' user 1000';2 j3 B  [: {0 v
      print (Str);
0 _/ F& b' G) X. T- I, o# i2 V2 k
* U% j* Z+ t6 ~6 ^% e      print ('senderrefill');
, O; `/ G, }1 y( z( x
; m9 {4 i, g$ h      print ('say 别害怕 50');
# s8 V# L* {0 y  M+ H, f      print ('say 我会收下留情的... 400');! I8 g, u! F) N& p: G- [4 b5 |
      exit;- U: G" i" h! ?7 ]: f. r; Y
   end;
- C5 f; H7 {+ J9 c6 [! U: bend;& ?, q' ?2 f2 V5 }/ V/ A
) q: D# i. T/ p* o
procedure OnCreate (aStr : String);+ Y7 T* P, ?) @! S/ q
var
3 p1 j7 A  H( M2 c9 F1 Q7 n   Str : String;
! [* ], x% K* T* ybegin9 v0 e: [. r& i5 I. b$ d  P, H
   Str := callfunc ('getsenderrace');
( V; V5 P' Q8 u% o   if Str <> '1' then begin0 ^+ p) O5 V9 Z, R
      exit;) m: ?# |/ r# F( q* B3 O) w
   end;& h8 Y6 |' }  U- d9 j

: H  F% A' B. }) Z6 T6 g   Str := 'showwindow .\help\一级梅花夫人.txt 1';5 J7 e0 z! E, r7 K8 b) V
   print (Str);( t$ e+ ~  M  ~; m' I5 l1 P' `
   exit;
" w$ k; @9 {9 ~) B$ i. r* }end;$ p* Y8 `! Q1 y5 a; m2 J

# w# P2 l3 `: Z4 q" cprocedure OnDie (aStr : String);, k# p& x# o2 L5 k" C. n/ [0 C' t
var: x$ s/ ?$ u7 A& v0 ?, K# m7 J5 M
   Str, Name : String;
$ P3 Q! p9 `' T  o$ u$ e, Q0 }   FirstQuest : Integer;   
- a: G6 D3 r0 m- i3 Ubegin2 T% k3 E, J# X3 ~9 B- y( C
   Str := callfunc ('getsenderrace');
2 l) e9 l" F0 k& c! e. B( F   if Str <> '1' then exit;
& j* ]9 j, X# z, B) j0 e% {9 H8 Y2 J; l
   Str := callfunc ('getsenderfirstquest');& F1 w6 I$ u* W; B3 y3 S& r2 X, Y! M
   FirstQuest := StrToInt (Str);5 e5 l8 y+ O% V& }  X' p/ e# L

. @8 d( o" c- x( `+ ~   if FirstQuest < 3 then begin
% X- w3 {2 d& p) N) `. h      Str := callfunc ('checkenoughspace');
& b1 R0 E0 U$ Y+ Z, Q3 I+ }      if Str = 'false' then begin
: _- T) S. D( H. X1 }         print ('say 物品栏已满...');  t5 c2 z  R8 T/ t( m
         exit;
1 I& B' S) h2 i1 n9 d$ u      end;
5 Z( }8 f- [( p. t  @! m; C' H
* ?2 |8 w3 K0 w% K$ g" G      print ('changesenderfirstquest 3');
# ?# m! h1 K! {: v      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');
9 `- H7 s; s5 D3 u6 u   end;
6 f4 `; y! f6 L( ?2 _$ v; x! J, M
   print ('say 我可只用了3层功力哟 100');
$ K; x7 V5 ~  ]' }
8 A" d. b8 K6 M( `   print ('mapregen 52');" M; P$ I4 d! I0 U3 t) x5 R$ \
# a. I7 {! u" G9 [" m+ z8 h
   Name := callfunc ('getsendername');   & w; U' x0 x% L9 a
   Str := 'movespace ' + Name;
+ @2 A# V$ E5 \' n1 t2 C1 _% ^   Str := Str + ' user 52 17 18 500';
' x8 |  U, {( z5 N0 O& ]. o   print (Str);. a! Y2 ?1 k4 i9 C  {
   exit;  u9 ~) B! k) J8 }! a7 G4 {
end;
0 k) m) {2 g2 T! [) `; G
! ]7 ^" j  t$ [* c& z% ?procedure OnChangeState (aStr : String);' N9 K- T' K( A5 U6 t
var: u( O3 E& |4 Q+ ~! ]6 U9 `
   Str, Name : String;
+ A5 y' A' D6 c  q3 bbegin
6 ]% {3 K1 y7 Q) }* t8 n" s   if aStr <> 'die' then exit;) i+ W" y, Q! f7 M

, F% t! T, \% K   Str := callfunc ('getsenderrace');
2 V7 b) v$ J! [3 O4 Y* M   if Str <> '1' then exit;
8 h3 _) e8 I7 F4 c1 V
4 }: P/ p. g* n. p: V6 y   print ('say 别无他法 50');7 |7 Y; `  Z5 `' e8 ]$ e
   print ('say 是不是修炼方法不妥呀? 400');
" ^! B* K7 R% e$ V: _
/ T! ~1 }" l* F* g: K   Name := callfunc ('getsendername');& @) m6 O' ]8 E  Q2 }6 b7 C
   Str := 'movespace ' + Name;
& z2 Y) h: W, s2 J6 _  K   Str := Str + ' user 49 106 55 600';
1 H  q& c6 |% z8 A6 L" r# \) z   print (Str);( ~0 H/ q4 I/ i8 u8 u
end;
, c5 l: y6 L, C  z/ }- q( P2 q! @4 q6 q
end.
0 ?4 n* G% ^" @0 X% i8 X7 G( n-------------------------------------------
' s0 W8 n0 ]5 u1 D" w  v$ gunit 一级捕盗大将;
3 E# L3 `% Q8 v! u
% ]; j2 I  y6 T' L4 v/ Y. @& T+ W: ninterface. Q1 l& I) g$ t. Y
1 {- |' U+ q" x: s8 ?3 G
function  GetToken (aStr, aToken, aSep : String) : String;
' p; f  G" f1 a5 jfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
9 g& r' W& ]& R5 c, H: y8 x3 Ofunction  callfunc (aText: string): string;
8 X5 M5 w! ~9 Aprocedure print (aText: string);4 h+ u5 q( N9 ~/ G9 v( o
function  Random (aScope: integer): integer;: E# G4 m: X) K( M4 i6 m9 X
function  Length (aText: string): integer;/ u& j% A7 {4 N+ M' q
procedure Inc (aInt: integer);
1 J0 L+ A# {4 \0 h' s7 O' N7 f) ^8 Hprocedure Dec (aInt: integer);+ f5 ~6 ^+ b" q5 S, l! n* r
function  StrToInt (astr: string): integer;
% Z4 ?, D5 C4 ?) _$ ifunction  IntToStr (aInt: integer): string;0 p8 [& n9 W& r6 N( M# [2 y) G
procedure exit;2 R) q$ v7 x- z0 c2 |8 E

* v- E- U7 K! x% v+ l6 Dprocedure OnCreate (aStr : String);
+ Z- [8 B8 ~% O4 Sprocedure OnDie (aStr : String);
# o) ~' R/ q, @9 c$ d1 U5 h' Uprocedure OnChangeState (aStr : String);
+ t8 M' E( k5 B% f# f8 sprocedure OnGetResult (aStr : String);
9 d3 _+ p5 T' H8 X3 A. T, r+ U0 G8 J$ g1 O! ^
implementation$ a* N( q/ p5 w/ ^
" M3 z" @' H9 O2 F7 \, A/ V
procedure OnGetResult (aStr : String);0 o1 E$ v3 ?0 w# C
var; s5 C9 Z7 W9 W2 O2 V
   Str, Name : String;7 M1 n" i3 g2 q- `
   iCount : Integer;   - l  f8 D) W% ^: `. _& S
begin! n( d) v  B& S0 f1 N
   if aStr = 'start' then begin9 B; g, s* Q* E9 G
      Str := callfunc ('getsenderserverid');0 i' i  z. ]  y: @7 i
      if Str <> '50' then exit;
$ F! K; S* m- e$ r) K( }
  I2 D+ V* ^" z8 b! q% z3 ^      Str := callfunc ('getsenderrace');+ z. Z6 S; W# i  e: R
      if Str <> '1' then exit;
: G: }. I8 y! u0 P* A# b
, m. k/ I3 l$ M3 t( _      Str := callfunc ('checksenderpowerwearitem');& p' V/ Z9 \* a- ]- M5 s
      iCount := StrToInt (Str);
* g2 U* o; w1 n* x; q2 B3 n      if iCount > 0 then begin2 X9 d; Y" _- u2 P
         print ('say 请先脱掉带技能值的装备!');0 a& |7 t0 h0 L1 Q1 a! ~- H8 P
         Name := callfunc ('getsendername');
4 Q2 g" y% w! y7 c% x         Str := 'movespace ' + Name;
! x- g4 ?7 z# L" R) u* Q7 D         Str := Str + ' user 49 106 55 100';) L  ^3 v' o: g
         print (Str);' F/ {5 X8 N2 W! o8 ?' G0 R
         exit;0 W- L* I4 x* t
      end;
, w. ~' m' U/ k( S      Str := callfunc ('checksendercurusemagic 0');  [9 ?3 O& L; \: B  K, `9 G
      if Str = 'true' then begin1 q0 i+ Q9 `, N+ z1 U* L
         print ('say 选错武功了!');. r1 e, W% `2 J
         Name := callfunc ('getsendername');3 h9 D* F9 B  K( f6 [
         Str := 'movespace ' + Name;/ s4 j+ d* m0 W' M2 k. _) u
         Str := Str + ' user 49 106 55 100';# S) l( R% \8 ^4 ~
         print (Str);
7 @3 \" H6 n4 \$ q+ r* [0 r8 r         exit;5 R6 ~  [3 c1 }- c5 |
      end;# F; A# r; o& z4 |
      Str := callfunc ('checksendercurusemagic 1');
' `0 r1 J% P8 u& w1 s      if Str = 'true' then begin& v# H6 W- t4 {" [" d1 f8 u
         print ('say 选错武功了!');
! `$ N1 `; `" b* M8 E         Name := callfunc ('getsendername');; M) o) H* b; j  ~7 \" Y
         Str := 'movespace ' + Name;6 S: I2 h" y' r& G# _* F8 w. q/ d
         Str := Str + ' user 49 106 55 100';
" j: {' y/ W) G5 E         print (Str);1 N, ?6 X1 I3 H& u/ k
         exit;- Z# x2 T" C, X9 p' q  k4 ~, I
      end;, i4 i+ }2 Y$ g3 Y" V

7 w0 ~; w0 j0 Y3 \* E      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');
1 O+ |) q+ S( r: V1 a7 W, x+ W' h4 o6 P; C
      print ('commandicebyname 一级捕盗大将 npc 1000');& o. M- X4 F) n6 D1 ~
      print ('setallowhitbytick true 1000');
8 g+ h$ R# |3 f) r* D: |# e
! Z9 a2 Y, n1 t7 G( t      Name := callfunc ('getsendername');
' b( t* f2 V* d      Str := 'commandicebyname ' + Name;9 q! h/ n% I7 P7 y$ E' }
      Str := Str + ' user 1000';; {9 j" }0 w& n. K' `
      print (Str);
! Q# V3 D; W8 z4 @6 Q, _; q6 r7 ]- v
+ o  y$ p1 S  h! i' D  O      print ('senderrefill');
5 R9 `( h' H" x' j0 ?) W1 q8 o( D0 f5 l
9 c3 k7 m# s" s6 Q, J      print ('say 你还太嫩! 50');
: Y' e# k0 ?7 z5 t      print ('say 留神啦_我可不会手下留情 400');' A* a7 M9 C5 v; x# ^# I. a+ d
      exit;
: L1 L# Y* a* n5 R% I1 Q   end;& g3 v' P5 ~5 ^+ w
end;
: `  I$ Y* `! [3 e; @6 ^/ }( ?* `' f0 R  m2 [
procedure OnCreate (aStr : String);
% i/ Q# w1 J, w; evar
5 }, d8 S- T, ?2 z* E+ F# f5 ?   Str : String;
: d& Y: C+ N. t  x/ I$ C. nbegin( r% n: d% q  I/ G% `+ f3 g# B
   Str := callfunc ('getsenderrace');& |  i" m1 K( \- N
   if Str <> '1' then begin
! K& v$ r* T; [7 s) N0 O; b1 O      exit;
7 q8 d) {" h- H! W5 ^, H   end;
# \' z# ?8 a# ~! y! U0 J$ _2 o$ U' P5 L) v8 }$ V* z7 u/ h
   print ('setallowhitbyname 一级捕盗大将 monster true');
/ h0 {- Z. q' q3 w
- \( O! r7 x5 R& `0 C4 U   Str := 'showwindow .\help\一级捕盗大将.txt 1';
, r9 i' o/ C/ R4 @   print (Str);) N% O6 D" ^% T3 M8 f
   exit;8 b2 A# R8 ]3 N# W, W% h
end;
$ S! _9 f4 p( V4 R# t# d* o/ J5 k
" g  h4 B  E0 ~. W* Vprocedure OnDie (aStr : String);5 k* n7 R3 A8 L: l! o# r
var
3 J+ H+ P& F5 L$ t! a" c( z! H   Str, Name : String;0 i- i" _; U3 P5 p- a. m; [
   FirstQuest : Integer;
6 {0 w' H4 `' _1 dbegin3 S* [& {& C7 p
   Str := callfunc ('getsenderrace');+ K9 L0 X( g# E# x
   if Str <> '1' then exit;6 I  [. {/ g7 l  D9 S  }- m. b
; O$ ?6 z, X! [$ i7 R
   Str := callfunc ('getsenderfirstquest');
! O# h4 }% f0 F' Q4 R( W) F, m- W2 I   FirstQuest := StrToInt (Str);
* Z, z& \: G, C4 o" {8 {) D  h) b- C* W: J7 C3 L0 g7 ]
   if FirstQuest < 2 then begin
1 _; x. B* o0 Y) o3 P% p3 d      Str := callfunc ('checkenoughspace');
0 Z: l( d4 g' @      if Str = 'false' then begin
9 \; |5 D" G$ {1 h" O& M2 f         print ('say 物品栏已满...');. l! j* y. a5 ?% g
         exit;
2 Y1 S. a( t7 S" F      end;
4 t' v2 Z# J% l# Z: f8 i
6 D! p; B# h4 E6 ?7 [8 l' ~      print ('changesenderfirstquest 2');
# Q4 ]) d9 G. N& R      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');- ^! ?( i4 e, ^# ]! L
   end;4 P/ |$ s4 b0 C# _: }  O

, t' u- X" l: U% E' R+ j/ E" x   print ('say 不可能_我怎么可能输呢.. 100');
4 v6 e' q) E. F1 M" l$ w, D; ~
8 X! r0 R" ]' h$ b( s- s% W, V   print ('mapregen 51');
1 Y/ Z7 P+ |! B2 p$ h1 n9 B! e, M/ E( K2 l
   Name := callfunc ('getsendername');
# C+ X" n- @  U& X  B/ }   Str := 'movespace ' + Name;) o# _8 W4 G6 @9 Z8 d' t
   Str := Str + ' user 51 17 18 500';6 d, \" T' z* E  z
   print (Str);; a, ^# d1 R& ]' P1 o! T
end;
4 F! K2 Y4 x- y  p7 W1 ~! Z
" D1 O! y6 m  o% W/ dprocedure OnChangeState (aStr : String);
7 \; \* Y7 D. [var5 H2 T% ~' V) |, [$ E8 v. T
   Str, Name : String;1 s* u/ G( n; N( ~' D& G' y
begin
  |2 a. l; l5 j/ r! H, P" s   if aStr <> 'die' then exit;
$ F; _& E0 P4 v  O
  T$ d! |0 ^+ H5 d   Str := callfunc ('getsenderrace');2 b4 D5 j9 ~0 O) m+ b
   if Str <> '1' then exit;: P7 H4 ~7 T/ b, Y2 y6 l

6 E0 N: s% m. T/ y6 V( ]   print ('say 回去再修炼个10年吧50');; U9 f# i& {) I# S! {  i
   print ('say 到那时我在用双手跟你打 400');. e" v+ t; |% f1 e( c- u4 j
, i. b: P3 y, b$ V
   Name := callfunc ('getsendername');2 n+ ]. z* D* B: m, Y
   Str := 'movespace ' + Name;4 r! C% [3 T& S' O& ]3 h6 S1 J* l
   Str := Str + ' user 49 106 55 600';
1 l- m' x& N# h/ \  G/ A/ e; ?   print (Str);5 p+ F) g! T6 O0 C

$ `3 r1 `( o, U8 D- M4 D" }6 @   print ('boMapEnter 50 true');   ' G% `( y* A' I3 S/ x& {$ c" Q
end;
% Z. ^0 Z6 Y9 ~  M
* a+ z4 d4 g+ X. h3 G( g- ?end.' Q4 e, w8 @% h$ W1 a
+ Y; I. M& o! g
---------------------------------------
8 c7 {+ y! p( p
1 N9 s; E6 l; O: ~unit 一级牛俊;
5 p3 f" s: u7 X. n) j+ U) k# m
5 f, ?! P3 f+ a* dinterface
) @7 N% O! }* B9 [
% h6 h2 t4 T6 E$ e3 q) f& e* Ifunction  GetToken (aStr, aToken, aSep : String) : String;
2 n2 `* p) Z9 h8 e. Y4 A  y2 }function  CompareStr (aStr1, aStr2 : String) : Boolean;9 R! c8 E# N2 h# L1 N5 f- K! u
function  callfunc (aText: string): string;6 X% `  h9 U, f& @9 l
procedure print (aText: string);0 @0 X( s/ y  T2 u  |4 J" D' D
function  Random (aScope: integer): integer;
- h2 i0 ~5 K  `1 }! _% lfunction  Length (aText: string): integer;5 t+ ?6 j! F# W; _: W
procedure Inc (aInt: integer);
& v) L, o1 F+ L& a& n4 Qprocedure Dec (aInt: integer);
3 W! ]0 v. Y/ P1 Y0 H- |function  StrToInt (astr: string): integer;
! L$ ?, Y% I9 n' p( j- f6 s% Qfunction  IntToStr (aInt: integer): string;
4 o, P6 Y, X2 r7 \, j# N$ Oprocedure exit;
9 O! Z% k6 T* p* l) ~7 Y- q$ p$ h  \) g4 \( i5 ?/ C; U; L
procedure OnCreate (aStr : String);& j3 }+ \) |/ L  C9 ~  r# y# {. v
procedure OnDie (aStr : String);
) v% J- L% v0 `- _) kprocedure OnChangeState (aStr : String);$ V4 x9 L3 L* p( M( @. h  I
procedure OnGetResult (aStr : String);6 [! R* m$ ~  t7 D9 \" s
' u: ]# i& E- o* A: q$ T+ z! S& m4 B
implementation$ Z) [( I$ r7 J
. S  |% e9 r* @: R- ?
procedure OnGetResult (aStr : String);
) `9 _" q( }  I: X- l% P1 Q9 cvar
! |" V* B% q, j: v0 _' ]4 K. H   Str, Name : String;
! \2 s& {0 i0 |5 c5 @1 G   iCount : Integer;. u$ k. f$ c8 K
begin
  Z( t& p! \0 o   if aStr = 'start' then begin  Y& f; M% R; p0 z; u1 b, c
      Str := callfunc ('getsenderserverid');" r/ H6 W! k2 D7 V4 z. S' A; F
      if Str <> '52' then exit;4 R- e3 k/ @0 O( n1 ?! v1 w

5 @- Z, k  D2 R0 ]      Str := callfunc ('getsenderrace');
3 T3 a  v. d2 K( G1 s' G      if Str <> '1' then exit;
! W0 N7 V& |4 b( G
* z$ h+ K% a) O% A( M      Str := callfunc ('checksenderpowerwearitem');
  A- z# ]2 ~4 v# Z( t; T      iCount := StrToInt (Str);
' q  s5 {! j* z: ?- B! t1 O      if iCount > 0 then begin  [, x, Z* m" M) Z
         print ('say 请先脱掉带技能值的装备!');
" ^, S5 C2 o4 T: E/ Q         Name := callfunc ('getsendername');
: |, t, ~9 [) C3 _( f         Str := 'movespace ' + Name;" ]$ s  l+ E+ U% ]7 m) j
         Str := Str + ' user 49 106 55 100';
2 Y; M, J1 v- L5 n* r6 V* L5 h% |         print (Str);
) N8 s4 P$ B, U         exit;
4 c7 L1 l( m3 l( i9 |      end;: o' C' \+ ]- @9 T. }. b' K
      Str := callfunc ('checksendercurusemagic 0');
' s% p1 m; V1 s( E( Q3 {      if Str = 'true' then begin! a( F. S9 G' d  W5 r, I: j
         print ('say 选错武功了!');3 f8 R5 M7 q; j3 C# T
         Name := callfunc ('getsendername');
4 M. o; z. \+ c: Y0 H9 `4 l. W         Str := 'movespace ' + Name;
! z( f  x5 [- B         Str := Str + ' user 49 106 55 100';
% F$ |7 L# m, @8 U1 @4 H         print (Str);
5 b! g$ A' C5 q& L* j         exit;
) E0 d6 m, @. o" H0 h1 c      end;
) j/ S  L9 y8 r2 o8 v      Str := callfunc ('checksendercurusemagic 1');
) b' K: [, h% k9 b      if Str = 'true' then begin
+ {* ~/ `) P$ c, V1 W         print ('say 选错武功了!');* _) M8 A( @& y& m/ W/ Q% Y$ C3 f
         Name := callfunc ('getsendername');
1 j( c% J9 Z2 l2 }# d5 J8 d5 u3 @: L         Str := 'movespace ' + Name;
' h, B+ \/ M5 U9 T0 u9 ~2 z         Str := Str + ' user 49 106 55 100';- j1 u6 `6 E  {& X# C3 U* `
         print (Str);1 z# ?, d8 [/ U' U  v6 R4 }
         exit;0 [- U* C! d8 v, Q2 k
      end;
. e5 B$ a  B  m1 Y/ `; z+ j3 A% @! V
      print ('directmovespace 一级牛俊 npc 52 20 18 0');: N# h' `* d  W' U
5 S: V4 ?8 c1 o+ }
      print ('commandicebyname 一级牛俊 npc 500');
! [' j7 L: l& I, e9 R$ k      print ('setallowhitbytick true 500');      # n% F# U* ]; u6 l& T
4 b) k5 F$ |& q: ]5 a+ g' t
      Name := callfunc ('getsendername');
! w7 t& Z# v) E+ c1 o      Str := 'commandicebyname ' + Name;
9 D( M; e* b/ q# [  U$ j      Str := Str + ' user 500';
- D7 [6 F! ~; |' j      print (Str);
' x$ M% @6 Y$ z2 n4 r8 \  T/ f0 d; V4 w0 _, c( n2 [% K2 a
      print ('senderrefill');+ @* C/ Q, w8 g! S- A

2 r# F, t" ~, g; T6 F$ z      print ('say 10如果10秒内不能将你搞定 50');
( Q8 F) G6 y& U4 |; ^      print ('say 就算我输! 400');3 q# Y9 n8 r& @
      exit;
" ?6 T+ `$ P8 U1 M; l9 j  G" f   end;9 B: z% |7 q1 ]7 R( t3 t, i7 M
end;& y8 y8 D! W+ |* |

7 `! U( C6 I3 \5 I; @3 L5 H5 Bprocedure OnCreate (aStr : String);
8 {7 j! H/ v9 d8 n! Lvar5 \/ u. k( X* C/ {- \2 F- r
   Str : String;- V$ ^: F# e1 e! Q4 k3 c! x
begin# P& B% T& n+ u- G1 S6 W& `
   Str := callfunc ('getsenderrace');
9 l9 q2 R% }3 x# K& ^   if Str <> '1' then begin
8 J8 O* o  M7 p! g  d$ w- U( V      exit;& M/ R0 `0 n1 n, T1 y; s9 M
   end;
' C3 n* `! W: S4 E, D) B/ r, N
; O2 H, v6 v: g" R* I( t   Str := 'showwindow .\help\一级牛俊.txt 1';; x( [" N- b$ h0 |1 d: T: P
   print (Str);
: u) h& {) q/ D0 x* x. E6 f9 s7 S   exit;
7 A$ p+ C, ~0 J2 t9 C# nend;. |/ f: G' L+ L! S  l  y

2 ~' j0 n7 f# t$ f% Nprocedure OnDie (aStr : String);
7 A$ }+ r. b0 W9 }% Rvar" i- v7 R: C% {2 m* r
   Str, Name : String;
3 x# H9 H3 C& A8 C9 B   FirstQuest : Integer;   - l3 s/ I4 N3 H$ c/ m# N
begin: l0 Z2 i# t6 H3 y, Z: ~" u4 s0 I" a
   Str := callfunc ('getsenderrace');, z0 q  s9 v' w- K( J
   if Str <> '1' then exit;
% g- J% A* |  `" R$ B
8 _" p& E2 |/ U# a6 t( k7 h   Str := callfunc ('getsenderfirstquest');
3 A; F! i# X% v7 V: c   FirstQuest := StrToInt (Str);& S: j- v2 f2 p8 f5 ^) Q, F
! k/ H/ b3 v3 ~7 `5 z1 L
   if FirstQuest < 4 then begin" p; {# A/ f6 \5 g$ }$ ]4 W6 C
      Str := callfunc ('checkenoughspace');
% n9 d" u- W& s0 N8 F      if Str = 'false' then begin+ q% Q! H( z' n% G' `
         print ('say 物品栏已满...');
# ~( D1 d2 e# e) g$ D: M" k  p         exit;
, ]# [) ^0 {/ k- E: G      end;; j  A" g! D+ p/ K& Z/ k

' ?4 L" o- E( @  {5 n5 C. o      print ('changesenderfirstquest 4');* o3 q9 E3 [- _# u$ L0 C  O
      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');
: K, M( W4 m8 j4 K" R   end;
) Z; E) V" i) |. Q) Q/ Y* b  W5 S  }% D* W( [2 ?
   print ('say 什么_不敢相信!! 100');
, ]& L! p+ e  V; b5 c6 p  R& N6 S$ E$ A3 z9 ^+ ]0 }& n
   print ('mapregen 53');0 T9 Q' }4 ~6 U3 Z8 ?
5 [/ B2 u: n) Q4 c
   Name := callfunc ('getsendername');
% b* z& Y9 v- `, M$ m% `: c: `) w  w: s   Str := 'movespace ' + Name;- o, e. O- t: K0 |9 ]
   Str := Str + ' user 53 17 18 500';
% Q, T# u% U1 _1 E   print (Str);7 B( C4 \6 Q  P0 [" u
end;* Q$ G% k; |1 U' |1 U* I5 x# Q' {

' M- Q  |9 V% m; Qprocedure OnChangeState (aStr : String);7 M+ v' k: f% F
var; Z, }) m2 u' g$ o, j7 B
   Str, Name : String;5 G, p* V$ b5 ^6 d( L
begin
# e+ m0 B0 `' B! ~   if aStr <> 'die' then exit;
: I  o( b$ u3 z; @; a% J" e& D' K: E' h2 |2 S! t
   Str := callfunc ('getsenderrace');6 o3 C& }* y/ @$ L+ B
   if Str <> '1' then exit;
1 ~! t- O. m0 U- \0 ?* G. ?+ }2 |; T/ x( n+ H: C, ~4 c
   print ('say 领教了吧! 50');# ?; [* {1 m' {. v4 B) c9 z: ]  d# F$ G
   print ('say 差远了... 400');* A, c  \1 s- b$ z, i: F8 `6 N; j% B& Z

; D1 Y5 w  ?0 l( v8 b   Name := callfunc ('getsendername');0 v: x  H) l& ~( {  P" s9 H' |
   Str := 'movespace ' + Name;) O6 f! a6 \1 q+ c0 J
   Str := Str + ' user 49 106 55 600';, |5 s  U4 d/ E. h
   print (Str);" z4 V2 Q& g1 ?! c1 v
end;
$ J& z0 W4 ?7 q& v- w9 b# g" [4 h, B( T; _7 M5 R/ C0 a- w
end.
, R5 S, j4 J+ Q/ o5 ]. M----------------------------------------; x- y- Q/ L6 @- {2 F! g
unit 一级雨中客;
) r/ f, n  W& }; n) |6 S* o  M# l/ n  b! R* S1 A4 h
interface
# ^- {8 W8 j' C) Q* j! r# y# A( I- x& w" E7 r) @1 z& P/ o! M* |% B& i
function  GetToken (aStr, aToken, aSep : String) : String;6 c' a- W1 x$ O1 S
function  CompareStr (aStr1, aStr2 : String) : Boolean;; g0 z' `! b5 [
function  callfunc (aText: string): string;
% C) V0 R! |" I7 ^procedure print (aText: string);
- ]( }# v/ {# ]; ~function  Random (aScope: integer): integer;8 C- \5 R! E/ I
function  Length (aText: string): integer;( {! c" ?" j, H* u: P* o
procedure Inc (aInt: integer);
1 n. `+ M' a8 a; Cprocedure Dec (aInt: integer);, L% `/ S7 y5 `: a
function  StrToInt (astr: string): integer;. c  G( q; T, V* V( y# l
function  IntToStr (aInt: integer): string;
: `5 m& W9 Z$ I' b6 t! ^+ `procedure exit;. `, E6 h# d4 S6 n% d
9 k& D% x+ y) O, c' X" q. \
procedure OnCreate (aStr : String);
' ]# ^) r! O4 K( P9 Rprocedure OnDie (aStr : String);6 q! s! ?$ Q3 M! d
procedure OnChangeState (aStr : String);) V7 ]$ S& E% ~
procedure OnGetResult (aStr : String);
. S, T: u  B- O- [( u" m7 Y% \# ?4 ?$ _5 r. ~6 P
implementation9 w, E5 M- C, u& ^& B

' h/ m" ~* E& j1 Fprocedure OnGetResult (aStr : String);) Z$ P/ H% P" _" L: R3 t- A
var
+ j/ T- V! z* H7 z; s   Str, Name : String;
, G& H9 ]9 w! ?- L. x& Z7 V   iCount : Integer;6 Q" i  z  R, ?: B! i. g
begin
& y. @1 b9 z; J5 D9 [5 o& m; C   if aStr = 'start' then begin
. @4 G7 k: {2 P$ E/ _. I; Z      Str := callfunc ('getsenderserverid');
8 G: I4 O/ X, V6 v( _      if Str <> '53' then exit;
$ q6 A, L" k: J6 L  P
" m) }. X  L) q3 [4 ?# I9 H      Str := callfunc ('getsenderrace');
( y) {8 W0 D* r9 s      if Str <> '1' then exit;
: c0 Q  X& w  u4 b0 U! w
$ U9 q6 {! d" r# J6 x, g1 j: l      Str := callfunc ('checksenderpowerwearitem');  Y% x4 m7 W, A& i( b
      iCount := StrToInt (Str);
+ F0 p' g* _1 p9 h. G7 c      if iCount > 0 then begin3 s! e  v1 e# k0 N( s- b$ x
         print ('say 请先脱掉带技能值的装备!');$ Q+ i5 _1 u. }
         Name := callfunc ('getsendername');
$ u/ x1 V/ `' \/ B         Str := 'movespace ' + Name;+ a( G6 R0 `9 ?5 e  [  r2 o
         Str := Str + ' user 49 106 55 100';
7 [/ z* s9 C9 R0 l& d         print (Str);7 f7 X( F4 a4 b# G  W- q& O
         exit;
! U% K: K* O" o5 W- L      end;
- W. x* H! {7 z( n) U      Str := callfunc ('checksendercurusemagic 0');% i0 |) B% S$ U( \! \( l! u8 y, {9 B
      if Str = 'true' then begin
7 z5 |; K, f6 L6 Q# p         print ('say 选错武功了!');3 x7 A6 o9 \0 K4 J8 ?0 ]
         Name := callfunc ('getsendername');- ?. B& ]0 h6 F1 x3 ]2 d6 F
         Str := 'movespace ' + Name;
+ J% L9 G5 G1 R9 l. S8 I         Str := Str + ' user 49 106 55 100';
" }. S9 }3 Y3 H, [         print (Str);1 M9 i+ M% i$ p( L
         exit;
. _! ]( F% ]3 [/ X      end;
$ ^: b) s  W" @- X. X2 c& H      Str := callfunc ('checksendercurusemagic 1');0 |$ m! L- K6 W3 e* a: S% M
      if Str = 'true' then begin
# Y4 @: v- I3 a* r. {4 l) u/ }         print ('say 选错武功了!');
# |" v5 N! Q/ o  S$ C         Name := callfunc ('getsendername');  r$ j2 |$ ?7 |2 _0 |
         Str := 'movespace ' + Name;
' Q  ]( H+ D1 G- h7 b         Str := Str + ' user 49 106 55 100';5 _; o% o6 s* @& u4 |  V1 g
         print (Str);
" r( a! F* y# I4 @3 z         exit;
- u) @" h# c$ P, X1 T      end;# `) h: O1 [* g( ]+ ]2 A, x, i) K

& v: S% T) E  U( e6 ?% Q      print ('directmovespace 一级雨中客 npc 53 20 18 0');
; b  q9 X- X* S9 V1 A- x8 _7 h- r9 K, v, V& i
      print ('commandicebyname 一级雨中客 npc 500');
4 m. u' Y2 O0 ^% b0 v/ S      print ('setallowhitbytick true 500');      
0 a5 Y' m3 d& x% I. t3 L
+ B: V1 W, c+ a" L  b* Y0 Z; b      Name := callfunc ('getsendername');8 z2 n/ {1 Y; m! z' ?
      Str := 'commandicebyname ' + Name;
! A! u0 {! f, m: ?# S& @      Str := Str + ' user 500';
0 r+ h4 k* `/ L      print (Str);+ S% x4 [5 b7 ?: C4 v

8 a- y. l5 N/ M" |      print ('senderrefill');0 b6 W8 |% h) A/ K

, f6 ?/ e# ?; a      print ('say 领教了 50');) q+ Z/ [; J2 x0 H+ j  H/ z
      print ('say 开始吧 400');! ~$ G# k' {0 \; i( d, C& u
      exit;% V+ F$ l- ?" e: L) k2 @' d
   end;3 S* T3 I) {. T
end;
+ b) x) N3 i4 a& L7 U# J" \8 B
  p, j3 C" {) U3 |procedure OnCreate (aStr : String);
  G: }! C' |! P9 X/ a# o) rvar3 w, e  x/ U. u- t/ p& f: y
   Str : String;
9 R9 a- D. Q0 _; E3 b7 ?begin
9 f) U0 Y) P- w" N7 {3 o   Str := callfunc ('getsenderrace');
! h( L; f, z: a. ?% D" h9 |   if Str <> '1' then begin
+ W: t* {! Z2 I4 i, R      exit;& U& w$ i9 `& c( _, d2 N
   end;. u$ b& K% _! H! y- H

5 w- b3 G' j1 r: E' @" N8 N   Str := 'showwindow .\help\一级雨中客.txt 1';+ J, @1 i: \5 M) z8 h! c
   print (Str);
) ?& V/ P0 S6 x: p4 P; {6 B   exit;
) f6 z. l$ \, e# Xend;/ F) X/ {/ ~, {" \" g2 M5 L% d

% w# I1 J- n1 rprocedure OnDie (aStr : String);) M0 a( s* x" }8 U- q
var  m. ~; W  W- `2 X3 _3 r8 Y
   Str, Name : String;
' q, N4 C+ }5 }4 l5 T   FirstQuest : Integer;9 I( Z; {: [* a0 {- \! e
begin: N+ ^' Z' t) T7 z- s
   Str := callfunc ('getsenderrace');* Y. H) V0 j/ P% m
   if Str <> '1' then exit;, V1 {6 d. B; u; H& Z) `
5 ^0 }, U' M5 L. l) @+ f0 \
   Str := callfunc ('getsenderfirstquest');
2 b) l+ K, k/ C+ [! t& x   FirstQuest := StrToInt (Str);" O) [8 s/ f' @3 K

- T$ s8 M3 M1 A: [7 x. T" c$ ^   if FirstQuest < 5 then begin
& A9 r9 q) c0 |9 z( R- ?+ o      Str := callfunc ('checkenoughspace');6 @% Q8 e+ _! G! i
      if Str = 'false' then begin  w: d' ]' x0 \; A& g1 W
         print ('say 物品栏已满...');8 W6 K4 y- ?6 N/ l
         exit;
% W' b; o/ q: \5 A4 z7 d( h      end;
: y! a' f/ J* l+ j6 l" J/ S! p9 t0 J; r2 c9 }/ J7 f
      print ('changesenderfirstquest 5');
5 N% V6 ?: j) y2 F" Y7 K3 M      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');
' U* j! {& n0 N  u; `- B   end;
8 R# s* H; P5 q0 F$ Z! O; r) Y9 j4 n; W7 p
   print ('say 早料到了_佩服 100');% W. l; N' M* @& j

  p; u. ~9 A# P3 K7 j   print ('mapregen 54');$ U" j' w& C3 R4 f* K

6 ~  q. m& y: ^5 R+ T, G+ J8 D   Name := callfunc ('getsendername');; B8 V; D9 T1 }$ n. }8 S/ `! G5 o
   Str := 'movespace ' + Name;2 V9 @$ B6 @3 G' G& b
   Str := Str + ' user 54 17 18 500';
3 u0 K/ W0 e! i# ?: g; {/ f   print (Str);
; p0 I$ J7 G8 [' B; A; L9 z( bend;, }" o1 \6 ?! K/ w
  }; H1 f+ r/ u& ]! C2 b" A: I
procedure OnChangeState (aStr : String);; {, ]3 {4 f" P2 t/ J2 U( H/ b
var1 b3 Q) A3 C8 R* k0 v
   Str, Name : String;
; |$ c5 I) k8 U/ N, S  |! x6 m! kbegin/ D3 m6 ]6 H: f2 T+ V: Q* N
   if aStr <> 'die' then exit;. H: [" F, v: u3 e1 q9 P

9 m" I& D& r( t   Str := callfunc ('getsenderrace');
* }0 i! _% _; s  U   if Str <> '1' then exit;3 q  p3 v5 F6 ^8 \; J

/ H- j2 @! t* O; U5 `1 l   print ('say 不错。只要能维持几秒钟');
; Q$ o2 O) O0 t5 q! b; a   print ('say 到那时谁都不是你的对手 400');
: I, ?0 y" p8 [4 [3 I( k5 O2 n/ Q7 i4 S4 u, Q/ n9 r
   Name := callfunc ('getsendername');- V( Q: V3 S; R
   Str := 'movespace ' + Name;1 X: o2 K& T5 C& X
   Str := Str + ' user 49 106 55 600';1 m* J, c9 x, [% ^" {0 Z( U
   print (Str);
$ D! w5 D, j6 nend;: A* }3 I# O% S

9 |* c3 z6 C3 C- j0 \end.: a1 j2 t1 j* l, w0 K9 [

% x8 f1 T8 u4 |7 O--------------------------------------------------------------------------------------------------------------
& W' ?- C  o* B  N+ b: O0 h1 {8 r9 ?! ]: L3 }5 g
unit 一级老侠客;1 w( {9 l3 |5 h6 _  ?
- t/ b; o) ^% W! f
interface
9 r! W& W8 @: P% m" O
! h; G$ d/ v# s& x+ [2 D9 d* B, gfunction  GetToken (aStr, aToken, aSep : String) : String;
9 j: M6 x+ I+ }0 n; y4 \: A2 vfunction  CompareStr (aStr1, aStr2 : String) : Boolean;9 m: f' \' j& j2 g! @! b& v
function  callfunc (aText: string): string;
0 ^. Q4 f6 F% I4 {3 r$ W9 ?$ j( mprocedure print (aText: string);
& z: t3 m5 h" l) B; ]' _function  Random (aScope: integer): integer;
1 s" D4 w% l$ T& P5 k$ k0 n' |function  Length (aText: string): integer;
0 ^, _$ F* [5 {9 o* jprocedure Inc (aInt: integer);
0 ~1 h$ [8 B  S% M% C: \. X2 N7 W9 Aprocedure Dec (aInt: integer);5 y4 j" z* @: m8 c
function  StrToInt (astr: string): integer;
2 ^: N4 m1 ?8 jfunction  IntToStr (aInt: integer): string;
  z* {0 R$ f/ O; B8 l+ M' S4 @$ F& Vprocedure exit;
- r) I  n  w2 K& V" Z! ?! i" s. b  s& Y
procedure OnCreate (aStr : String);6 d* R$ @; w# E$ F) R
procedure OnDie (aStr : String);1 g2 P( t5 f( b$ d5 D
procedure OnChangeState (aStr : String);
( Y8 Z$ ^. _  l$ l; k2 wprocedure OnGetResult (aStr : String);: [; g$ N: B' j- b4 ~  X
* |2 ^: J$ o5 [  n7 R% Q$ S
implementation: Z# r. \2 r4 Z& ]" u" e5 U

0 ^: V' k6 z- v9 ?- Tprocedure OnGetResult (aStr : String);9 j  c( h8 @4 @) z& {; \
var, y, p; j( K9 @) U" ~7 D/ l* ^9 h5 o6 Q
   Str, Name : String;
. E& e' p0 _$ n   iCount : Integer;     e7 f+ H  {9 _" Z+ K5 S
begin6 ]! J& a. x7 D0 ^% p
   if aStr = 'start' then begin
: y! g0 N+ G& _! ~, L4 d; E      Str := callfunc ('getsenderserverid');% W3 S4 ], f: V/ r8 H! H5 R
      if Str <> '54' then exit;
' p* F$ N6 [( a$ {0 \8 ?, D/ D- t" x  o# a
      Str := callfunc ('getsenderrace');
" y$ W9 v* y) O/ E+ L& ^2 I      if Str <> '1' then exit;7 |. G8 i; Z) V/ _2 \

, H& H' B: }, Q2 `2 S      Str := callfunc ('checksenderpowerwearitem');
& X% d1 x: C5 ^; E- a+ o4 ^4 G      iCount := StrToInt (Str);7 S$ F  R) H9 N; \' j
      if iCount > 0 then begin
) ~6 t$ e* \9 K         print ('say 请先脱掉带技能值的装备!');) Q4 ~) y/ Q& |/ l, r4 \# w
         Name := callfunc ('getsendername');
6 M# a$ t1 l" d* p. o$ n  G+ |         Str := 'movespace ' + Name;4 k) @7 g: `! y9 k
         Str := Str + ' user 49 106 55 100';1 }5 e/ z! ^  B5 _8 L" T) l. I5 D3 `
         print (Str);# M8 x: E* ~+ ]  P( f
         exit;
- r3 u0 R5 W7 n$ @. p      end;& ~% _. N5 E) R. U5 [, H& {$ x" H
      Str := callfunc ('checksendercurusemagic 0');
1 T5 I. f" `* k) C. @) Q      if Str = 'true' then begin9 ~" T) E) d- i8 R7 H
         print ('say 选错武功了!');
* Z* M, J- ~. {: C4 B8 c         Name := callfunc ('getsendername');$ e0 f1 g' _8 ]& ?0 h
         Str := 'movespace ' + Name;0 R, M  W1 w: Q) M- Q- c
         Str := Str + ' user 49 106 55 100';9 L; w4 E( B1 s2 X& _1 \8 J  @! c( g
         print (Str);
9 S3 v" g% j+ M9 M         exit;$ `7 n& I$ B' \& O9 k
      end;0 ]5 ]8 M* H4 G; a( Y/ h
      Str := callfunc ('checksendercurusemagic 1');
* x4 D+ |$ l4 g9 ~' Z& P* _, @1 `      if Str = 'true' then begin
1 l. X3 j, }0 R1 Z, u9 z& m  S& l         print ('say 选错武功了!');
) r0 D+ |' |+ [" M. P# I         Name := callfunc ('getsendername');
( ?. k5 V: ~$ ]7 O8 U0 l         Str := 'movespace ' + Name;
1 f& W/ A! @2 Y" T         Str := Str + ' user 49 106 55 100';
. d- ?$ H# {( }: I         print (Str);
5 O' H# g9 b) d; n  e         exit;
. s, M& Q5 m9 r4 U1 m      end;& X# p$ I) d7 g: _% t. H

9 T9 I$ T. Q5 G* D      print ('directmovespace 一级老侠客 npc 54 20 18 0');
% X) s/ E5 o$ L' {. r0 c2 G* T) L3 y
7 P1 ]' F1 {- f      print ('commandicebyname 一级老侠客 npc 500');
2 L+ p* C  a, H) X  ?6 N' ^) A' O      print ('setallowhitbytick true 500');      5 g3 H5 Y; i$ b" M* s3 s
' B6 s, c7 i  G9 f1 k* N% k4 @
      Name := callfunc ('getsendername');+ M2 X. \! S0 D8 X- {
      Str := 'commandicebyname ' + Name;8 x" B1 X' V% `; [' j
      Str := Str + ' user 500';
. H! Q% D# L2 @$ m      print (Str);% t, ^6 }0 O. |* A7 l

) O5 y* e/ }  B# H5 k9 g5 Q, Q7 y      print ('senderrefill');
/ D, b2 X( r* H" Q8 P' B: a# g2 l) [- [$ p* U, y1 s: g
      print ('say 如果你实在想比 50');# ?  z: J; [0 X, @0 M% ?
      print ('say 我将奉陪到底 400');# o* W+ O- A& ^
      exit;
& k# }1 F. o7 F# e" `$ _! z: `& ^   end;8 c; q; v# }' P5 g, F4 X1 O- {% J
end;
1 w+ Q( w3 l$ c. f. ]+ T1 r+ N
2 b2 \1 Q% ^) m* [  V7 Rprocedure OnCreate (aStr : String);* Q6 d% T- E  K5 @$ r2 M+ l
var
7 Y4 E7 p. L5 H. H1 ?   Str : String;: M, X* b) U9 i! s* h# M% }, y
begin4 A% k: d) \' E& w' ?3 K# E6 _+ Q
   Str := callfunc ('getsenderrace');4 s" u1 n' U1 c0 w  j
   if Str <> '1' then begin! m3 X- u5 O' l; X8 B
      exit;4 U( I- n$ ]7 B5 T8 o, r2 V
   end;
* d/ }, w# _$ Z+ h% B  {! L0 D0 X$ P5 d$ b
   Str := 'showwindow .\help\一级老侠客.txt 1';7 e4 m1 h% h& }
   print (Str);- m( G6 i9 P9 w+ d, I/ v! R+ m  [
   exit;
8 @4 o8 q" ]8 v4 Send;
8 J, B0 B1 `8 s: `/ n  v  m
9 v3 s- j& }* A9 s+ V$ @procedure OnDie (aStr : String);+ _5 b3 J1 X$ ~2 ?, a! i! b
var7 d+ A: h, ~" U6 c/ h- H3 X
   Str, Name : String;
3 U1 I* X, N% y# W/ s4 W   n, FirstQuest : Integer;   
- _& l# h" F  v( \1 P3 [1 Pbegin
2 h6 I& |" N* W+ z& J' L   Str := callfunc ('getsenderrace');
) r- D0 b: a- ~0 _, p' Z3 N0 N4 n   if Str <> '1' then exit;
0 [8 {. O: F/ ~, y  T* _* V/ [
7 }5 g: z; H/ c   Str := callfunc ('getsenderfirstquest');
. C3 k7 L* B+ ]* i% |- y   FirstQuest := StrToInt (Str);* q( ~9 y0 Q! W
1 h" S& _* O1 t- H0 H# l$ u8 r
   Name := callfunc ('getsendername');
2 Y2 x. z7 i9 R1 L/ i8 H* x
$ \6 Q! G) r+ C* t8 E   if FirstQuest < 6 then begin& R( [. a: P; L* u6 F
      Str := 'sendsendertopmsg ' + Name;
5 d0 p" H# \# w) K  `      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';& B6 r! T6 ~9 j$ m
      print (Str);
) \3 g! D* @3 e. i: J9 e4 l) U- a
      Str := callfunc ('checkenoughspace');$ x# V4 b/ `& L& L
      if Str = 'false' then begin: o; ?& P* H' @! t6 [
         print ('say 物品栏已满...');) W# i3 V/ U! @" ?# X
         exit;& T% n# ^5 B$ z6 s$ g
      end;& Y: a$ f( n3 z/ {* I( @/ S

  j* r" s. Z3 u      print ('changesenderfirstquest 6');/ ^" p  H, T1 r0 j4 b& a9 {
' V2 X# {) C/ q/ q
      Str := callfunc ('getsendersex');( s! z* d- |$ R9 p, ^9 i/ s& N1 T
      n := StrToInt (Str);$ r8 Y9 j' {& ]+ _6 u' |/ S6 P
      if n = 1 then begin
' V( W! F# r& j9 P         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');* ]. F) k( _- Y1 r( K& e- e: D7 l
      end;
# L! N3 X. n' }5 b; }- m      if n = 2 then begin7 }; d9 ]/ M7 a% b3 u
         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');3 h! E, Y) e5 b2 ?3 G% B
      end;
- g8 `$ x3 ]2 X6 e7 E# \7 r1 |         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');. p" I$ j7 [: P. R
   end;
8 n- [6 U; k# l5 j' X! [
  X) E5 v" S/ ^9 r  ?* ?+ C   print ('say 佩服_佩服 100');, ~5 e0 @4 D+ ~0 N) x/ k( y1 i

) ^+ {1 `3 z/ u. [   Str := 'movespace ' + Name;0 m8 `5 y+ O3 Y- U" X; ]
   Str := Str + ' user 49 25 35 500';
6 z) N, g% F4 K- v/ E) T, [4 K   print (Str);
- i) R) k  N7 `( g+ @/ S6 yend;
7 l% Y4 h( @  K$ {9 X1 D- u2 g4 w% w7 n5 C9 P
procedure OnChangeState (aStr : String);) O3 u# o- N% U% g, N! ~
var
8 I0 }) Y! k" C8 b: f4 S0 L/ u( Z   Str, Name : String;
0 g( R# |; j, I' e% J4 Xbegin: f4 D5 ^3 }% m/ ~* g
   if aStr <> 'die' then exit;
* W+ R% F% u7 I+ F; k7 {9 z% @6 z7 |
   Str := callfunc ('getsenderrace');
1 B+ a) r# r5 K' A3 \1 p. r   if Str <> '1' then exit;( d1 \. ]9 Y: [. l' i

" `. K3 t1 n# k, D  P3 z( e2 G   print ('say 小小年纪_就有如此高深的武功 50');
( b  ~" x$ Z7 _4 [   print ('say 日后要继续修炼... 400');
7 ?) h- L: m# c2 P0 M; {
& _/ v( V$ K6 @* `, P& y9 w1 ^   Name := callfunc ('getsendername');/ _" E( L6 w0 `, ~. k
   Str := 'movespace ' + Name;0 n- h: W, y9 C! t3 N0 s) B6 f
   Str := Str + ' user 49 106 55 600';& U" J+ p: ?' B# O! I# P0 d4 F3 ?
   print (Str);
# c# k9 _' u1 [. F, W- m5 qend;
5 T* T2 {0 d& A. a: A# X4 |2 C& _6 n0 k$ B8 Z+ D
end./ l/ K9 j8 D( _5 x8 x
! n$ j7 w6 d( [; @' E7 b0 G
-------------------------------------: ?' f2 q- d. @  z# r
+ W, a0 d* k+ s. R
*************************************& b1 q, g/ X9 b8 q* u- o
/ p: B' `; W" y0 P7 t8 j8 Y" v
奖励物品代码:. @* J; @! V- z/ ~; U" D% `
8 W5 O8 d+ n' C- r9 z
*************************************- P! S4 R  f' d/ Q

/ T. \( w# v1 \) g7 U男子侠客弓服,男子侠客弓服,24,新手村擂台战利
4 M1 I4 g' E% ?
2 c- D  F" ?9 `品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
2 [' y) j5 Y1 X9 Y! i4 {  Q2 Z7 b9 d. q* }: o
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,# ]  y# B; U  W# A! G- h+ L
女子侠客弓服,女子侠客弓服,24,新手村擂台战利
; ^& a6 L/ D; f4 k7 D3 H6 C* `) _1 o
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,103 p  Y- b# h- I

$ I, Y: h$ c6 E8 C0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,2 o$ l& g: j* Y2 O
新手训练拳套,新手训练拳套,6,新手村擂台战利0 n! ?0 H) t2 r3 g9 w. l4 N- B& i8 T" ~

2 L8 O0 d# B7 f# ^品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
) K# S0 k! X* U# T+ \2 L+ ^4 e4 I6 g8 B$ C  B8 X
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
& ?# c; Y- {) e* L$ d% P9 U. ]新手训练神剑,新手训练神剑,6,新手村擂台战利) {7 A2 \5 d) E' ^0 L( x: _
) c/ p' E7 W' g- Z% ^
品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,' j3 E  U2 O7 G3 l

# ?3 Z. Y0 q0 ]) ?,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,+ E; y2 o/ ~4 d/ T1 y: ?
新手训练弯刀,新手训练弯刀,6,新手村擂台战利& l; V  i3 d, D2 c$ W' x
! o) X( ?/ n; U. Z- h' j# e
品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,. T% [+ }  n4 I& r) p( e! q% K
: I0 W3 y+ A: N. B0 H
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,," H" _1 ?1 \1 y, v, C0 i( f
新手训练长矛,新手训练长矛,6,新手村擂台战利  D/ j' Z# P$ U. ^. P- n+ h
/ B5 [+ F$ Q* t' `
品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,$ q' L) U6 q6 Y+ x
, a0 z( K' p9 d7 r9 }3 F( U8 ?- E
,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,3 E6 P! `, e4 G4 m
新手训练大斧,新手训练大斧,6,新手村擂台战利
' {9 F% m4 @9 B9 K3 }8 }% O) ^7 g3 q: I0 E4 t' e# `3 h3 x1 {
品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,: ~; V- b# u$ a) J
0 o; N5 I; u  B. f( _
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
9 N- M) ?  j& k' u9 @7 [
- V, x( V& L' x) n+ W( E******************************************& C* p1 l, ~* V# T( Y# f
; z0 ^' D7 n4 {$ C6 a- q0 i

/ h6 c6 e+ y' ^% W5 ]




欢迎光临 三千论坛 (http://www.3000y.com.cn/) Powered by Discuz! X3.4