游客您好
  • 点击联系客服

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

    客服微信

    Wkr-3000y-kf

    电子邮件

    3000y@wenkeruan.com
  • 手机版

    随时掌握游戏动态

  • 扫一扫二维码

    添加微信客服

Lv.7 版主
8号会员,9活跃值,2022.09.01 加入
  • 127发帖
  • 123主题
  • 0关注
  • 0粉丝
这个人很懒,什么也没有留下。
独家推荐 更多>

新手村擂台脚本

[复制链接]
异仟年认证商人 发表于 2022-9-5 20:23:44 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
新手村擂台脚本
/ N1 q3 V, X; W" c) X2 O9 _: ?0 e% g$ u, K
3 M: U& |! G/ J5 I& u: o
释放到同名文件夹下覆盖原有文件。6 P/ F* G. x" L# _
1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。% y) \9 N) O, ^  S0 Z. q
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。
2 p' e0 P6 _+ _9 O" b(由11月23号发布的最新服务端修改)
; {) ^1 G7 y4 V) w( r/ J-----------------------------------------7 T3 p" W' v( a9 t: t/ E0 b
内容介绍:
* ~, K; Q- f% h* D新手村比武获得奖励:1 O( y5 m4 S2 J2 Z
同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏07 ?' v% [3 R6 G* V3 ~5 R
$ B- ?5 Q# d( `( ^
! Y, @# H9 i: @  u# t' F: F' ^7 A
最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较# v# y; r9 E0 A. O  X, G
2 h8 j+ u/ o+ v3 s+ x- i7 ^5 F, ?
喜欢黑龙,所以是黑龙的加强版!)
. W$ \9 i) i/ n' {+ e
9 L; r% c( x( S[replyview]+ F$ ~( {+ J4 T. N, F; A; H

# T  y# B6 y1 h-------------------------------------6 J* r8 D0 M: Z
) [$ T& `5 P9 }: a: F- ~
unit 一级梅花夫人;
% ^' h/ a3 n/ M1 J% A2 D
! B0 E) Y$ u1 I1 ~5 o0 A$ iinterface
0 |* k' A: h1 A5 \' ?7 ^" R8 @- g  J' p! j* y& i
function  GetToken (aStr, aToken, aSep : String) : String;& l9 s& `- I/ t5 K3 n" A
function  CompareStr (aStr1, aStr2 : String) : Boolean;6 Y' i/ I8 o# H- s$ r! W
function  callfunc (aText: string): string;$ O$ q8 A8 x2 M/ N/ E) w
procedure print (aText: string);" l' ^. P# t' @# `3 i* b. C9 |
function  Random (aScope: integer): integer;( X5 s. m# Q3 m, Y6 J8 l
function  Length (aText: string): integer;
8 Q' [: C2 o2 H/ b- L1 X  h9 [$ y8 ~procedure Inc (aInt: integer);2 B/ u$ c# v6 G+ L) d
procedure Dec (aInt: integer);( }5 G7 T; l. c8 R4 f% K
function  StrToInt (astr: string): integer;
; o$ s" E3 H3 I( d) u& zfunction  IntToStr (aInt: integer): string;
7 a+ ]8 W% ^+ U) L2 ~  X: f4 kprocedure exit;
, [. [) V8 y( `  M' r4 M, Q, W. i* _, Z; E$ A" ?
procedure OnCreate (aStr : String);
/ N8 O/ j4 o6 w% l4 b8 o; i) yprocedure OnDie (aStr : String);
' l. D; B" F/ l8 t6 V9 {* @8 _( Oprocedure OnChangeState (aStr : String);
+ x4 K: p3 m0 D* \9 z7 y* cprocedure OnGetResult (aStr : String);
; `+ V2 ?! l; a. S( g) q( R) k, s
implementation
6 ~* q$ ~/ h! t/ H1 W* g7 c2 l) ~5 b  Q9 @, ?  K3 T( @
procedure OnGetResult (aStr : String);
! l; k1 @3 d" c6 c; ]  Z" F9 ]6 B' P1 |var% E( A9 V5 u, @* q2 j  i& e
   Str, Name : String;
3 C5 w; M$ P4 B8 \1 g, Y   iCount : Integer;
8 N' f4 b# m* o8 B# O. _% Q% ]' Sbegin, }. n) [# b% p! I. H  Z5 y
   if aStr = 'start' then begin
, R% O8 X5 l- M      Str := callfunc ('getsenderserverid');8 ?0 X1 G* y8 F/ Z) \
      if Str <> '51' then exit;
; c$ e+ g6 {( M  Q+ ]3 k
# {7 l1 S7 B: j      Str := callfunc ('getsenderrace');
- _& f: k! M6 J" E: _( g  ?      if Str <> '1' then exit;$ c" r! J) U8 E! E3 T! `
8 J# {% H9 @# e9 R3 _  B
      Str := callfunc ('checksenderpowerwearitem');' b  T: N3 E  A' z; n' M4 s
      iCount := StrToInt (Str);! e2 R- O) D1 Y: W6 ^& o  J
      if iCount > 0 then begin  M  W& c, ^; w1 o7 L/ r
         print ('say 先将带技能值装备脱掉!');
  i  A! J% G$ N, B- _         Name := callfunc ('getsendername');
9 i/ J8 }" _0 q1 r         Str := 'movespace ' + Name;
5 a, ^. n/ Z- J% N3 J; x         Str := Str + ' user 49 106 55 100';
5 l# j* j( N# l         print (Str);* `; v! d1 C2 a- D+ t, g& ~$ n+ [
         exit;# O# w* d- f2 |
      end;
2 y4 |5 [! n2 f5 P- X      Str := callfunc ('checksendercurusemagic 0');/ C6 v) z/ V& U4 q$ i
      if Str = 'true' then begin
, y  a* h& G' K3 W, d         print ('say 选错武功啦!');
* b) |/ o2 A' T: V# d8 v5 v         Name := callfunc ('getsendername');
: {3 I6 v6 Y/ q. a/ K1 {& i         Str := 'movespace ' + Name;3 T/ B# e# ?4 v$ V- j! A
         Str := Str + ' user 49 106 55 100';( J. w, X6 @4 S- A2 o: i/ X6 Q$ a
         print (Str);
7 ^0 j$ E# s/ o         exit;8 f) {* ~7 G/ Y& O& w# ?
      end;+ _6 _# P9 N, P8 p+ B$ L) u
      Str := callfunc ('checksendercurusemagic 1');4 y& p5 r/ n9 M0 n
      if Str = 'true' then begin
0 l9 P, k) D9 Y  y# |% U         print ('say 选错武功啦!');
7 K" p1 V/ Q/ S, r         Name := callfunc ('getsendername');! ~8 \: c& e% h& l# O- [
         Str := 'movespace ' + Name;
, s+ ?1 l+ T* Z5 \3 Z: |9 \8 N" i- j         Str := Str + ' user 49 106 55 100';. @* X8 f: S+ Q
         print (Str);: ~. R* h& y$ ?7 @8 y% \2 V6 {
         exit;5 g; J3 _$ s! a- P) E
      end;% w% m& {; L3 c$ ^

, ^. M, ~" O% h5 e+ a% ~0 x      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');& X; A' ?& n5 x% G# O6 |" X3 d0 k

/ y$ H7 M0 D/ a) h- {      print ('commandicebyname 一级梅花夫人 npc 1000');% r6 S2 r, O2 V  @
      print ('setallowhitbytick true 1000');
9 w- ~, B. u/ u( P5 ~0 U' b, n/ w/ U7 j
      Name := callfunc ('getsendername');! g& G  B& P" M9 M/ g) F9 L
      Str := 'commandicebyname ' + Name;
. a+ g6 X. M: d4 X      Str := Str + ' user 1000';0 r( \- t( m# n, x. V
      print (Str);2 u1 v* S! s6 Z; G, w0 W

  |1 F3 s; [# A: @$ v: ^- o      print ('senderrefill');9 @; p! D# k" N  {, }+ E6 q& C/ u

5 }- \# R  k% I6 h2 |      print ('say 别害怕 50');
# _( t, h, o9 Z' q& h) x      print ('say 我会收下留情的... 400');( n7 @" [# t. X; z; W, U
      exit;1 n! \8 j7 M- ~1 x  I  x
   end;
0 p. z/ k# u4 U; e9 [1 |end;
2 U7 [' V3 A* W! s7 Q/ t7 ]1 S1 j. _! p! f0 a5 L
procedure OnCreate (aStr : String);
0 O9 u) T0 }' O+ uvar
" }) X' u; l: `$ R- h   Str : String;
) _2 X- V" h1 _4 E& h1 {% _begin
' t8 E8 P7 _! n) Q) X/ \   Str := callfunc ('getsenderrace');
, Q, d/ e6 o2 P/ B/ G) G   if Str <> '1' then begin
9 ?5 C7 |1 [- d* s* A% `      exit;2 D3 ?! }& b' d; w; \
   end;
" `2 j4 b1 e* P: Z9 I. S3 j! a/ D6 A9 \, C
   Str := 'showwindow .\help\一级梅花夫人.txt 1';5 T3 U& y8 ^' r# v& Y
   print (Str);* h) r3 Q+ H3 S  S( p$ J
   exit;# W; D  E) s2 l! a
end;
$ X  H/ o: ~* e0 l/ L
4 v+ n0 X$ F2 {1 Qprocedure OnDie (aStr : String);9 a9 ?- C" |: d1 m9 \& b" S
var
1 `1 D+ b. a2 Q2 r+ Q" s6 X" ^   Str, Name : String;
, o- Q3 f8 R( w8 q   FirstQuest : Integer;   
) e! Q( @; Y" E6 ebegin' n( U) i! J; Z2 \! S! W
   Str := callfunc ('getsenderrace');% c% \1 [2 M# s* d# S4 j5 A, S
   if Str <> '1' then exit;
& y( C9 q/ N; C; k
8 d, r- }+ Q# U& \" m7 w- n$ F   Str := callfunc ('getsenderfirstquest');
7 A3 k: r* P, i. ~- u   FirstQuest := StrToInt (Str);# b4 X% T2 P0 Y  u1 F
: J& B4 K7 `9 f2 n
   if FirstQuest < 3 then begin+ S. K$ N6 H  O! m9 G0 d4 R
      Str := callfunc ('checkenoughspace');
& O! ?( F+ ~  x" m! P      if Str = 'false' then begin+ n( |2 c% y4 _( f" U5 }
         print ('say 物品栏已满...');7 T3 Z4 L7 O2 N1 T% }
         exit;
$ N. Z2 ~3 p! b& ?8 r4 Y: c1 P      end;
' u2 a7 e/ \4 Z1 O: ~
0 F% m, m6 H$ h) x. t+ S  w1 o2 M      print ('changesenderfirstquest 3');
" L2 S! [9 N6 M. q$ J      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');
' B) t# e- [3 E* _5 p$ R   end;
* O. C" m& o& Q  @7 a8 {; ?  G% ]3 Q& e# _
   print ('say 我可只用了3层功力哟 100');
& h  m+ }* S* m' B4 k$ t" F4 c9 r+ S; `/ Z" [  w+ ~6 \6 _% K
   print ('mapregen 52');0 A2 h/ W) h. n6 P  z* C% u
% I* e. g2 N* b
   Name := callfunc ('getsendername');   
( M3 a5 f+ H2 [% `/ i# i* g' \9 G   Str := 'movespace ' + Name;
6 Y* y7 g2 |) K3 E' T2 R- @9 J   Str := Str + ' user 52 17 18 500';. g$ C) l9 @  u% }6 N
   print (Str);+ g- u3 ]8 E9 X
   exit;
7 j( C8 C' w: S* [1 z% rend;, D/ V6 L9 Y7 E4 W+ v. [4 W" g3 t
6 f  X8 f; V" E; z: H+ [
procedure OnChangeState (aStr : String);9 a! ^- O! x7 {& B; |4 N& w
var
. t$ t: C2 r) T8 g% H' u$ O) V   Str, Name : String;
  L/ R5 v8 L1 n# x/ G6 [begin2 d) k: \9 d% {' n2 s$ f
   if aStr <> 'die' then exit;4 n- Y9 Y" j2 e

( a, R7 z6 V4 V   Str := callfunc ('getsenderrace');
0 c- `/ O" Y; C2 g4 ?- @   if Str <> '1' then exit;. P8 t: _. J; o; u
  F  y6 z3 f  S, j8 t$ T$ g
   print ('say 别无他法 50');+ r/ ^$ v& P8 v  e
   print ('say 是不是修炼方法不妥呀? 400');' \- j' [' g2 k/ N4 N
5 P  |' y8 ]1 N( Z/ I4 v2 u1 ~
   Name := callfunc ('getsendername');) ?# r4 K# X/ Y# w2 F' L
   Str := 'movespace ' + Name;
: e4 H* s4 G1 U; P   Str := Str + ' user 49 106 55 600';6 L1 I- c/ _* @  g& c
   print (Str);
/ e9 f& E3 |' Q+ m  C0 C) _end;
& V* {/ R7 o3 h5 R/ n/ c- y1 R2 B2 b3 c/ x
end.
6 s: N, {: Q; I6 @/ g-------------------------------------------
  U3 h  b8 B! G& s$ P$ aunit 一级捕盗大将;
4 c7 `+ n7 J+ Z. H% L; u+ U& \2 c+ H( j3 e* l2 p0 y0 C
interface
. o7 @. S# p9 f
& _+ \3 d- C/ Jfunction  GetToken (aStr, aToken, aSep : String) : String;/ H# s/ v' p9 u0 ]  u: ?
function  CompareStr (aStr1, aStr2 : String) : Boolean;
0 t: ?9 q* |% m: ?2 Dfunction  callfunc (aText: string): string;& p/ w- P' w. F& h+ A3 @) j) l
procedure print (aText: string);& A# {0 H# ^! v- ?
function  Random (aScope: integer): integer;1 v# I6 v' Z. i( E5 Q
function  Length (aText: string): integer;5 W1 q4 T+ _4 n
procedure Inc (aInt: integer);
. m$ q6 F8 X! V2 yprocedure Dec (aInt: integer);
7 ?/ ]  V( u$ M# }function  StrToInt (astr: string): integer;! I3 W/ a! q" T& a! e
function  IntToStr (aInt: integer): string;
! E2 F: ?  i: q. [3 nprocedure exit;, h" t2 g9 c5 K6 F6 @1 V

9 A- }. e0 @$ P  Jprocedure OnCreate (aStr : String);+ B  R- R- b1 C
procedure OnDie (aStr : String);
, q  t1 V- c, D& M3 X8 p* yprocedure OnChangeState (aStr : String);
$ V0 q& `2 l. J& ^* Dprocedure OnGetResult (aStr : String);3 K5 \/ }% m: k: n" l  U- j' q
1 B0 r; _& g/ r0 O  q
implementation2 Y$ c/ j! P/ c; u. ]5 R

" R- ]! H! K3 X! }  oprocedure OnGetResult (aStr : String);
3 \2 F& z4 y4 }  @1 w/ v% \- mvar. c' M% `% o6 U) a9 `
   Str, Name : String;4 p) y9 J; m1 D# R+ I) Z4 g
   iCount : Integer;   1 y2 X: e* g" r6 D, I- Y
begin& z1 w7 A/ s( ^0 A; l" R
   if aStr = 'start' then begin: [; M# ?9 Y2 H+ W
      Str := callfunc ('getsenderserverid');
4 a! I- ~9 g: s# M( f  r# |/ b3 O      if Str <> '50' then exit;
+ f- C1 g, g$ w1 c$ D. ^5 G9 V7 [
8 A2 [9 O9 |# g1 T, i4 I      Str := callfunc ('getsenderrace');
3 C3 u' _8 m2 a6 ^+ W/ d      if Str <> '1' then exit;; m& I% ^# t- D7 V1 [2 o2 e

* c: T8 \8 |" X      Str := callfunc ('checksenderpowerwearitem');/ n; R: X# P) ?! q
      iCount := StrToInt (Str);" J1 |/ ^  Y. N4 S( ?
      if iCount > 0 then begin
$ {( R1 o5 K0 Y4 u% a/ Y9 f         print ('say 请先脱掉带技能值的装备!');
4 T7 _, k% T3 c# n8 D         Name := callfunc ('getsendername');
9 H8 Q# }. I& b3 H' d$ C         Str := 'movespace ' + Name;- R* ^, H( C: N2 K
         Str := Str + ' user 49 106 55 100';# v6 @1 ]! M6 ^* @* h  J: L, Z
         print (Str);
- Q8 v4 i" j- b' P: x( n; g         exit;
4 w- M9 J# e$ d  r      end;/ V0 C" @4 T, T, @& O# p) j& p
      Str := callfunc ('checksendercurusemagic 0');
6 C; ~- Y, o+ F: v* v4 _      if Str = 'true' then begin5 Y$ j* n, u. P2 q
         print ('say 选错武功了!');
1 y* \: Y5 a$ O" c+ b1 V+ z; d         Name := callfunc ('getsendername');
4 X. M1 r: z9 ?; U6 \0 f3 ~         Str := 'movespace ' + Name;
3 D* t4 _. O' ]' @0 q1 v( Y         Str := Str + ' user 49 106 55 100';
! d1 ^# p; W; }4 `% T  V         print (Str);
" ?  [0 I; |4 o         exit;
6 A8 c6 m) H% ]* b1 ~& |      end;
7 w0 d8 i- u+ W+ S$ j      Str := callfunc ('checksendercurusemagic 1');/ {: h- w2 h% ?* K) Y4 Z! ]
      if Str = 'true' then begin
" b, D7 ~8 b7 \- y. y         print ('say 选错武功了!');
- S* X6 t" h8 S" s$ q& ?6 c8 N         Name := callfunc ('getsendername');: j& Y! ~- N* ?6 A6 J
         Str := 'movespace ' + Name;9 c0 A* U2 T6 R% l9 [& |, Y; ?
         Str := Str + ' user 49 106 55 100';
) F, p3 ?8 ]0 R. R+ v         print (Str);9 Y5 {. L& J2 A' j
         exit;
9 h8 a' R  T2 s      end;
4 j  m, O" X' R" B: B3 J3 s3 k
+ U1 P( _+ A6 r1 G$ r      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');) @1 P- N( D! l7 I" P
. G) G( u% j* F4 b& n- f1 B6 h
      print ('commandicebyname 一级捕盗大将 npc 1000');
3 S  q2 g" V! A      print ('setallowhitbytick true 1000');3 y6 L( g8 Y' e1 u$ V

& l- Z  V3 O3 ?6 `      Name := callfunc ('getsendername');
" M& y) S$ |2 b& f      Str := 'commandicebyname ' + Name;" s% g+ `6 k# T) B/ L, H
      Str := Str + ' user 1000';
" ?) {3 b: @% L2 P- a" p( P      print (Str);' p# O" G7 g; @% V# E2 _0 I& m8 N
$ M$ i9 P# N5 Q0 i# L" ^' v" V
      print ('senderrefill');
  p& q3 L! _+ K  A* S- x( F! i: X+ r* V) R  M# l2 T
      print ('say 你还太嫩! 50');/ B+ A* v8 B: Z3 y8 T5 ?
      print ('say 留神啦_我可不会手下留情 400');5 @8 [9 A% l# j4 l' Q3 s. V
      exit;  p3 o! M+ c6 c$ C0 v$ O" O
   end;* z, V: j8 s* m) a% h/ U% a
end;  |# q8 x; t2 T, E8 r
. r. K  D+ n: j; t3 m5 u
procedure OnCreate (aStr : String);
! T# Y- g0 f0 j& l9 t7 N. v! Tvar3 X& i% y1 t, g/ H+ p" g- G
   Str : String;
3 t4 S6 ~3 V( U0 w7 bbegin
, \3 c6 e1 _, G9 Z) L8 u* b! Y   Str := callfunc ('getsenderrace');
  j+ c% i9 l+ p0 k6 F   if Str <> '1' then begin
$ \" ~$ o4 C; g. {      exit;- [% W. D) D1 J6 u5 y- s
   end;  ]; i  s! o4 ?9 ~+ h
8 |1 o3 a2 J; ?2 B5 ]
   print ('setallowhitbyname 一级捕盗大将 monster true');- J* c8 i" I4 A! |

7 F" B; f) g! X& x) C' Y   Str := 'showwindow .\help\一级捕盗大将.txt 1';
2 }2 }% n6 [( ~+ p2 N5 ]. n   print (Str);' P. n: F# q, m3 \0 @3 |1 _$ L
   exit;% }  a4 Y. Y% _
end;1 ]1 A$ x8 X, `1 w2 U
! S; e2 P+ [# P" b
procedure OnDie (aStr : String);
/ Q- z6 T* `) hvar
' {6 Q+ a' L* C: X6 L( b# A   Str, Name : String;
# V" [' F8 \/ ~2 y6 ~, n) t   FirstQuest : Integer;9 e3 g7 o0 ^3 A* d8 _( W
begin
( h2 G/ G2 l5 ~   Str := callfunc ('getsenderrace');. s: _- v6 y0 E+ m
   if Str <> '1' then exit;2 G$ s  e9 ]5 B( a3 U1 N

% |& y1 U$ W* ^) l1 E' S   Str := callfunc ('getsenderfirstquest');0 N0 }! |+ q. b
   FirstQuest := StrToInt (Str);& {3 `" a( }1 j. p, L8 w8 g0 ^6 A

! \2 S$ w- B/ m$ A7 T   if FirstQuest < 2 then begin+ K3 c! R5 i2 j" z* u4 [4 O
      Str := callfunc ('checkenoughspace');! }4 E* J9 S  [% T) u
      if Str = 'false' then begin3 Y1 G- Z+ D# O7 p' Y5 F0 [* H
         print ('say 物品栏已满...');# Y9 H: ^% G6 G% @5 E
         exit;
8 E# ]! L2 t& y: l) w' N      end;: g5 X! u) H# j, J5 e' Q: {
6 l* E4 V4 V2 J5 X
      print ('changesenderfirstquest 2');
$ j6 n' t& g8 }. O( r; t5 i      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');
+ @8 ]/ K+ T) N: u) o: f" Z   end;
9 z7 c1 R9 d3 G* o9 o5 X- p5 Y1 f* e9 [/ e
   print ('say 不可能_我怎么可能输呢.. 100');* g  y# C. J  d, S- A

, {9 }0 K9 j) a% `3 }# Z$ b' p; f" D   print ('mapregen 51');& n  h/ U# S6 E" U4 }$ Z

0 R0 e- O/ Q6 M   Name := callfunc ('getsendername');; [0 Q$ V" {7 d/ r# p
   Str := 'movespace ' + Name;
) @9 H# {- A+ J: D% ?7 q' _2 x   Str := Str + ' user 51 17 18 500';: d9 L( m/ l& K
   print (Str);% D, I$ P8 t& m7 C* F% L6 \( c0 J
end;1 j. H$ y* @3 G! U2 w9 O
% d, F* a2 j" @- [+ g# l2 a, i
procedure OnChangeState (aStr : String);7 }) p$ R  i. b% y
var
, x- P$ }+ K% h( w, S. i# X! K4 a   Str, Name : String;! L! X  Y7 g# Z  d8 m
begin
7 i; R5 O: m7 C5 L5 Y# K5 }# T   if aStr <> 'die' then exit;
6 Y7 U2 d2 S' i7 k, R! K, d7 i6 A& k0 B* V% U4 w% `1 ]
   Str := callfunc ('getsenderrace');" ~2 c5 [- D- Y- s" N. U
   if Str <> '1' then exit;
& f2 v3 c  K( _8 c. \
6 o* x8 _2 A3 y( n0 l   print ('say 回去再修炼个10年吧50');
3 x& k2 W: x2 E; Y" i. t   print ('say 到那时我在用双手跟你打 400');* f; S# t0 g2 B: w1 L/ M

: X. y( B3 x7 e  {   Name := callfunc ('getsendername');/ {4 e1 u0 U5 t. G* |  o: ]. }
   Str := 'movespace ' + Name;
  Z2 Q2 F0 A# F' @1 U3 o# S   Str := Str + ' user 49 106 55 600';- y; y2 X' Q( v- q) D7 \
   print (Str);  F% Z! @  ]* y* G( Z! Y% ]  [
+ v. q; d4 X  R' ~
   print ('boMapEnter 50 true');   
% q' f- n$ }- X- l; F# C3 Q) P& _end;% W* w% p. P5 n' D! D) c

) S8 t' @0 p7 m6 c: r6 Aend.
8 A4 w1 P( x+ {  m" z4 t, r5 ]9 `% N& f7 W' y+ S* O) f2 @
---------------------------------------
& L2 J' q6 }# G0 S8 [
8 y0 \3 X: R4 b8 n5 @" e, U- qunit 一级牛俊;
+ H5 [7 b( G0 x
1 N% y' j1 F( b  K6 R5 Rinterface8 ^6 |" \: A! Q5 L2 f

$ P( m8 D6 p; Z( v5 u: u) D! {function  GetToken (aStr, aToken, aSep : String) : String;* g4 R1 i$ c4 C- @; f# i
function  CompareStr (aStr1, aStr2 : String) : Boolean;
" |9 @! _# ~$ Y1 w; Efunction  callfunc (aText: string): string;$ c" R- h6 |- [$ i
procedure print (aText: string);  X( n3 a! T0 f1 o' z
function  Random (aScope: integer): integer;
% }/ g2 ]( w. Z' s7 ]" H! M+ ~function  Length (aText: string): integer;
2 I" @, S3 [9 c3 j( h$ oprocedure Inc (aInt: integer);8 q+ h) ~) K+ v! c
procedure Dec (aInt: integer);2 }4 ^8 h7 u$ z% i* I7 v
function  StrToInt (astr: string): integer;+ K  ]; R( b' i5 k) e2 S: C
function  IntToStr (aInt: integer): string;
3 o: A% d, s. b9 @( ^" m$ ~8 P+ |( yprocedure exit;  i& C9 v( l/ D$ T6 Q

3 m( M/ H$ t/ Y1 [9 X- U. _procedure OnCreate (aStr : String);
; m8 ~* J4 e8 }& yprocedure OnDie (aStr : String);
) `" B& U: q: m& d$ Cprocedure OnChangeState (aStr : String);
/ ~5 r, o# K( X8 ~* l( v3 Fprocedure OnGetResult (aStr : String);2 }7 l" ^) k3 h

& l3 Y! o7 N9 V9 ^% wimplementation
  N; U$ y% Y- |; g: t9 C2 w$ p; Z& ?1 [8 i3 [; x
procedure OnGetResult (aStr : String);0 c# k6 W6 h9 X7 v' y
var
; C* C' K0 A+ s" i! I/ r, t   Str, Name : String;/ s5 ?$ l9 `8 I7 q$ S
   iCount : Integer;
* R4 Z: V0 q, U+ D( ^3 Hbegin
2 K2 \' ^: B, W' |. e9 k   if aStr = 'start' then begin
' F3 K9 q& r1 w, X) P& Y0 T      Str := callfunc ('getsenderserverid');
1 k- }& M: _" M4 h      if Str <> '52' then exit;
$ P/ @$ |$ |3 R0 I6 i: V/ P
" X+ O. {9 v/ J% G: q0 Y      Str := callfunc ('getsenderrace');
6 o. e  r& l% B1 @5 Q1 `6 `3 @      if Str <> '1' then exit;
. p7 R' d% R+ i
- N( ~. S7 G3 C1 x- x      Str := callfunc ('checksenderpowerwearitem');2 d# q5 Q6 D# i% i
      iCount := StrToInt (Str);
2 K7 N- B- ]" K3 T$ @% T# g$ K. n% x      if iCount > 0 then begin6 o- o; N" ~5 }
         print ('say 请先脱掉带技能值的装备!');, k- N# i3 n5 t! S( C8 u. j$ g% S
         Name := callfunc ('getsendername');" P: A& L- q$ X
         Str := 'movespace ' + Name;8 |* S# M- P/ x3 z7 u0 }: @9 H2 j
         Str := Str + ' user 49 106 55 100';) C7 s* O4 O5 V3 ~# _; s
         print (Str);
- e0 Q8 b: O4 k         exit;* @: ]! O0 o+ \9 H/ e: x- e$ @
      end;2 o, ?6 h8 [5 h+ J, W+ E4 W
      Str := callfunc ('checksendercurusemagic 0');- q6 }# x, ]  g2 V! R1 L
      if Str = 'true' then begin. G) e; B+ _8 P+ m) T
         print ('say 选错武功了!');0 n* T& d9 w1 D- i
         Name := callfunc ('getsendername');
' e* b2 w, G) U! q% m) x: M         Str := 'movespace ' + Name;
7 p  v7 m( W; x9 H         Str := Str + ' user 49 106 55 100';
4 L  u& e) E+ v' w- @         print (Str);% l( J$ O% d$ _3 m/ X: ?1 S
         exit;
. u7 y4 R1 K; ^5 t$ V5 Y      end;
, L1 \2 V. {1 v$ a      Str := callfunc ('checksendercurusemagic 1');1 @( l# u/ s7 r; S' q6 u2 S
      if Str = 'true' then begin
( N( E) w0 p$ x# Z& I/ [8 }         print ('say 选错武功了!');
9 p. _" d" D9 Y4 \0 D         Name := callfunc ('getsendername');
7 }7 \, X6 q9 l% o  C         Str := 'movespace ' + Name;; c( u1 @6 R% m. X( Y
         Str := Str + ' user 49 106 55 100';
2 X1 V& }1 P8 }; k; K         print (Str);+ y) f% O5 e9 ]# c
         exit;
! E% c6 S3 U/ [0 i9 |      end;- O$ d7 F- t. s7 H4 Z) F

( G2 Y, l7 ~  I# z% J: ?% y      print ('directmovespace 一级牛俊 npc 52 20 18 0');- T7 H( X4 O1 g0 J" e, T

$ Z8 {% ~* p4 ]' v      print ('commandicebyname 一级牛俊 npc 500');9 j9 ^0 l0 K& W8 Y
      print ('setallowhitbytick true 500');      
; S- }7 \( c8 `
9 m) |0 t: a: _3 D      Name := callfunc ('getsendername');2 l+ Q, J0 v  o: }
      Str := 'commandicebyname ' + Name;9 M" e  L4 B  w( R2 A# d: n5 M
      Str := Str + ' user 500';
- B6 G! o! p- a3 l/ {/ e7 v- |- q      print (Str);
$ Q  P0 L# L9 a3 }' @5 c# r3 V2 J# w' [; d+ c7 T) l
      print ('senderrefill');( `7 |* L4 M+ w5 g# O" Y9 |3 ]' B

6 I/ r: }- }5 u      print ('say 10如果10秒内不能将你搞定 50');; Z+ m# E+ G1 M+ D2 d  J$ z' o6 R
      print ('say 就算我输! 400');$ b/ X* b8 n1 ]9 C0 L2 l5 k
      exit;
' X, k+ X$ s. [) }5 x9 w# B   end;
8 E; `; d; U* Yend;
& _  _% M6 u& d( M7 e
4 S( Y2 x! r3 z* v) p7 [procedure OnCreate (aStr : String);2 T0 I  U3 y- O- J  v; g
var; p7 k9 W' o3 y* d. Y1 _1 x- M7 i3 x% R0 k
   Str : String;# Z' O8 G# ]! s5 U2 C( W3 O6 f
begin
- W( [2 G4 l0 v$ z8 `' z0 X, X; ?4 ^   Str := callfunc ('getsenderrace');+ K  X- ], |  m
   if Str <> '1' then begin
: Q- Y5 `1 j: E! C: I      exit;
1 b; O* n3 c/ y$ ]. s   end;$ J  Q- W3 {# U$ S8 ]9 |

7 X; {* G7 G! |   Str := 'showwindow .\help\一级牛俊.txt 1';9 U" Q/ {+ W9 h; ^1 z$ w. H/ i
   print (Str);
3 A0 ^2 c8 C! ]* P, `7 @3 d   exit;- C* i( V& Y% I: p& o) c0 |3 d
end;
9 C) E4 s7 y8 s4 f9 M! T9 P0 b, |- R; X: J
procedure OnDie (aStr : String);
# M, @/ {* x! m6 B8 Lvar
( Q3 l& G; P- K7 s4 F8 \. x   Str, Name : String;" Y; ~0 }' w5 m: ~- x( A
   FirstQuest : Integer;   ) U) G% K* T4 j' _- d0 [" G0 a
begin+ {/ v9 w  R3 g! R4 U  b$ i0 C; U
   Str := callfunc ('getsenderrace');
$ s+ O" S8 {/ V   if Str <> '1' then exit;
" i7 ?/ @& _- {4 s" L
& V* X: P0 @6 y1 q# p$ \   Str := callfunc ('getsenderfirstquest');5 S1 L4 ?6 z# S- x
   FirstQuest := StrToInt (Str);
: k2 t9 b! a2 x; t5 b, ^$ v, e  |4 n- P, z1 W: \
   if FirstQuest < 4 then begin" G9 w2 p( X7 {, C& q
      Str := callfunc ('checkenoughspace');
' M( K) g  M( L4 Z( M+ T' w      if Str = 'false' then begin  X) D1 c" D! X  O1 J1 ~
         print ('say 物品栏已满...');, t3 L, I3 i: o3 q- v
         exit;. ]& f5 X+ Y9 L+ K9 K
      end;) O  c& u1 `$ h# [) Q! z* q* q
- }9 M# o5 u, h4 t5 H$ M5 q
      print ('changesenderfirstquest 4');
( s2 g4 }+ v( o/ b: W, P      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');& O! k# u8 l/ c% j" @8 }: d
   end;- p" a$ Q& m+ S5 C' @& L. ^
2 E5 ^: _( m: G
   print ('say 什么_不敢相信!! 100');4 H/ s1 V$ L" c* `

9 e4 n8 L) Y( w5 _9 [, A. U/ Z   print ('mapregen 53');
3 p0 {4 V. ~2 `* z  I, Y8 s5 b. e# {- Z# Y1 ^
   Name := callfunc ('getsendername');) d6 b  s/ a8 v  O0 z
   Str := 'movespace ' + Name;
7 F: ^. M! r$ j& K$ W   Str := Str + ' user 53 17 18 500';
, x; ?, M, ~& k) P, ?, Z   print (Str);  u: A, }9 k, M& [& t
end;
6 s  p. z6 g4 C; g8 r0 t, C1 Q1 L( X+ v; u1 i
procedure OnChangeState (aStr : String);( q5 l2 F0 b$ m6 {) f' g
var3 s  y  J2 |% V5 Y8 q" [
   Str, Name : String;
6 Z; \7 g4 w/ b$ L* @( [: h9 k$ ^begin
9 ]1 i4 C# c, s   if aStr <> 'die' then exit;
8 z' n; }, b5 O* t5 X) G0 H( t4 k4 ^5 S
   Str := callfunc ('getsenderrace');
2 ~& W" M% [9 u- d# S5 D   if Str <> '1' then exit;
+ p$ d0 Y* t& J* Y1 v4 x+ v; B6 u6 v$ j
   print ('say 领教了吧! 50');9 x/ T& T/ l4 `
   print ('say 差远了... 400');
6 F7 }# r& [/ l: @' w& @
9 ?( c. o2 s$ L4 i   Name := callfunc ('getsendername');8 p3 ^. l" X) N  u0 V; M3 h
   Str := 'movespace ' + Name;+ O* Z& _  M' v& J
   Str := Str + ' user 49 106 55 600';
, L3 C% n& F8 j2 P  r$ n   print (Str);3 ?; k+ h0 |. P, n4 B7 U6 S
end;" B$ K* ~% u5 x  b6 W* k) _

, ^8 }; p: O' y( t  Z. j: Vend.
! t% A- a  n% N6 `----------------------------------------
" r! T( S3 @) e: p' |unit 一级雨中客;6 I1 f; Q$ ?. F% Y3 B+ c0 o

0 [: G$ L0 E7 Ointerface& _8 W" z* J2 Q1 m9 X1 V$ R- [

9 ^7 l* X* w1 s" {  k% N6 Bfunction  GetToken (aStr, aToken, aSep : String) : String;
3 L* P' `1 N) O0 D. Afunction  CompareStr (aStr1, aStr2 : String) : Boolean;& \, g' B: \4 Z: A
function  callfunc (aText: string): string;! D$ }: D2 u3 H8 p1 |0 q1 _4 j. u
procedure print (aText: string);
5 J: J5 @# |+ X! F" S8 Ffunction  Random (aScope: integer): integer;, f- v/ D' T7 R9 |/ P: y; G# Y
function  Length (aText: string): integer;
, {* S; I8 b: p2 _0 B* v3 ?procedure Inc (aInt: integer);  s! Z6 f3 j8 z4 l0 |' w
procedure Dec (aInt: integer);
6 {8 I8 v7 N$ ~6 I/ kfunction  StrToInt (astr: string): integer;
6 [* i6 p' I- o- H4 E( S( Ifunction  IntToStr (aInt: integer): string;/ ~. O! q$ Y( }, w5 ]9 e3 z( v. G
procedure exit;3 `" p; O8 J) P' }' s" Q" n, V' O$ G

) y6 V5 ?7 o2 rprocedure OnCreate (aStr : String);
5 u1 x5 e  A; H% m5 eprocedure OnDie (aStr : String);. q: }0 g# f9 [
procedure OnChangeState (aStr : String);
( }9 A. o; B0 u: V) Zprocedure OnGetResult (aStr : String);
4 b8 B( G$ G$ s) m- q3 T$ L7 u
, j; W9 _3 [- F  H7 }" N) wimplementation) U/ ]4 `2 Q& l  h, j

, l* ^- Z6 z4 T1 N2 [2 p6 U! bprocedure OnGetResult (aStr : String);, s* |/ z1 h/ ]( L; b* N0 \. h
var: s" H0 e. ^7 q2 O+ U- W( |
   Str, Name : String;
( g* Y' S! Q8 D, B   iCount : Integer;, d5 B9 m3 G) H; W- c" y
begin! s8 n2 \3 X+ ^/ q! N  w
   if aStr = 'start' then begin
' D" o. t8 |/ ]/ Z, P; c      Str := callfunc ('getsenderserverid');
- F, n& p) d, h8 _3 I7 \4 c      if Str <> '53' then exit;; x; F* n. L  u% E
7 Y; R3 S# ^/ B$ Z, ^
      Str := callfunc ('getsenderrace');" m7 H- g' \/ U- T2 c& E3 i6 w$ X
      if Str <> '1' then exit;% {& E0 R& N+ u3 u
' ?/ }' L+ Q( I" `
      Str := callfunc ('checksenderpowerwearitem');
6 z+ d" V" d! [, f! U& ]( v7 t9 U      iCount := StrToInt (Str);
/ B6 R# y; O( j( G, N& V      if iCount > 0 then begin
6 i/ G! Y) x" ?9 f" e: ^         print ('say 请先脱掉带技能值的装备!');
7 A3 G' m# b) u         Name := callfunc ('getsendername');! z+ T1 L8 g# j5 M9 M
         Str := 'movespace ' + Name;- T. ]- Y: ~3 ~7 e5 Y& B
         Str := Str + ' user 49 106 55 100';
0 I7 E- H5 M8 j6 ?; w         print (Str);: `' N* D, C- M. j
         exit;
4 k' c) @; d0 |" v% v3 L/ U( ~      end;
5 D0 A4 a, |, ^$ `      Str := callfunc ('checksendercurusemagic 0');
3 W4 z1 l" f6 [- I4 Q      if Str = 'true' then begin% A7 Q( R& T/ u  v
         print ('say 选错武功了!');
# O5 e8 f: f# U" s* J8 K4 W         Name := callfunc ('getsendername');
& a3 _1 |; v& f* V9 O5 }: r. w         Str := 'movespace ' + Name;
. ~  T1 Z5 Z4 I( S+ D* R         Str := Str + ' user 49 106 55 100';
0 }2 @( U8 f+ @1 z         print (Str);% j9 q5 ^  u2 r
         exit;1 I8 o; R" _+ |& u! D% @
      end;" k5 v, M3 q9 d! _3 _5 I
      Str := callfunc ('checksendercurusemagic 1');& b, q" k/ z  @9 C& [1 Y
      if Str = 'true' then begin. x' g4 a2 R6 g0 i6 d! m
         print ('say 选错武功了!');; v  o- m$ U1 v# D
         Name := callfunc ('getsendername');- g9 p$ Y# v+ n+ |* b+ a; L1 o
         Str := 'movespace ' + Name;
$ `' Z" i+ h# ^8 r" V9 o$ J         Str := Str + ' user 49 106 55 100';
/ s' M3 E% _& Q         print (Str);
% K! e3 A+ s, x! t' U: o         exit;
" R- A) A/ C. c! k" |      end;) \8 T4 }' v0 s, l' T

8 Y/ E! l! x% L/ F$ S, v      print ('directmovespace 一级雨中客 npc 53 20 18 0');  g4 \4 \2 k  D' B  O* ]( |

- h/ Y; l1 t! q# S      print ('commandicebyname 一级雨中客 npc 500');6 Q/ e  ]" ]# D# U
      print ('setallowhitbytick true 500');      # @; Q, R, R# x/ J
# _+ d6 m, P# w+ y: z
      Name := callfunc ('getsendername');
1 X% v6 c! a( W  R( Z      Str := 'commandicebyname ' + Name;
) K' T# _6 n( r" }( K" f% Y8 n      Str := Str + ' user 500';# C- L% l; C0 W8 ]
      print (Str);
+ ?* L" t9 U5 }# Y( J  ]9 ]8 A
      print ('senderrefill');$ I7 O* \' w; a8 H+ \/ Z
9 K3 \2 M  \- A
      print ('say 领教了 50');- t- T; f7 p1 T/ @0 c# _. a
      print ('say 开始吧 400');. Y; b. M3 x& Y
      exit;
: O4 z& G* F7 v   end;
+ D3 {! K' f  g5 O4 u. c7 ?" S9 oend;
4 F3 K3 C- v, q0 Q  P) P  w* {& J# ^' W& }! L0 }  Z  V
procedure OnCreate (aStr : String);
3 z8 ]! ^; P; kvar- E+ E( P7 V9 U# k  o* G
   Str : String;
3 l+ T( s, h9 Abegin
+ ]; ~# a6 D. w4 ]+ j' a   Str := callfunc ('getsenderrace');4 Y1 J$ O  @/ {" \+ j
   if Str <> '1' then begin  F1 `2 l& X0 w2 j3 B
      exit;
  |5 u: C. f3 @+ Q8 _" ]   end;
7 k. c  D  T, Z* K; e2 S6 F
/ t+ ]* Z7 D7 Q+ B! f( M/ _$ d% x6 I6 S   Str := 'showwindow .\help\一级雨中客.txt 1';# s: `1 X  W6 r& @, X2 f5 J
   print (Str);& j3 \& {; I+ M3 V: p
   exit;
0 B3 m1 g& I9 q, t# d- Kend;5 Z3 G' L! Z$ ?/ i4 p) ~- [$ W3 l

" \/ Y( `8 F3 g' P, I2 dprocedure OnDie (aStr : String);: M# o- _5 R9 [' [
var  y8 Q. M2 B9 s& ^2 P* Y/ T
   Str, Name : String;! ^) y3 z. x- C% K
   FirstQuest : Integer;3 b$ d4 E: D8 C  k5 {) g
begin4 f, f! u( S+ p
   Str := callfunc ('getsenderrace');
, t+ x: j. \% @   if Str <> '1' then exit;
- c2 H0 u7 n! t, }4 r; L+ N
- x1 z0 k6 T' w7 O% c+ M   Str := callfunc ('getsenderfirstquest');
4 \' }" y4 k  R9 H1 z6 R   FirstQuest := StrToInt (Str);0 S' c& r) J  T6 v

6 A0 U* @+ B" _9 F" \# C   if FirstQuest < 5 then begin# C+ e$ @) ^. A
      Str := callfunc ('checkenoughspace');
" z0 X# h$ D. t* r: w$ ]) x0 u9 g8 \      if Str = 'false' then begin6 q+ @6 ~2 ?5 o( F/ V, Q6 e; @
         print ('say 物品栏已满...');
" w; N- G; G) W1 [% ?7 g0 y) O2 {         exit;2 N) X1 K& V- y: Y% s/ }. B
      end;
+ `- h. `+ }7 t
5 |, r" F2 v6 T8 |      print ('changesenderfirstquest 5');4 `; Y" T! c# {
      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');) z% H; ^+ q, N$ b2 z( a" }1 K
   end;0 Z& @. y+ A4 s  H8 }* W" E
3 t  e9 q7 X7 K
   print ('say 早料到了_佩服 100');
3 |; @7 [, I7 |! e
$ w0 Y6 Q: \. y# N5 [   print ('mapregen 54');4 O  M: e2 ]7 t& w5 m/ T7 X7 Q

1 X8 Q. w! L0 d3 h1 K- E5 K   Name := callfunc ('getsendername');4 n9 O; C, e, k7 n! q
   Str := 'movespace ' + Name;
8 W- }& A" D1 ^& S% W   Str := Str + ' user 54 17 18 500';
1 j% E0 c2 ^' D8 `9 g: P9 T/ ~# b) |   print (Str);
6 X. Y* \1 b( c5 c: Qend;6 }. Q$ z4 ?7 ]' l  @  Q9 U5 y
8 I+ Q/ O, o( Q% _1 b
procedure OnChangeState (aStr : String);3 V3 F8 u" z1 y, j0 u6 u2 u& z
var
) m, d- E( g" k4 s% ~   Str, Name : String;
- d6 C1 S3 N; Y$ b6 ]& }begin! U0 s+ J) G6 W; W
   if aStr <> 'die' then exit;
. I7 t7 h6 Y* H( a$ R( v
0 [: A- I" i5 y7 V1 _   Str := callfunc ('getsenderrace');
) k2 V! s. F. b) M6 l# A3 Z   if Str <> '1' then exit;( Y7 E8 F. y& Z0 O1 X
( }- J* N& K2 q7 _* X
   print ('say 不错。只要能维持几秒钟');
! A+ @) `  b% M; A6 K5 B  J   print ('say 到那时谁都不是你的对手 400');5 W! Q. z1 s. G, @2 g/ J
9 g1 x: U- M8 D5 F
   Name := callfunc ('getsendername');
/ R$ P/ z. V( N& u   Str := 'movespace ' + Name;
4 U+ Q/ A" r! g$ w& {0 r   Str := Str + ' user 49 106 55 600';
7 V5 L, o! {0 f, M   print (Str);# L4 e( D6 G6 E+ ]& ]% Q
end;6 f# U* P7 \, ~9 B" G
2 i8 v% A; [- }1 n$ q9 h' P% M
end.
/ L2 j$ b0 O$ p$ x1 A2 h+ X
, T! s* l$ }' ~3 e2 B* o! x; P. t--------------------------------------------------------------------------------------------------------------
. ?3 `9 ~: T: `. Y. ~; e' K/ m! z% d1 E+ Q( T3 B# _% ^6 l7 l0 C- o0 o
unit 一级老侠客;
8 K9 w/ g5 ~2 R( Z1 H0 o1 r0 A9 ?% t2 f" n
interface
9 j8 W2 R+ u/ x
1 F; W( m. m: Nfunction  GetToken (aStr, aToken, aSep : String) : String;
/ \0 P) c4 u/ j, A0 f0 ?- |; ~function  CompareStr (aStr1, aStr2 : String) : Boolean;7 x7 R8 z# t1 E' r' R' ]. W2 C
function  callfunc (aText: string): string;! M6 }' R1 K0 o8 n2 s- G
procedure print (aText: string);# M& l2 w9 _" z- B% f+ Z0 O
function  Random (aScope: integer): integer;5 W6 c8 l/ f6 f( q
function  Length (aText: string): integer;. R9 r) F9 E; D; o: s& K, B( h
procedure Inc (aInt: integer);
- n- H2 q% O! b1 Dprocedure Dec (aInt: integer);
6 [* ]# @9 l3 B6 E0 ?  x- gfunction  StrToInt (astr: string): integer;! W3 x, s0 \! k: N2 E8 V0 k
function  IntToStr (aInt: integer): string;- |) N5 e: v! g  \9 x6 k
procedure exit;* ~* i% l" S/ h5 P! e3 C
' T3 n) Z/ s2 h: U
procedure OnCreate (aStr : String);& y6 I% E! J- i7 `* I3 m, R' \7 H; h
procedure OnDie (aStr : String);0 @/ I6 ^, ?, x7 _
procedure OnChangeState (aStr : String);
$ m3 z; Z! I; ~% B% P3 T  Yprocedure OnGetResult (aStr : String);1 A  k. ~3 }* k+ e4 k0 `# e
% ~) h4 L2 k# _6 x& R5 |
implementation
( V8 z& A) P2 U  h2 v1 l
9 V0 \2 x( F* V6 o: S4 V- J( Xprocedure OnGetResult (aStr : String);7 f) P8 j$ ]. z# V; S
var4 Q, o1 T, |2 C8 w% [
   Str, Name : String;
: s  k9 @4 ?& \& n   iCount : Integer;   ; a' a+ o% v* z- j
begin
; }1 o! v: M3 Q, n   if aStr = 'start' then begin6 q# C# I5 F8 N% v/ t
      Str := callfunc ('getsenderserverid');
' w0 }3 _  k! i( y9 C      if Str <> '54' then exit;# o6 h4 g1 d1 S7 _

6 ^- H( j' ]* i# A; c( X      Str := callfunc ('getsenderrace');
1 n6 K1 T$ A% W* y0 u  X      if Str <> '1' then exit;
) {* u0 W1 ^  ?- j  U" ]& ^: _9 B! O" ?
      Str := callfunc ('checksenderpowerwearitem');+ k( b: j% u# E5 \/ e
      iCount := StrToInt (Str);
5 s9 Q7 \) Y, ^" W6 q      if iCount > 0 then begin$ X; e4 A1 f7 g
         print ('say 请先脱掉带技能值的装备!');# b1 U# g) N0 p' O
         Name := callfunc ('getsendername');5 }" e, O2 @  n' y3 `$ m1 D4 v
         Str := 'movespace ' + Name;
5 o4 q2 ]7 y% W         Str := Str + ' user 49 106 55 100';
- a+ c5 ?' x& U# `/ o7 i& `         print (Str);% J, I' r- u- K" c, g
         exit;- @, w/ D5 ?0 ], }0 g8 l+ O+ v
      end;. O. ]  T8 c6 F  s
      Str := callfunc ('checksendercurusemagic 0');, S) A& W5 c4 C% P  |
      if Str = 'true' then begin
( ~3 ?" ^1 o6 z% D& E5 p         print ('say 选错武功了!');
& ]  n- B  ]" B6 Y$ J# K% m         Name := callfunc ('getsendername');
% m2 ?8 b6 M! s- ?         Str := 'movespace ' + Name;
8 g* g( J$ U/ ~+ d! g& a         Str := Str + ' user 49 106 55 100';
, ]" `( p+ c2 \) d/ w5 t         print (Str);* w: a* w2 b, ~2 R* E" T
         exit;
" _1 X/ n5 W: j% Y; @# x      end;
( {4 b' ^7 \( t  _      Str := callfunc ('checksendercurusemagic 1');! o4 G- f- ?% {3 m* h
      if Str = 'true' then begin
6 U$ U2 l6 B' Q" n+ N$ c3 A         print ('say 选错武功了!');4 R# N( K; y" N$ @% ^. q
         Name := callfunc ('getsendername');2 J5 k0 }) y! N
         Str := 'movespace ' + Name;
: m5 m. O4 p$ I( R* q8 B         Str := Str + ' user 49 106 55 100';
2 o! e; D" b) p  ~1 G0 M' G         print (Str);% ~+ w3 B; a* M' L) j0 J( H
         exit;
0 I4 a0 v7 B! b8 [( a! l7 Z: o; X' F      end;
$ ?# J" J0 E8 ]4 \& R0 t
5 e6 t" B  Y% C* g/ a" r      print ('directmovespace 一级老侠客 npc 54 20 18 0');
; }" Y0 ]. T1 R/ Z% k# z8 r
2 W) h+ D& r: m. h      print ('commandicebyname 一级老侠客 npc 500');
: U0 q# f4 w# s* p- n      print ('setallowhitbytick true 500');      9 n  f/ ~% r4 U# ]. h3 R

; j1 X% y+ w6 l      Name := callfunc ('getsendername');
0 g2 t, f/ o! ?$ d$ _      Str := 'commandicebyname ' + Name;& A& Y1 ~+ W) K2 @% i$ Y
      Str := Str + ' user 500';- T3 S# c/ p: w$ L' }; ]
      print (Str);
) x1 d4 [: Z' ^; X. D( N, _8 n8 }. b' b$ ]& G! b2 k
      print ('senderrefill');
/ I5 }: P' v6 Y8 Y& {0 V' o8 n# E6 x$ i& c- ?
      print ('say 如果你实在想比 50');
+ K# F( ]+ O; h% Y' {& s8 w1 O      print ('say 我将奉陪到底 400');
! b; P) Q* y1 }! B0 K      exit;
. Y( m( @0 r4 X/ N; J7 s   end;
4 P" W4 ?" o4 L+ t5 T& M. Rend;
7 v# i& _9 v/ i+ C6 m4 n0 t6 d+ f6 e; Y2 j( E+ s
procedure OnCreate (aStr : String);' A: L  b! m8 A# B: P; m
var( n" p5 k! h1 i/ a% b7 m
   Str : String;4 i& f& G( f: G2 G* }
begin/ @- y! I) F1 n! ^4 P& p5 D
   Str := callfunc ('getsenderrace');
8 a  Q/ O6 p- A9 l8 S* R5 ~   if Str <> '1' then begin
2 T# Q  j6 u) }1 w: |, Q4 \& J6 V      exit;
. e. u2 d# ]# A' L3 B+ Y   end;: L5 y' [4 V" z0 D& Q

, c  s3 j5 j8 }7 G% P+ W1 @1 Y; [   Str := 'showwindow .\help\一级老侠客.txt 1';
6 u% F+ Y+ P% ~; w+ q. ~$ S   print (Str);
  E: t6 m2 v" S0 y5 X1 x6 Y4 \   exit;8 l0 l9 U! Y: N' O
end;8 B- D8 J* S$ J; X; H

8 @/ q  ~7 S2 G, y- i9 E4 o" q- }procedure OnDie (aStr : String);2 z, T2 t6 H! `6 P0 E
var
- J  K; n0 w% n8 A   Str, Name : String;
" O7 G" J, V" b; @   n, FirstQuest : Integer;   : w0 D: J. {' y1 b7 w* a, Q
begin
% u6 A' {, t  |- _   Str := callfunc ('getsenderrace');
+ C3 z/ t4 _& _( I# v! @' G8 H   if Str <> '1' then exit;
( Z- U7 `- v( T) j* h
: Q* v( s0 [" c1 N7 q# a/ j   Str := callfunc ('getsenderfirstquest');
( W; M8 f! @' _4 b   FirstQuest := StrToInt (Str);- u3 l6 m" A2 \9 A* [7 a8 |! h9 J- C
* m- Z* o1 r: `4 q8 K  M
   Name := callfunc ('getsendername');+ g) [$ u+ q: N" A3 p( q$ B
$ ]% E' t2 F" O. }& f
   if FirstQuest < 6 then begin& R/ l! a: e2 v+ u3 H
      Str := 'sendsendertopmsg ' + Name;% u4 ]6 I- [( c9 ]7 ~% L
      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';! |& V' J5 Y6 e3 S' P1 P
      print (Str);* ?9 u2 k2 d' H9 C% M+ @

4 e; f  }7 A3 e1 I  {" h) j  h$ V      Str := callfunc ('checkenoughspace');' X0 U' N+ L4 l* I% q$ e8 H
      if Str = 'false' then begin" J- \* i1 {( G4 J; }' `: W
         print ('say 物品栏已满...');5 `3 E0 ?: t4 M4 @
         exit;/ \& C& B. x6 X& J2 V( u
      end;8 l7 X/ r. }& p4 J

$ Y/ {3 ~( f( _      print ('changesenderfirstquest 6');
: x. \0 O  t3 o3 V
( l4 @0 J7 Y1 m; _  j' j      Str := callfunc ('getsendersex');
% J* H, S% F- k) F# o" ^) J4 g      n := StrToInt (Str);
1 N$ D1 ]2 b$ N6 k1 i. v# Q. V1 z      if n = 1 then begin
7 J* ~$ {" k( f% ?7 ]         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');
. [, R* J# m! Z! z5 p      end;! x8 q' }: N- q. }, B$ s6 @
      if n = 2 then begin
( h$ V# N; Y( o+ V0 S$ |         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');
: K, X8 H1 V$ n% X% ]" `) P# K      end;1 Q  l; d' w! P8 M; e2 p8 q
         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');5 C8 a$ [; Z" J; I! T  r
   end;9 n1 V: [5 t- S; Z
5 }* d2 E+ R5 N1 o
   print ('say 佩服_佩服 100');' J3 w. S6 b, H6 b
$ l# v( i- U+ r- B) _, |2 t
   Str := 'movespace ' + Name;
( x  t& `$ q& E% M! k9 g   Str := Str + ' user 49 25 35 500';
+ q* r, S4 h- }3 |0 v) L   print (Str);
6 L+ o9 |1 a$ aend;: r0 E9 c3 a$ Z# D) I% [) L( _

  n  l5 l+ R* l0 hprocedure OnChangeState (aStr : String);
* n# h6 t+ ]$ D$ z+ C& b% Kvar( l* n# z$ i8 e! c" [0 P; _# \: ~
   Str, Name : String;- A- K" D; n/ @
begin
; _# O5 v/ L2 P& `0 ?   if aStr <> 'die' then exit;
! H" N6 J6 O" z1 ~. s; v4 y- D# \5 A- j) W
   Str := callfunc ('getsenderrace');. r3 |$ [+ s5 D  b' ~/ @. w
   if Str <> '1' then exit;6 {7 r4 m, j; z, Z' G& Y5 F
* J' u) [* O8 v6 y3 g
   print ('say 小小年纪_就有如此高深的武功 50');
" v+ Y7 M7 t7 c3 w& z   print ('say 日后要继续修炼... 400');/ r- v  K- K4 @2 j0 b9 V
1 _, R" }/ b0 H- R
   Name := callfunc ('getsendername');" \+ [% q) g( t; k8 B8 j; k: ]! d
   Str := 'movespace ' + Name;
: y* b3 o6 j+ c8 N% R   Str := Str + ' user 49 106 55 600';
+ Z) A2 ~) M, {# t$ Z   print (Str);# t/ h8 u0 j% o" V" O8 K" ?
end;# w$ E6 P7 h8 M* s4 W# j" j

$ G# e' U+ ~6 J- l* Q/ [. J! Uend.+ r/ U+ S" |+ v% e# j2 _5 H
0 k% V1 z1 [, z# w
-------------------------------------- L1 x7 _; ~, J
4 s- ?8 [$ ^3 O! ]- a- r4 e7 M6 i0 w& @
*************************************' j7 y* g& m6 X0 b, u
1 O! [9 Q- `7 T$ m! v  ]
奖励物品代码:
# K! f" W; F6 K) j
. v0 t+ l& ~% m& u*************************************5 B7 M% [) o' [6 ?6 S) k- _
% c/ D/ r8 Q# L4 ?0 y* w
男子侠客弓服,男子侠客弓服,24,新手村擂台战利
9 E  f, W! N1 I! M  A$ y. t1 d# x0 W
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10! S8 \3 I, k. B1 l
: t' Z; Z; I5 p- Y3 ?
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,0 x/ ?) w  S' j9 G& J1 M# X
女子侠客弓服,女子侠客弓服,24,新手村擂台战利
# m. L; ~* ]2 @/ @  R5 O! K! M. w' N1 N- x* _9 \
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10" S% O# @0 Y2 K" U7 m2 Z1 h

, k# v, I  ~' ~0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,7 }0 ^+ n- n* {3 m" B
新手训练拳套,新手训练拳套,6,新手村擂台战利
: J3 \$ L% V6 e' z! _3 `7 \7 x8 @
品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
9 Q6 `% j+ w& f* N9 H* \: `- G8 L3 f& B3 g
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,' D7 Y& r; @5 H/ n5 w
新手训练神剑,新手训练神剑,6,新手村擂台战利; K. U' _$ w! i. H4 i: J$ `

$ Y' y) E1 I+ [+ d: q& t品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
+ S5 Z  }2 b- O+ Q5 n" P) Q9 S& z- K& A! \: t; _* e0 l, A
,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,% e: |) |9 t' E  E% X0 X
新手训练弯刀,新手训练弯刀,6,新手村擂台战利% q2 Q$ G' h; [+ `7 \$ T3 N

" d! m1 Y# Z* H0 X品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,
2 I. m- _5 B8 P# D$ |; {* G
. \1 p- x" C  M% m# B! ~/ y% w,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
# i4 V% k, {" Y0 R新手训练长矛,新手训练长矛,6,新手村擂台战利. E& y3 A& k% O, F
1 N" _+ @: a; `
品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,
6 b1 J. S* p; R8 ~: e, D
  ~9 e9 N: |% M- ]% z,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,4 b& r7 a) f( ~. v0 B
新手训练大斧,新手训练大斧,6,新手村擂台战利# I; {2 q0 l: U7 x7 o
7 K) T9 S) `0 Q. o
品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,
) G5 o/ z# h( e' [8 k$ X1 {7 W, x4 D2 X& P$ W
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,3 p0 u4 t  Z0 Y8 M; m

8 `  c+ X4 y5 e3 n, T5 h( n: ~; e$ C* M******************************************! E$ [' u2 p) D) {; B
7 ~) }5 M8 n% C; Q5 X0 B

% f* e1 b/ U# F/ @2 ?9 m" ?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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