游客您好
  • 点击联系客服

    在线时间: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 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
原理:进入流放地后自动删除物品栏内所有回城卷 ! G4 q/ z% l/ e; N% g0 j; Y7 x& T% p# T
方法: % B; U7 s1 B- x9 E
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135 2 E1 ]2 ?  q+ I! H, B+ b8 {) N
二、在流放地随便放个NPC Notice列加上script的编号135  坐标 58 78 要保证进去后就能看到
' \$ N. Y8 X1 j6 r
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改 & ^0 n8 I+ Y% ]2 @+ L( o' a3 b0 B
四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE 1 f# q: n# D3 X) t. D. d" @3 @. z
删除回城.txt
# X* Y' j0 s* R2 b4 [/ o
unit 删除回城; $ X6 `& j) v2 n* ]( y9 V" X# Z+ R
inte**ce
( _  F3 |2 S& D6 `% P! E
function  GetToken (aStr, aToken, aSep : String) : String;* p/ ?: ?5 f/ ?1 [5 }; O  j
function  CompareStr (aStr1, aStr2 : String) : Boolean;
4 v1 y# ~6 r3 G4 W; u
function  callfunc (aText: string): string;/ v  B, X, U9 |* p  n5 i
procedure print (aText: string);7 I* U; w; V" @% h: K0 g
function  Random (aScope: integer): integer;9 V, A: i. l# D9 ?% M
function  Length (aText: string): integer;
. m. ^% u+ G2 G8 F. j& g: ?  M! Q1 r
procedure Inc (aInt: integer);  p( t6 x$ b' Y  Y- J, K. W
procedure Dec (aInt: integer);
1 L- s% {/ |& X: G$ t
function  StrToInt (astr: string): integer;! z( h! n: T- ?
function  IntToStr (aInt: integer): string;( E% _) C, S" H3 q
procedure exit;
- _# o: W& s$ N6 v- i3 F
procedure OnCreate (aStr : String); 2 V$ Z" @  Q2 G
implementation ; T% g5 ^$ L. s9 S) y7 y
procedure OnCreate (aStr : String);* X' a: ^$ O' a7 {, r/ g6 t9 H- ]
var* t/ n. f9 j# C4 f0 o# Y% O
   Str : String;
# o( [, u' G3 S% ?- Y, {  @
   iCount : String;
$ ], R+ ^& W2 c
   GoBigMapItem : String = '回城卷';
& F0 z- e! m- i( _- x6 l
begin# x) x* K6 e1 w7 `; A
      Str := 'getsenderitemcountbyname ' + GoBigMapItem;' ?5 {0 h: k+ F% O7 r6 W" y
      iCount := callfunc (Str);
& d( A! ~  [7 |7 I; B! H0 H8 e
      if iCount <> '0' then begin
8 V. x8 w( x# M
         Str := 'getsenderitem ' + GoBigMapItem;5 w) U) N# j& V& _* T4 F# j7 N
         Str := Str + ':';
6 b; G8 r# R& Q. i3 Q' Y
         Str := Str + iCount;" u4 M* j# c& H/ o8 s, N1 @
         print (Str);% M; |; w5 n* A7 E5 R% O
      end;8 T6 ~1 s) o& \9 b
   exit;
$ q+ d% X# v0 A0 G- U4 i1 q
end; 0 D1 p9 @* N1 f2 Q1 f/ |5 }4 o
end.

+ G& j. p! Y1 |; u( b7 q- L
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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