游客您好
  • 点击联系客服

    在线时间: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 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
新手村擂台脚本/ n) R+ K1 m/ N+ C5 c3 z. k
& ?. F8 D# `3 W7 k, M

' ^2 f" h. D. h2 O" U# ^8 o4 d0 [释放到同名文件夹下覆盖原有文件。) l& M) \! S; _9 F
1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。3 }! m% m- P( E9 N7 z
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。
* G5 i/ m, ^* |4 Y! O8 W0 @  h2 Y8 G(由11月23号发布的最新服务端修改)
. H: {' ]4 i; \* m' I% {-----------------------------------------3 L5 Y6 ]! u& L+ g- z5 |; x
内容介绍:4 W2 ?& v' u" M  V
新手村比武获得奖励:
  x$ V6 L) B( C% V: `) C& l同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0, G, v+ p" G2 z, X* O
% F( O" c- a- c9 k. ]

+ f8 i. f8 K% _6 d  V3 [/ a最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较& h+ M$ i1 J" b4 [5 X
' F  X; p5 a* V( I* x- z: M8 P
喜欢黑龙,所以是黑龙的加强版!)
5 [# `. z0 e5 ~2 L
0 Z$ h/ e5 f" M0 a% S3 q* B* D+ R[replyview]9 H6 o( O+ l6 L: [3 ^
2 C; c# e% g$ I& k* G
-------------------------------------
1 Q7 ]) r4 u! B( B& ^  C
8 r; r7 V/ h, }+ V0 O( dunit 一级梅花夫人;
* u) G. x# `; _& U/ h: J% [, y* w# t! S3 [& M. A  j
interface5 o. u4 k$ i( c+ t# h( P. u
" [  {0 K2 Q2 \$ s9 ?( x
function  GetToken (aStr, aToken, aSep : String) : String;
9 E0 l4 s& K$ z$ _: I4 Gfunction  CompareStr (aStr1, aStr2 : String) : Boolean;3 C' r2 k; g4 O/ a$ A* n
function  callfunc (aText: string): string;5 a+ E  W. O. S: C2 ~
procedure print (aText: string);/ f0 E5 ~* k; t5 X- s4 U( o" f
function  Random (aScope: integer): integer;. G: Q6 h& u6 z, @; {
function  Length (aText: string): integer;
9 V/ W4 D) |2 x; @+ f) r0 L/ mprocedure Inc (aInt: integer);
6 J  I9 t3 X6 g7 F+ Hprocedure Dec (aInt: integer);
. M4 x# [6 ^; S% q- Vfunction  StrToInt (astr: string): integer;
# c( Q9 q8 W+ ^$ W  C0 J1 Efunction  IntToStr (aInt: integer): string;) [) {+ l4 j+ N0 `8 S
procedure exit;
  w# p' |! u4 b- d( S9 ^, I) H. b* S" h
procedure OnCreate (aStr : String);6 X2 G6 y) V' V; }2 B
procedure OnDie (aStr : String);* x7 e6 L' u, A3 n
procedure OnChangeState (aStr : String);
2 v* f. R/ h7 I/ H) W2 N% v  rprocedure OnGetResult (aStr : String);/ X# }* Y0 K6 P5 K

: N- n, `$ H, Rimplementation
' j  o- }9 t* N* a
# _- A1 V/ z) u# J# d( u6 Nprocedure OnGetResult (aStr : String);  }' P0 n# P+ e/ ?; Y
var
6 u' U9 i0 O$ o) b- _6 a   Str, Name : String;
0 w2 L( r2 I( y& \   iCount : Integer;
5 p7 ~" U5 C4 C7 @( M7 ~8 p" ^' F* Ybegin+ B5 w- |- q0 \+ j! L+ T9 y
   if aStr = 'start' then begin
" [8 ]2 F& r! q7 ^/ u; F. q2 l      Str := callfunc ('getsenderserverid');
( ?. W2 M2 ^# S0 z      if Str <> '51' then exit;
1 d+ a) d8 ~( g; t+ ?2 |; ^1 ?- E# @: f
      Str := callfunc ('getsenderrace');
1 `6 b0 J! A0 \4 ~; U      if Str <> '1' then exit;
) S" Z( |$ Z/ [  a$ A4 a, V# w+ ^0 A8 e7 b* Q. A2 l' Z
      Str := callfunc ('checksenderpowerwearitem');0 a( f* h; D  ]  T+ m) p. P
      iCount := StrToInt (Str);
: k) j0 {0 \0 j! X# I  R( h+ O      if iCount > 0 then begin
0 ?. l9 f" F, r- e7 |4 z8 U1 p, ?         print ('say 先将带技能值装备脱掉!');7 h8 O5 B. `* Y5 ^+ _& ^
         Name := callfunc ('getsendername');
: r9 B  q3 ~0 o+ O6 h! m         Str := 'movespace ' + Name;! w5 s1 t  \" G0 ]% l# q# F' Q
         Str := Str + ' user 49 106 55 100';
  C1 r6 @( Q5 l, p7 k4 Q; C         print (Str);
' h  V" x/ d: i, C8 p0 w$ R8 L& f         exit;* d- s7 k1 M3 U/ F' @: P/ z* i
      end;& ~8 j5 s+ _3 S. G" s4 f; x6 c4 l8 J
      Str := callfunc ('checksendercurusemagic 0');
. r, z1 e6 R: q, Y8 u0 M      if Str = 'true' then begin
/ A& @3 v2 u$ ^& y7 u, F% A3 Y         print ('say 选错武功啦!');8 i. v" w0 Q, C
         Name := callfunc ('getsendername');9 C0 h: w3 R8 c7 d# s- W) ~: a
         Str := 'movespace ' + Name;
. j5 g! K: D) ?! O( K4 M) y         Str := Str + ' user 49 106 55 100';  b5 E1 g" h/ r/ m2 C# c% V. h
         print (Str);3 Z  g8 J3 C4 l1 a4 ], ~
         exit;# S5 x5 Y! w" g) L# P. Y
      end;7 z( |# Z1 r, E9 m
      Str := callfunc ('checksendercurusemagic 1');
4 h/ J  b/ R* |; J! N6 D! R; J7 D      if Str = 'true' then begin# U! z2 ~" G" `; I* \( Z
         print ('say 选错武功啦!');5 u" }0 @9 U( A- }$ F7 G
         Name := callfunc ('getsendername');
2 {$ V" H/ k- f$ F4 p: k         Str := 'movespace ' + Name;6 c" Z4 o; c1 k% O8 }  q
         Str := Str + ' user 49 106 55 100';) t! ~- C# n  B$ }9 U
         print (Str);. K) H8 |& U+ _" k5 ~
         exit;
. f* E9 B% G- p# r3 M: ^      end;+ W7 }/ v( Q- D7 P. m9 t
- O6 g4 ]$ u1 @) N
      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');
( q5 P" S0 F. m+ x- s) }
0 F. G8 s. j; k$ V      print ('commandicebyname 一级梅花夫人 npc 1000');0 c. j& U2 W- F' S
      print ('setallowhitbytick true 1000');
- k2 g( q$ w) B" @( ?
6 I/ f  v, h3 T# A% b      Name := callfunc ('getsendername');* W/ z8 s$ d# n
      Str := 'commandicebyname ' + Name;! O0 P6 u8 s/ S7 P
      Str := Str + ' user 1000';
/ I3 c7 T8 k0 \) P      print (Str);2 D6 n& Q+ J2 N/ `
' N8 e" P# e9 U: d% w$ \
      print ('senderrefill');
1 ~1 G' @4 c1 A, Y. Y% |- q( @6 Q' \  ?; k2 {
      print ('say 别害怕 50');
3 G$ n7 ]- H1 ?3 ^5 W8 ]' Y      print ('say 我会收下留情的... 400');
' q( @' K. u* I) O* {' [      exit;3 G* s1 a$ ]7 R! Q. \0 r' b
   end;3 O5 a1 B) n9 n
end;
/ @3 D4 Y7 ~" ?: P, U: C! ^- s5 x* T$ q  y
procedure OnCreate (aStr : String);
$ z, r1 l7 m% i# O7 H0 d1 u9 ivar7 i& N4 h0 `9 ~& Z9 K! x
   Str : String;
& t) i9 N. O2 u* ~+ bbegin
& ?, t) e! {: d: |   Str := callfunc ('getsenderrace');
1 ?- g8 G0 u8 G( w$ w. ^   if Str <> '1' then begin
* R" P8 F( k3 q8 M' N      exit;
, ~0 [) x6 a+ ~( V* M- O1 ?   end;
$ i2 A. z  K0 t8 Y! h' ]( O
: y- @. t- s0 X( C  }' o   Str := 'showwindow .\help\一级梅花夫人.txt 1';
) x; j$ F# ?/ S2 D; Z3 a) R* V   print (Str);
' {+ \5 s1 P: ^" W# w  y8 S. P   exit;
+ L4 B" P! ~6 Mend;) l* u8 h9 |" m/ M2 L

1 C3 o8 R! Z/ g' ~; ^: C1 J& Pprocedure OnDie (aStr : String);
+ ?" w- k  x% g# U  vvar, y3 [- M6 M) f2 ?" Q7 I" y, h
   Str, Name : String;2 \* t# J( J0 [9 Q$ R! K4 G
   FirstQuest : Integer;   
7 C* b9 J3 d! b( dbegin8 q, Y6 x) [* a$ i
   Str := callfunc ('getsenderrace');
- F! E8 Y: {% q# m/ g! c2 Y   if Str <> '1' then exit;/ N& y9 E, x: a. U2 W' U6 `
4 C  w. j' }+ O# ]/ g1 S* p6 _6 W
   Str := callfunc ('getsenderfirstquest');2 X4 p( z1 R& k0 B
   FirstQuest := StrToInt (Str);/ z7 M" H) X) g8 Q; [

# {3 M5 {+ `  M/ V% {7 `4 L   if FirstQuest < 3 then begin) a/ y; `8 v4 P' \5 c
      Str := callfunc ('checkenoughspace');9 E- s. Z0 o- T+ v% a1 X; j4 j; |
      if Str = 'false' then begin8 Z3 o5 r3 V2 D7 T' U
         print ('say 物品栏已满...');5 S/ c/ u6 V" t% [
         exit;
) |/ _: v. Q, D- u      end;
! \, \' ]  `! w* o
% B- K2 k' @, O# a! L      print ('changesenderfirstquest 3');1 R! I1 Q) \3 ~* T. s1 M
      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');: u1 S1 Z& _' j0 A3 r
   end;
; J5 g1 t& r/ q: z. \
+ N2 X0 _2 ]3 U4 _* K* [" |   print ('say 我可只用了3层功力哟 100');. q# I# u! w( t6 Z

* i/ W3 v5 ]3 P: P   print ('mapregen 52');
+ Z" W) M% Q& W
- x! X* Q/ |( K6 I  a   Name := callfunc ('getsendername');   ! D- Z, _7 M: ~! o6 J7 j" j! f6 }
   Str := 'movespace ' + Name;
! n0 G1 Z6 p; ?3 l. Q9 I: n   Str := Str + ' user 52 17 18 500';8 _4 R, {- ?- x1 F: ]. s) J
   print (Str);
1 l* H  c+ W5 o; R' v- }   exit;
+ K8 X& v" L$ r/ I: oend;
' \6 ?$ O+ m/ a$ ^! y
  }3 f6 Q' @( f9 I! |procedure OnChangeState (aStr : String);
9 ?; V: k2 u: Q4 d2 dvar
! p9 @; q) `+ \$ Y3 t# V! t# x% P, o   Str, Name : String;
; h+ {$ `1 Z$ A$ O2 ~! Vbegin5 _/ Y- Z$ a5 n( |/ i/ h1 m
   if aStr <> 'die' then exit;
; E- P  M. S; ]- g* K0 D1 o+ e5 p) c, S3 S# g2 D
   Str := callfunc ('getsenderrace');: V% R' P3 g. d) v5 B! }/ h
   if Str <> '1' then exit;7 f8 j2 J9 C5 ^$ ~
! p% M% ^% d! Q- i
   print ('say 别无他法 50');5 l6 D. e0 H3 e2 g
   print ('say 是不是修炼方法不妥呀? 400');) q# J4 C+ e2 a$ a* `1 A. _  J
% j; W5 {% d, l' \  {
   Name := callfunc ('getsendername');
( v/ @; H7 \. J   Str := 'movespace ' + Name;: T2 o3 |: C" J7 H% ]5 B& X3 n
   Str := Str + ' user 49 106 55 600';
6 v  Q1 @( k; t4 T. F   print (Str);
5 }. o2 N( ~8 R8 eend;! ?$ h) J% o) D: e6 a6 X. `0 t

1 W. M- D) F8 ^# \' `* d/ ?end.
9 \' N1 c6 S/ \; a-------------------------------------------
. m+ x2 S0 ?$ z# r! cunit 一级捕盗大将;
0 ]! c" e; U' z1 u* K$ ^( F
2 k' w9 G! b- l- w; \interface
$ T/ F( T, u* ]2 L9 ]) F7 {4 j7 Z: n  q
function  GetToken (aStr, aToken, aSep : String) : String;# r# L: L: h% C! R/ C
function  CompareStr (aStr1, aStr2 : String) : Boolean;9 b" ^4 F; ?# o5 {
function  callfunc (aText: string): string;
8 E) [$ D/ S8 A6 eprocedure print (aText: string);/ C$ K! n: r6 d- w. {
function  Random (aScope: integer): integer;2 i5 u) c: A; h2 u8 u2 \/ S
function  Length (aText: string): integer;
; Z0 k9 U4 q* Y) W% T: `procedure Inc (aInt: integer);0 H7 Z( L% N6 D6 D
procedure Dec (aInt: integer);# j9 r# K& z# [2 {9 K: T" D
function  StrToInt (astr: string): integer;
' N5 S) {/ u8 V( [  G1 Ofunction  IntToStr (aInt: integer): string;  I/ g' I4 ?( E" |
procedure exit;
& V% g7 i1 C9 A) N7 g" t; f4 a" }% A
! t3 x0 C' l) b2 Fprocedure OnCreate (aStr : String);9 k4 @! r1 H6 G* ?
procedure OnDie (aStr : String);
. ~2 i0 `, M, m6 \, g: ]procedure OnChangeState (aStr : String);
5 j) n! G# ~+ B( \procedure OnGetResult (aStr : String);
- N% Q2 X. R7 r1 ~( E: N. a1 [: C- g7 k' G4 }: E+ p
implementation( a, c5 D+ f% q2 ?
2 ]3 H1 ~! W6 u0 n- w
procedure OnGetResult (aStr : String);
8 h, x$ N- w6 a* c. jvar
3 I+ z4 N% C! J   Str, Name : String;& C( }  g& O) B7 w5 q8 T
   iCount : Integer;   0 |/ z- \) v! W7 u- l3 Q
begin0 ~9 K, d( q7 {6 i9 C* E2 D1 U
   if aStr = 'start' then begin0 y8 W' t' E$ [* Q% I
      Str := callfunc ('getsenderserverid');
1 ?2 k* k6 R6 X# [6 A- n      if Str <> '50' then exit;
6 S0 @6 D) h4 N, l/ K$ r% y! `/ F* t5 J4 X8 z/ X
      Str := callfunc ('getsenderrace');( `1 G& `% K( S) M  F( ~; W: B
      if Str <> '1' then exit;. D3 d. ~6 m/ n5 [  p  T" i2 X

  \. k; i; [0 w, q+ U% p      Str := callfunc ('checksenderpowerwearitem');
8 n. T/ Y; V1 ]6 `- v* w      iCount := StrToInt (Str);. H1 s1 i3 C, k5 }7 x
      if iCount > 0 then begin5 {5 P* D6 u% ]( S1 w( T
         print ('say 请先脱掉带技能值的装备!');
4 ^7 _) E# y4 X1 @2 l7 ~. g. ~' f         Name := callfunc ('getsendername');
) }- y1 n/ H. j         Str := 'movespace ' + Name;
! x9 Q; b! u7 ]) Z" y7 n& W         Str := Str + ' user 49 106 55 100';3 X* G0 W2 c$ \9 V! G- v
         print (Str);; p, j6 b- Q2 x
         exit;0 E5 P6 z' k5 n/ Q
      end;
9 j( D* M3 I# n- z8 F4 q1 l" {3 d      Str := callfunc ('checksendercurusemagic 0');0 }; w: M- C9 F& J8 o
      if Str = 'true' then begin+ X& V, y4 n4 k4 m, `/ z0 e
         print ('say 选错武功了!');5 q3 C: P" f( |1 R4 g; U% k# A" {
         Name := callfunc ('getsendername');
* c9 s+ |( `+ }' P9 C9 `6 S         Str := 'movespace ' + Name;
, s6 W- k. c+ C         Str := Str + ' user 49 106 55 100';2 n5 i# [* _5 n
         print (Str);4 X# E1 B2 h* }  h+ h
         exit;
$ D  q/ Z) l& Z/ z. M0 I5 y      end;
/ e6 S( v) {" M      Str := callfunc ('checksendercurusemagic 1');# X8 m5 e. ?0 }4 k  D
      if Str = 'true' then begin& w) h- `, v+ n+ @
         print ('say 选错武功了!');
. [2 W' ^( V% @/ z" x         Name := callfunc ('getsendername');
7 A/ l. }3 w' O* S" E% X4 U. a         Str := 'movespace ' + Name;
( n" h; `- P9 T; ~/ c         Str := Str + ' user 49 106 55 100';7 p4 ]1 |+ A3 Z: P9 d& Y6 ?' s
         print (Str);8 U. S9 ^7 ?2 G0 ^  ~0 A4 S. R
         exit;
( W$ L- c; U2 a2 P      end;, v, ?# _/ z& p8 [! t

, P7 w8 G' b. G" {: B/ |* h      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');
. H6 G* d  y' p; a3 K  r, F% ^! R$ p9 ^7 U# n
      print ('commandicebyname 一级捕盗大将 npc 1000');
6 k( o/ _9 W# @      print ('setallowhitbytick true 1000');
7 I" Y6 v- J' v, o8 t; V# a( {
. Z4 j, m0 x( W4 P: R! c" x      Name := callfunc ('getsendername');" c" t: T) r2 I
      Str := 'commandicebyname ' + Name;
+ V9 e0 i$ K. T* L* R3 ~      Str := Str + ' user 1000';
) A3 L2 j$ l4 n      print (Str);
; [0 D1 x2 d. j6 ?
& p# [8 z4 K$ u% i  M      print ('senderrefill');
- |  |; x! a/ v" ]7 i/ E4 ^- f3 e2 Z7 g& X) C1 `0 K& ?) i. q2 }
      print ('say 你还太嫩! 50');
5 ^; h1 R; T. u! w: ~2 g/ [) Y  _      print ('say 留神啦_我可不会手下留情 400');3 M1 g7 F) f* y/ W$ a
      exit;
' c) I+ A1 K3 d# K& [% ^: Z$ X   end;
7 Z" z. ]/ x: Z5 X9 D) B, ^1 T' @8 [end;( v! b& I. s) K+ ?7 {

4 f* h6 j* O2 @9 A7 yprocedure OnCreate (aStr : String);9 }) H: e) v! g) m) d
var
7 t& s7 {' [- z6 B& z   Str : String;
  A4 ^" G9 J$ a: Zbegin
1 ]$ N: h/ z+ n: [, a   Str := callfunc ('getsenderrace');
2 D* Z) @/ O2 i: m! E6 C) Q   if Str <> '1' then begin
! f' f" L  N, C3 e+ k  z      exit;9 e5 n  [6 a- B+ P% @8 X
   end;8 ], P3 }) [( N1 ?* ^; D. e/ N
- j) E. }+ B' s" q4 V2 j
   print ('setallowhitbyname 一级捕盗大将 monster true');
; V/ a6 z8 O; G
  \. C& K0 b. O+ w/ y   Str := 'showwindow .\help\一级捕盗大将.txt 1';# v, ]  Q, A) }' p3 @" x) \0 y1 W
   print (Str);
( Q8 u2 p( c% v5 _+ G0 ~   exit;
; ~; {/ \; N$ }9 _  w2 Aend;/ j2 l9 L* I* I: w7 a
: I- p+ b1 `$ S- v, q4 T8 A
procedure OnDie (aStr : String);
6 g% V: u6 ~! _9 N  cvar, m( d. l5 J; d$ A
   Str, Name : String;
4 Y3 l4 M6 @5 e. p6 r  C5 L   FirstQuest : Integer;
$ Y) q, g7 [( nbegin4 M, O; I" {0 j
   Str := callfunc ('getsenderrace');9 R- ^# T9 h5 H6 z! q
   if Str <> '1' then exit;- m: s1 C  n8 k9 X

  Z$ }9 j# A: K/ O& I) a1 v# w   Str := callfunc ('getsenderfirstquest');
2 X8 ^& x; w" ]9 |   FirstQuest := StrToInt (Str);
1 Q+ l+ ]$ i, {2 ^3 M: A
+ x- s' _4 }( ?   if FirstQuest < 2 then begin& k9 M+ H9 R, f
      Str := callfunc ('checkenoughspace');) g' W$ E9 a9 P0 _
      if Str = 'false' then begin
- d( h, e) a$ T5 G  `5 K         print ('say 物品栏已满...');6 y, [2 ?$ L4 c! T5 z8 ?) a
         exit;- e, @( J" V# [# z0 o4 {- M9 f
      end;
! L8 n1 G! E1 x* d9 @" B- C9 e0 P! y0 H2 }0 `
      print ('changesenderfirstquest 2');- ?$ c( X3 f" t: T7 ^% W
      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');. l: F: c0 s- U7 r9 Z
   end;& J( d- z) R. _9 |7 F5 _( W# a& {
9 T) N6 a' M: L
   print ('say 不可能_我怎么可能输呢.. 100');5 Q# c. J; I! a% s4 g- _9 e
: {3 y# H( N% Y- I3 S
   print ('mapregen 51');2 |, d" X4 I! B6 r' _$ }% X
$ X% k7 v/ U# u# I: m
   Name := callfunc ('getsendername');6 t7 o  [) w2 C- `
   Str := 'movespace ' + Name;  e; Y0 d) a, g
   Str := Str + ' user 51 17 18 500';6 K) J2 d+ C% O+ O
   print (Str);. m( Y8 w( r! a
end;
/ K, _  ?9 s/ k6 b
/ {( W" s$ I( q! n1 }  ^procedure OnChangeState (aStr : String);
( k. @% Z* H0 v: rvar3 C: f$ j! d: J
   Str, Name : String;
/ Z" n  d- w- S$ D1 [$ T+ \begin1 C- f% N. T4 k) u
   if aStr <> 'die' then exit;* X* \# u' `& ?- c0 O2 f5 ^

6 |/ x4 w' X& P" m* `   Str := callfunc ('getsenderrace');+ K) r" m4 Y& U: b: f2 L) K2 N$ S
   if Str <> '1' then exit;
" u7 h4 G1 @% i, I( n) ?
- x( a2 Z1 c- \4 b5 j: a   print ('say 回去再修炼个10年吧50');, J3 V% T& I/ P) }
   print ('say 到那时我在用双手跟你打 400');
; x( b" i  y, [# C7 G6 @  d' l( T- |$ o/ G3 V3 t
   Name := callfunc ('getsendername');' E4 t5 Q' Y( B6 H- s3 b; P* ?
   Str := 'movespace ' + Name;
) {6 }/ r$ u( j* g( x  q( k0 d   Str := Str + ' user 49 106 55 600';* Q$ o' S$ f1 b7 k; l0 g/ u
   print (Str);
0 C7 q- w9 C" h) {6 d) }  V3 A+ t
   print ('boMapEnter 50 true');   7 `- x; m' E- Z5 A* E
end;
; J  m7 |1 i$ c5 ?% n2 t1 d# R1 Y, K  h; G0 Q3 h
end., ~: f+ p( h; W

% Q! W5 Z+ a2 w* c7 R8 S---------------------------------------2 o3 X: @: H% Y/ v: E
  K4 w: w! C! W
unit 一级牛俊;  E& \; c! L" o9 p2 P3 @8 _

6 f" @9 y+ a2 o( R2 `  \interface8 o/ W* u& f0 I$ q& L" o, Y

6 ^# w- u0 V+ z, @4 wfunction  GetToken (aStr, aToken, aSep : String) : String;
9 {- |: Y4 z5 {function  CompareStr (aStr1, aStr2 : String) : Boolean;
* Q( o: l8 h& {! v9 u+ D; ~function  callfunc (aText: string): string;
, N. M6 Q  w" E) Y& x4 ^) m! pprocedure print (aText: string);
+ x% V' N! X3 w  m+ Gfunction  Random (aScope: integer): integer;
- L2 k3 G% B1 b! j9 {# \) S  ^function  Length (aText: string): integer;) F/ b+ J' ^4 w% v& T
procedure Inc (aInt: integer);
% t/ W' n7 `1 Eprocedure Dec (aInt: integer);; c( `" ?- n7 F' o
function  StrToInt (astr: string): integer;* f( }! h* V# c( @
function  IntToStr (aInt: integer): string;
% H5 n% y2 Q" W' oprocedure exit;2 n/ ~, O3 x+ d

1 ^, ]: H0 q& v# x' |procedure OnCreate (aStr : String);, {$ c' x  j2 L' S8 F3 E+ u, b
procedure OnDie (aStr : String);
! |% k7 ^% k$ ?8 fprocedure OnChangeState (aStr : String);+ Z5 ^  B5 n9 R7 D1 T: H: e8 l9 U
procedure OnGetResult (aStr : String);
4 X# j0 q& `4 i9 ?; y& l6 P# c
/ Z& m. Z7 j3 I6 z7 _implementation
2 f5 M$ A2 I1 o! F* S3 x
4 ?0 o; D1 i5 G0 H' Wprocedure OnGetResult (aStr : String);; {- X+ T; J, L6 F6 z: P
var; C8 M4 k8 ?# a# w0 N
   Str, Name : String;
+ ~/ ~1 r* e: K6 H/ l5 o   iCount : Integer;
% L: O5 q9 H, [; ^. ^" Ebegin# ]8 e" |0 Z" m; J) N2 o! _0 j  H
   if aStr = 'start' then begin! b) c% o* N& ?, p( }5 j/ D5 B
      Str := callfunc ('getsenderserverid');
. B: R, P6 O  ?( F      if Str <> '52' then exit;
( i$ Y  @7 W/ L4 h5 I* _( ]; F% r3 N! W6 a/ @/ O& i5 h
      Str := callfunc ('getsenderrace');- v; w4 w+ F2 x
      if Str <> '1' then exit;
1 r1 L3 ^# z6 L+ @" B* Y9 x
% |4 `9 N4 }3 \7 r  s      Str := callfunc ('checksenderpowerwearitem');
; i6 n' w' F5 t# W* |1 ^! }2 \" Z      iCount := StrToInt (Str);
6 Y& h1 S( y' O$ `( x      if iCount > 0 then begin( O$ K, C  t. _' ~) `+ K" g1 H
         print ('say 请先脱掉带技能值的装备!');4 K" k) L4 `. B. D' D$ n" |
         Name := callfunc ('getsendername');5 `$ i2 l3 `( P3 C: D8 @! F# I$ S$ Z
         Str := 'movespace ' + Name;8 Z& e! l0 ?4 `
         Str := Str + ' user 49 106 55 100';
* b& J5 }' ~# Z; a7 l         print (Str);  j( Q! w9 C& z
         exit;1 R1 z! J2 f+ o+ w8 z7 Y. z" ^
      end;1 J% ^3 d9 w& J) K) W
      Str := callfunc ('checksendercurusemagic 0');+ E" t1 ]+ X6 ]' Q4 H  v
      if Str = 'true' then begin( b# b! M9 C  J0 }1 x* u; w3 A
         print ('say 选错武功了!');$ h0 u- M4 e2 H# k) N# L8 `& h& I
         Name := callfunc ('getsendername');1 D9 F4 U0 f/ G, q4 w. R1 ~
         Str := 'movespace ' + Name;/ w$ Q' U, r, b% r2 H. g5 H$ k6 P( @
         Str := Str + ' user 49 106 55 100';
; A" r1 Q% L$ R9 r0 M         print (Str);
! s+ z6 k5 x/ }         exit;
) e- d! P" w1 C5 G' D1 l8 [4 v      end;& o- w- H3 O$ }" U% R
      Str := callfunc ('checksendercurusemagic 1');" F; l4 X1 h  l( C" b: }
      if Str = 'true' then begin
8 A# h' z- W; J& i! _         print ('say 选错武功了!');4 e9 l% w. M7 y2 c7 h
         Name := callfunc ('getsendername');
* ]) Y' I" c( W1 c4 I/ }/ V% h         Str := 'movespace ' + Name;) t3 T& R3 a1 @$ y2 h" ~
         Str := Str + ' user 49 106 55 100';6 q& c) f* `- \/ O+ u
         print (Str);- Q, g, p& _7 ?7 l# o0 s
         exit;, B. p4 A" Q* W% ~; a0 `
      end;8 t8 `. G9 K. p
: P( A; q9 g* w( c* |
      print ('directmovespace 一级牛俊 npc 52 20 18 0');
; y9 t' G5 \0 m+ U
" N& x! f6 B4 v- d      print ('commandicebyname 一级牛俊 npc 500');! k9 [- Z# k8 f: {' x
      print ('setallowhitbytick true 500');      
, k5 b$ W; ]0 O4 f3 I+ T+ l9 B  u6 ?4 @  u: o8 ^4 B# S
      Name := callfunc ('getsendername');6 t( o/ q$ N5 ^9 p; m$ o) j
      Str := 'commandicebyname ' + Name;6 B: ]+ Q! b; V, I% M
      Str := Str + ' user 500';
; }7 B4 ~0 Y: w5 L2 Z8 h2 E0 G) p      print (Str);; p/ N& k9 i+ S* z
& j2 T  u6 E2 T5 Y8 Y
      print ('senderrefill');
4 s9 y0 c" G8 K# O- i9 }8 O, V  q- ]3 r0 [: o4 y  V
      print ('say 10如果10秒内不能将你搞定 50');+ f; S. k- `9 _& _
      print ('say 就算我输! 400');
/ f1 L. a$ r) u+ F+ h4 r) t  Y$ S      exit;9 }1 z+ B6 }" d, F# @
   end;
- S. g5 F' }9 W4 k: F. I+ Uend;
" z- m4 A. A4 M* D- O% C9 {+ Z& M
  g7 Y' {5 m/ T  W) @8 iprocedure OnCreate (aStr : String);
% n/ ?5 }7 z: ^# `( }0 [- J' Kvar
9 h  U2 @3 L2 Q   Str : String;
5 ?5 X7 S" v5 v0 A( z0 S( y4 ]. X- ]$ zbegin4 M5 V/ g- e4 S: v1 K
   Str := callfunc ('getsenderrace');
* o; O" f* M- D  \. Y3 c   if Str <> '1' then begin- A# k( {* W: o( j" T5 d$ n
      exit;$ r$ ~& ]# ^1 ^4 P/ ~
   end;
# ~; F* B8 n4 v5 N( }& r7 A# y0 o
; A$ k+ q3 u; C( [   Str := 'showwindow .\help\一级牛俊.txt 1';
1 m0 Q: l5 A: M( S* g3 z, _   print (Str);
' {/ n. H3 l, V9 I% Q   exit;
. ^* G& ], \2 [) Y3 E, ^8 n; J0 Xend;; a) j# D; ?" J! c! Q

" h: r+ u- M! j3 }" z$ Iprocedure OnDie (aStr : String);) S  g5 g+ B- K  }0 O9 i" R
var
4 S9 A# ]. d; g   Str, Name : String;
# D& C' G8 g, F9 }1 b   FirstQuest : Integer;   & [1 p' y- G/ G; @
begin
; \0 F* `, P) g, j+ _) z1 B( {/ X   Str := callfunc ('getsenderrace');
$ q* a8 r# j! t  g- b/ Y, {   if Str <> '1' then exit;
2 y- Z$ J* |  h# ^5 A- }$ d* H9 c" \; z+ P
   Str := callfunc ('getsenderfirstquest');
0 f; @3 s0 z8 ?/ e) Y   FirstQuest := StrToInt (Str);8 a$ [. u; l# g8 q
! I, s0 g! E7 s6 f! i9 N' a# j6 S% a
   if FirstQuest < 4 then begin; k6 `  s$ o- i& e, e8 f/ E
      Str := callfunc ('checkenoughspace');! U0 |; i5 a6 W
      if Str = 'false' then begin
/ P" [  X1 f% \6 J5 B         print ('say 物品栏已满...');
% T: a/ o$ Q6 c2 _9 Y" A         exit;1 ^2 y; q" B+ D' d
      end;! M2 ^4 x8 ]+ Q2 @: {" ?4 q

  L$ h' p; W8 p# ~8 ~! ^      print ('changesenderfirstquest 4');
. \* X+ ?/ d0 W      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');0 P4 p; v! }7 {  D
   end;
+ x6 J8 J4 `# w  |' d0 v+ r* ?) e- `) r  S; e
   print ('say 什么_不敢相信!! 100');
: t/ l" d' ~/ M) U5 i6 n" \! _+ }. C/ Y6 @+ M
   print ('mapregen 53');- K. \; E9 p( N
% U( u+ W, F0 b8 z8 Q
   Name := callfunc ('getsendername');
* ~& ^( ^& m/ P# v& g  R: a2 d' b   Str := 'movespace ' + Name;
/ t; K" N8 G0 P4 i   Str := Str + ' user 53 17 18 500';% Z, M+ b. C8 T6 M7 D
   print (Str);7 @" D0 j+ ^: t: R
end;
. ~+ U, i' @4 G' a: D6 ^# A3 m( n! g! R5 B8 a2 g/ |6 u
procedure OnChangeState (aStr : String);5 N: ?9 _( I8 V; T5 U, c
var5 B- f* D, W2 E* J' @2 w5 a
   Str, Name : String;
+ d3 I  k$ D* P; b: ~9 p" fbegin6 T' Y5 r4 B' {: l& A( Y# h/ X
   if aStr <> 'die' then exit;0 [$ C0 h6 y0 R- @
1 l; B/ k. [  ?2 p% _! e$ r  ]7 X1 v
   Str := callfunc ('getsenderrace');
. M9 p3 \+ r( v/ m4 I$ K2 Z   if Str <> '1' then exit;
2 {' @; V/ d  ?& M* H5 P* f# A
6 T  ?' s* G# Q% Y. @  [   print ('say 领教了吧! 50');
9 Q. `# K* i! b  Z, ]7 G- u4 y   print ('say 差远了... 400');
: J& y# V/ v4 e) ?2 E  E* F2 O5 H. B! U5 R. p
   Name := callfunc ('getsendername');6 E9 V7 Q  ^- e( e% j
   Str := 'movespace ' + Name;
8 r1 a' M9 L, B0 T% K& t: i' h   Str := Str + ' user 49 106 55 600';& [0 a- @" Y3 j4 V1 u3 J# o: ^
   print (Str);
- N$ p1 P8 S9 ~0 Tend;8 P2 D; }  I! s
( a" d4 u% w% U4 Q( f
end.
8 w7 }1 A. C. t2 X! h0 W' K----------------------------------------, `/ n! ~% R+ Q5 J2 ~7 p) [
unit 一级雨中客;
3 g+ T( R) L4 q! K" l8 c# ^" X) e: K# x7 q1 D( Y1 U2 c
interface6 f# U; i- O* S9 j

3 y8 K& ^) S/ ?. M3 Ffunction  GetToken (aStr, aToken, aSep : String) : String;) a& c3 e7 ^6 Z" ~& n, G
function  CompareStr (aStr1, aStr2 : String) : Boolean;
) z8 W, f! R- E2 I- ofunction  callfunc (aText: string): string;. ~6 D" x2 D. _2 o6 u
procedure print (aText: string);$ K2 F. o. E3 ]/ H# j3 T1 w7 O
function  Random (aScope: integer): integer;3 V* f- ~! ^/ ~. z) l$ d
function  Length (aText: string): integer;7 t3 V/ v0 c0 l! @
procedure Inc (aInt: integer);5 P: ]$ k3 Y0 t3 c3 \! b  \
procedure Dec (aInt: integer);9 s. Q( Q/ S% y8 F4 N+ u/ I* i
function  StrToInt (astr: string): integer;0 G' ]$ i) M( l1 v
function  IntToStr (aInt: integer): string;
3 t" i: z; ?3 C/ ?" w# z3 Cprocedure exit;- L- Q7 N3 c! h+ B; S  M7 l7 K! _
. v7 z% x$ U5 M5 n, u2 {+ {4 T
procedure OnCreate (aStr : String);# Y2 l. Y, O, |  {/ w7 M0 @
procedure OnDie (aStr : String);* t5 W) ^7 }1 E+ `4 w
procedure OnChangeState (aStr : String);
: A. {: P- ?. n+ t( |: |) }1 o) Eprocedure OnGetResult (aStr : String);
$ Y& D! }, o& {& `
) M- o7 v7 Q; n; s, J! L. u: Vimplementation5 A  ?5 [( X! p# [

8 I* t. _  n* G& i) \: nprocedure OnGetResult (aStr : String);+ Y/ h3 F: _* {& F
var
6 ^. e3 t8 T* C  z# B! j   Str, Name : String;
# {9 j2 m1 ^3 b, q) s  H   iCount : Integer;
# g9 z: @9 C- S% fbegin
* w+ M& \6 \+ j3 \/ ]3 T! l) q   if aStr = 'start' then begin
0 E2 B5 ^9 ^, D      Str := callfunc ('getsenderserverid');$ d2 I' j! e( ^+ ~; e  v7 n, b
      if Str <> '53' then exit;# L, V8 h( X8 ~- j

) Y. }  n% s" j3 X6 [' |! }      Str := callfunc ('getsenderrace');, u/ q! \0 L& I& J6 X# R5 v
      if Str <> '1' then exit;
8 ^  Z) @; ]0 p. P+ z# L
! a" t$ O4 z2 `      Str := callfunc ('checksenderpowerwearitem');
% S& M+ P! L& K/ p' l; Y( l9 F1 @9 j      iCount := StrToInt (Str);
) z: x# z* z# t0 i% ~      if iCount > 0 then begin9 Z# ?  L& j7 V6 F
         print ('say 请先脱掉带技能值的装备!');7 Y* X. w: b; C
         Name := callfunc ('getsendername');# Z- T! d! x' \1 R+ q  ~4 n( [3 D
         Str := 'movespace ' + Name;/ Z+ J- [, v# _( b, ?( z$ j, j1 G
         Str := Str + ' user 49 106 55 100';: s! ^) O3 Z4 q7 K9 p$ q3 L
         print (Str);/ P7 o5 z' _% K5 W; _' `
         exit;& ?* S& }- x: d: i" o: H& C' i
      end;* N  I9 N( `0 k) y; }
      Str := callfunc ('checksendercurusemagic 0');
+ T$ M0 o2 l2 t' ]- {$ B      if Str = 'true' then begin) y1 L% w+ m  ]+ P  l
         print ('say 选错武功了!');
% o3 J2 }& g$ K6 |# ^; G( P; S8 A         Name := callfunc ('getsendername');
  G% H, \2 U& I5 Q         Str := 'movespace ' + Name;
; X+ P8 K" `6 Z, J5 P         Str := Str + ' user 49 106 55 100';5 W6 f, v$ ]' z5 S
         print (Str);
% f  Z& C% A7 U% B8 H9 x; L) a         exit;# \9 p* k* m0 R# P( T
      end;
  _" ^) e5 [& P' h- X$ C9 C! `* F      Str := callfunc ('checksendercurusemagic 1');7 s5 C4 r: S. ]
      if Str = 'true' then begin% t* i# I( \% A6 Y# a
         print ('say 选错武功了!');
& r& ]4 D9 W/ `& V0 Z: T& C" J         Name := callfunc ('getsendername');
7 }1 f; |  q6 Y7 g$ D: Z         Str := 'movespace ' + Name;* D/ |& z9 F9 o, ]1 T
         Str := Str + ' user 49 106 55 100';
4 K: c9 ^- s( W, _" ?8 L. d6 R         print (Str);
2 \# F: r! v  n/ u. V' z& M         exit;$ n) k; c& m2 Y
      end;6 A/ q, V6 c/ B1 r

$ R: O$ p: [8 `! i3 @      print ('directmovespace 一级雨中客 npc 53 20 18 0');
4 n) Z  Q0 R( B9 s5 \5 M  O' d; }$ }, m& v* ?& u4 a: V
      print ('commandicebyname 一级雨中客 npc 500');3 E8 d5 o; t9 X3 e- R$ W* ~
      print ('setallowhitbytick true 500');      
7 X& S- p. `" m2 T9 i) w, l0 b* W# w" c# h
      Name := callfunc ('getsendername');) A6 Y4 {& W- c# I8 I- P7 G. R! l4 F
      Str := 'commandicebyname ' + Name;$ {/ R9 H% E9 N) A/ a' x
      Str := Str + ' user 500';" a/ K% ~$ ^8 W3 o' Y; i; n9 O
      print (Str);! X/ M; _( U# {- F) _

9 Y! Q* m% p* W) G1 t7 Q& g      print ('senderrefill');
; Q& H9 r' d. \" Z) K) x  _0 O# Y- z$ T# w7 |7 R
      print ('say 领教了 50');
3 R9 E/ G2 T0 |; {      print ('say 开始吧 400');
- ^. `" b2 A$ P6 n4 ]- D  s      exit;6 U$ V, [& P, X* K- c2 w7 f( ?5 h& ^
   end;
) y9 D4 l* @, I' a: vend;
) Z1 D0 Y* P- y5 t4 y5 v& }5 S1 e8 Y6 m+ N  s
procedure OnCreate (aStr : String);+ ^/ o6 j( I% D' f9 r
var9 Z/ {! |  w( j: T( l
   Str : String;. ]8 t4 G: l! z* r
begin6 R3 b5 p. ?2 N: j& l$ B3 T7 v
   Str := callfunc ('getsenderrace');" m1 s# n( M+ i
   if Str <> '1' then begin6 v! I, f' u8 w/ _/ J' s  Q
      exit;/ l; H6 J4 K: f
   end;9 p  w/ x) }) m( H3 O
- L* p% g7 |9 P1 z" o
   Str := 'showwindow .\help\一级雨中客.txt 1';& a: G! T( z: Y" S% \% L& Q7 P
   print (Str);
3 l" j( I6 C1 _# G/ P$ }- h+ O   exit;$ v, N0 a/ f$ N, E! ^
end;: L9 H  C/ G$ x( }
) e/ m' R0 O6 X$ S# ~4 @% s
procedure OnDie (aStr : String);
' K% f% z8 k. ]5 O' R# [( Tvar
7 K5 Y% w% H/ l. }   Str, Name : String;
# P" y; D. s3 R+ A  _% c; e3 y   FirstQuest : Integer;- a* _: t! _% L0 ]
begin
, L: g, h, e6 ~2 ^. U1 b* l; [3 m* L) `   Str := callfunc ('getsenderrace');7 B/ \( t: _- n9 U/ Q/ y3 n6 z( G5 x
   if Str <> '1' then exit;
& ^0 x" \( L5 c: A" d! D
) i  ^" |' n, i) P4 L) \   Str := callfunc ('getsenderfirstquest');
! a% f' h4 c  h& I" p5 ?   FirstQuest := StrToInt (Str);* j, i; _9 X* F8 q+ o8 ]6 _
6 `9 J9 i$ K) U/ s$ }, y" s, p
   if FirstQuest < 5 then begin; F% s1 @" ]* X/ s" K. a
      Str := callfunc ('checkenoughspace');/ {" G; @1 q( B7 S& i5 s# ~) y
      if Str = 'false' then begin
, t0 ?" U& W/ d0 {6 s         print ('say 物品栏已满...');
# }- K- ^1 ]/ f/ v) w; h         exit;
6 X  N% g% I. t- }' T      end;- Q7 q. u2 r3 t" d
; _7 o: p  Z5 r1 t
      print ('changesenderfirstquest 5');4 A2 F' b1 q: a9 g- A. I0 A5 d
      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');% M. i2 \2 t# ^
   end;+ f5 ]! R5 ?; L/ s

4 |* M# |/ F0 d" M- F0 u0 m   print ('say 早料到了_佩服 100');
! b  j, @' e# v' {  L! ~  V" U) e" _- W  k' V( i1 o# V1 [/ \: u
   print ('mapregen 54');
% g" Z" {- \  j# q' e
) p6 m, }# {/ n( M6 y; |5 [" Z   Name := callfunc ('getsendername');7 I% P# @! f8 Q
   Str := 'movespace ' + Name;( i- L( j1 k/ `6 k# d/ ^1 e
   Str := Str + ' user 54 17 18 500';; r; h. P7 D( I. M1 q  C6 V' ^
   print (Str);
& j" P( w1 w8 b- |end;  f$ r9 \! @3 [7 `
$ m) x+ I' f& Y+ C+ T$ _; ]
procedure OnChangeState (aStr : String);
5 |- a3 H! Z! x* vvar
- e2 l  g  z' I5 l& b- V" ^   Str, Name : String;
) _9 l. i4 n6 Q5 ^" C  U4 Ubegin
# p1 M9 n4 R% [: e   if aStr <> 'die' then exit;
8 f4 @9 l/ u: f3 f: n7 m: ~3 ^) c0 n+ h; L
   Str := callfunc ('getsenderrace');% W- ~0 R1 i  V" a
   if Str <> '1' then exit;7 ^6 v6 E) ?5 Y7 a, v  O; u  H6 M
  ]1 |, ?4 c, W$ Y$ `
   print ('say 不错。只要能维持几秒钟');9 u2 r9 K. b  f% y; A: `+ ~0 w  Q0 B8 }" m! M
   print ('say 到那时谁都不是你的对手 400');9 s+ Y+ V8 `$ B3 b& r5 i) [
; H/ Y( \4 e  M' e4 x
   Name := callfunc ('getsendername');
+ A$ m# s% w7 e( r   Str := 'movespace ' + Name;+ F3 c* A9 y2 o' c+ j
   Str := Str + ' user 49 106 55 600';- ^0 M5 _1 w$ M' }  t1 P& n+ ?+ r6 ]
   print (Str);( t) B0 W* V8 U$ M. Z
end;
+ y0 I( F" e1 q) L& G' b/ ~; S( j, F# v
end.
  P2 O- k) ?+ n6 C" Q! v- G
- l7 ]. j: }$ [2 S* g3 g" u! `" D--------------------------------------------------------------------------------------------------------------
/ `/ X, g$ A. }1 U1 C+ B) U
- @& M# z4 C5 y% l- Aunit 一级老侠客;0 J8 R4 I* J, d

4 d& [% x% y5 K* P) iinterface% _) \! T5 ^( p) v3 L, X) Y

( b$ j) X; l* h1 L! o% sfunction  GetToken (aStr, aToken, aSep : String) : String;
, H9 N/ L3 r2 L8 T# }: A% w/ {function  CompareStr (aStr1, aStr2 : String) : Boolean;/ H- \6 }. l7 O
function  callfunc (aText: string): string;
& m6 u. v5 q; u9 R, K7 u1 sprocedure print (aText: string);
) C6 [, }; \8 `( L3 K' e& S( jfunction  Random (aScope: integer): integer;9 {0 c+ }! J' z
function  Length (aText: string): integer;
3 m. }, G. J" g& Sprocedure Inc (aInt: integer);
7 B8 R* B' _) i: I$ K& ^9 yprocedure Dec (aInt: integer);
+ i3 D/ V. t/ X4 F& qfunction  StrToInt (astr: string): integer;0 i6 K8 i& ]1 Z3 T. {4 E  c
function  IntToStr (aInt: integer): string;
3 j: k' O3 n; y2 L- q' r4 Rprocedure exit;
! I) k$ C5 ~2 ]! k- E" S4 @' x/ N7 `& T
procedure OnCreate (aStr : String);
, _4 p5 }: d9 l  Lprocedure OnDie (aStr : String);5 J: x8 c) i% p* b% w2 [3 T
procedure OnChangeState (aStr : String);3 P) v5 p$ j+ T2 Y. a4 ]) B3 h
procedure OnGetResult (aStr : String);
8 J; T* b6 Y# S  U8 C) C
2 Q8 V4 ~, ]+ }) simplementation8 `! M! w* g* I7 D/ Q' D/ g

! p* p. U. V: wprocedure OnGetResult (aStr : String);
/ r1 ~  C( B" Pvar
0 f' i- E! U2 S' a$ O5 }   Str, Name : String;0 k' g8 N( p/ g1 \
   iCount : Integer;   ) ?. i5 g! M; B4 U- |2 N, S$ o; \) u3 j
begin) t4 g( |7 w4 L; N! ^0 X+ E  ^, x
   if aStr = 'start' then begin( ?8 @- |& _* [. J2 X' e
      Str := callfunc ('getsenderserverid');9 a  _9 f3 w+ J4 V) i" H4 F
      if Str <> '54' then exit;
* T5 h$ t9 H; c- M3 ]+ ?  n3 c: W- P7 ^  \
      Str := callfunc ('getsenderrace');
: l- Y2 O3 Z8 W9 a" O, _2 `      if Str <> '1' then exit;
0 S% l" B0 u& \8 x9 S" B) C% ]: W! J& }8 l/ ?( w$ t9 B
      Str := callfunc ('checksenderpowerwearitem');3 l2 [/ X' X9 M! Z% G" ?
      iCount := StrToInt (Str);+ G9 c  T" u5 e* V+ O+ s9 w
      if iCount > 0 then begin  X; h  C0 D" j* S6 ~( a
         print ('say 请先脱掉带技能值的装备!');
0 v$ N7 P, F* r/ z         Name := callfunc ('getsendername');
# t! x/ W7 |# {  w+ i' K         Str := 'movespace ' + Name;1 U* |0 W$ w! |2 W8 Y5 e6 [
         Str := Str + ' user 49 106 55 100';- D. g4 m& N  c
         print (Str);5 U5 Z" o& D  l5 O( Y" g/ B
         exit;7 H) a9 {( O- T9 F. V( x/ F2 k
      end;9 B$ a' E# W4 G2 b
      Str := callfunc ('checksendercurusemagic 0');
. u/ K" t) s* }+ T: s, H      if Str = 'true' then begin
! z6 s- G% T- n5 g$ X9 q         print ('say 选错武功了!');
, P, R/ F0 n! T( Z" k         Name := callfunc ('getsendername');
" ^" @: \* y/ j* X- o; |7 k' p         Str := 'movespace ' + Name;
8 l! ^  G7 C, i9 C         Str := Str + ' user 49 106 55 100';% p8 W: g( O* {, }+ Z
         print (Str);
0 A4 i" t; v% Z7 z         exit;& E2 t" z: @* y0 E9 |1 H
      end;
  J/ y9 u- w; s% b: v, \0 Y' I      Str := callfunc ('checksendercurusemagic 1');( @) F3 {2 D; y  G
      if Str = 'true' then begin
; i' c% p5 T: T8 z         print ('say 选错武功了!');
2 e, S: f& @: x. p! c         Name := callfunc ('getsendername');
- w5 x3 _; a4 t1 ?/ u3 h         Str := 'movespace ' + Name;
- p9 Q# C/ w& q* @5 C         Str := Str + ' user 49 106 55 100';; \, s$ z* y, g. U* t
         print (Str);
, b7 B$ Y) o9 d1 ^3 X8 a: M         exit;
" C/ [& B( k/ d( v: g      end;
1 Q5 n7 Q  N, ^. l! i% Z
$ i- Z5 ^0 h3 Q1 T6 a) I$ ~      print ('directmovespace 一级老侠客 npc 54 20 18 0');3 v, G! T# h) @  e8 E

, O% f7 n; o& S5 h      print ('commandicebyname 一级老侠客 npc 500');3 T1 ]9 B0 I! n" U6 Y
      print ('setallowhitbytick true 500');      
7 R4 [- N8 U! K3 h3 e( @( Y7 B, U1 l
      Name := callfunc ('getsendername');
6 C5 B% |( U+ v+ ^6 f5 Y* d      Str := 'commandicebyname ' + Name;
# |& A! z) y% D      Str := Str + ' user 500';
+ c, J- U; \6 _% F! r! Y      print (Str);5 E/ M6 h$ a2 e$ M" r" }

" n# {. r* h4 `6 S% I      print ('senderrefill');% ?6 W- D1 u; N2 [% m9 l

# Q( D* c" h$ g/ m0 ~- H; G. ]) |1 |      print ('say 如果你实在想比 50');/ O& m! s% p5 N6 P% \& h- X$ p
      print ('say 我将奉陪到底 400');
8 ]6 J! @3 O+ ~7 O/ B9 Y# c      exit;* k/ b3 W% i3 H0 R+ Z+ _+ c3 P
   end;4 [2 `9 c9 N! B; j
end;5 w) K1 i! @6 B: h
: p  r7 t+ T3 }2 w- J& c
procedure OnCreate (aStr : String);
! E$ `! ]7 n+ B& E/ mvar$ L2 v) o2 R) Z
   Str : String;
$ _$ `$ l; ?7 d! Pbegin# K2 t9 ]. }- Y6 v0 w( h% N
   Str := callfunc ('getsenderrace');# z- ]7 K0 W  L4 a$ X
   if Str <> '1' then begin
) `# O' W: r8 L$ @" t      exit;
5 p. v  X6 O) z! W" _$ J   end;& i0 b  z; m& Y* \% t
' W  w$ |+ L0 u/ p0 @: |
   Str := 'showwindow .\help\一级老侠客.txt 1';" i* `. m/ g! y  b. S" a
   print (Str);# Y! {6 x7 N& ~. {  o, i+ @
   exit;
" P. s9 Q0 x1 S& t3 Q1 ]end;; `: g! T9 ^# Z" Z6 O

5 m! Y7 d6 f, F8 gprocedure OnDie (aStr : String);
* |* D/ N0 L, h% N- B- r7 vvar
! q  [) X% c7 t: d% z) F   Str, Name : String;* n2 g" L5 g7 v
   n, FirstQuest : Integer;   % c% E0 ^- s7 ^; u( ]$ X
begin
( J$ k: [5 c% x# x   Str := callfunc ('getsenderrace');0 j) W  `" p- y& O' R; k( W' a
   if Str <> '1' then exit;1 |( w/ r! b, Z
+ m; M2 T$ _4 Y
   Str := callfunc ('getsenderfirstquest');: E  K' }% ]! _2 n% F5 M6 k8 {
   FirstQuest := StrToInt (Str);
4 e7 G- u/ f9 H4 G8 z! q/ }1 ]2 o1 q& x  {4 J
   Name := callfunc ('getsendername');3 H3 Q/ E8 j. l

- g, j" d8 m" t5 V) K( X   if FirstQuest < 6 then begin
. B1 a2 D: p$ m+ T      Str := 'sendsendertopmsg ' + Name;$ j+ Z4 r5 s7 u: k: N
      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';
$ F1 D& G. h3 I& X      print (Str);! P3 o% t. P" E

4 h" Z4 d0 l8 T( j6 a, X      Str := callfunc ('checkenoughspace');: |8 }- t' G! G
      if Str = 'false' then begin
( x6 Y" |( C. U' [         print ('say 物品栏已满...');$ @2 g9 l' M/ k1 r
         exit;
# j. g  a4 V$ i5 Z) t      end;
$ [  }3 ]4 g2 u. l
' |+ I- @  G" ]# }9 h( Y% x      print ('changesenderfirstquest 6');
  e0 S1 o; A8 i$ l  E
- j5 o( y+ N9 i. A$ I1 r4 S      Str := callfunc ('getsendersex');) B7 i' ]% X0 _. @2 ]1 T
      n := StrToInt (Str);8 l7 S0 P( u# q6 e! i. n
      if n = 1 then begin
# C# p2 T+ g: c& w9 v' W         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');
: N+ x0 u, a2 J& l( O9 i; D* x      end;% b/ C* h6 X- |; [" M! |8 n
      if n = 2 then begin
- C  \- K  M. E8 Y4 ]5 c3 n' P         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');1 K* J& @: \5 a% d
      end;' \  |1 Z: M% o" ~; n
         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');  V) Y6 J! E6 i, ~6 F( V
   end;" H5 K0 l8 }: i% y+ _

# T/ P- \  W$ C+ Z! q- I! j. b   print ('say 佩服_佩服 100');
! T* a% J8 R1 ^* i; t: }2 a+ Y1 t$ W, J: O- x  a8 U4 N" E. {
   Str := 'movespace ' + Name;
' I/ L$ @4 j6 K7 F2 F   Str := Str + ' user 49 25 35 500';
- F  X' r7 B, Y+ m   print (Str);7 D& o. Y1 k# q- W, B: x  s% ?$ O
end;! u$ M" d: Y+ T
5 K2 V8 k' v9 X' P: @: x# @
procedure OnChangeState (aStr : String);
! R" h+ x1 s& B4 d2 \var/ y% W# U7 T! T( T& o4 T. {9 L5 a
   Str, Name : String;0 N4 S8 H1 a3 w5 s: ~: [1 K
begin
" c/ t  }! v; V* {   if aStr <> 'die' then exit;7 Q1 y' Y9 a* j/ s2 u
- Z; U1 e  R0 [0 q" t
   Str := callfunc ('getsenderrace');
% B* l) P. y: c: Y% z0 }   if Str <> '1' then exit;6 V) q. K& ]" @4 }8 H% a) n
, i. f- p1 B) U' U4 m/ E0 Y
   print ('say 小小年纪_就有如此高深的武功 50');5 G: F# P: G1 I" c' E8 o3 F
   print ('say 日后要继续修炼... 400');, v% G: H' S* Y4 |& `! G
  t" h9 H2 C& X) i
   Name := callfunc ('getsendername');7 T* J3 Y$ _, n2 ]( {2 z
   Str := 'movespace ' + Name;
/ X8 u: d% e* c+ t1 d( |' b) a   Str := Str + ' user 49 106 55 600';9 x/ R8 g* m5 t( U# E3 M- L+ |/ D# k
   print (Str);
9 k( m9 C* i; _; n+ o  }end;
7 X. k/ J4 y( x- u9 o1 I7 d% b) I1 ^, H- ~* t
end.
' P; g8 ?  o7 U7 W# {9 m
+ b) |. ?; S" _; t& I5 C+ A& L-------------------------------------# A8 H# ?7 m! H+ Y9 w
+ @2 w' L+ g" \4 z: k
*************************************
' d" h. K& F7 f* \. O* P, D" S' A- l- r8 R
奖励物品代码:& v% X1 Q  ~2 w4 {' e
; y- b% c6 E' T7 I4 w+ d
*************************************
+ s2 C5 h) M' z  X$ E0 N0 S& W9 `
男子侠客弓服,男子侠客弓服,24,新手村擂台战利
! ?* p# i; ~4 A3 m& b3 F7 y0 I$ E4 d' B4 T& Q& D+ z
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
9 d1 l6 S4 d2 t
3 M# }3 q4 ^- S9 w0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,) s& y8 V) K9 q  g# l9 Q# v. D
女子侠客弓服,女子侠客弓服,24,新手村擂台战利( _% h6 e" M' Y. z
# u, V0 Q' F5 M
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,109 T6 |- @+ _! @8 V! o

0 n; g* }) j8 b+ C" i0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,
3 {/ Q5 X. U. H& V9 N+ |3 Y新手训练拳套,新手训练拳套,6,新手村擂台战利! f  B# A( k, C/ ^* y1 C* y
: v+ {2 W8 O  B+ d5 k
品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
, h" ?9 g( L0 _) L6 I/ n; G$ T& @: ~- R8 Z
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,5 h5 }2 x5 S# y; R
新手训练神剑,新手训练神剑,6,新手村擂台战利0 @* p& M: h2 @
, U- k4 D- f5 a3 V( m
品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,8 x- q' p, n5 J' X( L; I# n; `# F$ @  W
+ |5 U/ Y) ~( i4 @/ m, P
,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,5 P  ?, n8 [% |. N" p3 w' ]
新手训练弯刀,新手训练弯刀,6,新手村擂台战利
. y) D' K/ P0 J
- \& u% L1 I4 ~. z8 \, {) j3 Y: U) k品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,, e2 x* b( o3 d( ~) e. c' x! I+ V' \

6 f3 h. M) J4 g1 @- i,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,9 X" R* V  o$ \) s% T9 X8 p
新手训练长矛,新手训练长矛,6,新手村擂台战利
  @( o, B. B6 z) g9 \+ M6 @$ E+ Y* y, s5 j
品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,
6 A+ d+ h: W7 S8 `$ B* u$ s7 J2 W" x/ ]3 a, j
,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
! E2 L+ C3 M7 j" Z) m! e新手训练大斧,新手训练大斧,6,新手村擂台战利) M# w! ~! C6 I3 w0 {8 z1 Y! _
- r$ {: |8 ?5 X/ A% Q- A% {
品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,6 k7 l, i! c% E- }2 |$ ^4 B

; I* L5 s' D/ I/ n6 I,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,- r3 e* R% e  j0 W* j6 e$ Y, V

8 q2 a- L+ k3 u* }. b: X2 H  K******************************************
- O) g- R0 U: L. {5 u" p) S1 m3 L* X- l, G
, H* ?& g0 z+ v( V* e! b* T
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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