游客您好
  • 点击联系客服

    在线时间: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 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
原理:进入流放地后自动删除物品栏内所有回城卷9 z/ E; i" \/ ?4 R7 ~
6 S& G5 u" y9 f' @
方法:# V( w: T7 Y% h  W5 t
+ Y' h6 K; b" G
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是1357 N/ J, E/ L1 a0 m+ n0 F( V8 z% ~
! h8 A. y1 z1 v, ]
二、在流放地随便放个NPC Notice列加上script的编号135  坐标 58 78 要保证进去后就能看到% F9 v; h; D! X
5 }' i+ s* S8 x8 U: U- H
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
# X8 m$ h. t- i0 Q+ u
# y' J2 P1 O. Z; }5 f, Z/ j, @四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE
# f- s3 b- C( N; B% Z2 \) J: i6 ?
删除回城.txt# u1 L1 v) N$ @+ x

7 x& [; d: f- |8 ]" o5 O5 Y$ Hunit 删除回城;' q' L3 \, y+ T* p! w2 s& J
3 B) f1 c2 a$ O
interface+ R! h( @" x3 \! ^7 H* }8 T
! k6 a$ ~, w+ F2 j
function  GetToken (aStr, aToken, aSep : String) : String;& k4 ?8 p' f" d) i
function  CompareStr (aStr1, aStr2 : String) : Boolean;
: v' V& q1 r; V; Y" r0 z/ _" ^function  callfunc (aText: string): string;) s3 ~8 \# s* g1 b' Y
procedure print (aText: string);- z1 f; u; ?  a
function  Random (aScope: integer): integer;0 Y5 T& t) w1 Y$ z$ [
function  Length (aText: string): integer;  G8 v/ @. e9 S5 `
procedure Inc (aInt: integer);& V* ?2 D. S  h6 D$ W7 d! J1 ^
procedure Dec (aInt: integer);
8 A4 r* w7 r" U* z. Kfunction  StrToInt (astr: string): integer;3 q- F: F5 Y) K4 ?. Q  j
function  IntToStr (aInt: integer): string;. o! @+ s+ L# |4 p; Q
procedure exit;
9 [, E1 E. v; o* a2 S# t& ~% U8 S8 |, I/ h7 x% ~
procedure OnCreate (aStr : String);
, ~, c7 j; c3 O5 z2 Z( r; _
, O1 F6 }% E  M1 Z9 e. _% D" ^8 ?: N. @implementation
4 W4 S/ W8 o/ I4 N: S1 x
; K9 K8 O5 ~5 o- uprocedure OnCreate (aStr : String);
* h8 c7 W* o1 i0 Tvar
- F( K( A! K9 R, e# |   Str : String;/ t$ T1 E0 n' W7 a3 s+ _
   iCount : String;" s  b6 s: R7 L( i9 j
   GoBigMapItem : String = '回城卷';
5 ~9 ?2 l: E2 P+ ebegin# A4 F+ x' t; w: s
      Str := 'getsenderitemcountbyname ' + GoBigMapItem;
9 \9 ^$ o5 M9 l" G0 R      iCount := callfunc (Str);
5 V& H" V9 z& V6 S" s( B      if iCount <> '0' then begin1 Y: r; z0 w  R0 r9 I( E
         Str := 'getsenderitem ' + GoBigMapItem;! e& A4 k0 a9 t2 m+ @: b
         Str := Str + ':';
' T4 |& C5 V, ~. B$ k         Str := Str + iCount;
% G# D* ]# s5 Y0 r' N9 [         print (Str);
* @9 ^# A& i# B4 ]      end;, [, c$ t3 n2 Y0 P  H+ K; u
   exit;- K' _/ C# a% Q! l8 F5 k
end;7 x! C  f3 p0 y) s! T

9 I& I! r" X. }* n& F$ _end.
# i- p* k4 w# V4 H
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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