三千论坛

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

作者: 异仟年    时间: 2022-9-5 20:23
标题: 新手村擂台脚本
新手村擂台脚本6 \. g0 K2 s4 I% n( t* @' K

- `6 `( ?# l8 c  A+ ^: U3 n$ m3 [7 k; d$ m2 ?
释放到同名文件夹下覆盖原有文件。
3 b6 I# K& l  D7 h! O# i1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。
' _" [) c5 U" a: Y2.Item 里面是任务发放奖品的物品资料,把我发的加进去。5 J! M$ @2 X- d9 ]% J. d
(由11月23号发布的最新服务端修改)
' q7 u7 O, v; t! D-----------------------------------------& [7 t0 x- r% ]( \# h% `6 @
内容介绍:. {' `- x$ }9 h% [
新手村比武获得奖励:
  M  \8 e: n6 E/ a/ a% ^同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0$ m* A8 t2 j  P: z/ z
( }; P* ~9 q' y

4 J3 E0 q9 R, `& ]' w) V+ ^' ^2 u最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较
" {' H; K. e& j, }
3 m- m' V' L" w) s! ?喜欢黑龙,所以是黑龙的加强版!); |  R* C& p2 O7 S, O% E
4 Y1 d! t& E, m$ c1 M
[replyview]
7 i! T+ A% ~( S! p& N+ j) t* f4 n. N% y4 W2 }# r( _& E( J: v* H) b
-------------------------------------
3 p! ~# E. C- `2 I" l
3 e8 K  H4 o9 W& a/ ounit 一级梅花夫人;
1 S# U$ s6 Y3 r0 p2 [3 `6 Z3 o7 P" n' |: {# i9 d4 ]
interface" |: @2 R& `2 M: J! N/ z2 Y

2 _; f8 y3 ]2 }8 A  u& x9 v, r2 ]function  GetToken (aStr, aToken, aSep : String) : String;2 Q. L( i9 H. a0 z: n. ?
function  CompareStr (aStr1, aStr2 : String) : Boolean;
0 m- m! c0 n4 V1 \. I4 Z3 Mfunction  callfunc (aText: string): string;
  s* n+ i9 Q% w. V6 kprocedure print (aText: string);
7 B6 n+ E( X  sfunction  Random (aScope: integer): integer;
( F: F5 M& i7 H5 {; X- O9 Rfunction  Length (aText: string): integer;
: _1 {3 a1 {. {9 `. a* M2 V( oprocedure Inc (aInt: integer);
) k5 ^2 V9 b# o' _& e( p7 Qprocedure Dec (aInt: integer);
  [9 s' Q# _' G# Tfunction  StrToInt (astr: string): integer;: J- w- t5 F. X
function  IntToStr (aInt: integer): string;# v% g1 c  r9 P+ k7 s: i
procedure exit;
  A& s8 b1 @4 t  a3 @4 T+ Y, x" ?& G: l, w& y' ^5 R" z* o# n7 x
procedure OnCreate (aStr : String);( z; F! l% K* ?
procedure OnDie (aStr : String);
6 L$ J  o3 ]( v0 q: q2 s/ V) Gprocedure OnChangeState (aStr : String);7 V; L" K% ]5 }! e( n5 `) O% U3 g
procedure OnGetResult (aStr : String);9 G/ C8 ]# B8 Q: T1 Q

. _! x4 }; Q# @4 fimplementation4 ]+ a1 Z$ l' }% r  c
5 a: ^+ {( R. R; _  E1 }) S& j
procedure OnGetResult (aStr : String);
+ `; J7 ^2 S. f  Jvar
! P/ t- a9 y) s) Y  y; y! _! F   Str, Name : String;: X5 v! n" U# U7 r3 o! q0 |1 {' ?0 V
   iCount : Integer;
6 c1 u' D0 D* A$ y. M  z4 b* }% Pbegin
: E7 h3 B  b. Y$ E   if aStr = 'start' then begin  M# ^9 ^0 C- V/ L+ J9 m( n# Y
      Str := callfunc ('getsenderserverid');; S/ h2 R# d. g6 f
      if Str <> '51' then exit;8 Q1 ?# o# C" z4 N7 M  u; D+ W

1 G+ Q9 r$ b: I% l+ t+ Q' j      Str := callfunc ('getsenderrace');1 U8 ?5 r8 y) }' a. h5 i  H8 k
      if Str <> '1' then exit;- z% k3 G6 p  [2 W
* U# t7 r/ k2 w6 B  E$ v: ^1 ]6 \
      Str := callfunc ('checksenderpowerwearitem');
+ y( `6 G- G5 ~: e) j+ C      iCount := StrToInt (Str);" H+ l( ^* Y5 N) @- d
      if iCount > 0 then begin
9 m/ n! `  ^0 O5 _' [: e8 L6 f         print ('say 先将带技能值装备脱掉!');, L) g* v* [7 U$ ?% {# J- f* O
         Name := callfunc ('getsendername');
9 T7 B3 v. S/ j( Q7 O         Str := 'movespace ' + Name;  Q9 U, ]( `" X# {* x  B5 V5 P( E* y
         Str := Str + ' user 49 106 55 100';! S4 V- a6 l, }9 j- ]6 v/ S: a, `# Y
         print (Str);& r( Z( |" z4 ]* d' S
         exit;2 U1 r, {% P' b" B% G: d# l
      end;
9 a, \7 o# F2 n; F3 {. `0 ^4 _      Str := callfunc ('checksendercurusemagic 0');
" [) q" S* u/ S% N+ W      if Str = 'true' then begin
5 n3 b/ ?) h1 |0 \         print ('say 选错武功啦!');
7 G' n7 [9 U, Q# c         Name := callfunc ('getsendername');
+ c) w5 b3 k- U; _) ]+ k' T         Str := 'movespace ' + Name;; U$ E! q, H; h1 A) p2 F9 ?& M$ t
         Str := Str + ' user 49 106 55 100';" G* u& i! _- \- E/ h+ B
         print (Str);3 @, s& |9 M6 ?
         exit;3 z4 n( Y4 G' Q' R
      end;
$ f- U- ^- A. i8 l2 p8 D8 ?" w, j9 y      Str := callfunc ('checksendercurusemagic 1');6 Q, q7 H5 @: r8 `/ B$ M
      if Str = 'true' then begin
" q- |8 @+ A  A5 j, H         print ('say 选错武功啦!');; A7 H9 Z+ X7 V1 B2 X: s
         Name := callfunc ('getsendername');
8 A, Q& f* Y% ]5 @3 J- ?+ T         Str := 'movespace ' + Name;1 S9 Z$ `' J. V
         Str := Str + ' user 49 106 55 100';
( o; u! l8 B# i2 c         print (Str);
: s% F7 F6 ]1 ]6 k" W1 u         exit;
* u. s2 a& n. U9 u$ r8 o" s( M      end;' p$ y- I! l, f7 f) w  l
# }3 i- x' k0 O% m: @" S/ L" ~
      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');/ T1 b: L; W2 B, b; V- \

: v' N  S' G6 {, f$ Q& u4 I      print ('commandicebyname 一级梅花夫人 npc 1000');7 U: m, n8 d  g- a; l
      print ('setallowhitbytick true 1000');
3 p; T5 V% y8 r( n" b
% y- S. k5 t" n; `: t8 _      Name := callfunc ('getsendername');
. {# Y3 l% \* x0 ]) E4 Y; I      Str := 'commandicebyname ' + Name;$ t5 r) ^; S" a- ^0 L. W8 y
      Str := Str + ' user 1000';
' t( L+ R( D7 {  l/ c4 \0 \3 j      print (Str);- k# u5 J* I, l$ V3 v, y+ F
" r) ]3 f* A' L. u6 b1 j& @* h* x
      print ('senderrefill');
. k4 k# O3 H2 |
% W8 m' F3 R, F& |6 p) `( t  ^, w% B      print ('say 别害怕 50');
0 Q$ X6 [  p3 |3 |      print ('say 我会收下留情的... 400');
8 e% L+ N. K/ g- m% V      exit;% u: l) C# S1 C% ]2 t3 U
   end;; O/ p! y5 P: b) w. a, Q  \
end;
3 y6 e1 @! o# t! M: F: G+ Y$ E* L% x4 U* Z  c
procedure OnCreate (aStr : String);; g$ k- y4 C5 u  g$ |; _5 f
var) y* d! j8 u% Y
   Str : String;
  w6 P; J/ l+ r: V6 Ubegin
4 r3 B) f5 S. n: u; K) r$ [   Str := callfunc ('getsenderrace');
( P1 x. H4 g; K7 E! A% n5 u4 T   if Str <> '1' then begin
* S& m7 B0 v7 V# W- w$ V      exit;7 W# i' D/ I  |/ ~8 F* u7 ~( j
   end;) ^' d0 P) t% _: |

' P+ l6 n* f8 O: S   Str := 'showwindow .\help\一级梅花夫人.txt 1';
. V# _4 W  ^: Y9 a   print (Str);( V* V1 J% R9 J4 _6 @( ~& p
   exit;
0 {. f' A' ]: Y* n: [6 C; u  Wend;) W! d7 D! f1 z) r2 E9 i; c4 J
4 s9 U9 |8 G- q3 j$ U
procedure OnDie (aStr : String);; W0 {  A; Q, M! f
var
3 x5 c9 E& H- c# t  C   Str, Name : String;
7 r1 J' L7 j0 }2 S; m6 D0 Z   FirstQuest : Integer;   0 ~* v1 ~, e4 I! z% O0 K, m: W
begin
, W" H; f3 [" X   Str := callfunc ('getsenderrace');
) S# A& a) v5 m0 g   if Str <> '1' then exit;
/ f6 P% O3 d( b& `& D0 N3 {9 T3 k0 J2 g
   Str := callfunc ('getsenderfirstquest');3 z( k* R) A1 t7 ~3 i
   FirstQuest := StrToInt (Str);3 F' B7 [- q; A/ G0 d% q5 U
0 i' b- g* M- ~" F
   if FirstQuest < 3 then begin
1 q( }' {) a3 ~) j      Str := callfunc ('checkenoughspace');
# t* x0 @& d- j, N. Q7 Y6 F& C9 z      if Str = 'false' then begin
; i+ J4 J$ G$ v8 j         print ('say 物品栏已满...');
' }; X( P, G. O# F% g         exit;
8 S; n# A4 }. a& D$ o0 _/ i      end;7 F8 ?9 i6 m7 l- }7 p- W
0 w5 o/ d3 q9 v1 \7 u- ]
      print ('changesenderfirstquest 3');0 n. m0 L2 Q7 |& |5 `, J
      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');
4 z1 _( ?- w, J: x9 E   end;/ }3 v# q% i1 @

) M$ O8 \5 _# h9 @& ~; p   print ('say 我可只用了3层功力哟 100');
7 a' k5 E; T* [. H! p* `7 T
) \4 {% P) I$ V+ t8 G8 ?7 k   print ('mapregen 52');
$ Y3 v- K1 _- N+ i# l- I% C: T& q* t+ |1 R1 k
   Name := callfunc ('getsendername');   
' `! v; k' ~1 d+ Q! M! X! b; o   Str := 'movespace ' + Name;
7 ]5 `# q5 _$ v( z# X   Str := Str + ' user 52 17 18 500';% r, p: ]- s: h! R& U- B5 l
   print (Str);
3 |! u4 `3 C, Z1 Z$ L: t   exit;
' W) T5 ?% T* c; w6 b+ `end;
3 O& C  [6 ^: t. A: I* c& [$ V2 D
9 t8 S9 z8 c) Aprocedure OnChangeState (aStr : String);
: V" C, [' b3 c* d6 g" Jvar2 a+ h& M. I# p! G5 ?# F
   Str, Name : String;2 V: L0 g" K% M- `, D3 Z, A: M
begin
# _2 t7 F, L" y, i6 t8 X0 }   if aStr <> 'die' then exit;
4 m9 S2 m. S; E/ q* }. P, L+ v1 T4 \5 ?9 y* A! d
   Str := callfunc ('getsenderrace');
+ ?1 A) L& T5 O6 N0 Z' N   if Str <> '1' then exit;
, l: f) I! S, U# H! w+ J0 l
0 r, I' H9 b* ]( c# }2 @% `3 `   print ('say 别无他法 50');$ i) Q3 c$ c6 S7 B  E1 T
   print ('say 是不是修炼方法不妥呀? 400');. E# ]0 t% U7 C) w% V# t7 ^

5 Y5 w5 ~2 ?2 s6 c/ n3 ^   Name := callfunc ('getsendername');
! T0 ]: y9 n) I2 I3 V   Str := 'movespace ' + Name;/ Y6 K6 K0 I+ J
   Str := Str + ' user 49 106 55 600';
4 X7 B! b+ y6 w$ T0 y7 P( A   print (Str);7 @5 ^% U+ r! A. J' t: F$ J
end;$ T) n  v: P& k& I  R& ^* E! B

+ y: L1 t. U5 R8 @3 Gend.& Z9 G1 d3 x0 v1 P% L+ b* k8 _
-------------------------------------------
5 G# k8 S% Q4 c5 G6 punit 一级捕盗大将;6 T9 _- R# k7 S% V: K
+ U& w1 x0 F6 O9 q
interface
3 t9 C5 I8 z' y' H* W: o& y6 l' K4 K2 }6 h2 r* e
function  GetToken (aStr, aToken, aSep : String) : String;* q/ u- N  b& t4 g- z2 ?
function  CompareStr (aStr1, aStr2 : String) : Boolean;
; A. O6 z2 w! V* O7 J5 L0 Ufunction  callfunc (aText: string): string;9 u3 X: C( V/ |8 C5 r
procedure print (aText: string);% m& M/ e  ]2 U# ^2 ~4 J
function  Random (aScope: integer): integer;
4 b  l) V& P& s$ P+ ~2 u6 Ofunction  Length (aText: string): integer;1 |+ e& n5 [3 w2 i! b, x# {
procedure Inc (aInt: integer);1 I, w* g* _7 v+ Y% g9 |6 h; ?
procedure Dec (aInt: integer);
2 K# b1 S) c; g6 D& Jfunction  StrToInt (astr: string): integer;) z$ m1 h/ X# i+ S; k
function  IntToStr (aInt: integer): string;* e/ y5 {2 K- R$ b% W2 C
procedure exit;9 V1 P$ f* b" d, @

& n/ u- ~! b) }5 r- S  vprocedure OnCreate (aStr : String);' m1 w  y3 ]; W
procedure OnDie (aStr : String);2 |/ d- m( f2 A3 {2 R2 d+ P
procedure OnChangeState (aStr : String);" s" @  B3 l- s" m
procedure OnGetResult (aStr : String);$ y" K% X0 g4 d0 o' W, c' `
5 `$ g; ^$ [; _, e2 u& d% {
implementation
7 ]8 v" y$ E" ]- L
+ w8 C  _; b2 ~% H4 ~procedure OnGetResult (aStr : String);2 D( N( l- m! p
var6 |4 t) y  Z* h/ o/ y) q
   Str, Name : String;
4 u, S: Y' V) R  T5 A' ?1 F  Q   iCount : Integer;   
& b4 k# z: f, V+ pbegin
) |( J5 Q; W) I   if aStr = 'start' then begin+ k, r2 b0 h% l/ n/ q- {* [9 }
      Str := callfunc ('getsenderserverid');
  s# m6 l0 C% N3 n  N% V7 M, ]: `      if Str <> '50' then exit;
% J5 L, M7 o) t4 O$ [, R
' V1 }. E3 W7 R1 }. F      Str := callfunc ('getsenderrace');/ C3 i. a/ X5 J* {
      if Str <> '1' then exit;' o" f9 z6 y+ [7 t8 t

' q& \3 O! s5 O' X- x0 @8 V. ?: ~      Str := callfunc ('checksenderpowerwearitem');
$ F- R8 M. ]+ }      iCount := StrToInt (Str);+ e; m) t2 t7 Y8 O+ |5 p3 ?% I
      if iCount > 0 then begin
0 ?/ r+ z7 q# [         print ('say 请先脱掉带技能值的装备!');
, k6 r1 @  @9 w, }9 o' h         Name := callfunc ('getsendername');
* l$ |% }! m& ?% g' T         Str := 'movespace ' + Name;
- ~& e( z) m0 b/ _         Str := Str + ' user 49 106 55 100';
$ v4 A5 |% d$ y         print (Str);
' _4 B2 I3 F, Z         exit;* Q( w# O/ a8 `
      end;0 G" O3 z3 r9 _. R
      Str := callfunc ('checksendercurusemagic 0');  s! b( _0 e- f6 M1 E( ~
      if Str = 'true' then begin
5 A: I$ P8 G3 ?' b         print ('say 选错武功了!');
# B5 ^+ P( l. j$ q5 `4 E         Name := callfunc ('getsendername');; i! z6 B% b$ @! ~+ ^7 `& V
         Str := 'movespace ' + Name;9 p0 H7 R5 |! z, k( ~. f
         Str := Str + ' user 49 106 55 100';
) d( @$ C' s. q! d, r  C* [         print (Str);
% y" T) b8 ]6 c3 U& \         exit;" m9 Q, }% Z- V( H- ?
      end;5 v/ u% o" i8 e+ R! m
      Str := callfunc ('checksendercurusemagic 1');! s# ]( ]% }* {
      if Str = 'true' then begin; f% w, i# S+ y. \2 r; @, U
         print ('say 选错武功了!');
( N/ S, Q; |& f. ~         Name := callfunc ('getsendername');# ?0 A4 e2 Q+ k# j: j) J
         Str := 'movespace ' + Name;
7 g3 e8 T+ k" X( g  I+ ]4 A         Str := Str + ' user 49 106 55 100';
; n( b" j1 ^( \* D5 H1 y         print (Str);
& f8 u0 |" a) [. n  Y) z  Q0 K         exit;. Q0 }0 |# U' @5 z- P
      end;1 c* X5 \, O. k$ b, n' S& f4 M) X
1 D* G' C( Y! t! ~2 X1 |" p5 I# u
      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');1 ]5 W; x9 q; s% U0 i  P. L  m
, b+ E  U7 w! J# `. t
      print ('commandicebyname 一级捕盗大将 npc 1000');
7 _5 j" n3 N- a) t' |      print ('setallowhitbytick true 1000');
5 R; u' `3 U2 h$ A" b- z0 q& G$ p0 d: ^7 {9 G
      Name := callfunc ('getsendername');: {, X& ^# {7 x
      Str := 'commandicebyname ' + Name;
; s, S7 K# K9 J; O( x" v      Str := Str + ' user 1000';3 @/ l" k0 d/ N
      print (Str);
% k: |9 L) o; L5 D5 I  j. L  ?, s' I  D: Q" _
      print ('senderrefill');
% v- H9 w; e& f) ^/ F
$ o, A2 L' K) L4 Z      print ('say 你还太嫩! 50');( u. W  W" `/ U, P. w
      print ('say 留神啦_我可不会手下留情 400');
6 W" G- T' _8 N, i$ ?      exit;
. ~: V" I0 I! a4 Y   end;6 ^/ R" s4 B' i6 `# a  \! ]
end;
( F. }% F( [! U2 x8 `- t
) U. |; g/ q0 S& N2 C5 N6 lprocedure OnCreate (aStr : String);
+ @( Z! Z# D: Nvar
, b& I5 \$ L* g4 e   Str : String;; E  f6 t( q8 ^8 s# Y' U/ D
begin8 I6 u0 k+ W8 |
   Str := callfunc ('getsenderrace');
4 u; U. l- D4 d) g9 d$ ~   if Str <> '1' then begin" r! x5 G1 Q3 l- H& m
      exit;
: K; A0 t! g' a   end;& a6 Y; j% u1 S5 K  y+ P7 o: N2 W

, s# V/ f, A( Q6 k   print ('setallowhitbyname 一级捕盗大将 monster true');
% O5 E- A/ c# |  c- ^8 f2 c( j" H+ @
. e" g# m8 ?* F7 i! P) E8 y: Q5 v   Str := 'showwindow .\help\一级捕盗大将.txt 1';
; U9 v$ F, Q4 t6 V/ X   print (Str);
2 q$ d% {# _! y  |; y   exit;
" G' x% C( {- xend;* O4 _+ T7 u* }! z% H9 z% P
3 D; ]+ D4 _  d# H- Y
procedure OnDie (aStr : String);
9 {+ `0 @) K6 N% {* V3 l0 b4 Hvar
+ R- S7 ^9 m1 ^. |2 H$ Q   Str, Name : String;
/ {2 W" w" e7 \+ w# q1 `6 g   FirstQuest : Integer;9 s& h! X0 y) q
begin, s0 o) ~! O  o7 v% h& s
   Str := callfunc ('getsenderrace');% {2 g& s& N! I$ Q' k/ ^# M3 }) d
   if Str <> '1' then exit;
  @! W+ H" [" g5 {( d5 x0 n& Y3 R( q& S/ s. x* E9 Y0 n$ ^
   Str := callfunc ('getsenderfirstquest');: [) F+ i9 W; e* T; P0 N5 o
   FirstQuest := StrToInt (Str);
9 h. A. L3 K3 N7 y% X. }
* S' G% E2 {. E3 b/ R. M   if FirstQuest < 2 then begin2 I5 h7 q3 X, ]& `, [
      Str := callfunc ('checkenoughspace');
# a1 y- ~% N0 ?# V! x0 b% D1 q. K      if Str = 'false' then begin
2 y) A) v! e! X; k* Y1 K; O         print ('say 物品栏已满...');4 c: u- v/ e: |# Y" r& |
         exit;2 p/ f3 ^  v& E" H9 y6 u
      end;
3 T) S1 Z7 e* I0 D$ b9 U& |+ [, t9 d" J3 I; y2 M4 B
      print ('changesenderfirstquest 2');
6 D/ s! _: x9 e+ e7 N% ^      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');- j3 n/ U/ i* M# r3 R6 \
   end;
- H) ?3 B9 U( }2 s3 o& H, R
1 X% {( z* t" p   print ('say 不可能_我怎么可能输呢.. 100');
5 [, ?9 c6 D; W* O! \; I  P0 |  c$ m: w
   print ('mapregen 51');
  s# j! A6 |) f& I& C; |1 j% i8 o2 K5 M3 s, T
   Name := callfunc ('getsendername');- n$ Y- l3 R4 F6 Q& D$ a" C5 r7 ]& W
   Str := 'movespace ' + Name;
! W1 r. P" [4 F; p# u8 e, J& }   Str := Str + ' user 51 17 18 500';; v% E$ L  E: A" R; e- c, G
   print (Str);4 w  Y' R# A) w$ Y; _% S0 s( M
end;
& M5 w- ?2 V2 ^$ p9 l' G; [8 ^! `6 m9 x) H: l% {; h
procedure OnChangeState (aStr : String);7 C- s0 `! q5 H3 ~; _0 {9 l4 q/ i
var
* t3 j! o% _+ t2 G* p% t   Str, Name : String;# u. D( B- [" K
begin+ _* R% q+ N4 T0 z/ D8 U" L4 g
   if aStr <> 'die' then exit;
! W& Q6 g# T, n, x& D- X- v
3 n6 ^2 N  ?' X  B   Str := callfunc ('getsenderrace');
- J! p; m4 b$ N) X; A   if Str <> '1' then exit;
% d) j# T& f) I4 L; R/ b1 I4 M- Z) e% ^
   print ('say 回去再修炼个10年吧50');
3 ]0 o  M* F* ~   print ('say 到那时我在用双手跟你打 400');7 A' g% C4 s4 u/ O9 z
" p, N' C# C/ e) n: B7 C7 A/ N
   Name := callfunc ('getsendername');/ w: x: ~0 x$ Y& Z  t( s# Z
   Str := 'movespace ' + Name;: H7 I* Z. K# k6 P
   Str := Str + ' user 49 106 55 600';0 G. b6 w8 w: L) i7 i; O$ W
   print (Str);5 [" |2 o4 I/ s& ^

2 h9 _0 ~  b! u" D7 f; r' ]   print ('boMapEnter 50 true');   7 |5 P# [  l' S6 x, R
end;/ B  ]( i+ C1 _# x. O# j

/ A2 A1 D$ p# ?( X6 K! Q; R" {3 iend.
3 G: Y, ^& H- m$ {" M
. M. J* E6 f! k: L5 I6 e9 t. A---------------------------------------0 N1 a* Y# {, ?/ U
' C/ P5 S& n8 I3 U5 z) q
unit 一级牛俊;
3 l; G7 I8 @1 M; u  F) V% `* Q4 `; E* y
interface2 l" c5 U! j( D  e
  }# e& E/ a% O; H
function  GetToken (aStr, aToken, aSep : String) : String;
1 p$ ?+ b2 ?& f3 Dfunction  CompareStr (aStr1, aStr2 : String) : Boolean;
& C- D; l( x5 I- y( @function  callfunc (aText: string): string;
" L( {  C' F# _; \* Cprocedure print (aText: string);8 T  n# T' v% n9 w( |. E! U8 O
function  Random (aScope: integer): integer;
7 R; ~9 ]) S/ ^4 H4 S6 D; Xfunction  Length (aText: string): integer;
- E5 ?6 \, X# J* f8 V( Nprocedure Inc (aInt: integer);
4 J& t: P% C  ]4 eprocedure Dec (aInt: integer);% N. g1 h" p6 t8 Q" u& S
function  StrToInt (astr: string): integer;
4 W; {+ |9 L4 w( Xfunction  IntToStr (aInt: integer): string;
5 o( x1 k: K) ]3 }1 E; ?' n5 l* Eprocedure exit;
# g0 Q" [. A) V( P  @( m3 _6 W: j' n- J; Q% Y
procedure OnCreate (aStr : String);
- C, M" R' E" T. I) E4 z' Wprocedure OnDie (aStr : String);
- T( U0 z% V" R6 r# Lprocedure OnChangeState (aStr : String);
8 J$ m$ E( v6 O' C$ aprocedure OnGetResult (aStr : String);
) z1 C- X. [1 t& J( J2 l* v9 ]* C
/ [2 N  o9 L7 ~* z% W  p7 Jimplementation
) D/ D8 O& J, s6 [
! Y1 q" w9 t! Nprocedure OnGetResult (aStr : String);  [% D% i6 M2 o5 K, W! T4 P
var
! o+ n$ Q1 Z4 X$ t( K% Z   Str, Name : String;' @/ o4 G9 I/ i; [3 i0 G/ E! i
   iCount : Integer;+ Q, p: |+ O& y) Q
begin
+ a/ s: w& n* y   if aStr = 'start' then begin6 v% C9 |0 c8 _8 C4 y7 V% m  t8 X
      Str := callfunc ('getsenderserverid');& Y. |' E- i- e4 g" L- F6 ]0 v
      if Str <> '52' then exit;
' `& T5 M3 i+ m. z$ M
4 q- r+ r5 ^1 v4 R% ?      Str := callfunc ('getsenderrace');
- A5 v6 i  a8 J# e, _. V8 g) i      if Str <> '1' then exit;
0 V4 u  x- p' T
; _: g7 n) R3 h; V# y# W) ^      Str := callfunc ('checksenderpowerwearitem');' J% t2 r+ I" W, G8 ~
      iCount := StrToInt (Str);$ n2 x8 }, N) e$ g, c1 H/ b
      if iCount > 0 then begin/ q+ k* v# C" @6 p
         print ('say 请先脱掉带技能值的装备!');
& W" O3 A- A. J% N# V         Name := callfunc ('getsendername');, r) C0 d! k1 M
         Str := 'movespace ' + Name;
" i4 ], R8 R, m2 e8 i& |9 r         Str := Str + ' user 49 106 55 100';1 ^; e4 D8 L+ A6 M; C
         print (Str);* D) C: b  C/ o7 Y+ X% q. H
         exit;
, b) z& z5 [$ V+ y4 W3 p: S% d      end;; K+ v3 L# x+ {; U$ F% T& S' b6 _
      Str := callfunc ('checksendercurusemagic 0');
7 Z; f. U* d2 F      if Str = 'true' then begin
% t5 [5 h  F# h4 x- P         print ('say 选错武功了!');
# \' d5 c% n7 ?. ?0 V2 w' r& o" m         Name := callfunc ('getsendername');! [# [: S( O! K5 I( Z
         Str := 'movespace ' + Name;
0 ?& X9 C$ l1 W0 O2 V         Str := Str + ' user 49 106 55 100';  |- I$ w6 _* a
         print (Str);* {, J% [, G+ ^6 D7 H+ W8 ?
         exit;; k& g) q1 R) e+ H7 {
      end;
. f6 `* R/ v- t" |0 A! _      Str := callfunc ('checksendercurusemagic 1');
4 \. k7 P$ P* \" _" \- x: t, D      if Str = 'true' then begin
, C) M& L& w4 i$ R! ~         print ('say 选错武功了!');
6 Z+ c' w% f% o2 t, [         Name := callfunc ('getsendername');
, U( e" H* ~' f" G0 P5 `/ S  f         Str := 'movespace ' + Name;
' n0 X" o5 ?( m4 E+ E0 ]) J+ Z         Str := Str + ' user 49 106 55 100';
! I7 u3 U/ Z  {) D6 F         print (Str);1 V1 h% w/ N$ D8 W+ v' N8 g( r/ X
         exit;, r8 _: z! \- k5 O
      end;0 _7 g' Q) g, }

# H: ], D! T" d      print ('directmovespace 一级牛俊 npc 52 20 18 0');/ g- X! U& |8 N# C
$ I' Z; ?7 X1 M! |) O& J
      print ('commandicebyname 一级牛俊 npc 500');
# F+ _4 c1 O! i5 F      print ('setallowhitbytick true 500');      
  P% b  x" K# V3 G/ U2 c. s7 V0 A" r! J' z; |4 A
      Name := callfunc ('getsendername');7 P  T- a6 G3 f6 r# V1 `$ V
      Str := 'commandicebyname ' + Name;# C" ~& D4 q9 o/ |& Y0 E7 G' N+ R3 U: x
      Str := Str + ' user 500';" l5 E/ F& t& R+ I' H
      print (Str);
1 l, b6 ~. U5 ?
4 h& V% M# f( Q4 c/ A: u: X  ~      print ('senderrefill');
2 R+ o+ Z+ _  j- m
" X7 i0 E+ ~- e& P$ e! v% J      print ('say 10如果10秒内不能将你搞定 50');
7 Q$ b- R8 g* C# }# q( W5 M' O      print ('say 就算我输! 400');
9 d/ Q/ E8 j: w0 E      exit;
' @; |: Y/ n/ a7 d6 e% z% D% b* ?   end;6 a- _; M% R# S0 _) y0 o8 G
end;* O1 E4 M5 g9 D: Y) n; e  L1 Q

& x+ Y8 ^( t  b0 ]5 cprocedure OnCreate (aStr : String);
1 c# W6 h, g0 _+ }/ e, Hvar$ ]3 d* u: O3 Q/ p& ]2 W
   Str : String;) s  o2 f0 B# P$ ?2 \0 U
begin8 K8 a5 _$ h! U- u$ A: g
   Str := callfunc ('getsenderrace');
8 S$ [& C; d) i; u1 `3 W9 M   if Str <> '1' then begin
- m2 O2 m( @) Y" t. e. y5 j      exit;: m* x8 p+ v0 I, q, N  y- J: A
   end;0 E7 `7 [* c) X
8 V6 H5 R; W. p" ~# A  q
   Str := 'showwindow .\help\一级牛俊.txt 1';7 p* j( u2 m2 f0 z
   print (Str);
# |8 O- X6 U$ I   exit;1 D4 ]! `, H; l# W' m% }) Q) v5 U
end;
( D6 d1 P1 A' {9 K9 S$ M; A3 Z
& a# ^1 T8 `, P% }procedure OnDie (aStr : String);
, {3 X$ z  e5 y  C& @5 Uvar
" R( a, w) @6 I7 D3 a   Str, Name : String;
' @: Y5 h( T& ~2 O   FirstQuest : Integer;   " M- j0 r6 }( ?
begin
% p; m0 O. ]1 A2 G& Q   Str := callfunc ('getsenderrace');
/ F5 I: S5 ~+ r& G1 P   if Str <> '1' then exit;
' }; z2 u3 e$ ~  R! `" P+ \2 N! `) Z  B
   Str := callfunc ('getsenderfirstquest');
; d1 k  a: i  L1 L6 S+ O   FirstQuest := StrToInt (Str);$ b- ^! ^% d6 e
9 W1 ]$ B+ k3 @  q9 G. Z3 t- I
   if FirstQuest < 4 then begin4 T9 q# T6 Y, y3 Q. N% r$ e
      Str := callfunc ('checkenoughspace');
, ?- j9 u  p2 O9 C      if Str = 'false' then begin* h! H8 L2 r8 ]* s' x  w, d
         print ('say 物品栏已满...');
  R+ {5 x2 q! y2 @         exit;
' O# `+ c1 `/ t" m      end;/ C- p1 I6 I, Q8 {
$ i5 |* H  V1 [+ q- e1 i+ w. w- a: h3 m
      print ('changesenderfirstquest 4');* ^: F) F8 J& E/ [5 H# m
      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');
0 `4 l& E" u7 K& d2 n& h   end;; s2 o3 T0 @) v% D% F

4 H% [! E! \9 l. [   print ('say 什么_不敢相信!! 100');$ w( `5 J4 P( L
+ {/ T# \/ S) `* N% x2 W
   print ('mapregen 53');
& p) T- E$ k/ p) m, @  F) z5 F
9 H$ G: _8 E9 m) P$ n' Z' F   Name := callfunc ('getsendername');
0 R, Q) c% a. j2 ?2 J; p7 b( E9 N   Str := 'movespace ' + Name;
) C% S  f3 O, X( X   Str := Str + ' user 53 17 18 500';
5 R: X- V& {* k* M   print (Str);
6 \  k8 D  }- P$ |1 y' A; v3 c9 n' Uend;
+ J; X0 L) D  X! s) d; y
8 n% d' e" U% s3 oprocedure OnChangeState (aStr : String);$ I3 w* T4 a$ N1 C/ n0 k" K
var: `% A, i! y( p9 P5 m( O
   Str, Name : String;( u9 `* ]: b# p8 R
begin
' h; z) v6 z8 l/ F6 S/ v6 t' Y' N   if aStr <> 'die' then exit;- L' v7 j. F- u( a8 s# @; x) n) x

) P) p, U- U1 z   Str := callfunc ('getsenderrace');) m  P, ~; [& v0 i# N: x7 y4 S+ H
   if Str <> '1' then exit;' Y4 g" p4 z; F7 E( M

3 j( c; \' ]* c' d: C* E& I   print ('say 领教了吧! 50');
$ P% U& `1 T1 n* Y   print ('say 差远了... 400');
( z2 p1 B" m6 E/ j# [
  O+ X: I& Y0 `   Name := callfunc ('getsendername');0 M* h. l* ?. ?6 j+ x6 Y
   Str := 'movespace ' + Name;7 V$ ~2 d( L0 S2 s& t
   Str := Str + ' user 49 106 55 600';
/ {- `# J$ ~5 I% W/ y5 d/ B" u: U   print (Str);
) Y0 b3 T9 Q$ gend;
- m2 z& g) a" L- V# w% E8 A
: Q4 C2 ]8 i/ ~3 S$ Gend.& J' c& X' w; y9 U, \) |
----------------------------------------
) \5 W( d. K4 d, O, c5 C3 u) j) vunit 一级雨中客;
; Q, |: `4 ]) c( Z6 b$ g" K  e/ i( \0 g$ a, s
interface& A' o4 N9 W% d! C0 k
/ }' T1 h7 }& N4 C/ k) t% g8 h
function  GetToken (aStr, aToken, aSep : String) : String;, l, M) q) O9 s3 C: S1 C5 n
function  CompareStr (aStr1, aStr2 : String) : Boolean;
$ C+ w5 h/ ^4 p$ e+ ^function  callfunc (aText: string): string;. L7 S+ W# p) y7 S$ m4 I
procedure print (aText: string);
$ D' D6 x% ]$ V& o4 T! lfunction  Random (aScope: integer): integer;
; y9 v% S4 E1 l% wfunction  Length (aText: string): integer;
; y& g5 _/ H1 ^! lprocedure Inc (aInt: integer);/ J& [* T5 m# o* O$ J$ g" d2 }: [5 |6 K
procedure Dec (aInt: integer);+ I4 j+ k' X7 r5 N. v0 U1 @" A; v
function  StrToInt (astr: string): integer;: W- J: ^: F5 k$ \' {+ L) u
function  IntToStr (aInt: integer): string;/ ^# ^: I) l7 p7 G7 f# {
procedure exit;
. v$ |: p9 v1 D' I- Q' a# e
; E0 W' Y! Y; f% h* kprocedure OnCreate (aStr : String);; l8 M  B1 \: t8 ]% V
procedure OnDie (aStr : String);3 L8 f7 G# K$ k( L
procedure OnChangeState (aStr : String);7 m4 b. s# S/ T( Q( c- K2 e
procedure OnGetResult (aStr : String);
6 k1 n% x% {6 }/ z: B1 A) b3 Y
$ T  I8 i/ G' r# Y4 Z4 v- Oimplementation
# R# n( n1 O) k% F1 M$ B3 C9 o3 p1 D9 U+ `
procedure OnGetResult (aStr : String);
( i/ i; B7 q# H4 b4 Ovar
6 z  u( s* ]  }$ O, D# [" a9 P   Str, Name : String;5 {' O$ [) H  Q" F- _: i
   iCount : Integer;
/ j% U* O4 d3 J( c5 r3 o1 Bbegin  S4 r/ f* H" X6 S
   if aStr = 'start' then begin2 D* s6 m5 N$ b. L6 K. L
      Str := callfunc ('getsenderserverid');: G; i$ `1 k* W5 g
      if Str <> '53' then exit;) ]& V, _; L' W* D9 n) v( w5 F% k

3 D8 u, g" @' v( x3 {: {      Str := callfunc ('getsenderrace');
% w& K" C9 b% Q4 o' p4 c& v+ T      if Str <> '1' then exit;, `( _: K* V$ H/ o9 l
7 |* [: u' J$ t0 H
      Str := callfunc ('checksenderpowerwearitem');
" z9 |* H8 [* y0 P' |6 A2 R      iCount := StrToInt (Str);  @3 `$ P; A% S* M& N3 ?6 r! l, b
      if iCount > 0 then begin
5 l5 e- W$ v; o1 @* h         print ('say 请先脱掉带技能值的装备!');
1 o0 [2 L1 w2 l; P" k         Name := callfunc ('getsendername');
9 _; A  f* b! D: B! v& M! W. _         Str := 'movespace ' + Name;" U4 h7 Y% x, I8 ?1 z( v% X
         Str := Str + ' user 49 106 55 100';
/ t/ q5 L. K1 P4 i& p" Y* _         print (Str);$ Z0 }5 }0 i% Y2 S9 E! n
         exit;6 [9 O- s5 J7 g* V  ]
      end;
# s* n- A! j$ T7 U( |' n      Str := callfunc ('checksendercurusemagic 0');
& Q  q: l9 X7 U$ x      if Str = 'true' then begin
2 }  o5 Y5 x" ]& T0 M$ C         print ('say 选错武功了!');
8 M5 C1 l( w( E( ?7 r         Name := callfunc ('getsendername');; C+ n  v, a9 W' r7 Y: P5 c
         Str := 'movespace ' + Name;
3 y' n( g) \( p/ w, a, V/ |         Str := Str + ' user 49 106 55 100';- y" F+ n$ m4 d0 f: f. Q
         print (Str);
& H' l* ]9 A$ ?) ]4 V: u         exit;
- v7 j! t: x9 ~! G      end;7 _% Q$ ?" R. d0 I' b
      Str := callfunc ('checksendercurusemagic 1');) ?- |! }/ m" `* V) t
      if Str = 'true' then begin" L' b, A( w# T  C: f1 }
         print ('say 选错武功了!');& G# E# L& n5 m, e- @  X* ~, }
         Name := callfunc ('getsendername');
3 n( ]5 l. S' i3 {( J9 g  }4 f" s         Str := 'movespace ' + Name;- K; X8 O/ H9 z( I! a* \; E
         Str := Str + ' user 49 106 55 100';; m& ^  z: t& S  y3 G; E) g
         print (Str);
) \* x/ R/ V0 R# }1 I/ Q         exit;
7 _4 M- H5 X5 D2 p5 L5 L# u      end;
. V% s3 ^; B! y- }- F, s  L3 M, U5 B1 z* b
      print ('directmovespace 一级雨中客 npc 53 20 18 0');6 t' Y% q2 _0 Z3 B) L; e
! e0 v/ u4 M3 d: V: y% p$ P6 R
      print ('commandicebyname 一级雨中客 npc 500');
) C. n; {# X( o) y) W4 s      print ('setallowhitbytick true 500');      # ]3 Y* {0 x* N; H
. T6 E, e3 W1 H1 \) ]( p5 D. e# N
      Name := callfunc ('getsendername');
! n' T0 |: a  {, Q8 R3 D      Str := 'commandicebyname ' + Name;
- b5 L0 p0 R3 C$ v! ^+ E0 q% h      Str := Str + ' user 500';9 O, d  {; b7 l9 r9 n6 b2 h, a
      print (Str);2 V3 i% k' z) Z$ T& X  k) A
& s, s2 F8 Z2 [/ L/ k5 V; j3 @
      print ('senderrefill');+ k9 p: W0 y$ M2 A( B
- X9 z; |) c# @8 j% E* g7 R
      print ('say 领教了 50');4 f; D& t% ?& c9 O" c; P
      print ('say 开始吧 400');
9 ?3 Z$ M  t' M7 U/ X      exit;; T& X, w& r8 F- u2 q  I( ?
   end;
; [9 L) y: s' Nend;, Q3 j: T5 q) W

4 V9 F# _5 ]) J, S$ Q  Eprocedure OnCreate (aStr : String);
) i% p% _9 T! ^. Qvar
) u2 x0 t* O$ l1 |  X   Str : String;+ I% Z/ }; t. Z
begin% w0 a0 S- [/ F5 }  u7 j
   Str := callfunc ('getsenderrace');/ b! c1 ^! \+ u
   if Str <> '1' then begin/ o% R3 ~4 ]* u4 o, _* j
      exit;
# n1 i: @. r% ?   end;. E! b; U5 l8 @! r9 t6 A
) X, S1 m9 R8 x/ k* l4 ^" R7 u
   Str := 'showwindow .\help\一级雨中客.txt 1';; W; O4 t( {) a8 V# X
   print (Str);0 p9 h2 M/ z, a' ~
   exit;- a8 u! I( Z" e4 |& ]
end;$ A5 R5 V; B/ ^+ B6 y1 t* v$ j: Z

$ ?1 o+ {' X0 `$ i+ Q. W/ t- G8 j5 Lprocedure OnDie (aStr : String);
+ o# _$ ^6 u9 B- X8 I' vvar
. D1 `2 Y# l  r6 @   Str, Name : String;- G1 |) M5 z+ W( Q7 K' |
   FirstQuest : Integer;
( Y1 k% n/ y# G+ M! Sbegin
* W6 O- O: t0 ?7 h   Str := callfunc ('getsenderrace');
' Q& m* g, ?; Y/ q2 Y   if Str <> '1' then exit;2 T) S* R8 s7 B1 s$ ^! d) Q' X" h
" g* w* ^& E. U" j, x! X3 K- S
   Str := callfunc ('getsenderfirstquest');
; i2 l1 c1 i9 B5 B   FirstQuest := StrToInt (Str);1 D7 C- v) X" \

! Z. c/ Z8 J) L   if FirstQuest < 5 then begin
8 S$ J  A: h. `. o1 e      Str := callfunc ('checkenoughspace');
% p& d7 w& Y5 V# B      if Str = 'false' then begin
2 @" b/ V5 K# n- p+ c         print ('say 物品栏已满...');
8 e" u4 S4 k: ~6 h/ a% J/ p! F3 Y         exit;
) v; V3 Q% s, T5 x7 B4 {( `      end;
) p2 e: D: L! o/ T* b; Y/ s* g" }9 u/ |$ o5 `9 _( E8 K5 d
      print ('changesenderfirstquest 5');
0 h' b5 y8 A; {( i3 |4 {/ x! J      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');1 m, e/ {/ m$ S' X
   end;9 o; ^' o0 r/ i* C/ F; o+ ^1 L& O7 {
! P* |+ B# W; m1 j( u
   print ('say 早料到了_佩服 100');
8 s( f0 L$ G2 _7 L# x5 b
3 W6 y; Z5 N# ]5 @) h% O9 G   print ('mapregen 54');5 ^, M5 S+ u2 C
$ |/ D) J1 e( `3 e1 R
   Name := callfunc ('getsendername');
  s( x( ]  B8 @4 x; Z7 |0 q   Str := 'movespace ' + Name;
: M7 [7 W8 X& R% o; P   Str := Str + ' user 54 17 18 500';$ M- b1 u! V( `
   print (Str);* x; J4 m, o8 G
end;
6 y$ t9 V1 O- I+ p
$ T! t; l$ R' z$ i2 Vprocedure OnChangeState (aStr : String);+ |, R) G1 z  ^  B+ \" }
var
$ X0 E8 W: x- b8 v# {; q+ n8 @   Str, Name : String;* g* V* [/ ~8 i3 q4 j  t
begin: R5 b6 k. W: N* m: _
   if aStr <> 'die' then exit;; P* K) Q9 R9 o$ I: T

; C$ W6 f- h2 R: Y, _9 @   Str := callfunc ('getsenderrace');" Y; q! \1 _" L2 W
   if Str <> '1' then exit;( A( k  `: p4 ]! X

6 D% i( B" R$ F& y# z9 }2 y" \2 j   print ('say 不错。只要能维持几秒钟');8 j3 |/ ^( ~& G
   print ('say 到那时谁都不是你的对手 400');
7 e3 S0 N) U' p' r/ z( m& {  E* ?6 X% a3 \9 S  V
   Name := callfunc ('getsendername');# ^5 {2 l; |+ S8 y
   Str := 'movespace ' + Name;! {- Q" z' H  f
   Str := Str + ' user 49 106 55 600';' Q* R3 \" ^) |( o  ]" f! V6 p# X
   print (Str);
9 _& o9 v( m" V' G& s  _end;
3 [, p9 {! D, @9 a2 R3 j* M2 b- n
end.+ X# L  H9 F$ R

# o! k1 d* T6 O& Y--------------------------------------------------------------------------------------------------------------
1 H3 P6 [# c, ]4 R$ E' |" r7 C7 A& s% V1 d1 c
unit 一级老侠客;5 r2 }0 y8 D" c! \0 h0 f  s; U
7 O/ |* e/ ^2 P% T& d
interface
' t* Q: N( ]2 F" J! V6 x: D6 B: j+ T8 ^( |+ L7 y- x& Y: P
function  GetToken (aStr, aToken, aSep : String) : String;
8 _! g: e6 i/ t  Ffunction  CompareStr (aStr1, aStr2 : String) : Boolean;
0 x( I* l  x, }1 H4 }+ k: dfunction  callfunc (aText: string): string;
# l! k3 S7 E  B4 Wprocedure print (aText: string);1 S" Z  i2 X( y9 R
function  Random (aScope: integer): integer;
5 v1 h5 |) y' Afunction  Length (aText: string): integer;
& m* V( L8 R; i9 J6 T5 gprocedure Inc (aInt: integer);8 \8 ^1 d9 h% ^
procedure Dec (aInt: integer);  H; |  E4 u7 e) s  o
function  StrToInt (astr: string): integer;4 v& I2 Z. ?$ y5 M% ~0 w4 P
function  IntToStr (aInt: integer): string;
* i( ^" O6 d0 v- E. g% j" gprocedure exit;- R" S: a: X2 ~
6 f( f. @" z7 X6 c0 l
procedure OnCreate (aStr : String);
% l. |3 q* i8 w+ \; f9 |7 g- Q) qprocedure OnDie (aStr : String);
* A/ l0 q2 j  @1 w, @$ l9 jprocedure OnChangeState (aStr : String);
! }+ o# h1 O$ b) Oprocedure OnGetResult (aStr : String);4 D$ s! @6 L5 Z- @9 \
' ?( J( a- o0 g; w( h. B2 M
implementation8 l, B' }- S+ m$ V8 N- F1 c" o

8 L+ P% H* l( Rprocedure OnGetResult (aStr : String);# |' o# p+ C& V/ ^
var
3 y5 N, C  E( Q) n& i9 R   Str, Name : String;
5 d5 l3 o/ P- J  L   iCount : Integer;   
+ K* V# W3 a8 r1 S3 kbegin
% J! t9 Z9 K0 Q: W3 d1 t   if aStr = 'start' then begin
5 G' U- W  j: {, c: {* i. r      Str := callfunc ('getsenderserverid');
  G9 A* u9 s6 z- t: l  y      if Str <> '54' then exit;
/ U/ B7 z) X8 n* u1 m
- A3 j9 M$ x: t7 N, u0 [      Str := callfunc ('getsenderrace');
( R; c; n. [0 A8 i& T: v8 b      if Str <> '1' then exit;2 T  t. Z' q, E4 J0 S, o9 A) u# i/ j
/ K; T% p  W; Y! B+ p$ a2 c0 U8 _* E
      Str := callfunc ('checksenderpowerwearitem');
% v! F8 l+ C/ x$ f      iCount := StrToInt (Str);
/ z3 |9 k4 H# ~      if iCount > 0 then begin  F# q/ w3 u( C; T. \
         print ('say 请先脱掉带技能值的装备!');
& h) m$ f/ r9 G0 [0 y         Name := callfunc ('getsendername');8 P& C+ F7 Z8 f2 I7 j) A" v
         Str := 'movespace ' + Name;5 Y4 S+ X" N3 q, x
         Str := Str + ' user 49 106 55 100';
& C: i  T, `5 {# n3 b. y/ s         print (Str);' c$ I- W  B; R+ V
         exit;: h6 @) {3 p$ U0 v' }+ B
      end;
0 H( C; r$ N# @# q5 E8 x5 D      Str := callfunc ('checksendercurusemagic 0');% z; G4 a/ R% R! G, N- w1 s
      if Str = 'true' then begin' \! s+ j$ C9 X* k, t
         print ('say 选错武功了!');
" _$ x8 U% }6 U1 {* I& _* }         Name := callfunc ('getsendername');
  a' x) f1 @; m8 {         Str := 'movespace ' + Name;
; e7 L% @' m. |3 t# |7 ~2 C         Str := Str + ' user 49 106 55 100';$ h/ B9 n! {9 o9 F, h, x' h
         print (Str);
) |* \& _1 C! {3 V         exit;
) G! Y( H3 F, u8 _; F0 z3 R% O% z# Z3 i      end;& d1 v3 n2 y/ ?
      Str := callfunc ('checksendercurusemagic 1');
, W( W. R$ a- |2 K, h, ^  _" s0 l      if Str = 'true' then begin' r6 k% ]7 c$ Y- `) t8 z& E# ]+ ?6 J
         print ('say 选错武功了!');
8 G: U/ v$ ?! b! X) {, ~5 R1 [3 G         Name := callfunc ('getsendername');6 w5 B& c: }. ]3 S; o2 z
         Str := 'movespace ' + Name;/ N8 N, V" ^& H5 a+ D
         Str := Str + ' user 49 106 55 100';6 ~9 @1 E& e+ g" J
         print (Str);
+ m) i& i) [  K8 B) y         exit;, ~- D/ j( J/ e+ s. _$ z
      end;8 R3 ], @( Y5 b& l
: u/ b; C5 U9 e, Y3 }0 N9 w
      print ('directmovespace 一级老侠客 npc 54 20 18 0');1 r* }0 C7 O2 i( k( U9 Y3 p
5 u) ?' X9 ~! M7 |+ i) p
      print ('commandicebyname 一级老侠客 npc 500');: _1 p" \0 S: w, ]" Z9 g6 x
      print ('setallowhitbytick true 500');      9 W9 J1 x# h* e) _; ~( q; Y

( G+ N2 b% H1 ~) w      Name := callfunc ('getsendername');8 M0 I4 n* g6 y6 x0 p. R
      Str := 'commandicebyname ' + Name;# b, M+ o9 e' E! z$ `2 a+ M
      Str := Str + ' user 500';
9 h6 a0 D6 B3 ~; L9 l9 x+ S      print (Str);4 u# S. }# L' Q# u

' {6 `4 ]6 T, N2 E/ p, J' I, q" j      print ('senderrefill');
, a. v8 n4 g$ k$ ]- e8 ]2 J
$ U5 K: e7 G) T      print ('say 如果你实在想比 50');' U) |5 }2 k3 I' i% p
      print ('say 我将奉陪到底 400');3 f' g. c, i+ B  {+ n
      exit;
  C$ h, @7 A" X' s, ^1 j4 e   end;' _& ]7 R$ {6 R
end;
& [( {' ^, F* X- b, t9 d, U- t) \# d" @" h! N7 K
procedure OnCreate (aStr : String);
/ P. ^6 X+ }0 {var; R$ K& {& H1 s7 b# A; n! ^
   Str : String;
9 `" u8 a/ C* R3 G4 `; Dbegin
8 \7 Q' m7 Z, e! ]; W+ G9 \) r   Str := callfunc ('getsenderrace');- {' Q5 L. {0 w8 Z! N: v8 f
   if Str <> '1' then begin" C$ @+ U2 x9 T" ?# [' ~
      exit;
/ ?' y# _1 A. e! _$ _3 M) N   end;
) w, p* C: w* c2 ]- h8 R7 l- i0 h& F6 U+ x" {6 p/ Y  Y& l8 {1 E
   Str := 'showwindow .\help\一级老侠客.txt 1';
. Y5 t; ~# B; e9 `9 k( T   print (Str);. j+ F* q' L6 z7 e' H) \& G
   exit;/ R. x, B6 |0 V. ~) n; H" w
end;8 v9 j" f5 E* g
7 f% x+ j. U1 }' V0 d
procedure OnDie (aStr : String);
, M0 D' v* {9 ^, vvar$ b" W6 @: `0 l. B
   Str, Name : String;6 R" i* `9 W5 g/ ?+ @' c; T; ]
   n, FirstQuest : Integer;   
  j. J, a, v$ c5 y# obegin
- a% c. @. a0 n" j0 z7 S   Str := callfunc ('getsenderrace');. {9 \% G/ T4 c+ y3 f
   if Str <> '1' then exit;: ]# _4 @/ o0 H6 _1 m4 q. @. K3 @

6 m+ v3 c& Y" M8 _8 S" \   Str := callfunc ('getsenderfirstquest');
. f. m' J& r! ?! K   FirstQuest := StrToInt (Str);/ F4 v7 C& C* Q3 S5 e; k! W

- L7 B' W& P3 ]0 Y) N   Name := callfunc ('getsendername');+ B, C) |# `+ P

( |8 h; `6 [; w6 W9 w1 T   if FirstQuest < 6 then begin4 K3 E* d% t1 u
      Str := 'sendsendertopmsg ' + Name;2 S9 ?$ `9 y/ k
      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';
. H5 X+ \% `( [8 h+ W      print (Str);: y5 F9 {7 R1 i9 \8 i
5 z  O# [/ F5 H$ e
      Str := callfunc ('checkenoughspace');
0 P1 m# N. F  n. |: \$ y      if Str = 'false' then begin
/ W7 R3 f4 o* a% U- I7 `) x2 D/ U         print ('say 物品栏已满...');
. X- Q" |* W- ^& @4 X         exit;: d/ q' l, p. v5 B
      end;+ x3 }( i6 Z# z! w; Q' ^

0 }6 H% J0 c+ z* ?      print ('changesenderfirstquest 6');% E5 [, w, e3 v. ~. b# O
/ s  j0 V. Q8 E  I2 ?$ x% P0 _
      Str := callfunc ('getsendersex');% B; k0 R' q7 e% S
      n := StrToInt (Str);
$ Y1 Q0 e* B0 P" u8 w" S      if n = 1 then begin
$ b2 m& e7 i9 q0 Q/ ~         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');& c' ^% p& K( c% k3 s6 W" ?
      end;
- n% u/ _% y$ u8 |& l      if n = 2 then begin3 P9 _0 w7 O" A1 d) J
         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');
: B. q5 A- v, b+ Y7 l) P8 k0 f" A1 V; z      end;8 c1 Z4 a- r# o- \6 J- X$ K7 R
         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');
. M0 G* O( @9 ?# k- c8 p/ Q   end;( ~3 U; R1 s# j2 _5 k' k2 l. V  S

- D" n" H: V4 }, c0 J' a* U   print ('say 佩服_佩服 100');; [6 Z0 L$ v4 b% y; x5 Q( o
  Q* o+ r+ h1 E. |
   Str := 'movespace ' + Name;  b  o  w0 k# b: Z( M
   Str := Str + ' user 49 25 35 500';
, `9 n/ k) t" g( c* ^8 _, _   print (Str);( Y! M, d3 X/ H- |" Q* |; }! D; x
end;
# C! i6 S" }5 a* f  w; n8 q0 a) \  F+ `; H# o) c1 n3 j: K
procedure OnChangeState (aStr : String);0 I2 i+ E1 L0 n9 Q: g& t+ {( t" |8 s
var
. e8 L7 ?; _7 {   Str, Name : String;
$ ]) n; R7 U; Bbegin% i: `: g' Z5 p) @- H
   if aStr <> 'die' then exit;
) I6 e7 z$ {$ U. C8 n
9 t1 M3 E3 j! H" u, U8 S   Str := callfunc ('getsenderrace');
" Z/ |* b; U# g; t   if Str <> '1' then exit;% S6 K7 W  ]0 _: w8 x
; ]9 K2 c# y. _6 {1 I
   print ('say 小小年纪_就有如此高深的武功 50');/ C0 y  K5 A8 I
   print ('say 日后要继续修炼... 400');# i9 |8 }# c7 `2 D  A9 ]
' m# ~2 Y; v1 ?) v/ F9 d8 Z
   Name := callfunc ('getsendername');
3 S; m9 e5 C! {. R   Str := 'movespace ' + Name;
: O- P' G9 W0 Q, ]& P) s3 i   Str := Str + ' user 49 106 55 600';/ ?4 g# K* t1 Q
   print (Str);
/ j8 J  M, _/ r  J  J/ l, |! Vend;
! i0 G: g1 s4 n1 ?( [* a: a8 Z. K- P+ z9 n( w
end.
9 h7 _4 L6 D' n' T3 @# c, ~, z! P) S. c0 `6 C
-------------------------------------9 K5 i9 ?. E5 e) h3 T" e
4 d& q1 I. I7 n$ g. s% M
*************************************
' f* l6 Y5 A2 u9 m' N0 u% V6 @& V& V  h6 {* X2 Z& G
奖励物品代码:! O* k2 i0 ?2 V% {  K! h9 E: K" b
) L4 d3 e4 B3 a7 i+ W& S
*************************************: v, o0 v" e$ T; ?3 h# [7 u
; N5 ]) N: j$ B- r$ y
男子侠客弓服,男子侠客弓服,24,新手村擂台战利
! [* T1 u* u2 L% F& i& H2 ^% s
" ^) o& T8 a! b0 H! i品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
4 h* Z( _% R* g" G7 y7 G& Q& ]  g( \" m  r; c
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,; R# g5 _1 r* S( U- Y+ _
女子侠客弓服,女子侠客弓服,24,新手村擂台战利
% R% n5 |- w0 \! ^. T$ S$ Q4 i$ V9 w0 k  a7 k, f9 Y
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,101 m& n! B8 P/ `6 l; \8 ]* \
' J4 ?! F5 z, z: @# ^- x+ }" Y& ^/ c1 m
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,
3 h2 j; {6 w; S. H8 i" b* K0 t- H- B新手训练拳套,新手训练拳套,6,新手村擂台战利
- l1 r  v7 N/ e7 W
8 Q5 d7 L% a* C: l8 b品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
' c" }0 s9 x8 A3 d. y% l2 `- k, c$ v$ s- h9 p2 H
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
5 A7 U) e- V- ]& b新手训练神剑,新手训练神剑,6,新手村擂台战利( S" j& ?; a3 W! F# Y6 v
6 t2 s1 I3 U* Q5 q) B7 f
品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
6 c% ]  w+ }9 i: k+ m5 ~' m( V: z! C5 i
,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
, M, }$ l' Y, a: t% H0 y& ]  K, s新手训练弯刀,新手训练弯刀,6,新手村擂台战利$ K1 R8 E; h  o& t9 C- Y$ X

8 j5 W2 w9 m0 K品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,
4 Q2 z8 q* b5 v$ J% I& t
5 |; H; B% ~9 N' @. ?8 A/ x. },,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,4 O5 u+ q& J: U; n) c$ \) ^
新手训练长矛,新手训练长矛,6,新手村擂台战利$ i' Y" f! I4 N' \
# k9 o, a* D+ s" c2 Q6 S3 u2 l( G
品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,
! n) w/ `! y2 r/ M$ G& w5 ~  G% ^( |* g
,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
' k! [1 s: b- a新手训练大斧,新手训练大斧,6,新手村擂台战利1 O. z4 S2 R/ X/ Z! n
0 K2 L/ x! z6 y7 @7 i
品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,
- F5 P6 y5 Y; ^* M  l" d( B  S% S" k6 D, ]
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,," Z' T' B' {. O* ?5 @
, s4 p# @: e2 _
******************************************
: s2 Q" z, ]; y8 M+ D" a& `" J$ |

$ S7 }+ N* D% ~0 N2 D& Q




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