三千论坛

标题: 新手村擂台脚本 [打印本页]

作者: 异仟年    时间: 2022-9-5 20:23
标题: 新手村擂台脚本
新手村擂台脚本# |9 P3 d1 a# \  k; `- \. U
% f$ q. @* p; Q1 m; `

# A7 U( m5 r. {: L释放到同名文件夹下覆盖原有文件。
" T# n9 y3 @2 k) C0 }1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。; y) \: }1 \! P
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。' C' L. l# U, V) j# ~. S/ d
(由11月23号发布的最新服务端修改)% M& ?$ r, B( o4 q( s3 q
-----------------------------------------) s: l: i, i! Q2 m, n. f
内容介绍:5 a! P0 \" N, V2 ~) c
新手村比武获得奖励:
# ?+ A5 P" Y, l1 Q- b: [; V( x同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0( R+ ?6 q* ?5 g+ }# Q. J
0 s! f; I/ S2 L

, ?2 A; W) D2 c4 E/ u4 H最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较
6 |' ~; ?, _- Y6 R7 z  W( }; }! k
7 ~# D7 I( @& H喜欢黑龙,所以是黑龙的加强版!)% V# M( z5 ~  h# z2 Y1 a
. S  b5 ~, R; x
[replyview]
  q# t/ I' g+ a+ C9 d& _0 \4 G0 d# z* Y
-------------------------------------
. P+ t! t+ \/ l- B6 z" |' f. k: R5 n4 I/ J# ]9 K
unit 一级梅花夫人;
# Q6 h: v" v  D, i  X1 V* {+ @% D( f9 _  X0 O4 S3 _
interface
% X5 P' ~* a! L- n
# Z" k7 Q0 ?# Y$ a$ Qfunction  GetToken (aStr, aToken, aSep : String) : String;3 v3 q4 A/ P3 `+ Y5 d8 ]2 ~
function  CompareStr (aStr1, aStr2 : String) : Boolean;6 e% [: k" W/ o  b
function  callfunc (aText: string): string;
* |; B+ r) D/ u0 `4 \$ c; aprocedure print (aText: string);: [  T9 Q3 V$ y$ a; m0 s% s9 J
function  Random (aScope: integer): integer;
# N) Z0 `' `1 M! U% [0 b4 _$ D9 jfunction  Length (aText: string): integer;( Q# {# b# x* C" R
procedure Inc (aInt: integer);
9 w& H# ?) ]1 A7 w3 c; Iprocedure Dec (aInt: integer);. b, Q6 |* f" n( P2 U) }% n- \
function  StrToInt (astr: string): integer;: X& ^* e$ {& b  Q, f4 t9 L8 Q  E
function  IntToStr (aInt: integer): string;
2 {9 ?9 V) @9 g2 `/ y$ u5 \procedure exit;0 _4 h% w4 u5 g
9 |! R/ n5 j: C) s' \
procedure OnCreate (aStr : String);
. [% E; v) n7 q6 A) q0 x* p% rprocedure OnDie (aStr : String);, Y( a$ M# j! f- C" g
procedure OnChangeState (aStr : String);
! J1 U  e. Q! Y* S$ sprocedure OnGetResult (aStr : String);! X; }3 o  y( i" Y" U) [

3 M5 S7 E; V8 J6 S" m% T  O, b0 }implementation
  J" \: K' M$ v) b; _/ B4 v+ k, ^5 s' h- J" Z
procedure OnGetResult (aStr : String);
  U6 y! v: ^  _5 }7 w: J% @var3 j% S9 W: C" r$ z" t& v  F
   Str, Name : String;/ O' z3 \0 Q4 f" ^9 u" i: T2 _
   iCount : Integer;- ^) H7 Z1 s& `
begin
9 k6 b" {2 b, N, f, E  |& Y   if aStr = 'start' then begin
7 z0 A: E0 E0 j8 s$ r# [  x8 g% ]      Str := callfunc ('getsenderserverid');7 ]. `6 R+ d) n% C- O5 E
      if Str <> '51' then exit;' Q" o! w% }4 P2 ]% S1 w8 ?1 V

9 a% P1 ]1 y1 @& k      Str := callfunc ('getsenderrace');" F4 B. f! ^2 Y' _( l: v
      if Str <> '1' then exit;( ~& y$ ^4 u" u2 k9 {8 S* F
' I" D8 g* S5 }4 ]- L1 B
      Str := callfunc ('checksenderpowerwearitem');) C" l: I3 K1 p5 W/ m% v+ }$ @% [
      iCount := StrToInt (Str);+ u2 L& n  @  H+ b( w/ w. o3 ?
      if iCount > 0 then begin
# Y5 f  g$ A0 x         print ('say 先将带技能值装备脱掉!');0 E7 V, }0 u' z
         Name := callfunc ('getsendername');/ c" r9 E  |$ U+ h6 i0 D* i3 V
         Str := 'movespace ' + Name;
% W' m) a( Y# H2 _& [         Str := Str + ' user 49 106 55 100';* F" b+ b9 e- @! x" q  m. W
         print (Str);# X) Y' Q, f# L( z7 a0 `  M2 J
         exit;
: ~- u, g( }! g      end;, }  o9 o) D4 G+ @% }& j
      Str := callfunc ('checksendercurusemagic 0');
/ ^  [# Y. G/ u+ {6 N      if Str = 'true' then begin. ^3 q6 o& Z7 l, ^# L- l
         print ('say 选错武功啦!');6 D( h5 f1 d4 V" ~( f8 P
         Name := callfunc ('getsendername');
" D2 _# I4 F6 j1 a6 Y& l; G0 \         Str := 'movespace ' + Name;
8 Z& P" J  ?( D. K: _3 A' A/ Q0 @         Str := Str + ' user 49 106 55 100';8 [: G7 R8 e, ^* Y; U
         print (Str);* e. C& W9 E( C' H/ j/ C8 c
         exit;( Y! Y6 J- y# s8 o* v. a9 D9 x* o
      end;. O: o3 L- R% ~6 M+ s7 }: P
      Str := callfunc ('checksendercurusemagic 1');. m7 g0 i" i& z8 }
      if Str = 'true' then begin
9 x" y, L8 y( ~9 P4 X         print ('say 选错武功啦!');. a' J. N  C8 x+ {
         Name := callfunc ('getsendername');
/ a9 N' z# X, G1 ?! \9 s2 x         Str := 'movespace ' + Name;& F! Z" T; U5 R
         Str := Str + ' user 49 106 55 100';
) y: ~; s  L4 `! C         print (Str);
' l9 G, J/ m+ c& L         exit;7 `& V8 Y. Q3 J+ Z3 D8 P) M
      end;4 [1 G& F4 Q, m5 f
- y. @! z+ W! k; v7 B# h
      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');
! y5 E- u  ~" i0 ?$ S8 |5 r3 v4 v. W% p! T1 N
      print ('commandicebyname 一级梅花夫人 npc 1000');$ q9 Q9 [2 j7 Z! W; f- ~
      print ('setallowhitbytick true 1000');
$ j5 }$ e$ \' f* i: f5 e9 T, Z( W) l4 r+ j; D. q
      Name := callfunc ('getsendername');
5 O2 r0 s8 h- L. L* D) q4 _      Str := 'commandicebyname ' + Name;) h' Y% o) b0 q3 r1 N" e7 o+ E
      Str := Str + ' user 1000';
/ b) Z" r7 R; r& D) ]9 p      print (Str);9 B$ x; v6 `  L+ P. R% C- `
9 H, v+ N" C5 ^2 M& |. Q/ u- s
      print ('senderrefill');; f1 V( ?) c( V' X$ ]5 x

8 e+ q9 j* e$ z) I! g& M      print ('say 别害怕 50');
- b/ e3 i" Z$ L# r4 n      print ('say 我会收下留情的... 400');
+ R# d( N% J9 E. p# b5 B5 e      exit;
: Z7 _2 y7 S0 v5 a% [! c- V# |. P   end;# c6 ^# |" _; l, j7 `! f7 f
end;- E4 t1 S% }/ z

# ^& o8 _- j, J: @9 z1 n. A  i; _procedure OnCreate (aStr : String);
# C/ F0 U1 l- ]( \6 g6 W, B/ [var! n0 t4 N& `: c. P0 A) i
   Str : String;9 f4 ~, a/ F. G# s9 I  k5 e6 T
begin
, i9 q8 b7 i9 L  h' W   Str := callfunc ('getsenderrace');8 ?! C) {2 W/ i, D  i
   if Str <> '1' then begin, [; l- H  B3 u" s  L
      exit;" S8 C- Q) W/ O9 B0 Z, q
   end;
3 J5 H+ s+ f; b* [- g
- U" r  B% `6 F9 B5 E5 g5 q   Str := 'showwindow .\help\一级梅花夫人.txt 1';
6 G, d4 }+ T6 m   print (Str);
( f$ p' d7 h5 C3 ]4 e0 b& \  v! o! Z   exit;
- g1 o  Z$ Y' dend;- g4 l% p0 U* k9 a

1 k1 y: F3 D# E8 _procedure OnDie (aStr : String);
" ]* N: k, x& I8 {9 H4 O9 {) J  A6 xvar0 P# r& k% J( O% w6 r8 p
   Str, Name : String;( s6 S8 z! c( S' E
   FirstQuest : Integer;   
' V- W& |! Q5 {2 f2 u  s6 A; Abegin
0 F. S7 S" u& y4 ]4 v/ T" n8 e+ ]' A   Str := callfunc ('getsenderrace');$ e+ N0 i- `( Z0 V: {& j' Z9 e
   if Str <> '1' then exit;
0 }: B. F3 q6 [1 c  [
$ _& m; U" M: z- R& [   Str := callfunc ('getsenderfirstquest');# V+ j( O. A0 S
   FirstQuest := StrToInt (Str);" @* W+ _1 n2 g! G# @8 Y  l

" G) Y% I, t# i; a% z. C3 y   if FirstQuest < 3 then begin3 \; K. M# j- U6 Z+ ~7 I* p
      Str := callfunc ('checkenoughspace');: G2 W: n0 l* L0 {8 O
      if Str = 'false' then begin1 I/ O# F6 z: F
         print ('say 物品栏已满...');
7 [# G+ p& H5 n2 {         exit;
; X" V3 J1 @/ S% z- I8 N1 e1 ^      end;/ K/ H- V  r& O1 H7 C- Y
* E' c2 b& U& b% x* P; S( X9 q& c! T
      print ('changesenderfirstquest 3');
* S- ]' Y; Y0 P8 f+ s; O      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');  i6 t! |9 b0 w% M$ F
   end;
. h/ S, e* e5 _- Q7 D- |
7 C- l' c3 n8 J9 A   print ('say 我可只用了3层功力哟 100');, l5 G- N0 F) J, Z% D

% M2 e1 z0 s" O& w   print ('mapregen 52');' C, e" y3 R" T$ m- y8 u' B( n7 W4 [

( O1 m9 Q7 q0 D, G3 p7 R; T/ l/ L   Name := callfunc ('getsendername');   
. W/ q/ |7 u6 T* J   Str := 'movespace ' + Name;
. c% Q# m3 r$ Z6 n! d% j# s1 @   Str := Str + ' user 52 17 18 500';
6 C% U2 ?! B# K; o& Y   print (Str);
- c* P( a" O+ n$ b8 ^2 \   exit;0 K$ E$ W1 T. ^5 K3 w% W# F
end;
7 u, N2 e! x% p5 T* k& V5 |) e
: O/ X0 @/ U! Y* {+ d0 Fprocedure OnChangeState (aStr : String);
7 ^: |/ r. u0 I+ }- n5 Kvar
6 `8 ?8 {2 C" O) u' M# T   Str, Name : String;
7 Q3 r( y2 J0 Tbegin- `, o; ^( z4 b8 @* Q+ A* }3 B
   if aStr <> 'die' then exit;
9 k( Y- |* q9 r; }2 p+ \
& J) z+ o& w# Q   Str := callfunc ('getsenderrace');- N- r$ q+ c9 B% W7 i
   if Str <> '1' then exit;0 R1 b  |. V& Q6 k2 O% x5 E5 ?' d

/ X: T$ m1 a2 \$ M+ }2 k, W7 r; z   print ('say 别无他法 50');! b+ w2 \4 C6 Z( `0 d0 ~: `1 O
   print ('say 是不是修炼方法不妥呀? 400');
) U* p' I& t3 Q5 ]
. x5 u- O% P* O( J   Name := callfunc ('getsendername');& V9 |) a' z: ]  K
   Str := 'movespace ' + Name;
' c! e1 P7 \9 `/ b   Str := Str + ' user 49 106 55 600';* u* i4 `( J6 N4 ~$ D# E; d
   print (Str);
, N9 X; d  T4 z( q2 k2 ~  O( pend;
  v  w+ Y& o! T$ @1 C: |# H* r
end.+ o, g; B; G  M0 q! \  i9 O2 [
-------------------------------------------4 d1 y; Q, b* i
unit 一级捕盗大将;
% Z. z5 Z  U4 J6 c. Z: g- X2 h; N* ^2 b9 n9 h
interface
- l; m2 I. F1 T* p& T% u( N
1 l" z! i2 I& j# z0 Pfunction  GetToken (aStr, aToken, aSep : String) : String;
: D( c! y" ~+ @+ H: [2 Lfunction  CompareStr (aStr1, aStr2 : String) : Boolean;9 b% F' \! n/ U7 g, p3 h) \
function  callfunc (aText: string): string;
9 \5 _  L' y# e/ Y, b. Nprocedure print (aText: string);% V( [' A% a+ g, g8 C
function  Random (aScope: integer): integer;
' l0 M" h$ Q, t* x! x+ ]function  Length (aText: string): integer;
# g3 `! `& @+ V3 l; F% l6 }procedure Inc (aInt: integer);8 m8 e" Q# ~& p/ g% ^/ m  {) n6 S! [& g
procedure Dec (aInt: integer);5 l/ X( i2 X7 E
function  StrToInt (astr: string): integer;
) S$ d$ d( ?3 l! ofunction  IntToStr (aInt: integer): string;" E/ C$ W; V+ C% i- J
procedure exit;
0 l3 \" k1 l4 o$ S* e, R3 {3 u
0 S0 q9 Z; W2 I# m% a% \; `procedure OnCreate (aStr : String);
$ k3 H' j) e/ W# D& a# m9 V: rprocedure OnDie (aStr : String);
7 z7 h1 _$ c8 c) `procedure OnChangeState (aStr : String);
" I% @1 J; z$ bprocedure OnGetResult (aStr : String);
# N! g+ b: s! ^' v- |) A' J: d' s0 ~7 w
implementation$ A' s; [4 B2 i4 L$ c

% `& U3 b1 }' c7 [5 t. m1 K3 [procedure OnGetResult (aStr : String);7 X1 n' s9 Z) E! A
var  I& R$ S1 }/ V& j
   Str, Name : String;0 E% G8 v# M5 y1 b5 i
   iCount : Integer;   
/ j+ s2 _) s  O( ^begin5 v' N, C+ H& K  ?) e
   if aStr = 'start' then begin  n1 d7 t0 R' o/ Z3 e/ O# f& g3 F
      Str := callfunc ('getsenderserverid');4 ^7 M% |6 D4 G6 z
      if Str <> '50' then exit;
, Z% b* S$ K/ Z( Q! M% l
* K& ?, f0 o' t, Q$ v      Str := callfunc ('getsenderrace');
$ w) F+ O  H- }! G1 [: d      if Str <> '1' then exit;; m3 r% W1 d: @
7 v" \" Y, ^4 @$ C: M) @- h  i$ }/ r( @
      Str := callfunc ('checksenderpowerwearitem');
1 s0 _# ]% P4 [- ?9 ?      iCount := StrToInt (Str);
* m- w- S, Y0 _: I      if iCount > 0 then begin
, A' W5 Q/ m# V% I' M' M6 Y         print ('say 请先脱掉带技能值的装备!');
% b1 [) N$ s  ^7 C5 i3 _         Name := callfunc ('getsendername');& i( O/ `4 P0 Z9 e5 L
         Str := 'movespace ' + Name;
) o: |2 N1 Q) _0 D9 P  p$ N         Str := Str + ' user 49 106 55 100';
; B  X- Y3 Z9 M2 d         print (Str);
+ |0 R1 o6 ]1 a& k3 c         exit;# h& ~: t; h( t3 L- \* x! s
      end;
+ P& l- Q9 _. ?3 N6 @      Str := callfunc ('checksendercurusemagic 0');$ q2 O4 k. i' _7 n  w: I, \
      if Str = 'true' then begin
) M4 L7 L; X! z         print ('say 选错武功了!');
% ^% ?+ s0 }( z9 ~8 s         Name := callfunc ('getsendername');
3 y" O+ o- Y% n5 l* e; M. ?         Str := 'movespace ' + Name;& v6 m" X3 n+ y% \
         Str := Str + ' user 49 106 55 100';
; j' g7 I( Y7 C) S9 [5 V! g$ ]         print (Str);
- r$ f* O$ p& q/ c         exit;. b- Z* ]" W! B) m+ w8 l
      end;$ A( ?  _6 c# j
      Str := callfunc ('checksendercurusemagic 1');
! S& y7 s2 j& l9 ~      if Str = 'true' then begin
5 P3 P1 g$ f; [! Y         print ('say 选错武功了!');
5 `$ R, U+ d% U) ?4 @$ W9 m         Name := callfunc ('getsendername');
" H2 t8 [4 [/ c0 g! j5 S9 j* B         Str := 'movespace ' + Name;
; z) {3 E& ?. w2 |4 b2 L& X         Str := Str + ' user 49 106 55 100';
3 [. O+ B# S0 E( i         print (Str);
5 U, H7 \& @1 c1 T# j4 W  W         exit;
2 M9 R' w$ K6 q      end;9 u. r8 N  O6 V; l8 Y* i0 |8 l: ?
# w4 `1 ~# r: f: u! |2 Y, I
      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');( P6 h. V# Q& S
3 {/ S- w/ {! O0 |2 W+ I
      print ('commandicebyname 一级捕盗大将 npc 1000');
( X3 @7 H0 m% Z5 U      print ('setallowhitbytick true 1000');
/ l# k) E4 ~9 l7 w
* f- y& v5 R% i5 ~, X      Name := callfunc ('getsendername');, ~: H1 t" }( X. r; N" ]
      Str := 'commandicebyname ' + Name;- M6 K! ^9 y3 |0 `, `. t/ Q
      Str := Str + ' user 1000';
6 l6 w& a4 ~& o/ N      print (Str);9 z8 i: X$ `% k% B( M0 J( U

2 y0 f  r5 }3 ]# }2 W" W' n      print ('senderrefill');4 B0 ?5 a. b! z
. o: Z+ I. `) X5 w3 t. Y
      print ('say 你还太嫩! 50');2 t7 M& L  ?+ h: M
      print ('say 留神啦_我可不会手下留情 400');
' S1 a- @) i5 V: y: ~: G# y9 h; `      exit;
) e+ A) \, J" C" P+ A& V   end;
" t+ W! T9 P& w* F8 L1 Jend;
' E) \; `& X4 O0 F) ?! t5 x7 Z( X, R: q, M$ }: ]
procedure OnCreate (aStr : String);: O$ v( |% m% Y0 `0 l; [& Y
var
! z% g7 l4 I  H; u7 T2 s. g   Str : String;
# K: k4 y1 y4 _) [/ lbegin
: z+ K* d9 i5 Q# ?4 _8 m   Str := callfunc ('getsenderrace');4 D5 q: ]- h9 A3 _! A
   if Str <> '1' then begin
' A# M: n' }5 D/ L) J6 k- X  b6 ~3 @      exit;4 s+ y, ^. n( `; T5 y
   end;8 ~3 m" n" P0 H# ]1 y
6 r4 B% ]) n6 P+ f) g1 ?( A
   print ('setallowhitbyname 一级捕盗大将 monster true');* R: K: K: f. r

. ~3 n5 k( G) O1 E   Str := 'showwindow .\help\一级捕盗大将.txt 1';
6 J% x+ P5 _" x2 |' r   print (Str);) D& i( j  r+ p
   exit;2 }& p; ~9 o! u  S5 {( x# J5 |
end;7 y+ u" V$ c4 i0 e+ r
& A# y- D; q1 b' u3 U( r0 T  k% f
procedure OnDie (aStr : String);! B* r% I! i; u" M, f
var
* ~) O" ~5 \0 K: Z   Str, Name : String;
2 M9 D2 ^$ |/ C0 f& c5 u% e   FirstQuest : Integer;  ~/ k" \2 c3 S2 b* @
begin1 M* @2 n1 o6 M- B* d9 B2 J; ]4 G
   Str := callfunc ('getsenderrace');
$ B5 Z& @# w2 }% m) x' f7 S1 V5 l" |+ d   if Str <> '1' then exit;
. Y0 k1 ~& ?7 b$ e$ L' H3 g  {3 Z! ]8 [2 ^" f6 ?" z; J# J
   Str := callfunc ('getsenderfirstquest');. W2 t; X' N( t
   FirstQuest := StrToInt (Str);
8 D& q9 q3 E) R$ b* {% O! J5 ^0 G& k8 N; S6 |5 N8 v
   if FirstQuest < 2 then begin# }, U+ {9 M* Q5 P8 |. v% q; ~
      Str := callfunc ('checkenoughspace');
, t" l" I$ p" I2 J1 i      if Str = 'false' then begin: i* g- j/ r) l$ E/ D# z5 C$ C
         print ('say 物品栏已满...');% l! N- @& {! s/ B9 s
         exit;
. q: r. k. ^- C5 S! V' J      end;$ ^; K1 @  p) H  a% N
2 H+ c2 N( L! H' l9 `
      print ('changesenderfirstquest 2');
$ y  \% S* ~) g6 _* n  [+ S      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');
2 y( k0 {1 k  f9 w   end;; A( X! L  O1 s/ s6 z& G

# W6 s( Z0 I9 g5 y8 R   print ('say 不可能_我怎么可能输呢.. 100');
4 R1 W) a  V' ]6 F' C
7 Y% G! ?4 O! n. k" k   print ('mapregen 51');; k& i7 Z: w1 `7 r1 x6 C' [

. {& {% o- b7 l7 z" F   Name := callfunc ('getsendername');4 K- L6 U3 B  f' i( F
   Str := 'movespace ' + Name;: l' e/ S/ A# s  L* N& ]4 K& Q
   Str := Str + ' user 51 17 18 500';4 |8 ?* ?' @$ e
   print (Str);
$ W2 g# P" p4 s! D$ send;
# P- j5 D1 N+ X; y& F* p  B+ g
2 t7 J' r2 g9 ^2 Z" Hprocedure OnChangeState (aStr : String);; p9 f1 q9 U! R& ~" K2 s( L
var$ r/ y/ z% B* X% V1 H
   Str, Name : String;9 G2 x. M# b& W6 _
begin
, ^0 d# E$ ?( x2 p4 d( J7 |8 y   if aStr <> 'die' then exit;
4 G( A, C0 I% R& i
4 O" a* }+ g# ]& E   Str := callfunc ('getsenderrace');
" [' u9 a( I" U  x   if Str <> '1' then exit;; l8 [9 h  g2 F

1 o2 c. K$ W/ N% {0 n! F   print ('say 回去再修炼个10年吧50');& o3 J) c* [3 n6 F9 C! T' L
   print ('say 到那时我在用双手跟你打 400');# T, ?6 M( M9 p0 x# Z5 z7 S9 U7 \

9 s* W& L, S' C   Name := callfunc ('getsendername');! o( l0 u0 ^6 B% Y, H& @! H2 h; f
   Str := 'movespace ' + Name;& B, Y$ ]& f9 H( h; l
   Str := Str + ' user 49 106 55 600';
$ d; H0 ?; h$ v* L8 U" j   print (Str);
7 W2 B* T# I( k. S$ T( ~+ C+ A5 s: Z: |2 L1 F& D0 O
   print ('boMapEnter 50 true');   
( Q! q9 ?$ \* m2 f; Y1 ~end;' V4 m  k" z& e7 `) c

3 K! L: `+ s3 k3 W$ E. hend.
! L/ j8 O+ {+ ?7 o  w  N# `* x/ Z" J* b+ X; Q0 L% m
---------------------------------------
' u5 `. a' S5 s/ K- z6 [
  {0 a( m, z! w( j  M0 e0 lunit 一级牛俊;
) X4 x, `( E- x; J1 W$ p! v6 q7 {5 L. I; Y4 I; i9 |
interface
9 c7 y" |# }! U/ \; x1 x  [# j# T" a
function  GetToken (aStr, aToken, aSep : String) : String;* R' D4 O; Y; I
function  CompareStr (aStr1, aStr2 : String) : Boolean;* k+ h5 {# }! w3 D" N% h
function  callfunc (aText: string): string;
3 p0 N6 {2 Z, ?procedure print (aText: string);
& Q5 c* @, L6 c1 [- Y7 C; Qfunction  Random (aScope: integer): integer;& Q# H. q" K0 ]) a' d# k$ w2 k
function  Length (aText: string): integer;9 j; ]) A( Q. h$ c. G5 C: n
procedure Inc (aInt: integer);
0 E6 i( F% [# s7 P* a2 w$ s4 Iprocedure Dec (aInt: integer);
/ _+ w% B7 \" v& Ofunction  StrToInt (astr: string): integer;( l8 K$ j6 v  _" x7 x; \" Q
function  IntToStr (aInt: integer): string;
4 |  I: p6 v- kprocedure exit;
4 L* Y, O* S. B0 B! ~% e) u; P  f/ p5 l0 A" M7 Q0 f
procedure OnCreate (aStr : String);
  V3 h9 f! c- z# u5 T$ N) {) xprocedure OnDie (aStr : String);
+ m- w4 Y5 w6 s- gprocedure OnChangeState (aStr : String);# b9 `0 @; @9 V( h" g; J( k
procedure OnGetResult (aStr : String);
8 s8 Z8 N- \1 L+ n  L2 R0 Q8 G+ C" f' d
1 q, t! A  @% M1 |1 a1 ximplementation
3 Y* f, F( a5 j! u  G- e
2 Z( b1 _5 Z5 Dprocedure OnGetResult (aStr : String);
5 J7 X( m% f- Q8 m9 X& x. e& J2 r8 }var8 |6 c/ o2 ]; N& u) A2 f
   Str, Name : String;$ `, L" s$ e0 I% }7 }
   iCount : Integer;- w8 i  F! q( j6 T1 S
begin& S- x9 m& X7 k2 _. C* }
   if aStr = 'start' then begin
' h* {/ C3 G; E      Str := callfunc ('getsenderserverid');/ R6 z" l2 U! H+ G; ^
      if Str <> '52' then exit;9 h  L9 Y9 F0 [, r% q/ N& c5 S1 {

. i. t, Z4 V8 U4 G0 @3 C      Str := callfunc ('getsenderrace');: }+ h2 F4 K! Z) W! v
      if Str <> '1' then exit;: D! ^/ P( ^4 i3 B! v' I1 M0 R1 x% _
) }: K6 q/ T/ W
      Str := callfunc ('checksenderpowerwearitem');3 w' x% C5 |1 y
      iCount := StrToInt (Str);" b0 }# t5 f* D6 R, I2 `4 @
      if iCount > 0 then begin
' E, ]) ?5 a$ A7 k& A% I6 L         print ('say 请先脱掉带技能值的装备!');
  M: e7 r' {% H" W4 k' Q         Name := callfunc ('getsendername');5 m( V  C/ Z, I2 t! |
         Str := 'movespace ' + Name;, \$ W9 A. }# n7 l; j9 G
         Str := Str + ' user 49 106 55 100';( A7 j6 ?: w) N# W! U
         print (Str);
' v! @& W) U/ X9 M         exit;
* U  l$ S/ H0 `# Y8 T! `      end;) m, e5 t2 M* ^3 Y
      Str := callfunc ('checksendercurusemagic 0');
( f6 J7 o( Q; g: A- [      if Str = 'true' then begin9 m0 D, z, e/ I: V0 }
         print ('say 选错武功了!');
3 Z9 Y8 Y: {4 V' y: m         Name := callfunc ('getsendername');
4 ?) U3 D1 u/ V4 X7 h; I4 S5 }) }         Str := 'movespace ' + Name;
3 {) Z/ a- A/ w         Str := Str + ' user 49 106 55 100';
: q( h- V" r! o8 S; `         print (Str);
& l$ s5 l, R9 H8 s( l! z0 h         exit;
' _9 w, a5 B/ t# l6 l. B4 }      end;& a  M) L( ]: m* {/ A# s
      Str := callfunc ('checksendercurusemagic 1');6 j$ x" \( J7 N. ?, C- ]& T: q
      if Str = 'true' then begin  U5 H" T4 K8 K8 e
         print ('say 选错武功了!');
3 \; }: C6 V" D2 J2 C- r) T         Name := callfunc ('getsendername');
* Z& O# q4 e. W         Str := 'movespace ' + Name;
8 l1 `8 [* {: E3 j; s, t         Str := Str + ' user 49 106 55 100';4 \1 W- T+ ?# J
         print (Str);7 g# F$ m3 R6 A9 U1 v, A
         exit;
  I5 F5 Z' k0 o6 u) b0 X" [      end;# Y$ M* U: W$ D0 R; t: A

8 }/ Y# d$ p0 }6 Z3 e      print ('directmovespace 一级牛俊 npc 52 20 18 0');  ^( e; S. x3 ]. |6 m

* |- _: g) M. Q. ^      print ('commandicebyname 一级牛俊 npc 500');
- D& @& K9 i# G0 N5 U  S+ g' e      print ('setallowhitbytick true 500');      
/ A7 F/ G7 d( u. v- g
) f6 X5 M" Y$ _8 ^      Name := callfunc ('getsendername');) V2 n* r+ H7 n9 W  t
      Str := 'commandicebyname ' + Name;
" @2 C: x8 ?. P2 u+ W+ A+ t& k" O      Str := Str + ' user 500';+ F0 @2 Q+ j6 W2 x; Z4 U% V( c
      print (Str);
) O. l6 G7 z+ H0 c0 x  }  Y4 @& t  K" z9 }( Z: S! a. y( ^; w
      print ('senderrefill');
7 e5 y( s! {9 L0 w
* J; h' w" S2 I      print ('say 10如果10秒内不能将你搞定 50');
2 `9 s: Q2 s3 v* q& e& [0 ?      print ('say 就算我输! 400');( b5 {+ r! ~# Z/ ^
      exit;) e+ I/ E2 O2 G' c  M+ m$ P8 ^
   end;0 G9 o2 g3 }. I- k5 p% @
end;
3 q! N% v% a4 x1 k3 K
  q" N( K' g" x) S. aprocedure OnCreate (aStr : String);
; B/ {7 z; q6 vvar
4 k$ F- w# b* c2 H   Str : String;3 Q! L! |1 f% n$ b6 w- ~
begin3 m4 a4 ^* g$ J+ t1 N
   Str := callfunc ('getsenderrace');, V6 h, m4 y( @, }) t" k& g
   if Str <> '1' then begin
  w7 t( f' s  A. o  y& ^$ l2 D      exit;( e0 P1 H* p9 v3 a8 s
   end;! B# K& Z% S, i1 z) d  F

9 P6 g( t9 V( |   Str := 'showwindow .\help\一级牛俊.txt 1';4 M- f" Y5 }: v$ w, u
   print (Str);
/ a, I  {. Q9 a! u# v   exit;
& ?6 A8 W2 A9 }& `7 Vend;
, v& ^: s; f5 t5 L+ u0 I; }& i/ J/ D
+ ]# H. \! @# l$ g  U* W& Oprocedure OnDie (aStr : String);' G; V7 m* o3 u6 K
var
: d3 s! }: k' H# E9 w! e/ A7 M   Str, Name : String;
/ s, p/ {3 _% X3 _6 A   FirstQuest : Integer;   
6 ~1 Y! I- h. Rbegin
7 Q; r+ f+ @5 f   Str := callfunc ('getsenderrace');
  m- y# I8 D, h6 ?6 b! Q" U! g   if Str <> '1' then exit;, w$ Y1 u% ^* Z0 i! }$ W
+ {" K1 u! B' w0 z7 |
   Str := callfunc ('getsenderfirstquest');8 z- l! ^  O% p* d. X
   FirstQuest := StrToInt (Str);
7 ~( y$ q. o7 i1 |/ m; x! W$ l; O/ |8 o. i$ P7 X
   if FirstQuest < 4 then begin
$ q" g% t( F5 q      Str := callfunc ('checkenoughspace');+ P# M0 b2 N* P, X# _3 h1 B
      if Str = 'false' then begin
5 y9 ^5 X* N% a( n! Q1 u' }' w3 P' I         print ('say 物品栏已满...');$ D2 r5 o4 U" _' A- c
         exit;! \! j1 R8 M1 c; C+ {3 o
      end;
0 A* C! G: h; ]" Q* h$ V$ F: i2 S0 T  f! h& C# R9 E' H5 c
      print ('changesenderfirstquest 4');
7 B; [% ^: t* P( f- ]( S+ i; c      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');
. p* L% l. i% J+ S' q   end;) p0 |  B: f3 \+ G% l- [

; d& |9 E0 F, ^% K9 n# J/ o. J   print ('say 什么_不敢相信!! 100');( ]- e4 c6 q! c* |1 z  D

& [4 ]: ^4 @3 r# V' l% c   print ('mapregen 53');" V6 G4 {0 Q. {/ `( A; d

3 M: ~: X# y" U1 w9 @5 j   Name := callfunc ('getsendername');
- X' U5 A. C+ y8 k8 e* |   Str := 'movespace ' + Name;  Z3 ?5 n( q- [' F  [6 ~
   Str := Str + ' user 53 17 18 500';
2 w  u! u6 \/ q: W4 E5 b4 M8 h   print (Str);
! O" F1 P& |; Xend;4 ?8 D) B/ }, r$ d  c3 h+ m' J

# y  ?7 M5 J2 Lprocedure OnChangeState (aStr : String);4 z1 u1 O' S/ V& K0 @, Y
var
% O' `+ I  {) W4 H# |$ R* c   Str, Name : String;& [# s) S) e$ L- w# r
begin
% Q& t# ^4 P$ {8 Y* J   if aStr <> 'die' then exit;
6 J7 C8 u+ Y; `6 q6 ]( j4 Q0 J' t0 ~* s( ~7 `# P
   Str := callfunc ('getsenderrace');
7 L& w' @2 |# N   if Str <> '1' then exit;* s* g  U! Q# Z% ~  h3 m. R" P: p7 x' D

7 w) `. u% j7 Y4 b; f+ i' S( c   print ('say 领教了吧! 50');+ W; i- Q! Q- _- {) i+ E5 U) C
   print ('say 差远了... 400');' U' d! l0 X" Y: _
9 L8 G8 ?& w. b! O7 R- }* O
   Name := callfunc ('getsendername');
# O* ]5 D8 @, `2 M, ~   Str := 'movespace ' + Name;
7 H7 `  m$ k+ [" z, Z1 V   Str := Str + ' user 49 106 55 600';
! q# R3 _; n5 x# ^& j   print (Str);
0 X- @  m1 c6 v1 dend;
4 w. K7 m& @. A. V' T6 b
1 Y5 L+ @7 Y, g( Z0 T2 yend.
( U0 p% N4 L3 T/ R. D( X8 S1 l4 e----------------------------------------
- l9 ?) O$ S) l+ _: R- ?; _) Nunit 一级雨中客;6 d% l8 M3 A" s& J& ]  p; k+ E
8 x5 m6 {0 U( ~7 F1 C
interface# K3 |# Y4 ~' P! }( P

: n0 j$ M/ Q, I, M, C8 q: wfunction  GetToken (aStr, aToken, aSep : String) : String;* Y: d5 D/ e6 `
function  CompareStr (aStr1, aStr2 : String) : Boolean;& o, n4 K: H% E
function  callfunc (aText: string): string;
- `( W2 m+ \3 Sprocedure print (aText: string);" q5 z4 ?) \2 e& m/ H
function  Random (aScope: integer): integer;1 z$ L8 M$ d- u2 a
function  Length (aText: string): integer;) V3 W# i" T4 ^3 E) q
procedure Inc (aInt: integer);
- k8 m3 x- I$ _# d5 k! B4 l3 ^procedure Dec (aInt: integer);) N' j2 z, S& I% e  u% V) V
function  StrToInt (astr: string): integer;5 M; V" o4 @- b. A* t& P8 J
function  IntToStr (aInt: integer): string;
5 M1 w* t1 J6 X% iprocedure exit;
4 ?" S  C; n% w: h
. L8 U/ M, d" R) q" Q9 q; L( C0 p$ ?procedure OnCreate (aStr : String);' w  L! b$ f! d
procedure OnDie (aStr : String);' Z4 j+ w. p$ N6 ^9 J. @
procedure OnChangeState (aStr : String);8 {- W& P7 E" j& d" E
procedure OnGetResult (aStr : String);
. j3 D' b$ H9 c/ m9 B# t% x: H) Q- a+ X* A# K5 ]2 }- s
implementation
4 @% p& T- z4 d5 M! `) R) G. l4 |5 `; ^/ G( f( y5 t5 O
procedure OnGetResult (aStr : String);! c' r( O, a! E* t# G, ^/ G/ |1 D7 H
var
, A8 V3 ], z' S  C   Str, Name : String;
( w; i7 `5 N& W   iCount : Integer;: q! u9 T' q  ~1 z
begin8 `% T) K8 K. S2 x1 }! V. ?
   if aStr = 'start' then begin
8 x: ]9 j3 B/ t+ C' {9 L. l      Str := callfunc ('getsenderserverid');
# g9 N$ j* e0 c5 W      if Str <> '53' then exit;
* C, W! Y) X- a, k( H' M, p
: R; f- k, i% c& {! T, s      Str := callfunc ('getsenderrace');
" p* ^! T, z3 f      if Str <> '1' then exit;
: O: u$ `3 d( J9 O0 e, v: r- X: y* R9 A& ?' z1 j3 D. L
      Str := callfunc ('checksenderpowerwearitem');
( _- N  Y  @9 F      iCount := StrToInt (Str);8 C  J0 x) y+ }6 U4 w7 L
      if iCount > 0 then begin
# d) S6 f2 v' @3 E) s. R8 w1 p8 Z         print ('say 请先脱掉带技能值的装备!');) I5 V; M2 N' M) ^* l8 S
         Name := callfunc ('getsendername');
% q  ^# |1 _, y2 L1 y         Str := 'movespace ' + Name;& n5 l! {$ x$ j6 J4 F! Q8 O# d8 b
         Str := Str + ' user 49 106 55 100';
2 O  n% c4 K9 Y" l( ?# `         print (Str);
( G; o. j/ y1 A# U4 F8 a         exit;" z2 c8 U& G% u- e' n
      end;% e* V$ j2 K! y) c
      Str := callfunc ('checksendercurusemagic 0');% M+ _% p8 Y: V0 O& x9 n: u
      if Str = 'true' then begin
! f8 e0 K& J0 A( P! ^( ?         print ('say 选错武功了!');
: p4 J/ r1 m" ?0 x% P         Name := callfunc ('getsendername');$ k0 B5 i) ~: [7 o" T
         Str := 'movespace ' + Name;* T5 V9 Q* q& y3 ^; h# m
         Str := Str + ' user 49 106 55 100';
$ }! S6 z" h2 v& K         print (Str);, G2 h6 X  K( A
         exit;1 ^+ A+ Q4 e) P; E+ @5 D1 {
      end;# c+ S' I" z) m7 D, r
      Str := callfunc ('checksendercurusemagic 1');/ J% b  B! B: D$ Y# d6 }
      if Str = 'true' then begin
9 O# L. z/ i; J" }% S8 U         print ('say 选错武功了!');" L; w7 C9 |: V, {: k' V0 g- H
         Name := callfunc ('getsendername');
* f# R, w% R  d, L$ c4 X         Str := 'movespace ' + Name;+ c7 }8 R+ ?0 M$ p9 R$ k7 S) _: [
         Str := Str + ' user 49 106 55 100';
2 _# b  {+ U1 B. W0 x" H& `7 O3 w         print (Str);
, M. t& L1 l( |" E/ y* f6 h/ r         exit;
. }" C* v, x8 h6 [& }0 @      end;
9 b, J0 U: p: _/ q* t! l% o' i5 E0 s1 w" v- Y6 M, E2 q! ?
      print ('directmovespace 一级雨中客 npc 53 20 18 0');
3 c2 x, o5 o8 A+ L, @9 }  ?+ W  r; l) ]. D  c, M9 d7 Z4 i- C; e
      print ('commandicebyname 一级雨中客 npc 500');1 a- ~* t# ~* ]8 f+ N! j. ~' t5 j
      print ('setallowhitbytick true 500');      5 g! ?- n  j" E6 L& v7 u

: ~3 w0 T  C: E6 s7 O  Z6 \/ ^      Name := callfunc ('getsendername');
# N/ y; R3 {( V7 [/ f* \      Str := 'commandicebyname ' + Name;
5 N' e1 j0 C) P3 C* S! q      Str := Str + ' user 500';! q% b6 ], R# m: a, V  @
      print (Str);
+ A. N" d  o# Z. ~: j3 Y9 A3 C/ z* H2 g: M" }# X3 V- B
      print ('senderrefill');
3 c1 s2 w( Q2 R, {3 B' d+ b/ ^' u
8 L% b. l5 y1 X) V# a+ L* t5 u, g      print ('say 领教了 50');
7 x. }0 ?+ \( `% v, d      print ('say 开始吧 400');+ T8 T( M* ^6 H7 g6 z8 J
      exit;
; P' u# h& W7 t! ~1 Y/ `   end;4 [3 B+ }* u! |  |
end;6 Q# x. O! [5 |% `! h9 s) ]6 R

0 e9 h  d3 f5 x- Dprocedure OnCreate (aStr : String);
: o6 t) [( K; _$ C1 ]. zvar  O9 d) F% E, Y( T, a# m! \* x& w
   Str : String;
! \% _# M. ]. |! w& |( nbegin
3 q* d8 x4 j2 \1 C* o   Str := callfunc ('getsenderrace');
- m7 c* ~  B8 O7 g   if Str <> '1' then begin
" K1 T; q; q  r2 j      exit;7 ^" p! Z8 A( N! q' h. N
   end;: w6 x! Y3 L. L+ G3 L% m$ \) Y
% Y4 H; j) _1 _
   Str := 'showwindow .\help\一级雨中客.txt 1';
6 l9 U8 U9 V# }$ _  d   print (Str);
' a/ i- S: K5 K9 q8 G0 z% O   exit;
" z) w3 a; J- C9 o& V' `3 p, t1 mend;
- v$ Z( W5 P9 N  i" D7 T/ l. A& f, {- A+ S$ `) e1 {. U: y( a6 @
procedure OnDie (aStr : String);
- e2 |& I/ ^% Nvar. T: Z! \3 B; a
   Str, Name : String;
0 @* o/ U! y( i9 X   FirstQuest : Integer;
( O( G$ p1 D5 H* J  Jbegin  Y' o8 T4 W& N8 T9 \2 n  J
   Str := callfunc ('getsenderrace');; A; [( J& F- K" `" V3 B
   if Str <> '1' then exit;
) \% W  Z' V$ ?( H6 |" s. m1 `/ ]/ O) z2 k0 d- v4 o' b
   Str := callfunc ('getsenderfirstquest');. q* I1 N5 Q2 G$ L  ^( v
   FirstQuest := StrToInt (Str);
( R& G  e9 b" s, W' C
$ ^4 Y8 Q$ b& n7 j! N% M+ I3 ?   if FirstQuest < 5 then begin1 C) i5 F6 }! I1 x# V
      Str := callfunc ('checkenoughspace');
) z% k) m4 Y" ~  G7 j* t      if Str = 'false' then begin
3 P. ?  F4 c8 p$ g! B9 ?6 G6 [         print ('say 物品栏已满...');
9 S0 v8 ^1 y( F1 p8 }3 [0 W& t+ E         exit;0 \" a  C: r, P+ i1 l% k
      end;
) @# B  v) [) ]" Q, c4 i
+ G$ U, B; o" g5 @5 a; ^9 Y! ^6 _3 ^      print ('changesenderfirstquest 5');
1 v" v  s$ i& \      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');" w. [  K( c5 O: R: K
   end;
# `. f# g% g) L; I& Z! @/ G3 F: \& t' s# \* v2 E6 m* n6 ?+ |/ U- S
   print ('say 早料到了_佩服 100');
# N3 Y" I: i0 Q" g/ P3 |4 n5 ]+ }
   print ('mapregen 54');
# ~0 Q' t6 P% @0 P7 k- P
# ^1 m, D' |9 A/ h" v4 q   Name := callfunc ('getsendername');, b, A7 z8 E- @# ?5 N' a
   Str := 'movespace ' + Name;7 a  F: W- I# e; S
   Str := Str + ' user 54 17 18 500';7 c# u: R, R5 Z" a; m
   print (Str);7 U$ e) @. h( Z) [) s1 _3 v; d
end;
$ O" W0 x# g3 [! j
& a* w0 c3 T3 k# a% zprocedure OnChangeState (aStr : String);5 J7 j: x& X% ]0 v: ~
var& a& u+ [# J# E5 A3 f8 Q( Y& g
   Str, Name : String;
! U: U8 H+ }) p" F; s( jbegin
  n- y- m& w4 B- {1 ?5 H+ `5 e   if aStr <> 'die' then exit;% d. `0 @2 y5 k9 E% ^, n# X
' |- E, l4 c1 e* }
   Str := callfunc ('getsenderrace');2 L% i( N/ G4 a& ]3 X$ `
   if Str <> '1' then exit;
) [+ T3 c5 ~7 D+ i
: ]5 I% f/ t' L6 z5 `6 N, F   print ('say 不错。只要能维持几秒钟');1 h! {" x" U( Q( y1 n
   print ('say 到那时谁都不是你的对手 400');
5 g2 F& {9 @* X* \9 z, T6 I( A# B/ l3 z  S3 ~$ F1 \
   Name := callfunc ('getsendername');3 j2 e" \( \" j+ ]( X7 Y5 k
   Str := 'movespace ' + Name;
- _; o, U! A( W3 I( V+ l   Str := Str + ' user 49 106 55 600';
) j$ e3 Y% [' L$ p5 a$ A: |   print (Str);0 _, |4 I6 m+ Z
end;
+ z/ _  }$ }9 O. s+ W' c5 ], w( Y1 v+ ~# }2 b/ G
end.
& K) x& @$ [" f9 ?8 B. D% o8 c. w2 K! F  a7 q  l
--------------------------------------------------------------------------------------------------------------" J% D: q0 Y0 I. a1 G
7 W2 ]9 H: \# z. F; V4 v
unit 一级老侠客;
; _# i% t1 e6 i4 H$ r; d' t1 ?% [& ^6 C
interface! i  B7 z* o! e6 X

' u3 u* P7 S1 ]$ H1 Lfunction  GetToken (aStr, aToken, aSep : String) : String;
* \. q! [6 I1 ?2 R8 W6 S( ]" Bfunction  CompareStr (aStr1, aStr2 : String) : Boolean;4 f7 p9 O4 t6 t+ ]0 Z7 K
function  callfunc (aText: string): string;" L! F. s- b8 v! z* N1 m
procedure print (aText: string);
0 ~5 Y! n% h# l6 kfunction  Random (aScope: integer): integer;% u" T9 j2 `! m2 D
function  Length (aText: string): integer;
$ b5 f) R7 t; O/ N0 \$ [$ C( Hprocedure Inc (aInt: integer);
0 g, |/ ^" g, _: gprocedure Dec (aInt: integer);
0 F3 L* e9 p( F# a% C; J% L9 xfunction  StrToInt (astr: string): integer;: F- l" e  a% f1 R. E
function  IntToStr (aInt: integer): string;5 l. j% _% [/ t" `$ A$ |5 R
procedure exit;
5 {& N: i6 K+ h, F* q5 y
  Z: a: M$ k/ X+ [7 Tprocedure OnCreate (aStr : String);* E' g* U7 P' N% @6 F3 k
procedure OnDie (aStr : String);
, t; {0 o; U+ p' m! `5 Zprocedure OnChangeState (aStr : String);' }2 L; y. b7 ^) |
procedure OnGetResult (aStr : String);
  P# T' c8 ~: y' h1 t+ K$ \6 a1 R( o  s  Q: K9 m4 \, }4 a
implementation0 R1 ?. i1 D1 [/ h! r4 B

/ d' G0 ^& [2 }5 r; Wprocedure OnGetResult (aStr : String);- f' d" F* f* L2 B* B
var
  C0 s$ J) S8 [& S   Str, Name : String;
( a: C" [5 _  D" ?   iCount : Integer;   * q$ t4 w& a( x
begin
, }2 @4 g  r" \5 c   if aStr = 'start' then begin
/ ^/ m' ~6 e0 _+ F      Str := callfunc ('getsenderserverid');
: p" _: y7 y/ M+ J& ~      if Str <> '54' then exit;/ q+ P5 a- j/ `8 R) Q/ Z1 j
9 F$ n2 L! K& T  Y  ^& V
      Str := callfunc ('getsenderrace');
, i$ Q) Y$ A  P! G; I! J      if Str <> '1' then exit;4 k; `: r7 y! c6 e% x. I" |- b

6 D+ Y! B$ m1 y3 E6 q$ ~      Str := callfunc ('checksenderpowerwearitem');
. k2 s8 K' U5 W( O/ w% u+ ^/ x      iCount := StrToInt (Str);
9 O- C, w. @- ?" O1 U      if iCount > 0 then begin
2 t2 O& ]2 c: l5 ?" v         print ('say 请先脱掉带技能值的装备!');
+ {: L6 e6 I$ [# z* P         Name := callfunc ('getsendername');
, p. f* y. a3 J* d$ A( k6 q& n, M         Str := 'movespace ' + Name;
% I: l- s2 W' F         Str := Str + ' user 49 106 55 100';
6 I4 O, }7 m1 s5 Z& f8 K6 e         print (Str);/ O: D  n. P% X: o. f* O
         exit;
- z; {9 B' J9 Y1 J6 y      end;: O; |9 x- Z6 s2 n
      Str := callfunc ('checksendercurusemagic 0');; ^- M( n4 \8 H
      if Str = 'true' then begin8 Z. k% t: q5 o) h$ N- ?
         print ('say 选错武功了!');
3 U5 W' c/ v4 P! o/ \9 p3 q' a         Name := callfunc ('getsendername');: O5 ^: d& k4 B7 z3 d3 J, n) E6 H
         Str := 'movespace ' + Name;
3 l, ~  F7 h" Z3 Q: M         Str := Str + ' user 49 106 55 100';/ V; M- K+ A% k/ u3 z+ k/ n
         print (Str);
. S; D  b$ c* A* p8 T& |0 ^5 l6 R, e7 b         exit;
0 q* o+ E) n/ U6 L6 g1 W5 O  [- E; S      end;
3 a2 p6 ^+ Z8 ]# Y6 j1 e) _4 m3 V      Str := callfunc ('checksendercurusemagic 1');9 W; Y0 u7 u! A, `' e; a  D9 g
      if Str = 'true' then begin9 S6 x9 f6 R0 Y+ Y  Z; B0 C
         print ('say 选错武功了!');
. y$ E, R. u- @1 H* K         Name := callfunc ('getsendername');, |, k* z& b; ^7 @0 m# r; K
         Str := 'movespace ' + Name;- K0 Y& \! c7 ?/ z* T5 `# l
         Str := Str + ' user 49 106 55 100';" |( }& P5 p. ?
         print (Str);& _+ i6 Q8 r9 r* r
         exit;
+ R2 O: U; N+ E6 M      end;
# E, P) a8 L8 a7 ]: o- |( e& X9 F8 q+ R$ m2 o& P
      print ('directmovespace 一级老侠客 npc 54 20 18 0');
" e# _% ], N' x7 r3 M
: V; `6 H7 W6 R# `) C& j      print ('commandicebyname 一级老侠客 npc 500');
: U4 F( G1 Z8 z2 @+ P      print ('setallowhitbytick true 500');      
' G) j! j2 o, p: F; h4 A
9 P. Y2 F+ L' v3 z' R9 b( M      Name := callfunc ('getsendername');
: W8 _0 @& p* u6 i% Z* V/ J2 d      Str := 'commandicebyname ' + Name;8 M6 G  N, f3 o4 m
      Str := Str + ' user 500';: C4 f. q, l4 P9 M
      print (Str);; U* E. R5 w8 q
0 X+ X2 t3 m. X# P
      print ('senderrefill');
$ u+ ^* U! g" q3 `7 I. ^2 b  o* v: v9 _9 B$ V6 Q, a% a3 r+ x8 K
      print ('say 如果你实在想比 50');) \/ X' z/ V) B6 N& I, R6 Y
      print ('say 我将奉陪到底 400');( T: l+ \' ^. G9 ~/ Y5 ?) e
      exit;$ t  T# M8 M9 j" Q' A
   end;
, e- u* O/ T, X! Xend;
, r2 C% q% T: O& I- q' i$ w
% q4 \/ W4 E7 p! @$ Bprocedure OnCreate (aStr : String);
9 q2 S7 x! y3 j1 ^( I! E$ {3 J% @$ cvar. K  u$ E2 m: W5 W# S; u
   Str : String;
5 p/ O6 E* i/ R, Y; D5 lbegin# ~5 r8 f7 ?* o0 x
   Str := callfunc ('getsenderrace');1 P. z( @; u/ Q2 V" J
   if Str <> '1' then begin6 n' X4 q) r( J+ f
      exit;6 t/ D( H" r/ [  S! a. s6 u. W
   end;
* G% s  @' Q5 D- x- F
' [6 Y0 ]8 u; E9 l$ K5 A   Str := 'showwindow .\help\一级老侠客.txt 1';% t" R4 Y# Q0 O- ~6 @
   print (Str);% S) z5 W0 Z- d; Q* O- B
   exit;
+ B5 t& Y! U+ Z. f& e- i: i  `3 a! _end;  \7 \1 n$ Z3 H; P
  p% ]  M# p8 X5 R
procedure OnDie (aStr : String);
) M9 f. o  M$ B% |$ @var
: S% J9 P1 I. E" I- _   Str, Name : String;
) a9 H; O7 P4 ?( S5 v! ^. b   n, FirstQuest : Integer;   ) d. Z3 |& o' e! N2 e0 M6 d) N7 g
begin" Q! z5 s6 L' B/ }& A6 l- F& w0 {
   Str := callfunc ('getsenderrace');
/ v( W9 r, x9 g# D3 w6 }" T   if Str <> '1' then exit;- n1 K2 k9 z. D
, d2 s) R8 n6 o- _$ C( w' y
   Str := callfunc ('getsenderfirstquest');$ @, @+ g) g* f# m
   FirstQuest := StrToInt (Str);
! M. R) j* M' B4 \! V2 U# z  E: l$ _) ]& J9 F
   Name := callfunc ('getsendername');
& Y* [8 {4 S5 M" }. ~5 k1 A4 D* d- d0 t# N
   if FirstQuest < 6 then begin1 q1 i) W7 B3 o4 ?. Q4 V
      Str := 'sendsendertopmsg ' + Name;7 i$ f) @1 _: \( c& Y( U
      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';) q4 K# [/ `# }# I
      print (Str);
1 r+ P' E& [" x" x+ F8 a2 q9 O
9 `+ v6 V  X" J6 O# L* E4 f* |      Str := callfunc ('checkenoughspace');. O) H. S  a  A( M, g/ s5 @
      if Str = 'false' then begin8 l$ r- f  _' B# g) o
         print ('say 物品栏已满...');
9 D$ A9 }, Q/ I3 t. V         exit;
: {  a* M; t8 G. H- O, z4 m- h      end;) D1 @$ L) B% h" \  x3 R
9 U9 ~9 k  J: v5 ^) ^
      print ('changesenderfirstquest 6');0 b8 P5 h. l8 t3 \3 y
) q, n# |$ H6 j7 p% L# j) D5 l% A
      Str := callfunc ('getsendersex');
) j" Y+ g9 ^0 m( C/ `      n := StrToInt (Str);1 ~6 u5 d. K4 \4 c$ Z+ d9 p, @
      if n = 1 then begin
7 u8 z/ P5 V* H( g; o0 v: M3 V         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');5 [6 Q7 X* F. }+ B- S6 I7 J
      end;$ }, H1 ]8 Y4 |) [% C
      if n = 2 then begin
1 l0 [* z) W0 H/ |8 y5 _         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');
/ D$ K+ B$ g/ A( Z      end;# Q0 i3 S& }2 J: w1 f
         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');
! R+ J; S/ v- d8 k* d   end;! @2 g' O) R; [" o5 e4 U# k7 l
1 A5 f1 }9 a  I! j! A( P0 m
   print ('say 佩服_佩服 100');
9 [4 v+ J' [* i' A* b  V% I0 t8 S; G9 e( V+ ?/ ~- H
   Str := 'movespace ' + Name;, ^  m5 l5 v/ R! r+ k; H
   Str := Str + ' user 49 25 35 500';
: H& X& J! E! q( o- a   print (Str);
& K% S: C% J) S6 h0 s7 @! Eend;3 h$ L+ x* c1 l; x& _6 u# ~" W4 l: g

) N0 z; C% b' U" Vprocedure OnChangeState (aStr : String);
8 D7 n0 O' R$ S: lvar
+ ]/ g& p. N( ^, i. D0 I   Str, Name : String;* A& ]% C- K% B" m7 Y4 U9 ~
begin
: f- O+ ^4 ?1 S; D* |4 n   if aStr <> 'die' then exit;
7 |% ~, w7 T7 ]) i  i9 N% k4 L
6 V% P& k& g. s. Q  j' u, X4 Y' l6 z   Str := callfunc ('getsenderrace');* m. n/ X" _; K
   if Str <> '1' then exit;
- \5 @1 _% r7 u4 H# L
% B' d% r* X9 K* ]; K$ x2 C   print ('say 小小年纪_就有如此高深的武功 50');
! t  ?: ]( O% }' k' G/ B' t9 {   print ('say 日后要继续修炼... 400');
, I; J9 N5 I5 q2 S* o0 p7 n. y5 n+ \& Q! h/ A; q5 Q
   Name := callfunc ('getsendername');
& s0 K/ l& O* j* q  T. w* w* g   Str := 'movespace ' + Name;/ @( q  T: `( h% f* O2 U; \7 H
   Str := Str + ' user 49 106 55 600';0 ^0 H* X/ F$ Z0 [
   print (Str);
4 ~0 i" }  @# k/ F) Nend;# @7 s; n, H/ j' q$ Q

( H# H4 S/ f: `$ A  jend.! V3 P# s4 _! y- l; M( e! T

% `# P( K6 U. R4 t7 T$ l0 i$ I-------------------------------------
; l3 N& n0 q2 ^! W% f. ~' a) [: \) v# W- N2 k
*************************************
0 n: v( i7 U; N' I+ N) I
* s$ k- R& a6 m" M0 E奖励物品代码:
: \' ]! s6 Y! y7 [) @
+ F4 ]: @8 s# Y! C*************************************0 h8 @2 D% E2 o" x+ U# G! f
8 ^; D9 X9 b. g4 ]
男子侠客弓服,男子侠客弓服,24,新手村擂台战利
0 E+ D0 h1 c; D! e
* F& I# B) c8 K2 X( Y  i$ O. r品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
  Y5 R2 ]8 H+ [! ~9 O4 J$ B: f8 W: Z% M7 V5 Z
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,
2 V, S1 H4 K8 b1 l' K* r- u女子侠客弓服,女子侠客弓服,24,新手村擂台战利
+ F& x( g3 s5 ?7 x6 f3 u# }" Z$ N4 M, Q6 i* P
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10/ K5 o: F/ M1 T6 l" l

0 o& P( Y, K. A' i, C* d! O1 g- m0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,3 o) r7 T3 f- R0 I8 n3 Y/ y2 L
新手训练拳套,新手训练拳套,6,新手村擂台战利
+ }! ^2 b( q+ s3 G# B* y: r) ?2 a- V
品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
) l: L; }" }1 n% U$ e; P# R0 p, b8 U5 l# R# A& [$ ?1 {
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,4 M6 F+ a) }7 g7 O' Y$ [+ `
新手训练神剑,新手训练神剑,6,新手村擂台战利! U7 F0 J4 r9 H: G5 B
4 J. c( D3 c  F9 O: A0 Q3 k
品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,7 \  X, \! P: E4 x; |4 P; j1 G3 B  `

5 H, j4 R, d5 [5 C- v- X9 n( A,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
" j; b- i' X" d8 A+ |' _( [2 n新手训练弯刀,新手训练弯刀,6,新手村擂台战利
! u1 _/ h' x2 n! I6 H! D' t  W) G0 g" J% j7 q" c
品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,
2 e6 m1 U+ y" B6 f) p2 ^1 b0 T
2 N6 |. H# v$ y" d5 V0 \' G2 V* J,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
- G: R/ I; s7 g& E- @新手训练长矛,新手训练长矛,6,新手村擂台战利3 [$ [* T  |7 M6 s1 l& I

0 y4 P% J, M0 R+ _) c; @7 ?品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,' G/ v4 F1 p4 O2 @; z9 a  v

. M5 x. \/ G. d. O,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,$ g6 K& `# @( L& f. J$ d8 Z
新手训练大斧,新手训练大斧,6,新手村擂台战利
7 f/ ~# C8 c3 D* U% o# d
0 |) L& c5 F# r% R# s品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,
0 D) [0 e! q& Q3 I& B% G! [# M- P' S6 h) a% |% r
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,* Z2 a3 }0 e& A2 t7 M
+ `. d/ l: ~0 K4 D6 M; x
******************************************
) h( r; O4 ^4 z( ?7 G9 g3 n) D- R, D! P% _1 p3 X
$ @0 e4 P" [& e7 e2 ^/ v) A4 ^





欢迎光临 三千论坛 (http://3000y.com.cn/) Powered by Discuz! X3.4