游客您好
  • 点击联系客服

    在线时间: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 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
风雷版的新手村擂台脚本
+ q- S. `* E. L4 {6 _) e
) ?/ ^. _8 i. M  P6 @* Q' i2 v+ a
释放到同名文件夹下覆盖原有文件。
6 Z* s* r. u$ U& A; h7 V2 f( `
1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。# G2 ?5 m8 W0 @( Q
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。2 g' L7 O* c+ K% z: h5 G
(由11月23号发布的最新服务端修改)
  T" f7 D# W5 E" c+ l
-----------------------------------------
7 t! w( F9 z2 S
内容介绍:
. R" h# a' Y' a5 Z8 f% d8 I, R
新手村比武获得奖励:+ \+ W$ ~: p' s# ~* |9 _& I
同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0
0 t% v. _' a8 A5 C( O3 d

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

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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