三千论坛

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

作者: 异仟年    时间: 2022-9-5 20:23
标题: 新手村擂台脚本
新手村擂台脚本
+ k* C3 ]7 m- ?& T% H6 [9 B3 v# i+ ?
" A7 t9 T7 M3 h) n
- V3 i& d# S9 Q$ l' R释放到同名文件夹下覆盖原有文件。4 t/ D, Z: W8 \
1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。3 N1 Z" u: a  w3 L3 v* m
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。: @! t( t# [. x
(由11月23号发布的最新服务端修改)
/ x5 b9 b, E( @1 x2 E. K0 l-----------------------------------------' V; G: h: I/ j+ @+ H/ S0 D
内容介绍:; V: Z7 i. T( d; G5 D  N  r; O1 l
新手村比武获得奖励:
# q% T1 L2 F; J/ i. I9 ^- Q同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0
) t- P) M1 Z; @  v( f. c. |9 e% M* p4 L! N
$ t$ ~! @2 D& \2 v. g6 o
最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较
2 x: }5 ?! I% ~' D$ O; J2 [
; K' n$ @9 B! p  U) U  K0 e, @1 o$ K喜欢黑龙,所以是黑龙的加强版!)
' v$ R3 ~+ ]( c1 f1 f$ W4 `  _/ C& u* t
[replyview]
, R& P, z$ Y4 F  {
% s$ q  N, l- l, H6 ~! `/ h. w-------------------------------------' K1 o  o" _2 l  C

$ y/ a0 [) [6 L# q' X8 t0 n+ munit 一级梅花夫人;
% S7 `; i, a8 ~+ t& K2 B1 @8 \& M* T' U. }/ H6 w
interface
- K) p; W8 f5 x7 h' |3 V9 O5 y) B. U0 [8 b" k
function  GetToken (aStr, aToken, aSep : String) : String;
0 f" q# z+ P$ F* q* ~5 Dfunction  CompareStr (aStr1, aStr2 : String) : Boolean;! \* Z+ s* b6 K% k
function  callfunc (aText: string): string;
+ n1 s* {; h2 M& c! Q( _procedure print (aText: string);
' l9 r- e: I0 P, H9 afunction  Random (aScope: integer): integer;, q/ `$ q4 Y2 D% m' D4 O( G6 ]
function  Length (aText: string): integer;9 p* |% r7 K! V. t0 \
procedure Inc (aInt: integer);
8 P7 {1 u$ U# ~9 B) Jprocedure Dec (aInt: integer);3 S' Q4 m/ N" K* @4 _. i/ f
function  StrToInt (astr: string): integer;( }" Y. N6 w3 D9 j
function  IntToStr (aInt: integer): string;. r9 W' I3 Y: k6 ?7 O
procedure exit;0 `) P- v7 h1 W" [: \+ w( q

( g1 s9 J. N& _1 N* \# R, N5 @procedure OnCreate (aStr : String);
) M. }, I5 t2 c" }& R. i2 `procedure OnDie (aStr : String);
% y$ X, W& q9 k* w6 h+ ^5 _procedure OnChangeState (aStr : String);& {% I, }1 c, O8 X
procedure OnGetResult (aStr : String);3 o) A7 \$ I+ E" L8 J

. {4 i7 Y" I% @/ b! j/ {1 zimplementation( m" K& z' Y, D+ `: E; e
  G* n6 |9 ~- ~; s/ b4 Z7 I3 o% H
procedure OnGetResult (aStr : String);
7 y; A/ C' k  u1 @1 Ovar
6 h/ ^! f+ [- d   Str, Name : String;, d7 o, n, n% I4 r! R7 A! A4 I
   iCount : Integer;; _& U/ j7 w0 D& W! p  o  l
begin
0 O' k+ o1 \+ n1 [/ Y" U1 d   if aStr = 'start' then begin
& I, A# Z9 o* ]      Str := callfunc ('getsenderserverid');: e9 @1 i& R- F
      if Str <> '51' then exit;! L1 E  z7 U) |; ~) u0 S

; Q0 s; S" v0 Q+ P7 d( p! ~      Str := callfunc ('getsenderrace');
. W+ p& E% @# j' r  V; D      if Str <> '1' then exit;( s: I: B- ?. Y0 j
* j! @- |# u3 L- z' q, H; F% ?
      Str := callfunc ('checksenderpowerwearitem');' p. W3 ~4 V0 U" Y* d$ `
      iCount := StrToInt (Str);
! H: U0 @  z( u3 l% y      if iCount > 0 then begin
: H! S$ W: h0 L! y1 f$ S         print ('say 先将带技能值装备脱掉!');
6 ~+ o+ \  u1 B         Name := callfunc ('getsendername');% d) z' A6 w  l0 }$ l4 Y
         Str := 'movespace ' + Name;
) |1 q: h) p- z; Z4 Q6 A         Str := Str + ' user 49 106 55 100';
! g0 w1 h/ _- x3 F         print (Str);
9 o9 Y0 h; q$ u! w         exit;0 l, |' M* G1 p" S0 s) @
      end;" J" v4 x3 J7 B
      Str := callfunc ('checksendercurusemagic 0');
3 u( K8 G7 @2 \      if Str = 'true' then begin5 d! e2 j1 f% P9 D3 Q
         print ('say 选错武功啦!');
0 b, r7 M, q' ?7 g         Name := callfunc ('getsendername');
5 r8 ^8 Z' Z. P2 P         Str := 'movespace ' + Name;8 D# M! @5 P# z4 z, B2 g
         Str := Str + ' user 49 106 55 100';$ j  v3 `% i. r& V6 Z  a7 p* n
         print (Str);6 d7 h( B- O! Y6 f- F
         exit;
2 |8 z) c+ f, L      end;, @, G7 }1 o6 B  y/ r' l
      Str := callfunc ('checksendercurusemagic 1');* p7 l7 |# ^2 X
      if Str = 'true' then begin0 Z% e( C2 H3 s
         print ('say 选错武功啦!');! _; J' o$ @$ ^! Y& [3 `3 B: d% U/ z+ Y: I
         Name := callfunc ('getsendername');5 o+ f% `+ [0 [7 {( b* k
         Str := 'movespace ' + Name;
; [# ?0 P  F- a" j4 n: S         Str := Str + ' user 49 106 55 100';9 o: g+ h% o9 ^2 }. V, a: u+ I
         print (Str);# n! ]# D$ u! S
         exit;
) s* ^4 x* L1 s/ S9 M2 w      end;" ?/ w1 f# s( Y3 `7 A8 k# ]# Q. ^

0 M: u9 o( F2 I' e& Y) F8 k      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');
- f1 p) ?6 H# G) r( V
* ~' d/ M) R/ ~) {      print ('commandicebyname 一级梅花夫人 npc 1000');
4 H- h, O  T+ E1 |% b      print ('setallowhitbytick true 1000');
$ Y4 ?6 X' H4 ^- z5 T* _0 N
3 l5 Q$ @; G* n5 u      Name := callfunc ('getsendername');
# y" c  w3 g6 @% ]9 W& }# A& e      Str := 'commandicebyname ' + Name;5 Y+ O" o( Q2 W: Z6 _3 K
      Str := Str + ' user 1000';, e$ l! F# c3 y' V- L
      print (Str);
- E! H' K* R# t6 R# |- a0 g' O2 q
      print ('senderrefill');# q; t/ h# m" w4 B
. @+ N" Q" ?( i" T! }
      print ('say 别害怕 50');! t% H4 l: a) H' K: o
      print ('say 我会收下留情的... 400');
* A3 [+ T5 Y- X# C' K) M+ `      exit;
- ^4 o; j( Y, b, P. k% M   end;9 |* p) b7 M: F- j
end;
% C4 F3 l' @! Y: S+ O) \3 z6 X+ E5 R/ T4 g" Y
procedure OnCreate (aStr : String);
- r9 b  r1 |* F3 Z" P" |, G4 yvar6 n$ n: L" H/ T6 q/ F2 C
   Str : String;3 a0 e' v; t/ J" N* Q3 m
begin
- \2 u& r1 K3 r. F! ?6 T   Str := callfunc ('getsenderrace');
7 t5 @8 S" r8 J& l6 U6 Q* q" c   if Str <> '1' then begin  S" f7 n, A( G, y9 a+ P7 d
      exit;% e' \' g2 r9 g
   end;9 w9 v" l3 E& H& J; h' ]
7 u9 @1 a4 a% n" x$ t4 V
   Str := 'showwindow .\help\一级梅花夫人.txt 1';
! E. c- g6 `6 k1 _4 n   print (Str);
4 _- j! E- [5 E* x/ M/ E9 a   exit;3 ]4 v9 t! c7 m4 ^: G1 n* p+ i
end;: F$ j! G$ [. O, b. U" F: d
* i  E7 e5 G0 u( C  b- w
procedure OnDie (aStr : String);3 f/ h. m- a: Z3 ^1 X& j0 v; n& n' J
var
; R) b" a7 s, C6 O. y' M5 C+ c* P! g   Str, Name : String;
! @" m  ]  A/ ?8 L/ u9 B: S3 V3 s; O   FirstQuest : Integer;   
8 Y1 n0 h9 m% Cbegin" R5 v/ V, H# P. Z6 M
   Str := callfunc ('getsenderrace');6 K: D/ w) K0 [# C2 J
   if Str <> '1' then exit;
0 [+ i/ V: C! E2 v! N1 W- o+ {# X  S
   Str := callfunc ('getsenderfirstquest');! Q* G0 E; |" v
   FirstQuest := StrToInt (Str);
3 o; Y4 `& Q* ^
- l0 T& B# Q" Y& [   if FirstQuest < 3 then begin9 ~; `5 N' |5 [0 X# _! n( w
      Str := callfunc ('checkenoughspace');
. {" x2 Q, Y: b9 ~- q( a" y      if Str = 'false' then begin( w4 J" J$ ^5 m& ^. T9 z
         print ('say 物品栏已满...');
+ K" C" B( `/ u         exit;
0 f1 O& w1 Z7 S& V4 R6 B% q( n      end;
) y2 M3 ^! D, G: K8 g* Y! y% d( d* H, k# X5 t' h5 A: G
      print ('changesenderfirstquest 3');3 @3 i( r& m' z0 Y5 k" |: Y7 V; i
      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');
' L2 z; r8 l+ G0 {4 ~; O   end;. F3 B2 `$ A1 A$ g

6 l# M5 `: l/ D0 Y   print ('say 我可只用了3层功力哟 100');! F+ Z# {5 g( y
5 n9 q& Z, h3 T) h8 {8 Y
   print ('mapregen 52');% v7 ^: n1 v9 n* Q
4 c1 Z0 w& k, z3 x
   Name := callfunc ('getsendername');   5 F7 f+ X: y6 l( `. G# V8 Q  j! G6 [
   Str := 'movespace ' + Name;4 U9 v3 m  f+ ~' A+ _: F1 U( j" b0 m
   Str := Str + ' user 52 17 18 500';) D# v2 k9 [! K9 s8 Y5 Z% f; S: P
   print (Str);
& V! G0 A7 @3 r9 _   exit;" F4 x* q. ?, w. T% _( t
end;
7 Y* [. t, k/ a! C4 W2 G. x9 Q) d! D4 j
procedure OnChangeState (aStr : String);
) ~4 U3 c$ l3 S8 N  Qvar
& L( u! @3 e# }' [& `   Str, Name : String;* @  ]( }9 Q, v! I
begin
3 A' S- M! ~, G' d# k' k   if aStr <> 'die' then exit;
  D! |8 y# p( h( c: D* X% `& ]. Q6 D4 ?6 N7 K; T
   Str := callfunc ('getsenderrace');' e5 v) P$ a2 u. j3 W+ W6 t/ V! x9 P
   if Str <> '1' then exit;
% }7 F; _% k/ Y% r2 d/ h- K5 i0 |  O( y: d+ h- k
   print ('say 别无他法 50');
, T" X4 {7 |4 B8 l   print ('say 是不是修炼方法不妥呀? 400');
$ p$ O7 I* P+ a: J! d0 _( g' T3 r; {* H3 r% O
   Name := callfunc ('getsendername');
, a! W/ h" V% R) T0 e) ]   Str := 'movespace ' + Name;
0 M. H! b' f* D7 H/ a   Str := Str + ' user 49 106 55 600';5 f+ o7 f* g1 v- f2 f7 I
   print (Str);8 Z$ Y0 o' k6 [( X7 G$ ]! f7 P
end;  s  R4 |3 B) s0 L1 T
5 @; B* B& k9 R+ H
end./ w& ]* z6 p; }9 \
-------------------------------------------$ i7 F& o2 m8 Z% d7 j! z8 ^' w
unit 一级捕盗大将;
* q# W2 a# k  P0 M# \
. o. I3 B* m5 Zinterface1 j4 S- S5 @. x/ z- J

( ]+ ?+ @4 S, j' Yfunction  GetToken (aStr, aToken, aSep : String) : String;
+ q: x. \$ i4 x0 d  qfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
" Q6 d" q* ]8 z/ k7 s% c+ @5 ~function  callfunc (aText: string): string;8 O9 v" ^3 j" H' C, w
procedure print (aText: string);
) x2 \) B: [2 V8 Xfunction  Random (aScope: integer): integer;! l; {6 ]7 u3 v. z' S) E0 U
function  Length (aText: string): integer;
5 R! c1 E+ L$ b' l" X  G% o; H/ Z6 e2 gprocedure Inc (aInt: integer);
( a* r$ Z! ~% B# N" ]procedure Dec (aInt: integer);' V3 p4 k0 K. R7 }
function  StrToInt (astr: string): integer;- B+ |+ g5 e- w) E# c; x
function  IntToStr (aInt: integer): string;2 X) g5 a2 x2 y% b# m: F4 F) d
procedure exit;! n& S  t& t' ~: p  t2 A. j

; M- u+ E1 W& Oprocedure OnCreate (aStr : String);
  ^% m- f9 @4 d+ d4 fprocedure OnDie (aStr : String);
) C* C+ l% ?, `# f* X2 rprocedure OnChangeState (aStr : String);- k! S, |+ v# ]( Q" O* X" F4 w& J
procedure OnGetResult (aStr : String);# [8 Q- {$ y3 Y+ |+ N8 K

" v% T6 W* r& N( [, q9 ^0 c% bimplementation
. P7 q/ k+ n% |# }& S4 d/ _( m; |% J7 [1 p1 p
procedure OnGetResult (aStr : String);
7 Z1 w! Q4 [5 M; M: P% ]var
1 \8 T1 K, p. a2 w) C; ?. I# j0 y9 o   Str, Name : String;) X9 O3 A0 n- Z( W7 V: K
   iCount : Integer;   
+ q# C( Q' k2 x0 g' a* _8 t! R, \begin
& ?( G* X& @' x: X   if aStr = 'start' then begin
& U  v: }7 f- Z; z0 j" r      Str := callfunc ('getsenderserverid');; H/ B0 g8 x7 h  F1 I+ e
      if Str <> '50' then exit;
8 ^$ K1 [7 o5 n, M6 Y- b# Z* e- X
  p" ^) q  g: t$ |" _      Str := callfunc ('getsenderrace');# ^" _* i" Q8 X2 r! ^
      if Str <> '1' then exit;
5 S$ G* X& g# Z6 I( e7 Q. C9 g$ G; v4 ?7 M8 E+ ~+ o, c! d, B2 D
      Str := callfunc ('checksenderpowerwearitem');
: }- x2 u9 c- E2 |0 u1 Q      iCount := StrToInt (Str);
0 ~3 [0 z9 o( t+ @/ V- @      if iCount > 0 then begin
+ M3 \8 n6 z" q         print ('say 请先脱掉带技能值的装备!');
) |, p# U9 h$ `- I6 C6 h         Name := callfunc ('getsendername');
# }/ I) }, x" b; D0 e4 O& F; B         Str := 'movespace ' + Name;
" u, r8 Q# t. H8 f) x/ V         Str := Str + ' user 49 106 55 100';# z, y  g9 h: k: Y
         print (Str);
) a% G& l% I- f0 D1 R8 Y3 ^         exit;% r5 Y9 Y" K8 }! a" O) {  [
      end;8 v* K1 ~7 k1 V& c* V" `
      Str := callfunc ('checksendercurusemagic 0');% R2 d2 w; s* R
      if Str = 'true' then begin, f/ e) ~& o* P" S3 i2 @- g
         print ('say 选错武功了!');8 s% R* Y# E2 B. ~2 T
         Name := callfunc ('getsendername');
7 g4 ^! o& [/ z7 P1 j         Str := 'movespace ' + Name;( p* [5 l8 N: G) G& |7 }4 m
         Str := Str + ' user 49 106 55 100';' Q1 ]8 o7 z  k& O! t' {2 c
         print (Str);
% Z8 c* {- f! W7 e9 O2 B         exit;4 A1 C0 Z& V9 ^6 M2 ]9 R/ N% M3 \
      end;5 h. h) t. c' V- V: k5 j
      Str := callfunc ('checksendercurusemagic 1');4 _+ U, p0 `' x
      if Str = 'true' then begin% J3 K* H2 G+ i0 C! _1 I" E
         print ('say 选错武功了!');
, S  b9 M* S# X* R         Name := callfunc ('getsendername');' x- M. Z' n" S2 R8 e
         Str := 'movespace ' + Name;# z1 L) O$ K% X; m2 v0 [
         Str := Str + ' user 49 106 55 100';% v( k" w  H0 @
         print (Str);: \4 P2 j0 g$ t7 q
         exit;
/ P+ @/ T$ y8 k; i      end;% c: r) H* w: d; ?' q8 e
& d1 `7 n$ l2 u
      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');" x- }( l- y5 B7 k% e
  ?0 u5 k. k, H( ~
      print ('commandicebyname 一级捕盗大将 npc 1000');7 s7 L# a( m: ]! p( H/ \5 d( X* ~
      print ('setallowhitbytick true 1000');
& {4 w8 L+ L4 N% p
/ N& [- O: Q& g+ J) `4 }3 W) j      Name := callfunc ('getsendername');+ |% H* B! ^& w& Y, f: J- t" M
      Str := 'commandicebyname ' + Name;
: N- f: d1 ]% w" {% C- h2 u      Str := Str + ' user 1000';& O: z5 e9 y! N3 W( h6 u9 a/ q! A( h3 B
      print (Str);& G/ {# F6 `! p$ _5 Y8 v

2 @/ A4 ]: d% M  A% J      print ('senderrefill');
+ e/ i$ n' M/ }3 f* Y  K: C* }% ^; [# l$ l
      print ('say 你还太嫩! 50');
4 }# W% Q, [2 `* [, r      print ('say 留神啦_我可不会手下留情 400');1 Z; X% K% e- |
      exit;
" ^, n5 N- n/ w: x7 X& f7 \' d+ \   end;
2 B8 d  U! l. vend;
  [! h* g: j5 A
) h. |3 L( Y" q$ f4 A2 Cprocedure OnCreate (aStr : String);5 ?9 Y* ]8 A0 o* O, P8 J1 G1 h
var
% r* b; O8 k8 L   Str : String;
0 A& U! f1 c7 x( Kbegin
( |4 q- E, h+ W2 v( O9 ]+ j# ?   Str := callfunc ('getsenderrace');2 y( H* z. `5 i; m
   if Str <> '1' then begin
& S1 q) x7 n! S: [* y( h' B      exit;( }1 l, A5 h( h; A% e9 a' i
   end;7 w5 @$ C" r" C# m  P7 x$ O

. D# s. f6 b# L% M5 L; L   print ('setallowhitbyname 一级捕盗大将 monster true');
1 M# P: |& w0 @# r! Y/ K
3 N( {) w& a3 h/ z* I, k+ s   Str := 'showwindow .\help\一级捕盗大将.txt 1';9 n' G5 P& ^& }$ o
   print (Str);7 P8 A0 ]8 t. A! M! e# h3 y" U
   exit;: U9 V6 q9 j" d( E7 y8 h
end;9 ^4 G0 \2 q8 ~) H: h3 R& _
) e, n* [8 s8 j% F( B, E/ \- e  V
procedure OnDie (aStr : String);
8 n& Q  O9 i$ `. Zvar' ~( G, J7 x# o. {/ g* Y+ d' k* ]
   Str, Name : String;
% G) V! j( F" e3 S5 J$ `2 Y: x/ c   FirstQuest : Integer;
) h8 J# j6 b, R9 x) R7 O+ ebegin
$ A3 g( r" K! `5 ]% G   Str := callfunc ('getsenderrace');: }- F/ X3 `% T9 c
   if Str <> '1' then exit;/ r8 E7 E3 d; ^) V
0 `0 [* Z+ n3 ^1 N/ e; b
   Str := callfunc ('getsenderfirstquest');
9 b! h8 ^, X4 C$ B   FirstQuest := StrToInt (Str);+ R. e2 a  g# e1 V8 S

4 C/ W, ~! w9 }6 ^' x8 K   if FirstQuest < 2 then begin; i8 t$ J1 t: F
      Str := callfunc ('checkenoughspace');5 w* U5 B1 K% m3 z; b, z1 o
      if Str = 'false' then begin0 b" m% H4 \& z& N- Y
         print ('say 物品栏已满...');" F3 N- P, I* B5 D
         exit;4 N8 t5 g3 ?! Z1 ^( o
      end;
3 s$ H6 R( Q% \! u. E5 R( |: J3 x* j  s" X
      print ('changesenderfirstquest 2');
- y; F( j& n- P3 m      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');9 ^6 y+ ]/ R/ D6 J6 H( ]
   end;
  T4 z, U. N3 ^1 o/ p4 Z: F( z8 J: w, C
   print ('say 不可能_我怎么可能输呢.. 100');
# C$ z% v+ ?' t9 D, D" R0 X0 U7 b" M% s
   print ('mapregen 51');6 n4 O5 v% ^# c1 ~, L  `

6 ]' s$ q! T. f! r9 m1 Q  |( F   Name := callfunc ('getsendername');
/ V5 f% D( ^# [* T7 Y0 P   Str := 'movespace ' + Name;
9 ?. b2 ^- M- d7 r, Y   Str := Str + ' user 51 17 18 500';( l, {# v8 Q7 `! v# G& J+ Q  n2 X
   print (Str);( I5 P7 E- |* p* K. C, ]
end;
0 ]( E2 d3 k8 ~0 X$ D
& z/ G) n& t% J0 m5 zprocedure OnChangeState (aStr : String);
: P: I/ I: G9 \0 c$ {8 u- ovar4 L# t* H5 K: U4 z0 i
   Str, Name : String;4 R& K) O) f5 W. y9 ^& C! {
begin
5 T" `% v4 P  C# Z. s' L0 t   if aStr <> 'die' then exit;4 s$ I( ^' B$ O' I; I5 c

& {  o+ y; L- q: E! m   Str := callfunc ('getsenderrace');
, r( F& g( q8 f( J/ s2 Y' M   if Str <> '1' then exit;% r* z' W# X1 W2 j4 |* E

. G- ]8 m4 d8 o, }   print ('say 回去再修炼个10年吧50');1 {8 d' y) k8 D; @) h
   print ('say 到那时我在用双手跟你打 400');0 n7 X8 T. Q( n+ ~: t4 V" i
' v1 s# K. i( S4 Y
   Name := callfunc ('getsendername');
4 w1 S8 ]- q, t4 P   Str := 'movespace ' + Name;
. e9 [" u! n) X   Str := Str + ' user 49 106 55 600';
$ M$ D2 Z0 [5 r! A   print (Str);
) ^* [6 \* U; x' f9 _) J$ p+ o/ C! Z, H  m0 ?
   print ('boMapEnter 50 true');   
- a. x- @% d0 T& T2 u' c+ |. iend;+ h, y# y6 m2 N$ Q
9 a$ v- Y- Q5 A% I
end.
) |: y: D2 ?2 E- E
. e$ f/ x: x! C1 F---------------------------------------+ j  M: w; o  \) \0 E( L
0 v5 I; I0 w1 g# T
unit 一级牛俊;9 T3 s$ S! ~( P* `3 i  p( f. g- u" Y
' Y+ s& H- F6 ^3 e  t1 O
interface# h2 d- Y* Q3 W6 o1 K9 N

3 j! c& |; ^" G5 b$ L! E6 pfunction  GetToken (aStr, aToken, aSep : String) : String;
* `* O! l* V8 s8 \  d0 h6 u7 F* ~( T3 jfunction  CompareStr (aStr1, aStr2 : String) : Boolean;* H4 L8 |6 S4 V* s$ r) k- {( ^
function  callfunc (aText: string): string;: t- D* q7 x4 y# `2 C. I
procedure print (aText: string);: N; M; ]2 e3 m) p9 V
function  Random (aScope: integer): integer;4 T! @7 B' b( q* `7 G5 p/ b% i
function  Length (aText: string): integer;1 {# K+ M  s% v% `& a1 v
procedure Inc (aInt: integer);
0 d& E+ S( z- c) C4 R- O+ aprocedure Dec (aInt: integer);
' @& z4 q/ p, N7 A0 pfunction  StrToInt (astr: string): integer;( Y+ w; W. v; T' u. T
function  IntToStr (aInt: integer): string;1 r9 ~6 D$ G7 H/ N+ S) E7 |9 _8 Z
procedure exit;" L: S: s# a; v) L( ?; R
. P6 o- w) N5 `# h1 K  H- F6 {
procedure OnCreate (aStr : String);
/ H" z, y& |5 k- u+ o' mprocedure OnDie (aStr : String);6 H# h3 |+ S2 i+ W0 v
procedure OnChangeState (aStr : String);
/ j/ d! m6 N  f5 ]3 Aprocedure OnGetResult (aStr : String);
  |/ k5 U- o, l; O4 m8 K
7 q% X0 d& K8 X7 G% V5 |4 `! dimplementation
& {; b9 n% ]5 z3 }: }5 E; V% \. K: N2 {( i7 a7 I
procedure OnGetResult (aStr : String);2 C0 v$ b! Z0 N
var
8 V& S) a7 T% ?7 C! `  F* `6 v   Str, Name : String;  a2 r, `7 w# r* D7 h
   iCount : Integer;
. h1 ^8 p4 W5 U7 v6 Ybegin2 }6 g  M' c, q, q7 h! m$ ]
   if aStr = 'start' then begin
. `- p5 y0 F& _6 g+ O0 u      Str := callfunc ('getsenderserverid');
' Q0 r! u$ ?2 o! f      if Str <> '52' then exit;  {$ S# i( _. `. b- U: t# ~

2 q* e  u% X- Q, k      Str := callfunc ('getsenderrace');4 ]7 _  M+ T3 ]1 A
      if Str <> '1' then exit;1 }3 L0 @8 p. \! \) R

1 x1 P5 Q/ U! L1 A5 x' Z      Str := callfunc ('checksenderpowerwearitem');
6 G' r6 \2 n: I% Q      iCount := StrToInt (Str);6 j) W9 ~' M' |1 j
      if iCount > 0 then begin
. g% r' o! }4 f0 q         print ('say 请先脱掉带技能值的装备!');1 z6 o# y6 n, ^! u2 F9 J
         Name := callfunc ('getsendername');
1 V+ q8 O+ p& P- |( ^         Str := 'movespace ' + Name;7 J5 ?; c* }8 t9 w' y3 Z* w6 Y
         Str := Str + ' user 49 106 55 100';8 W- d+ B8 N  U) Y) U: q, t* _
         print (Str);
, w1 p  ]  ^. _3 t8 h         exit;
  `9 [7 |! H" J  a: u      end;' `  f( N0 c. p6 P& f( G
      Str := callfunc ('checksendercurusemagic 0');
* ]- m4 u2 T! }9 r      if Str = 'true' then begin2 \9 \! u  [' n+ ?& F: K
         print ('say 选错武功了!');
0 ^% b! n; }( x: ^         Name := callfunc ('getsendername');' c/ M& C. f( s+ `+ q
         Str := 'movespace ' + Name;
/ u; A& A9 D! r$ I( ]         Str := Str + ' user 49 106 55 100';
$ R' |  [$ `. E, I: ?; \/ r' P. r! m         print (Str);$ Q- M, [4 U* p; H! G' {
         exit;
- S+ j* c, _: w% u+ E# k      end;
9 K9 o' y, b. v3 M# r      Str := callfunc ('checksendercurusemagic 1');
% |+ s- P1 R1 V; a      if Str = 'true' then begin' }. I; c; D/ D
         print ('say 选错武功了!');
' R' y/ k9 u( S: x, t8 i         Name := callfunc ('getsendername');9 y. q$ ^4 B- l6 X1 v
         Str := 'movespace ' + Name;7 I+ x6 C" q, Y
         Str := Str + ' user 49 106 55 100';$ z$ I, J; _2 J! B8 a5 v9 [
         print (Str);" M8 l' C% A7 a; a6 v
         exit;  W$ x# ]4 Z% H
      end;: \! g+ D$ m0 j8 k! i  U# k
% u/ Q2 z# m) s9 j& c
      print ('directmovespace 一级牛俊 npc 52 20 18 0');. M+ `5 t0 g- X6 c

; a2 k: D0 `& t3 x      print ('commandicebyname 一级牛俊 npc 500');
: X/ a  a" O7 H, }7 A9 s$ Y' E      print ('setallowhitbytick true 500');      
# f& D, Y+ j- C2 g* j" B/ f' O9 _7 M3 j) p
      Name := callfunc ('getsendername');4 Y! c7 |2 D2 q4 `! Y  s' ]
      Str := 'commandicebyname ' + Name;7 n; R; d) A& i# l: P" t
      Str := Str + ' user 500';4 M, E9 ~4 y) m( m+ d
      print (Str);
, G( s+ ]& o- r6 l6 V
4 E/ f  ^" b+ g  ~4 l9 [      print ('senderrefill');
4 ^2 p, l$ g6 D& {% U: Q& M9 |, _" `, g: X# r
      print ('say 10如果10秒内不能将你搞定 50');
' ~; {5 O4 H# C7 i3 J- W* c" G      print ('say 就算我输! 400');) c% ]. H# J" g( B) ~+ Q2 j
      exit;0 [* }, \! Q, q  u/ [. N
   end;/ e' I; t# P. d6 p8 |2 T! m* Y
end;! J, v- e9 q1 W" u

% ^2 \) b& A5 rprocedure OnCreate (aStr : String);: m( v, j4 Z. m1 i1 F* s
var
- j. A! n6 p7 ~  n4 C   Str : String;
+ _6 A& H" T" f: ~5 B1 x5 ^begin
7 y$ h9 a4 a* Z! b4 C   Str := callfunc ('getsenderrace');
! I+ L- K1 w' f# k   if Str <> '1' then begin
6 A0 r2 P3 G5 s" E5 Z      exit;$ b% b( j# j7 g% E( u8 V7 m# X
   end;
, O; g2 {& q" ]9 l# @! f, Y, x4 v7 w, \% G5 C
   Str := 'showwindow .\help\一级牛俊.txt 1';
7 j9 A7 Q9 o' x+ A" R6 H   print (Str);
7 A/ c! v8 D8 h# i5 M$ h" F! }; g   exit;3 {0 i9 I( J( t
end;
2 d% s/ J8 t4 P4 i' w# H6 \: u: Y" D9 @# P4 v' L5 E: K$ F2 X
procedure OnDie (aStr : String);
1 X. m, Z8 l6 W, x! ]var$ F! I! i; H9 k; S
   Str, Name : String;
; ?' s* P5 ^: @' K# @6 [   FirstQuest : Integer;   
9 c  f9 U' i/ L7 j: _begin9 U) O% e# Y6 n% Z: W
   Str := callfunc ('getsenderrace');
8 d% ^6 X$ y+ x/ N3 k' L" P* C) c   if Str <> '1' then exit;
- I! L& D) E3 {& E$ {0 N0 j7 Z/ _  \% d
   Str := callfunc ('getsenderfirstquest');
$ ]. t" v+ ~6 q6 p, ^- V  f   FirstQuest := StrToInt (Str);+ i, M' k  C" w! m) o
; O# }+ M6 C( v. t+ ~& t5 g  }  J: N
   if FirstQuest < 4 then begin
$ J( P) V( t' X      Str := callfunc ('checkenoughspace');7 z' t5 s4 J0 ~$ f) Y( l
      if Str = 'false' then begin
, _$ |* a* f. R$ R9 w' t7 q         print ('say 物品栏已满...');
# M9 u5 y. a# Y  s1 x7 e         exit;: }0 H% N- [9 y9 S4 I
      end;+ o8 M( x+ S! a) Q  R+ x
& C) ]9 Z) J/ T0 x' Y
      print ('changesenderfirstquest 4');5 P: F: ]( ~$ q2 N# h6 {
      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');
6 e8 Z, C. C: z# ~   end;
! i6 x8 t* M3 _& W0 f. x( T- R+ L/ `; [1 r2 w; O
   print ('say 什么_不敢相信!! 100');8 g$ h$ U1 t" }5 f5 v

5 x6 l% i# A/ `1 P   print ('mapregen 53');3 \9 y9 r. U: c+ i6 k
# V0 E& e+ T. n
   Name := callfunc ('getsendername');: e* b- n8 p9 {) n/ j% |
   Str := 'movespace ' + Name;5 @- U& V3 Y- o% l2 e" q
   Str := Str + ' user 53 17 18 500';, @. ~; u: Z& h$ I2 [  c
   print (Str);
. r2 K- S$ F1 M% Dend;# U1 K+ i  G  z. E2 Q
% N) j# Q  v- H
procedure OnChangeState (aStr : String);9 b8 ~. k0 r" e% s
var& W2 u; v  d# o" f- S9 }2 c
   Str, Name : String;  h$ ]. ?2 s) q  w7 N1 O/ G
begin
! G5 r+ N0 Q& ?0 m; y  j0 _+ s   if aStr <> 'die' then exit;  l" ?/ L, n: v; A3 Z; z5 @

1 [. O0 |( y; y) s   Str := callfunc ('getsenderrace');) d/ D! F! b/ ~* V5 i
   if Str <> '1' then exit;
5 X* W, W  \( O& G! }" Q2 B
. d) y0 E/ E( A' a, ^5 R5 p   print ('say 领教了吧! 50');
, |1 c" O8 a9 T0 M! C/ x   print ('say 差远了... 400');/ R" v- j9 b% G/ i8 c. r# i) Z2 j  `

- z8 g/ x( g( a   Name := callfunc ('getsendername');
3 w2 N6 ^1 L. `9 K" ^  H   Str := 'movespace ' + Name;" N- @0 M; m  U7 K/ q
   Str := Str + ' user 49 106 55 600';# J4 ?. H0 o0 ^% R
   print (Str);
; `5 O' ~$ t+ y' M9 r! jend;
. p/ g2 P! t- b4 J
. d2 Q- h/ O$ nend.
$ R- }& F3 X- F1 }5 b+ t----------------------------------------5 _/ J3 \# y' f* V* P6 k
unit 一级雨中客;1 E0 `- J& G2 Z1 R3 R* k

, V% F( @( a/ J, k/ p6 h/ [interface
+ I  s4 k6 j( Q& d1 a( }9 P8 `. M, i' I4 G4 h4 F  F8 w* ^7 ^, ^
function  GetToken (aStr, aToken, aSep : String) : String;; T% q( s+ i6 N* m
function  CompareStr (aStr1, aStr2 : String) : Boolean;
8 f3 ~9 r0 z) U1 b' ?. M  u  wfunction  callfunc (aText: string): string;0 H5 p: [3 {& K" z# f, H9 B* v9 c
procedure print (aText: string);/ x- T4 G/ ]* i. ~1 |
function  Random (aScope: integer): integer;
& w0 s' I! q7 f) J7 A( j6 z" Tfunction  Length (aText: string): integer;+ `) X& P4 K" J' F
procedure Inc (aInt: integer);1 @# d- H, F7 w; z& Z
procedure Dec (aInt: integer);
. X, g- @. o/ T" \- g4 x# kfunction  StrToInt (astr: string): integer;0 V# z( a4 r3 w/ ]  |* v
function  IntToStr (aInt: integer): string;
* n9 z6 Z, [- ^4 d( iprocedure exit;
6 r" ^) y3 a' L- s
- ~& t% c2 U: J9 mprocedure OnCreate (aStr : String);' A/ |& Z4 y  K/ P" Z& v: [
procedure OnDie (aStr : String);
5 C. w% u7 {; k+ l7 Rprocedure OnChangeState (aStr : String);6 L# w5 U6 ?* r3 O% n0 O$ A
procedure OnGetResult (aStr : String);
: x3 U  Q, [6 i+ A+ N8 l
* {  G& k5 v& kimplementation8 H' V9 U- [9 x

3 V# n. J, |7 G- `! x& Hprocedure OnGetResult (aStr : String);# W  Y8 A0 F3 M+ b
var
# A) n# p  o. W   Str, Name : String;( H3 b# ?( v4 u5 u
   iCount : Integer;
* w3 i0 U; O: O4 rbegin
  ]+ |+ ~0 e. _  O, j8 _   if aStr = 'start' then begin6 z& ?! I# Y% y+ R
      Str := callfunc ('getsenderserverid');' y2 u! D: l3 _; h7 K: m
      if Str <> '53' then exit;4 W: F) n) y+ g9 ^
) x2 p( z7 Y: {
      Str := callfunc ('getsenderrace');
/ ?7 W( v/ |! C2 u' M      if Str <> '1' then exit;5 [+ c/ t, m9 g
) m' T8 n, E/ n; {/ L  Z/ O
      Str := callfunc ('checksenderpowerwearitem');
! c3 g& p% H) o" b' H0 ~# y      iCount := StrToInt (Str);. R2 P, p7 U, p( j/ F
      if iCount > 0 then begin) w6 M6 R, @" t
         print ('say 请先脱掉带技能值的装备!');
6 T* `* R2 g% i0 W. G. N         Name := callfunc ('getsendername');, k& y; L8 o5 i$ X$ d
         Str := 'movespace ' + Name;
, K, x& ^- C7 w# b* C/ ~7 R. s         Str := Str + ' user 49 106 55 100';2 {  r' F4 }5 T  N3 {$ H
         print (Str);
- y# @. @: X3 E  G) ^4 q         exit;
5 Y/ H* e( X3 }6 v8 Q      end;
6 I0 V2 @! f; }      Str := callfunc ('checksendercurusemagic 0');. l" q9 V6 O; c5 k
      if Str = 'true' then begin( [3 x& C- P# v
         print ('say 选错武功了!');
- z# _+ l5 H/ l9 s  o- w, U         Name := callfunc ('getsendername');
* k# i" B4 `; H: B/ w/ L$ t         Str := 'movespace ' + Name;
# [' N- t$ i1 B: O' M/ v) {         Str := Str + ' user 49 106 55 100';! r6 J) t( R0 U( O* R  h
         print (Str);
4 p0 i" e, C4 o" ~         exit;& _8 e! v% t: ]5 Q. M. ]* h1 L
      end;! w) T* l8 ^6 k! M' @4 g6 e4 w4 c
      Str := callfunc ('checksendercurusemagic 1');5 B/ S- a# c1 \9 o' J$ N
      if Str = 'true' then begin) G4 E. Z2 A( P2 T& J& g0 J
         print ('say 选错武功了!');
5 Q  g1 W, y7 @1 U+ _- ^" h, s+ J; V         Name := callfunc ('getsendername');
  x0 J; I$ K; P& m1 w         Str := 'movespace ' + Name;0 [+ N$ Y# f1 n
         Str := Str + ' user 49 106 55 100';, a# V6 t0 J2 [4 C( X0 Q* D
         print (Str);3 c/ f: X4 E/ b& n1 J% Z
         exit;
% v  D2 Z7 r6 W: J( B  P7 B+ z      end;  E0 d7 Y% B$ |1 p' x7 j; \" Z. t
0 a# f% U1 g' w) Q* P! M! E  U" v8 ~9 F
      print ('directmovespace 一级雨中客 npc 53 20 18 0');/ ]0 @3 w- b8 Q

, ^  J! {: L8 r+ N, J      print ('commandicebyname 一级雨中客 npc 500');
0 ?( B  _7 G. J' v) [      print ('setallowhitbytick true 500');      
) L' A$ T2 _. W5 i
  i4 @7 G  d/ V" b" C      Name := callfunc ('getsendername');8 f% |4 J, N6 B7 z
      Str := 'commandicebyname ' + Name;, W$ o, I, t& a% I
      Str := Str + ' user 500';( W/ ]& n' Q+ V' \
      print (Str);, N" J, }2 v1 P" R% A

/ O3 j: E7 o7 e      print ('senderrefill');
: d" ^' ]& X: G/ ~8 r4 l( U3 }
* ^3 U4 p# ~% d; j0 |) R  T# f      print ('say 领教了 50');
+ D9 |/ k  m3 J9 c      print ('say 开始吧 400');
; U2 y9 P) S/ T% V$ ^      exit;
4 [( [7 x  {( ^. {   end;
1 A' B/ |/ O: g, V7 f4 f# v, Q5 R8 uend;0 p# _+ l, k' t& q- c

' K4 y7 m" X& H$ C3 B1 O8 Gprocedure OnCreate (aStr : String);, X* U" r' w  T# Q" m. R
var7 N; D3 s: I7 F' k" Q* t/ w
   Str : String;8 U+ a7 ~* L8 R* V
begin
% F$ J3 O5 N: V: s2 c( M* I, V   Str := callfunc ('getsenderrace');
' I5 C, l6 M% V: d  q   if Str <> '1' then begin. n+ M" W3 D4 Y4 n) `1 R8 R/ }8 s+ h
      exit;
+ r1 I8 O0 O- I* }; A0 \   end;: z/ J" d9 F2 h& s6 J1 k, s
6 E8 H- v$ M2 g: Q' R
   Str := 'showwindow .\help\一级雨中客.txt 1';
; R# u8 a* s) ^" v& _7 z& G   print (Str);
+ l' M9 x* m7 n7 }1 D$ h   exit;+ O1 n( M$ D! ]6 N  o" v  o
end;
) u' W9 V: H' [/ `  C  O
: h# W# m$ _# D3 {  ?7 G+ Iprocedure OnDie (aStr : String);  S3 Q) g- \9 p, o. `- r& \
var
9 q7 h0 q. B, L: C* C3 {0 _   Str, Name : String;% r9 I- o1 _3 a. K, y* l" \. o
   FirstQuest : Integer;4 U1 ?" b( E# W5 p. b, |
begin
+ Z* d7 G0 O1 l! q   Str := callfunc ('getsenderrace');6 \  v! |: h/ \' N1 c
   if Str <> '1' then exit;
* r8 \9 p0 [1 W# A
3 V* ], }0 [* z( T, ]6 \' q   Str := callfunc ('getsenderfirstquest');
$ F1 U, i, D6 Y   FirstQuest := StrToInt (Str);
6 `( @) E* P  r! S- g. z
* A9 a% m. ?' O! v8 i   if FirstQuest < 5 then begin9 W! \. D5 R# Y3 `; {  S
      Str := callfunc ('checkenoughspace');
: r0 {4 Y1 q7 L6 I6 r3 c      if Str = 'false' then begin% w! V. ~. U* X, I& C
         print ('say 物品栏已满...');0 B- {# @. [6 G: ^2 n6 A
         exit;, {  _8 h& ?! x% e: N- a2 N
      end;' V! o8 d; P/ @. L% Y6 \+ D

$ f/ Z  M& r$ j: g$ Q; H; U( G" [      print ('changesenderfirstquest 5');
1 W6 Z5 }4 U7 m2 K/ d$ [0 ~      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');
, ]& U) N6 T* o! ?. ?0 H8 Q   end;
1 m3 m9 {- ^9 I3 R% e1 N3 G2 D
, g, _: i$ k. }) N   print ('say 早料到了_佩服 100');9 n+ w" G& `% X2 u7 f: @
) \" h# _  C5 Y+ {
   print ('mapregen 54');( g1 ^+ }3 Z" j% |

/ E4 r4 t% r( d; O) c4 o   Name := callfunc ('getsendername');
# m4 }: U; ~1 O2 S   Str := 'movespace ' + Name;
7 J& s* t  O! a' r! t# [# W0 Z   Str := Str + ' user 54 17 18 500';2 o  {% I# b+ H5 N" _( e
   print (Str);
7 J0 r; P* F! a: m. _1 Z3 ~0 Vend;
# y' C1 O6 W5 l! P( l" S/ P2 x3 F
procedure OnChangeState (aStr : String);! ?; G" O9 S" y; b
var
$ w( d8 i+ i- k# {3 Y   Str, Name : String;
3 s! z- x7 Z7 m& d$ O2 s' Fbegin
- m/ K0 Z6 y8 [/ N: z   if aStr <> 'die' then exit;! `: {( M- R3 v+ `3 B9 v' n+ J

1 m) S* I% U/ U* C6 w7 Y, `+ q  U   Str := callfunc ('getsenderrace');. z; v! u( J/ p5 r) _& w" f
   if Str <> '1' then exit;) E) I3 b, M. |$ S5 ]& }
' |- O$ u$ c9 ^, c$ L) R
   print ('say 不错。只要能维持几秒钟');
# _5 y* c4 t1 @5 ]8 f/ n6 k* Z   print ('say 到那时谁都不是你的对手 400');
% S8 s# r) G6 X. l" y/ |9 H3 p: X* w& i0 O3 J" V# |4 B. R
   Name := callfunc ('getsendername');
4 ]1 I2 m# W, s$ U) P4 x8 _   Str := 'movespace ' + Name;
( @& Y' i* ~  X. a. Q2 X% p   Str := Str + ' user 49 106 55 600';5 o0 l  F, m- j" D3 Z
   print (Str);' y2 C: |* D$ f8 R4 b! N6 G+ M8 t' L
end;
3 B2 G7 z6 a& h' O' K& ?& F3 J1 C- L( M$ k+ s4 k
end.5 C0 m2 d# a" y- {: u

, }  _: L1 {$ P& W3 n--------------------------------------------------------------------------------------------------------------, X6 B2 v: Z  u

' F- p/ r$ y# q% z& J0 T' iunit 一级老侠客;; @( Q' q0 |3 [+ O( }% g

* I( G% y* H! g. a5 `interface# g' B  ~; z/ h1 q0 @7 v4 i9 G
6 I( P4 F$ h# r' f+ r
function  GetToken (aStr, aToken, aSep : String) : String;
4 l: [# `  v2 D8 gfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
' X& Z/ R( _+ b! U; m! i2 @8 Q2 n- Xfunction  callfunc (aText: string): string;
$ M- a. }3 x9 a9 g4 }procedure print (aText: string);
' W( c6 M- Q% b, n5 u- ?' cfunction  Random (aScope: integer): integer;
& K: E- N& N6 a% tfunction  Length (aText: string): integer;
* m9 g0 E1 L) P6 Hprocedure Inc (aInt: integer);
  E& D5 S9 r1 o$ {, S7 Zprocedure Dec (aInt: integer);/ G9 A/ o4 a$ X8 d1 [3 G8 K
function  StrToInt (astr: string): integer;1 r1 V9 i# ~  K/ V9 V* J  G! ^, s
function  IntToStr (aInt: integer): string;0 a5 P3 O9 G; Z+ Y
procedure exit;
- \4 ^2 L- s0 b9 O# M
3 A4 l9 \( {' {* `& f, Kprocedure OnCreate (aStr : String);, f9 |% Y/ k- S& }  W$ _6 H
procedure OnDie (aStr : String);1 H  }# i7 H1 k' y7 s6 ]  e
procedure OnChangeState (aStr : String);% n- g: R) Q- t
procedure OnGetResult (aStr : String);
% G% v( C, h3 o1 U5 J% C9 w/ Z! t3 J0 `& Y8 l  R
implementation) n1 e4 e! x9 |% E2 j

7 B- k/ z3 e6 c5 X. Uprocedure OnGetResult (aStr : String);# X& M# M) t( h- o
var5 |4 G3 w1 w, Y; U6 V0 ~9 k
   Str, Name : String;( ^1 n9 r4 U0 P) u9 c1 f
   iCount : Integer;   0 V+ v5 f8 e0 A
begin
  _& M8 Q, E7 C4 v$ [. p$ X   if aStr = 'start' then begin
' `( I+ q  d1 f4 f- Y( s      Str := callfunc ('getsenderserverid');9 E* {5 E& y" M5 V% a% \
      if Str <> '54' then exit;1 }  B- }2 i8 K! c8 ^

- T! X; F, J1 y" B( h      Str := callfunc ('getsenderrace');
, o" w- R9 i  f) a7 ~- X      if Str <> '1' then exit;
* R6 q) r. a' |% @$ x/ }8 _
1 X3 u' M+ y9 ~! |      Str := callfunc ('checksenderpowerwearitem');' ~/ l' x$ v% y( z
      iCount := StrToInt (Str);5 e9 ^& r7 x! C* W3 L2 z* c
      if iCount > 0 then begin
. L, ~0 h6 ?) n6 X         print ('say 请先脱掉带技能值的装备!');% u4 ^$ ~  T! @
         Name := callfunc ('getsendername');
9 B, L" @0 }6 N) S         Str := 'movespace ' + Name;4 @1 v9 i1 A2 l, E
         Str := Str + ' user 49 106 55 100';
, o% @4 T7 f# r" h3 g- K         print (Str);* ~) ?! K- v' I' ^
         exit;
: V8 W$ o3 b: R( g5 C2 _) Y% {      end;$ h- ^  M5 _7 F& ?! a5 V
      Str := callfunc ('checksendercurusemagic 0');# L& m' a  k  }3 e1 b. Y( \
      if Str = 'true' then begin. h+ `' C# o4 Y3 \7 e1 F' K. M5 G: C
         print ('say 选错武功了!');5 U4 v! d7 \+ R5 q
         Name := callfunc ('getsendername');
# X9 X/ S3 f7 f- L         Str := 'movespace ' + Name;! P3 U" \2 a& [. X8 j1 L
         Str := Str + ' user 49 106 55 100';: i. W& u: b' m( R
         print (Str);, H6 `. n: E: Y7 K1 m! u) v; o
         exit;
$ k/ j9 p5 H6 H/ I: T" u      end;/ q* x/ e& N# [6 N
      Str := callfunc ('checksendercurusemagic 1');! x2 h. P: h- j2 L" b7 M
      if Str = 'true' then begin
+ z0 T) ^/ ?9 s+ r/ V3 g( [         print ('say 选错武功了!');! v5 c7 |/ [0 L& F0 ?8 n; }
         Name := callfunc ('getsendername');9 I9 Q) c( T; D! ^. g- I
         Str := 'movespace ' + Name;: u1 o1 y& g7 B& F3 s
         Str := Str + ' user 49 106 55 100';
. k! P% @8 U) k# b) O: m( h         print (Str);" H1 M# M8 k4 i- i% Q
         exit;
, B8 F8 q4 j2 ^      end;
3 w. S: M, x6 z7 g# e4 j& q7 y7 h$ U: R% n" C
      print ('directmovespace 一级老侠客 npc 54 20 18 0');
$ P3 d$ n# `$ J. k6 \8 D9 |  F
) {9 O( |0 p- b: V: J6 J9 z" V      print ('commandicebyname 一级老侠客 npc 500');. K0 G1 ]1 P1 i0 O
      print ('setallowhitbytick true 500');      ' j9 B5 f1 l9 W0 `' V/ ?

3 a( _0 v  p4 U      Name := callfunc ('getsendername');
8 x! _- E. P6 ~; O! J      Str := 'commandicebyname ' + Name;4 \6 \( F7 E% A2 @) L' [; |+ i
      Str := Str + ' user 500';- C0 A7 A6 M+ Z# p0 e
      print (Str);
4 Z) ]% x2 H8 f, D" i" i! _- f; j: n
      print ('senderrefill');! V9 v: h/ k! t4 q" @

5 c) C1 [6 i  w" b5 `0 C      print ('say 如果你实在想比 50');+ B- V$ {( X$ a/ X+ B! S6 P( e
      print ('say 我将奉陪到底 400');
+ j6 T6 B& F, h+ l2 j      exit;' O- e( Z; c" ?3 E! n; k+ |( u; V
   end;
# y( R0 V5 A  G$ qend;5 Q. K5 k, L2 v9 _( ~
) V5 J# \/ }: f$ I
procedure OnCreate (aStr : String);
7 {3 h8 P8 ^) A. @: W# `* Mvar# a  F" s/ U; v  h4 l) _! }( H
   Str : String;
. c6 p  p* R: K& \8 b5 o2 f7 ubegin
1 I5 [$ s0 @2 e4 u8 d   Str := callfunc ('getsenderrace');: }4 s+ H( q8 n4 V- s' ~+ {# K
   if Str <> '1' then begin
4 w/ P% n7 y7 j$ M/ `      exit;
3 |7 G3 ?8 L, Z5 ?% M   end;! N# s7 g; C$ ~- y: k

+ @7 p% o/ l( H9 x$ i, P1 }5 ^6 V# r   Str := 'showwindow .\help\一级老侠客.txt 1';
( c0 z0 p- d% c- y   print (Str);
- _  Q  A5 f6 k) r/ s   exit;
; M: p- Z1 _, p& Dend;
! j! ]8 t$ L+ y* U+ j( j+ ]" r2 ]- ?1 K. R+ k1 y" l- |
procedure OnDie (aStr : String);
- \) f7 t) x: U' r. J- [var
* X8 \% K  g3 }, z   Str, Name : String;
7 Q- g# A. s  {( n/ ?   n, FirstQuest : Integer;   
  h: d# @, r/ N, mbegin$ J9 n; K1 z. ~
   Str := callfunc ('getsenderrace');9 h0 U$ d! A4 Y. {& ]* K5 r, v# _
   if Str <> '1' then exit;
) `+ [" {4 T: e3 r! c7 H# _7 d! K' }; V; M
   Str := callfunc ('getsenderfirstquest');  `5 k) M$ Z: D
   FirstQuest := StrToInt (Str);" K) _' s, z. k9 e4 @% T$ x
4 Y# p1 w) N# U& I8 k
   Name := callfunc ('getsendername');) i6 M0 z  P2 _) T+ ?
; a$ T7 K( R5 _3 r
   if FirstQuest < 6 then begin
1 Q! l: B' Z3 x0 N6 h6 v      Str := 'sendsendertopmsg ' + Name;
, m  J4 V' s7 G# g1 e/ b      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';
' J% D3 m6 k7 w% ]/ x. M      print (Str);: s+ C' d  |* G9 D6 t8 z9 w

9 R. k2 K' m6 p  F      Str := callfunc ('checkenoughspace');
) p% b% i2 G4 f  x' S$ s      if Str = 'false' then begin
3 \/ W4 h4 h; c. `- t+ K0 y) S& _         print ('say 物品栏已满...');
" ]* g1 p4 @9 s# `* w: m6 n0 B         exit;% }1 Y7 s: c# q
      end;  z- {' Q# x% i' E6 T; D

7 A2 K2 y" Q! z$ m, n- B: u* O      print ('changesenderfirstquest 6');' |: x5 o* d( G2 w
* _2 z% J5 k; s6 s, U" p
      Str := callfunc ('getsendersex');' y4 T% B% ?5 [4 |' n
      n := StrToInt (Str);) J7 j) d9 X" j& I2 S' |
      if n = 1 then begin
% T( C; x6 G/ i3 l9 i         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');, C5 z! y) t4 M4 v0 |9 A
      end;
4 Z) Q  @7 C9 J" X6 X! \      if n = 2 then begin# A4 c8 }" g5 j& q. s0 z; u
         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');* m5 A& Q3 C- G1 R/ [( _
      end;/ n- D+ Q) w& Y4 ?% e
         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');
+ J3 C1 C* A$ e! l0 Q- U* B   end;& |; s2 T* b9 s; G
2 q/ m6 a/ j! d2 e) {
   print ('say 佩服_佩服 100');) h) f/ s, z9 Q0 |

: r. E& u% d7 P2 i" @& l   Str := 'movespace ' + Name;9 a' M7 _" o. W9 b7 g  m8 m, {
   Str := Str + ' user 49 25 35 500';, }" a$ \9 a4 h4 U0 y& X' X
   print (Str);
' P4 D3 a( ~  e% ?$ \end;1 `0 Y) K& O; X, Q! r0 f( V

3 {& u! g! W0 Q. `2 qprocedure OnChangeState (aStr : String);
: G) k4 ]) L( }" N0 _var
9 l8 g9 J. Y; R. i- k; U   Str, Name : String;3 z0 ]2 `; }' u9 R% ?
begin
0 z: A$ q7 U( t& X) u' w9 J   if aStr <> 'die' then exit;
! T& y6 I( d. @4 m; i2 I' c, W& {
" J0 l) O  I7 m* w8 R5 T+ L7 E   Str := callfunc ('getsenderrace');
! E1 s% ?( f' [+ n   if Str <> '1' then exit;
! ?6 n! W8 V. u( L3 P+ r, Z" w6 v0 a8 c- P; S' `
   print ('say 小小年纪_就有如此高深的武功 50');3 d9 e- G7 \$ n% r4 s, X% r
   print ('say 日后要继续修炼... 400');
7 ]7 ]+ C+ k6 I2 p6 f' G1 \3 ^) w. l1 {6 }' e9 N# D& N- f) g' ]0 z
   Name := callfunc ('getsendername');
- G; S7 k% A* {   Str := 'movespace ' + Name;& o2 F! e; B6 P( m- N
   Str := Str + ' user 49 106 55 600';
1 o0 W+ t& n! J, c+ m$ w) n   print (Str);$ n1 w9 {$ z* P1 d& p! L2 H- o' d
end;: k' y6 ~3 q7 e' M

0 q* s* T' E0 ~end.) `- W; Y& g6 y" X$ N) q- A

$ j! l9 C7 ~0 u, m-------------------------------------2 i9 I7 L- Q4 }/ n. u3 [4 z
$ \* B9 E4 h! O- N
*************************************/ H$ @/ E$ x4 ?
' \9 \0 s6 g, l# T# O* H
奖励物品代码:
3 k4 l. C2 o8 R8 y+ a1 m( n' S* p+ M( C, W
*************************************. L6 P. n; u/ B# @. o% c
- s5 i5 b* _) H! G
男子侠客弓服,男子侠客弓服,24,新手村擂台战利
5 K6 t0 S- u% T0 x. w9 s- P7 p) O# h4 W+ u
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,102 ?0 C5 A4 g' [& H% i' }& Q

) K6 E- W9 V: H- p0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,+ ?3 m9 a4 X$ O1 P
女子侠客弓服,女子侠客弓服,24,新手村擂台战利+ }: j3 ^1 s) T. b
/ U4 q9 Q# V: S/ f$ f: @
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
5 K; u# v: B" P/ M* ?. i: ~  n9 x
' d9 f6 z( o" y. j) L1 z0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,( p! G0 ^! |  t4 e- O2 {
新手训练拳套,新手训练拳套,6,新手村擂台战利! a& e+ O/ l3 i9 Z. o

, x1 k3 V, I6 @0 J品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,- F: z0 y9 y$ {4 u/ G" y2 A
( e8 t2 m, e2 @# w) V- }2 F
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,* n6 P& ^* x3 l# v* V
新手训练神剑,新手训练神剑,6,新手村擂台战利
2 X, C) T9 I4 _; \; Y8 F6 w# P4 m& L1 l) C& n0 T
品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
2 M. c" e/ c- ]# s7 C1 \) b/ u; d2 h  r$ ~- U
,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,4 q; C. e' ~" p  x
新手训练弯刀,新手训练弯刀,6,新手村擂台战利0 {$ Z/ {4 t9 a) E7 g( g
3 n7 ^; N" R# w" V2 ~" O) l
品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,
! u$ w9 A6 p4 c, _9 M7 o$ f9 j- `; l& z1 |- J; Y% b. |2 V
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,' z0 d5 b6 e! C0 {3 \2 C; S1 d# w. x
新手训练长矛,新手训练长矛,6,新手村擂台战利
/ h' q) O$ |2 \
; P! L1 v$ e- q1 G, e品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,
( R4 u) |$ s/ |+ x5 t7 R+ |9 Y! d
,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
9 J% h! x6 H6 [7 _+ c新手训练大斧,新手训练大斧,6,新手村擂台战利
, J) {* o9 G: B# Q2 C
; I7 m' q& `* _* x品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,
) r) }7 T7 @9 C% {
1 H& @0 d% H9 D3 l. o,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
7 c* ?- K7 Q6 d
+ [* g1 |8 N0 I# V) J7 A; e******************************************# ?' v1 G' E3 q: Z8 c5 ]6 H
+ U, R# l3 m8 s* T; v. U1 z8 M
- e  X; p4 W$ o) c) [- `9 e* J





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