三千论坛

标题: 新手村擂台脚本和实现代码 [打印本页]

作者: 快要发癫啦    时间: 2023-3-2 09:52
标题: 新手村擂台脚本和实现代码
风雷版的新手村擂台脚本
- V8 S6 e" N& w4 x7 L+ Q' U

- |" A9 u6 }# z1 v  O. r) {
释放到同名文件夹下覆盖原有文件。5 j/ i' ^3 @  A9 |# F
1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。
* X: C  g2 q) J, O; p+ B
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。' h% c4 {& j+ p. }" Z
(由11月23号发布的最新服务端修改)
% z: F  j( @! A, S2 v' H
-----------------------------------------7 m# X1 @8 c/ I0 q2 t/ A
内容介绍:$ p$ }8 p$ f2 B% z0 n1 e
新手村比武获得奖励:
+ i1 G9 e. ?/ ]0 K) q8 f. l1 G* J
同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0 ; w6 V/ \2 ~" _2 L: f/ `; h

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

; O# B4 }# ?; n- u( D




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