原理:进入流放地后自动删除物品栏内所有回城卷% t. D V9 V3 c& |* ^
: [+ M7 J2 I& [+ h4 L0 q" {方法:- _* W5 @1 k$ ]! Z' S
: h8 r- y, f5 ^+ I$ ?一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135' T1 r1 m9 E; a( {1 U3 t9 c
9 ] l: u! T. j% B( X" N+ N: e; s
二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到
: \& h, o$ ^7 g' T, T) \# y* m9 f+ h* Z: M9 f8 j1 I. D
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
- z% W g m, b7 M$ U2 H
# B! @1 C, Q0 C6 l% R四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE
, `) b, p/ M7 n$ q- D' J* L, m' ]1 V! m4 n
删除回城.txt
9 S7 u- ~# z/ K u; g
4 j" Z4 ?' l& P, Gunit 删除回城;
4 s5 |: s# u& z. q8 M0 a# v4 [, H5 {2 A, ^0 D, H- Q
interface
2 [: u7 E2 O1 |* t" }$ c! c" e0 p) G- G' t
function GetToken (aStr, aToken, aSep : String) : String;
0 l1 p% P5 p& k+ tfunction CompareStr (aStr1, aStr2 : String) : Boolean;5 z3 W+ S5 @/ L$ T7 v
function callfunc (aText: string): string;7 N7 o6 \1 x i1 t. I* s J
procedure print (aText: string);4 d( x" _0 n, h: m5 d
function Random (aScope: integer): integer;2 n& J$ ^, X- s8 j- o* j, }
function Length (aText: string): integer;
( x% D* Q! y( Hprocedure Inc (aInt: integer);/ `* C$ g. w! }! Z7 M
procedure Dec (aInt: integer);
: E& Q$ d4 B+ U; ^1 Mfunction StrToInt (astr: string): integer;
[4 j0 S# ~1 j3 `1 @function IntToStr (aInt: integer): string;2 ^, w8 W0 b3 r# c8 K
procedure exit;$ r! ~) l* }" `- F& r
# z. M) v4 _4 p% vprocedure OnCreate (aStr : String);
; T& P; V6 n$ K
! `4 ^) a% D4 _" k) b+ \6 kimplementation
% `+ E! ~3 ^/ ~4 R9 ]% [5 N0 ?# w1 {
procedure OnCreate (aStr : String);
8 Q. s4 Q7 W* \var4 y* `& s% b& N4 o1 B' R
Str : String;. E% Y# P& j+ ^
iCount : String; U5 B2 s0 K5 F9 t
GoBigMapItem : String = '回城卷';
9 K* E6 }$ ]+ W* T* b$ j) K: bbegin
. l k! W# y3 b/ w Str := 'getsenderitemcountbyname ' + GoBigMapItem;
9 K6 ^# ]# m. i# i iCount := callfunc (Str);8 d! v* T. Y' t/ f0 q3 a T
if iCount <> '0' then begin
. ~$ U+ a1 z+ x Str := 'getsenderitem ' + GoBigMapItem;7 W* g* z) Y% d4 C; V0 _
Str := Str + ':';
0 U5 x: T, r) U Str := Str + iCount;' V1 `: V7 V [" \; T' i4 q& o
print (Str);+ @' Q9 u% W0 U
end;$ _) v. G. O4 e5 X
exit;" k) H! ?4 H; L3 J* K) M$ N! ?# A
end;& w5 e }' `# q' A( s0 ]+ k
5 M: d1 I& I- |9 f) `- t+ i
end.
$ R! s/ h; a0 e2 }: ^6 t |