游客您好
  • 点击联系客服

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

    客服微信

    Wkr-3000y-kf

    电子邮件

    3000y@wenkeruan.com
  • 手机版

    随时掌握游戏动态

  • 扫一扫二维码

    添加微信客服

Lv.7 版主
8号会员,9活跃值,2022.09.01 加入
  • 127发帖
  • 123主题
  • 0关注
  • 0粉丝
这个人很懒,什么也没有留下。
独家推荐 更多>

新手村擂台脚本

[复制链接]
异仟年认证商人 发表于 2022-9-5 20:23:44 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
新手村擂台脚本
3 A  v. `* V/ L8 @7 U6 J- b1 V3 s; X1 J5 m

- ~/ K" h# ]: H! h) `: j释放到同名文件夹下覆盖原有文件。
. z' ^' _% d3 ]- G1.Script 里面是任务脚本,把对应NPC的代码复制覆盖掉。
9 x$ R* j3 m! Q, _  }/ o8 |2.Item 里面是任务发放奖品的物品资料,把我发的加进去。
' F. v- W. h. v( L( v& Y(由11月23号发布的最新服务端修改). s2 X8 Z& T& q  Z/ ^* R
-----------------------------------------& j% f0 n7 p. r" o6 `
内容介绍:5 R+ K6 k1 ^1 ~! ]8 v6 Q6 U& y
新手村比武获得奖励:
1 v, b9 C3 @& A: V- K同使用何种武器的NPC比武,将其打败就能获得同类的新手训练用武器(速度20,恢复20,准确20,破坏0. {; @0 r; j' C& f& X  G. Y
6 e6 L3 y2 o% k" l6 u3 Y3 x# E
9 ?$ \( ?2 L/ c5 s6 o/ y
最后一个NPC老侠客,打败他会获得新手剑之外,他还会公告天下你获得了 侠客弓服 一件!(个人比较: o5 l7 `6 W( M

, s2 Y8 M0 ^9 I1 q/ D喜欢黑龙,所以是黑龙的加强版!)  B! {) S$ c7 m$ U4 Z. D7 t0 R0 G
9 w* [: ^9 H3 `
[replyview]
( d; E4 ]* Z& u5 Z9 P$ ^1 v7 K: G; ^" U. }& y9 t4 f
-------------------------------------
" Q( c7 g- I6 [% a/ ^% L2 a- N; z5 J7 v+ B! x: b" }. r  u
unit 一级梅花夫人;# o' L  r& G2 f" m

* d% I/ R4 G: Iinterface
5 w; g4 G7 u5 K
# g& L5 H/ q. X: U8 c& Gfunction  GetToken (aStr, aToken, aSep : String) : String;4 M* F3 v" e* o+ M0 n7 E& Q8 e
function  CompareStr (aStr1, aStr2 : String) : Boolean;
' ^6 X1 T& @0 b$ v7 k; @) I" n5 Efunction  callfunc (aText: string): string;* y% B+ L: L: I+ `
procedure print (aText: string);/ G5 L) L2 m& O; a1 Q0 l% c# A
function  Random (aScope: integer): integer;
0 c) }+ p% J: w  e  C7 K0 Gfunction  Length (aText: string): integer;
# P1 y  M0 E* S3 Jprocedure Inc (aInt: integer);0 O7 V4 v3 u# H! g! m$ P
procedure Dec (aInt: integer);
/ W! b& i8 Z8 l0 ]function  StrToInt (astr: string): integer;, ~  X3 Z8 X" _5 d, P& D% J$ W
function  IntToStr (aInt: integer): string;1 W" \1 T8 \; L7 R* R
procedure exit;
  G% v6 P, \" S8 C3 G1 r- L- m% _! z* I7 |
procedure OnCreate (aStr : String);
0 A' H2 _4 _  }procedure OnDie (aStr : String);9 A* i, s  z2 `* x0 Y
procedure OnChangeState (aStr : String);
& ^1 C% A% G  F. F- Oprocedure OnGetResult (aStr : String);4 R  r) K6 f4 U' P, V
: r' g" _- h" ]% i% V2 ^) D' U
implementation4 E  r3 l5 c# V$ X
4 v% C$ L. ^( U; n+ \
procedure OnGetResult (aStr : String);% u/ r* {0 C/ U! n% |2 o
var
* S8 ?! z" N% |& T   Str, Name : String;$ d5 j$ \, i( D
   iCount : Integer;
' Q$ v6 a+ l/ ]0 m- ebegin
0 q1 K/ c' {- }: v   if aStr = 'start' then begin
6 ]& D! E& V* ~  O; b      Str := callfunc ('getsenderserverid');! r  B3 O' g) _9 j2 {0 A( Z0 c
      if Str <> '51' then exit;( |, i5 V  }: k, |2 X3 X
* S2 u1 g' N2 b: i! {4 n" C
      Str := callfunc ('getsenderrace');3 [2 P5 P- O2 E: Q( O
      if Str <> '1' then exit;. V) ?- W1 i3 P; v' V
5 J! d' Z! c0 P& ^# p7 x  J7 s! f
      Str := callfunc ('checksenderpowerwearitem');" _! r- `0 |) E3 f0 v
      iCount := StrToInt (Str);
7 y. j) k9 {! N' E# ~      if iCount > 0 then begin
6 {$ H. T( Z" O( J5 c0 z' `. P! D         print ('say 先将带技能值装备脱掉!');
9 Y/ R% S0 v4 l# W- M) F6 f         Name := callfunc ('getsendername');
& G1 F. }/ u/ o- t( H; |6 ~         Str := 'movespace ' + Name;
! B# l) H' {0 B$ W/ F; i. }         Str := Str + ' user 49 106 55 100';0 j# f; x( o+ B, i. |/ t. J
         print (Str);
1 X3 v" l" z& p/ @         exit;# f& g2 B) Q" w
      end;5 B2 O( e4 J9 K) u# {9 X. x+ A. B
      Str := callfunc ('checksendercurusemagic 0');
+ a0 X9 g% v- b      if Str = 'true' then begin
8 a& E6 g. n& M& F, [$ c/ e" u         print ('say 选错武功啦!');! b: o' C" _* y  ]$ N( t8 @
         Name := callfunc ('getsendername');' A  G3 ^& A9 o1 S
         Str := 'movespace ' + Name;7 s# L  f- I4 s
         Str := Str + ' user 49 106 55 100';  V& `* O( U" A" ?8 g( o
         print (Str);2 P  i# m; p$ `: p8 U7 t2 b1 V! X) _
         exit;
+ u5 \/ E/ c5 V- E) F; [8 z$ d      end;
' A: w! c& L4 q. h9 {, [: o      Str := callfunc ('checksendercurusemagic 1');
. S7 L! k) ^' F! H, Z7 N! t      if Str = 'true' then begin# z% `7 [0 N# I
         print ('say 选错武功啦!');
# y- q7 f( g& _7 c3 {         Name := callfunc ('getsendername');
4 [3 B& u: @! J6 n+ M         Str := 'movespace ' + Name;
) `  ~7 {: x7 O2 ^         Str := Str + ' user 49 106 55 100';
/ z' S2 H7 A  e; _: W6 N( w& t8 l         print (Str);
. D8 l5 J* |0 u3 ~5 B0 Z         exit;
! |* b. U& q' ?6 R# e9 C$ C      end;
& k( e! d7 l) T
- b5 H% e& Q! d      print ('directmovespace 一级梅花夫人 npc 51 20 18 0');
# X9 L9 `5 N2 W! K3 W6 T" v: h: m" }
      print ('commandicebyname 一级梅花夫人 npc 1000');" E4 M! x- z2 r
      print ('setallowhitbytick true 1000');
5 |* `/ U) A# ^1 j
, j# E* m/ ~1 D2 ^4 l& X4 o# J      Name := callfunc ('getsendername');
/ Q% u  }  ^+ J9 }7 W      Str := 'commandicebyname ' + Name;% ^3 A! J, a* E# @9 V1 ]
      Str := Str + ' user 1000';/ H  x! l# f$ g8 I! Z
      print (Str);. G' e" G( _6 X- r3 `

" F# z$ Y; q% t$ E+ ~/ e      print ('senderrefill');
- o+ [* A0 h4 y& C# P# u5 f; U2 o, V# s: w9 ~. T
      print ('say 别害怕 50');
9 c/ H; M# @7 z- f6 W8 e) t      print ('say 我会收下留情的... 400');
) h% `. i( m" }3 w$ J' C2 O' I+ q: @      exit;9 K% |+ h2 h8 {
   end;2 ?1 ?$ R$ ~: c9 [
end;
( ^, ^# c3 I* J7 }; q
& Q4 Q4 x* d1 S' l! S) {procedure OnCreate (aStr : String);5 O( |$ @4 F* g# L! q, L0 ]! p
var" k6 j2 o* ?2 L
   Str : String;
0 L* v0 F- e- a! x9 R4 Qbegin
( W- L/ h8 O: |6 `4 x   Str := callfunc ('getsenderrace');8 T! x  j+ G+ V2 L( h3 }9 i4 h9 t
   if Str <> '1' then begin( X; O5 d) a8 u4 J; ^
      exit;2 R2 w* v  K+ a, M( h: i
   end;/ g3 V2 Q2 F# B: h0 `- Q
! ?7 u6 D/ n# p
   Str := 'showwindow .\help\一级梅花夫人.txt 1';
  ]/ O9 ?' {3 b6 s- ~   print (Str);1 d6 z$ _, D+ h  v1 ^6 F; r
   exit;- N6 E' S' n( X, W1 `
end;
2 @9 o9 C& Z' H# X& E5 ?" S8 j# Y' o* d' ?# Q3 a
procedure OnDie (aStr : String);5 u# d9 \2 i. o/ Q# o' D8 S
var
, C" f; ?2 b) Q% ~1 S8 u   Str, Name : String;
% W5 L$ @3 ]6 H8 \! H. f( S" }# Q0 `   FirstQuest : Integer;   
$ a" Z6 o" r9 d! s; F8 sbegin5 C6 u6 p9 h4 R+ _/ W, p' P0 G
   Str := callfunc ('getsenderrace');4 _8 }" ~7 w+ K  Y7 n
   if Str <> '1' then exit;, V6 P( I4 b: a6 i8 @
0 l* z+ w/ ^8 v7 e& }! e4 ?% G4 e; o
   Str := callfunc ('getsenderfirstquest');& }. h) J% L. v6 k# L4 U
   FirstQuest := StrToInt (Str);
  _5 C, D7 W3 n! _, [
5 z( G7 S! d+ f* Z$ o- Z   if FirstQuest < 3 then begin; e3 M+ e& X  ~* @
      Str := callfunc ('checkenoughspace');0 y7 z# d3 h7 s9 S% I& j
      if Str = 'false' then begin
  z: J+ y; _% S* H         print ('say 物品栏已满...');* B1 c) c  x2 u! T5 @! W
         exit;; e3 k' b' f  d+ @6 a1 ]* ~/ q, Y
      end;
- r. ]. v, j. g4 U3 e: d) X
- a1 }7 E3 s! P' I% d      print ('changesenderfirstquest 3');' j4 |. ?3 q# |* b
      print ('putsendermagicitem 新手训练长矛 @一级梅花夫人 4');
2 q8 |# F5 }- v9 c, \9 @   end;9 x6 e1 D: |0 O5 q5 i7 i* C
! a' ]0 ?3 n* r* H# L6 ^& z  n
   print ('say 我可只用了3层功力哟 100');
# z' {- c; J/ p& K/ C4 c9 P, j7 o: s* m! W# f
   print ('mapregen 52');3 \) d( v- g9 }  ~( r
$ m$ ~, H$ S  S- E( B
   Name := callfunc ('getsendername');   
+ |) }" J; h* e" @   Str := 'movespace ' + Name;
% y4 `" ]. l/ d4 e   Str := Str + ' user 52 17 18 500';2 M& \. T0 I% Q" f1 _2 _& m
   print (Str);: ^1 e1 T- H- K
   exit;
0 m( q9 e* {! A, n% o4 h- m: dend;
- a- z1 ^* v) y1 C# L* u! R- P" n
; S- U. u3 P, \& F8 o, ^procedure OnChangeState (aStr : String);4 }: w5 e& k1 T
var' u) o4 d3 Z! g, t* I" F" D
   Str, Name : String;* T: w4 d! f1 E- H) v, z2 k
begin
) N2 A& M9 l5 J9 p   if aStr <> 'die' then exit;4 d' d' q% c" O* v
! s; C: b6 A3 g0 x+ P
   Str := callfunc ('getsenderrace');
% H( g) Q  g& ?8 @& z   if Str <> '1' then exit;
6 I$ q7 R+ C* g0 F& h/ M1 Q% j# J0 e6 C3 C# G2 N/ l( T- O* Z; n
   print ('say 别无他法 50');
( O* ^: {, U% r, y   print ('say 是不是修炼方法不妥呀? 400');
% {4 H0 m6 r! u& Z, ?4 u+ x) B, Y; `/ ^
   Name := callfunc ('getsendername');
% ]  o5 q. c3 d6 t8 f   Str := 'movespace ' + Name;* f' K$ u8 D& B2 _
   Str := Str + ' user 49 106 55 600';" n0 K, d" [& c5 d9 `
   print (Str);5 O  C1 _9 ?) B% T: c
end;
! r6 g8 A* Z& h9 ~
  {! a$ w" G0 t' b" Xend.8 f% @9 ^# q( F8 o1 ?; ^
-------------------------------------------6 J& ~/ @1 c7 {" I  D
unit 一级捕盗大将;) P. u' b7 P. `, o% \( i& o! e# B
. h2 v$ o% N' q& b9 w
interface
3 q; q5 `* n$ e
5 D$ O, Q. \7 l6 Z" N; v/ t' Rfunction  GetToken (aStr, aToken, aSep : String) : String;6 t; A' v/ i8 x0 O; [0 n
function  CompareStr (aStr1, aStr2 : String) : Boolean;
  u; `+ g7 I2 z6 Kfunction  callfunc (aText: string): string;" Z8 ~  O$ F$ o
procedure print (aText: string);8 W, \( y( D  ?. {# o+ r, |) [
function  Random (aScope: integer): integer;; c6 n& @) f  ?9 y
function  Length (aText: string): integer;8 J9 B/ `  W  S4 ?2 r" D- X
procedure Inc (aInt: integer);  x3 A' [% t0 ~, _* J
procedure Dec (aInt: integer);6 O$ H9 K% y6 b! S8 V& q
function  StrToInt (astr: string): integer;/ k: Q$ S* |2 k1 d2 \& |* C1 ]& I
function  IntToStr (aInt: integer): string;
' j2 R5 p( M9 C: Z7 K) [9 U- ~procedure exit;+ R3 R0 g; p6 s1 E

+ L3 M+ ^  ?9 qprocedure OnCreate (aStr : String);
* ?; U1 X' B% rprocedure OnDie (aStr : String);
0 ^" y$ N; P1 \2 `. m( Qprocedure OnChangeState (aStr : String);0 E3 T6 P! [+ F' F4 t: d( t7 ^, v
procedure OnGetResult (aStr : String);
/ y" j& o4 M2 |
4 ]5 _3 A5 S4 w$ }2 f, ^+ kimplementation
, V" ^& f7 ~6 q6 U3 J0 [
" a9 F" p5 u+ x) G; Z4 Z% A; {' q9 fprocedure OnGetResult (aStr : String);
' Z- B  d3 s4 Kvar
' i6 ^7 q. Q! P7 d2 q   Str, Name : String;3 }0 \3 s) j2 `, |/ @' Z! c, j
   iCount : Integer;   ! g! L+ I" H3 B# ]( U8 x
begin0 B+ L! h" y$ S' O& u9 P, I
   if aStr = 'start' then begin
) F& ?2 B$ @& H- b      Str := callfunc ('getsenderserverid');
( h/ e5 V1 Z' ^. n7 @4 P! |      if Str <> '50' then exit;
, W. R/ m) w/ ^  Y( m* V1 X( j" r5 S8 ^/ B, R  Z4 g
      Str := callfunc ('getsenderrace');
' _- q/ v9 g1 l7 e      if Str <> '1' then exit;
/ m4 w: }% ^% Z1 `, a4 x6 g' s  x% n$ o* ^
      Str := callfunc ('checksenderpowerwearitem');7 ?9 L6 ?; o5 J( v( d/ ?
      iCount := StrToInt (Str);
1 S- D+ H# q; s3 R, q# \      if iCount > 0 then begin( u: v- M# F# c! U% y; V
         print ('say 请先脱掉带技能值的装备!');, X( k  J; q6 o5 `
         Name := callfunc ('getsendername');5 \( E2 a9 Y+ m
         Str := 'movespace ' + Name;/ y/ K. D) f* ?# e  S3 t
         Str := Str + ' user 49 106 55 100';/ t: g0 {0 }$ D  V0 e: V; p
         print (Str);
! \" \2 p7 h1 ~$ G1 M9 j$ x6 ~         exit;) A$ r. a  r* H/ r2 T; H& D
      end;
0 g5 ~0 x; W0 X4 R+ G      Str := callfunc ('checksendercurusemagic 0');+ @. ]" X  i' K. t, w
      if Str = 'true' then begin
9 o4 D' k% J: h0 k         print ('say 选错武功了!');, i' G5 @% J5 ?% r) Y% u4 j: m
         Name := callfunc ('getsendername');
" v0 L* u. ~3 `) x1 E         Str := 'movespace ' + Name;
; |5 u+ c) Z/ d- Z) q2 k         Str := Str + ' user 49 106 55 100';: L# Z( U' g8 I1 N9 s* k
         print (Str);
( `3 S: o/ b& G0 f         exit;) g7 M6 k6 O! n! G3 o
      end;. L. O6 {4 B1 n6 Z. r- S2 d
      Str := callfunc ('checksendercurusemagic 1');4 d0 T4 e) ~# C: W; _
      if Str = 'true' then begin
  x) V1 |, R, |. ?1 ^1 k         print ('say 选错武功了!');+ i8 s+ R9 Z: t* y& r- v4 @
         Name := callfunc ('getsendername');
- ~* ]3 ~4 [3 h4 A4 l         Str := 'movespace ' + Name;
( a& G* t9 H- M% Q1 p         Str := Str + ' user 49 106 55 100';
( O* ]3 Z( s6 u1 x! ?         print (Str);
1 }* `# Y1 G/ h+ I( C         exit;8 w: e& V4 d+ O( S
      end;8 z; n0 d- r$ a8 M0 ], t0 ~
& J" r, y2 H% \4 G" a: w4 ?
      print ('directmovespace 一级捕盗大将 npc 50 20 18 0');
  n5 {8 I; j7 T# F. v* F% W/ O6 h- e3 l- E
      print ('commandicebyname 一级捕盗大将 npc 1000');# h: o0 \3 K# b; N
      print ('setallowhitbytick true 1000');  q' M% m0 _5 A: R" D3 ^

9 D& E6 g2 ]* p  Z/ F. W& l: i3 M      Name := callfunc ('getsendername');! v5 Z) `( u4 `) W4 z6 R8 M
      Str := 'commandicebyname ' + Name;* I/ [' J9 I" H& `# z9 H* P( B
      Str := Str + ' user 1000';
% R0 [9 p" L1 R; v+ N) s      print (Str);
1 d6 Z4 h" i1 }, W" L( S0 f
9 U0 `4 w: ~8 j. ?$ I, e5 O) |4 m4 o      print ('senderrefill');" h' Q2 [) w/ e# \; D9 {# d

# W4 }* N/ M( u7 B      print ('say 你还太嫩! 50');9 Y) g  ^( P! f/ f# [6 F
      print ('say 留神啦_我可不会手下留情 400');" W) F3 I; f$ f: e$ p* N
      exit;; }) r5 T4 L" m; N4 v
   end;( a6 A8 R, T6 ]) W2 u
end;9 D% `- k: K2 c6 K& q1 ?3 w. p7 I
  U* ^- F( L% t) H
procedure OnCreate (aStr : String);2 n' Y* }9 P2 e8 s: U' C6 V
var
: _7 C( x& I; b! K1 S   Str : String;
( |- a0 f" ]4 K! x, l# hbegin
( E: x) l  Q3 F! U   Str := callfunc ('getsenderrace');
6 n5 J: a& O6 q' M$ q% {8 Z. G+ f   if Str <> '1' then begin. |: Q$ q. X( P; e( d4 F
      exit;( t: o) c" ~" \& c7 }" ^* o
   end;2 J2 r- W2 s6 B7 U8 A3 V

. h; I+ ^$ K+ C   print ('setallowhitbyname 一级捕盗大将 monster true');
9 A% a6 b3 ^+ c% M7 S! d9 B
4 T8 v- K; b% Q8 K   Str := 'showwindow .\help\一级捕盗大将.txt 1';$ T: n/ ]5 G3 k! H  W  d! d
   print (Str);
' z# T9 Y5 B: ]/ E5 m   exit;
  `  z! H+ k) h# h5 W( z+ Yend;
/ N7 B) V9 [: z8 z& Q
0 d' S! Y" X9 j4 ~$ M9 wprocedure OnDie (aStr : String);9 E5 l( R: T* ^5 U% p
var
& }, o4 Q. t( l$ x# y3 \# b/ @   Str, Name : String;
  Q' M, p, h* J4 |! W1 B   FirstQuest : Integer;/ x7 b  l- |3 Z$ S& Q
begin
3 Z% C% ~( b- K% L! Z   Str := callfunc ('getsenderrace');
4 T' M' J- q  j   if Str <> '1' then exit;( H1 Y% w7 |: E

! T$ z6 A  C- N   Str := callfunc ('getsenderfirstquest');3 y0 \/ |# F1 d- K* P4 F
   FirstQuest := StrToInt (Str);4 \0 ~9 e0 _* H
; _: F* E5 q4 ^$ l/ m3 c' p
   if FirstQuest < 2 then begin
: \: x; q8 S$ x! ], |' |      Str := callfunc ('checkenoughspace');
+ ]& K% @! V& c9 c$ e      if Str = 'false' then begin; N: n+ i3 u" g$ ~. @1 z
         print ('say 物品栏已满...');& K3 m0 r& P- t* w
         exit;
, m+ s2 K4 _) ~" I      end;/ v9 {( t" B. j% ^2 v
; G4 k* Q/ O7 `8 \- I8 V) S2 G. J5 E
      print ('changesenderfirstquest 2');
, [( k0 D# s$ _      print ('putsendermagicitem 新手训练拳套 @一级捕盗大将 4');
! a- R5 {9 Y- o: l6 P   end;
/ ?$ }+ H: ^5 A3 P) |1 `( ]  [2 B& p- r) d2 ?# z+ E
   print ('say 不可能_我怎么可能输呢.. 100');2 ]7 c8 c$ s4 l& H5 A9 t* S4 u

, j* B% p% x* m" u4 _   print ('mapregen 51');
; J0 V; f! T- o  a  z( H/ w# I  N# T6 P0 i) q
   Name := callfunc ('getsendername');
/ p* ?' q- H, L   Str := 'movespace ' + Name;
- m* J! \  y  ]# `; B: E' t0 _- r9 s   Str := Str + ' user 51 17 18 500';
9 s, N# n% X: o! F   print (Str);
! F9 x  B+ Z! b) lend;* M5 ^$ a. v  u! U

4 V& Q8 ?0 K7 R9 yprocedure OnChangeState (aStr : String);
. n* E8 _' Z3 r1 ^var0 Z/ A2 i) B- e$ A# n
   Str, Name : String;
; p7 B( J; p. X+ Lbegin& o5 {  K; E, ~1 W  H: C
   if aStr <> 'die' then exit;9 m: E/ y9 q( ?
, F4 v( |: G0 N! }' e
   Str := callfunc ('getsenderrace');; k- Z2 q: o$ Y+ N" Q  U
   if Str <> '1' then exit;
; ]8 d$ `5 n0 `8 N+ |* M1 q; J/ j0 [& Z' A8 f4 l9 ^9 s
   print ('say 回去再修炼个10年吧50');0 [0 ]4 d' p% x. C# r
   print ('say 到那时我在用双手跟你打 400');+ s4 p# s: a6 k+ R, U8 o$ `9 l" _4 @
. ]* G  Z4 c8 Z
   Name := callfunc ('getsendername');9 F- o: L3 r: Z4 A, ]
   Str := 'movespace ' + Name;3 c# A- x9 Q  `1 r
   Str := Str + ' user 49 106 55 600';9 ~: `  p, e8 Y
   print (Str);# Y8 o. @3 O+ H
& W# ?: q. t% L* ]' y
   print ('boMapEnter 50 true');   " m- n* @, g/ d; g, v& X% A  G
end;
7 W$ g" r# Y2 F3 x
( O$ Z3 T3 I/ ]( ^end.. `5 [* l( K& _& X8 {, g
, }; \: t; P3 G  h
---------------------------------------
. Y& d7 i) a" @3 g  o- D3 o" i! M! S, J2 Q5 w- @. @5 z  w; K/ d
unit 一级牛俊;' k. l) v8 p9 ~, `  Y6 d+ g8 k
0 ]# t4 E3 V% i0 c# S
interface
% p( M5 V0 c% B* l8 w0 a3 S) e, u0 T# J% p) r
function  GetToken (aStr, aToken, aSep : String) : String;
, X# b! ~& D& H+ l5 v# _8 dfunction  CompareStr (aStr1, aStr2 : String) : Boolean;+ S  T; }* P- y, G* R
function  callfunc (aText: string): string;
) t. b" c4 m, v# q2 Q% Sprocedure print (aText: string);+ x$ A8 z; }1 D4 a) F4 P
function  Random (aScope: integer): integer;  x3 k! n% |+ [, Y9 }* R7 `( B2 ?
function  Length (aText: string): integer;' M& M3 g! Z1 L$ ^0 @
procedure Inc (aInt: integer);
$ w1 R8 Z! b1 ?  q7 I! z! Pprocedure Dec (aInt: integer);
3 O9 I( K% r1 ifunction  StrToInt (astr: string): integer;: q1 Q5 B0 D3 }. S. m9 n- g
function  IntToStr (aInt: integer): string;5 D1 @) R  l. m+ ]4 q
procedure exit;$ [9 h1 q. o1 n' n& J
0 }; Q% I. i; V' {
procedure OnCreate (aStr : String);
+ a6 @- M+ F7 {3 Gprocedure OnDie (aStr : String);: {6 K. F- b8 S5 N
procedure OnChangeState (aStr : String);
/ z2 D# T: N8 O& Uprocedure OnGetResult (aStr : String);
& n+ n9 w8 i* @* O/ M: f4 R7 a# }+ c. r; v$ w
implementation
" _; ^3 `& j* S) _5 x* R( X# r
0 Q& ~6 B' E6 Q! q/ G2 V2 Xprocedure OnGetResult (aStr : String);1 @- ~. L/ p( V2 _
var
, `9 a3 T  a2 I   Str, Name : String;/ [+ }+ s0 l; r+ m) c/ \# k
   iCount : Integer;( J2 r) a4 Z- d# _& I( L- i
begin
% M7 r' F; U7 W3 @   if aStr = 'start' then begin
, F' x. `! m7 s7 z) L: K      Str := callfunc ('getsenderserverid');
9 Y2 Z  f5 Z, l- U# d      if Str <> '52' then exit;
  ], P+ o. {& X3 f8 \. g8 R0 p. \! o8 `: w9 z; w+ O
      Str := callfunc ('getsenderrace');
, l& _: W2 L% P7 g9 H      if Str <> '1' then exit;
+ p6 Q( ?7 ]7 ?! a4 y; f# v1 a* ^# E% S! {# C( u. L% V
      Str := callfunc ('checksenderpowerwearitem');
# V* K. c- z8 Z3 a+ ?      iCount := StrToInt (Str);* R3 [. g8 r) T) Y
      if iCount > 0 then begin# K9 Z. o0 g1 \0 J9 V( s! T0 O& R' u
         print ('say 请先脱掉带技能值的装备!');
) ^5 B( p2 {, ?5 |5 Z         Name := callfunc ('getsendername');" y3 R, Q- K. t1 w
         Str := 'movespace ' + Name;
. U3 F, B# h* E- O8 j8 [         Str := Str + ' user 49 106 55 100';( u3 F. O: z% M5 n1 R
         print (Str);
# u8 ]1 r" v9 i  P9 ~- `( d         exit;- V/ d1 T" L& O: g# e
      end;
/ \, @7 l/ T3 a# x7 L) `      Str := callfunc ('checksendercurusemagic 0');9 P( d( b* M4 W, D! f' M
      if Str = 'true' then begin+ l( Z0 V/ l9 u
         print ('say 选错武功了!');
: j4 L4 e; @, a+ l/ h1 [2 P3 ?4 P2 l         Name := callfunc ('getsendername');; n- j0 ?, k5 ~+ f3 r
         Str := 'movespace ' + Name;# Y2 F7 U, f  |5 d6 J( s8 ^1 j
         Str := Str + ' user 49 106 55 100';
" `4 c" ?. h7 \8 w% i         print (Str);$ G% I1 J; q4 l5 Q% N
         exit;5 A9 _! r  B; U- L6 P
      end;+ _, `6 K  Q. E' H' w) D6 s( ^! U& @
      Str := callfunc ('checksendercurusemagic 1');
, [* p# e1 O' N4 M( f      if Str = 'true' then begin* ~. A' O! d# q( s: S/ j
         print ('say 选错武功了!');- e7 ?6 ]9 Y! C9 g! N" W
         Name := callfunc ('getsendername');' m! j" e" \! c, G
         Str := 'movespace ' + Name;
) E5 _* `4 g: a1 D) [1 V         Str := Str + ' user 49 106 55 100';
1 y. S, ?+ j9 M3 c7 P         print (Str);5 Q) G' y! l% ]; @
         exit;, D: O8 x! M$ J  J
      end;2 @: X* O2 m) O
: u7 X1 ]: i& b
      print ('directmovespace 一级牛俊 npc 52 20 18 0');
9 p1 a% I2 ]8 i- G" E$ ~1 _
3 f  I: _3 q: e9 c" V8 d3 [8 f      print ('commandicebyname 一级牛俊 npc 500');& X' f3 m3 ]; r# N
      print ('setallowhitbytick true 500');      * |; |6 D; ~- h
. P4 [0 \/ Y: A$ u. z1 s$ [1 {
      Name := callfunc ('getsendername');( S- y! }7 q7 c5 l1 q5 ?5 t
      Str := 'commandicebyname ' + Name;4 v3 u2 Y) K! }  M- z
      Str := Str + ' user 500';
1 O* e6 @/ S/ T( ]: g      print (Str);
2 i$ Y5 X. M6 ]! S- f7 s* Q; n7 T+ o' n, \0 S2 C' f( d
      print ('senderrefill');
1 ]. g9 X7 y$ M; n9 N; D( g4 }6 L* @! Q  M& B% O' }; t/ ]( `
      print ('say 10如果10秒内不能将你搞定 50');
+ c6 Y  }* M: p  t6 ^- N) V" A/ u      print ('say 就算我输! 400');4 H3 U* \! W, x* f2 Z: B
      exit;
6 G3 V) [+ I6 P2 t8 I# P( o5 T2 ~   end;. z& s0 |& P4 n0 b# p2 n# O! a
end;
5 B6 X7 s/ x1 o& U
4 k  Y" z. S2 m' ?; }/ F4 Qprocedure OnCreate (aStr : String);: W0 D# O+ w/ ]) M
var# S  D0 ^; C7 B  _
   Str : String;  ^8 \# E2 \5 e* C/ B" e
begin
7 ^1 J% `/ P5 A  s. z   Str := callfunc ('getsenderrace');& z/ p- z* W/ P, {5 A
   if Str <> '1' then begin( ~# T' H% V: z9 N: s* D
      exit;# M9 \: p; z/ `
   end;
5 O3 g, x) s8 H1 Y$ l6 w1 s- F6 t  b0 h- G
   Str := 'showwindow .\help\一级牛俊.txt 1';
8 C" v! K& L' Q# `2 Z   print (Str);2 T; G2 T! _% k6 e* \. G- }
   exit;8 w  c% f0 J9 Q3 }  G% x7 z6 [
end;
+ r; r6 @* W6 G% p, X( j& B/ E: m* |0 r* A
procedure OnDie (aStr : String);4 o$ M  N. C6 F6 ^; c
var
. y, `' ^6 k. s/ ~6 m0 ~8 [+ F" ]   Str, Name : String;  o- E; k% C- k: n6 B
   FirstQuest : Integer;   
! ^3 }) y- D' G, L6 |- u5 {+ M6 ^- dbegin
: \' y3 ^" j% m! j$ X5 n9 R   Str := callfunc ('getsenderrace');
3 x( V% U+ U$ l; ~' N# x* g   if Str <> '1' then exit;
9 V$ J, s" f/ O/ a) A, i
# U1 w1 _& A% M! x   Str := callfunc ('getsenderfirstquest');; Q; A+ C' \* E" L  `+ h
   FirstQuest := StrToInt (Str);# a) ^  X. \8 i! c$ O
+ m: y8 |) [1 ?; O
   if FirstQuest < 4 then begin
) L5 i2 |+ u' u5 o; j9 E      Str := callfunc ('checkenoughspace');
+ L5 m) \* e& G4 \  k      if Str = 'false' then begin2 }+ _& j3 g8 A* n) P: r
         print ('say 物品栏已满...');
! ?5 M# @$ d- s4 N         exit;
* t1 l% M* {7 L: ?" [3 |# ~7 b      end;5 ]' ^0 i9 G. }, l/ s
+ D2 s! F! O4 H8 @; t" y- a1 P
      print ('changesenderfirstquest 4');
! L- d' u6 U8 ?- [9 `. K" P      print ('putsendermagicitem 新手训练大斧 @一级牛俊 4');9 A( `) C; Y2 F" v* x4 y
   end;
- O: U/ F. b$ q0 G, b/ \1 t2 q# }* c$ Y+ b% u; x; q( c/ P
   print ('say 什么_不敢相信!! 100');
( f% }% L) U- C/ M
* R- p) M6 {5 _# A' S; V9 C6 i   print ('mapregen 53');
5 A2 N- [& o- R. |! H; t
, H! L; P0 t* a; C6 D. {+ b   Name := callfunc ('getsendername');  S7 s7 @( D* z$ E/ m
   Str := 'movespace ' + Name;4 w+ }+ K' s. ?6 a) `9 J( ^
   Str := Str + ' user 53 17 18 500';& Q, x9 b7 W# @; L" C& W0 v" E; L
   print (Str);; K' O5 V$ O5 h' e% x: i& R2 a
end;
% ?$ b, O: g$ V( c# c
9 P* A# u2 `( }7 rprocedure OnChangeState (aStr : String);: G1 V, l/ `# L
var
! l9 g4 W# O7 {' A. |2 z# ]! I   Str, Name : String;+ S% m) a$ q% j, i& Q
begin
' m" ?. o* r' l# G. c7 {0 Z; Y   if aStr <> 'die' then exit;
: L9 y9 @) ^9 }7 Y* i9 h6 u
/ `' h9 M& F& W; S* o% I   Str := callfunc ('getsenderrace');
: b3 s$ q4 Z8 w   if Str <> '1' then exit;8 G( i$ p; s, `- N0 j2 t8 z) v& w
" _  b0 z; J7 f' w. y% I+ y
   print ('say 领教了吧! 50');
" J2 X! k8 d! C" Q! G! d3 ^! R   print ('say 差远了... 400');
* \0 J% o5 n1 X  T8 x4 C- Q1 T' W- k+ b/ W
   Name := callfunc ('getsendername');8 D# l% j% o& m# F
   Str := 'movespace ' + Name;
9 p7 H- U: j: B  A- `5 z/ y   Str := Str + ' user 49 106 55 600';" F, W* W. w( M6 v2 k# L0 i
   print (Str);) U! f+ N' K  h' E& {; K- d
end;) }$ e8 m5 B1 O2 X& {; z* e  W

  `2 A7 Z/ K. t3 H* I4 nend.
0 B& M6 m, U, c----------------------------------------) N7 L1 {, N1 i3 `$ z
unit 一级雨中客;% c9 a% r( c, P8 H9 ^
9 A1 t, L( F1 g2 Y" a5 g( E6 I# S
interface
  a) q) ]! p* x. u* x4 |: U! P3 O! x' E) ^
function  GetToken (aStr, aToken, aSep : String) : String;- N9 ^# r- ^4 R- C6 _, N6 `* l
function  CompareStr (aStr1, aStr2 : String) : Boolean;9 L, }! {# F( |1 s: r
function  callfunc (aText: string): string;
  z1 N, p- d* i' B! L: rprocedure print (aText: string);
4 f2 I! a7 N1 W" d( rfunction  Random (aScope: integer): integer;
+ d" Y( O+ T5 Z; T6 ?  _1 Mfunction  Length (aText: string): integer;8 ^$ W; `) x- F+ P0 e/ X  X) W. c" q
procedure Inc (aInt: integer);
' U( ]- N  @# [' B; G2 uprocedure Dec (aInt: integer);
7 m9 N: I: Z! d) K4 w; \' w) b2 pfunction  StrToInt (astr: string): integer;+ L, x) g+ v  u1 C# }  b
function  IntToStr (aInt: integer): string;
) H5 e% j  M3 W/ Wprocedure exit;# T+ r1 K) S- y
$ i2 N8 D' i) H
procedure OnCreate (aStr : String);
; f  [: [7 _" i9 G$ gprocedure OnDie (aStr : String);
6 K2 Q; f& `1 r5 u7 Rprocedure OnChangeState (aStr : String);
# n( l/ l% K$ Oprocedure OnGetResult (aStr : String);
# I2 M' ~5 {6 Y  p' c# A
1 B3 Z8 V5 p0 }# g& K& Wimplementation! z3 Y% ~/ Q5 P6 u1 J5 q/ A+ \

( r0 T+ c9 E% q& [procedure OnGetResult (aStr : String);
- Y! U$ S- V3 F) Z+ c: Y$ G7 F4 }var
; e' ?4 D* [7 @! W) {* l% e2 x   Str, Name : String;
7 k$ N. a. w  X9 n- v) e   iCount : Integer;
0 m: N2 ~0 ^7 g% J( {. x8 k$ R7 wbegin
$ q& R% f2 N0 `7 ~   if aStr = 'start' then begin
3 ?& W4 W; {, W& i6 }  L      Str := callfunc ('getsenderserverid');
3 Z+ u( ~  Y: A) [5 l2 d: q7 q      if Str <> '53' then exit;
% l% C* |  Q+ {; r* s, I8 q
! f2 H8 }6 c+ m( I      Str := callfunc ('getsenderrace');4 K  M  E# ~. p/ N+ y- r
      if Str <> '1' then exit;
, [; X* y7 y6 W, M0 A3 u1 r9 u" D/ v2 H
      Str := callfunc ('checksenderpowerwearitem');" r3 m3 F7 y  u/ [
      iCount := StrToInt (Str);
0 f, Q3 G1 o+ |  k$ M      if iCount > 0 then begin  q. q6 Z. a; g- L# u- |; s; h( O( [
         print ('say 请先脱掉带技能值的装备!');
5 a0 B) P$ s9 k* B( r         Name := callfunc ('getsendername');
, K; W$ W9 S% V1 z+ o1 s- F  K         Str := 'movespace ' + Name;+ V4 X" Y2 ?; C$ {
         Str := Str + ' user 49 106 55 100';
" Y5 X0 X1 N1 d" S0 I9 L         print (Str);( e/ P4 A# ^- K5 R
         exit;2 }2 ]7 X0 ~: w0 z( L) Q, Z
      end;$ j( `5 U( W2 [
      Str := callfunc ('checksendercurusemagic 0');+ s$ S4 B) y. T2 C4 s8 d* D
      if Str = 'true' then begin
2 N9 F. T) r9 i; }/ n2 a& r         print ('say 选错武功了!');, r, ~) y* ~3 z0 [/ e' W( R
         Name := callfunc ('getsendername');0 g( y0 i# c/ L* z3 E) N6 O8 A; J, C
         Str := 'movespace ' + Name;
+ u, Q( D9 c1 I1 ^; |6 M6 Z9 S2 x         Str := Str + ' user 49 106 55 100';" Y4 r! `# x* t( H7 ?+ [
         print (Str);
$ d8 O1 b# Z2 Y5 [) C         exit;2 t: A! [4 P4 S+ c
      end;
) Q) v6 {8 q& `9 [8 }4 ~      Str := callfunc ('checksendercurusemagic 1');
. ~+ @- r1 L: ?( e      if Str = 'true' then begin) }. Q* v4 r0 B1 [! t: _
         print ('say 选错武功了!');4 U3 R- L8 c9 N5 ~. [+ m
         Name := callfunc ('getsendername');
! ^  X5 K! b$ x! X- z         Str := 'movespace ' + Name;
. x- f  E! A5 d$ u  I/ N6 T5 s         Str := Str + ' user 49 106 55 100';; o% g5 Q( L: ]
         print (Str);
8 b+ c9 L! U0 j         exit;
/ h3 T. o8 i; a; ~! l" m* E' H8 D      end;
+ G$ A$ B" Y" k! d2 r- }5 d; p. p* I- G1 s6 I5 u1 M
      print ('directmovespace 一级雨中客 npc 53 20 18 0');4 O' q' o0 p2 [0 [4 E# s9 U

6 g, E* M2 x0 Z: W. S( G      print ('commandicebyname 一级雨中客 npc 500');* w; v+ F; |2 [# ?7 y
      print ('setallowhitbytick true 500');      
8 R  y) [# x( ^0 ?! B* V3 a6 d9 f& |; \+ N/ v( T- i0 r
      Name := callfunc ('getsendername');
" J' u# ^; v$ S      Str := 'commandicebyname ' + Name;
0 g& M9 q6 f4 V5 X0 h/ m4 J      Str := Str + ' user 500';" o1 J, D3 _! t0 c% t
      print (Str);
3 ^/ s* m" y. W3 p. J( ~4 R) D) E/ G" K, O
      print ('senderrefill');
& j6 g1 |- q6 g0 w1 g: C
* U2 l6 }$ o- t4 d      print ('say 领教了 50');4 I$ W. I1 p8 r* S6 l$ v0 ]+ }
      print ('say 开始吧 400');/ {3 Y% l1 F+ z6 h' P) t
      exit;9 p/ z! Q2 n3 t4 e% O3 s
   end;
9 c* A, T( T; C: a. A7 Lend;
5 J- ^) d# I: K$ n9 P! W* ]; @
! P& L9 V# T1 n! @; U; gprocedure OnCreate (aStr : String);: ~3 b. i0 G  E. i- G, i" L
var
6 n2 x( O& J; n& @% b1 i' A   Str : String;5 ]" O8 k& S  Y) w! s  [7 l
begin; Q' j' W- p) _) @# g: I% g' u
   Str := callfunc ('getsenderrace');
- K$ b. P; A3 l" O9 O+ @   if Str <> '1' then begin
3 r1 V  {+ B8 a  K  E: D- _      exit;
$ {5 |; E$ T# g7 A$ p  Z   end;+ `# Q/ C( H5 ]) `2 {. w. m; \2 j6 K! G

0 O3 e! ^. b; P: [1 z2 r: B   Str := 'showwindow .\help\一级雨中客.txt 1';
( @9 a! m% y0 I6 s   print (Str);$ C% f! C2 G2 v; N
   exit;
. m8 Y8 u4 g$ f1 Gend;
7 C  L8 w. p( F( t1 m. L5 J: Y7 h# v+ b, s) @" ?9 E
procedure OnDie (aStr : String);
# o# X$ b- }% @9 `$ ovar
2 c' y1 \7 v) V. V/ W2 j/ ?' m   Str, Name : String;
* |1 G/ a. _! k2 D9 D3 Y   FirstQuest : Integer;6 [) B2 V& f  K5 B
begin8 L5 C3 d2 N- ?9 d' n9 I2 |
   Str := callfunc ('getsenderrace');- `: ?& f8 M4 _9 |5 c& Y
   if Str <> '1' then exit;' A  n2 c. ^( E
* ^9 u  P! m! B4 W
   Str := callfunc ('getsenderfirstquest');- X% R/ k* K- [# t( p+ E
   FirstQuest := StrToInt (Str);6 c* ], |5 l0 g) f5 b" d( Q: F

! |4 N# ]9 F( X! M: U& U7 u/ d   if FirstQuest < 5 then begin
/ f! z) v0 w; i: E% N; O      Str := callfunc ('checkenoughspace');3 D% G9 _7 L( L  U6 H
      if Str = 'false' then begin
9 d& n  C7 r7 I8 a/ O4 @' h" x         print ('say 物品栏已满...');
# t  o# o- r3 H( X3 u         exit;$ Y* r4 h/ _; s+ \; t; H/ b! Y
      end;% C& p' _4 ]6 n- \

/ z0 o4 u, H* I) W: U) v, g      print ('changesenderfirstquest 5');
& x. y3 Z0 h+ [3 I; K7 f      print ('putsendermagicitem 新手训练弯刀 @一级雨中客 4');
( d, [8 Q+ A4 Z2 J   end;
6 O. |2 i$ U1 `- M& o$ |* L, j) k* X9 n* n; d. K
   print ('say 早料到了_佩服 100');! ~& M+ g' L( d

' @: o4 ?$ O# D' y" S- Z( W   print ('mapregen 54');
0 c: V5 Q! n- b/ P: h$ `+ x& B' w1 ?& s  G) ^
   Name := callfunc ('getsendername');1 M( x$ g" d1 H
   Str := 'movespace ' + Name;
( ~  O6 \1 a' f3 q. I+ ]9 {   Str := Str + ' user 54 17 18 500';
/ S' _5 Y  D4 Y/ O" o   print (Str);
% M# Z4 R7 w) p, ~2 |! zend;
- G3 M/ \( n  N/ I
+ c  D# i( Y0 ^6 k  L% gprocedure OnChangeState (aStr : String);* B; R; K6 t4 s. @$ J  c+ c
var
" O- p# s' x* O5 A0 |9 X9 f, d   Str, Name : String;
  {% {* `+ R/ }/ M! _5 Dbegin
6 B1 V/ I/ }; a) F$ B$ n: [   if aStr <> 'die' then exit;& r9 ^& ?9 R9 m6 ^

4 e# ?  B8 I( y3 A& E   Str := callfunc ('getsenderrace');
$ I6 s9 i3 E  i( `, K: b% I   if Str <> '1' then exit;
1 K+ ~, _& N. E, E: L
8 c& x" h: H. G1 q2 s% Z+ x+ _/ e9 @, N   print ('say 不错。只要能维持几秒钟');; e9 y1 f5 _( g4 w+ e; k
   print ('say 到那时谁都不是你的对手 400');
6 c* ?: Z: s! i% h
& ]7 A. ?7 Y! c0 \4 ?   Name := callfunc ('getsendername');) c0 A) Z. L' c- o
   Str := 'movespace ' + Name;
8 P0 k: P, Q& p3 p2 [  q$ ?   Str := Str + ' user 49 106 55 600';4 w) I1 z# X' d6 `+ z; i0 z
   print (Str);' `; D: a1 i! r! s8 f+ C! H
end;
. D; J; g$ a& _( r8 W7 e. z5 p
1 h( Z5 D3 O0 \0 U8 w2 Oend.
% I! _( Q9 j7 u+ B2 G4 b
6 J$ ~( {  N; }$ d--------------------------------------------------------------------------------------------------------------0 y3 U( Y) e3 T# O* \

: s3 O- e2 b! S2 D  m; h8 N, E- Punit 一级老侠客;9 y  `- }3 R3 K, ]; P; p' m

  ~% W8 [( Z4 sinterface
' S( e1 Q6 ~& W3 C% ~( J4 b  }0 D/ c3 X9 n, f7 z4 m
function  GetToken (aStr, aToken, aSep : String) : String;
0 w0 n' E1 [- G& Z% S: {function  CompareStr (aStr1, aStr2 : String) : Boolean;
" y" b; N% d( \! @, B% }function  callfunc (aText: string): string;
% h4 G  a0 S5 ^6 |. N# R0 S3 W# Eprocedure print (aText: string);$ R% S, e, f2 |! S
function  Random (aScope: integer): integer;2 `; T6 O6 F) c. b
function  Length (aText: string): integer;  h" W& a' H, {9 |( k4 Q
procedure Inc (aInt: integer);+ R. x8 j9 v$ f5 C6 [5 V! f9 P5 w
procedure Dec (aInt: integer);" u; t0 b. _* Y! [
function  StrToInt (astr: string): integer;$ s; `7 ^; s# e# R/ Q. F) T6 l
function  IntToStr (aInt: integer): string;
$ {& _7 g5 t$ |: Uprocedure exit;1 a. _+ a' `: q7 m- p
1 `" @$ ~+ P6 [7 |
procedure OnCreate (aStr : String);
0 J0 ~6 R4 m  W2 }' ~, [procedure OnDie (aStr : String);; ?- o: h( ~& ^6 D8 ~! ^
procedure OnChangeState (aStr : String);; b4 B" Y: p* z' l6 a7 L
procedure OnGetResult (aStr : String);+ p1 i! A7 d3 ?/ D& T

" s  y' U( \8 B+ _. uimplementation
& G1 Y. J6 x5 M  G/ h- }4 S+ `  R; i1 h2 e% h+ a0 [7 ^8 m" h
procedure OnGetResult (aStr : String);4 R( D4 x& M# M4 H3 ?
var
+ j5 D$ I) m1 C3 S6 z7 t9 m6 L   Str, Name : String;: P. {6 @% b6 R" U5 o
   iCount : Integer;   : z3 q; G$ G/ n6 F& ~2 f6 v
begin1 }/ N8 u  T2 H5 g5 U/ ~7 N
   if aStr = 'start' then begin) e6 n0 ^9 j1 ]$ @
      Str := callfunc ('getsenderserverid');
+ u- u7 R) w# y) x" r      if Str <> '54' then exit;
' I- ~; o& g0 M. ^+ |* `
0 w9 M' x3 r7 k/ q      Str := callfunc ('getsenderrace');
/ n) f+ m- i1 X1 ^! E5 y      if Str <> '1' then exit;
, {& ^3 K0 x9 m' J: i& S& m$ u, x/ C5 t6 I# h9 X. |; t, O
      Str := callfunc ('checksenderpowerwearitem');
- n0 L( Q% O9 L3 q& R      iCount := StrToInt (Str);9 h  w6 P7 \9 a' c; C
      if iCount > 0 then begin3 q8 G& ?6 @$ \9 T2 e8 v7 X
         print ('say 请先脱掉带技能值的装备!');
( T2 a# H/ z* h         Name := callfunc ('getsendername');3 i1 H7 U1 T4 w) \, a! B2 U- P
         Str := 'movespace ' + Name;! m) Q  h0 V" a# ]+ |9 n4 {: I
         Str := Str + ' user 49 106 55 100';6 D. p& S2 d. D
         print (Str);9 M) u+ `" p0 m( f) d- z" t
         exit;/ c+ E0 @7 d4 n- V: E& F
      end;7 E" W- M; P( G% ?
      Str := callfunc ('checksendercurusemagic 0');% j. W, [) E: @
      if Str = 'true' then begin2 j1 A: R- ]0 m2 Z. E" W
         print ('say 选错武功了!');8 O8 Y4 y2 I2 c6 C5 T, `
         Name := callfunc ('getsendername');
' V  i/ V6 z' r         Str := 'movespace ' + Name;" J6 n( h+ I* K( R
         Str := Str + ' user 49 106 55 100';
0 _" P& |+ N/ w* q( q! H         print (Str);
8 _8 G# C+ }9 k9 a3 N- i$ o         exit;/ l( [: d" j* O: I  |8 e7 i8 b8 K+ {
      end;
0 R5 }- O9 }% ^6 \5 E! s% _5 z9 R      Str := callfunc ('checksendercurusemagic 1');
. E, ?% b+ _9 T2 N. e      if Str = 'true' then begin
& |* ]" N7 L# K; a         print ('say 选错武功了!');
$ b9 t% q. O2 E         Name := callfunc ('getsendername');
. i8 n. m, i- l4 o- G$ `, p$ D         Str := 'movespace ' + Name;7 X. R; q* \1 X5 h7 r: p/ i
         Str := Str + ' user 49 106 55 100';
8 @, J' |: q, \6 {1 b2 S& O) o8 U         print (Str);
/ b3 G3 m+ }. p) w         exit;) T; V8 z: L& z4 B
      end;5 `; Q7 l3 x" R4 `' }. q

# d. U5 M! h( _2 a* g4 x5 y      print ('directmovespace 一级老侠客 npc 54 20 18 0');; b# [) h3 P: _% v
# [- v/ ]/ t0 `% ?, t" _) x1 r
      print ('commandicebyname 一级老侠客 npc 500');
  v8 h4 F/ m% {" u/ w# i; v. I      print ('setallowhitbytick true 500');      
' ]% ]6 {! q! V# S* ]+ w% O- z$ F+ X! ?6 u
      Name := callfunc ('getsendername');3 T6 M- ^$ T& _3 D  B6 l
      Str := 'commandicebyname ' + Name;
# C4 F+ n- g$ h' U3 K2 `3 [- L      Str := Str + ' user 500';' K+ ^5 i& p" Y+ I2 N
      print (Str);" p- _" X/ v9 _; N- s9 q

& K6 F& U' H2 r; a" ~      print ('senderrefill');
. F4 p  ?) o4 N, ?  T( F; f, k
5 P" F9 u) @+ ~% O! ^! ]      print ('say 如果你实在想比 50');, I" h) T& n# K6 k- U, F
      print ('say 我将奉陪到底 400');
0 {3 S3 N0 a: x4 q0 E8 N: J& `      exit;
4 z2 T* K0 h% c) O: ~: `   end;
" I5 B- A0 P$ a; j( z7 g) J7 Aend;
4 {& |9 {1 w3 C- r- P# ~' H* w; M4 y  |( n' }
procedure OnCreate (aStr : String);3 F2 d+ `. Q4 I
var
4 \/ |2 Q9 f1 ~1 s# k7 E   Str : String;* s$ ?4 c0 B: W0 U
begin; \- m( H0 Y$ k5 C4 D: k
   Str := callfunc ('getsenderrace');: Q, r; l, ]7 [# t
   if Str <> '1' then begin
4 G& ~' l; a; N5 A1 H      exit;
1 t; f2 i! a* K6 z; U  d9 @   end;
, y; y1 w  d4 K
, S! J  h$ v. Q( n9 `4 H! q3 t   Str := 'showwindow .\help\一级老侠客.txt 1';7 \1 ^& g' J3 V5 i; v; G- F
   print (Str);$ k1 Z1 w4 A9 e
   exit;% Z8 |4 ^- \! b/ _& L3 f3 a6 V
end;" w0 V: s: d% T* L2 ]4 p$ ~

9 ]! V4 q3 ~) rprocedure OnDie (aStr : String);! ~; ^2 F& p8 B" N9 Y. x5 E/ z
var
( w: e, v: R3 R1 I   Str, Name : String;
8 h+ v9 J, l7 A( D) \, R! Q8 i3 |6 g   n, FirstQuest : Integer;   2 B" f! a. {; X/ f+ x* Y/ {: g
begin
% @1 t, w; j+ ]& D4 z0 b( U7 a& m   Str := callfunc ('getsenderrace');: ~. _  X# @- X; k( v4 _1 ^8 [5 B2 P' k* O
   if Str <> '1' then exit;$ @: A0 A1 ?  K# Y& o: L

; K0 |( c/ q5 I6 @   Str := callfunc ('getsenderfirstquest');$ Y. {, r) d3 ^! a- ~1 Q
   FirstQuest := StrToInt (Str);
  i5 C5 ?; O; q0 k6 [. n0 M: b) L( h# e& T% Z+ I
   Name := callfunc ('getsendername');0 V. g+ K' f5 i1 s" d2 U& S+ x
: G; Q. k! D0 I( j1 V" i% m
   if FirstQuest < 6 then begin; T9 R/ v. I8 {, L3 S7 s
      Str := 'sendsendertopmsg ' + Name;# Y0 V5 U( v6 y/ |$ \
      Str := Str + '恭喜你,通过了所有的比试,获得【侠客弓服】';
' [! O5 b5 H/ p. H1 P/ J, |3 G" l      print (Str);3 c6 s' N2 x0 _+ y8 R" r

, ]; ~# ^! W- c$ b      Str := callfunc ('checkenoughspace');
2 T7 h5 C9 q5 R1 b' t# p# r      if Str = 'false' then begin' ], x$ T, q/ h, X
         print ('say 物品栏已满...');
2 b- i8 W4 P- w( V# G; a         exit;+ |/ n0 y9 [% s; N/ Z  Q0 u
      end;
3 @& K, ?9 H1 ~7 e7 m& a/ C( w' c+ c. a) n
      print ('changesenderfirstquest 6');9 A( L* H4 q; [% K3 K) Q7 ]+ U# S
! h) x; I6 {2 i3 }
      Str := callfunc ('getsendersex');
; C3 ~: J4 y( o6 o" c2 Q' g      n := StrToInt (Str);
3 f9 R5 A5 H4 U  g      if n = 1 then begin
8 N& {! X. z; ~5 ]8 w1 i) |         print ('putsendermagicitem 男子侠客弓服 @一级老侠客 4');2 O- n2 R2 V) |
      end;$ v8 v& F, i( U2 T& c  o
      if n = 2 then begin
8 N$ n/ P- M* j5 a; e( m, Y  S8 T         print ('putsendermagicitem 女子侠客弓服 @一级老侠客 4');
! I! S# l1 c- Z2 k, m# h0 H      end;6 F" O& V3 ?, b* G+ q- M
         print ('putsendermagicitem 新手训练神剑 @一级老侠客 4');
) c& g  e3 Q  N+ E: Z6 S0 j- \& j   end;3 U8 q, ?( W/ |% E! w

4 ^' ?" g. ]! |' ~# A/ ?* M: V   print ('say 佩服_佩服 100');0 r. c* Q1 C9 M# A) Q

8 e! Z6 J/ v. s, h) `) r" O( }   Str := 'movespace ' + Name;3 I# A- ~" a0 f( g
   Str := Str + ' user 49 25 35 500';* a6 v$ T4 ?9 e% {- r. B
   print (Str);
5 x) b. c, Q' z) zend;
; d1 k! A% o* A# p3 s( w- Y! Y  S2 ?, Q- o6 O
procedure OnChangeState (aStr : String);$ B" Z7 y2 M) C* P3 c
var
+ ?  j' q& r4 z0 E! M6 J9 N   Str, Name : String;- n, T" J# b) c" i" ~
begin7 p, A$ _7 y5 [! y' E8 H
   if aStr <> 'die' then exit;3 y" R; V$ i; s7 Y. X" K

) E2 A4 n0 T  O9 P   Str := callfunc ('getsenderrace');
: ]: {& Q- y/ t7 t   if Str <> '1' then exit;( }9 R6 R6 c2 B

! V2 L( D. }! ~$ C3 @. c   print ('say 小小年纪_就有如此高深的武功 50');
* w; X# B$ }( }+ M   print ('say 日后要继续修炼... 400');
( k$ ?0 o6 I+ K  ]5 p) e  L8 s$ D) k: W2 ]
   Name := callfunc ('getsendername');* x4 P9 i& ^3 E$ a  I" p
   Str := 'movespace ' + Name;# B( i0 Y% H  a8 G1 s
   Str := Str + ' user 49 106 55 600';
+ C) @/ ]6 |5 Y: A' s   print (Str);
& E  y. M  ^$ @4 ^  `/ h# h, C& @/ Send;. g% J9 i, x5 x/ X8 k" O/ r

5 M5 s  n0 |$ M) h  l4 ^end.0 U5 a$ O$ R6 p: H
3 {* p6 x9 F4 |: W# t0 R6 [2 m
-------------------------------------
- t% @  `6 e& E2 S/ k" o( c
2 H5 q) x% M, _5 E8 x8 T1 D*************************************: e9 h& [" \4 h$ m4 f& b( e- V
) R2 l; {) @, f& X( d3 l
奖励物品代码:
+ J) r# O# |6 U8 T& Y
! r# G- y% Q: X8 z*************************************9 _/ F' E: M8 L/ V- d

, R( B8 _! K# y( p! a0 Q7 H& E/ D男子侠客弓服,男子侠客弓服,24,新手村擂台战利3 u0 F* [6 d! A- H, N- z

# W2 j# G2 T/ ?, G) q品,2,,,,,FALSE,FALSE,181,6,7,,,,1,1,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,10
6 a. D9 ~; {8 |- w5 W/ b4 H3 w. Z$ e+ Q
0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,3 `4 Z8 s& o  C7 @* w# |
女子侠客弓服,女子侠客弓服,24,新手村擂台战利
) Y6 t# \; m: e( S! ]5 l4 ?& I+ y5 Q* L, o0 q
品,2,,,,,FALSE,FALSE,181,6,7,,,,1,2,1,,50000,,,,,,4432,4831,TRUE,,10,20,,,,,,,200,100,100,105 }5 [$ ?. C1 Y/ `4 {. U8 ]

% U0 q) `7 z1 F8 E4 W0,,,,,,3,TRUE,4,,FALSE,,,,,,,,,,,,,,,
/ O' M0 `, i& i' Z新手训练拳套,新手训练拳套,6,新手村擂台战利
2 P' V, u) ]$ ]# ~) ?4 a) X( }9 Q
品,1,,,,,FALSE,FALSE,361,9,52,,0,0,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,. M: w( R  J, N0 W
1 e; {$ \; |4 j  l; `
,,,,4,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
9 i0 ?* W( K: y2 q新手训练神剑,新手训练神剑,6,新手村擂台战利- s' r6 e9 y' t4 J- H0 L4 c8 a9 p

! v! T8 ~# C2 q  Z6 c4 A6 i; s品,1,,,,,FALSE,FALSE,365,9,69,,2,1,1,,1,,50000,50000,,,,,4404,4805,TRUE,20,20,20,,,,,,,,,,,,
9 n& \+ d5 F  R& v% n
$ s$ l: o8 |9 G5 f6 z. V,,,,1,TRUE,3,TRUE,FALSE,,,,,,,,,,,,,,,
2 T1 @; O3 ?% H8 T新手训练弯刀,新手训练弯刀,6,新手村擂台战利6 U2 E4 q# [1 Y0 l+ j

! c) _  \6 Z# D5 C; l5 A/ g品,7,,,,,FALSE,FALSE,113,9,2,,2,2,1,,1,,50000,50000,,,,,4412,4813,TRUE,20,20,20,,,,,,,,,,,,,# y/ D$ ]* |; q

8 b9 F; f* |; r,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
/ @) {& R8 B0 J' B) o新手训练长矛,新手训练长矛,6,新手村擂台战利- R3 R  C" D9 a- ^6 R6 Z3 f  Q
( ^$ G6 y6 I- q* y, O2 b# e
品,6,,,,,FALSE,FALSE,117,9,45,,3,4,1,,1,,50000,50000,,,,,4435,4834,TRUE,20,20,20,,,,,,,,,,,,
2 t! L6 e& J# h' F; n9 C  f+ Q7 ]" O- @, G/ t% n/ F: S$ G: P1 y$ `
,,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,
' t5 e$ l: [5 g" u5 Z新手训练大斧,新手训练大斧,6,新手村擂台战利
" X( ^6 b# ]3 m3 n2 h8 E( h5 f' ]: F- K
品,6,,,,,FALSE,FALSE,95,9,12,,3,3,1,,1,,50000,50000,,,,,4415,4815,TRUE,20,20,20,,,,,,,,,,,,,4 N: o" y5 L. @; q% T' K# M% ?" {4 ~6 x' b

* Y" G  z0 v- p3 p( M,,,1,TRUE,4,,FALSE,,,,,,,,,,,,,,,, D2 O6 B( E% ?, F& |8 s& [

% S+ K; u( C; B) s- H) r- P******************************************
  p' V1 N! `; i7 L& D# g7 F0 j+ }
& u, U! V' }6 u2 Z# z0 \9 Z8 Y# Q' l. `
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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