游客您好
  • 点击联系客服

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

8 V$ X8 {# G' T$ K3 X
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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