原理:进入流放地后自动删除物品栏内所有回城卷
( Y9 r( m/ w5 Q, v/ F方法:
; G% i) c# I$ F一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135
) t# x& |/ C: g0 X) s3 C二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到
) H# Q, z# z% l: d, W三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
1 s9 ? ?8 K# u, D: y5 c# G' h四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE
`& j5 \& u4 l+ t0 W删除回城.txt
9 P7 n, z. F$ b- Zunit 删除回城; ; k" c$ N# V1 F) I3 g |
inte**ce
3 l5 T5 F/ `8 sfunction GetToken (aStr, aToken, aSep : String) : String;& o r& e5 M v8 H) [& ?
function CompareStr (aStr1, aStr2 : String) : Boolean;2 Q f# v7 I: _1 ^+ d6 S) \: f' c% C
function callfunc (aText: string): string;
* `# R4 Y2 z7 K; l$ k [procedure print (aText: string);$ x4 h3 x, f2 x3 U* B6 D
function Random (aScope: integer): integer;3 L/ G; a# Y2 {* N! d- {2 ~+ B
function Length (aText: string): integer;
4 G' R3 W! e6 ]: X/ S+ h6 R+ Hprocedure Inc (aInt: integer);
4 N5 z3 m$ P# j4 R* N) U7 vprocedure Dec (aInt: integer);8 `, s" c6 Q% }- X( ^
function StrToInt (astr: string): integer;
) J7 H ^: y8 q2 Q2 R V/ Rfunction IntToStr (aInt: integer): string;
' o3 p% v6 P( h. fprocedure exit;
1 p, E6 @: o2 r6 Q' S" X3 E+ mprocedure OnCreate (aStr : String);
; |6 q1 ~8 R" C: x* timplementation
$ z% {+ m- y' C' w$ s& `procedure OnCreate (aStr : String);
9 B! e9 D1 w# z8 b; {( U k9 d: Q9 avar e+ D+ I: d1 ?2 ?
Str : String;
3 _$ f' Y O9 P$ v2 M2 z iCount : String;
& L6 ^0 H( a9 q" T GoBigMapItem : String = '回城卷';# @5 T6 l& y, f6 z; |5 N
begin- ^7 ^0 k' Y+ S' T9 V
Str := 'getsenderitemcountbyname ' + GoBigMapItem;
9 y/ D; ^$ y$ \/ t1 m% a5 z iCount := callfunc (Str);2 j: h3 I6 }3 Q" Z& @
if iCount <> '0' then begin
6 @0 ]# _- I( \. N& P6 b Str := 'getsenderitem ' + GoBigMapItem;1 f' s6 M. b7 I& U+ r( K+ Q
Str := Str + ':';
6 {+ X9 E, t3 n Str := Str + iCount;9 i2 {: C: N, L$ A+ E9 x
print (Str);
4 W: z% N. m4 T1 F end;; a* S. k9 W- \0 \# ~7 M
exit;9 z1 K3 B: ?! L/ U
end; ) N3 r8 r! |6 ?
end.
8 Y6 K. o% ` t: I6 ? J2 a* B" [ |