游客您好
  • 点击联系客服

    在线时间: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 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
原理:进入流放地后自动删除物品栏内所有回城卷
) e4 ?8 B. Q* l* u9 Y0 A# n* o* d+ t9 c
方法:
! u8 M8 p( z" W- \1 x! x6 L8 e. ^' n! p8 b, B
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是1350 F% r- J- n; _. s& v

- Z- q2 ?1 m6 g  d$ p) `二、在流放地随便放个NPC Notice列加上script的编号135  坐标 58 78 要保证进去后就能看到1 W8 l( e5 s- s* t5 @
' x9 V+ s4 x# P0 o' e* r& x% `5 g
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改; F3 }0 R: }' a. I
& D4 P! t) d% X0 J5 _: r; T
四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE6 d6 D4 _6 P; l& G8 |( {

! P9 G* R, R1 r. P" z1 d5 R8 ]" s删除回城.txt
. a# U6 i7 i" B, w, @0 Z8 K. Z
. I  c' F2 @0 Y2 a' aunit 删除回城;
6 B" r3 ~- ~6 I3 l" C7 h# k+ y8 K0 N
interface( o( ?# W( x8 W& e

- a: P3 T7 e) I' X/ j/ efunction  GetToken (aStr, aToken, aSep : String) : String;9 A+ \( ^7 O' A3 ]) P
function  CompareStr (aStr1, aStr2 : String) : Boolean;
6 c3 k% f: @' Wfunction  callfunc (aText: string): string;1 N( ?5 C- ]( o$ G7 @- r
procedure print (aText: string);
# M6 z- r* f) |, Ffunction  Random (aScope: integer): integer;% R: b6 _: S2 Y, _/ B5 q
function  Length (aText: string): integer;
7 u2 P6 t( s6 Y6 L* r# K0 eprocedure Inc (aInt: integer);
/ n0 e: @" j$ P2 r* nprocedure Dec (aInt: integer);/ G: \. H# Q4 U9 W( c9 x
function  StrToInt (astr: string): integer;7 X- I/ r5 }! \$ |7 j
function  IntToStr (aInt: integer): string;, _1 O" T' H) ?4 P
procedure exit;5 h8 }, X5 G& j) G
7 I4 o$ ^% d' ]
procedure OnCreate (aStr : String);
$ S2 X, a0 w3 l, i2 J& ^( g6 F; S7 \0 T! u5 |. n1 p: Z: U
implementation
, ~: v/ V) e2 v7 d
7 w; F# ~) d+ u/ l* m3 tprocedure OnCreate (aStr : String);2 Y! A' y5 d* b$ }7 S
var* U3 ]" {3 S0 F8 U
   Str : String;' U+ q8 ?2 h- n* O* o% N
   iCount : String;9 f( G+ H; A4 x8 k
   GoBigMapItem : String = '回城卷';
0 I4 N4 Y% t9 B& Vbegin7 M4 m4 c0 ]9 O5 {
      Str := 'getsenderitemcountbyname ' + GoBigMapItem;- ?' }# ^" f  s( a7 E: e, K
      iCount := callfunc (Str);1 I6 y$ O2 z( g& ?
      if iCount <> '0' then begin
/ n3 a; N  E& M- w" A6 U         Str := 'getsenderitem ' + GoBigMapItem;5 A" O2 w# Z& \) b( O: t- k
         Str := Str + ':';/ r' V/ u% p3 u
         Str := Str + iCount;: b9 u6 a4 P- w1 {+ Y/ ]' R- ^
         print (Str);
4 r) P7 j2 i! R* K      end;% T+ G) X+ ~! R; y( A+ Z
   exit;
8 W, c9 ~9 p* J0 G) v" X# X' `end;
( ^# f" ]" A+ @% j/ ^) r" e: d' @
end.

9 n& q; ]6 \+ T; n$ u' O/ W
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

三千游戏官方客服

扫一扫二维码

添加qq客服

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