游客您好
  • 点击联系客服

    在线时间:8:30-18:00

    客服微信

    Wkr-3000y-kf

    电子邮件

    3000y@wenkeruan.com
  • 手机版

    随时掌握游戏动态

  • 扫一扫二维码

    添加微信客服

Lv.5 解脱境
277号会员,0活跃值,2022.10.27 加入
  • 207发帖
  • 173主题
  • 0关注
  • 0粉丝
这个人很懒,什么也没有留下。
独家推荐 更多>

[安全工具] 新手村擂台脚本和实现代码

[复制链接]
快要发癫啦 发表于 2023-3-2 09:52:34 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
风雷版的新手村擂台脚本 : J. G. {7 }- X8 L

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

4 ^. S2 B- F, t6 U0 a, @
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

Powered by Discuz!X3.4 ©2001-2013 Comsenz Inc.闽公网安备 35099902000100号增值电信业务经营许可证 闽B2-20220593 闽ICP备2023014375号