三千论坛

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

作者: 异仟年    时间: 2022-9-5 20:23
标题: 新手村擂台脚本
新手村擂台脚本
0 `6 i' G+ Q2 y$ F
. q# `1 |5 k  L" O2 f: B
- e2 Z$ A% y$ ^% D释放到同名文件夹下覆盖原有文件。
! _' Y. Z9 B6 t; U7 v9 n, ^1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。$ @+ j0 \' d3 {; J9 w/ r0 i
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。
% A0 P3 u% Q+ w6 k3 e(由11月23号发布的最新服务端修改)
/ F" [$ w+ K9 a) v8 U-----------------------------------------" e4 `; p3 O& D4 J" [: W
内容介绍:* k0 ]! f7 _2 F# g" Z
新手村比武获得奖励:7 E8 C5 ?4 y) [  j( a
同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏09 ?# ^+ ~! g* O( @5 w
! t, v7 [. H& ?9 p

: X& X5 {5 I# _6 H) X最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较& y: S4 S* f# D  [; i
( [0 q7 o5 W" I9 g  \& e
喜欢黑龙,所以是黑龙的加强版!)
! V0 k: z1 A+ l* t/ v6 k- p) B' i
[replyview]
) g' L! f0 t3 d( M: E( K! C1 ^8 A" ]9 o( D$ x% p4 n
-------------------------------------. [* W$ S# ~$ M: I& n

: g) d- X- \0 sunit 一级梅花夫人;
6 A8 G1 _. [- s: I" I" {* k& V2 c' c
interface" L4 b( P/ ~& E- J. U
( ~% m2 Y5 I' s2 a, ]6 K) |( i
function  GetToken (aStr, aToken, aSep : String) : String;
8 v4 ?8 Z) @0 Kfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
( N2 ?* z5 e* a4 zfunction  callfunc (aText: string): string;
0 ~( z* q( M  P( U7 hprocedure print (aText: string);
4 X9 u, w, F  ]# n0 ], A3 S. c! F7 wfunction  Random (aScope: integer): integer;
0 p5 ^  U! _' a+ w: t! I2 pfunction  Length (aText: string): integer;
3 `& B; }+ F2 M$ Wprocedure Inc (aInt: integer);, J1 D% S' s7 z, N  j* I
procedure Dec (aInt: integer);
' P+ A& T2 r2 Q# w1 ffunction  StrToInt (astr: string): integer;6 e9 y! O$ N0 C
function  IntToStr (aInt: integer): string;; x  o& j. f3 f8 \- j
procedure exit;
+ K+ H% _- d9 M! E) Q2 \
3 \! n. b$ Z3 W8 h, Z$ q& Wprocedure OnCreate (aStr : String);
$ J2 c* d' \* w8 n5 E% r. w. ~( l5 xprocedure OnDie (aStr : String);* U! {0 ~! h$ @+ B  O" D
procedure OnChangeState (aStr : String);
: o: i& I% B7 H9 N8 M6 `( _+ sprocedure OnGetResult (aStr : String);; e6 g  n6 k+ S" X6 D+ R6 C% c. a
; C  ]0 `: j: k& p0 q0 f9 X: t
implementation
' ^% |  T4 c+ A! E* G* k* n' x
! T! p+ a4 b9 z" `- Oprocedure OnGetResult (aStr : String);
* D* i( i- B/ r$ _, l/ Bvar
$ J7 |% `9 T6 z2 @- O   Str, Name : String;
; ]) D; [- W2 \; f. D- Y. b! v1 J   iCount : Integer;
& e. y3 W6 e0 y0 lbegin: r$ B% i# j+ r
   if aStr = 'start' then begin
/ c& @/ n& l& H6 h1 z/ c      Str := callfunc ('getsenderserverid');
& t1 L, q2 m" Q/ C5 t, ?4 v- F1 U      if Str <> '51' then exit;8 E# f, l4 b- P* v+ ~. ~$ D$ V
/ S& \& l7 K: }' m
      Str := callfunc ('getsenderrace');
/ T# A( \( `) A% Y: a. X      if Str <> '1' then exit;
, P  f/ ~: P3 I
# w/ ^6 v1 k# j) B: B* J+ g      Str := callfunc ('checksenderpowerwearitem');
0 c( m7 J# O7 o. n9 ~      iCount := StrToInt (Str);# O5 L4 Z' f" D/ P/ T
      if iCount > 0 then begin
& S: Z. w* h  i         print ('say 先将带技能值装备脱掉!');
" q% \; K$ L# M1 I! T6 K) q         Name := callfunc ('getsendername');, Q/ }+ l" O4 M; X4 F
         Str := 'movespace ' + Name;3 P9 ]5 Z2 w/ @' _, X) f
         Str := Str + ' user 49 106 55 100';
1 l3 F$ o7 V5 P$ k, C* E         print (Str);* y* A- A" k1 A& L1 s
         exit;; @0 x9 b. h; k, d/ q6 [
      end;
: U  v( X3 N0 z      Str := callfunc ('checksendercurusemagic 0');  p4 C7 B) C, |  J4 c
      if Str = 'true' then begin2 s% x+ F& ?; J! E) ~  U  [  U8 D& i
         print ('say 选错武功啦!');' [3 b7 R8 Z9 j, B1 n- \: |
         Name := callfunc ('getsendername');
, ]1 u' h8 C! G- I( w7 _         Str := 'movespace ' + Name;
$ x6 ]9 Q; J! G! k         Str := Str + ' user 49 106 55 100';/ a2 f  d* {8 o6 V
         print (Str);- p9 E/ I4 J7 F$ `7 L* Q5 e: P
         exit;
( a" M3 w! a' `3 i      end;
. A- s: w' |5 ?( Z      Str := callfunc ('checksendercurusemagic 1');4 y) X* M! d% X. U6 a; T9 T+ J* Z
      if Str = 'true' then begin; X& I! s2 Q$ s  p4 N# A6 N
         print ('say 选错武功啦!');' `# E, l+ i/ @. b7 H5 P
         Name := callfunc ('getsendername');" z" U& K3 ?; O
         Str := 'movespace ' + Name;
' Z3 x2 W9 h) K: z) {- `# m         Str := Str + ' user 49 106 55 100';* J$ R7 l2 S5 H0 @! j: x% t: _
         print (Str);1 X9 h+ T0 v) b. X
         exit;
. K( V% `9 C, G      end;
! `6 f5 n5 y4 \5 K" Z
  V0 N; x6 f; ?$ u( Q; m8 ^$ O      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');
- h9 ^1 E0 D& y- ^* U7 F) K# \, S; C! f  D
      print ('commandicebyname 一级梅花夫人 npc 1000');3 P2 _, y2 L3 Q# P. f# S
      print ('setallowhitbytick true 1000');
& V2 n; U) K7 \/ M& B; l8 u8 \& W9 a" R) S
      Name := callfunc ('getsendername');
0 P9 }( r5 h3 [- l5 j; ]. e      Str := 'commandicebyname ' + Name;
5 ^+ r& u5 m- B6 f7 f      Str := Str + ' user 1000';+ k! [8 G: U& n* l
      print (Str);5 g2 f1 }( D( U: r# J, ~) P, \

' W. h& L% ^* Y& v1 j      print ('senderrefill');' X, a, Y% `8 o5 j

( |  X+ n( X0 m. l% _7 \' U% S      print ('say 别害怕 50');- f  Z8 S8 H; ]5 h# q) e$ P
      print ('say 我会收下留情的... 400');
, h, S  h2 s  R& |' l      exit;8 t% B8 r( C4 Q$ m6 ]! V; j% t+ e
   end;9 C8 w; [9 _$ z: K4 W$ c1 `
end;
3 Q! ~" \. W( j) j6 @
+ |$ G$ l0 ?: g0 gprocedure OnCreate (aStr : String);. g0 f# `' b3 t5 N# o/ ^6 L* R6 E, e
var
  j4 y; E% A* G) s  E/ V5 {- Y   Str : String;
/ S* i6 k: {: q$ Ybegin% L$ V, ~3 f+ b6 H# i
   Str := callfunc ('getsenderrace');. w% c# Q& h/ m
   if Str <> '1' then begin
) k! f  o5 u  x6 |  p6 P0 j      exit;# _9 M/ P) ^# S9 ]  ]
   end;' V  K8 V! r& o& Y1 \

9 i4 V+ b/ f0 r! b/ J   Str := 'showwindow .\help\一级梅花夫人.txt 1';
; s3 x* Z; A/ X1 e/ {1 |6 T4 h   print (Str);
6 B; ^/ v' M' N  W$ q   exit;
/ L& T( V) r' ^end;
& Z# u. @# m3 Y/ L; R6 w* @7 C  O: R4 K3 l8 b. B3 z0 w5 ~+ L
procedure OnDie (aStr : String);0 \, G9 r5 ~. K  z! H; t1 w. U
var0 Q4 G# t) T/ G* T
   Str, Name : String;. ~- W  J2 X. h  X, a3 D
   FirstQuest : Integer;   
1 G0 f' k6 r( gbegin
3 F) |6 [! j  @) I: S& W( R# E8 F   Str := callfunc ('getsenderrace');
7 \4 {5 I& [& x; F( J2 {1 l   if Str <> '1' then exit;
. g3 {0 t; G& u- J2 i' O/ ?
/ [1 f3 S* O$ j& R7 {   Str := callfunc ('getsenderfirstquest');
) F/ S5 G6 z) l( I8 S   FirstQuest := StrToInt (Str);
5 K+ A, h, y/ d: i* y6 Y. U* Q5 r0 E& D2 y0 k9 a' ]7 a7 X% `
   if FirstQuest < 3 then begin
* J- A2 c8 Q& ^# G5 G' u      Str := callfunc ('checkenoughspace');: e8 @1 c4 E+ \( k2 H" Z
      if Str = 'false' then begin
- a. t0 ~4 p- j% X# _2 [2 d% B         print ('say 物品栏已满...');
& X) \% Y  k) c1 `6 z* }6 o, q9 [         exit;/ ~0 \1 F0 `. [6 R
      end;
+ T/ O' a  |, V- |
1 v0 q0 r* N% a- Y$ |      print ('changesenderfirstquest 3');
2 q/ x* A0 P: c4 a/ E      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');
, o( p8 }+ Q  E& L; d( r% V   end;
% u/ R5 b. P. |0 M/ }, _1 a. e
! s  c( o. {  \" H. ^   print ('say 我可只用了3层功力哟 100');) h' l2 A4 m, e, I
$ ^$ d0 n! Q) n* \" {
   print ('mapregen 52');
8 U1 h. ^9 J6 @3 L9 g, ?0 l5 O
' O' q) C+ h3 g* r   Name := callfunc ('getsendername');   ; {' b% E. h7 W4 n. B( E( m% Y
   Str := 'movespace ' + Name;
% j/ c/ R. ^$ p   Str := Str + ' user 52 17 18 500';
- f' m5 x' T0 O' E1 D% B   print (Str);) X9 J" I4 M1 G7 n4 ]
   exit;6 D, h" w8 L% e3 ^
end;# Y& C& i8 a4 s6 o1 U' l! d
5 o( G8 m8 w$ u
procedure OnChangeState (aStr : String);. F2 m# V, _5 h
var
" y- \: h2 R9 S/ m3 g   Str, Name : String;+ n: M/ z' Z- j4 L" W3 ^
begin$ \9 u5 W# I: Q2 G" |* Z
   if aStr <> 'die' then exit;
! s+ T" Z. ^$ {2 v' D- h! |# u  i, U1 k
   Str := callfunc ('getsenderrace');
/ c7 N( R3 S' w, X* b2 t   if Str <> '1' then exit;; g3 B7 a+ }0 ~1 i

; V- I6 Z0 h' ~0 H' K% P! u1 f   print ('say 别无他法 50');
8 m# S: c3 m2 c+ z" W- K: R  w   print ('say 是不是修炼方法不妥呀? 400');
3 Z% X& t3 k" n7 Z5 r; _
( N( V" o6 C- P% _8 `" D   Name := callfunc ('getsendername');; U1 C8 j4 w, F4 @* b
   Str := 'movespace ' + Name;
6 S; K0 w/ m7 Q9 S   Str := Str + ' user 49 106 55 600';8 E  {& H0 T" v/ b1 b4 I7 S
   print (Str);# {* A' v  u% M6 ]1 k/ \% m
end;! u9 x" H  M6 f6 P
2 y: Z( {& u" K) q. D" N
end.
# ~8 e2 i1 x+ ?. u-------------------------------------------  c) y* k4 m4 u1 o
unit 一级捕盗大将;& h5 p; q3 H, q% u  {( e, }8 q! h
3 ^" w& N0 I$ \! D/ T1 C" b
interface
  {. p* D& m3 Z: i% b4 V& T' R# B9 u- d) g2 n
function  GetToken (aStr, aToken, aSep : String) : String;
2 ^. ?4 G' b7 ~( rfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
) {9 C% k- J$ s2 H3 p+ J- Sfunction  callfunc (aText: string): string;
& c3 C9 \& q9 O7 Y+ ]procedure print (aText: string);
1 D3 l  n% w! dfunction  Random (aScope: integer): integer;
- _8 [" z/ n9 ^3 a/ Kfunction  Length (aText: string): integer;
0 a7 J* e+ f& Y( I! g$ |7 k4 t" k4 Vprocedure Inc (aInt: integer);
' L4 L9 v" z* P9 Q. q0 j$ Bprocedure Dec (aInt: integer);
& f& F3 j/ |* V( T; l$ ofunction  StrToInt (astr: string): integer;7 _' Y9 o& k9 x! \. f% Z+ J; A
function  IntToStr (aInt: integer): string;# e8 g& n. S! X. c! Z! r# Y
procedure exit;
* P9 C+ Y7 B7 B' k( U& M- G) t
2 e8 s2 W( v; D; C+ ?procedure OnCreate (aStr : String);; D& f8 ?: C* I. Q: D
procedure OnDie (aStr : String);
5 m0 |1 ]" ?  Y- O, wprocedure OnChangeState (aStr : String);
* U( S; d$ f$ k+ q$ |; T5 hprocedure OnGetResult (aStr : String);
: W4 e* d; B* S& b/ q, l5 q/ S$ V& x4 V" ^1 ^3 ]# e
implementation! I1 ^* R. J# J) {* B4 ]' u

! p- P: P4 F( z3 l( h* C/ mprocedure OnGetResult (aStr : String);
7 R. o4 g" Q4 b; \var
+ K* P4 s( x' E4 t3 F2 R   Str, Name : String;
- }- K) W. e, V2 \. w# L0 [, C+ T4 ^   iCount : Integer;   ) ~& L: c5 m4 Q* v/ d: [
begin$ Q1 c1 p) N: o& ^$ E1 g8 Y
   if aStr = 'start' then begin5 ~2 I0 Q, C/ p& u8 ^
      Str := callfunc ('getsenderserverid');9 a3 J: {7 A, x* n
      if Str <> '50' then exit;  J' s8 e& Y% Q  m- V( v, k$ R- H

  l1 _, W! A1 E9 {7 r% z  h( R! x      Str := callfunc ('getsenderrace');+ w" E) f% {8 H: l' Z4 W7 n
      if Str <> '1' then exit;
. }$ g5 N% Q; }* v8 J+ K7 f" s3 k0 h6 f7 _$ C$ A( o8 K% U
      Str := callfunc ('checksenderpowerwearitem');# v2 N$ h9 G2 Z' M1 ?( w
      iCount := StrToInt (Str);0 B7 f: g# {6 x# f: f# c1 Z; @
      if iCount > 0 then begin& M9 S- ~$ U( X8 l
         print ('say 请先脱掉带技能值的装备!');+ \. y; y; {4 j, k
         Name := callfunc ('getsendername');
3 C/ n7 E1 c; V0 d0 R% p% y# c" l         Str := 'movespace ' + Name;- t% r! \1 J. i- e
         Str := Str + ' user 49 106 55 100';* Q: Q4 q+ l9 h8 J& H4 H
         print (Str);
' K1 E2 V4 Y8 V. i( k% L+ w7 F         exit;3 z3 j5 t: W4 Z4 _; a# d
      end;
! c, z5 p" |& V, g$ U2 ]. N      Str := callfunc ('checksendercurusemagic 0');
8 A4 S& K1 |, g2 k# T% d      if Str = 'true' then begin
; ]1 u, Z" H' V4 ?2 C3 Q         print ('say 选错武功了!');
9 Z7 \& V* E, v5 |7 G. r8 I. ~         Name := callfunc ('getsendername');9 D) k9 ~7 \! |* G
         Str := 'movespace ' + Name;) S0 a; \: Z* V
         Str := Str + ' user 49 106 55 100';
. }' \" V+ h% s  P" u0 Q2 C9 a         print (Str);
2 A) U+ @9 D4 z- ?# ]/ n, N4 H+ [         exit;
0 @! k, n+ }8 w* B) z- ]      end;
7 B( C8 P* }5 D5 K' a      Str := callfunc ('checksendercurusemagic 1');% K' X& D6 k6 N! M
      if Str = 'true' then begin8 ^, H. _5 i0 b# Z4 \9 C
         print ('say 选错武功了!');
) e7 v: R: x- m         Name := callfunc ('getsendername');
  n3 P" D& l- j) W         Str := 'movespace ' + Name;
4 \2 ~* g8 t% s6 E) z& A! }         Str := Str + ' user 49 106 55 100';+ v- c# x. S/ j$ @% |/ ^4 C% ~
         print (Str);
( `4 S% U; i6 \. [$ R: ?# h+ s7 y         exit;7 G, n5 o6 I7 i: _: r) Q
      end;: E9 L# t1 _% `

- f# @- G- n& i# [/ c/ d      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');
  U# K' i7 ]! ]' Y  i7 y, k4 v
, U6 C0 x1 `0 e; h6 Y/ y      print ('commandicebyname 一级捕盗大将 npc 1000');; }6 X1 b: y; p* m; D5 @
      print ('setallowhitbytick true 1000');5 Z& y  \. v+ d2 {0 M+ j+ D; g
1 D% Z4 f5 L5 ?4 a# |3 F3 ^
      Name := callfunc ('getsendername');$ m8 [4 P' Q* ~8 \8 R1 X5 E
      Str := 'commandicebyname ' + Name;2 ^5 L& u0 M  ]! n- Q  |* a5 P
      Str := Str + ' user 1000';- g1 n) m; @& c) s4 O: s2 M
      print (Str);. u, |' x( t! ?1 X2 ?- l' i

" ?3 U0 t5 l/ q( Y! Y( s( g0 X  g      print ('senderrefill');
9 K5 P: O8 D6 t6 }
1 v5 `9 k2 H! ~( y      print ('say 你还太嫩! 50');
  Z5 p, J: F$ g      print ('say 留神啦_我可不会手下留情 400');1 j+ U1 s4 {1 r# a8 Y- b/ t, `4 G  [
      exit;
# Z" ~1 H9 D1 t0 z" i   end;
) B& G7 O* F" Bend;6 `6 C9 A" p9 A. U

- ~) M+ z8 n0 E6 i* S+ |3 A. b% Sprocedure OnCreate (aStr : String);/ ^" X4 h  g' \
var
4 h( t! _+ @' C" G. q9 m   Str : String;& z0 ~1 A3 x/ ]
begin
. G( o8 m0 y+ f9 W7 A4 u   Str := callfunc ('getsenderrace');
7 A5 m0 e7 \: t9 I2 h   if Str <> '1' then begin
: A- O- I) K8 t" o      exit;
' a9 ~. ^( G$ r# R& H- O* p   end;- D1 X% q9 `4 c+ M" U

& D+ H& P9 A7 W6 V& S' `5 K4 v   print ('setallowhitbyname 一级捕盗大将 monster true');8 l9 ~0 J  u8 T1 d6 U- B
$ E5 ~8 ^$ f- q
   Str := 'showwindow .\help\一级捕盗大将.txt 1';
+ [( q& P9 z: F% o$ ~! e% ]3 h   print (Str);
5 J) e% R6 b; O) [6 e" D/ j   exit;
, r3 D6 O8 L" R8 b, q% Kend;
6 p% e% }9 m2 p& ]- K& N( w) w! Z* u4 q9 ^
procedure OnDie (aStr : String);
% a# d9 Q7 X/ G9 P- h+ z8 x2 Gvar/ X# T* W' j: P) ^  g4 Y" M
   Str, Name : String;
" @! d  }5 t/ [7 Y   FirstQuest : Integer;
( l+ j0 _0 s7 T; `: d( a2 N' ]begin
7 A* X' b6 s+ a8 M. _' _   Str := callfunc ('getsenderrace');
4 N# Z' c; O" E# f) t' b) s9 J' H   if Str <> '1' then exit;
, a+ r) S4 D  z% E$ V% H4 S9 ^% [5 I5 g9 q6 K8 n
   Str := callfunc ('getsenderfirstquest');1 Y4 Y) o0 P" z
   FirstQuest := StrToInt (Str);3 x  i6 e1 t+ T5 d6 H" u) Z: {

, }0 ]8 L2 r  c9 u7 s   if FirstQuest < 2 then begin
0 V0 C" l' E9 |( `# o0 ?      Str := callfunc ('checkenoughspace');
) k! H4 Y" h( |/ R      if Str = 'false' then begin  @6 Y3 L5 j; H/ j9 n4 L
         print ('say 物品栏已满...');1 r/ w9 F6 J9 B" n- T  D. C/ S
         exit;1 N9 }* s  L/ d3 J/ C
      end;
: X  \- f( A" j7 R* O3 z) r) c& T7 b( R, q4 `
      print ('changesenderfirstquest 2');
. }, G$ a3 q2 F! F" w) X, j      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');7 F- b. P% Z  h0 r+ \5 I
   end;
0 A/ Z: A, O5 W  W, [1 ^( Y( c- X2 z
   print ('say 不可能_我怎么可能输呢.. 100');2 B$ ^& E) w8 u% p, ?$ Y! R

1 n9 ^/ _4 U' p# v/ J   print ('mapregen 51');3 d, ~* R1 U3 A( Y) R9 \

' v; H5 v3 ~' R3 K   Name := callfunc ('getsendername');
$ u* V2 F' R* o$ s, y1 G   Str := 'movespace ' + Name;' N. ^2 l; A! y
   Str := Str + ' user 51 17 18 500';# W" W5 L. L1 V8 j2 W* X: n: ~) I( R
   print (Str);6 Y! ]& O/ i. H+ Q$ ]! m& I6 L
end;; O1 @4 L2 T; a' h' ^8 r/ M% u2 |5 D
7 i7 @& V, _2 r4 U
procedure OnChangeState (aStr : String);
6 y9 l- e' b8 Z4 hvar
* I( o! r0 ]' Y1 f8 c   Str, Name : String;0 _2 a8 U3 t! A, p7 C
begin) i( g8 ?* i- {: i, S4 k
   if aStr <> 'die' then exit;
0 _, ?, m6 V! n0 g" Y  S, C
, R) h7 q: E6 N: X# j" [4 p   Str := callfunc ('getsenderrace');
& R3 d+ y4 W4 T   if Str <> '1' then exit;
. c5 M! K) J1 Y3 A2 P8 G+ C, ?, J+ A4 c
   print ('say 回去再修炼个10年吧50');4 ?  L! \: y% P8 f* u* q. v
   print ('say 到那时我在用双手跟你打 400');
: P) Z" z: ]7 E# J/ ~) ^$ v- R
* @* E# }( h) o! R   Name := callfunc ('getsendername');
4 W  B) h, J2 v0 G   Str := 'movespace ' + Name;
8 Y& [; u, o2 F% K   Str := Str + ' user 49 106 55 600';
! A% W( t5 l' e' O/ ?, R   print (Str);
- E' b9 q! J& [  n2 L( J& v, `6 Z4 C% w2 d: t& L
   print ('boMapEnter 50 true');   5 M9 @$ s' D, n9 v  d
end;+ N% z1 H. {5 w! c2 a$ d

8 s4 ?* _% \) G6 qend.
# P; G3 p- k* V, g% e# h9 [9 y' X2 J- [9 V; j% |! f
---------------------------------------
  K6 L* s" R; U; d5 e2 m1 m! m0 \# U7 i' }! Q1 U0 e& h& i) D
unit 一级牛俊;
* V  z6 \: H' f- ?9 b! x
2 P: Z! k0 T; o) W; H) Zinterface
$ `& t! n" r9 d2 \1 t  v% J- |* n3 e- \2 n7 \( @( K* R7 a) ]
function  GetToken (aStr, aToken, aSep : String) : String;
, W+ S( c5 o, W& L3 X' k' J. Wfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
' ]+ L1 |& M. m2 Kfunction  callfunc (aText: string): string;" C) a& ?6 Y0 Q! s3 v6 X
procedure print (aText: string);& `# Z9 r9 z; D/ r7 w, ^
function  Random (aScope: integer): integer;: @  m) {9 M2 E: w  X
function  Length (aText: string): integer;
# j4 W9 A6 e( ~9 o7 \procedure Inc (aInt: integer);
0 N. S+ d/ q* Y( L/ _6 b5 N' v: bprocedure Dec (aInt: integer);
' M8 W+ |# K6 ]; c: wfunction  StrToInt (astr: string): integer;" {" V: ^6 c/ p
function  IntToStr (aInt: integer): string;9 U5 r7 x% `# }9 j, D! q; z
procedure exit;
) g) G9 w# {# m/ W2 f9 f" ?
6 [5 y, Q4 L5 jprocedure OnCreate (aStr : String);
( m6 |& i2 \3 R9 v7 _' rprocedure OnDie (aStr : String);: {* T- {: g5 m9 Z5 Q8 y* A
procedure OnChangeState (aStr : String);
/ \3 |4 A( t% S; ~& ]procedure OnGetResult (aStr : String);
) L, }5 M# h8 s1 W3 ?# ]  y
5 w5 M/ i7 \1 e1 Uimplementation
% c: i. B" P( c  W5 y. L' ?; L! B8 Y5 G$ e
procedure OnGetResult (aStr : String);
1 c$ G) o* z9 }var
' [/ H% K4 }; R$ e5 {7 C: u, v' L   Str, Name : String;
! ^* c' p% r  g! Y   iCount : Integer;
" k( d$ @) M) D* {+ Pbegin$ s  r7 I$ q/ |1 h. \- m
   if aStr = 'start' then begin4 ~" I4 z1 ?0 B) E
      Str := callfunc ('getsenderserverid');
. R: d+ h# c- Q4 B( H      if Str <> '52' then exit;
: V# N! N% L; T7 J* l
1 O0 h0 P& _* J# O8 S, \* @/ y4 n4 k      Str := callfunc ('getsenderrace');
) G1 A& B$ B( U$ H! K* K* T" I5 ?/ l      if Str <> '1' then exit;
0 Q; W7 \5 g/ y
0 _& e6 _9 ~4 `! h6 _' Y$ s      Str := callfunc ('checksenderpowerwearitem');
1 S. L# G; }' C      iCount := StrToInt (Str);. Z5 v& w5 N4 U! T2 N1 c# C
      if iCount > 0 then begin
0 C( J: U3 G; C0 B* F/ [. _2 d: L         print ('say 请先脱掉带技能值的装备!');+ z" |( f! ]5 V. H9 `6 ?& m+ A. N
         Name := callfunc ('getsendername');3 `$ k3 D1 T& U6 W# `1 J7 Q
         Str := 'movespace ' + Name;7 l! F. H3 B3 n' v) |
         Str := Str + ' user 49 106 55 100';
% h2 T# T# [& _6 g         print (Str);
5 N- W3 h2 x# H5 ]" F         exit;
# q) H0 S& D) G: A( h2 h      end;
& M% F6 X1 C- E1 j      Str := callfunc ('checksendercurusemagic 0');
5 {# w; p9 k4 }+ n; X- J2 j      if Str = 'true' then begin" K. b) [5 _# Z* n* t. ?2 x
         print ('say 选错武功了!');
' J' t+ P$ D% I         Name := callfunc ('getsendername');
9 _8 z8 q0 a1 }3 G3 F$ _% P         Str := 'movespace ' + Name;9 k9 K) j# {" G3 Z- z$ l
         Str := Str + ' user 49 106 55 100';
* k0 G4 U" @0 @- ?* _1 z         print (Str);
* D) W- k, l! ]* X         exit;6 K9 W9 ]" C0 Q8 q5 G) t- C
      end;
& P' u5 w" @6 j( j1 J! O      Str := callfunc ('checksendercurusemagic 1');
5 U5 e# ?( S' ]6 G5 `& _      if Str = 'true' then begin7 e1 {* K! O  ~* H& o; p9 ?1 g
         print ('say 选错武功了!');( j; l( m+ |# t0 O$ |: p( Z3 A
         Name := callfunc ('getsendername');
) B" S3 l5 L/ w- X- w         Str := 'movespace ' + Name;
/ k0 V0 C7 N9 s         Str := Str + ' user 49 106 55 100';
" ~  I! g' ^( v+ H& X         print (Str);
/ W! W3 C0 q) n" H         exit;
0 a7 `2 o: I" b: g" w3 l      end;
" ?3 @- O% j: K) ?% G4 E# `
- m8 I* h+ B$ E2 q5 Q      print ('directmovespace 一级牛俊 npc 52 20 18 0');" p* l' M2 E7 ~; x  Q9 r1 T' S' r

- B4 I6 y) y# o( ]1 Y1 ?/ S      print ('commandicebyname 一级牛俊 npc 500');
" u9 M% d  k9 g2 C& \      print ('setallowhitbytick true 500');      
* z) q$ D  f. j" L8 Z  u5 [
! W; N0 H1 H& T2 m9 w      Name := callfunc ('getsendername');
9 q" ]* w. Q" z2 |      Str := 'commandicebyname ' + Name;" F: y" B- f; B4 p
      Str := Str + ' user 500';
1 m6 x  m' c+ w. w7 O. B) K      print (Str);9 P$ p- m2 V* p# O
$ ^. f5 K7 v- C5 p; I9 }" ~/ T
      print ('senderrefill');
6 o7 m/ J1 ?, K- j; l. D  {' q" p3 C' ?6 X
3 N9 i; O8 e' k$ O      print ('say 10如果10秒内不能将你搞定 50');
  e1 f, k: ~0 j1 z5 F6 `, A' ?1 U      print ('say 就算我输! 400');, s) I1 |* x5 O2 n
      exit;
# I: S) S/ E& C( z4 ?, u# k! g* t4 C2 \   end;
0 o, v( n) h! ^2 p: C( aend;$ M' _: b- |- l7 S( G
- N* x# n  K7 h8 F, @1 f
procedure OnCreate (aStr : String);1 s2 s% O# V0 o6 q  o  e8 f8 O3 ^$ z7 {
var
7 `/ }. ^! w) ^+ B7 D# b   Str : String;8 D% F6 u9 I1 `  N
begin
5 f1 K  O0 ]( L" G" ~; n, c   Str := callfunc ('getsenderrace');
& n, w8 D; g% z1 ~   if Str <> '1' then begin; \$ g  z  @- Y3 W0 }
      exit;
7 b5 z3 G+ G  I; v! g3 w   end;& _( X# i! H7 _& l. E

8 i% Q4 B2 P: j$ H! K2 z0 \   Str := 'showwindow .\help\一级牛俊.txt 1';
5 G- \* X: m" ~, w! O6 ~   print (Str);! I; |5 x3 M. C
   exit;
) c$ B9 L' j! C6 q% ^) D$ Eend;
6 p" X- Y6 P! _0 p- p" y% H1 S3 p/ A
procedure OnDie (aStr : String);
  G4 @% H  i, y$ B9 uvar
' c/ v0 |5 u' H   Str, Name : String;
* @3 h1 l0 G* k( F1 _- a, f+ a5 a# T8 W   FirstQuest : Integer;   , K* b8 M9 ~, \8 \4 l+ w5 s) S
begin
3 s, K. m9 N) S" t   Str := callfunc ('getsenderrace');
' F3 y! p) ^, u) t7 q* H   if Str <> '1' then exit;, V6 ]0 G- C) d- ~
) L9 y5 O9 |& W1 r% V. _
   Str := callfunc ('getsenderfirstquest');
: M# ?! @# C7 z: {; M9 T   FirstQuest := StrToInt (Str);% W+ [0 c) R. ~7 @- o& o) n
7 p0 @9 w. \! P( p
   if FirstQuest < 4 then begin9 W8 R* _! |, e/ ?- ^* U
      Str := callfunc ('checkenoughspace');9 I) r$ @: U" M
      if Str = 'false' then begin
# Y4 v# n5 f3 R" V& M# \* n         print ('say 物品栏已满...');, H; [6 Z9 O. m
         exit;
$ E  e! b& B: G5 S) W  `, i      end;
5 {& ]# e0 n$ r2 \4 p6 b- c2 ?: `, o5 ?; K/ w3 }
      print ('changesenderfirstquest 4');
" y, A# _0 B9 j( o0 Q: M9 A      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');1 P' @5 m  e. j3 l$ P" {
   end;
+ U6 E: e% ~" a1 t, V. r) ]0 k5 ^5 J! e% B+ G6 Y" A
   print ('say 什么_不敢相信!! 100');
# P9 j# j; s; J9 Z, Z6 R7 u- g; M; g6 E
   print ('mapregen 53');
# I$ V) ]6 W. F" O: m1 Q
# i$ Y4 H+ W7 p& E/ U' }   Name := callfunc ('getsendername');
0 C- q4 m, k% |: _5 g+ F- l+ Y   Str := 'movespace ' + Name;
) ?! B2 X  {# K! ^( C; p   Str := Str + ' user 53 17 18 500';! G& E8 Y$ V9 C7 x; F' n
   print (Str);
  s* f/ y" \9 Bend;
( |% }* s& R" O* r2 t9 T( A! x8 k) s$ h* {9 [6 D) F
procedure OnChangeState (aStr : String);0 C( i+ @7 A; v! ^; T4 S  }7 k9 W
var( i4 H7 F5 z* C- Y% U  Y
   Str, Name : String;
5 O7 C" D8 s3 ^# r2 x+ u' m$ T. Ybegin
; l, U' S* x  I8 V/ a   if aStr <> 'die' then exit;* I; P0 y4 |' c' C
( M9 U! e& S* }' W! ~# ~3 c; B/ y
   Str := callfunc ('getsenderrace');
1 y. U+ u. A/ B   if Str <> '1' then exit;0 c- q* |) \: {9 b/ V9 q& f+ {; M
' N- H- S4 l- @, \% q
   print ('say 领教了吧! 50');
2 a7 p8 Q. s2 l" U% t: x   print ('say 差远了... 400');
. ?* k5 R- \# ^2 ~% n' k, k
' v" t8 ]6 t. j   Name := callfunc ('getsendername');9 W5 ]+ k2 y- L$ n
   Str := 'movespace ' + Name;
8 q. _' }6 S4 d0 B0 U* n   Str := Str + ' user 49 106 55 600';
7 |5 }3 m; h* K6 v# N2 `5 c   print (Str);
5 ?8 Q  {7 |# s* x; F, Eend;& h) ]' F+ U7 k# A( R8 z9 t
1 G' m6 S0 M4 N& z
end.
# J' q! m0 R- X1 B----------------------------------------" L9 N1 i# h' H( z
unit 一级雨中客;3 H" i. _: Z2 ^2 p: `8 p9 ]8 t

8 U; P  g* ?: _interface0 U, T2 J% P+ S3 A8 B$ H

9 p. M# c/ N5 M0 g- i+ pfunction  GetToken (aStr, aToken, aSep : String) : String;
( D) T/ A: e! o: Tfunction  CompareStr (aStr1, aStr2 : String) : Boolean;- R3 C' y" g% t, v
function  callfunc (aText: string): string;
2 _2 u+ _7 U6 u3 g  H+ [procedure print (aText: string);
* n) h+ L3 |$ r) h; {( Y! m' Ffunction  Random (aScope: integer): integer;
" c! k$ m+ x0 |: s  k- W) Rfunction  Length (aText: string): integer;, A5 a9 \. a, w. n* _
procedure Inc (aInt: integer);! M$ j* |, i8 s, Y% X7 W9 R0 V
procedure Dec (aInt: integer);
' q2 S/ X; b& A0 N8 Wfunction  StrToInt (astr: string): integer;
. P. v  F& X% w9 M8 Ffunction  IntToStr (aInt: integer): string;
# Y7 b% ^7 A% y; K2 Bprocedure exit;" `" z/ \5 N" F& z7 Q. ?0 I) _

/ j8 n3 R9 U2 [0 z* T; lprocedure OnCreate (aStr : String);
0 P* d( c. p, V3 X# ~9 Qprocedure OnDie (aStr : String);2 k- t$ L% U1 F4 N
procedure OnChangeState (aStr : String);
; j: \% ^3 h  r5 }$ Mprocedure OnGetResult (aStr : String);
9 ]* \8 f; d. ^( ]
$ ?$ F. X: a0 q1 oimplementation
: ?- z! Y$ }% a% [+ L1 P; h( p  B: h& X3 }5 w' ~4 J
procedure OnGetResult (aStr : String);; c6 ]3 t8 T1 J9 H. J" T8 e
var3 u4 T9 _  L0 p: o- b4 I
   Str, Name : String;0 j7 F" X2 N8 N$ C* E+ y- a$ i
   iCount : Integer;
6 ^8 a" F5 M0 c9 X# {begin
8 m: M6 f0 w( l, G4 s( \# N   if aStr = 'start' then begin
3 O) X" v9 K8 f$ z; V      Str := callfunc ('getsenderserverid');  X$ c5 R3 g$ Q' Y8 U
      if Str <> '53' then exit;  L6 u/ ~; {1 c
: z# l2 w) B" J
      Str := callfunc ('getsenderrace');
5 j3 V* L0 o$ k9 f' T( }      if Str <> '1' then exit;/ u1 U. Y9 n: R. i

- H, X  X0 D% b1 }% z; E, j      Str := callfunc ('checksenderpowerwearitem');) H2 ~2 B8 d# l' B
      iCount := StrToInt (Str);. j! A" ~1 r, ^+ y
      if iCount > 0 then begin
" w- W. ~. w7 v4 Z. l' R& w         print ('say 请先脱掉带技能值的装备!');% o$ c9 L! N6 Q/ }- }
         Name := callfunc ('getsendername');
- {2 G0 d: Y4 X" v) d' I         Str := 'movespace ' + Name;
# V# D1 d7 z+ I         Str := Str + ' user 49 106 55 100';5 `9 V$ H9 m& }9 b3 Y
         print (Str);
( J. ^. S5 o$ S         exit;" \5 h8 x) S5 c# T
      end;4 w, X7 K5 m- {* E- D- j
      Str := callfunc ('checksendercurusemagic 0');
8 Q* A4 P5 |5 N) p% x9 o; ~      if Str = 'true' then begin' M5 g: P: r- m. r
         print ('say 选错武功了!');
0 y4 a+ Y( X6 H7 }0 W# P. ?         Name := callfunc ('getsendername');! M7 b7 p( M1 u( _, z
         Str := 'movespace ' + Name;% D" A% j" @' D* u- v
         Str := Str + ' user 49 106 55 100';
9 b$ Q5 @1 n+ o         print (Str);
1 @9 J) D, L8 |5 }' f  b         exit;
, J9 P5 m: h: x; L" z: G      end;' I7 H9 I/ ]9 v/ s
      Str := callfunc ('checksendercurusemagic 1');
/ `; x" R; D+ g4 b      if Str = 'true' then begin# Y! Z  g/ s0 t; \
         print ('say 选错武功了!');
2 J' A  B! w2 K1 v% [" V         Name := callfunc ('getsendername');) v0 f! t  r" y0 X
         Str := 'movespace ' + Name;
9 ^* J* M$ v. T+ o% P         Str := Str + ' user 49 106 55 100';
. `1 K: J1 m, ~" S' s1 ]         print (Str);
* J2 F( u3 J, @- h) x         exit;
% m% S; ?: U9 r0 x      end;) I8 ^, G6 c) H! z' i

" D6 z3 ]  b7 z3 O4 r      print ('directmovespace 一级雨中客 npc 53 20 18 0');7 `( ~( L5 {' k- W# r/ d& x

. J3 z1 M5 ?; P! P! P      print ('commandicebyname 一级雨中客 npc 500');7 O$ n0 o. D5 F+ I) M' K) p
      print ('setallowhitbytick true 500');      
: T* }) F) M/ b! [" N
$ q/ T. M) H: N0 y( q, ]      Name := callfunc ('getsendername');) S, F9 {0 {; U, `# k
      Str := 'commandicebyname ' + Name;
* v- b( E6 g% ~% L6 K) }+ ~      Str := Str + ' user 500';
# T) i; x5 H( b$ V/ d7 g      print (Str);
* i! E4 x- E# o; i8 X
2 R0 Z, _1 n7 L" [" R! l. _* f; }      print ('senderrefill');9 C/ S4 e2 w: V

" i: A, }8 `* F" o: O: ~# `; j      print ('say 领教了 50');5 ~" a; C. n; I; R3 u" g
      print ('say 开始吧 400');
! U' w0 A+ v4 b      exit;* m  C8 s0 N9 P) t  _
   end;
3 \1 P! y- ~" }' ]+ ?2 Gend;  N, \3 ^( H+ D% d
$ `5 R: u/ ?# i
procedure OnCreate (aStr : String);
: n, Z3 K5 f) K3 v5 l$ \" F# yvar6 ?% `2 h/ X$ ^9 S) j. A
   Str : String;
! F& G* i$ ], I* Bbegin9 w0 c1 {9 Z+ p- V6 g
   Str := callfunc ('getsenderrace');
, ^( |6 C& d6 P: J0 u0 v   if Str <> '1' then begin
2 z! Q! A5 g) w, j& q: |( j3 q      exit;
4 ?! ]: C. i! @" O* |$ I   end;& n9 E, P. M( T1 J9 r# s, i- r1 C

4 [! ?& K2 Q+ {& r- N' D   Str := 'showwindow .\help\一级雨中客.txt 1';
3 N- @& ?, r3 u2 I0 c1 t   print (Str);# N; J6 r6 T$ a$ }" e/ j7 S
   exit;
* p( o+ p+ R0 \* h9 m' ~# [end;
- a- A* r4 |3 I# }, p
1 p( n) k; u; s; ~$ l* T& A- a1 ^procedure OnDie (aStr : String);
# K) c& E- e9 L* Q  [/ C+ N6 ?var3 I3 T' `8 Z5 {/ c7 B8 N5 M# e) _
   Str, Name : String;! h5 U7 J( }; |% \# q
   FirstQuest : Integer;$ a( ]! W+ ~- X; }; \9 J
begin
. Z9 L1 M1 d, y3 e9 u   Str := callfunc ('getsenderrace');
1 E8 N& q* e. S   if Str <> '1' then exit;* e1 V9 i) {0 p7 W# `6 `
" z- p# Q7 e3 X! e" P
   Str := callfunc ('getsenderfirstquest');6 t# |" K8 M4 T. T
   FirstQuest := StrToInt (Str);3 U: _* e% S1 z8 k  ~( \+ q; V
9 ]2 i7 h: D& K, r
   if FirstQuest < 5 then begin
& v( A' K- e, }& }8 }$ ?      Str := callfunc ('checkenoughspace');
, V! e; G) `: u7 T' H      if Str = 'false' then begin* {) N, D" |) L
         print ('say 物品栏已满...');
6 N( C8 a$ B5 _+ o         exit;4 S' m- ^, G3 S
      end;3 j& t& c  \0 j+ e, j
& F  Y1 |  Y1 ~0 i; N) e
      print ('changesenderfirstquest 5');5 }9 c( R! c% u" F( d% [! C) C
      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');
8 J# f8 n$ J1 u   end;7 t* u# M2 T) f, {4 S6 S+ n- |
5 i$ K7 V3 T. Q' ]6 K) k) |
   print ('say 早料到了_佩服 100');2 o) n: k* ?5 M* ]+ f! B

* E  J5 f: o; C( p' L1 G' T0 {7 M7 {   print ('mapregen 54');& |9 ^$ r: b' m3 K2 S

" W) k# U2 O; s   Name := callfunc ('getsendername');
/ H( `: B; r9 `0 e0 n9 q1 S   Str := 'movespace ' + Name;
; C2 n7 P+ w( H/ |1 o   Str := Str + ' user 54 17 18 500';$ a4 ?( W3 d4 S3 r
   print (Str);0 G2 \3 {9 R9 w& M' f8 c- ?/ ?
end;
2 }) C, j- C/ B) w# s) m+ M; s) T+ s/ Z: i0 g( g2 c  o4 f
procedure OnChangeState (aStr : String);9 Y2 p( `, y0 K) \
var) k5 c. K# l# q+ K  R
   Str, Name : String;3 H. U3 k5 W( \& U4 N
begin- y/ N/ v' C9 _1 ?: \( L- _
   if aStr <> 'die' then exit;
4 f8 Z7 y+ ?* T# Y$ z
. ~/ A) R" D' O- D/ N+ E+ j( z   Str := callfunc ('getsenderrace');
9 q2 A  s' k% K5 G) o  d   if Str <> '1' then exit;5 e- }0 Z) @  k% P

6 Q& l9 e# ?. ~  C; }   print ('say 不错。只要能维持几秒钟');
8 h3 l( O  w7 W& J  e8 B  n   print ('say 到那时谁都不是你的对手 400');
+ J0 p' X# p1 b
7 Q8 T  ?& A5 _   Name := callfunc ('getsendername');4 I% i. s- |: F+ h
   Str := 'movespace ' + Name;2 |' @7 a! K1 Z+ p3 f
   Str := Str + ' user 49 106 55 600';3 e! S# }# W) {# P6 Z+ l+ d/ L
   print (Str);  a/ |/ t( R2 |
end;
5 n: x3 W. X$ V, @; G7 R1 S& Z  l! J% M4 }. u8 p  I! R: _
end.* M8 J4 }" A# S- L: e4 Q" [
7 m, Y2 v1 w7 _5 {$ O8 o
--------------------------------------------------------------------------------------------------------------
- ~) @+ u4 z1 W, l' _, V: c: p1 J) ?& z1 |* t( I# ]7 x5 {
unit 一级老侠客;
$ z$ Z9 v# j  r* f
8 g, G& D. A* @; ginterface) p0 @, Y: V3 t: @0 C
$ h! E3 u, D1 d- K$ G% a+ L
function  GetToken (aStr, aToken, aSep : String) : String;
3 g7 p- I7 m8 J. X) Lfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
  n0 m2 ]* U, _function  callfunc (aText: string): string;
; \8 t  o2 F. M( _% J! [" H, k- G& uprocedure print (aText: string);4 R* ]; d' |1 [1 k# g# z& l
function  Random (aScope: integer): integer;
  W. t% [0 d# t+ H! }7 f8 T0 bfunction  Length (aText: string): integer;7 F" T) G) d6 e# G
procedure Inc (aInt: integer);. Q0 I" I, c) t$ w, @. A3 D$ e
procedure Dec (aInt: integer);' e& o) y: B. s- B1 {: `' ~
function  StrToInt (astr: string): integer;0 f. u$ U! H0 f& I
function  IntToStr (aInt: integer): string;
4 u( W# H4 J' [! C0 |. ?procedure exit;
$ e9 F/ \$ @! [4 V7 N
0 P, B1 l9 t" l/ B5 ~procedure OnCreate (aStr : String);
9 t! w# n2 y0 ?4 Sprocedure OnDie (aStr : String);( b2 e0 t) C; r/ y, y% m
procedure OnChangeState (aStr : String);, P, Z+ I" A& j, y
procedure OnGetResult (aStr : String);9 V2 d9 H) D9 S
$ P8 M! y7 A* ?. h2 B0 o) h+ K9 Y
implementation6 b* j+ C8 t0 j1 S8 H5 p

; f; Q' C0 i( Qprocedure OnGetResult (aStr : String);
0 B4 e; p5 p( e: d6 ]# tvar4 e, |* H7 N- N4 I
   Str, Name : String;0 K& K2 b6 z( _* h4 E3 y
   iCount : Integer;   
/ t! n. w4 Y2 Y- G( n. Lbegin0 J( M3 C! ^8 F6 S& z8 x, s
   if aStr = 'start' then begin" O# T( m) `6 p" S9 N: ]) M7 \
      Str := callfunc ('getsenderserverid');% d2 ^3 V1 s: ~: T0 q, O
      if Str <> '54' then exit;. g* K, g8 t* [5 C% G: j
$ u+ s: M0 e% k- q$ T( Z
      Str := callfunc ('getsenderrace');  C* l4 n2 _! z1 Z7 j- A" ]  G% i
      if Str <> '1' then exit;" i4 t) c8 a, `  C& \
! C2 n+ |& M- W4 }, e2 U
      Str := callfunc ('checksenderpowerwearitem');" Q- N  U$ R+ |. ~
      iCount := StrToInt (Str);. W/ j' A2 y! T! }. ~) E/ S  i0 @
      if iCount > 0 then begin
2 {2 ~" Q2 Q) E7 x. D         print ('say 请先脱掉带技能值的装备!');
( Z  i8 w. i/ t" t, Z         Name := callfunc ('getsendername');  |8 E1 ]& o' ~8 G
         Str := 'movespace ' + Name;
' V2 t3 H. X: l: U         Str := Str + ' user 49 106 55 100';' Q3 R4 B# R( t) ?6 i  w$ S* A) ?; P
         print (Str);1 h" `" V7 ?' {; u5 M9 {) L2 g5 o7 s  ?
         exit;
: @! z, C" S( K9 G      end;
5 F' `5 H! Z, i9 g0 {) U/ {( p: R      Str := callfunc ('checksendercurusemagic 0');5 m: P* ^* p- D/ F7 f" A/ j/ d
      if Str = 'true' then begin6 _/ S' L3 f& d2 A2 ?0 K2 k8 l+ z
         print ('say 选错武功了!');
, z: W/ @7 r! e         Name := callfunc ('getsendername');1 R" _$ `5 h. \
         Str := 'movespace ' + Name;
2 h) d6 n7 d5 N* K4 m. T: @         Str := Str + ' user 49 106 55 100';
! K( ~$ @0 f/ |" o         print (Str);
/ l3 f" j, z- V) U         exit;" X4 J; r- o" c  U/ i
      end;+ i2 t6 e9 j2 i, H% ^5 u% C. A, q
      Str := callfunc ('checksendercurusemagic 1');
, l- \& v! x) l" R! j2 `      if Str = 'true' then begin8 O, m$ {+ H  _' p
         print ('say 选错武功了!');4 q9 ~0 {! D, V+ b9 Q
         Name := callfunc ('getsendername');  o$ Y7 J! r! P, p
         Str := 'movespace ' + Name;
  l, e$ H. A, l5 x' ?0 E9 H         Str := Str + ' user 49 106 55 100';. U8 }4 K; }' u! {% D% \
         print (Str);
8 `1 u: M4 t! K; Z6 w         exit;% Q8 C! j( _8 l* |7 r$ Y+ l+ |
      end;( Q# l* e, c' p% G; r8 e: Q

2 W: Z/ ]+ W# I* x( f2 e  X+ R3 l: Q      print ('directmovespace 一级老侠客 npc 54 20 18 0');
/ U" s6 h( Y2 F9 \0 l8 w4 q' o/ T( |" Y
      print ('commandicebyname 一级老侠客 npc 500');4 C- s& a1 M! A' A+ ?) ]1 F/ }+ y4 w+ t5 c
      print ('setallowhitbytick true 500');      
/ |/ @, }0 k: B4 N* v& v
# |, x* p* Y# {7 D% f; ?      Name := callfunc ('getsendername');
# f! {% V$ p) {      Str := 'commandicebyname ' + Name;
" t( {% c% I1 i' _$ N4 {9 |      Str := Str + ' user 500';
$ R( ^1 u1 D- y! x      print (Str);* Z$ q3 k: O  [! J

' B: o7 g  o! `( s# U% ]      print ('senderrefill');5 S: Q4 _. m* b$ @5 }  K0 `

! l, G; O5 |' T  T! j      print ('say 如果你实在想比 50');
% X- c" p- H, b; ]      print ('say 我将奉陪到底 400');( ]0 Y& R  O- E. m
      exit;+ K; {- b8 ~" U5 g3 S
   end;
4 K3 s- l+ W/ W' C6 ?( E' s$ P; Oend;+ S$ U) p: m6 m( X+ X4 t

6 e* r  f1 Y& L! b" L! O+ Z) c* |procedure OnCreate (aStr : String);3 Q5 [1 W3 z8 y5 p) [
var
1 U. \; d3 E- t/ E8 m& o' r- W   Str : String;
( B" F1 e$ C8 o2 jbegin
( X4 `% l/ |- {' E2 T  i' t/ B   Str := callfunc ('getsenderrace');
! V9 x; S0 d) Y- D3 \1 B3 Y$ O   if Str <> '1' then begin. W: D: J0 |& \2 j/ @* \: q5 Z
      exit;
8 n' _4 d3 S: ^; d6 X  ]% T; t   end;
) h% T" ~$ n0 M: T3 k# b" J7 b" [
   Str := 'showwindow .\help\一级老侠客.txt 1';
' w% i7 K. q% i; Y   print (Str);* O: p, S8 x% ]2 Y* ~
   exit;
; x; ?4 e8 W6 E; T, Send;3 X: \8 k4 M' H
1 F& v4 m& K! b; K% D
procedure OnDie (aStr : String);
! U* D( V9 g! d" e( G. R2 l' Fvar4 s" n2 |/ P; S) s5 L) L7 u7 ^& z
   Str, Name : String;- e/ W5 c+ u4 t. I& M$ L; U
   n, FirstQuest : Integer;   $ s: ]$ r9 M8 Q% Y! H
begin8 G9 C7 y  @+ l" c: ?$ F
   Str := callfunc ('getsenderrace');
1 z  e: H# C+ H; m% p& X   if Str <> '1' then exit;
* L7 T! V7 S) `+ _( a5 Q$ j2 v8 H) B4 g$ E. r
   Str := callfunc ('getsenderfirstquest');$ X  F* a! q; `/ z6 j
   FirstQuest := StrToInt (Str);$ {; Y1 h/ @( B6 I4 u( B. Q3 W

% F4 u* Z7 S$ `# t# X   Name := callfunc ('getsendername');# n* ~1 C& r4 r5 n, y

3 [. W* ]# \3 @   if FirstQuest < 6 then begin
% U& t7 A, s1 B9 O      Str := 'sendsendertopmsg ' + Name;5 Z6 ?6 C7 I! G( l( I% Z
      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';+ y6 C/ i. A+ E3 @: n5 ?
      print (Str);
* p3 r5 _2 h' s7 k7 u/ Y9 d# J! t: k: w: Y+ Q
      Str := callfunc ('checkenoughspace');& ?, I6 G  k% T( S+ [7 s- R
      if Str = 'false' then begin
6 h3 M" y& e8 U5 ?* j( R% H         print ('say 物品栏已满...');
; V  f' t4 c" |0 {- I$ c         exit;
% L5 s& E8 a% D4 ]$ O6 N+ ?! R      end;) S+ E. @. {2 i* N! I8 P: y8 l2 T

, b  V4 B% z2 V( q# U$ K& u& a      print ('changesenderfirstquest 6');
7 x6 e  D# s& Z- W2 Z9 y2 d4 Y3 b* G) h% ~1 {
      Str := callfunc ('getsendersex');
% X7 G4 `4 f! g3 B1 w9 B: G      n := StrToInt (Str);- h$ P/ q; W5 p8 u6 Q
      if n = 1 then begin9 e  u0 d2 M# x4 o0 P  j
         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');4 f, K3 a0 q3 p, X/ Y3 m$ p$ I' b/ z
      end;
2 C! ^4 w6 {& U1 G9 e7 B      if n = 2 then begin! I4 J( w. V: [
         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');- J' u9 E9 K2 \& r5 y
      end;
: o& p% l0 U# @5 @1 s         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');
7 v. W( q, k  ]3 \9 R+ J4 w! C   end;
, j- z4 e; o) z$ B
/ F% G* ]  w1 k2 C6 H- W   print ('say 佩服_佩服 100');
/ N5 ^, o) U. h5 o8 R( x0 t; N! R' }
1 y& i/ V1 m9 a   Str := 'movespace ' + Name;
$ e( [4 N( Y. Q! K% \8 I& O4 q   Str := Str + ' user 49 25 35 500';
% u- Y8 t- g6 _7 K   print (Str);
1 e" Y% W2 w5 P$ l, r1 \end;  k' s5 w4 }( k( j' Q; k' \

$ `$ A3 Q2 B* t$ `2 Aprocedure OnChangeState (aStr : String);
3 G6 p2 r+ E0 U% Nvar8 k0 |* W4 z/ t% N. }
   Str, Name : String;: V/ U/ Y. N6 c1 }- S
begin
5 ]. B# Z( u" E4 y   if aStr <> 'die' then exit;
: G3 q$ ^: d- Q, f; z& L  K1 I
+ g4 |0 Z+ Q0 j1 S# j   Str := callfunc ('getsenderrace');
) U9 r& R, ]) F4 W0 {6 Q7 H0 a   if Str <> '1' then exit;7 l2 l. k# f/ R8 ?/ J( `' H! `
7 D! a* C. {4 I8 `  r& @# G) n6 E' w
   print ('say 小小年纪_就有如此高深的武功 50');* u% q1 K3 P( K# D
   print ('say 日后要继续修炼... 400');
5 X% _. X2 s% F1 o  x; K
' f! T0 S9 c# z   Name := callfunc ('getsendername');
$ ?( ^! v% ~4 z+ I4 ^+ v, j! j& I2 _   Str := 'movespace ' + Name;, P- ^/ L; G9 {) s, O
   Str := Str + ' user 49 106 55 600';! C. t! h1 t# e
   print (Str);  \; [1 x# h4 y) a5 ^$ a
end;
" d- P! u4 P1 L. f
: d$ X% c/ y& c1 Y& {7 K  i$ a& T. lend./ V! l- N0 T# j
" _9 A/ H: G* R
-------------------------------------* T( r  H+ G) Y- m  Y' d8 l

) ^7 ~7 `9 Q4 m7 H1 L4 r*************************************/ H$ p. c- t1 f

" V$ O/ K. Q  l& C% M3 Z  [奖励物品代码:
6 p# P8 |  n+ ~% f
, @5 y* k6 a+ ~0 R8 J' T# }*************************************
' w1 y( f' B0 }- }6 W& E
- l3 |! k- X/ V0 M" v$ E' `男子侠客弓服,男子侠客弓服,24,新手村擂台战利
' F' _2 r. y" f' ~3 A- C. c1 S6 }% _7 q  z0 s' c  A( A
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10: h# H* `' o1 @% F' W  E
, {& l4 z# k2 n. a& i
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,5 n6 w) L: A$ ^' m
女子侠客弓服,女子侠客弓服,24,新手村擂台战利' n" [4 T0 ]7 `' v/ X' T2 c
* h! T# ?) `& V; V7 g
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
3 J8 Q" L  h2 s9 Z: V! P
" Y" Z# B3 [# v# ]8 ]0 }1 W0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,3 ?' B3 p/ w$ I8 m' X6 h
新手训练拳套,新手训练拳套,6,新手村擂台战利
  n  O: w4 N( n( V* v- \9 N: b/ j* M. ^' q6 J1 B7 ]
品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
/ j( p- E  m1 m2 k4 N# n, a7 q5 b/ S8 L% H4 N* H* Y* i1 h
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
5 h" @9 K7 N  }  N6 R  O5 @新手训练神剑,新手训练神剑,6,新手村擂台战利( V: S# z, O6 K( {: u. ?5 a

% Y8 {3 R1 \% `1 U# P9 j品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
1 I' J% D* h9 j% s4 ?/ o0 ~" m
+ D* f) ^! r$ N/ \, q,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
6 g, k2 ~% Z4 R  ~; `2 \# _. y新手训练弯刀,新手训练弯刀,6,新手村擂台战利) _! I9 k$ }0 ?9 G2 `" f4 j& i3 D
* u: q* i) t  }( W7 L- y/ S
品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,
. n4 K; J1 ~% C9 u+ i7 ~( N- Q. y) d( C4 ]% L6 A  A+ }
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,9 C5 d6 @  |& ~/ ~% N- P, g
新手训练长矛,新手训练长矛,6,新手村擂台战利
) T, X; r, ^* w5 V* C5 c1 a- K' h$ d/ q. b8 m! M; r
品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,
: d% Z+ e" n5 O7 p  b- W
: L% S# W+ t8 o,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,1 M+ W) y% K2 T$ T. U( e
新手训练大斧,新手训练大斧,6,新手村擂台战利, C4 m( v) W5 N4 L

4 h  `3 s  z$ }$ ^/ V/ _品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,
/ `/ V2 G. U3 v* |7 P  o) ?- N0 L3 r0 z; b9 F0 w
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,& l/ M7 q4 t. h! |

: ?( }2 e1 P% B; I6 h******************************************& w3 T  Q" J, c) H# s+ z# v
( a$ [$ }6 y- q; h1 v  `% f
8 ~1 C- A# j, P. N4 V" v  P& D





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