原理:进入流放地后自动删除物品栏内所有回城卷
1 n' r& N' @ z" E方法:
9 U4 U* p$ v/ I- T/ }& }一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135
3 \7 ?0 ~; w" T+ ^' ~- k# \0 F二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到
, Q; `; y4 W U1 j2 l, a3 e三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
G v) B' x0 C四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE
b( e& X4 B3 @- y* B删除回城.txt + ^2 h R, b# j% g( h0 u( i
unit 删除回城;
. x3 O/ f1 G% C1 Zinte**ce
8 I# V& K- J9 _- s [7 ~function GetToken (aStr, aToken, aSep : String) : String;
; g9 O( C A( q9 Ifunction CompareStr (aStr1, aStr2 : String) : Boolean;" n) y( B; X( \9 p
function callfunc (aText: string): string;, r) @5 G) l1 f( S; X/ x$ J. A
procedure print (aText: string);$ z* E- |' h$ U# g' E, M, M1 W
function Random (aScope: integer): integer;1 A' d3 z) \; L9 l3 s
function Length (aText: string): integer;
- u2 Q5 L. a+ L2 Q6 Hprocedure Inc (aInt: integer);8 b+ z7 A3 f) ~
procedure Dec (aInt: integer);
+ {: f7 G. F) G3 m# Rfunction StrToInt (astr: string): integer;
3 A. p9 d2 ~5 j2 O6 i5 zfunction IntToStr (aInt: integer): string;
' O( u$ b2 l) J4 Lprocedure exit; # G1 n0 u9 l! c3 k1 ]& N& K: x8 w: _5 Y6 E
procedure OnCreate (aStr : String); 9 T# C9 d: j8 D) d0 B* W9 `
implementation " B( h! L! ]: H6 [4 Y( q
procedure OnCreate (aStr : String);
! N3 o0 f b& M) \5 Ivar
# n! K/ Z+ |- j1 b: k Str : String;
( l3 [8 d/ W. G% w7 m. b iCount : String;' a) Y) J. R) h* C: {3 o' O; {
GoBigMapItem : String = '回城卷';8 S% G6 z1 S/ X, Y% m
begin- f' k( O& D0 \4 E6 E) N
Str := 'getsenderitemcountbyname ' + GoBigMapItem; F: G% F+ x( |1 s) Z) u3 U8 y- W
iCount := callfunc (Str);- H4 h c; v- a# R5 n
if iCount <> '0' then begin
( x5 b5 T, O, h: m4 M; X) K Str := 'getsenderitem ' + GoBigMapItem;& K1 ~; K" n5 N1 U
Str := Str + ':';$ C T4 T; G& M$ c
Str := Str + iCount;' J) t) y7 c# Z5 v- G6 \9 e
print (Str);
+ ]- \& Q3 m" ~- E: R E end;
4 E5 `1 g/ ^1 r4 m exit;
( R! C& L* M9 x9 b, ]( ?/ ~+ Yend;
3 U( Y; i" f# a/ m$ x0 Tend. / M* o$ B% z. v& a/ B
|