游客您好
  • 点击联系客服

    在线时间: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+ {4 ^' l% V0 e/ R8 T

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

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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