游客您好
  • 点击联系客服

    在线时间:8:30-18:00

    客服微信

    Wkr-3000y-kf

    电子邮件

    3000y@wenkeruan.com
  • 手机版

    随时掌握游戏动态

  • 扫一扫二维码

    添加微信客服

Lv.5 解脱境
277号会员,0活跃值,2022.10.27 加入
  • 207发帖
  • 173主题
  • 0关注
  • 0粉丝
这个人很懒,什么也没有留下。
独家推荐 更多>

[学习资料] 新手村擂台脚本和实现代码

[复制链接]
快要发癫啦 发表于 2023-3-2 09:52:34 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
风雷版的新手村擂台脚本 9 y& V4 u! Q" M4 e1 ?

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

5 T  N: q7 v+ a
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

Powered by Discuz!X3.4 ©2001-2013 Comsenz Inc.闽公网安备 35099902000100号增值电信业务经营许可证 闽B2-20220593 闽ICP备2022004002号