原理:进入流放地后自动删除物品栏内所有回城卷
( y' B. r8 V' V8 H方法:
9 [9 i. `5 q1 J2 ~一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135 ) O% P; E& g) t9 V" @# U
二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到 ) K5 M7 }. u, O: r7 E
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改 & M8 G j) z9 d5 t! m
四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE
% L [9 X* a: H+ W删除回城.txt , N+ O: B' W% L: P/ l+ c
unit 删除回城;
& |, m9 l2 O. einte**ce # U% @ w2 A8 n
function GetToken (aStr, aToken, aSep : String) : String;
8 N# m6 K* \" w ^3 Wfunction CompareStr (aStr1, aStr2 : String) : Boolean;& H/ K- h8 z( V/ R! o2 @' W( A$ @
function callfunc (aText: string): string;
: e6 o. r) ?2 _% hprocedure print (aText: string);
4 B' E7 F& A9 T/ @function Random (aScope: integer): integer;# T' e7 a. m- h' |0 G9 c& I
function Length (aText: string): integer;, T- C) {4 _8 o2 x4 s5 q
procedure Inc (aInt: integer);2 ~+ _6 v$ _3 c! A% Q
procedure Dec (aInt: integer);+ b. `; t5 _8 X7 S
function StrToInt (astr: string): integer;3 ]% H0 v/ Q2 a3 h8 q
function IntToStr (aInt: integer): string;$ f& d8 U$ P6 @( j+ o" f
procedure exit;
9 n, ^( @5 s0 vprocedure OnCreate (aStr : String);
9 c& m9 ]" l+ o3 u: H% `9 vimplementation 9 F( h0 T1 ~) V1 ^) X) C1 M: j
procedure OnCreate (aStr : String);
0 b* N) q) U ]8 z; Qvar
0 e; d) G& |+ s- b4 v Str : String;
4 y( u& q+ `% v4 i& L: f: S iCount : String;
) m, E7 A* X0 n: O& k7 N Q( s8 [ GoBigMapItem : String = '回城卷';
' M( ]( |3 d+ g' n8 r5 o- I1 T) ebegin9 C4 B2 M7 g$ _( D
Str := 'getsenderitemcountbyname ' + GoBigMapItem;& X, F/ ]0 T4 A/ Q
iCount := callfunc (Str);
" }/ i4 C( T% m/ q) L if iCount <> '0' then begin. G# N6 ?, r* l2 j$ R
Str := 'getsenderitem ' + GoBigMapItem;
0 o- l; w4 q4 B7 ?2 | Str := Str + ':';
3 R0 j/ N8 J- e, ?9 ? Str := Str + iCount;
; ^( m& h. f- k print (Str);
" S# j0 u. U( t4 P end;" i5 x0 X3 p6 W" |, m
exit;* K7 d& @9 D, f% c
end;
! y. o8 O4 }5 q% E3 yend.
6 O; B, L% P6 o* O |