游客您好
  • 点击联系客服

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

    客服微信

    Wkr-3000y-kf

    电子邮件

    3000y@wenkeruan.com
  • 手机版

    随时掌握游戏动态

  • 扫一扫二维码

    添加微信客服

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

[安全工具] 太极牌升级NPC脚本,需要的来

[复制链接]
快要发癫啦 发表于 2023-2-24 09:52:06 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
想当初我们玩官方的时候太极牌是多少人向往的宝贝,可是现在服务器太级装备都是垃圾了,用这个脚本可以稍微为太极剑门带来点门票收入,呵呵.也许有办法让太级牌直接可以升级,但是我实在是能力有限,喜欢的话拿去用吧^_^0 A* K6 H5 [8 A. s7 y1 ]
+ y% k* C* ~) ^% \- t; L

' A0 q( }5 D" y7 U首先,TGS\ITEM.SDB下增加以下4样物品
" {. J3 ^4 O3 w2 A" t+ \  K& Y$ b2 o2 N& l3 K/ O

& ]+ p. t2 l0 l3 m9 ?$ N太极牌1级,太极牌,38,身上有太极类武器时才能发挥作用,,,,,,,FALSE,FALSE,193,,,,,,1,,,,10000,,,,,,,,TRUE,,,,,,36,,240,84,84,84,,,,,,,,,,FALSE,,,FALSE,,,,,,,,,,,,,199,,,,,
# J) D6 ]3 i& I0 X太极牌2级,太极牌,38,身上有太极类武器时才能发挥作用,,,,,,,FALSE,FALSE,193,,,,,,1,,,,10000,,,,,,,,TRUE,,,,,,45,,300,105,105,105,,,,,,,,,,FALSE,,,FALSE,,,,,,,,,,,,,199,,,,,
3 u& w- e% g0 b, ^7 b& k. @% Z太极牌3级,太极牌,38,身上有太极类武器时才能发挥作用,,,,,,,FALSE,FALSE,193,,,,,,1,,,,10000,,,,,,,,TRUE,,,,,,60,,400,140,140,140,,,,,,,,,,FALSE,,,FALSE,,,,,,,,,,,,,199,,,,,  K* `! j* O1 x5 Z6 v( X  W
太极牌4级,太极牌,38,身上有太极类武器时才能发挥作用,,,,,,,FALSE,FALSE,193,,,,,,1,,,,10000,,,,,,,,TRUE,,,,,,75,,500,175,175,175,,,,,,,,,,FALSE,,,FALSE,,,,,,,,,,,,,199,,,,,5 R- x: U7 m0 H! b
然后是TGS\NPC.SDB+ p8 ]" a+ A8 t/ a

4 L5 H. l- Y/ m7 `% H
1 Q! d1 {  h$ t7 ]1 P) Q% o+ c1 `
太极牌锻造师,太极牌锻造师,0,,,,,,,,,,62,81,235,0,0,,,,20000,0,0,0,0,,4,,,,,,,,,,,,,,,TRUE,$ g( b$ k* R4 v: `; q6 |+ W) W
接着是TGS\HTLP下建立一个文件   太极牌锻造师.TXT4 W# h' a6 x- c+ N7 ~4 @/ T

" ]) H" A: p9 e" @' Y+ S3 K

6 a$ w9 S7 ~% h0 h/ O3 D/ R4 t" U<trade># t: X  n" Y! x# o4 W" L
<title>太极牌锻造师</title>
% p! |& L( q' l<image name=z81 value=235>6 Z' N, S; ~; R6 i- P% h* M, t
<text>* l: F3 ~0 m2 I: d7 f/ A  D
把太极牌交给我可以帮你锻造3 {" ^+ ?; I& b& m
</text>4 `  e% P* d! R3 z/ Y% U+ t
<command send='close'>关闭</command>
5 U! C9 x* ^0 R<command send="sheng1">太极牌升1级</command>
5 L' s+ }2 U6 x1 x& E$ F. d7 p8 H9 I" @) [8 ^" h: ~2 j
1 a" N! E) s6 o' w& E( e& U5 ]% {
<command send="sheng2">太极牌升2级</command>8 x  L/ I8 A2 ^- l

) z6 W* O2 j! U" e) B9 b1 |# T" d
- ]- ~$ d! ]. ^$ {  R4 M
<command send="sheng3">太极牌升3级</command>
6 P1 ?! K; L/ N8 X0 x4 O
! v/ j. [3 |4 O5 g! H9 a8 @2 t/ }# n
( m" j' E  k. W" C# Y# t
<command send="sheng4">太极牌升4级</command>! b3 p& k' L0 C0 E4 o/ r- s5 }( B

" v1 L/ S# N5 y* Y# |1 B; a
+ x  y% b  y$ J, K9 `5 s; P
</trade>6 f& l( A& ?! d% Y9 }6 x

8 C) c; L! \" z; [

" }& a. ?) [$ N" V8 \接着是TGS\SCRIPT下建立一个文件 太极牌锻造师.TXT
+ u: a7 e& T) d$ S3 r) b/ f2 y! a. D9 W2 Y

" S9 [  a% b9 Yunit 太极牌锻造师;
; ?( T3 v! e. c; `- d8 ?0 f
' f# [& o- {2 }6 {

4 P. \  I: q8 b: e3 {+ Sinte**ce- ]6 s, b$ O. a+ P0 F
; f) `( j- b. S' K0 E
0 \$ O. D( p' W# U: {3 p1 r
function  GetToken (aStr, aToken, aSep : String) : String;/ _  x3 x0 ^# \' \) f
function  CompareStr (aStr1, aStr2 : String) : Boolean;. Z8 E' P5 T, n1 [
function  callfunc (aText: string): string;' ^2 C- a7 x, h7 A. t
procedure print (aText: string);
8 @( H8 b7 q8 `$ g2 x0 d' N, ifunction  Random (aScope: integer): integer;( [# n5 n4 B! k; N
function  Length (aText: string): integer;# H* B, E" U7 `  c- M
procedure Inc (aInt: integer);2 M6 @# [: o# R. R4 j8 u- ?# z2 v
procedure Dec (aInt: integer);, Q( `6 Y8 b1 q' _
function  StrToInt (astr: string): integer;  ]9 C- j$ N- J! W
function  IntToStr (aInt: integer): string;- {2 l# {/ e0 }) l! ]2 O
procedure exit;
# }; i1 J) o3 i1 Q- l( `, D: {# _; b6 N
  r1 ]. }% m. C* O2 J5 ^
procedure OnLeftClick (aStr : String);
7 u0 ~1 @& b, ?* y1 Hprocedure OnGetResult (aStr : String);/ Y8 Q, A5 L6 _

/ K6 S9 w! `$ Z* ^8 y0 w9 O4 G
/ l4 S) t" X) f9 V, _& d" _
implementation1 O2 {* C8 R/ v& c) |" X; w
7 G4 b. v9 B+ @; X7 ]
4 H8 R5 `% t4 c8 A4 q) ?
procedure OnGetResult (aStr : String);. c/ q) J; i6 e, }! o
var3 O  `6 ^5 {' P1 u8 t  v& C  G
   Str, Name : String;( k' \) [- F6 d- L1 U* V
   iCount, iKind : Integer;
  _+ n+ c8 Y$ ^* Q3 z: qbegin5 d+ e. c8 ?( x5 a
   if aStr = 'close' then begin/ S! |9 C# B" d
      exit;3 b" X( E2 ?/ i
   end;
7 o3 u" h) {+ u! U     if aStr = 'sheng1' then begin
; {  F# Q. u+ t: L: h4 D! U, e      Str := callfunc ('getsenderitemexistence 太极牌:1');
) O" j! H0 o/ w1 E! v      if Str = 'false' then begin
6 L3 ?8 A2 _9 Y5 G$ w7 T9 O9 x         print ('say 没太极牌怎么升级啊?');4 d6 U* x* [0 p$ I
         exit;  e6 g8 y7 `1 a6 M
      end;
0 h4 \$ _. e" b4 i' T/ H! o      Str := callfunc ('checkenoughspace');7 w# n& K) o: m: M; A
      if Str = 'false' then begin
/ B- ^( ?# Q# l8 A         print ('say 你的包包太小了');
/ Z9 ?* }2 s$ T. ~- J         exit;
1 C' I: y/ {8 U5 r8 ?      end;
, ?6 o! D* q1 W6 n$ I  T% K6 g. p, i/ k4 r- t7 Z( g

' ~- @6 m0 A( A/ N! L      print ('getsenderitem 太极牌:1');
: r' Z+ }7 [" }( p; A. g
2 Y: M2 r4 R! ]+ X

& E0 S9 @' Y3 ~7 e      iKind:= Random (4);
: B  I$ M1 ?/ B      if iKind = 0 then begin
. D" s9 f6 U4 U- n5 k3 A         Str := 'putsendermagicitem 太极牌1级 @太极牌锻造师 4';& B1 N4 F0 V# h. H2 \8 u- Y
         print (Str);% ~# ?  z! y1 F; O2 s' F
      end;4 l; j" ^  h; U! x" ~& m: i2 l
      if iKind = 1 then begin
/ U4 ~, N2 r+ P* g  C0 Z) X         Str := 'putsendermagicitem 太极牌1级 @太极牌锻造师 4';2 D4 g$ i- k+ t* _
         print (Str);! W$ t  K# D( T  J* z" Y9 h$ _
      end;
# n! \0 ?4 x/ ^& `      if iKind = 2 then begin
# U2 I3 s2 l# |7 W         Str := 'putsendermagicitem 太极牌1级 @太极牌锻造师 4';" y" a. I' X) i- h
         print (Str);
# [% |+ {9 |9 ~3 ^9 ~$ |+ z, ~; e      end;
* C  r$ D0 M, {/ N" `; @$ T2 W9 z, J2 e      if iKind = 3 then begin
% i# D# }2 U+ {- Q; [; m         print (Str);4 Q$ Y1 g6 l$ W) k
      end;
- ]( Y; }: k! x/ o( N2 f      print ('say 无论如何,都要感谢你让我看到太极剑门的壮大');
0 L5 {1 {8 c9 g1 n6 t! F   end;# \- V3 q: f  g8 E+ G' K
     if aStr = 'sheng2' then begin1 c6 b9 m2 K( G& x8 |
      Str := callfunc ('getsenderitemexistence 太极牌1级:1');9 D8 \- z) n; M0 N! q. T0 l! p
      if Str = 'false' then begin
: b1 |- s' K$ k% C1 W2 S0 M4 Z# R+ Z         print ('say 没有太极牌或者太极牌不是1段');
$ R) r4 W0 H, E( v         exit;
3 T5 Z$ ~1 q* u6 p! ?" ^      end;
& [6 l+ w2 [1 w5 N. U' Q) \( W2 N* x      Str := callfunc ('checkenoughspace');. M: H! \) _! [$ O& s3 M( ~5 T1 e
      if Str = 'false' then begin5 F4 w: ]) N5 C% d, j
         print ('say 你的包包太小了');
  k% g. ~2 }# F1 n7 d2 q. }         exit;
/ C; y( l, _9 d8 }      end;
4 H4 s1 ~6 ^% T, e: _      print ('getsenderitem 太极牌1级:1');" T& k8 s* m: b# u) }$ j# V" i  {
! E0 B% i* k( ]$ I& z  p
1 S9 `) w. Z" S  V2 d( b* {
      iKind:= Random (2);
. d+ M. F! s8 e) l      if iKind = 0 then begin9 Y% I% r( l; b4 d3 u8 ?
         Str := 'putsendermagicitem 太极牌2级 @太极牌锻造师 4';
% Y8 E( t" [8 h( X: S         print (Str);7 G) D* O3 V3 j0 f5 _' V/ `4 \
      end;6 M$ F9 ?' [" O) c
      if iKind = 1 then begin" z* C1 V+ s6 H6 x8 x" \1 _  f
         print (Str);
3 t; P" U  o: g4 p/ J. J! a! W      end;4 Y( N+ A. ]1 M+ a5 w1 v7 F5 U
     / ?! n- j9 I4 f& ]6 v
      print ('say 无论如何,都要感谢你让我看到太极剑门的壮大');
- ^6 w3 L) q6 a& H/ r% s! f   end;
$ u: Z% v7 R9 I% i     if aStr = 'sheng3' then begin
( L0 v& ~0 @- h0 ?) y. J7 B      Str := callfunc ('getsenderitemexistence 太极牌2级:1');) }2 ~, {# o, i2 Y$ \) Q" g% h
      if Str = 'false' then begin
5 C  l. Y5 R7 |) \( Z. F         print ('say 没太极牌或者太极牌不是2段');
" o6 J# b" }3 M. q/ Y2 h" k0 l5 n) V         exit;! g& [* H% b, D: a! x4 G! Y
      end;# i* k% L9 C) |  h/ R$ c9 J
      Str := callfunc ('checkenoughspace');, g: q' Q0 I) l4 z0 C" O
      if Str = 'false' then begin
1 q, y$ y. Z8 c1 l9 k         print ('say 你的包包太小了');( R0 j! q  U. r
         exit;
+ X3 F: ]" C* F1 n4 C8 N      end;0 m4 T1 B  w9 z, S7 M' w
      print ('getsenderitem 太极牌2级:1');' l3 G8 A3 _1 l8 a
) ~. h2 y2 U7 d9 |; i

) j( x% }7 @1 ?6 z+ O  I( ]. ?      iKind:= Random (3);/ l6 M  W3 z- C. Q- c/ _& g
      if iKind = 0 then begin7 Z# Q( N% g" j) j( g
         Str := 'putsendermagicitem 太极牌3级 @太极牌锻造师 4';
$ l/ V6 r8 k6 j$ e# m. {, C' Y6 h         print (Str);& Z% N# A/ h+ `& ^0 w1 J+ ^7 B2 q; y
      end;
0 Y& A# {$ y8 W4 P- ?) ]      if iKind = 1 then begin
( @0 f" Z7 y; C2 o3 j         Str := 'putsendermagicitem 太极牌3级 @太极牌锻造师 4';, A7 C. [! ~! Y5 Q2 A* w8 e1 Y
         print (Str);
+ T; x1 C, I* ?, ?' _2 C      end;( M2 M: n8 n1 e9 Y) k
      if iKind = 2 then begin
3 S' o: b, m6 T/ q; K9 H         print (Str);- e/ h+ C7 V7 L# u
      end;/ {$ l$ e& L2 A6 j& m0 t
     " y) |/ w* E1 U7 U
      print ('say 无论如何,都要感谢你让我看到太极剑门的壮大');
1 t+ @1 B4 G0 z* D3 [! B1 E   end;
0 A5 t3 E2 M0 }/ ]5 E- [! T     if aStr = 'sheng4' then begin6 p3 ?) Q: A+ T$ G# b' W
      Str := callfunc ('getsenderitemexistence 太极牌3级:1');
1 T. J4 K/ W% q; e0 W      if Str = 'false' then begin# w, u' ?/ ^- d8 b/ C+ _
         print ('say 没太极牌或者太极牌不是3段');6 d" y( c$ F' p8 o9 P% W
         exit;
- f0 t+ f) M$ @6 K4 ?      end;
. g$ F- X3 e. f) W- F; _$ w      Str := callfunc ('checkenoughspace');
5 S/ e* n' w& R' |+ p      if Str = 'false' then begin! q" w" [# D6 n* K7 A. Z
         print ('say 你的包包太小了');
; Q  V! Z# L& q% p, w+ \" o         exit;
' U8 C) r9 k8 i      end;& d4 \2 w" x% B  u- v
      print ('getsenderitem 太极牌3级:1');
" n: U- J* d( H7 l& i" T, R5 I& q! |5 u; O
: f1 E$ K0 j. v) v# V" U
) i9 A0 H: O# e/ J. `% U# y
      iKind:= Random (4);
0 f1 R/ ~* ?  L3 r) z/ }; V6 e      if iKind = 0 then begin( j. [& D" ]8 e- h: `* ?
         Str := 'putsendermagicitem 太极牌4级 @太极牌锻造师 4';
/ Q/ l. d, u, N4 l* e1 k5 E2 A' T         print (Str);
6 H' N( [9 a# }2 c( C3 T      end;
; x; B2 C1 s1 G, e' I( T7 |      if iKind = 1 then begin
; g. j6 H" M" y  `         print (Str);* b% }' u* @( ?  F( v4 O: S% x
      end;  T- F# d- }; D$ y+ K% f* ]
      if iKind = 2 then begin3 S, M  M; [% W# Z. |
         print (Str);
# f9 @4 R* l" _! w0 G( }$ j) |& @      end;
' l2 g$ s8 c) o7 l. U      if iKind = 3 then begin
! [+ M4 Y7 i: ~1 _$ S% C         print (Str);
3 J$ t( e' `% G! n6 j1 \      end;% \" h6 x, r# y  F* C
     
* }) K. O$ f% ]! v) o# v9 c- x      print ('say 无论如何,都要感谢你让我看到太极剑门的壮大');9 i5 }0 O$ {6 o) r3 b) t8 d
   end;, X% H. S0 r2 M! J" q' k
end;0 X) z+ l; ?/ A7 z" B5 L) N
end;
! j) \  o( v, b: F( T: T0 v
! Q% g6 s: q8 U0 |% M# N

) ?  j( F( w0 _9 L1 vprocedure OnLeftClick (aStr : String);
* J0 V+ \$ O" p0 [1 `var
" q8 D; Z) X  a. u   Str : String;
& F' [0 A. w; R. x+ q( p# a   Race : Integer;
1 F$ e1 w5 F7 X% V  s" u2 d8 c$ J" zbegin
' \. ]) s6 D7 ]+ s' g* k0 E5 F. q   Str := callfunc ('getsenderrace');) ?. u4 i6 Y8 a( n
   Race := StrToInt (Str);
: W9 @0 N2 l: o# \- E   if Race = 1 then begin; Q* h2 Q/ i/ ?& U0 L) f! O$ M
      Str := 'showwindow .\help\太极牌锻造师.txt 1';5 O8 z+ [  w5 [+ `* O& U2 h
      print (Str);% _6 t3 r" u) w" |
      exit;
- A. f! z! H( b+ z2 d; o! s/ J1 t   end;: U' G* ~8 T9 K+ K3 b/ i
end;
) f' o$ p7 L# |/ g  u: m' F; N, s' l% c9 N. @- \0 R

8 e* a6 _7 ?& M, wend.- x6 C, h% \$ x7 S! C% b# }0 `

  J3 F+ s0 M# W. y
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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