游客您好
  • 点击联系客服

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

    客服微信

    Wkr-3000y-kf

    电子邮件

    3000y@wenkeruan.com
  • 手机版

    随时掌握游戏动态

  • 扫一扫二维码

    添加微信客服

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

[游戏设置] 进入流放地后自动删除物品栏内所有回城卷

[复制链接]
异仟年认证商人 发表于 2022-9-5 17:39:14 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
原理:进入流放地后自动删除物品栏内所有回城卷) M" D, r- h' D5 \# \

& x' H4 Y: {! s: R方法:5 K8 F+ k* m* J' M6 ~# R- E5 a. A9 n  K
9 s6 v1 b, [* Q) `6 T% ?
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是1350 Q) ~  C- U" a3 ^

$ {$ r! O: T, n* e二、在流放地随便放个NPC Notice列加上script的编号135  坐标 58 78 要保证进去后就能看到2 R( }: o) r" }0 R3 t! q  p

4 h; j5 y7 k& [1 g6 r! C- M三、"删除回城.txt"中回城卷的名字根据各服务器情况修改, k' X+ A" D6 _, L

. v' V, l8 l. U. ]) \+ w四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE7 P7 Q2 q+ y4 |* p, d1 F7 }) g

, O0 W5 z( Y4 @6 a2 j1 Z( W' S删除回城.txt
: h" C# }6 C; A8 [( s7 @8 a0 ~; p5 ]9 e7 W9 w2 Y( `/ Q
unit 删除回城;
6 v% w3 z8 I; L7 R* z% v5 `4 [1 T. @; r& s( y& l8 Y8 C
interface3 O' {- A9 p7 ^2 l* _: ]
7 b0 O) x3 y8 b+ M8 W' W) N& `, u
function  GetToken (aStr, aToken, aSep : String) : String;% E# j+ `  s# k5 W+ v8 E. Y
function  CompareStr (aStr1, aStr2 : String) : Boolean;5 i- D" ~1 r- ^$ {4 [, `/ j
function  callfunc (aText: string): string;
1 O# x. G; q) B1 K6 Eprocedure print (aText: string);
- l# }0 n+ L4 t+ \! Zfunction  Random (aScope: integer): integer;6 X  ?! X/ w& B& h: b% d6 K
function  Length (aText: string): integer;
+ h& P; ^6 Z0 F% Xprocedure Inc (aInt: integer);( }! v3 n7 d7 R
procedure Dec (aInt: integer);
! S- q, @" x' Mfunction  StrToInt (astr: string): integer;
8 [3 `, R: g. B. s2 zfunction  IntToStr (aInt: integer): string;
5 _: M' y( J  X0 S. bprocedure exit;
+ c! J% D3 H; f5 ~% e" t+ [+ S2 O) s2 c/ e* I
procedure OnCreate (aStr : String);: j" l! [8 u  j4 K8 \* K

9 w, Q: p2 k* U' b8 [. c" mimplementation
- z- n! M$ Y9 \- q: X" z2 h! G9 ?8 r, O  M! P* E' S: p3 w
procedure OnCreate (aStr : String);- M# C1 ~% ~: R, I3 K1 ]  a. p
var
$ p6 S& Z5 B) z  p" i$ T   Str : String;( k3 `2 R) X" `6 i0 w% U. l
   iCount : String;2 _3 h1 d$ N+ Y* y3 e6 _# `
   GoBigMapItem : String = '回城卷';
2 K! j& X, g0 E% O" x8 gbegin3 I. Z+ S) d% t& ?
      Str := 'getsenderitemcountbyname ' + GoBigMapItem;, s; F" |/ c  [7 o' O9 ~* H0 d
      iCount := callfunc (Str);+ _' c2 z! Y0 f! e# X0 b
      if iCount <> '0' then begin
7 B, e$ l( Q* d* N         Str := 'getsenderitem ' + GoBigMapItem;
  h: V' V9 J0 T         Str := Str + ':';
1 Z7 _* L1 }+ k& \         Str := Str + iCount;- o' L3 s, Y4 U7 g! S
         print (Str);0 b, E+ S8 y4 J3 w8 z
      end;
) q" G2 l1 F$ e; T$ e9 h   exit;
! @* n; Y. o, B) j( J0 G/ Gend;7 J& N6 k7 N4 `5 u: ^% E

- {5 T2 t1 }7 ?" l2 dend.
* o3 T' V4 Q* a- ?1 P
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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