游客您好
  • 点击联系客服

    在线时间: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 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
想当初我们玩官方的时候太极牌是多少人向往的宝贝,可是现在服务器太级装备都是垃圾了,用这个脚本可以稍微为太极剑门带来点门票收入,呵呵.也许有办法让太级牌直接可以升级,但是我实在是能力有限,喜欢的话拿去用吧^_^$ B& e( n5 d8 W
. `! [) w& x( c3 E, ?) V
( y8 r3 i/ v1 @( d
首先,TGS\ITEM.SDB下增加以下4样物品: m2 Z6 m; o( Y4 q" |! x

% K2 Y% v9 G) p7 ~  h4 A
  {  `/ `: C# P4 K# R$ `1 ]1 b
太极牌1级,太极牌,38,身上有太极类武器时才能发挥作用,,,,,,,FALSE,FALSE,193,,,,,,1,,,,10000,,,,,,,,TRUE,,,,,,36,,240,84,84,84,,,,,,,,,,FALSE,,,FALSE,,,,,,,,,,,,,199,,,,,5 q$ s1 |1 k" i7 o4 B
太极牌2级,太极牌,38,身上有太极类武器时才能发挥作用,,,,,,,FALSE,FALSE,193,,,,,,1,,,,10000,,,,,,,,TRUE,,,,,,45,,300,105,105,105,,,,,,,,,,FALSE,,,FALSE,,,,,,,,,,,,,199,,,,,
/ u4 O" F# A# b2 p: o太极牌3级,太极牌,38,身上有太极类武器时才能发挥作用,,,,,,,FALSE,FALSE,193,,,,,,1,,,,10000,,,,,,,,TRUE,,,,,,60,,400,140,140,140,,,,,,,,,,FALSE,,,FALSE,,,,,,,,,,,,,199,,,,,( @! \2 R0 H* S5 ^7 |3 u
太极牌4级,太极牌,38,身上有太极类武器时才能发挥作用,,,,,,,FALSE,FALSE,193,,,,,,1,,,,10000,,,,,,,,TRUE,,,,,,75,,500,175,175,175,,,,,,,,,,FALSE,,,FALSE,,,,,,,,,,,,,199,,,,," t4 H, |) N/ V$ S
然后是TGS\NPC.SDB
( L* F' a* b: x! u! ?. j& P
( U  P# E! n/ a* `$ @) @5 k
( i/ j% a  l: N) G0 W3 o% g
太极牌锻造师,太极牌锻造师,0,,,,,,,,,,62,81,235,0,0,,,,20000,0,0,0,0,,4,,,,,,,,,,,,,,,TRUE,
( z7 B5 z* i2 D# T! W; [. k接着是TGS\HTLP下建立一个文件   太极牌锻造师.TXT% v8 z2 [& _. }9 z! ~! }7 q. F! J

+ P1 f! n7 t6 m1 p7 l1 j& `
3 z: o0 D# S, G; i4 I' c! ?1 u- ?
<trade>
$ e5 h1 K) f9 f, B4 ]1 N( Q; G<title>太极牌锻造师</title>1 I% _! G" P, O* S; L
<image name=z81 value=235>
8 T4 p% _, _7 S0 L9 }- o<text>4 B# L; F( d: c% O7 I, Z/ `
把太极牌交给我可以帮你锻造
' }" H) A! |6 T9 O" I</text>
1 j0 ?* G6 f. Z3 G<command send='close'>关闭</command>+ Z3 w' J4 q6 L" s# z# x: a" T) M
<command send="sheng1">太极牌升1级</command>3 q0 M& G* Z3 A
1 A& G0 v6 B8 l; n1 x7 L3 R
- R: p- c2 _; y: q% C" U& Y6 e$ l" j
<command send="sheng2">太极牌升2级</command>
, |1 O* t. B$ x  J3 s4 ^3 t/ q9 I  I8 {# I3 i' P! }. a. F

1 ?, _! y  L, ]: e4 s) V6 f- v<command send="sheng3">太极牌升3级</command>- l  Q! S3 m! E6 f3 y2 x, `

  O* C6 p# t+ t8 x

% P; T" t5 A: ?<command send="sheng4">太极牌升4级</command>: t! g& q7 u6 n- @
1 j' I" m  v% i4 R% F# n/ k
6 j6 G8 R  \; v( |
</trade>
' R; B5 Y, L/ R1 l) q5 H: H8 P" X( O8 b
, v1 b( X* a, m; W# A
: o7 ]% W! M: A7 _% r- T
接着是TGS\SCRIPT下建立一个文件 太极牌锻造师.TXT1 ?4 z, L/ O6 v9 j
/ i; C" Z+ n' t" S5 ?. r5 i& Y

$ t2 O" k* e% l; e. zunit 太极牌锻造师;9 |( r6 P+ ?7 t- n. H0 C
; U& W, L& G% r1 w! Y
% ?' F1 D  m1 n% i$ H
inte**ce
, d% _8 h8 U; ?8 s; _; }; Q" P' ]7 d! ?' w6 U) S
1 ~  _! R7 h6 t. }( d, \: [+ E8 N
function  GetToken (aStr, aToken, aSep : String) : String;- J/ T" I6 c/ J+ c, D2 U6 V
function  CompareStr (aStr1, aStr2 : String) : Boolean;
9 U( x" l1 l' a: vfunction  callfunc (aText: string): string;7 P! P' G! |+ x4 P% @1 Y7 k
procedure print (aText: string);
% F1 e8 L6 h' `; h1 o7 I0 bfunction  Random (aScope: integer): integer;; o! e1 G7 \9 v5 U
function  Length (aText: string): integer;
  O: Z7 d5 f9 n2 v& |* |: {procedure Inc (aInt: integer);# ]* V1 n- v, K# H- P- w
procedure Dec (aInt: integer);
$ R0 W4 e) P3 g# ?+ Tfunction  StrToInt (astr: string): integer;) i. {+ F: r/ x: W9 ~
function  IntToStr (aInt: integer): string;
# q0 S" f2 I  L4 {* a0 aprocedure exit;
9 P. R) K7 ]$ o
. c# t% j5 t4 E* @9 b/ `8 C8 x

* g9 s6 R- Y' j+ Oprocedure OnLeftClick (aStr : String);
8 g3 y- R$ ?& G$ b* \7 Cprocedure OnGetResult (aStr : String);
6 ^4 _: g7 g( G3 ]- ~5 g, S  q! T& b0 `1 m( x6 D1 n7 p
* E' k' Q* }' w- r7 z5 z
implementation
' f) Y$ ?; a% ^9 c# C
  z* y; h( e! C1 A2 H$ I

, ?( D8 g( c* }" d; e, |procedure OnGetResult (aStr : String);
- c( r. E0 L4 ]( o% W0 c$ kvar
: C) E. C, d7 H" X4 W2 c8 Q   Str, Name : String;4 w, ^/ ^% \  |
   iCount, iKind : Integer;
! i- ]6 y8 q! F0 Y, ^& \! ubegin' I6 J4 J" T. O& n; _  n
   if aStr = 'close' then begin
3 x7 n( y. ^4 L: h1 K      exit;( d# V. k# l8 N
   end;
% M) e: ]; O9 {     if aStr = 'sheng1' then begin
. J2 @+ e+ L; P- A. {7 R. ?      Str := callfunc ('getsenderitemexistence 太极牌:1');. F4 m! [( Z# g
      if Str = 'false' then begin9 `1 o; E* S7 P1 |$ P/ G  B
         print ('say 没太极牌怎么升级啊?');
- R0 W' r9 w6 t; H* I* T         exit;
. U& q' \8 x/ }/ P6 p      end;1 e, i$ ]0 u9 }! k3 f2 Y
      Str := callfunc ('checkenoughspace');
3 R& q# }4 ^' O7 u% I      if Str = 'false' then begin
* A/ [0 v6 S- g9 z+ ^! V! X- V         print ('say 你的包包太小了');6 D5 ]" c4 W8 `
         exit;. G2 S4 }& ~) k$ A/ |
      end;
9 g. T, Y7 L: \& S- w
) ^' M! e! n- v2 |- q/ ~
) `- B. }3 G9 B; w2 N$ P$ a1 n9 w
      print ('getsenderitem 太极牌:1');$ {! i$ i- e) C- F
2 |6 Q  d/ c; l+ L: J

% v# e& f8 m' i+ W. Z* Z      iKind:= Random (4);
* l3 ]/ C* e1 i9 P5 w      if iKind = 0 then begin
9 s8 m8 B5 ]/ g% E         Str := 'putsendermagicitem 太极牌1级 @太极牌锻造师 4';
. K3 l4 t# }( N         print (Str);
9 m7 u3 F# l& @. K) N- p1 s) U      end;
5 d$ G. K6 |/ ^9 k      if iKind = 1 then begin3 F# ~/ Y; `4 E
         Str := 'putsendermagicitem 太极牌1级 @太极牌锻造师 4';
, U" q  F" S; C- G7 J" k3 t# ~         print (Str);. c1 ~- E7 }- s0 W- Q* R" X
      end;
( Q( l0 b, V0 |! R% V( c      if iKind = 2 then begin
: D& a+ P4 p7 a: m6 u8 ]2 l         Str := 'putsendermagicitem 太极牌1级 @太极牌锻造师 4';( W4 O, x4 F& B. X7 \4 a! z) X
         print (Str);
" V6 G0 B) f, u  O      end;
7 t/ E5 L# R& N) ^- O1 T1 @8 Z      if iKind = 3 then begin4 b5 K4 Q/ V# Q% F9 L
         print (Str);' p( o+ T% W/ W1 P2 @! x
      end;
0 B. b6 X1 g% j$ a* N  _, l      print ('say 无论如何,都要感谢你让我看到太极剑门的壮大');
; x! y5 `% N) r   end;" [' K1 d7 Y# E0 M0 a. D
     if aStr = 'sheng2' then begin
8 U- j5 r* c6 D! u- X) E      Str := callfunc ('getsenderitemexistence 太极牌1级:1');
. T/ x& @/ g: X      if Str = 'false' then begin6 j( W+ N, Y- y
         print ('say 没有太极牌或者太极牌不是1段');
5 ], P+ X* H1 |8 J  m2 _+ H         exit;! e# }. E0 ^; U0 N2 y
      end;7 j! V  O0 z  \6 O6 u+ H' L
      Str := callfunc ('checkenoughspace');/ }, b: n/ B( w$ B
      if Str = 'false' then begin6 l: M2 j: m% i1 [' s
         print ('say 你的包包太小了');' J& ^# Q9 z% A. u% m
         exit;9 ]9 H" ^6 C( l" s9 |: q5 B
      end;
8 \8 {* w' ~" n' }      print ('getsenderitem 太极牌1级:1');( F! v, \2 L! X/ b) M

& W5 f, k: e; _8 E7 O

2 s  I% n6 E+ h0 x. r0 N( t  {      iKind:= Random (2);  W, s# s" W" n: B
      if iKind = 0 then begin' k- F" N* l; ?. k0 i  O* w
         Str := 'putsendermagicitem 太极牌2级 @太极牌锻造师 4';
; T; b. P, J4 H0 I         print (Str);6 ]( B% H. [5 X* o
      end;: Y: `! f; E6 ^2 p
      if iKind = 1 then begin
3 n1 [  w. i% c5 U' u- b         print (Str);
+ B- a7 \5 D. d3 B4 d      end;$ l5 `! o4 A8 r+ l7 ?$ q$ y
     
/ o. c+ b" f. g" ?* b7 q8 E      print ('say 无论如何,都要感谢你让我看到太极剑门的壮大');
0 }. }0 b$ k5 H& j; n   end;
6 d$ Z! j' ^( g8 x, U     if aStr = 'sheng3' then begin
" k: N: Y+ K- d5 r! _      Str := callfunc ('getsenderitemexistence 太极牌2级:1');
  |/ P6 f: r( M0 @- T8 C      if Str = 'false' then begin" R1 Y* }  g: d, c
         print ('say 没太极牌或者太极牌不是2段');
9 `9 q3 E  O) Z. B: @2 @* s         exit;5 _0 f4 C/ B+ @7 b' Q4 ^1 q
      end;
9 {8 B  N9 W; S4 O      Str := callfunc ('checkenoughspace');5 j- m0 q1 h( `; ]
      if Str = 'false' then begin
# Q0 k# t9 }1 j; o% f+ v6 m0 v         print ('say 你的包包太小了');
- U) U- Q7 |' v. f" U         exit;
4 x3 n' e% m; p" ^      end;
+ M! g- c( H" G0 `3 F7 c      print ('getsenderitem 太极牌2级:1');
' `. @( }7 I2 D" b
7 {' s1 T% Y. r
+ A' ?! T5 S$ Z9 l1 [$ X8 n* Q
      iKind:= Random (3);
) P/ h# E. K$ q  j) d- ^1 F      if iKind = 0 then begin4 V7 s. w  `3 |, S1 L! o
         Str := 'putsendermagicitem 太极牌3级 @太极牌锻造师 4';
% m6 l8 C+ ~# X( ]8 `9 S         print (Str);
" T; M6 r/ M8 O$ Q! g+ _9 O      end;+ P" k5 o) w  f1 ?3 s7 N" O
      if iKind = 1 then begin) }0 H3 G0 ?6 Y! Z
         Str := 'putsendermagicitem 太极牌3级 @太极牌锻造师 4';
+ [3 g8 i: R& j% \% X0 r& ]" e         print (Str);
' h/ n$ e2 `7 _, c/ {) q: n      end;
( d4 A% i  x, n. Z/ K      if iKind = 2 then begin( v/ Q) U8 v. E
         print (Str);' m. j+ Q: x9 l
      end;1 L8 K, z, V% x
     
2 g5 B5 g" N4 D- [      print ('say 无论如何,都要感谢你让我看到太极剑门的壮大');0 s& q5 {, @. J/ C
   end;
  F/ {9 w3 @7 N     if aStr = 'sheng4' then begin; U; u/ G) S" h; [6 y# S
      Str := callfunc ('getsenderitemexistence 太极牌3级:1');) o7 B* p. H4 `' R
      if Str = 'false' then begin
  W# ]' \2 k( @" g7 d' J! ?         print ('say 没太极牌或者太极牌不是3段');
6 z+ |( w* s) @7 o' P0 Q: C. L         exit;
! D: h" Y5 H2 c" T# I& n      end;$ _1 k( R) r0 ^4 O" M$ ]
      Str := callfunc ('checkenoughspace');. Q' C. d; `0 Y3 v1 o" X  C" }; ]0 }
      if Str = 'false' then begin
) }* `7 P; b9 ]9 p: y- t         print ('say 你的包包太小了');
$ t) a, O0 K6 {* s7 |         exit;. [+ g& ^1 B  x
      end;
1 }5 c& N; D4 S7 H$ a; e  p      print ('getsenderitem 太极牌3级:1');
- F  I8 h0 i) J1 n. k0 E9 X/ I- r& R$ l$ U0 u

6 R' f- @# g5 `# n; H6 D3 \; z5 ?      iKind:= Random (4);
* n/ t& I& c6 S      if iKind = 0 then begin, A1 f  {6 `6 j  T) e" M3 c
         Str := 'putsendermagicitem 太极牌4级 @太极牌锻造师 4';, @, ?1 n6 w+ n
         print (Str);% c6 K  c& H/ L  K; v- q# i8 J, O
      end;1 M( B* c. l8 a3 u2 N3 G
      if iKind = 1 then begin
$ O9 M+ `8 M5 m' w, M7 }         print (Str);
% ]8 K9 N7 N% M( {( N  k# f      end;
3 P0 C" O- A- }# }3 U      if iKind = 2 then begin" w7 q2 N5 q5 n7 R& C
         print (Str);" T& n: ]  o, a% c. w3 L3 _: U
      end;
. p- T2 J. ~2 a      if iKind = 3 then begin. x7 u- ~" B/ X1 i% U2 b
         print (Str);- Y0 X$ \- Q6 x' |0 K
      end;
! q8 ?" g+ \# d8 ?! Y     0 L- Y$ ^* ^  h: e! w
      print ('say 无论如何,都要感谢你让我看到太极剑门的壮大');- t/ g2 n: i4 X) F9 G2 j
   end;
) \  _: i& Q% x2 I4 kend;
# U5 @' \5 h' a7 T) Z5 Tend;* X  g. K  d7 }+ A. l) p& F2 @
3 q; j+ n( I2 \& G8 R

6 H0 \6 v# Y- w" _" Qprocedure OnLeftClick (aStr : String);, I7 c5 |; c% z4 I5 A5 B  `+ Z- q
var; p: ]3 o. u. `. h; I" B2 H
   Str : String;
$ E8 t8 X1 k  I. s7 Y- B0 L   Race : Integer;
% y0 k; v: c# ^9 [begin
+ s2 f5 a& u* e! e   Str := callfunc ('getsenderrace');
5 _% |3 Z4 J8 Q: `$ R" k3 }   Race := StrToInt (Str);! b8 C( H/ b5 A4 G! Z: u5 e- {2 H9 b8 u
   if Race = 1 then begin
3 e6 T+ T9 v/ Y      Str := 'showwindow .\help\太极牌锻造师.txt 1';
0 k: w! L+ S8 c2 f/ p      print (Str);5 g# d% M  [1 _+ [) x' d0 _
      exit;
2 r- @! o4 O! G1 u# G   end;
: b# K# q: e3 Aend;
4 B, g9 x, q" K* N  r" z8 `) r( V- ]0 [

+ P% f6 l2 M1 o" [end.
2 a7 e1 c) ]1 N1 Y! ^9 l
2 U2 X& X% I( P
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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