三千论坛

标题: 新手村擂台脚本和实现代码 [打印本页]

作者: 快要发癫啦    时间: 2023-3-2 09:52
标题: 新手村擂台脚本和实现代码
风雷版的新手村擂台脚本 0 g' d7 J0 m* a9 o
* _# A! b5 ~6 V
释放到同名文件夹下覆盖原有文件。. f* f1 W5 y: s# B7 `6 N
1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。
2 M  D: Z" H0 B( G* }
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。
) Q) K! q. N! \
(由11月23号发布的最新服务端修改)% o7 H& V2 T0 T. k
-----------------------------------------9 T2 w+ k- S" K4 P7 T. x. k
内容介绍:
' [" I$ x5 F- b$ E6 {
新手村比武获得奖励:' v% e6 }+ X% N# q
同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0
4 {4 d8 L. Q! a0 Z

+ f3 r8 f# N- _8 G+ M
最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较 # Z1 S: l, G; \5 w. E( c& E
喜欢黑龙,所以是黑龙的加强版!)
- I: N1 ^- I' j2 n# ~* [7 _
[replyview] 3 e4 \7 t- M. X) s, G. |
------------------------------------- & H1 {( X, t6 s0 c- e" F& d
unit 一级梅花夫人;
) {2 S  [1 C+ E: B1 R2 a
inte**ce 6 G, u$ N. E+ x: T8 Z) G7 i( u
function  GetToken (aStr, aToken, aSep : String) : String;/ H* L3 ^% m0 ~# q
function  CompareStr (aStr1, aStr2 : String) : Boolean;* j  z' t: k' K/ j
function  callfunc (aText: string): string;' z& V. m) }4 O/ D
procedure print (aText: string);% A0 t, H' ?, P: M3 x  z
function  Random (aScope: integer): integer;" A7 e8 Z4 n" V
function  Length (aText: string): integer;0 x! G$ X/ x- E8 P- a" a6 n9 Z- A8 p6 ^
procedure Inc (aInt: integer);
5 ~+ |: X& d) o2 o
procedure Dec (aInt: integer);4 X; |( I0 ^7 \% g, M
function  StrToInt (astr: string): integer;
6 T0 z* W3 P( C# i4 Z# T4 s1 {. }4 o7 j
function  IntToStr (aInt: integer): string;) q+ r8 H5 z/ V" o/ |& Q
procedure exit;
7 ~5 Y# d0 w0 m$ t" d
procedure OnCreate (aStr : String);# c3 r1 p# u' ]
procedure OnDie (aStr : String);
/ f) `* ]( S$ n% M( Y  a9 [% r6 {
procedure OnChangeState (aStr : String);
- [# y9 Q% q; f, i8 s9 v% l* j
procedure OnGetResult (aStr : String); ; @! I2 b. N4 ~5 S
implementation 5 W1 M1 c( c1 e8 g# I
procedure OnGetResult (aStr : String);4 b/ y) A5 V3 r, _0 p' z4 l5 \
var
, C+ N7 w$ L1 Y/ ]* L
   Str, Name : String;
% \2 A: \- ~( x
   iCount : Integer;
/ u4 H; j3 n& S% i: O6 p
begin
' m; u. A+ D/ T' U7 x: ~0 g2 `
   if aStr = 'start' then begin
# H" Z' o% n' E" }7 s+ h
      Str := callfunc ('getsenderserverid');' Z4 s6 ~3 Z6 |. x6 t
      if Str <> '51' then exit;   \0 R  K# J6 A  a3 r! A' `7 G
      Str := callfunc ('getsenderrace');9 |; e) o( y, H, b8 A2 P! w
      if Str <> '1' then exit;
2 P+ R( h4 ?9 f  E5 G0 x
      Str := callfunc ('checksenderpowerwearitem');
- D3 b$ s5 B+ R( i
      iCount := StrToInt (Str);
, @6 u( L" s0 Y2 l
      if iCount > 0 then begin. x. P. x: w1 ]6 p# \/ X
         print ('say 先将带技能值装备脱掉!');
+ ]7 n: [- a1 f: m$ \% T0 X! R. Z
         Name := callfunc ('getsendername');
: c% F( R, K, c! C& J% X. u8 R$ D
         Str := 'movespace ' + Name;6 u$ |% l4 P" m: U$ c
         Str := Str + ' user 49 106 55 100';
0 o6 H+ b$ Y5 o
         print (Str);0 Z/ w5 C+ h! y, ~: A
         exit;
/ y0 a7 E9 z& K8 o1 v( k  k1 l
      end;2 k% B7 m: N- c! B& H1 s& s
      Str := callfunc ('checksendercurusemagic 0');4 J* I/ @# S9 w) j: e
      if Str = 'true' then begin' A; {4 c% w- b
         print ('say 选错武功啦!');
8 T: v  ~" f6 m* \0 h
         Name := callfunc ('getsendername');
) v7 ]+ j  |9 f( B' }3 z; {( {
         Str := 'movespace ' + Name;
0 p3 D: z( ?( A
         Str := Str + ' user 49 106 55 100';9 V1 x3 a/ ?7 z) [" N
         print (Str);0 X+ A. c3 c1 Y  G
         exit;& _' f$ i& S/ ?5 z1 m3 [) k3 X1 q
      end;
; l/ y9 B; d1 ^+ R3 K) u( h! s
      Str := callfunc ('checksendercurusemagic 1');6 V* @5 C1 T- U; V: g. f/ u
      if Str = 'true' then begin
; x( ^8 E0 T- j" f9 ?8 Z
         print ('say 选错武功啦!');
- A- r  R& ^$ _1 [& d
         Name := callfunc ('getsendername');% O) P+ ?  J" r9 j( w9 ~7 i& @
         Str := 'movespace ' + Name;
  {7 ~) R+ L- E- H5 Q: F
         Str := Str + ' user 49 106 55 100';' @3 L1 o1 c& ?. \# W9 N0 e2 l
         print (Str);
3 k7 h3 C: v, ]7 g6 W  ~$ }! _
         exit;
/ [6 d. R: P2 J" R2 R9 |
      end;
) w% E, w+ r* z/ J
      print ('directmovespace 一级梅花夫人 npc 51 20 18 0'); 2 {. L1 O6 I1 F# E! v  j7 H! Y8 I
      print ('commandicebyname 一级梅花夫人 npc 1000');8 \4 l- U# j2 M  ?
      print ('setallowhitbytick true 1000');
) C- |3 W5 ]% _. Y/ q
      Name := callfunc ('getsendername');6 B0 `' W0 Y5 O+ v# f1 B$ T1 J
      Str := 'commandicebyname ' + Name;2 A& d  I) i  g
      Str := Str + ' user 1000';8 ], T5 q5 ~9 A4 l, W
      print (Str);
' H: b$ n/ M( o1 {
      print ('senderrefill'); 7 ~( \, u3 f' ]+ s/ R
      print ('say 别害怕 50');$ s, {4 Y9 I$ z! I0 F* r
      print ('say 我会收下留情的... 400');! x, \  @- h, A) b6 @
      exit;
. J5 k9 x! w/ h" N. Z* E4 U  D
   end;
" T: O& `2 c7 Y6 J0 s
end; 7 K) a* o: Q8 _4 A* h* X$ [
procedure OnCreate (aStr : String);
/ @7 t) C# R6 C' g5 l, N. j+ _+ j
var) c$ |* j4 r' @9 f7 R
   Str : String;* g3 A! q, i# x1 i
begin
2 C% i% b% D' K0 b& v$ P* s  O
   Str := callfunc ('getsenderrace');
) H% M% f- P8 `- v! J0 {1 b
   if Str <> '1' then begin9 x; b) c  v, m6 m6 R- l9 y) S, R+ F( h# I
      exit;
4 h( [& g  [: Z; l
   end;: ~3 R3 D, E, f" Z+ }+ h. j
   7 Z. r0 p3 V" i/ B: K0 u& W
   Str := 'showwindow ./help/一级梅花夫人.txt 1';/ ?, Z0 X8 e6 \/ V0 R3 l$ d6 c9 L/ e
   print (Str);& C* `& r& l3 j7 e
   exit;
3 R- ]8 K" d% k4 u" I
end;
0 U( A* ]9 e4 x$ F) ~: }3 `
procedure OnDie (aStr : String);
" w$ s( K  |# v/ A) R
var
' l) W- J5 N1 M1 g# s' L# H5 o# N
   Str, Name : String;
! I) x+ C8 C1 m/ f- x! ?0 p
   FirstQuest : Integer;   ) a3 X, X0 ?: q
begin3 F* Q  q' N. X1 U) A9 ?, C
   Str := callfunc ('getsenderrace');8 ?% Y2 m+ a6 v# W$ i/ A; a
   if Str <> '1' then exit; ' v7 }+ S7 f6 m& q& s$ U& v
   Str := callfunc ('getsenderfirstquest');
+ e. I% H! G( u& @4 G0 U  j! O7 B
   FirstQuest := StrToInt (Str);
6 i! @- G/ M% P% K6 l
   if FirstQuest < 3 then begin) j0 S/ d% b- Z( h% J1 I1 b. D
      Str := callfunc ('checkenoughspace');
9 w2 ^0 J: N4 Q: c6 y" q4 E8 }
      if Str = 'false' then begin# p$ \1 X8 M6 }: C$ f7 t: |
         print ('say 物品栏已满...');
+ `2 F6 v: k- U
         exit;
" ?! G) i' T9 A
      end;& a: s7 c- k) O4 @# Z
   
. j, Y# U4 [# |$ g% @+ [9 l
      print ('changesenderfirstquest 3');
) c5 U4 t0 L2 T. h
      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');- S3 i4 f' g  M8 j1 p
   end; * b! I: i: m1 A* u
   print ('say 我可只用了3层功力哟 100'); 7 x5 r: q$ ~* x4 F: k
   print ('mapregen 52');
" u9 G" E9 |1 K; z+ `6 n- I$ R
   Name := callfunc ('getsendername');   ) D; o% c9 \* f5 _  A; s+ |
   Str := 'movespace ' + Name;7 K, _. l+ ]: w0 [) y
   Str := Str + ' user 52 17 18 500';. I* n- g/ W+ D( k5 Q$ J! {" D( S; R
   print (Str);3 r& {; N  a/ F. {$ R+ b; _
   exit;
. W6 o7 s4 R: P  W) C  u! S
end;
( C# g# p  M1 E3 d; t
procedure OnChangeState (aStr : String);
( G! N/ w) G+ ~5 m3 V
var/ c  F9 k& c8 W& [1 @
   Str, Name : String;
0 {2 T) {) M* b. p. \% Z
begin0 B$ z1 I; E  z6 n; u
   if aStr <> 'die' then exit;
  S8 J- v! W3 N3 n
   Str := callfunc ('getsenderrace');
$ x7 e# S" g# [* M5 ~: ]
   if Str <> '1' then exit; - c& q' t) Y0 D0 X5 Z
   print ('say 别无他法 50');6 v8 B# V1 m6 D1 k
   print ('say 是不是修炼方法不妥呀? 400');
& A5 K# U  x+ B# y& ?8 b0 G* u
   Name := callfunc ('getsendername');
) b, B& Q6 k' ^# q  ^7 q: f
   Str := 'movespace ' + Name;
4 Z3 ]5 B& w/ P% E; R7 a3 a
   Str := Str + ' user 49 106 55 600';
# M% \7 H& X& }. e
   print (Str);
- T2 c6 i$ C; K
end;
9 _+ s7 v0 E9 k1 z" F5 F
end.4 [8 ]# [* s1 {  {% g. ^1 w2 G0 Z# L
-------------------------------------------
% v8 L+ q9 y" R& h, d! J
unit 一级捕盗大将; " {: U' W9 s) x. `, s
inte**ce 8 p: b/ a/ {0 b8 i3 x% _) |9 H% F
function  GetToken (aStr, aToken, aSep : String) : String;& [) M: L, M; W
function  CompareStr (aStr1, aStr2 : String) : Boolean;
: [# i: m- d0 D9 W1 H2 t
function  callfunc (aText: string): string;
' z) A& g2 j& Y* ?# Q$ @
procedure print (aText: string);- x- d! N# `2 g& W: c/ @+ ^
function  Random (aScope: integer): integer;
2 ^: m6 O% {' X7 r" N0 j; O
function  Length (aText: string): integer;0 C1 }, u/ c% C4 x9 n! ^
procedure Inc (aInt: integer);. c8 Y' o3 Q0 h+ P
procedure Dec (aInt: integer);
3 K8 i5 o3 J1 X1 h
function  StrToInt (astr: string): integer;% u! _* Z4 ]- G
function  IntToStr (aInt: integer): string;6 Z! p% {7 ^" s! K# W1 l9 {' z
procedure exit;
8 p& i9 W! \5 P3 _& Q$ m
procedure OnCreate (aStr : String);
* x5 H6 o5 G6 i9 N
procedure OnDie (aStr : String);
1 X. {. P* `2 }8 g
procedure OnChangeState (aStr : String);( R% X; N) J- \! O( k9 |9 @
procedure OnGetResult (aStr : String); ; @2 w' c, J0 E+ U
implementation
/ Q; L3 f. Z4 n0 d7 s  Q+ E5 e
procedure OnGetResult (aStr : String);
; F' [5 k, m" q- {3 q0 x
var
& n6 v" L. \3 o, v3 {
   Str, Name : String;1 ~' x* [* X" A9 v( O
   iCount : Integer;   
7 p* F8 r+ x5 g5 l5 `( Q( h, W4 z' B4 ^' T
begin
5 L: {* w, q/ j2 U
   if aStr = 'start' then begin) s5 s5 ]) [3 ^& F. }
      Str := callfunc ('getsenderserverid');
- [# }( d; A" d) B
      if Str <> '50' then exit; / v6 M' @; ~3 X6 C9 R
      Str := callfunc ('getsenderrace');7 O/ x; b' i3 h; y) `2 }) k* g3 p
      if Str <> '1' then exit; 2 r+ ]5 p  W& z. ^6 W: z7 C
      Str := callfunc ('checksenderpowerwearitem');6 s- J2 R2 r' N
      iCount := StrToInt (Str);* ?# v5 E% n0 z6 i! t( W7 w8 l5 `$ F
      if iCount > 0 then begin8 j  K! h) J7 o8 A) K* X
         print ('say 请先脱掉带技能值的装备!');8 s1 x6 q* x5 T3 N$ }
         Name := callfunc ('getsendername');4 u# E3 j9 g( z: t; S. f& {
         Str := 'movespace ' + Name;
; l+ Y5 t0 J6 g/ E+ J- `
         Str := Str + ' user 49 106 55 100';: H+ Q6 X, a+ t0 C
         print (Str);
$ m9 u1 H, B1 o$ u4 y
         exit;' o- N3 h, U( r1 W3 J* Y0 z0 F5 K
      end;
& h8 I4 c3 t3 L! c8 i% o2 x4 m
      Str := callfunc ('checksendercurusemagic 0');) C9 ^0 Z9 M" T3 z
      if Str = 'true' then begin. V+ [* A$ I8 {
         print ('say 选错武功了!');9 \% y8 r& h6 [, R
         Name := callfunc ('getsendername');
( Z9 f6 M$ @% A2 P- @
         Str := 'movespace ' + Name;1 p+ u' I9 V3 x" c  j7 N4 R2 ?( Q$ z, \
         Str := Str + ' user 49 106 55 100';& o: G7 V, b7 r% Q, f3 D
         print (Str);
* o( O& [2 Q& s0 O
         exit;
( ]  Q* [# f# i
      end;
0 |2 {& c  ^: k
      Str := callfunc ('checksendercurusemagic 1');; u4 G+ ~9 {3 l5 b# h& l/ C
      if Str = 'true' then begin
1 y# b. e: ^# `1 f0 B3 [7 T
         print ('say 选错武功了!');
+ q" `8 y' U+ u3 Z
         Name := callfunc ('getsendername');3 B1 T- J: R6 [( ?7 ]) W9 Z
         Str := 'movespace ' + Name;$ A5 @+ ]7 T9 N/ L6 i1 |
         Str := Str + ' user 49 106 55 100';
- w: C3 K. u; H8 a: C: }
         print (Str);
. R; R& C2 o! p* y& f2 w% u
         exit;+ o9 ^6 F8 `. d8 C+ \; f% E$ z0 i
      end; ) f' f+ T0 ~: E  `0 d* o5 a
      print ('directmovespace 一级捕盗大将 npc 50 20 18 0'); ' T/ O0 c$ E% T3 {
      print ('commandicebyname 一级捕盗大将 npc 1000');
- H: j. [  [  |+ }
      print ('setallowhitbytick true 1000');
$ ~! {: Z6 v9 x! H6 ~- @
      Name := callfunc ('getsendername');
; m* C, G" l, \5 w' M
      Str := 'commandicebyname ' + Name;
8 G9 `4 e9 o5 C* u) ]& Y
      Str := Str + ' user 1000';
( J6 {7 S. u+ m- j1 w
      print (Str);
* T& w8 h/ ]! S7 z# E" t2 v
      print ('senderrefill');
7 i, z6 a  [9 y; T! O6 M! f
      print ('say 你还太嫩! 50');5 o% w% J; D+ x0 Z$ E) e
      print ('say 留神啦_我可不会手下留情 400');
8 h$ m( g* [* S. D1 F. B' y6 i- C
      exit;
6 t& v2 @% x* h* R( ?9 a
   end;" H& e; [. E+ M5 E# Q
end; ) c. r7 r+ d0 r3 b+ G3 x! Y
procedure OnCreate (aStr : String);
) V' _/ ]9 y# I( Z4 l7 |& [
var# i; I2 c3 Z! ?3 V, ~7 `
   Str : String;7 l3 J5 {( w1 T2 P/ W
begin' o* P0 ~% x8 F6 t" A
   Str := callfunc ('getsenderrace');
' |# w/ T( D; E, ^
   if Str <> '1' then begin
: F# b1 y' q1 Y6 G0 S
      exit;" p$ a4 Z3 p  b
   end;
+ `  _. X, I# O# o: N
   print ('setallowhitbyname 一级捕盗大将 monster true');
" k% G8 I% h/ p
   Str := 'showwindow ./help/一级捕盗大将.txt 1';, N2 j" {4 L" i& ]+ r  \
   print (Str);
0 W* {9 }: }! x! p8 d
   exit;* i8 H8 q% K. J& [* F
end;
: o0 b$ z. x0 c+ m3 p; K) N2 J1 P8 _
procedure OnDie (aStr : String);7 E& l% r( ?. b/ v9 t( e- n
var  a4 I8 S- E% b+ K
   Str, Name : String;% L! h9 s" d! S4 x0 a( \
   FirstQuest : Integer;
% ^! v7 D( H) g" ]5 z
begin# ~* y, u+ C, P& g) R. |0 ^3 E
   Str := callfunc ('getsenderrace');
" {2 d7 f. H5 X5 k7 W: A6 ]* G
   if Str <> '1' then exit;
! i4 |' P6 H8 u; E
   Str := callfunc ('getsenderfirstquest');
% U% |2 P; ~4 o( M* g5 F+ i
   FirstQuest := StrToInt (Str);
5 r# k! K9 i0 S3 ^2 H; A; H* |
   if FirstQuest < 2 then begin
  `$ e) e" k+ M- c# \3 c  w, R# Y) n
      Str := callfunc ('checkenoughspace');
9 l; ^, ^* [2 t2 }) |, J
      if Str = 'false' then begin9 F' V- d+ k. |# D
         print ('say 物品栏已满...');
0 p2 w4 c$ T; R* q: I
         exit;7 i4 Y! C4 {/ c* {/ f
      end;
: o. x5 j& @2 G& A$ a% `# c
      print ('changesenderfirstquest 2');  t' R& u6 s! {* x3 Y! s
      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');
$ }" f2 w2 z8 ^4 z
   end;
1 `$ J& E0 K. P# L8 y9 K
   print ('say 不可能_我怎么可能输呢.. 100'); / x* b& V$ r% O& V
   print ('mapregen 51');
) {4 ~" i; f% Y2 G/ p: H# ~
   Name := callfunc ('getsendername');8 {; A8 I3 `$ U9 e7 ~
   Str := 'movespace ' + Name;4 g# I  r8 P' r* @! R* z
   Str := Str + ' user 51 17 18 500';% v, ?% ?+ @# ^) x. B) s/ h' a1 v- s
   print (Str);% z8 ]0 J! S5 h: d2 p' Q
end;
9 B9 u; }  j+ q, ^- t, r9 n
procedure OnChangeState (aStr : String);
: e3 g8 j2 N6 C4 e; p5 t8 k& |; E
var3 L. [' e3 K& s0 I* p
   Str, Name : String;
( n+ K0 ~+ J9 s$ j8 `/ e
begin
% C2 b1 _" L% q( \. J* U2 B6 e
   if aStr <> 'die' then exit;
: x2 \% f; j. m  D2 T5 F
   Str := callfunc ('getsenderrace');
0 \# E7 c" n/ B
   if Str <> '1' then exit; 8 ~: b- \9 M, L, H
   print ('say 回去再修炼个10年吧50');' e5 D8 {3 v" K0 [
   print ('say 到那时我在用双手跟你打 400'); 4 A# X5 f! |$ F$ q% d
   Name := callfunc ('getsendername');
( t  r/ U# v5 k3 J& F  J
   Str := 'movespace ' + Name;
# R# A' z: W/ t9 c6 o0 E% x' H+ e$ M
   Str := Str + ' user 49 106 55 600';
& m8 |3 \; E  [/ V+ m
   print (Str); ) p5 |( |  d4 X5 l( ~3 ]
   print ('boMapEnter 50 true');   
* T- a/ z) j( ]7 P
end;
- I4 l# F2 u1 t6 Q( R' k
end.
8 k- }' X* m9 y+ {
---------------------------------------
# q: P' F7 q  S5 R
unit 一级牛俊;
+ s/ f' E% n# S4 f
inte**ce
6 j7 z7 V& ~) u5 |
function  GetToken (aStr, aToken, aSep : String) : String;: f+ ?2 y" T, F. j6 Y% a
function  CompareStr (aStr1, aStr2 : String) : Boolean;# F+ P7 [( X. i. N
function  callfunc (aText: string): string;
0 h2 R; N( T7 ~) }
procedure print (aText: string);* U; e  K3 X, G) w
function  Random (aScope: integer): integer;; j. p8 s+ K( ~5 ^7 l6 v
function  Length (aText: string): integer;
+ l7 k. ~; |/ L
procedure Inc (aInt: integer);
$ q+ M. n+ }( V) t$ t- L
procedure Dec (aInt: integer);
* K$ W" A6 r6 i  b5 _1 R: B9 Y
function  StrToInt (astr: string): integer;  F6 z% t5 s' O& p9 b
function  IntToStr (aInt: integer): string;
4 \' N# ^4 T* N" Y9 a# w
procedure exit; ' r1 z0 g: K) J
procedure OnCreate (aStr : String);# C. o; ]7 \9 b* E: y& V3 D9 B
procedure OnDie (aStr : String);
. n  M8 C4 u7 V' S$ L+ d# o
procedure OnChangeState (aStr : String);; u' Q) X- `0 q: g. J; u
procedure OnGetResult (aStr : String); + {3 u+ B$ m9 b) ]5 P8 D) [
implementation
( h" y# r) I7 b0 ?- ~3 T& T
procedure OnGetResult (aStr : String);; J9 R: ~6 k- n+ w& w
var' m7 U% \0 R5 Z% d' x  p
   Str, Name : String;: a, p$ G% H3 h0 t& f
   iCount : Integer;9 {% j0 S0 O( M7 x  O# ]0 q
begin7 H  {/ Q) {& J1 `1 \8 Z( h) U
   if aStr = 'start' then begin) m7 ]. N& j7 ^
      Str := callfunc ('getsenderserverid');% t' y- o4 k- I
      if Str <> '52' then exit;
( _4 A' i0 i. @( H! X8 x
      Str := callfunc ('getsenderrace');: t- D, ?- g7 Q# C: v8 ^, m8 N% X
      if Str <> '1' then exit;
2 W# e8 |: \- m/ t  y
      Str := callfunc ('checksenderpowerwearitem');
6 m1 }, Z- @6 |) ]/ `2 |, m# g
      iCount := StrToInt (Str);' i% P/ u- j7 F, @. l! H# v4 }
      if iCount > 0 then begin& j: b. h' J+ {9 @
         print ('say 请先脱掉带技能值的装备!');
! V7 Z# g: n" H; b" p$ A
         Name := callfunc ('getsendername');9 r, p- S9 x# v6 z, \* p$ K+ e
         Str := 'movespace ' + Name;
( N9 j3 N- Z" H$ e
         Str := Str + ' user 49 106 55 100';: n/ f1 i; }" k/ M) B( M8 Z5 N
         print (Str);
/ @: F, ?3 J7 f, |
         exit;
( Q/ G6 {2 u2 d8 i8 F8 K
      end;
# P/ D9 G. j) T% S5 Q) j0 P
      Str := callfunc ('checksendercurusemagic 0');2 g8 Q7 v; v8 u( C0 N# S
      if Str = 'true' then begin
9 i+ ~* r, r; U9 X
         print ('say 选错武功了!');7 X) u( B) V5 X  V
         Name := callfunc ('getsendername');5 W; v: I5 d2 S$ j- {
         Str := 'movespace ' + Name;
  c; h- x2 s. [, O$ J& }! l6 o1 m
         Str := Str + ' user 49 106 55 100';
* R5 F" O, g3 R  a
         print (Str);
; W0 l+ R6 {/ Q1 y8 @+ d
         exit;
4 L) \7 S  c, c. v+ ]1 f5 ]
      end;
1 \' j% H. b* R8 f
      Str := callfunc ('checksendercurusemagic 1');" D9 p$ D( c% a, X$ z$ A. I
      if Str = 'true' then begin8 z" b$ V0 y. a: o
         print ('say 选错武功了!');
! e1 {. s( H7 T2 M! n8 c
         Name := callfunc ('getsendername');
! a' n3 G6 `, b
         Str := 'movespace ' + Name;" Z2 ?7 p, w+ }4 g9 d4 P" d9 e5 y
         Str := Str + ' user 49 106 55 100';- i0 O5 z/ U7 d- U# V! p: b
         print (Str);
8 C- A$ n# C! M7 Z- e' ?
         exit;% ?% T' y9 W4 z% s8 E! h" }
      end;4 A, Z  e- \6 F" S7 V7 y2 G! o+ |! W
      
' F. |7 v* H) ]0 m- a* K+ J
      print ('directmovespace 一级牛俊 npc 52 20 18 0'); * B+ p& j- X7 \2 z% M' u
      print ('commandicebyname 一级牛俊 npc 500');
& h7 x6 f* }' ]
      print ('setallowhitbytick true 500');      6 j$ F) p& S1 a7 j+ g+ {, U4 W
      Name := callfunc ('getsendername');, l2 E9 f; Y# L- [6 s% y
      Str := 'commandicebyname ' + Name;$ p. k0 }0 V" A/ @; R. l1 h
      Str := Str + ' user 500';
$ m! L5 [/ y; Y9 y# B# z+ D
      print (Str);
& K  s" b; ]% H
      print ('senderrefill'); ; s8 u, e4 `) C9 B0 U
      print ('say 10如果10秒内不能将你搞定 50');" z. i& f4 T, }2 t) s
      print ('say 就算我输! 400');$ K; ^7 b. ~3 a  O! Y3 D
      exit;, K$ M' a1 F3 e" r' ^
   end;
4 w1 H. L& ^7 [7 `0 i) S3 F
end; - I3 o6 n0 O, @( D; y: h
procedure OnCreate (aStr : String);
8 z) }; Q; a0 r; A
var
: N7 C1 ^- }# a2 X; y8 m
   Str : String;. j1 Z' D$ ?) w" j+ D! L2 m6 Z
begin. w) O3 M8 ~! |8 a$ v
   Str := callfunc ('getsenderrace');
) \# q; u/ V% C
   if Str <> '1' then begin
2 g+ i: x# @# M3 C' ~8 Y
      exit;; Y9 Q. y- G$ J4 K& x1 A
   end; 1 O# F9 m* d& r- x& ?: @5 }
   Str := 'showwindow ./help/一级牛俊.txt 1';
* U+ {) F; e2 x, f% @% f
   print (Str);9 K& y) [2 k, _- ?' P
   exit;' f7 p- ]* v6 M7 p# ?4 r
end; ) }1 o  x! f0 D$ v0 Z$ n4 d
procedure OnDie (aStr : String);: k2 l# P1 S: c0 J8 f
var
3 J% N* e; h" o# I$ H6 a% o
   Str, Name : String;0 r: v9 X2 |; w  V. T
   FirstQuest : Integer;   
# G- v1 e1 H/ F; ?  S& k6 z: D
begin
& l, s9 K! q& U2 f
   Str := callfunc ('getsenderrace');
7 Q) q  u* }0 {5 V
   if Str <> '1' then exit; 1 {9 k! b* J0 \3 I3 o5 d) c
   Str := callfunc ('getsenderfirstquest');' g. n" @% g& D3 P% f! k3 L
   FirstQuest := StrToInt (Str);
+ j1 n' S5 o7 T% Q" I, p/ I
   if FirstQuest < 4 then begin5 ?2 F4 A) Q4 G7 a
      Str := callfunc ('checkenoughspace');) J, k0 h2 y) N  L2 W# w4 V+ ~
      if Str = 'false' then begin* m: g' h& d# g2 q8 M8 K4 Y
         print ('say 物品栏已满...');
" t7 B9 R1 N" ?6 d5 p- e9 U% o
         exit;: h; `, ^( g7 |# }9 s6 n0 ~
      end;2 B6 ?# Q7 N) N+ W3 u5 z) P/ g
   / z9 h* R  m& U
      print ('changesenderfirstquest 4');, {1 v& ?5 X# L/ M/ G
      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');
, K, w, B. w& W. {8 f
   end; 2 i. u& g  ~+ y- a1 |$ R+ V
   print ('say 什么_不敢相信!! 100');
3 L1 o0 [3 s) ~8 _1 K+ p# Z
   print ('mapregen 53');
, e" `  H% @- H8 |/ `
   % ?# {$ n* U) [1 I8 o+ t2 Z* G3 q! d
   Name := callfunc ('getsendername');
7 c3 o  u5 q! I6 u9 V1 i
   Str := 'movespace ' + Name;  L8 I, f6 m& s; }/ o1 W0 }) L
   Str := Str + ' user 53 17 18 500';  Q/ J7 i: p; k, Z$ ~
   print (Str);; F+ H3 ^6 c- D" T) ^
end; ' m) o# p8 G- r( Z/ M
procedure OnChangeState (aStr : String);* N9 K, |8 f+ ~. B& ^
var+ u- [0 s0 T/ S# |6 A1 o% d+ J# W
   Str, Name : String;
" w3 ]5 w& w+ v3 [8 ?& U
begin& W) T5 g. V, k8 o% I: a
   if aStr <> 'die' then exit; : ]( t" Z. N' `3 r& T/ X0 j1 S
   Str := callfunc ('getsenderrace');
4 I$ r. S" d6 }8 }
   if Str <> '1' then exit; 4 ^1 Y: D9 l' Q+ r$ p
   print ('say 领教了吧! 50');( E+ W# B% n# `! O9 b" ]0 z* A. K% X
   print ('say 差远了... 400');
, l* w& @5 L$ f) Z5 O5 Z. W' I: U3 K9 G* E
   Name := callfunc ('getsendername');$ R9 ?3 Y' b$ R  h! M
   Str := 'movespace ' + Name;$ r& h0 i" [2 {( o! J
   Str := Str + ' user 49 106 55 600';( W3 x1 W3 c8 u2 ^( v
   print (Str);. }, r& s+ ~+ W# ^3 ~# r! C
end;
! W% u; W4 F/ ^+ g- ?* \
end.
8 e( ~7 o( [2 {6 `; L' z
----------------------------------------) c) R0 e2 f- c7 s2 v4 B  c
unit 一级雨中客;
# k/ b8 g$ ^. E' O4 k, a
inte**ce
% h2 D4 e: R  A# r
function  GetToken (aStr, aToken, aSep : String) : String;
! w/ A/ ]5 `# y) q+ U
function  CompareStr (aStr1, aStr2 : String) : Boolean;
4 ]; l6 U" }: F6 [
function  callfunc (aText: string): string;: n: i% R  m4 D* y; i# c' ~4 y
procedure print (aText: string);
5 E+ i# Q- Q7 Y6 b' Q1 t& y
function  Random (aScope: integer): integer;
; q. ]' L. Q. j4 Q+ d8 s  a
function  Length (aText: string): integer;
9 L7 F7 \' A; i
procedure Inc (aInt: integer);
8 c$ S8 G0 c1 |0 i  Z
procedure Dec (aInt: integer);+ C$ i+ A+ D# E9 R0 n
function  StrToInt (astr: string): integer;* ^& q; Y- w: h5 F3 Q: K" X$ I- O
function  IntToStr (aInt: integer): string;
* Q/ d- v( w0 J6 @( |& S
procedure exit;
* Q7 |9 R2 V7 e- q
procedure OnCreate (aStr : String);7 r3 B, O" r& i* l, L
procedure OnDie (aStr : String);- O0 B, y4 }+ s! I
procedure OnChangeState (aStr : String);
$ w9 F" ]8 }) {  ~+ `) D. W" B* j
procedure OnGetResult (aStr : String);
( c4 O! k) v8 _4 c3 J3 j
implementation 9 k* }$ J: I0 ?4 v
procedure OnGetResult (aStr : String);- f5 C3 O/ o0 Z0 @
var
3 p( n; C" e  T
   Str, Name : String;
7 Q$ G+ F: E: E
   iCount : Integer;, t& H( x1 c% F$ V2 I
begin. n" m0 w$ Y2 e
   if aStr = 'start' then begin
; C4 \3 G% v: m8 ]
      Str := callfunc ('getsenderserverid');
4 `; P0 G8 |' ~
      if Str <> '53' then exit;
: c( K: h' ?8 @9 {6 J! j
      Str := callfunc ('getsenderrace');
3 b( N: l8 C, g  h4 d' l
      if Str <> '1' then exit; ' Z$ B* T4 E: f
      Str := callfunc ('checksenderpowerwearitem');0 p- R# x0 U/ l! e
      iCount := StrToInt (Str);
' o5 W+ u' j' N
      if iCount > 0 then begin
! P3 f# Y! f* d% T; _$ t5 T
         print ('say 请先脱掉带技能值的装备!');+ c% E5 @" c% F  o
         Name := callfunc ('getsendername');
/ ?# f8 d+ P" o& Y
         Str := 'movespace ' + Name;
$ d% S# T! z) ^: ?
         Str := Str + ' user 49 106 55 100';- |3 w5 H' S& y
         print (Str);+ G0 Z% |$ d9 ?& A) ^
         exit;6 D7 L6 f/ E+ Y3 w/ o
      end;
( D9 ^( j3 |( [$ n9 s, o
      Str := callfunc ('checksendercurusemagic 0');$ K1 D  D: [/ a0 O( U! L: Z: r
      if Str = 'true' then begin
% w7 G8 t- ?1 q6 @
         print ('say 选错武功了!');
$ J" E$ W2 t7 _! z
         Name := callfunc ('getsendername');
( A0 Z4 t2 d6 R, X: _: K
         Str := 'movespace ' + Name;
* L& ~5 g, ]( T- i7 d0 e, w
         Str := Str + ' user 49 106 55 100';, j$ i% t( s3 [* X
         print (Str);
5 K" ^1 J+ u/ `- J/ S: g+ y
         exit;2 r& u: @/ g+ Z* |" c
      end;9 E+ q; u8 X7 B' W5 M
      Str := callfunc ('checksendercurusemagic 1');
+ U6 z% k  n8 e) Z) W0 I
      if Str = 'true' then begin6 ^* j$ d! C2 E* E5 K3 U# i5 I( j5 A8 P
         print ('say 选错武功了!');
, t. m/ n0 x, v: ]( C& }& r* h& j
         Name := callfunc ('getsendername');% I$ f# T- Y  W' T
         Str := 'movespace ' + Name;0 I7 B; U  \4 E0 Y. R- i$ Z
         Str := Str + ' user 49 106 55 100';) s' v4 o0 b9 O% [/ ^6 Z* e
         print (Str);% P" H- V; w  Q7 ]
         exit;
4 p: O/ \/ ]2 F* T- W% ~. b, s
      end;* M+ N* [. [, z$ [8 v# H# x
      * n, f2 b% y; s+ q! j; T- h  h; ?
      print ('directmovespace 一级雨中客 npc 53 20 18 0'); ) ]3 v5 ?+ x& N) ~( M
      print ('commandicebyname 一级雨中客 npc 500');
; u2 Z- N! d, X% _
      print ('setallowhitbytick true 500');      
# _/ e9 B, J2 x
      Name := callfunc ('getsendername');
, R6 t5 A0 k4 T* p. }$ F
      Str := 'commandicebyname ' + Name;4 v/ z/ ~2 x3 t3 a# Z) B
      Str := Str + ' user 500';4 k5 U6 f2 M* L* D# f& [  `3 \
      print (Str);
: J$ }4 r! H, N8 S$ m5 @" B# {, j3 _
      print ('senderrefill');
2 ?$ M. Z+ U/ ]
      print ('say 领教了 50');/ O0 l  d3 W8 K% V# g/ U5 {  X( M) L2 o# Q
      print ('say 开始吧 400');  N, z5 ^/ V, c
      exit;8 m6 K( f; n, b
   end;
0 F5 n3 H- l( J3 s6 _8 N
end; 6 T6 b1 k7 Q8 B
procedure OnCreate (aStr : String);5 y% I* S2 V) p
var
% K9 ~" H* O# O! A# {9 i
   Str : String;
/ F4 \# F# b2 C/ W+ l# a0 e) l
begin9 l8 d5 `1 G4 t% ^0 r2 h' p
   Str := callfunc ('getsenderrace');1 G- C% @4 B7 y  q$ C$ q  F4 w) R
   if Str <> '1' then begin0 @: f; h) l$ v* X4 D6 c" }% ]+ S
      exit;5 {1 r8 T" I9 K
   end;
1 I0 c- A& C7 [" ~, d
   3 T9 @# p3 {  o3 G$ y9 D
   Str := 'showwindow ./help/一级雨中客.txt 1';
# E. O# H: o0 r: z0 `) D$ e7 X  n
   print (Str);
. V2 [# b  f* s! d, k/ z1 U
   exit;2 K- }  @" L1 }3 D2 Q3 M4 R
end;
- A+ w( z; B, X4 l( v& u# @
procedure OnDie (aStr : String);: t$ p# [! p% }. D; f3 {
var
% h+ C  J9 |% W; l0 W/ M
   Str, Name : String;
- k6 R& R8 I  h7 |( H
   FirstQuest : Integer;, ]4 }0 Z7 f3 M3 z+ P
begin2 ~/ ?  h' p2 n" X+ v& n
   Str := callfunc ('getsenderrace');: ?5 F3 P1 G# \& a  o. b* x
   if Str <> '1' then exit; / I; l2 m& @' z! E( v
   Str := callfunc ('getsenderfirstquest');
) G- w3 F" Q: C4 ~5 d4 L
   FirstQuest := StrToInt (Str);
+ [1 S- F9 e, q* d& R& @& Q
   if FirstQuest < 5 then begin. n$ X$ F; v7 r8 s" o3 B  J
      Str := callfunc ('checkenoughspace');
$ \$ U6 n( _* ~) n1 N
      if Str = 'false' then begin) V3 b# R2 ]9 F( W8 ]
         print ('say 物品栏已满...');- M" C9 g7 K- k4 `8 G' R
         exit;
6 i+ e- q# }0 h5 R5 p/ ~
      end;
4 n  u7 u' ]1 H
   + }5 h0 |9 |/ E( }
      print ('changesenderfirstquest 5');
' o8 e2 K  X4 ]+ z# {
      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');
: }9 e8 D1 L0 O, D
   end;
" ]- |+ e9 K( @9 }3 v  o
   print ('say 早料到了_佩服 100');
: b  H$ Q; k; n% Z6 i/ a8 r
   print ('mapregen 54'); $ \+ q( d0 p3 q# R0 P3 C. ^
   Name := callfunc ('getsendername');
$ h4 E# \$ y& h
   Str := 'movespace ' + Name;* d6 j3 W# r1 ?& p) i4 f/ {; A
   Str := Str + ' user 54 17 18 500';3 z# v1 ]9 O  x9 i3 }7 U
   print (Str);1 `$ i# f, o# c
end; % u+ C$ Y. q+ D0 @
procedure OnChangeState (aStr : String);
- m+ Z" d! `* Q# [' b. M
var7 |- S( d8 Z+ g8 w2 ?
   Str, Name : String;
" D# m( S( ^5 N2 C
begin
, p! a8 |% ?6 m1 x
   if aStr <> 'die' then exit; ! K9 V# _& W! l: K5 [
   Str := callfunc ('getsenderrace');" o0 G* R9 ~2 Z, D' Z# P( h/ B2 H# m
   if Str <> '1' then exit; " v8 A3 X7 R+ @) ^: s
   print ('say 不错。只要能维持几秒钟');
% Y0 R4 b5 c$ [- L2 J2 M
   print ('say 到那时谁都不是你的对手 400');
& y! g' Z, X# w# t
   Name := callfunc ('getsendername');
3 w! k' w. k& q5 a# f' C1 Q
   Str := 'movespace ' + Name;0 A  R; j4 o9 [% j5 i, q
   Str := Str + ' user 49 106 55 600';
9 W  U6 D, Q" M. |
   print (Str);3 i! {  G  x0 e
end; ! \7 C) d, T6 N1 N
end. 8 p# b' O* R  c5 I2 a4 n5 Q
--------------------------------------------------------------------------------------------------------------
4 j9 f6 v7 N  \9 [, W- m* I7 V- g
unit 一级老侠客; ( o8 X  T( W$ h' o0 k% M0 d
inte**ce
3 W$ V2 h7 L: W, |3 u
function  GetToken (aStr, aToken, aSep : String) : String;5 {& D& c, \" T7 ]; k3 y" m# v- f
function  CompareStr (aStr1, aStr2 : String) : Boolean;" |- K( Q. W3 p) [) R6 W3 L
function  callfunc (aText: string): string;
: m' |: t; \( V9 g+ u% m8 M
procedure print (aText: string);' W- r. \9 ?& Y  A+ I
function  Random (aScope: integer): integer;
& u5 l9 `; N6 U% n; f& q
function  Length (aText: string): integer;
: L6 u# s3 g2 A- {. y
procedure Inc (aInt: integer);
1 C8 A9 X, u+ i0 ^0 Z
procedure Dec (aInt: integer);
6 p7 V7 \. z, @2 H
function  StrToInt (astr: string): integer;) n9 T* ^, g( x; r
function  IntToStr (aInt: integer): string;' d/ S/ u9 l/ ]! Q. m8 _
procedure exit; & X' T( P2 b% ?. w
procedure OnCreate (aStr : String);9 k; _) V* e8 r$ R) F& N
procedure OnDie (aStr : String);( z. W9 v) ~: ^4 o( _  m
procedure OnChangeState (aStr : String);1 A& T# ^% u- H2 B# _
procedure OnGetResult (aStr : String);
8 P& e4 V& a' U( }/ P
implementation " ?8 M* p5 \/ A! ~/ w. Z
procedure OnGetResult (aStr : String);
4 o$ w5 H# s9 c7 d8 t2 z
var7 d4 t3 O1 ^8 w8 e3 u" A
   Str, Name : String;
) W* i) p6 i3 i" l; \: x: l# @
   iCount : Integer;   
6 u6 {( y9 C* y# b, [% z
begin/ ~, F+ H  c" H
   if aStr = 'start' then begin5 h/ a' U( ~. V* Q7 ?, V' r, C+ d
      Str := callfunc ('getsenderserverid');) V3 B5 m+ b8 s% F3 P
      if Str <> '54' then exit; : W1 h( e( L  m& C, M
      Str := callfunc ('getsenderrace');& z6 U* x4 h# N" f* }, K+ c
      if Str <> '1' then exit;
) x2 {: l5 e: @3 ?$ N$ k6 c
      Str := callfunc ('checksenderpowerwearitem');
( Q8 l1 A( }, s; D2 ?
      iCount := StrToInt (Str);
: m8 L/ a2 D* k2 J8 U8 w* |/ u, V
      if iCount > 0 then begin) t& _) M3 X( Q  D" P
         print ('say 请先脱掉带技能值的装备!');
9 z. Q, T4 ?) ]
         Name := callfunc ('getsendername');1 a' V7 w' n( g# ^0 U$ W1 {' l
         Str := 'movespace ' + Name;
$ O  K) S" m4 `- j' L8 J# D: k: q" A
         Str := Str + ' user 49 106 55 100';
0 ]6 l2 J: n* o% l! x) {$ A# L
         print (Str);
) M4 F3 M2 }0 U. P
         exit;
8 \. F# `6 ]4 M0 t  b  c! G
      end;
$ p) W1 M8 o+ k. b
      Str := callfunc ('checksendercurusemagic 0');
5 @9 K/ I% O" k( a! D2 A
      if Str = 'true' then begin* r' ?. O8 P2 a; L3 y+ M
         print ('say 选错武功了!');8 N  w% c3 A* H: Z
         Name := callfunc ('getsendername');& _- F+ L/ ]% j
         Str := 'movespace ' + Name;9 J0 ^' r: T7 N9 a$ i
         Str := Str + ' user 49 106 55 100';% q, q, l9 t# N
         print (Str);
  I6 ^+ V, J2 K
         exit;  @0 s9 @6 O5 e1 v0 K' D% k
      end;/ ~4 z* D. ^' }$ i8 @5 k! p: \9 ^
      Str := callfunc ('checksendercurusemagic 1');
( j  n! }: E1 ?9 e' }
      if Str = 'true' then begin1 c( o+ i! o1 h) y
         print ('say 选错武功了!');
0 v# r* Q7 P* k5 C$ g  x
         Name := callfunc ('getsendername');( t+ M* |+ }' P
         Str := 'movespace ' + Name;
6 a( p0 q  R- I1 S0 x
         Str := Str + ' user 49 106 55 100';. G$ {. i" O$ ?1 \% m9 R0 `
         print (Str);9 V6 L; V& C& b( Y
         exit;# q: T9 `6 |4 v0 N% C
      end;& r% d9 p$ a& @7 j0 Q
      
+ `) @9 B; A/ C3 y6 B3 P
      print ('directmovespace 一级老侠客 npc 54 20 18 0');
9 n& ^# c6 N/ \) M- a
      print ('commandicebyname 一级老侠客 npc 500');
' M$ G/ O3 z. l$ m
      print ('setallowhitbytick true 500');      
' T; O/ o  R1 d- A2 r/ g
      Name := callfunc ('getsendername');" G/ ^$ @1 R, I
      Str := 'commandicebyname ' + Name;* e3 ~8 C& _+ Q: R
      Str := Str + ' user 500';
! m: e+ d: M6 N5 a
      print (Str); 1 ^& {% L! a$ l$ a# U6 T
      print ('senderrefill');
- ?5 {" y, |* J2 C
      print ('say 如果你实在想比 50');9 F, g6 e2 `% k$ r, v$ i1 ]
      print ('say 我将奉陪到底 400');9 z3 E, `1 l$ e$ P; j8 Y* ^& ]
      exit;+ P# i8 O$ o# D/ Z" B+ x  b! s
   end;
3 h* ]% r; L# U/ C
end;
/ q; K& P' V$ t% ]) K
procedure OnCreate (aStr : String);
2 y0 p" }( N1 c4 ?& N. Z, ^. L, X
var
4 l# U3 m/ Z! n
   Str : String;
5 }1 G" Q# s1 T- k7 u
begin
" N3 v& H, c* A+ q9 L5 O* B
   Str := callfunc ('getsenderrace');+ p8 o9 v6 ?' c' L# N
   if Str <> '1' then begin
% Q5 R- x: ?5 w6 e- g2 `+ j
      exit;
  {' E# @" z/ I- I& s0 o
   end;
! T  }/ e7 p7 q4 A  p- }- B
   " b6 X+ w7 C) D8 \+ [6 B
   Str := 'showwindow ./help/一级老侠客.txt 1';; d3 `2 h/ |; I) e2 _$ C
   print (Str);5 c( Y" H  n: Q! [- z. v/ x
   exit;
5 u" i& m" R  G& N# N% c( C4 h
end;
, X% ~5 g7 ?% Q" q! ]; b
procedure OnDie (aStr : String);
9 S6 ]! k; o4 Z9 X- O0 U8 a
var9 E" U' e, U; y& m9 |1 A
   Str, Name : String;
( I4 d/ w4 E; e" W
   n, FirstQuest : Integer;   " W. q; g/ z0 G
begin
1 q  \) m" L' X- p) D6 k0 h0 _
   Str := callfunc ('getsenderrace');! ~" N3 B8 I% B- U
   if Str <> '1' then exit;
% L* Y& y/ j* t1 H/ [  y: M) h, m
   Str := callfunc ('getsenderfirstquest');, N2 B2 J+ ~) s9 I5 U7 t# c1 `
   FirstQuest := StrToInt (Str);
; X7 |) _+ d! }, s) M( }+ j$ L7 @) \2 H
   Name := callfunc ('getsendername'); 5 M( d; P. v1 e% Y* P$ R
   if FirstQuest < 6 then begin6 t1 E/ p5 V0 y3 W6 L
      Str := 'sendsendertopmsg ' + Name;1 x3 h9 h7 [1 K: d. O
      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';
3 i3 e3 T/ ]* }5 ]
      print (Str); ; }# h! q/ f( S* l0 G
      Str := callfunc ('checkenoughspace');% T1 D# }" c3 l) k
      if Str = 'false' then begin. Y( v0 I1 B( k+ z
         print ('say 物品栏已满...');  ~' U/ W* L1 ?+ ]9 o% H
         exit;
% I% o6 ]3 T2 d
      end;, L! m3 h. L3 k
      0 c) ~3 k; i7 ]6 M2 f2 k
      print ('changesenderfirstquest 6'); 9 H! C7 ?# v. ]0 B* l9 l. c
      Str := callfunc ('getsendersex');) h) t8 E2 \% C- |. s- ?7 v
      n := StrToInt (Str);
2 t. Q. X6 z! D
      if n = 1 then begin3 x. e7 u& P- ?( q! \6 l4 _* n
         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');1 ?: u2 }" [5 K
      end;* j- ^) v- c7 i0 }1 U  B  @# n$ l
      if n = 2 then begin3 d) }. ?: _* p
         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');
& R( x, U1 _) n5 J# Z) M, Q. c
      end;4 m, \7 ~5 ^& d4 y; _: v" f
         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');
/ H7 S9 V4 I% h( b' k2 d/ }
   end;   `* d( O1 I- n
   print ('say 佩服_佩服 100');
' B/ I. p8 [! Z5 X
   Str := 'movespace ' + Name;
+ M* z$ N: B  T7 w, K
   Str := Str + ' user 49 25 35 500';7 ^) x2 q) X# Z9 w6 C: @: m
   print (Str);" o) q% i' R% Q6 O0 D
end;
- d! O2 Z) @% }
procedure OnChangeState (aStr : String);( l3 P; \( h' ?6 J; C8 W* b1 y
var, k% Q; Q6 J' |% j5 ]
   Str, Name : String;
$ t! r& O8 F5 @# S& k
begin
& k6 t% Y7 ^/ V0 s, r
   if aStr <> 'die' then exit; 9 Q  I% D" W! ~! l( ]- f' i
   Str := callfunc ('getsenderrace');; U  j: {6 l( w2 N: `- h
   if Str <> '1' then exit; 0 e. _! E  l; D8 B/ W
   print ('say 小小年纪_就有如此高深的武功 50');  e9 Q  d2 {; g9 P
   print ('say 日后要继续修炼... 400');
4 a6 l: t7 L& M
   Name := callfunc ('getsendername');$ E* t2 O/ a4 G% I% I8 T
   Str := 'movespace ' + Name;. A1 ?6 @  y- q; A
   Str := Str + ' user 49 106 55 600';! R, O5 w6 d# C; j7 f6 ]9 [. c/ `  W  H
   print (Str);
0 z4 U$ R7 i0 Q  |& ]  z/ y1 J, T+ U+ O* @
end; 1 ]# H5 I8 b; o/ D7 e
end. / x" e$ B" n+ P
------------------------------------- . u) [$ `: n2 o
************************************* : ~; q  C- ]9 s
奖励物品代码:
; k. k- ^# T3 z
*************************************
8 G2 r. {+ p9 L
男子侠客弓服,男子侠客弓服,24,新手村擂台战利
  E  H% W" Q+ E  k8 n
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10 . q# k2 d' t; I/ ~
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,% g. _, c. H% U* Y# \5 T9 K% e
女子侠客弓服,女子侠客弓服,24,新手村擂台战利
  I1 e& W! g8 ~3 E5 z; L2 u$ R! I
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
# ~! Z% s: {8 @# [
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,% D* U% T! v( m! b
新手训练拳套,新手训练拳套,6,新手村擂台战利 9 ]: [( M# \- G. k
品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
! Z& F0 F$ H. V. l2 G) ?+ a
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
. H! {. f# x: W. b/ w0 Z
新手训练神剑,新手训练神剑,6,新手村擂台战利 ( F) S$ h7 ]' d4 y4 u- O
品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
& k# a! @$ i, ^! e! a
,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
) U" n% ]3 r( @
新手训练弯刀,新手训练弯刀,6,新手村擂台战利 - y7 }3 I' _' W/ t/ J* k
品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,, 2 o# i1 e% l+ f2 t% Q9 g: K
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,0 k; Z( b1 F/ E* l- t/ N3 c3 a
新手训练长矛,新手训练长矛,6,新手村擂台战利 - d, x7 [( \  P1 p7 Z' q8 r
品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,
7 I9 t# d, N! L6 g
,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
9 I) }0 u# B8 V4 D) v
新手训练大斧,新手训练大斧,6,新手村擂台战利 9 _1 |: e. u1 O; x9 Z4 M" x9 _
品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,
  A/ Z6 q/ Y! z9 {$ w3 {- ^: U$ b
,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
- Z0 ^' |% i* z8 s" K9 e. F, o- X* k
******************************************
: L6 G, A+ T7 v8 E9 g/ B





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