三千论坛

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

作者: 异仟年    时间: 2022-9-5 20:23
标题: 新手村擂台脚本
新手村擂台脚本
( z" [* h0 F3 B* {+ o4 N* }
  c4 S0 B$ R, ^$ j* m, M/ L! |, T& J/ q7 T
释放到同名文件夹下覆盖原有文件。
! c. x8 g7 U) F" w1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。: B7 E- Q/ b4 _3 W: j
2.Item 里面是任务发放奖品的物品资料,把我发的加进去。2 P& u; g' {8 S: ~2 N3 f
(由11月23号发布的最新服务端修改)& c2 O0 T7 c' A; _5 c' a
-----------------------------------------
4 g+ T' i8 e9 ?5 d6 t3 F内容介绍:
; E* l$ X0 b: w4 n! s新手村比武获得奖励:
3 Z6 l3 m; m8 X7 l; ^% v5 f. U同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0
2 m) ~- j4 ^/ e6 _% h/ h2 {4 s+ _" ^
+ K* F8 F7 g/ {' R& V3 l! Z7 a5 C
+ \8 s/ K- O2 p1 }& _最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较
2 H8 I6 p* E5 j; Z. F  M; Z8 v! b: X+ t& o1 G6 e- [
喜欢黑龙,所以是黑龙的加强版!)) `" F* b' H) ?  R- J6 s1 @% t0 B$ v
" m" c/ D3 r# q( F- ?' x+ ?
[replyview]3 D; K2 h. F9 W

/ }1 c$ v- }6 I5 A" `6 |2 \-------------------------------------
* N# @1 s" W% S2 f& n5 [1 C0 e& x; x  H; @- c# D( ~* C5 n
unit 一级梅花夫人;
/ ^4 d! d% N2 o! T- L* O) t% O2 M% O  `) c; k: e' F
interface
/ ^: j2 x3 ~4 _4 X
! r% s% K/ V% `) vfunction  GetToken (aStr, aToken, aSep : String) : String;' b$ }+ i& b2 @4 Y- Y5 n" O
function  CompareStr (aStr1, aStr2 : String) : Boolean;& M2 I! G, O. z3 E
function  callfunc (aText: string): string;
1 e# Q, g% w: _procedure print (aText: string);! ~/ \; o6 B4 J+ o4 O8 q
function  Random (aScope: integer): integer;
+ M/ ~( `$ V, |6 Lfunction  Length (aText: string): integer;
; D' y" ^! b; Yprocedure Inc (aInt: integer);
. e' M/ x# s3 v$ l' J) m0 Xprocedure Dec (aInt: integer);
# E( \! [- j/ x& ^+ [  Gfunction  StrToInt (astr: string): integer;) b8 T, Q( b1 C, `6 B  Q' x, l, A
function  IntToStr (aInt: integer): string;
1 I, b/ M& ?3 O1 y, Rprocedure exit;
$ S- q( h! ~9 U; G' w5 O+ ?/ _- J9 Q0 L. _; J5 R
procedure OnCreate (aStr : String);3 v- `  N( X1 l/ ?# m
procedure OnDie (aStr : String);8 t, T7 B2 h/ L, J& e& C8 O& d  v
procedure OnChangeState (aStr : String);* A& p$ X/ `0 A/ m' y0 l% L
procedure OnGetResult (aStr : String);
7 y) u1 d  y( b) l- m
) P4 Q. U0 R5 o) ~& `  Q( d$ eimplementation* B5 n2 }4 l" Y5 u. C/ m- ^, Z
  f: I! s; \6 `% h6 p3 O, q: R
procedure OnGetResult (aStr : String);9 w7 [3 ]5 W" l/ S; [2 H6 z$ z
var
% n9 _% g( b! J6 `+ `7 K+ T: K/ M   Str, Name : String;
! Y* [' `# r; t; Z/ s   iCount : Integer;# ^. M8 h( f1 }/ f4 b7 q$ G
begin* u- S5 ^7 x  S7 d
   if aStr = 'start' then begin
5 P# C4 i6 L$ d. B      Str := callfunc ('getsenderserverid');
  y! y: {  l7 J9 |      if Str <> '51' then exit;
, }% Y. Z! ?+ {; ^5 D+ U8 @3 H% z. i8 M8 F7 U5 m1 |9 l, H
      Str := callfunc ('getsenderrace');& U/ [/ v9 W' f" a7 U& C, x
      if Str <> '1' then exit;9 O8 ^9 P) o) H7 j$ p) g& g5 W) \
& E( \  y; U, Q
      Str := callfunc ('checksenderpowerwearitem');
2 @& I! @4 c3 m) o) I6 w      iCount := StrToInt (Str);9 Q% T$ n, u% q
      if iCount > 0 then begin
8 ~) g+ m9 l+ y9 J# p) t  q         print ('say 先将带技能值装备脱掉!');
" T$ N$ [, g! e1 r7 n: }# V         Name := callfunc ('getsendername');0 y4 x7 g+ {) s6 [( ?* G
         Str := 'movespace ' + Name;5 u: D5 E1 X& \; H; {3 b
         Str := Str + ' user 49 106 55 100';
/ A) w9 |/ j' a0 p         print (Str);/ m+ O4 f' D& d. D
         exit;
$ G) I5 _' Q) H6 E6 S      end;4 p& T% S6 I0 o- |( F! y
      Str := callfunc ('checksendercurusemagic 0');
# W5 n9 j' e- u  o      if Str = 'true' then begin7 [3 L" s0 E6 M9 W0 O  H
         print ('say 选错武功啦!');8 r( f7 ^# O3 y: V
         Name := callfunc ('getsendername');
0 a2 R& G" Q; A9 ^3 c         Str := 'movespace ' + Name;: Q' K( n# V7 A2 L/ x
         Str := Str + ' user 49 106 55 100';
8 O7 B" l0 q7 y! T         print (Str);; s1 B5 U% j5 b, M* f# G. _3 v+ D2 B
         exit;, {) v- f' a0 x) ?
      end;
; v9 U& q& ^% B6 C& }3 H      Str := callfunc ('checksendercurusemagic 1');
$ ]8 U7 v& A+ x' f      if Str = 'true' then begin
2 G+ E. T! \: T8 }5 V8 l' H         print ('say 选错武功啦!');! s  X8 {2 M- B# _
         Name := callfunc ('getsendername');
0 q" i" t% h3 _/ c; d% }% J         Str := 'movespace ' + Name;0 a0 i, n5 |0 G! u/ C$ r/ y! [
         Str := Str + ' user 49 106 55 100';* o# a; G/ Y  e2 Y4 }, d2 ]
         print (Str);7 V- \. f. M9 ^5 U7 F) H* i
         exit;
" y$ M8 F3 W2 X! |      end;
4 v. o# q6 g. u- i% B+ R/ d- j: o: B9 i: v; R6 P: ~+ ?
      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');) f. _) ?! B) l, `! F
( I3 B, |1 b0 q" ]1 ^/ s
      print ('commandicebyname 一级梅花夫人 npc 1000');& U8 P5 C" Z1 e8 W% S
      print ('setallowhitbytick true 1000');! ~& M. c; ]4 e7 b% c
  K5 V1 W# g0 u) m# B$ A
      Name := callfunc ('getsendername');
* A  b- q* ^* u: m* |2 S      Str := 'commandicebyname ' + Name;! t, |; Y$ F+ ]( F: L
      Str := Str + ' user 1000';: M  O- b1 h" B1 _, H# r# \3 }" d
      print (Str);% o  N0 r; a0 w8 X

/ H" c# M3 S# R      print ('senderrefill');# A4 u# d+ O  t+ }

. j4 t, D! h5 r8 ?( T" g2 o4 n      print ('say 别害怕 50');# v6 U! ~* @3 I* |3 Q
      print ('say 我会收下留情的... 400');
( }, k$ [- p0 U0 `- L, o1 Q      exit;
/ P) g3 A5 h1 ~, t+ z/ y   end;; w  k( {5 x: Q9 S: A* b
end;( K: H" [0 Q5 [9 V, n$ r. p
  J* q, J. c, z. p/ r5 O
procedure OnCreate (aStr : String);6 w3 s+ t5 \$ k+ ~0 T
var' l1 y- @* }# A/ D; s
   Str : String;
! R0 V1 z4 F; o: o* qbegin
! g! `% C# V+ `9 q% `% ^9 z( X* {   Str := callfunc ('getsenderrace');
% ~1 m8 J; ?( G4 \. @2 n   if Str <> '1' then begin
; x1 I9 |) j+ J/ E      exit;$ |  {/ G, z# Z% P
   end;: \& ~2 f5 B% H6 B- N) @5 s5 P; N

# a$ s* P( S) [   Str := 'showwindow .\help\一级梅花夫人.txt 1';
0 W, J% s6 @( j  S; a$ v! g   print (Str);0 w  Q) e; y: E  U) z
   exit;' A0 D+ S  e! |2 o0 v
end;) E, s7 O6 f  J' f' H: z9 M
1 v# B( c, r0 u& Y) @0 [
procedure OnDie (aStr : String);4 N4 O3 w' j: N) g7 O
var+ S! }0 f) j6 W; ?, C
   Str, Name : String;
1 Z. T$ k+ k7 _6 d  o, U4 p9 J   FirstQuest : Integer;   
" w* J9 H$ p# x; L. q& Ubegin
4 @$ a5 ?3 s3 V  s' h+ }1 h   Str := callfunc ('getsenderrace');
% O8 ?$ U6 s6 y, ~2 r1 x: B   if Str <> '1' then exit;! f  c, X9 J8 _" C# ?' N' ^3 b
+ ?% p% j' Y& K, x3 m3 c1 w1 a
   Str := callfunc ('getsenderfirstquest');& G% b/ ^- S2 o4 c. \
   FirstQuest := StrToInt (Str);1 M# ~: r2 c& B8 V- x) E* F

* h9 F4 w$ \" G/ `) K) P- H! P   if FirstQuest < 3 then begin( n: s/ R% O$ A" r+ Z, O  X; Z
      Str := callfunc ('checkenoughspace');
0 |1 \5 Y  @% V4 V' [6 l      if Str = 'false' then begin- s( I3 o! _+ k! ?
         print ('say 物品栏已满...');6 Z- y' J7 W! Q' \9 M& ?6 k2 F
         exit;
! k# \4 e3 s! X4 Z7 W5 j) Y      end;/ O. K9 n$ b9 F: q9 F/ L

# H% P! p/ _/ h* \" D) a  s0 H      print ('changesenderfirstquest 3');
7 F. N& y! y5 _' l7 C/ p/ G: a      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');
; w$ D8 n  _3 f5 b6 p- o" r/ p# z+ K   end;
& S! E7 k9 n( P2 Z4 ], t! q: y4 W6 y; Q5 L" Q. n6 [, m6 D1 l; ^
   print ('say 我可只用了3层功力哟 100');/ |% j3 h8 A% f4 N  U

' E- f% T1 ~9 v9 v   print ('mapregen 52');  P' ?3 F* v) W7 v

' ]) Q  t) o" t2 K( P; t& f   Name := callfunc ('getsendername');     r! \# E6 ]  y: m
   Str := 'movespace ' + Name;
0 ]8 S* O0 {: f( s9 @   Str := Str + ' user 52 17 18 500';- |1 K& u/ z$ A! W+ A% r
   print (Str);+ ?0 p7 L( D* W, b7 y' z$ U: t1 ]
   exit;3 U1 n7 p. O" T: D
end;
8 L$ f" l! y4 y2 b4 d
0 _5 V2 ?# A' {/ O$ _procedure OnChangeState (aStr : String);/ L3 x  }& Z+ P; I; r/ U  U
var
  O: t/ h9 W  @5 w% J4 q9 ^   Str, Name : String;
$ F/ P7 I9 G: B* h4 W( g, S7 d: Jbegin# i' z% [& r- e/ ~
   if aStr <> 'die' then exit;: _+ {6 U" }. V; e# M

4 o$ Z$ k8 {, A( B; [' s* D   Str := callfunc ('getsenderrace');$ ^2 l( ?/ ]" E5 X9 b
   if Str <> '1' then exit;4 X" O$ J* w+ G1 }

+ R- ]# q( \8 c7 p, ]   print ('say 别无他法 50');
1 |2 C, z( I8 i" |, {( l( c   print ('say 是不是修炼方法不妥呀? 400');0 c+ C) {, V5 j: b/ {

) m9 b7 F3 V$ L, N   Name := callfunc ('getsendername');# K- a: J5 ~' s* Q4 v
   Str := 'movespace ' + Name;7 n7 ^2 r$ f2 P9 c: k  `$ n
   Str := Str + ' user 49 106 55 600';( ?" D1 T5 J/ l3 W, d) Y
   print (Str);
$ P& h$ `" a4 {. u9 {  wend;
* y7 [" N+ H7 I- J0 l' h
! z, f: {* |' L) j) Uend.+ x; h- F: `% I
-------------------------------------------
. T9 z, ]! y* m2 T6 Tunit 一级捕盗大将;- }% e) }  @% W7 @
. y% {; L  o7 c4 E* d# o
interface/ P6 x+ X: H/ C7 o3 V) y) T# p
3 g1 \6 _3 X2 t. p2 g1 n8 q
function  GetToken (aStr, aToken, aSep : String) : String;) h6 ?8 W$ A( h' B' U1 m9 ?
function  CompareStr (aStr1, aStr2 : String) : Boolean;3 h, ^, W' [7 [
function  callfunc (aText: string): string;
& z7 q* V4 L/ Oprocedure print (aText: string);
* P6 j3 l1 R( ?function  Random (aScope: integer): integer;
3 b) a3 n& P9 H  _5 ifunction  Length (aText: string): integer;  r. S7 C/ X) ?# v) W2 q
procedure Inc (aInt: integer);
5 a' |$ n" x* z' ~' w' mprocedure Dec (aInt: integer);
5 S" ~8 Z2 @; m- p; h9 {function  StrToInt (astr: string): integer;0 E+ e, U+ F- O0 O
function  IntToStr (aInt: integer): string;/ \3 ^1 O. I9 K+ b# F
procedure exit;6 z2 v4 ^) R) m8 _& R' J
7 y2 Q# ?3 g. O. P$ n, j0 K. C4 c
procedure OnCreate (aStr : String);
! n: X% _2 |) H+ {1 x; M& `$ F. Aprocedure OnDie (aStr : String);
6 O6 A9 ]& E4 Xprocedure OnChangeState (aStr : String);! ?/ H( N. k, ]
procedure OnGetResult (aStr : String);* p# a+ F* @3 H. z7 @2 N8 n
4 k4 H/ I& D; |9 _* c6 n0 X7 S2 v
implementation
& n1 A9 w, n3 b) Q% A# Q
; C; D: B( K' U" Z4 m; A3 Nprocedure OnGetResult (aStr : String);+ M' i6 X: e' }/ _9 i3 J
var2 V" F! J3 f/ C( F$ Y
   Str, Name : String;
" R  G. X! Q8 Y9 S& d9 ^$ J   iCount : Integer;   
* R% l* t" T# K. Nbegin" E" U' J$ \6 W( q8 @4 c4 W9 y: H
   if aStr = 'start' then begin2 M( {& j, C9 u: _: @/ s% A9 n
      Str := callfunc ('getsenderserverid');. A# {0 d- I9 B  h* t6 c
      if Str <> '50' then exit;1 W6 J! i: N/ \: m- j, _* s. q

: A/ N+ x% c* j      Str := callfunc ('getsenderrace');
, U1 }2 L! j! [      if Str <> '1' then exit;# Y- u% l5 Q  y# b- N+ V7 _
, w# C% ?+ W3 w, E$ |0 @  u
      Str := callfunc ('checksenderpowerwearitem');3 K2 e1 a3 D% q, p
      iCount := StrToInt (Str);: X/ v0 x& u2 M5 A; }! Z
      if iCount > 0 then begin
% Q# A7 ^- H# A) X7 n2 }         print ('say 请先脱掉带技能值的装备!');& v- I) Z" x; ?! |1 `
         Name := callfunc ('getsendername');7 g; e/ d" B: X2 |
         Str := 'movespace ' + Name;
/ n& C2 ]2 @: ?         Str := Str + ' user 49 106 55 100';, `, v/ J) v5 v- o9 u# @
         print (Str);  M3 @" W/ e5 U' W. Y5 ]
         exit;2 X( X0 g) R3 o% ?/ _, s# R  [
      end;
' v' L0 H# k- i! ?& {. u+ ]: v0 c      Str := callfunc ('checksendercurusemagic 0');
# p7 @* }4 p+ d4 L' v      if Str = 'true' then begin4 V! P( p) f) s8 t+ e" v/ V
         print ('say 选错武功了!');/ _$ f  U) r0 v; p- K8 d1 [
         Name := callfunc ('getsendername');
) s% d( P; S, F         Str := 'movespace ' + Name;9 m/ O9 }: g2 @
         Str := Str + ' user 49 106 55 100';6 h( z( T9 {" `9 O
         print (Str);
& b1 ?- D4 Z, }" z7 A# R         exit;
, T1 d8 Z4 x! J! W& B      end;& t+ b! k4 L, }. W6 j
      Str := callfunc ('checksendercurusemagic 1');
% h7 u# q1 x* w/ J$ _/ [      if Str = 'true' then begin
* B: ]$ M0 j; D; L) y% ?  z' |  w         print ('say 选错武功了!');
2 v' m/ |* {# e& v  _* o3 m         Name := callfunc ('getsendername');
3 _9 F! u6 R, b8 n& N         Str := 'movespace ' + Name;1 H. i5 o( \7 _, l
         Str := Str + ' user 49 106 55 100';( |8 U+ `2 O1 Z
         print (Str);
; h* H; f$ M2 C, U" e         exit;4 r% B/ n9 P+ y1 K: E7 G
      end;( Q3 X* Y0 u" w8 `  S1 v$ I) @

5 N8 [( ?8 e6 D' Q- {      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');! E+ {, K9 }! ?( O
# @1 N2 S2 D( Z: U7 L
      print ('commandicebyname 一级捕盗大将 npc 1000');
6 Z. N7 a( b; `$ @! }# o$ P' r      print ('setallowhitbytick true 1000');
' S0 a1 O% X1 ~  r; ^9 V; C( G$ Y5 {1 p
      Name := callfunc ('getsendername');
6 A2 v; N* J" r: b) G      Str := 'commandicebyname ' + Name;  p( Q! q7 o( o1 m$ n  M! m
      Str := Str + ' user 1000';
! }- I  u+ K5 \3 u* M& L  H      print (Str);( q- t0 \" G$ w$ d, u
* c3 E8 f6 W1 K2 R
      print ('senderrefill');8 _0 ]( `' w5 k6 P

8 \3 W; P) {! }% B) w9 n      print ('say 你还太嫩! 50');& L1 \: B- h- K- |, W9 }
      print ('say 留神啦_我可不会手下留情 400');( E- G6 {8 C2 l4 _9 y
      exit;
9 B# D( G; e- ]1 a# c   end;
5 b; _( V+ c3 X& x7 r2 _3 tend;% M0 C2 B* U% o9 q

3 w8 Y+ N: V. `* ^. d5 bprocedure OnCreate (aStr : String);9 L* h" W) f7 e8 a! P  b
var
0 O/ F! ]- u9 c* j! a   Str : String;0 x' [$ ]1 B9 a' j
begin/ G. b. l1 }" p# |
   Str := callfunc ('getsenderrace');
1 g- m% a( F/ ]8 @; O, F3 ]   if Str <> '1' then begin( K8 {6 W0 |1 _
      exit;
4 m$ s1 [8 u; Z0 r1 U, A" ]1 M   end;
3 S$ ]5 x+ g1 P+ ~  R
& S- i5 _! H, [/ M% ^; o   print ('setallowhitbyname 一级捕盗大将 monster true');
# u) S" ?$ d0 i" e, G5 Z9 O- G8 e" H$ `' U1 t5 p% n
   Str := 'showwindow .\help\一级捕盗大将.txt 1';
6 I6 R7 a2 M4 q7 S; B. r3 v% e& o   print (Str);0 z: j) K5 j) o* x* G6 r; q
   exit;! P- l) x5 a- s& g: K9 H
end;
$ y% U9 B% B3 K5 `  \. Y1 [
/ u& E) @5 }; Y' p) ^procedure OnDie (aStr : String);* e+ g) W0 N! Q1 E; g4 S. `. {
var
7 q& v/ y' m# Z# ~- J! g8 b. _2 n   Str, Name : String;: E3 D, O5 Y# ^& H/ o% k# P
   FirstQuest : Integer;5 M' |, D# U6 I+ {& \
begin% A0 a* |' E( C3 H$ q
   Str := callfunc ('getsenderrace');
; f$ z) n, F) x% c# e   if Str <> '1' then exit;
! g7 Q1 a/ z* |( {/ k2 \' R, W+ [7 G  p/ S
   Str := callfunc ('getsenderfirstquest');
/ T6 [6 E/ Z1 ?% ]0 y8 x   FirstQuest := StrToInt (Str);& J# Y8 C" C, l/ t

- I6 o3 m4 {# `1 s# U, H   if FirstQuest < 2 then begin1 H6 S1 R' f8 S& L& V2 U, V1 ~
      Str := callfunc ('checkenoughspace');
6 D. u" a# }6 g! g/ C3 }  D' M  D      if Str = 'false' then begin
+ ^8 I# ]; S0 e/ n; i5 K         print ('say 物品栏已满...');* G( i5 t0 N- O7 G. v- J
         exit;
9 d/ b1 D/ p8 _$ K- h      end;
1 y: m# x! k8 k, m1 g; O9 }% p2 D2 {4 s5 H- |, d4 g8 p2 [8 s
      print ('changesenderfirstquest 2');! A- @2 g* |1 ^) D8 A+ ~. Y
      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');! Z+ Y% A2 M0 k$ d
   end;5 j. O3 N/ P2 E( c

4 W+ p0 f* E+ Q   print ('say 不可能_我怎么可能输呢.. 100');
) u- F; T, t; [3 e7 G
$ U2 R" I* \( x8 M6 t   print ('mapregen 51');# ?( z# b$ Z8 ^, X% L
1 j- ?* z- d% F- Q! E
   Name := callfunc ('getsendername');2 `% K% ^3 v5 D7 i& U/ D
   Str := 'movespace ' + Name;
9 @2 D" S* A! |2 R9 [. h; Z3 J   Str := Str + ' user 51 17 18 500';
9 B" t6 F9 H( n3 u2 m   print (Str);
- V. m2 w7 ]- l8 L8 a' }0 cend;
, C- \9 L" ~( g3 P1 E8 d) F4 k, d) I/ ]7 f" K5 P- X
procedure OnChangeState (aStr : String);
1 z5 G, F1 V( r$ ~! Cvar' T4 }( P- E( K) U8 f
   Str, Name : String;
/ N" R0 ?! V9 U. p$ wbegin+ o, }; ~* i8 U6 \0 N
   if aStr <> 'die' then exit;$ X& k. B/ A7 }1 G( \7 X! Z

: C7 U+ N0 p8 t8 S  O   Str := callfunc ('getsenderrace');. K+ K+ G3 ]' O/ v, o$ e
   if Str <> '1' then exit;
$ i- i1 A! a( \6 h2 W# G
: U# C4 Z5 {3 v  x7 l   print ('say 回去再修炼个10年吧50');  ?7 O6 p/ G- M' M( u
   print ('say 到那时我在用双手跟你打 400');
+ P2 s( ^: m5 o8 H) ?2 Q8 m2 P# u% \7 Y2 _/ b
   Name := callfunc ('getsendername');
7 Q( m0 v- o* r0 X' T( p4 i& ~7 t$ m   Str := 'movespace ' + Name;
0 T7 ]- Z! i" }+ R# j   Str := Str + ' user 49 106 55 600';
! K) n7 g) R% j! x) ?   print (Str);4 x: ~2 M! l1 p  `! h4 M# u

. U8 X9 J; Z- w   print ('boMapEnter 50 true');   
+ I8 q& |. M' c6 Iend;& H+ o0 S& c4 Z% `

" n% b4 e" r+ b; Xend.
$ i$ E, L0 H1 o8 b) v# ~7 r5 u! [( L" I4 t2 ~1 R: W$ C. o+ ^3 p6 L
---------------------------------------/ i2 {; i# [% u3 h
+ w1 d5 s# N/ G- Q5 o' @3 u
unit 一级牛俊;  }4 i$ G& L4 ?; H8 P
8 x" N2 b2 y0 M2 |8 h
interface
: J$ ?/ V; l. t) ], A4 O) _( Y$ }9 J! G2 k
function  GetToken (aStr, aToken, aSep : String) : String;4 b+ c; i+ @" {& r8 @
function  CompareStr (aStr1, aStr2 : String) : Boolean;
4 ]$ y' \% s$ D; Ifunction  callfunc (aText: string): string;
: S" M! w4 g# `+ d% K- fprocedure print (aText: string);6 a1 w% B! W. m+ F, r- `+ r* L
function  Random (aScope: integer): integer;- p6 [! t# O, ^; \6 n, i) A
function  Length (aText: string): integer;
! \# c0 c; n- C" L5 Q  X, pprocedure Inc (aInt: integer);
( C) ], f( f7 W7 X* bprocedure Dec (aInt: integer);
# F( V0 n. B  S- Q2 ~% Y' S- Ofunction  StrToInt (astr: string): integer;* i9 `: y8 ]* g/ U) j/ X. S
function  IntToStr (aInt: integer): string;
) T% r3 {, Y4 U' z# hprocedure exit;6 w7 u! L, [- a/ b  _6 z

! x' t: E' F' d: U/ j6 j- wprocedure OnCreate (aStr : String);
- k# k# _: Y: i  G5 }procedure OnDie (aStr : String);* ~2 z: o% b  ~5 [# ^
procedure OnChangeState (aStr : String);9 z, X8 d) ]( u( {; C  e+ i# g
procedure OnGetResult (aStr : String);2 F1 J3 t6 B3 c  U1 m2 [

' Y: ]6 o, V# |# r$ P( vimplementation
( I5 m8 c4 T. V5 g7 A7 a; r& J' _6 e
procedure OnGetResult (aStr : String);
' Z5 N; s9 |- a4 }var- J+ K6 ^8 s# v0 Q- v$ e# m
   Str, Name : String;+ H: w2 [7 w5 J6 D8 H  e
   iCount : Integer;
7 Z  A1 \7 S0 _# W8 S4 kbegin
7 d; e, @: g0 [   if aStr = 'start' then begin
, \0 n6 v8 g# L; G4 m3 o; E      Str := callfunc ('getsenderserverid');* A& a7 T' C4 }1 F% d( e$ ?/ @% h
      if Str <> '52' then exit;" _* e: x6 _# q" T9 p6 i  f4 d

  G; [$ L: Z: [/ x  u, K      Str := callfunc ('getsenderrace');
0 c! L/ b# r; S; P      if Str <> '1' then exit;3 k! p* h1 _4 f3 N
. D3 P9 o" Y! O/ F
      Str := callfunc ('checksenderpowerwearitem');
$ ?) I& I2 b. d* E      iCount := StrToInt (Str);8 T2 o: V) M2 r) t! N
      if iCount > 0 then begin
9 a5 B2 h. Z% N  k- a/ O: [6 C, o. k' z         print ('say 请先脱掉带技能值的装备!');0 j# h5 `. E& S! u, V, b8 M
         Name := callfunc ('getsendername');  J8 K7 {) D; c9 K
         Str := 'movespace ' + Name;
5 R0 g, N& s4 j9 ^         Str := Str + ' user 49 106 55 100';2 g3 ]/ X+ }. N, \, l% L: z7 I$ \
         print (Str);* K5 w; I0 n& O
         exit;
: b* [. H/ V7 l6 o* M& D7 c      end;
) E+ _, x' g+ A2 B* _5 s      Str := callfunc ('checksendercurusemagic 0');) a/ Q1 _" U( C- i
      if Str = 'true' then begin9 [# b  F7 k7 r7 w# F+ k) e: J
         print ('say 选错武功了!');
5 I: E: A( T( s. k7 J0 t         Name := callfunc ('getsendername');
7 A' u) V$ B# S         Str := 'movespace ' + Name;
$ U, `1 U' E5 o7 ]7 ^         Str := Str + ' user 49 106 55 100';- U  j7 ]5 p8 s( N" T* f
         print (Str);
! t9 _. V- L+ }9 ~. }, j1 D         exit;
4 k) J( c$ w. _# J" c      end;
- |8 M6 a+ w: j% z: D' z      Str := callfunc ('checksendercurusemagic 1');+ g1 g' c9 U2 j: b* G
      if Str = 'true' then begin$ x8 L9 }0 d2 M4 \; t8 l8 H
         print ('say 选错武功了!');2 P: e6 y' X; N) x
         Name := callfunc ('getsendername');
! \$ Q+ L! \/ Z: c; i7 Y  e         Str := 'movespace ' + Name;) ], B5 l) p: r* _! K: N
         Str := Str + ' user 49 106 55 100';
' O6 {* Y, y# j/ _$ M7 @3 ]! N+ Z         print (Str);7 H+ S* f' E) _! U( h0 P* K
         exit;
' I3 \  y, w9 e6 v0 M3 J1 ]9 Z      end;
9 T& R* C8 \5 D: c1 O# k; G* R4 O' i0 K6 t3 W: H
      print ('directmovespace 一级牛俊 npc 52 20 18 0');
; R1 D8 S& A2 d6 B8 F, K
; V- ~/ i1 ^# I5 _( Z! j  I& h      print ('commandicebyname 一级牛俊 npc 500');
$ V' ]! e4 P$ f- O+ A$ h2 q      print ('setallowhitbytick true 500');      # ?7 c" r6 }* E

5 k  _! J6 o7 C: Z      Name := callfunc ('getsendername');
' y; s2 C( Q: r8 q      Str := 'commandicebyname ' + Name;
9 ]* h$ C7 L0 @; w      Str := Str + ' user 500';! H  R. s" I$ @! Z& r2 f
      print (Str);
$ g& P! E9 r, V$ d
3 o* K# n2 s, ~0 Y/ f" ~      print ('senderrefill');
, b9 N8 K- A2 f3 y9 }
, e* c1 c- e6 S2 o      print ('say 10如果10秒内不能将你搞定 50');
- t) s9 J6 z7 H% l  d+ W. j# [      print ('say 就算我输! 400');
! `/ b: U% g* f' _1 _      exit;3 p( V! Z3 D' J* q
   end;
8 k. _' e2 W* a4 qend;6 ^( }$ R% ]; M# d( W% l" _
1 n' b6 b& U/ F9 z  j/ \
procedure OnCreate (aStr : String);
2 B" X8 x9 S) mvar
3 \# E) b* O0 g% x- l, m) T& x2 J, r' S   Str : String;
% R2 O( i- `, T) V( Nbegin
8 r, [9 G5 p# Q" p! |& K& i5 R   Str := callfunc ('getsenderrace');
- t- \; A. e# \$ r3 s   if Str <> '1' then begin
% q' F% m' k- w. M! \+ Z      exit;
3 h: I! b0 w9 V2 ]9 X0 W   end;
& k8 b1 e  B6 l) e9 @  p+ U
5 r5 M) k  X3 n9 g( p; u) n+ `   Str := 'showwindow .\help\一级牛俊.txt 1';
3 D% O$ o4 [- ]5 C* U   print (Str);; }2 G  @! e0 r5 l# x$ j+ z
   exit;
; W& r/ P) Q, S# Uend;8 W- e, [5 O/ k6 C

0 R; z" ^+ P- n* [! ^5 Tprocedure OnDie (aStr : String);
6 C' T1 o3 M5 evar6 W, r7 p, u' O, ~) T: q9 L
   Str, Name : String;
% Y5 \# |8 S- N* X& e   FirstQuest : Integer;   0 w: c# N2 f' N1 o
begin
. f- ~* g1 v' q8 s; g2 p0 r   Str := callfunc ('getsenderrace');
' j/ ]" k1 g' L4 |4 F   if Str <> '1' then exit;
/ p2 z& p/ V; r3 v
. l# m, d& I4 k   Str := callfunc ('getsenderfirstquest');
  }0 P4 }. M" v4 q   FirstQuest := StrToInt (Str);
8 a9 Z* C3 o( i! `( A8 K: g$ ]! e9 y! H
% b9 O1 [7 Y$ f   if FirstQuest < 4 then begin
3 Z/ t+ K% e2 F9 h      Str := callfunc ('checkenoughspace');
3 c4 B+ k8 ~  s. t! T      if Str = 'false' then begin& ^$ a& Y% ~0 n% r! u, G) d
         print ('say 物品栏已满...');, ]) J3 ]7 t( `- p& x( M( }7 p  ]
         exit;+ o1 i8 @* s" B- P
      end;. `0 D* f# k( S. {- Z% G1 C9 u, i) [0 n

3 [. _2 q& z4 x" h" |* Z" y( F; f      print ('changesenderfirstquest 4');
3 L* N. j8 ^4 Q; A# r      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');
1 ^, T. f8 ?1 |   end;
8 c1 y% }5 s* D* w0 _% g; M
1 W( i7 Z# _4 d   print ('say 什么_不敢相信!! 100');$ i) ?0 `- H( K3 L1 c
% n( V" }8 C- I2 K# i/ Z# E) k% U/ A
   print ('mapregen 53');
9 r4 E, {2 W5 q3 M& t" N2 i9 J& C; g; ]3 i+ y4 R# i
   Name := callfunc ('getsendername');
2 k2 N6 m* n6 |   Str := 'movespace ' + Name;
' [# a3 P$ i, q* a7 G   Str := Str + ' user 53 17 18 500';3 ]7 J0 U9 O! a& M" d3 H
   print (Str);3 }6 P3 d5 s' F/ q% z" t, U
end;/ t* T1 i! M) u2 _5 P" g) ~" C
9 k& Q7 _& o, D0 r
procedure OnChangeState (aStr : String);& T9 Q  I, [4 k7 w4 T. Y
var
) X( n3 }" m2 v" i' O5 ~   Str, Name : String;; n3 G- D9 i7 B; z! ]  P1 H( @
begin7 l% V1 x/ M' D$ n9 r/ ^
   if aStr <> 'die' then exit;
* E/ X- S  \% ~1 ]7 x# \; Y& v
, j! G$ C) z1 C  R$ N6 H, s   Str := callfunc ('getsenderrace');1 s1 i( g$ I* w- Y6 ], G
   if Str <> '1' then exit;1 U$ r+ E) T: i- r

/ F4 @0 ^5 J( R) i/ C   print ('say 领教了吧! 50');
! L6 D: a* d" y* C# T# o# S/ E' J" E   print ('say 差远了... 400');
1 U2 q: t# C/ I1 T* L3 \
9 x+ |7 Y( w  d   Name := callfunc ('getsendername');
0 L# G# a6 a6 c" g& `5 }/ M% y   Str := 'movespace ' + Name;8 r# W; C  O: T+ q
   Str := Str + ' user 49 106 55 600';- r" j8 B8 _1 |; o  c$ z5 s# ^
   print (Str);
" Q  @- L4 E( V! D  p' f( eend;
% \8 U% ~5 N: u2 y7 s+ U' I; d- T' g4 Y. |% h5 k  H6 W5 j
end.
6 T3 H7 M$ s3 H! X; p8 E5 k5 M----------------------------------------6 V# o' L$ `" \
unit 一级雨中客;# H8 I, q& Z- R) S/ a6 R
& @, |8 c' J4 R2 W0 `" T' Q
interface
, X* r! g+ p1 I" `8 ]5 R( u, v0 S% F0 P
function  GetToken (aStr, aToken, aSep : String) : String;! r9 K& ?# O, v& P
function  CompareStr (aStr1, aStr2 : String) : Boolean;
) `" N! g: m5 Y2 _! \( tfunction  callfunc (aText: string): string;  P$ w* O/ b8 T/ Q: m
procedure print (aText: string);
! h- n! C3 i' R7 R6 r+ m5 Z+ xfunction  Random (aScope: integer): integer;
+ |+ T* g& ~+ _8 sfunction  Length (aText: string): integer;4 D" q1 G; @; l- E; C
procedure Inc (aInt: integer);. \5 L9 R! B0 c7 Z6 @
procedure Dec (aInt: integer);& T% Y0 h4 y; Z+ `4 c9 k
function  StrToInt (astr: string): integer;
' @! G/ |( O# u" g4 q2 @' }function  IntToStr (aInt: integer): string;
6 S4 F/ {6 r( F  h% Eprocedure exit;
% b  |9 B. l  p1 L( J" j4 w! i: m7 [8 L5 c+ E
procedure OnCreate (aStr : String);' L; ~- L# N2 Y3 ~
procedure OnDie (aStr : String);
4 z7 r# F. d4 h/ b0 ~procedure OnChangeState (aStr : String);
) [+ q5 K& q3 y4 ^" U- Aprocedure OnGetResult (aStr : String);
) T# E: b! _7 o
+ J; z$ V1 U* W" }, v! W+ A) H6 Qimplementation, S! P8 f. H( D$ z* P9 i

% Y& n7 e9 O: x( ~6 Hprocedure OnGetResult (aStr : String);
# v% p# t. u8 _% z' `) w. O6 n* ?) W  kvar# |$ i$ L8 \/ d% r" |5 K5 J8 Q
   Str, Name : String;0 ~0 R5 I. y8 q0 b
   iCount : Integer;
* j! Z1 g" S' S- b, E/ pbegin5 S" B( o0 ~0 x5 P
   if aStr = 'start' then begin
9 Y5 v6 `9 g$ Q" ~6 _2 S. f# U# y      Str := callfunc ('getsenderserverid');7 a+ {' t, T9 j
      if Str <> '53' then exit;7 u9 I& f! x0 R! Y

5 G3 V" w1 I+ f1 m      Str := callfunc ('getsenderrace');0 r: U  ~! h$ H# p; {! _  t
      if Str <> '1' then exit;
, F8 k% o" U# L% G2 [* D/ y
. F* V4 H# T# c" D, @9 S3 Q. u2 S      Str := callfunc ('checksenderpowerwearitem');. G7 ~- H$ ~9 a9 i4 k
      iCount := StrToInt (Str);
; p3 B! O) n9 d3 U/ N( p      if iCount > 0 then begin
& R4 S5 x- q# l% S, S  ~         print ('say 请先脱掉带技能值的装备!');
* v  L0 S2 _9 u9 p7 P; h+ H0 J! C         Name := callfunc ('getsendername');
4 F  o# m4 a  T         Str := 'movespace ' + Name;" a4 d5 T6 W$ [+ r$ V% o# x
         Str := Str + ' user 49 106 55 100';
9 k, {# D7 V8 ^4 F  P% G/ o         print (Str);
) a4 ]1 O  f+ S* z         exit;
5 c0 c/ l4 j9 O- S, r4 e9 `, Q      end;& G+ V9 R7 \+ K$ f
      Str := callfunc ('checksendercurusemagic 0');
4 A0 g4 c8 A, |9 H      if Str = 'true' then begin( Y- G8 c$ i0 M3 {/ I2 O
         print ('say 选错武功了!');% z  l6 c6 L* Z
         Name := callfunc ('getsendername');1 y) o) {1 |. m3 T5 s
         Str := 'movespace ' + Name;
% ?: o  y: _: Q' v- W         Str := Str + ' user 49 106 55 100';2 J5 q$ L  U1 S: \" E' p/ P
         print (Str);
2 \# ~# q2 {5 f& f/ j* w         exit;
4 w# O  n# r- h: b" P( \      end;
' P5 t8 F/ C# ]% M      Str := callfunc ('checksendercurusemagic 1');
2 z) Q" i0 D& `. Y/ F      if Str = 'true' then begin
- x  _/ b$ b) F3 L         print ('say 选错武功了!');
% w6 m1 @- b: j% ^, t2 X& U         Name := callfunc ('getsendername');* k  j* u7 d& p
         Str := 'movespace ' + Name;
5 D0 _, t* Z% I         Str := Str + ' user 49 106 55 100';
4 \) e# H& x* W- A7 A7 E0 H) }         print (Str);% T* c0 M( O7 V6 \: z; p
         exit;% K: z+ u& c/ B' x: d6 V) z) M
      end;3 v; B  o4 h# h

7 V8 r! e: B- r% V' Z+ q      print ('directmovespace 一级雨中客 npc 53 20 18 0');5 n1 K/ @* i9 I! j" c

+ O" J* v8 ^  I; X& t: O! A% O      print ('commandicebyname 一级雨中客 npc 500');3 t6 a$ ^( _+ _, L0 C
      print ('setallowhitbytick true 500');      # I) s2 Q' I8 @! o4 j6 R
2 G4 L* B) A8 a7 H
      Name := callfunc ('getsendername');
7 e/ q; U* u3 f  `% t+ Y      Str := 'commandicebyname ' + Name;5 P8 H% X$ i0 d2 A3 Q
      Str := Str + ' user 500';  V% M* A, v. k$ I
      print (Str);
& W  {, O. U$ g
# ^9 f; K! X( }      print ('senderrefill');% M  X  Q7 U  u6 x

7 T9 _8 }& U6 ~      print ('say 领教了 50');8 k7 p! j  l! J3 B/ e" t
      print ('say 开始吧 400');3 [# y0 ^$ c+ ]
      exit;2 C5 J  f) e  H0 M# m! `
   end;! I! Z. [3 J4 H% ~& w. y9 {
end;
. o+ D' N- l) \4 k" d* F3 Z8 L6 R/ A2 X
procedure OnCreate (aStr : String);" Y; o, ~0 v: U7 H% B
var3 K! u* E5 ]) \2 r3 q: C, X
   Str : String;
5 H) |6 h9 F, f3 h* a* R# G: Gbegin
) j. b, l4 U7 C% n2 g9 Q+ a" F   Str := callfunc ('getsenderrace');
, n* ^" c. s4 h) h' k   if Str <> '1' then begin& F$ Y6 v% F7 R0 X4 S5 T6 _
      exit;
* m* G6 `2 g9 P, {1 |2 h   end;
3 s; [" j7 r$ l, \# S
$ r0 b- b; ~) y: c7 e, D' |7 W   Str := 'showwindow .\help\一级雨中客.txt 1';
4 s) o' [2 u7 I/ P   print (Str);: ]$ Q9 K% q, R' f( R- v( [% `  s
   exit;- v7 y8 t0 Y' G$ D" Q
end;0 f0 l; s  \/ F) n8 {7 J) v

$ H* d% e8 b, kprocedure OnDie (aStr : String);
- Y( M5 T% Z5 Q( `var' V0 p2 m9 u% W: h8 o) _9 t1 x; _# g0 A
   Str, Name : String;, C' Y  s9 E0 l' m! Z  }6 |, G$ \
   FirstQuest : Integer;" b. N- c2 p% s, h0 W+ Y
begin( d  i2 z6 P2 n: x1 v) c; A3 P
   Str := callfunc ('getsenderrace');
; U- Z: d( s5 U; n1 K2 E9 s; r2 N   if Str <> '1' then exit;
9 h. p6 H/ k7 M6 B1 N" K) b. ~- i, [/ K7 Z; b
   Str := callfunc ('getsenderfirstquest');
/ J8 n3 u, [1 R+ H0 [4 v   FirstQuest := StrToInt (Str);
& l+ s% x% C& y, Y5 U
2 E4 A* W; w0 D+ t% @   if FirstQuest < 5 then begin
% k$ g3 L+ r1 ^      Str := callfunc ('checkenoughspace');  J$ {3 u9 ~" g# B% r
      if Str = 'false' then begin
" V) ?; w- l$ a6 i         print ('say 物品栏已满...');4 C  L2 |% M) u7 [- N& y
         exit;  m4 d6 U! K$ D/ z$ O6 }
      end;8 u) ~0 t' c+ n0 T$ C# C. }

! E* |/ C+ s5 }) H* w: M" _2 [      print ('changesenderfirstquest 5');7 m* \. Z4 l" |9 {
      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');
4 X9 w- l) j6 {+ b   end;3 {1 x# W& E$ E6 o: F
+ `* ~% n, \) L. I' d
   print ('say 早料到了_佩服 100');1 b" j7 y8 p, n5 H" `/ f
# _2 ]8 W9 ]. v1 M
   print ('mapregen 54');
! `6 K8 b& a  A7 t# r. N5 t# L% A
$ p7 B4 ^1 s9 I" p   Name := callfunc ('getsendername');
8 f& g5 h3 V4 Q2 ]) s9 ~1 ~* F   Str := 'movespace ' + Name;( W8 b/ t& r, y/ j' i0 M) M
   Str := Str + ' user 54 17 18 500';
, l+ K7 s) L/ i# }  B   print (Str);
, f6 I: s; n$ D+ ?end;
0 [8 d1 u- D* W- q4 |$ O
& W% m' m8 T0 }1 z& [* c" f6 [9 ~procedure OnChangeState (aStr : String);! u9 w! E  O; M
var$ N2 w2 F: k( Z
   Str, Name : String;( C5 C- d# O. t+ O2 P8 ]& N3 z
begin. `3 H  Y9 {) y( M' V
   if aStr <> 'die' then exit;
+ {) y$ U! U7 u# M% O' r  l% g# o7 v2 h: a" z' L
   Str := callfunc ('getsenderrace');3 P$ \- ~8 a. x) J: }+ O1 }
   if Str <> '1' then exit;9 [+ E0 y, [8 e1 v5 Z& w
" |+ b' l% C  r) a/ \2 K2 f& m
   print ('say 不错。只要能维持几秒钟');+ |( o6 R+ y4 z; L( B
   print ('say 到那时谁都不是你的对手 400');; B; m8 g  |  m- Q

3 B2 ]" b  q8 V( m, H/ u   Name := callfunc ('getsendername');! x9 u* ?8 q3 j
   Str := 'movespace ' + Name;( G: K2 d! r4 k
   Str := Str + ' user 49 106 55 600';  B3 l4 a" ?0 g5 [, f" e9 k, _
   print (Str);) h- O5 ^0 M7 Y0 A' T% ]
end;) y4 }( Y: @5 g+ g
' D* w7 y3 G! M0 [
end.8 f( Y4 N2 l. j+ G- N2 `2 P

  G3 D: u3 J  @8 |) d--------------------------------------------------------------------------------------------------------------
5 Z' z9 ~' G6 i
$ C; _1 v+ ~- p! B0 m9 S: Nunit 一级老侠客;1 p) a& C8 w: `
5 z1 E7 n7 ~; h1 A  V/ p* K
interface
) [0 U$ v1 x2 `5 n+ f& T% P) b/ Y3 F  V! H  ]- A& O0 ^3 c
function  GetToken (aStr, aToken, aSep : String) : String;
. _4 f4 _5 g$ W9 E5 F0 Ufunction  CompareStr (aStr1, aStr2 : String) : Boolean;4 a$ E5 w' ]3 ]3 E: T) j: I0 M3 ]( _
function  callfunc (aText: string): string;/ [! v5 e9 b( S# M4 z, ~
procedure print (aText: string);1 V6 d5 E- T1 B6 e5 T) i! }) e) N
function  Random (aScope: integer): integer;
; X9 d% j* S  J) L) u1 `/ Tfunction  Length (aText: string): integer;
7 d' n: t0 y  l0 I3 `procedure Inc (aInt: integer);' L9 {2 q+ k( E9 K) ~. J$ E& \
procedure Dec (aInt: integer);  t1 E2 H# N* [0 `7 M) ~) Q: \; F7 _
function  StrToInt (astr: string): integer;
/ U  t) G$ B# Z" Cfunction  IntToStr (aInt: integer): string;& ~0 l3 J! ?5 @! B8 N. A
procedure exit;$ K! |- `6 I. c  V: l, ?, U
' V2 t9 v9 A. Q$ K' Y
procedure OnCreate (aStr : String);
* g+ @8 R' d/ V- Bprocedure OnDie (aStr : String);
( `6 F) e7 v/ c- Z6 Qprocedure OnChangeState (aStr : String);
. C+ [! X9 J3 Y% s1 a  V7 Z2 w+ Cprocedure OnGetResult (aStr : String);$ Y$ T* D; D. g4 ?; X7 K, M8 H
# S  m. a# a( z. d! t/ Z5 O6 \
implementation
$ U5 N; Q- E3 V0 M  |3 U) H
  w; ^8 c3 J+ p- h7 k3 b% ~procedure OnGetResult (aStr : String);& Z. P& Y2 e9 i' |  o2 A) H. b5 j
var
; ]0 E4 W) C4 U- _3 y3 E% }   Str, Name : String;% Z& E0 k! l. `8 f+ b6 {% ?
   iCount : Integer;   / J3 @2 J+ f! c# Q* ]
begin2 H& W. X1 b8 ]
   if aStr = 'start' then begin
7 F" f% q" j4 q& d! `      Str := callfunc ('getsenderserverid');
' l3 U! W4 y# p/ D8 a; a8 u      if Str <> '54' then exit;
/ u/ q' T0 M; M; l3 i$ U
, e' ?. @) O$ `. h      Str := callfunc ('getsenderrace');- ^* D3 C% V. l  X  L: L4 R, m; h
      if Str <> '1' then exit;
/ d& G6 ]2 }; k) Q+ |3 [* x$ a# Z9 J$ N0 T! T" C5 q2 g
      Str := callfunc ('checksenderpowerwearitem');# K2 r' V' ^0 {2 j! ~- O# O. o
      iCount := StrToInt (Str);
0 o9 M; F! b0 j7 r2 K, N# q      if iCount > 0 then begin
- Q% y" C/ t7 c* o  w- G8 M7 ^         print ('say 请先脱掉带技能值的装备!');
3 C  j0 Z7 j4 {/ b2 V6 e         Name := callfunc ('getsendername');
% J$ Z. b2 t8 u) ]8 B) V         Str := 'movespace ' + Name;; |; X- {- b1 \3 d! ~7 Y
         Str := Str + ' user 49 106 55 100';
# M, \! d4 M) a9 h0 W9 l& g         print (Str);% h3 i) \/ m' t
         exit;8 l8 g8 O5 o3 C
      end;
0 {* p- E* Q! W# z) L      Str := callfunc ('checksendercurusemagic 0');- g! }6 m1 [2 s
      if Str = 'true' then begin& l; b# S  N  o6 d! R2 z
         print ('say 选错武功了!');3 @$ p2 e/ v2 L! `2 k
         Name := callfunc ('getsendername');
! j* R- @- {$ c5 p8 t         Str := 'movespace ' + Name;
% T! @' T. q5 I0 {2 Q  r         Str := Str + ' user 49 106 55 100';2 x# Z& k! a# A) H7 a8 B( B: R
         print (Str);
: q% @- t& `0 G! O; q" D         exit;
$ ~$ x" T2 ~5 W- e( e- I, O      end;
% f# e( E# F& A! q1 r      Str := callfunc ('checksendercurusemagic 1');. \9 ]: Y) G# @: X. b4 w
      if Str = 'true' then begin2 }; J  ]$ a; N+ p5 j
         print ('say 选错武功了!');
" k' h) t  V$ p         Name := callfunc ('getsendername');% r* i3 w! z0 J
         Str := 'movespace ' + Name;
3 v: W( s; B3 `( F         Str := Str + ' user 49 106 55 100';
' i  h9 y% X6 l% B: w         print (Str);
: |. G3 Y" Q% J         exit;4 p# y# I- o, \5 `$ ]6 e
      end;
" k- b) q6 U2 }& i" T1 C
$ Z* ]9 y# n( c0 D6 K      print ('directmovespace 一级老侠客 npc 54 20 18 0');
6 \4 i% t- y, }+ f  @7 \
( ]/ h$ c, C: L/ w      print ('commandicebyname 一级老侠客 npc 500');- R2 p3 R3 x$ r) h
      print ('setallowhitbytick true 500');      
1 A! S' V6 S# s! ?2 ?3 N+ g4 B1 @* J! x0 a
      Name := callfunc ('getsendername');
9 D5 v  k6 p; [, c# I0 Q      Str := 'commandicebyname ' + Name;% T/ L6 V( n4 F2 ?/ x
      Str := Str + ' user 500';; M& V  n5 z: j+ ?* g  q
      print (Str);
0 w+ D8 O" e' c% {9 H/ c4 y3 n+ ]" z* v  L2 O0 ^
      print ('senderrefill');9 f3 S* p5 d! i3 _, g

! o1 V5 `: q9 v4 z      print ('say 如果你实在想比 50');
: q# d: F! }$ D) ^6 [8 L      print ('say 我将奉陪到底 400');( `! d  [% v7 z9 L8 J; I" L
      exit;
/ V8 F- |" p; g8 |) a& X" t   end;
! @6 l: T& L0 H4 A- w9 ?. Lend;
* ~( t- ~- U, S  A" {
. U# t) v4 Z6 A1 x; U% Zprocedure OnCreate (aStr : String);
7 r% d# h, P8 v, {var
2 A# a7 x0 Q5 G3 q2 e   Str : String;* u! A4 m4 A7 U/ u3 L
begin
* q+ g2 p( o# m, W$ _   Str := callfunc ('getsenderrace');
) |3 R! l: t1 s2 o1 c- V8 Q9 V   if Str <> '1' then begin
' M/ S" ]/ o+ U4 m  p3 G      exit;
3 \$ i: N8 K9 J- `( ~0 @   end;
4 w" {$ y" O4 w4 o2 g
; h* U; Q: V- z" E   Str := 'showwindow .\help\一级老侠客.txt 1';5 C6 t+ e3 v% o9 m. b* U
   print (Str);
: B0 _& i3 S2 h7 K# Z6 r& R   exit;
+ m& h; i7 V0 Nend;1 B, b- [. p1 S

, ~. g# l: `& {9 p9 h# r3 kprocedure OnDie (aStr : String);
2 S# p' c" B' b( @( K& d/ Pvar
0 L5 J5 u# t' T7 k- @6 C   Str, Name : String;
+ J, D8 W; H/ s( s; R$ R3 h' [, _   n, FirstQuest : Integer;   
% F6 \$ c2 e/ l8 o1 \4 ybegin6 n8 F. ^& l- Y" @+ U
   Str := callfunc ('getsenderrace');3 |8 b- ], E: g: P) q% g; D/ e
   if Str <> '1' then exit;
* v% Y) b* _) y2 Q
% I) e2 H: p7 K   Str := callfunc ('getsenderfirstquest');; M6 A. [: j. l
   FirstQuest := StrToInt (Str);
/ C9 n9 Z8 ]: y! A: ^8 U1 G- V9 R. W7 [' t9 L" D# X/ F' |
   Name := callfunc ('getsendername');
: w8 |# z  `6 h4 i4 \6 u) ~2 N7 Y6 o( O9 ~3 v
   if FirstQuest < 6 then begin
# o1 u$ o7 [* }, p" V+ z      Str := 'sendsendertopmsg ' + Name;
/ G% w+ U% R8 T: N2 ~) R      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';
8 G6 k$ y$ d( g% s0 r      print (Str);9 |& b9 N/ G6 j
+ q* `7 g/ k2 v6 y& Y% X
      Str := callfunc ('checkenoughspace');8 A/ O& r% K" a, R. }* d) d
      if Str = 'false' then begin
' X& A7 Y- b" v' S1 y+ j! Y& B         print ('say 物品栏已满...');0 n' j' x; ~: F
         exit;
- x( X# g- A6 e$ I+ l8 `7 Z      end;
; a- K5 d/ q; M  l6 a! Q( F- M8 w5 a% n. F* ^4 a
      print ('changesenderfirstquest 6');
% Q8 a+ S6 q4 a6 \9 D: k$ K
. H6 H* r. a  P+ h1 e/ K( M      Str := callfunc ('getsendersex');
& C! Q1 l8 S4 R6 a. v$ X) k4 j      n := StrToInt (Str);, }- G6 P! d. U
      if n = 1 then begin1 k9 T! T( Z) g
         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');
5 b7 P7 t, }% s: W      end;
9 ]+ P% A6 U& ]" j7 \+ Z      if n = 2 then begin
, n* Y6 B) b+ q3 h8 J  Y         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');
9 S# B$ X: F' W2 A0 V; x1 C5 a! ]      end;) e7 k; O7 o9 `, Z, h9 r! g
         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');
. x5 y3 P" F0 L1 k! l4 `( `- i9 w   end;
! i8 T! t4 |  j5 M9 E; u3 g* t3 S
   print ('say 佩服_佩服 100');
5 a: y  i: R! Z- L. D5 G' o5 B% f, v3 s! ?( B
   Str := 'movespace ' + Name;
$ w) _/ `) b* ~$ H1 _   Str := Str + ' user 49 25 35 500';; F0 B& O1 k8 `- ^
   print (Str);
, g: L; n+ s* aend;
: _2 m& E+ j! |
7 q3 D0 o- m+ k; Tprocedure OnChangeState (aStr : String);
! d2 u; X3 u; @# K5 D9 nvar$ [4 D% d& F& a
   Str, Name : String;  f0 ^' c. T; \3 R8 G
begin
: C8 E& D1 v' G' S- z  u5 n   if aStr <> 'die' then exit;
0 v! @: \1 g! y" z8 \: V% S9 |1 z
7 [  x( t' X+ V5 l5 ~8 j1 B1 ], g   Str := callfunc ('getsenderrace');  U; z; y2 S; ]  M1 U
   if Str <> '1' then exit;
$ _) [2 b7 `5 D1 h1 w4 W& L, r- j/ g8 ~6 a& a  }7 d5 q: C; _
   print ('say 小小年纪_就有如此高深的武功 50');
' [, ~$ W! L6 n, d3 b5 u3 W- q0 n   print ('say 日后要继续修炼... 400');
( ]. k" s/ X( e) G
5 r8 X1 K+ S" e0 F( T   Name := callfunc ('getsendername');
- d* M% t. I' |   Str := 'movespace ' + Name;
& C* m# A7 G3 Q   Str := Str + ' user 49 106 55 600';
# j/ h# w. q/ {4 w+ F   print (Str);
0 O0 ?1 D  Z3 W) z( }# ?end;
" N! f% f3 q8 m" b* j. z& Y$ `' S- A8 _" [) i5 {8 O# R) x
end.
+ J1 A& x  b5 u, f7 B5 Q5 ^0 C" z: y( b# a- n
-------------------------------------
5 p( m+ \% `# J1 ?8 N
5 X$ b$ T+ K" y2 b, l*************************************6 }- c, P! L( T8 N
- G* e2 N3 x" u  j! z' N
奖励物品代码:6 o: m  }8 \  c, t( V
  G6 |3 d4 F/ P3 S- F' w
*************************************4 j6 \. v- k6 r5 w1 e# N
+ B( h1 }7 t  h  P; Q: q
男子侠客弓服,男子侠客弓服,24,新手村擂台战利
6 p6 @! p( y* d7 u$ m" @* G. C0 N8 H6 S, K( o! ]
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,107 k- T9 ^' Q( o9 @( x
3 w0 g4 p7 v, r2 |# d7 P; q
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,
8 v. K6 }" T) B" D女子侠客弓服,女子侠客弓服,24,新手村擂台战利- m* C+ }& V8 A, q1 g* z
6 m4 R0 @8 s  c4 o5 {+ }0 ]8 N
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
$ D8 N: O& [% Y1 w3 b; X/ G% E# w( K7 U8 o; i) S
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,! f5 O4 R( a5 Z/ X
新手训练拳套,新手训练拳套,6,新手村擂台战利
0 w4 G0 N, t' `* Z- u' i' I" J5 x+ h5 L1 q* k4 I
品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
8 l; |, ^1 L$ K* H) c6 g1 b5 B* }) g) u3 x' J+ g
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
3 w( ], L4 k, J+ }, L新手训练神剑,新手训练神剑,6,新手村擂台战利
2 ]4 h: y0 M1 b) x) T1 Q2 ^# C0 v
品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
* g8 N  D' Q* x  X6 O/ E) C
- O; @9 N5 `# T9 t4 y6 G,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,. b* g) M, ~6 e
新手训练弯刀,新手训练弯刀,6,新手村擂台战利
3 V/ r$ O; M- Z$ x+ i( X
4 Y: H  p8 b+ S' J品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,( S6 e" H6 z7 p' y' E9 Z

' w% r$ I; ]1 T$ Z,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,# h- k1 `5 b- b( s+ L' o
新手训练长矛,新手训练长矛,6,新手村擂台战利
5 j; E+ j8 J; d/ y$ \2 ?) Q0 Z' b0 W: _- L! L) f
品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,) e$ d' P* L; W5 w/ D- {7 `8 O" [

3 w: b" L4 b" C8 k,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
/ H0 q3 P# x5 m+ O( Z9 v新手训练大斧,新手训练大斧,6,新手村擂台战利2 P6 H; |4 D3 D  f9 p1 x( e4 ]. P

8 E( y8 ?1 ?% Y7 i$ Z品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,
3 k- e& n7 ~8 Q+ m8 N
2 F7 `# y! b& a# H,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
* v7 d- K7 T) a; o, N- m5 l9 ?2 J/ d, X. s7 D
******************************************0 M4 H4 L! O7 F- R: X/ ^9 b' Q/ W
/ x# o" z! m) {$ R. Z+ T* L
2 B9 I$ Y" H, T





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