游客您好
  • 点击联系客服

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

    客服微信

    Wkr-3000y-kf

    电子邮件

    3000y@wenkeruan.com
  • 手机版

    随时掌握游戏动态

  • 扫一扫二维码

    添加微信客服

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

[安全工具] 回城卷轴在流放地的BUG及解决方法

[复制链接]
快要发癫啦 发表于 2023-2-1 14:20:38 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
原理:进入流放地后自动删除物品栏内所有回城卷
9 f. P5 m1 @, O( x
方法: - C- R3 x; J4 y; I7 ?
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135
+ _2 E( J$ A- j
二、在流放地随便放个NPC Notice列加上script的编号135  坐标 58 78 要保证进去后就能看到 5 v. Q; C% I8 V) Y
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
7 c$ b# n% G8 R
四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE
- a- ]0 D2 S5 d) F1 B
删除回城.txt
$ q! T  y7 X3 J
unit 删除回城;
3 G' Z+ R+ W5 `( x- j, s
inte**ce ' U  k! E9 l3 R7 ~8 K# B* v
function  GetToken (aStr, aToken, aSep : String) : String;, c# h. Z0 t5 U/ j6 _: j
function  CompareStr (aStr1, aStr2 : String) : Boolean;9 \5 M; X% M" k  }( O  |
function  callfunc (aText: string): string;9 k" a2 c* o4 A) R
procedure print (aText: string);9 a" |  H$ e3 X- s: m
function  Random (aScope: integer): integer;
& `( h' h( n$ [& I8 c$ u
function  Length (aText: string): integer;
; q6 W1 y0 r; a: n& J! g
procedure Inc (aInt: integer);/ D- i) ?0 o  O* d6 x
procedure Dec (aInt: integer);/ S. N; F, l2 z, v
function  StrToInt (astr: string): integer;' f" i1 @( g& Z& T
function  IntToStr (aInt: integer): string;
- L. f. j, M6 x% W" c5 a- j
procedure exit; 3 p; u: W3 Q8 H
procedure OnCreate (aStr : String);
6 h# \  V" U, d% {
implementation
* [4 I2 W. M) U6 J) l1 X& Y
procedure OnCreate (aStr : String);
0 Y5 K- i9 E; Y$ y
var, x; p& [  w. }0 l
   Str : String;* y: o5 {$ a0 ?7 m+ [, }+ g
   iCount : String;
1 g% S- ^2 m& d' w+ ]& s
   GoBigMapItem : String = '回城卷';" \  ]  c! m' z& I0 ^. ~2 T) {
begin
  P( R( e. p( U7 _8 n+ M/ J
      Str := 'getsenderitemcountbyname ' + GoBigMapItem;
: t  l, r" s; w$ b6 r  f
      iCount := callfunc (Str);
/ v7 w. {) l% r3 w2 |* q
      if iCount <> '0' then begin
+ x  {% M- J; Q7 \
         Str := 'getsenderitem ' + GoBigMapItem;
. `- w( |9 V  s# }
         Str := Str + ':';
5 A5 g1 l) X, _0 N0 x6 `1 x
         Str := Str + iCount;1 X2 y1 |. y3 j; [
         print (Str);
# W1 L' B; B% J. w1 _' C5 T! [2 u
      end;
+ L4 r1 h: ^, S+ z7 P8 l4 ^3 R
   exit;
4 w4 p8 F& S+ G9 F9 \0 q5 p# c* Q
end;
# r$ o) g/ K0 B4 D+ U1 ?
end.
" L1 \  A- ]4 A, j% J
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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