游客您好
  • 点击联系客服

    在线时间: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 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
新手村擂台脚本1 X+ ^7 l+ B7 y1 B

' I! x7 y5 F2 N4 S# V$ h
! q5 f3 C5 {' ~1 D* X: j释放到同名文件夹下覆盖原有文件。
, y3 [$ V  q0 w1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。/ }9 c, w3 b# B" r
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。9 Q, y9 e3 R, C. N: X3 W; V
(由11月23号发布的最新服务端修改)
, @: a' l5 R8 V) d4 a: Q0 T-----------------------------------------8 I6 e' B, G0 [( l+ m
内容介绍:
7 U, F* P4 T- c  B新手村比武获得奖励:. C' f, l- `0 l2 n) b6 K( P0 Z% o
同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0
7 P& d. ~) H. d4 {$ g3 o. i5 [. z
- @  z' t& ~2 P+ e- S  q# ]& t3 ]+ b1 F: Y' m8 b% \! U
最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较
" A1 `+ I$ h$ q1 p' I% C$ |( V- M* T3 K  j8 x' u, D
喜欢黑龙,所以是黑龙的加强版!)
) z" h) l0 c8 X" U" {* [
. |; F: s* n; w! \( L[replyview]
6 k8 f  f% |# F) W
& n$ Q: l- Q- d# r  r-------------------------------------% m% r0 S& F, ?. I

* q+ v" V% H* }5 q" ?: Qunit 一级梅花夫人;5 S  U4 v$ s5 i- z; ^' q2 o

# q1 [) M7 c. T) u  k4 uinterface0 A" K7 H# a. j4 p" r  j

/ {, L$ v+ a, H8 hfunction  GetToken (aStr, aToken, aSep : String) : String;
9 O" ]( o. V8 D5 x' x% J: tfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
. z4 w( B% O: D8 Pfunction  callfunc (aText: string): string;
2 R- t: Y# J, F/ U) J8 w6 [; Sprocedure print (aText: string);
* g: A5 [4 L& Z5 q; rfunction  Random (aScope: integer): integer;# y' ~8 h, w0 |  e) g' K. p6 M
function  Length (aText: string): integer;
) m2 c/ H$ z2 Wprocedure Inc (aInt: integer);
% v" p  r0 d( m) pprocedure Dec (aInt: integer);
! Q( \9 q9 A3 a: M% f& [function  StrToInt (astr: string): integer;& q# F* K* O# ]6 F% w* f: `
function  IntToStr (aInt: integer): string;
4 L( l/ i5 T$ ~( N1 y0 P7 d/ E) cprocedure exit;4 t, S3 l- Y* h4 h& |7 ^
5 c6 o1 ?6 {! J, o1 ~
procedure OnCreate (aStr : String);* a: l* s( b1 X: N7 s* C+ o, }! P/ f, b
procedure OnDie (aStr : String);* @/ d5 v( O& X1 Y) V
procedure OnChangeState (aStr : String);
7 y, b: X9 x6 S3 m/ Q* bprocedure OnGetResult (aStr : String);" J/ M- f+ X$ z# P) ]
# |+ a+ f; z- b! r( Z9 ?( L
implementation) b% h3 F3 Z& o! u5 C/ r& ~

" I+ W7 ]/ s% a9 |  R6 b' ?procedure OnGetResult (aStr : String);8 m, Q4 O  v% ^6 J7 f) k; @0 ^$ H
var$ r/ j" a" w* A( z' e
   Str, Name : String;
& Z. F- g0 |$ J, n/ S   iCount : Integer;( W6 s! U7 l) p3 [" @! {5 v
begin
& E% T3 N! U2 I+ m' `! V. S   if aStr = 'start' then begin- _5 n. }3 D  r4 c; r# }
      Str := callfunc ('getsenderserverid');3 k/ p$ z/ d) P; U3 F3 F5 Q
      if Str <> '51' then exit;* s, H: V4 W  o7 P2 Z
6 B9 Y! l) m2 b: n& l
      Str := callfunc ('getsenderrace');
. V: Q8 e" ^! G- @- w      if Str <> '1' then exit;* t: {/ V/ @, @8 t1 k1 k

$ S% ^, S. W! Q; l; l      Str := callfunc ('checksenderpowerwearitem');
' G4 V) D5 \7 }/ l5 x4 x& T  c      iCount := StrToInt (Str);
6 l* N# S( n0 w2 M" q" G      if iCount > 0 then begin7 k: Z) p- h! ~- q. p) L- j
         print ('say 先将带技能值装备脱掉!');
% c% d) B* b" t- [$ b4 \         Name := callfunc ('getsendername');! `3 w$ J4 L; B0 Q
         Str := 'movespace ' + Name;. i  ~2 E( h# K
         Str := Str + ' user 49 106 55 100';# a- e8 G& ~- j9 f
         print (Str);
6 U3 c7 r/ @. e7 T         exit;/ S5 y: K& X) j8 ?1 P2 T9 Z" [
      end;
$ E" @6 H) {3 C( R      Str := callfunc ('checksendercurusemagic 0');
4 w- p0 ?- I9 ?) U5 L1 i: N      if Str = 'true' then begin
! J" |" q  t( R         print ('say 选错武功啦!');6 o5 t) G; m9 Z' l) k9 h" ~
         Name := callfunc ('getsendername');
8 }7 H9 O: y* P1 M         Str := 'movespace ' + Name;5 ^2 c( M2 l3 m* _# U% L* n
         Str := Str + ' user 49 106 55 100';* s, t& B4 C% h6 X4 `
         print (Str);
1 {+ d1 F2 U9 [; d0 t$ z         exit;
, ?$ s8 \% J* L9 M% c9 P      end;
: Y8 |- w6 k# l+ g      Str := callfunc ('checksendercurusemagic 1');; P7 Y2 P; E8 t' ^& R0 `& Q. E* t
      if Str = 'true' then begin
& _$ R+ q) _0 j3 y% S         print ('say 选错武功啦!');
; E9 T! K6 O- f4 a# {4 G5 w9 M         Name := callfunc ('getsendername');/ g" F; c) p! c8 p( ~3 e" R- R
         Str := 'movespace ' + Name;
; w) U7 P; Z& _2 c5 L( f$ \! S; Z6 i         Str := Str + ' user 49 106 55 100';
9 x7 i$ k8 o, G: |+ k3 t         print (Str);
& t9 h* l$ e% z* X) c         exit;1 M) B9 V- u: s9 v# ?5 k
      end;
5 G. r4 C3 `3 n/ V- d7 y, S* x' v# ^0 N/ z6 K0 b1 b
      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');" w0 f* E- h' i

: M) h, }* ~/ O3 \: D" {% x8 q      print ('commandicebyname 一级梅花夫人 npc 1000');5 K% S' r6 y9 n. w. R
      print ('setallowhitbytick true 1000');
) }, X$ i# ~% k% f) z- i) {6 X  t+ H$ a* U" ~4 u
      Name := callfunc ('getsendername');
0 `( H; t& P6 \  l: y      Str := 'commandicebyname ' + Name;+ r) r6 w9 v2 F. ~6 X5 l
      Str := Str + ' user 1000';# H4 r) J  V! n1 w8 g6 \; d3 i
      print (Str);- D2 C& O. o+ c5 F) E
4 C6 a1 j) ]6 O9 ~
      print ('senderrefill');
# i+ O  Y6 T1 h. R. s, Z
4 N& z3 R: c8 l6 o2 S7 s) l3 i      print ('say 别害怕 50');
) k0 b0 l! Z' e' @0 h      print ('say 我会收下留情的... 400');( @/ f0 z  k; U% r
      exit;5 i! z! [9 g+ h2 y; G, y) C
   end;
- _1 h! i8 N6 P1 x: s$ T8 F( cend;9 ~' f& {2 V; }2 j; d4 a. y. E
. \. V0 ^7 n) l3 b
procedure OnCreate (aStr : String);
5 t! x4 C8 u1 o! b( fvar9 u9 l$ r: O' A4 c
   Str : String;
  `2 r6 u  J2 ^+ lbegin
, Y" {2 n- b0 v0 |1 K* R   Str := callfunc ('getsenderrace');% Q- r5 S, V& |
   if Str <> '1' then begin+ z2 E: w8 Q7 \( U
      exit;
7 X0 c; X9 r& _7 Y# @   end;
5 `9 Q$ O1 S( Z/ J7 a% z! \3 D
4 P: s% b% ?$ a6 D   Str := 'showwindow .\help\一级梅花夫人.txt 1';# `& W& d" _5 p& ?
   print (Str);
  J$ c! \9 c2 p* ^2 I; E   exit;, f5 ]$ f+ J5 P. |
end;
, N' A/ p) A( O& Z) [+ J5 }% k
. }8 i% E. |0 p2 H6 H+ Tprocedure OnDie (aStr : String);0 Z3 i9 y7 D* t$ o) a/ J3 G2 h6 w
var
% k; \2 W! o% q   Str, Name : String;
5 Z8 R1 n, |7 V0 O! v# t3 K   FirstQuest : Integer;   & K9 o) ~$ {( d' C" L! H
begin
2 H; z8 K) e6 g* f+ B! `. X4 J   Str := callfunc ('getsenderrace');+ l# r' n- e, C$ M7 h! m
   if Str <> '1' then exit;9 O* r" k" C4 X' h

9 b# ]. q  N9 j" |( V0 p   Str := callfunc ('getsenderfirstquest');
2 C  A7 n  E" H# c3 F; z   FirstQuest := StrToInt (Str);8 \* x) k! \2 U8 {- z+ B
. o9 w% u; V  W+ d4 {- o# Q
   if FirstQuest < 3 then begin
) _  B) k: v. E      Str := callfunc ('checkenoughspace');
, s' J' ?. ]* [  O* _      if Str = 'false' then begin& R* q  h$ m& u! e# o. G7 I
         print ('say 物品栏已满...');
* h9 S$ C3 W: q( |- k* j         exit;
7 }9 J! Q; H) a. I9 m7 f2 M* L' ]" U      end;: s- b4 n1 k! \! Q! s" S5 |& p
0 S" j( p( n/ f9 t+ V/ C. K
      print ('changesenderfirstquest 3');
' E( P$ u' e& b: s8 \0 |      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');
+ d. z: \+ _  J: p2 }2 p4 v   end;. q4 w2 [% L( @( _

( Y, `0 h6 `- T4 s- r$ J( c   print ('say 我可只用了3层功力哟 100');
0 u, y/ D% O. R& l( z- v5 C' o% W" T. a- `1 S$ S
   print ('mapregen 52');; z' K7 ^. J) E% c
) ]; r) i6 Z0 C
   Name := callfunc ('getsendername');   8 d& I9 y+ b0 |% X. V$ T; J
   Str := 'movespace ' + Name;; G0 ?. q6 g+ I9 g% u/ @
   Str := Str + ' user 52 17 18 500';
6 i% n, c" F' P: K   print (Str);6 G- f- e6 Q1 F. Y
   exit;7 J, n+ o1 {  ~! ]
end;% C# j; y* N! p, `' e& T
5 M8 W" U1 X* P$ p; R
procedure OnChangeState (aStr : String);
! t. Q8 `  k5 k# D  a( N( J& Vvar
3 u5 t7 i7 b; }: p0 W4 h: L- b   Str, Name : String;. v8 T" |5 g" ^, f$ |
begin
; C, v! X% ~& S4 n$ E  S; k0 D   if aStr <> 'die' then exit;
  S0 B2 K6 b' X/ o4 y" _, M! e) I
   Str := callfunc ('getsenderrace');: \5 @: Q4 _1 e+ N9 g+ B
   if Str <> '1' then exit;& d: J; R3 ~$ i; Y: O, e

  I5 ^3 p9 a- q8 w   print ('say 别无他法 50');9 N" K. @/ s7 f2 d
   print ('say 是不是修炼方法不妥呀? 400');$ |; f2 W) s) I  _% G. W

; @2 r" n' j& R9 w   Name := callfunc ('getsendername');: ^. w. d2 Z$ p
   Str := 'movespace ' + Name;# H" `. ^2 j- p- |  @1 T4 v
   Str := Str + ' user 49 106 55 600';  x/ d! v0 W/ Q2 [1 O+ }/ `/ @
   print (Str);, [% |: G/ _* y! m# O! C
end;8 H6 ^% N" t7 O3 Y( l* C
2 ?8 f) u! p$ Q& o" `
end.& @& {* [0 x6 ~- T  P. B
-------------------------------------------
' T3 v8 q# Y1 i) l5 Yunit 一级捕盗大将;
: n- o1 J* H1 l% p* t; M0 R1 D$ R+ R- f  P; T% R
interface
  {/ ^0 m5 J  g3 M- r3 N$ m  @/ O+ {' J
function  GetToken (aStr, aToken, aSep : String) : String;
- I6 D7 [$ g  W$ g7 Tfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
. |7 x" D8 |- i$ T- U+ c) f+ tfunction  callfunc (aText: string): string;
0 K7 q4 V: D6 T) B3 Iprocedure print (aText: string);4 Y6 U9 E; i5 Q# e8 }, |9 h- |
function  Random (aScope: integer): integer;/ L) q2 P  n4 V3 P! F. d
function  Length (aText: string): integer;
% ~4 d* P/ d+ w: mprocedure Inc (aInt: integer);. ]# f# M3 j, O( F/ l% |" t7 Y
procedure Dec (aInt: integer);" N9 I1 W" {/ q
function  StrToInt (astr: string): integer;& G& J0 I+ O3 A! v$ Y; p. F
function  IntToStr (aInt: integer): string;
: O% r% `1 h: x  k: M$ F* Dprocedure exit;: c0 ?$ u& f( k! B( s
* e9 C* a; a- R# V( w1 ~, K
procedure OnCreate (aStr : String);$ R* j# v2 J1 J) Y5 l7 {9 `
procedure OnDie (aStr : String);
# [+ @$ {. y+ s* Vprocedure OnChangeState (aStr : String);# _* x! R8 a! j0 Q
procedure OnGetResult (aStr : String);! e; u, ?2 ?, \, M0 y. C; ~

( j1 `9 \/ X4 ^. i# @8 F" ^7 Eimplementation+ @9 {- [2 o3 g* b: ^* h

# g4 d) I# f; p2 G2 |procedure OnGetResult (aStr : String);. u6 K( N: Q" H$ {; e( t
var
( \3 \" p8 M5 Q   Str, Name : String;5 [7 _9 p; i: k" s) Z0 N5 L$ s
   iCount : Integer;   
. P. r6 U( _" a. C5 V, }begin' }+ v* d3 l- k; D
   if aStr = 'start' then begin
8 t1 b$ q, a5 A4 Q6 [      Str := callfunc ('getsenderserverid');
0 W1 h3 o* Y. r4 w1 R# c4 \: d      if Str <> '50' then exit;
" S" k& I* U8 N- w# E2 x8 r1 r, \& k# ~1 l
      Str := callfunc ('getsenderrace');# c  W2 b& y! F% }6 [
      if Str <> '1' then exit;5 a" c: G  n3 ~- _6 i+ Z! J

" Q* E5 p& n, Y& Y" v( i1 M      Str := callfunc ('checksenderpowerwearitem');, f# g1 d; J& W5 S3 H& P. w
      iCount := StrToInt (Str);
7 @* ~+ f6 i# O% L  ]) a. M      if iCount > 0 then begin8 s! |+ f! U7 T7 c6 q3 E
         print ('say 请先脱掉带技能值的装备!');
2 ?! Y! \% r7 {5 |# l: `9 ~9 Q         Name := callfunc ('getsendername');- s9 W, B/ h3 w6 N* J) x  x) q
         Str := 'movespace ' + Name;' u2 Y/ k8 V7 L% O' U! F
         Str := Str + ' user 49 106 55 100';
( ?/ {) ]# \& p/ u         print (Str);
5 B0 f* t, f! i( E8 T         exit;
, Z, g, O4 N1 n( Q& Z      end;9 `8 @* r2 [$ u# [
      Str := callfunc ('checksendercurusemagic 0');
' a- s1 a6 N' \& {& l! e& ?      if Str = 'true' then begin6 j8 W7 @5 P' P, w1 ?
         print ('say 选错武功了!');
8 _& x! ~7 u. _4 E: T3 a0 r4 y         Name := callfunc ('getsendername');0 C8 X) y1 m, S6 H; w# V+ r4 F
         Str := 'movespace ' + Name;( c  P& G( M0 b
         Str := Str + ' user 49 106 55 100';, H; Q( I9 d' {3 {" ]0 Q
         print (Str);
; |" L+ O. ^3 G! @0 G         exit;
2 v2 B4 r: y! a1 [* D+ K9 D0 }. M) b, g      end;
8 j$ i8 K6 f: c' d, `' j$ n; H      Str := callfunc ('checksendercurusemagic 1');
- G* f- M4 P" l7 Q8 \$ G+ ]' C      if Str = 'true' then begin7 ]! g: n: u6 x) [, \; b1 J
         print ('say 选错武功了!');
3 v) ^* [; e& {% l1 f/ |& c, l         Name := callfunc ('getsendername');2 o/ [6 o1 P+ o0 `% R: k0 A
         Str := 'movespace ' + Name;
$ h9 {) f: i/ w6 N, ^' T" L0 J4 {, Y- C         Str := Str + ' user 49 106 55 100';( t7 U* u( c1 R1 p0 y2 z0 T$ q
         print (Str);" D8 o! u/ V& ]/ d! o. n: N( ]
         exit;' E2 h+ {% {' f& f4 [$ y
      end;
$ e2 U5 i$ [5 y/ T8 ~% l! s3 Y; y/ S' i# I$ H0 ?
      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');
( X! V$ {1 v. d( ^: j' E8 v  N+ j: e# g5 N& ?0 t- J
      print ('commandicebyname 一级捕盗大将 npc 1000');
- ]9 k5 @+ l6 d0 a( U      print ('setallowhitbytick true 1000');7 B& E( j8 M* O
' w5 H( a1 p9 X2 b: V- |. T; s" V
      Name := callfunc ('getsendername');
; _# k" p7 c& `* _4 K  l7 \      Str := 'commandicebyname ' + Name;
. `- C# U0 E# q# h1 |! O/ y: P      Str := Str + ' user 1000';. `7 I5 J6 ?9 O3 ]; ?2 U/ Y
      print (Str);6 \$ i; m+ _7 T* K

6 I& u/ Y4 G* Y  e      print ('senderrefill');
/ _; G4 X& c. ?7 W4 ~) _4 }2 }. x0 m1 G& K5 i! o) K; b
      print ('say 你还太嫩! 50');% X( D1 {3 l( \: G1 m- a6 M& {
      print ('say 留神啦_我可不会手下留情 400');
. K. E: |5 Y. x7 o, w$ |      exit;
7 N" [3 _2 [( c: e4 R, R   end;- c* G  u) |. T& j
end;# ?7 Q" [0 f" C7 E9 K
1 _* `' z2 B' w% f' H
procedure OnCreate (aStr : String);: ^- _' }; o/ T1 I- d
var- V% a; b" O9 x+ L
   Str : String;
+ d$ H4 \" Y5 o0 S7 T: y1 mbegin
4 k/ j$ m& K! D- F8 V! k, f   Str := callfunc ('getsenderrace');
, c' `) a; {" V# c. J- \! w   if Str <> '1' then begin
0 r( o2 X- x# J0 D( W- K" W3 u      exit;
8 l, x& d9 H/ j* Z6 B. q   end;  n- f- F' a- j* L5 f& j; D
0 V/ ]' f) C4 c, G  S$ t5 ^( _
   print ('setallowhitbyname 一级捕盗大将 monster true');5 s& B9 u$ d/ u/ E
" x6 \- U: w% u' y; R- Z
   Str := 'showwindow .\help\一级捕盗大将.txt 1';
+ Q& i9 S( g" J5 g& o7 o0 P4 j   print (Str);
" l/ C# U4 z. P" z8 ^/ t   exit;- B- X8 I4 O2 h+ R( L
end;4 X, J7 {. M+ y) O

  c$ ~% n3 b2 h6 l  C: eprocedure OnDie (aStr : String);) @* R$ S8 Z( R3 J5 ~$ n
var4 P; q4 e) q( d% X# B+ `5 d; J
   Str, Name : String;* t4 }! ]4 G1 O  ^. [
   FirstQuest : Integer;" Z  U! Y0 u$ x( {
begin
3 N. O# [: g# C$ m   Str := callfunc ('getsenderrace');) t$ n; _  Q; U8 L6 R4 ]$ ~2 |
   if Str <> '1' then exit;; l( ?6 K, j8 a0 Y" {
; {+ }7 r& W' ~7 H
   Str := callfunc ('getsenderfirstquest');
( N, @( I$ F0 l1 `4 J2 \3 L& u   FirstQuest := StrToInt (Str);
8 T, V% s, Z1 i3 S3 ~( i  F  n$ s5 i9 V- u
   if FirstQuest < 2 then begin
$ X; y# ^) z: m3 e$ D% q) p' U% a      Str := callfunc ('checkenoughspace');$ j% ^: Y) C$ @6 A3 H2 J
      if Str = 'false' then begin5 O- p& ?/ q; N' s
         print ('say 物品栏已满...');
( O' j/ i& ?3 I4 z. B         exit;% J! ?& B% Z6 l5 g- t3 R5 {
      end;3 _1 c8 Y4 l4 P! g- Z  Z
" ^# @4 Q" k$ l6 m. v2 W/ G& C
      print ('changesenderfirstquest 2');7 H0 H" T8 X4 k* A% h- _
      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');
, u9 \; l' ?$ e0 ^+ J" s   end;( H& N+ J+ F# R5 t; w% V1 i" m
. q% M* y: ~  G* \0 M0 ?, A% i
   print ('say 不可能_我怎么可能输呢.. 100');& v9 z5 r  Y+ H% ?
! w' }3 ~2 D$ T+ G+ i& |% s
   print ('mapregen 51');
0 t. q* c/ M7 n8 A5 P  }( o
! v6 [  ?- C- l8 h/ H   Name := callfunc ('getsendername');7 d! U, I; f3 H9 Y- o0 K
   Str := 'movespace ' + Name;
* s: U& h& u# s, s2 x& B0 b! n( e   Str := Str + ' user 51 17 18 500';
) f3 V7 T& u* l* K# g   print (Str);
. }; g0 @  w/ E& _9 H  r( x+ |end;
+ A& P" |4 L. O) C3 D, a5 A( P; _& r- ~
procedure OnChangeState (aStr : String);
6 }1 O1 q6 F3 `' y9 x3 Avar) s- N6 H, E- j7 K( X% M! N
   Str, Name : String;
- K. U. U2 [: L: W" J+ G7 ebegin& E4 a* U* @6 _" W- ?" Z) Y0 s
   if aStr <> 'die' then exit;7 f( p- f% J% }& c/ g6 P9 Y# q4 h% v
/ t$ T: n& x1 B5 N* J
   Str := callfunc ('getsenderrace');
; p0 v- S5 b% ]8 D2 w   if Str <> '1' then exit;9 z& |  N0 o  `  w  f
& F  l9 W0 e* d7 V9 S
   print ('say 回去再修炼个10年吧50');
8 U' L; Z) J( ?   print ('say 到那时我在用双手跟你打 400');1 R" t/ U4 B+ i& P+ l0 p

0 f* D9 B! d3 X* g7 p   Name := callfunc ('getsendername');
8 i  p1 B) E% e& ?   Str := 'movespace ' + Name;4 J$ T4 R7 T- e1 @
   Str := Str + ' user 49 106 55 600';# |% z, G2 x- n6 w4 i, B* {
   print (Str);+ k( _$ \) y# K2 v  G- X
  C; L: ]/ A: s2 }4 x
   print ('boMapEnter 50 true');   7 J* _8 B7 q  b6 H
end;
9 H' Y, e' z4 y$ y0 y- v
- S  Y: w% k$ Uend., [+ J3 _- c3 D* n+ I& I6 v

  M3 `1 V. `' N# c) U---------------------------------------
* g/ s0 P# @" l
' J. a+ E4 S( ~5 W2 s4 s) p6 i' K2 Uunit 一级牛俊;( E" a, I, O. j
& e/ d" D9 x& ?+ M
interface6 G+ }6 V2 A7 Z5 K# }

+ Z) Q+ M2 M" T+ @; ffunction  GetToken (aStr, aToken, aSep : String) : String;  o4 |9 ~. ?# X3 ]
function  CompareStr (aStr1, aStr2 : String) : Boolean;
, V* e- B+ G9 X$ L0 _. sfunction  callfunc (aText: string): string;6 h/ N$ B6 `/ V* x
procedure print (aText: string);
" E1 M' G" p2 m# k; Wfunction  Random (aScope: integer): integer;
- u* K* S; J; C% e$ N0 C; V+ k' sfunction  Length (aText: string): integer;1 {5 K2 A" M$ d9 L9 X
procedure Inc (aInt: integer);
" F& G6 x: z# z0 Q7 X0 ?/ v. Hprocedure Dec (aInt: integer);/ @. ]% h% B5 q3 Z. K+ f2 t7 b
function  StrToInt (astr: string): integer;
8 W$ }& P4 v: l# K, n) c8 L1 Cfunction  IntToStr (aInt: integer): string;
3 e* e# P2 v; xprocedure exit;+ Z1 \; S8 E1 _$ x
; \$ \0 c7 G- `9 I1 {# a
procedure OnCreate (aStr : String);+ \% \! u6 j! [" A
procedure OnDie (aStr : String);
$ z* G) r7 Z4 f9 n8 i& qprocedure OnChangeState (aStr : String);1 d  `1 z/ D+ a0 o
procedure OnGetResult (aStr : String);9 W" ?" f/ l6 C# {

. s6 @; I- x4 f- Q& Oimplementation
8 h3 l. |9 ^6 s: G" ^' ]9 j
8 w) J5 u, a! C, j/ X. Iprocedure OnGetResult (aStr : String);
1 s  S# P) `+ a) e" x4 q5 yvar
5 Y( z4 E! ^- Z( ?  \7 N   Str, Name : String;
* y1 A* C7 I7 `' G+ ~& ^$ e( P" w   iCount : Integer;1 W. n, k- m" M* A1 x
begin
; S5 L, I; W5 [9 Y   if aStr = 'start' then begin$ W$ J. G( S- h
      Str := callfunc ('getsenderserverid');7 O; J, j# a. I
      if Str <> '52' then exit;
, D) v: w5 c# Y
: {+ F1 ]. ]3 y      Str := callfunc ('getsenderrace');
3 r4 b5 m& r& \) y1 c# k      if Str <> '1' then exit;
# G: q& J. O! r- D- c! U" E% J9 {
7 ~( w* Y$ R0 @6 G+ m      Str := callfunc ('checksenderpowerwearitem');
% m+ L$ y7 u9 c2 }# L4 u. E      iCount := StrToInt (Str);8 f6 d  b) g2 {+ g: x$ _: V3 `
      if iCount > 0 then begin+ V7 e0 W9 T( s5 U# |5 @
         print ('say 请先脱掉带技能值的装备!');
4 d( J+ N. o6 I5 z$ e, l         Name := callfunc ('getsendername');; Q# i6 `. Z! ~' X3 `7 V/ _& a: x
         Str := 'movespace ' + Name;0 [3 L, g, X0 O7 |
         Str := Str + ' user 49 106 55 100';
- n9 |. b9 I, A8 i8 G; L+ s* I! k         print (Str);
: v9 r! D4 a% |9 h6 O4 p* [         exit;" x! S, u# x5 e) o
      end;5 O/ A8 b9 G: U+ v. Y
      Str := callfunc ('checksendercurusemagic 0');
! ?$ x* Y8 C6 \3 v      if Str = 'true' then begin
) P6 F1 n2 i4 Z/ h3 W) @         print ('say 选错武功了!');
& U& f$ c. R( r# [9 U         Name := callfunc ('getsendername');& |# M4 U3 ~. ?
         Str := 'movespace ' + Name;$ K% a6 C7 F$ U1 z2 @$ K' E5 F
         Str := Str + ' user 49 106 55 100';
9 P: E0 _' |: D. a         print (Str);  C6 ^; s6 F4 g/ S! \6 f( e. a
         exit;8 i  P- Z# \6 d2 U1 C
      end;4 R" ]0 C6 b0 ?3 I0 W' a4 }/ w
      Str := callfunc ('checksendercurusemagic 1');% Q8 U) x. n% q, H6 _+ W
      if Str = 'true' then begin/ H! J: P0 d+ s  ?( O% t/ q
         print ('say 选错武功了!');
& A9 I; S5 w7 Z) |- E         Name := callfunc ('getsendername');3 c& ~: b% _6 f% z
         Str := 'movespace ' + Name;
/ ^  B6 j: `0 u         Str := Str + ' user 49 106 55 100';
" Q# T+ X2 D+ z         print (Str);+ Y4 G- ]" _2 W4 m) F
         exit;
% i/ P. [$ o' e6 b4 X  Z      end;
, z* N' i2 q6 v8 X( l% T0 ?
. L( N9 y# k! p* p4 b1 B1 b      print ('directmovespace 一级牛俊 npc 52 20 18 0');. U" t- K: [) C2 B% F3 Z/ [/ V+ B

5 @* R' l7 n9 A      print ('commandicebyname 一级牛俊 npc 500');8 M3 z0 G) x" K# m
      print ('setallowhitbytick true 500');      ; Y/ C* z  K# Z' t
! M# I& N3 o. g8 h2 A$ Z; ]3 ^+ f
      Name := callfunc ('getsendername');
. }0 r" q0 P! v) T      Str := 'commandicebyname ' + Name;- B4 j* q- ?' U) u. l7 |/ O
      Str := Str + ' user 500';
+ C2 T5 B& i5 l5 w7 u      print (Str);
. {" u  A& o. L' _
3 A) ~4 x9 Q& @( f' w      print ('senderrefill');) A8 v) b$ f: i6 Q0 z; s
( W/ b2 n+ a# V+ V1 T+ T  S
      print ('say 10如果10秒内不能将你搞定 50');
, X6 T2 ?* F/ t      print ('say 就算我输! 400');
; O  p$ P* o) K6 j' \* e- ^      exit;1 E5 j7 c/ n4 B# v3 B. C
   end;* d2 F% z/ |/ L" l) G: p' [$ M7 Z. j
end;
2 u$ `$ m" \6 q# b! t+ j0 G. y" x/ ~( r+ x: W# ~
procedure OnCreate (aStr : String);- O) r! n+ H8 y2 Y. m$ I( S
var, q, W/ x: @- y5 \7 a$ K
   Str : String;
* ?) P6 M7 k+ A" _. Y  H7 bbegin) h( J1 B! m1 \$ U, O, _
   Str := callfunc ('getsenderrace');4 F+ Q6 ]/ U( |% u; S
   if Str <> '1' then begin
, x5 ~- U* l/ m/ T4 S      exit;6 t/ L0 T  g0 b! I2 z) k
   end;/ D1 K8 w3 O+ |! T& [' k

+ V' n. P' V+ H   Str := 'showwindow .\help\一级牛俊.txt 1';  @3 a. [! \+ V& p
   print (Str);& ^/ `6 `* A7 J+ E
   exit;
: y& b8 A. }, H) k( s( Fend;* F! i1 U& a" ~; R* G

+ F# x- z# R: P' L9 tprocedure OnDie (aStr : String);0 ~# U: I6 G% z- g+ j$ H. ?+ F
var- |; c' O- A  a8 q3 X3 J3 K
   Str, Name : String;
$ Z  W6 I& j1 n! L) O- k% M   FirstQuest : Integer;   3 z+ v" @2 [( f' D: H
begin
0 ?3 q* ^" e) u* |5 l   Str := callfunc ('getsenderrace');
" P4 x; W& o, ^. w% R   if Str <> '1' then exit;
2 }* y8 r$ ]; i+ \' R1 b
1 _, C6 T$ K$ i. w0 D; Q   Str := callfunc ('getsenderfirstquest');7 s; Q: n4 }1 J+ M2 t
   FirstQuest := StrToInt (Str);# l2 ^, @2 a( M/ b4 V
6 }" b7 i2 e; M8 ~- ~7 P, U3 z
   if FirstQuest < 4 then begin; {+ Z- g5 R' P% J) n2 `
      Str := callfunc ('checkenoughspace');
; {' F& P8 T7 [5 _2 L/ X% H& B% f      if Str = 'false' then begin* y' n2 l( |7 x
         print ('say 物品栏已满...');- ?9 @3 d1 B: K% p
         exit;: c1 e2 e' @+ y& G* w1 l0 d' e
      end;
9 m$ o" C7 R& ~9 q3 K7 D3 @6 R, Q" W3 A# w& g2 |3 X
      print ('changesenderfirstquest 4');8 W0 o) m8 R. G7 z8 T+ S
      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');
8 v1 i( U: P- {. J9 I   end;
* L9 D2 _" T" e# f# f
5 y8 i$ a# V7 p* S" m5 W   print ('say 什么_不敢相信!! 100');! ^/ R9 S$ [, i

, j0 k4 H4 ^& U8 W* n/ T   print ('mapregen 53');% ]1 i! b7 ]% k6 i* |3 W
5 C% i4 x6 y/ j; y
   Name := callfunc ('getsendername');
& X8 K) K# g. V. m% k& H0 h7 ^   Str := 'movespace ' + Name;
" S4 k8 N6 p1 S! G) l/ o   Str := Str + ' user 53 17 18 500';6 s$ }& Z. r$ `7 c7 I5 d
   print (Str);
9 S0 M$ O& O1 O* _end;  k8 @7 y1 b7 R7 X

1 g- S. m. r1 q; T$ |4 \procedure OnChangeState (aStr : String);
# H" ?$ J8 x% D- }4 N6 D4 Jvar
. D8 M4 i' W0 n' n# j% j( ^/ ~0 a   Str, Name : String;5 ?! J7 M& g+ D: O) l1 ?6 ]: S
begin
1 E+ A: d. [$ B# K5 K   if aStr <> 'die' then exit;) ^% m3 i+ |* b: Z
3 _3 ?) i! V5 @: `- b
   Str := callfunc ('getsenderrace');
2 V7 |) ^! P6 M! S, u   if Str <> '1' then exit;
& Z' e; p; B/ ]$ X+ x) a. [* j+ W9 T# v6 i- O/ X* }2 e
   print ('say 领教了吧! 50');
2 A( o' E9 {7 `; @2 ]   print ('say 差远了... 400');& P# a. d6 F. t( R$ l% Y+ S
& l1 ?. H, m6 B$ [
   Name := callfunc ('getsendername');* W" h& O0 a2 y
   Str := 'movespace ' + Name;
: f1 d, k+ S7 i8 L   Str := Str + ' user 49 106 55 600';- g1 z0 G# {5 w1 Q% [' L  N- K
   print (Str);
( j+ x! q! ?8 z* Aend;
) U2 h& T; Z. _" P% a' y4 b# n3 L& E1 V! n7 P2 s6 {8 }
end.
! `. D8 x- @7 s5 P----------------------------------------6 T6 w: Q2 F: e8 r0 w# G) T% c
unit 一级雨中客;
: y; A6 g& [' }
0 b& m+ o! N/ }# winterface/ E( R* p; `7 n4 {  f4 c# J3 s

9 r5 f6 I- Y% i5 nfunction  GetToken (aStr, aToken, aSep : String) : String;
( G4 M: r. u5 |function  CompareStr (aStr1, aStr2 : String) : Boolean;
# R, U; W$ B1 M) s- T8 rfunction  callfunc (aText: string): string;
3 t/ ]; c6 r' {" T9 {- f4 lprocedure print (aText: string);' d' e  a$ y: y% F" C0 t  K6 M
function  Random (aScope: integer): integer;
$ V6 d2 v( P8 |. q5 ~3 ~, d8 t4 Nfunction  Length (aText: string): integer;; {4 u6 b. o; }5 H* B7 ]& |
procedure Inc (aInt: integer);
4 B+ ?) D3 C( k% h! {, R* |4 U' Iprocedure Dec (aInt: integer);' ?% R/ e( _9 Z7 |1 m1 [
function  StrToInt (astr: string): integer;" I. s2 H$ R! _, a+ Z& P
function  IntToStr (aInt: integer): string;7 ], Q3 D7 _7 @0 p  J2 E7 d
procedure exit;/ O- J# ?0 L; [" D$ }( ~$ w
! |0 g7 o! Y& J  M
procedure OnCreate (aStr : String);" k. u" r  l; ~4 n) \
procedure OnDie (aStr : String);7 g1 {3 k7 s, S1 r5 ?' v( }
procedure OnChangeState (aStr : String);
3 f/ d, l2 K; a9 S# c& zprocedure OnGetResult (aStr : String);6 y1 o5 J6 f+ }

8 v9 P! e; n5 E$ \7 }implementation
0 e, Q5 G, O  `$ e1 t& d0 Z
5 C$ H' r6 r0 U4 k  Q$ mprocedure OnGetResult (aStr : String);
1 R& T1 V: e& N2 Avar
3 u7 v! v: Z: l8 c6 ~3 n7 x   Str, Name : String;! t2 N, E- y) `
   iCount : Integer;% l0 r. \4 k8 k: `) y% M0 _! p& u
begin1 I* U  X" V$ R  d4 c* a
   if aStr = 'start' then begin2 t0 r7 s% _) {1 ]7 o4 N* f
      Str := callfunc ('getsenderserverid');  ^. S$ I7 f  L2 W& q
      if Str <> '53' then exit;* A/ F) ~/ r) X4 C) M6 ]
( q  K+ y# H/ H5 {4 b/ l4 X% e
      Str := callfunc ('getsenderrace');* [( y' r: Z( N+ X! K4 L5 e
      if Str <> '1' then exit;" M! s( d, t1 m6 v2 o: K

' z/ `" {; C+ O! u% x$ I( z# q      Str := callfunc ('checksenderpowerwearitem');
% J* J2 b# s  D5 s5 \/ h0 x0 X      iCount := StrToInt (Str);
" R% P; b5 c6 N6 z. E+ z      if iCount > 0 then begin
9 p# d& U7 ]9 [0 L4 U         print ('say 请先脱掉带技能值的装备!');
$ b3 S) y' \( R         Name := callfunc ('getsendername');0 N9 D' e0 ^) A
         Str := 'movespace ' + Name;- w8 ~) i$ h0 G
         Str := Str + ' user 49 106 55 100';
# U2 Q. A, e  u; \$ r" n( f         print (Str);
/ X% _+ E! z/ R         exit;5 p7 |' O0 w5 |% X1 _, J* r
      end;
' W0 A" x( y# x, L; |3 D; m; ?% S      Str := callfunc ('checksendercurusemagic 0');( P1 m2 Z+ I( f) r
      if Str = 'true' then begin. L8 ], o, a- l% S7 ]  T  |
         print ('say 选错武功了!');& G) V% O! u2 J9 _8 n
         Name := callfunc ('getsendername');5 e+ j6 ~2 O/ G0 o( b- B
         Str := 'movespace ' + Name;
  h( k6 f- r7 Q. {6 F0 y  Y5 v         Str := Str + ' user 49 106 55 100';, j% q7 e  x2 O- {- S! I0 k
         print (Str);
1 ]4 v! r6 _) P/ b# w) o         exit;9 I: R/ m% t% c2 o( C! @5 I0 f# B) N
      end;
7 L& W# y2 Q! f# E( `: T6 B      Str := callfunc ('checksendercurusemagic 1');5 q, _! T  E  ?7 B
      if Str = 'true' then begin
; u+ ?, a1 ?8 q' Z; ^         print ('say 选错武功了!');
. T9 f9 P$ M7 k+ F. Y         Name := callfunc ('getsendername');1 m1 W+ n- i) d  R! C9 l7 _" d7 t" h
         Str := 'movespace ' + Name;8 h  m8 l0 u8 w& c$ C/ [
         Str := Str + ' user 49 106 55 100';9 l2 E9 {; n' m" E+ z: C
         print (Str);: t1 t- c! N8 b$ X6 l$ ~' f$ s
         exit;, ?) C( U: I0 y% ]
      end;
; D- o6 Z" C( @8 q, O- ^
/ z7 y, n* i/ e7 `      print ('directmovespace 一级雨中客 npc 53 20 18 0');
2 Z2 r3 V8 K; c! f/ q7 o
. V2 R% }2 X3 b) P' M      print ('commandicebyname 一级雨中客 npc 500');
: J6 W% r, d4 q& F2 G& X! j      print ('setallowhitbytick true 500');      
4 r, `; W1 {5 u4 n0 a
/ L( N, a& _- V( C3 i0 F$ a      Name := callfunc ('getsendername');: f8 E9 R" r* M( `- X  S. Z
      Str := 'commandicebyname ' + Name;
/ U5 j9 G  ]* C  x      Str := Str + ' user 500';
& s0 E% d& a' W" ?; _5 ^, I      print (Str);
. \$ ^* E# I5 y% R
" Q2 r4 A, m, ^* z" Q      print ('senderrefill');
' a4 M+ ^" {( S) \  u: R
7 m; w+ h, _" ?4 ]1 V, D      print ('say 领教了 50');
& b7 }* F" u: O( g      print ('say 开始吧 400');% u4 D9 c- G% L2 A5 n1 H6 D
      exit;2 H1 ]- |& e, f  p2 N( X
   end;
3 C* W# }( y/ y$ ]7 l' j% J6 Yend;. }& T0 W3 h1 r) o7 |2 z$ Q
2 f/ W7 o$ N% P& C; E- q
procedure OnCreate (aStr : String);5 }% _9 {  A2 _, ?+ O  ], r6 R) K: b
var
" n7 H0 S" K# P/ E% W( n2 u" \( N   Str : String;# b6 S( T+ ~# B: n, G
begin" N+ F& I  c' M
   Str := callfunc ('getsenderrace');" t: X) l4 l4 n: j" w3 U! _0 N
   if Str <> '1' then begin
$ Y5 u- ~- g+ D- [  E4 X% _# h- p      exit;/ s. i- R0 W: E+ t& d% @2 K
   end;
/ L4 c) Z" O0 g; ]8 _0 N2 X
$ K! Q- W2 K2 U/ D7 G   Str := 'showwindow .\help\一级雨中客.txt 1';
7 s" V9 t/ _. l: a/ r+ z   print (Str);' e$ f3 f' T; E& P- l- S' M
   exit;! ^, X3 \& J# n4 G( w0 O/ }
end;: h% L/ A/ d* b& Z3 F
- H5 B6 D8 j% S* m7 M# d
procedure OnDie (aStr : String);# Y$ v! ?! x" w6 }; @/ `3 o. W( y$ W
var
: G0 D" b: q3 p$ t   Str, Name : String;9 ?9 v1 ?, c# O
   FirstQuest : Integer;- Z& R# z: [4 T
begin
4 K& R1 O3 \5 F0 D% x3 U   Str := callfunc ('getsenderrace');
( U$ F0 @- @: x6 m- ^" k   if Str <> '1' then exit;; W9 Z5 T0 N$ m6 W" |& ~, F# h
9 c- g) \- Y/ G: |0 v
   Str := callfunc ('getsenderfirstquest');
1 g" m4 L$ l- p2 i  W6 H- z0 d+ M   FirstQuest := StrToInt (Str);
; s) ^  Y2 \! j6 o. v
  @' m* X( f" H8 V   if FirstQuest < 5 then begin
. j! ?; m+ h+ I! V* }+ |. F      Str := callfunc ('checkenoughspace');
2 n& W( j1 |8 V+ v$ w      if Str = 'false' then begin, y3 [6 u; @* q3 E# s6 N% O3 p
         print ('say 物品栏已满...');
2 \0 u+ L; L, ~# K' {         exit;
" `& e% N5 j( h/ ]0 K/ |      end;
3 W. z6 n+ u! G- {# v3 A- B
9 u/ a7 {3 R* \- _( T      print ('changesenderfirstquest 5');
7 r, i0 Y) }, S& G; m& t: K      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');
! Y; ^/ S% k( N, Y' S6 D1 u6 G   end;
7 V  _! ?" N, l/ Z! h4 s- ]9 h9 j
* [, w1 I% p) x* x   print ('say 早料到了_佩服 100');
+ x5 i4 o3 `  G; W" A7 c( Q* N+ C9 u/ X3 G
   print ('mapregen 54');. _) a1 N7 B$ @% F% L' R
: r  y8 e* y6 b2 }4 W5 Q  Y
   Name := callfunc ('getsendername');
5 {3 q( M$ o4 q: Q5 V7 d3 X* K   Str := 'movespace ' + Name;( H- D( H- _* ]  N/ v
   Str := Str + ' user 54 17 18 500';/ M" l9 W  E8 k; a' y) ^. [
   print (Str);4 }6 Z: X1 q  k# f* t1 A
end;! ^& M- A; s1 L8 q$ k1 S5 w0 y

/ p0 W+ F; |4 d0 Z4 @( ^8 V2 F; Z! fprocedure OnChangeState (aStr : String);
  o1 Q5 G; g. y; ^$ t& O  Wvar
8 c! G6 f/ j: @3 F/ o+ b   Str, Name : String;  Q) Y# k1 B* ^, N
begin
9 x1 j. ^( _4 \, ~0 {   if aStr <> 'die' then exit;; V6 {% B7 e; e5 q. z* b) G2 r) l

. Y3 P( h5 M0 Y   Str := callfunc ('getsenderrace');: _. R6 J  y3 f" c3 j% w
   if Str <> '1' then exit;
4 q0 j- z" E  `# t3 j+ H/ L1 G6 _: h
  q) |1 s+ r: ^) h   print ('say 不错。只要能维持几秒钟');
4 p' y7 V* s& n* v, z" R9 o" t0 h   print ('say 到那时谁都不是你的对手 400');# y! Q, C. c: l7 a! U

8 D2 W" L9 U& j% |1 s   Name := callfunc ('getsendername');
6 Z6 ^+ g2 B3 y; _( Z   Str := 'movespace ' + Name;/ w& d$ L* s' u6 |! ^: {
   Str := Str + ' user 49 106 55 600';
& M0 Q( [' `9 s: e  |   print (Str);5 Z$ J, |. N8 {5 Z( E# }! c& O( e2 _6 v
end;
# R' c; j5 |7 M
1 J6 O( Q% i3 Hend.
, m4 v8 q+ o$ H, F3 F, R  J( T9 N+ ?( |
--------------------------------------------------------------------------------------------------------------# P9 G" y3 h5 A

. r5 D; ~6 M9 `5 `8 t  l7 P/ B3 V% Ounit 一级老侠客;0 ~7 u1 u/ k7 @. _7 y

$ W6 ~  Q: U9 z5 ointerface
4 ^! ^, s/ J2 s* S2 }/ a  u9 {
9 B' j4 Q) E  c( Bfunction  GetToken (aStr, aToken, aSep : String) : String;' l$ P" |. b* ]. T* ?9 G5 k$ c
function  CompareStr (aStr1, aStr2 : String) : Boolean;0 f4 r4 Y; e( n, V" X
function  callfunc (aText: string): string;
' x  i& j# B! d+ Y) hprocedure print (aText: string);/ B0 `7 O* p# ]9 R
function  Random (aScope: integer): integer;
4 M& P, k& r7 \& i0 [function  Length (aText: string): integer;
2 s# n( G/ }1 J1 t, k) jprocedure Inc (aInt: integer);
" r5 o! m, \% D) z. L! nprocedure Dec (aInt: integer);
3 @1 c& T  s5 P" t( X" S" l( Afunction  StrToInt (astr: string): integer;/ J7 f* k5 m  x
function  IntToStr (aInt: integer): string;; {/ D: ?. Z$ I. F* ]
procedure exit;
0 @$ s# g6 y# h5 }+ k: x- n
/ ~$ b$ k6 ^4 A/ ]) s% y% ~procedure OnCreate (aStr : String);
7 m- n; ^9 S% s& b. ~! \" O% v9 xprocedure OnDie (aStr : String);: X; F0 K* h: N
procedure OnChangeState (aStr : String);4 m8 L6 t1 g/ w* g
procedure OnGetResult (aStr : String);1 N6 S3 z3 r# S" Q( {

* l- {" p2 X; |implementation* f- d  h# \' e/ m
9 ~0 C/ L6 r# M5 A" K: O
procedure OnGetResult (aStr : String);
6 h0 P$ A" k6 u5 S& |" u! ?var
: s' m9 R; q; j! Z$ w7 m   Str, Name : String;% D' q0 ]! N# W  h) A1 a/ t
   iCount : Integer;   
) j# H: T. |# c% ^begin* m* |* D2 ~) _% o
   if aStr = 'start' then begin4 n, J6 K8 x. v% Z2 X. O! d
      Str := callfunc ('getsenderserverid');
/ \4 [8 p! r& Z! [2 i4 U      if Str <> '54' then exit;
3 o/ b6 i, _* w) ^# m+ r
, Y- I( v6 t) X. S      Str := callfunc ('getsenderrace');0 t' A+ X3 S( H; e/ g4 i
      if Str <> '1' then exit;
; n% P3 f' b/ N: g
8 \: N) v/ {  ^      Str := callfunc ('checksenderpowerwearitem');2 c% F1 K8 r+ T3 e
      iCount := StrToInt (Str);
+ J, j7 m. \* X  z% a      if iCount > 0 then begin
7 w+ @, p; J3 I; G% H* Y         print ('say 请先脱掉带技能值的装备!');3 F9 R0 k& @& T1 R3 d. J9 v
         Name := callfunc ('getsendername');
5 ]4 x: a% p! {" j( d$ C; T         Str := 'movespace ' + Name;9 m9 b: [6 I, Y4 \
         Str := Str + ' user 49 106 55 100';
& R3 F! M& D# ]/ J2 U( w$ M3 s         print (Str);
! t0 J6 _) Z" C! {/ J$ e( _' D         exit;# W' }: [* N3 R
      end;" x. o1 R# \4 c9 m; t% w
      Str := callfunc ('checksendercurusemagic 0');3 B5 t+ Q* I* M  M+ G" N! F
      if Str = 'true' then begin) `+ @6 k& c2 Z& X
         print ('say 选错武功了!');0 g) n# f9 \1 b' e' C
         Name := callfunc ('getsendername');
7 ]  N9 E" e& f8 v+ \         Str := 'movespace ' + Name;3 c8 o0 ?8 W" G# g! w: t+ \/ x& t& @
         Str := Str + ' user 49 106 55 100';
& H+ g% M& G8 p- j+ e% w         print (Str);5 C* y0 J2 _4 i" T# J1 Y) X$ y( g  f
         exit;
) [0 Z+ i5 M8 @7 u      end;! p, i9 L8 I3 O. W3 `+ X9 b
      Str := callfunc ('checksendercurusemagic 1');
, V# W, K; g8 T/ l2 \      if Str = 'true' then begin1 t8 ]# W) D4 D; u# x6 x4 p
         print ('say 选错武功了!');0 _+ j! L* F+ l+ @# m
         Name := callfunc ('getsendername');
5 q5 [  X. e* `1 t: X         Str := 'movespace ' + Name;
' |/ W* \  s  V) e# `) M         Str := Str + ' user 49 106 55 100';( `& k+ [; c0 V! I3 {; a! `
         print (Str);
% _2 c2 q/ }5 R  T) X         exit;; D* s( @" G; p8 U
      end;) U# `; ]) O1 {# g/ `! h+ ]
) x" J* x' k% o/ F
      print ('directmovespace 一级老侠客 npc 54 20 18 0');7 t! ?% U6 x+ U$ p2 g% m

! n( z8 x: A( q% m      print ('commandicebyname 一级老侠客 npc 500');3 m4 \  U' l! [3 o9 r+ y: M* I
      print ('setallowhitbytick true 500');      8 c: u, F1 S% |& K: Q6 k) d

, Q3 U7 `& A+ Z, A7 H$ w      Name := callfunc ('getsendername');# f4 c" o- ~; J9 ~  I* P, W  Y1 w
      Str := 'commandicebyname ' + Name;
0 a7 R$ s5 }) D      Str := Str + ' user 500';
! A, ~2 ~5 {; V0 x0 H      print (Str);
# u, j2 ~6 b2 }# W3 l* p
8 Q, y7 _# Q6 E8 @" l" |      print ('senderrefill');8 C2 ^; j  Y1 p
# S6 J$ ~% w  }5 Z# ?0 ~" L% S
      print ('say 如果你实在想比 50');! L  [. o! k2 J0 [% S! @9 D
      print ('say 我将奉陪到底 400');, }4 k" G+ @% I+ q0 C- c
      exit;
; G9 {% d7 l- @5 T   end;
6 L9 T) X! ^. R8 s& v( F5 K. f  ]end;0 D% p4 X- C  ?2 z! j# B- o- t

7 Z  g( U$ A1 t- J" }7 jprocedure OnCreate (aStr : String);
  _" F% b0 |* o* R% R" ^+ jvar/ Q. w2 U7 _6 k0 i& q
   Str : String;% h" A( I. K2 w
begin
, e8 `* M0 [$ X* {/ B1 q+ y   Str := callfunc ('getsenderrace');
: Q6 l, i4 l' e" B   if Str <> '1' then begin+ p; v* h9 B; h0 d' a+ W9 H+ a
      exit;
) n' q: O) c+ t5 y6 _0 r   end;; D1 p, t+ k1 `
6 ^  K3 ~- Z6 [
   Str := 'showwindow .\help\一级老侠客.txt 1';2 g2 l4 F5 e4 n+ h; T3 F1 l2 B4 m$ a
   print (Str);
# D& B0 z0 H$ f" |- J( L* ]   exit;0 s" g$ b+ X% F, A  {: D# x# ^8 S
end;5 h7 p, k6 [. T9 s- c# @
3 [' I1 t8 s7 W( z7 `* M
procedure OnDie (aStr : String);
  b# n' p* k! _var8 l6 Q7 n8 |4 f
   Str, Name : String;. o8 h7 P; p" Y$ v# Z4 M; s
   n, FirstQuest : Integer;   2 n, W8 z( `: y' V
begin& w* x  i. ^! d" F  L
   Str := callfunc ('getsenderrace');
9 F- Z3 V7 C8 f  v# C$ U1 B   if Str <> '1' then exit;' h- K8 _) k/ t
% w- Z+ J+ d. n6 D& L0 N! b" I4 u
   Str := callfunc ('getsenderfirstquest');
$ J# X6 L3 K7 |   FirstQuest := StrToInt (Str);2 |- D; T& N* |

: y* M) _$ z4 y   Name := callfunc ('getsendername');
' e3 ]& o. @' U1 J/ O/ i* Z1 v* _* ?5 i& m8 i6 \" ?( ?9 [* E! y
   if FirstQuest < 6 then begin9 ?, W8 G8 x6 H4 a& P6 o$ K
      Str := 'sendsendertopmsg ' + Name;! O% W6 h& Y6 A' x) N- q0 o
      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';5 u' [) |& s) d  {( J
      print (Str);/ U8 i0 x2 [+ z: n
7 n8 ]/ G* _( E+ j/ X
      Str := callfunc ('checkenoughspace');
. V" R1 O" B( p$ n& u. w  _      if Str = 'false' then begin% R7 }* S, d' p; W, R
         print ('say 物品栏已满...');- C$ y7 P7 q( ~4 }8 ?# B
         exit;) h3 o+ O1 z7 n/ o4 |
      end;  D; D5 r9 B+ T! f

( l8 j# M. v5 U/ b) Z( A      print ('changesenderfirstquest 6');
: f( }/ E" I& M, m
, q' r- ^! M: v" X. k      Str := callfunc ('getsendersex');, Y: U" }$ r* L( H9 F% u
      n := StrToInt (Str);# T. j! E! }* K: n& |, p
      if n = 1 then begin
3 s+ e, _3 `) C5 \- g         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');) |, Z! r4 V* R3 k! o
      end;
* s1 [  J0 R7 z/ w+ Y      if n = 2 then begin
# I0 f- ?# M% b) a: s         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');  K2 z% M5 C& a2 @0 ?; n7 u
      end;
: O$ S& l  M# Z( o* r! T/ Z         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');. F# a2 j# e& C: V
   end;
' Y$ I- P3 H% y/ Q, E
- r* A$ l! a0 x   print ('say 佩服_佩服 100');
& N5 h$ @" v/ x0 u6 ~) u: e8 ^9 h1 o4 }0 K% F3 x9 M! Z
   Str := 'movespace ' + Name;, z4 B: R+ k* `) L7 i7 f$ A
   Str := Str + ' user 49 25 35 500';% V+ E5 |& j4 m( M7 U9 t) F
   print (Str);8 C2 \( o+ N0 d( {
end;
  Z3 p. ^9 F1 G4 x1 K* t% Y
/ W$ B- s3 m* _. _5 u8 f- i$ eprocedure OnChangeState (aStr : String);. Z# v- G* f5 C
var& {6 P8 N% ~+ r  Z: M
   Str, Name : String;
) E& h$ z% H: |" wbegin. |# \: j( s3 T* Z! B
   if aStr <> 'die' then exit;' u8 C7 J  Y  W9 m; O3 |

0 y: n, i2 c* y- F2 v! M5 [" a   Str := callfunc ('getsenderrace');
6 P+ |# p2 F& ]' ?; n1 d   if Str <> '1' then exit;
9 N5 B( ]/ H6 U5 |  X" I  Z5 o' ~) M7 _7 U- h
   print ('say 小小年纪_就有如此高深的武功 50');3 G* x  P$ @7 x) n# ^1 c& u$ q4 d
   print ('say 日后要继续修炼... 400');
: A  h5 W) P9 s( F4 ^0 ^$ [1 n  E2 w5 [* h
   Name := callfunc ('getsendername');
' c) M5 ]3 u1 s0 }+ \- \   Str := 'movespace ' + Name;
) [  s6 B  y" k/ T9 f% f   Str := Str + ' user 49 106 55 600';( S+ D0 e. Z  V7 a, Z
   print (Str);2 {) K8 \$ c* r" r2 a! \/ t
end;
* c: ]  o  |8 y5 n- z6 I1 P/ l% z) ]# G, P1 i7 ?' S+ G
end.
- e& n1 D  m: _
7 E. Y5 O  T  V-------------------------------------
* O2 }: Z2 J! \5 ^6 o+ E" H% n0 ~, ^' w" p* a, V# R
*************************************; c' ~2 n: y. U5 _
( f3 f& x3 D% s% Q2 U) r/ ~5 o
奖励物品代码:8 }0 m; x: w" r# _" A, F# `

/ b3 \3 \  x$ g4 Q3 z. a/ z' ^  p*************************************7 S9 T; e6 i- K1 z
" V7 n+ ~( y4 r
男子侠客弓服,男子侠客弓服,24,新手村擂台战利- v# [8 c! m8 |9 Z+ X. }
' M7 B( v2 H9 a& X# |
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
% w/ G* x" ?% d2 [! I& N7 w! x& b$ l0 l! S9 Z6 a3 {$ }
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,
2 ]0 B2 l! R- a7 _9 c* b/ S女子侠客弓服,女子侠客弓服,24,新手村擂台战利
# K3 M5 Z' E3 W) Q4 a. [2 W5 V2 f' c% y4 Y7 [
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10: c1 ^0 Y9 p' y4 I

3 {9 N0 ~8 {& x0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,/ m+ n8 A" e( w! P) O2 S
新手训练拳套,新手训练拳套,6,新手村擂台战利
0 a4 m4 P! Y$ o' A$ j2 ~9 O: P* t  ]- f0 V+ k, S6 B+ j
品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
$ v$ a; g' D- y6 m; f) d0 Z
! D7 Q  b- T# _2 i; M. I* u% L/ c% J,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
. h0 @9 |9 l- W新手训练神剑,新手训练神剑,6,新手村擂台战利4 r" `' I) \( ?- c2 v7 Y- Z3 A
! b, F- a$ i  f
品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,* d& ?1 E: ]2 O; M
4 C$ ~2 {& e7 k' _3 D' C
,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,+ ^6 N' b4 ?% X! \
新手训练弯刀,新手训练弯刀,6,新手村擂台战利
& m/ B9 Q8 p7 I& N3 H7 D, D1 b7 \$ u
品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,
, t% F4 f3 w( x6 U3 U& J' Q
& j2 z; @- V9 Q- u: B,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
: p, }: G7 Y$ z& C5 n新手训练长矛,新手训练长矛,6,新手村擂台战利: J$ E* C: u# o% j1 d' s' P

% C# N+ L9 Y& I6 Q品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,/ C& x- I5 ]/ Z  O

/ n& d6 I* E  G$ W, {$ e,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,% `" |+ X4 n6 S1 C! U/ t* y+ [4 }
新手训练大斧,新手训练大斧,6,新手村擂台战利8 K, K- w' Z) ^$ K1 l* D1 ]

( Y8 m7 o3 I* w- f* t' l& i5 P品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,
0 M; o# `; N7 k* O: h( O8 C' ^. k+ t& V6 I, \0 Q
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
  H( e' W, W" @$ M5 G' }5 g1 y" E; t* A9 p: p) l2 U. [
******************************************1 x+ n, [  S+ P+ ~" A3 x! t/ |" K

6 Z4 l* r$ ~' G; j& C7 Z" R3 Q1 L% H
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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