原理:进入流放地后自动删除物品栏内所有回城卷
- ]' x# S& K1 O
7 t( R% O8 r- C( h2 Y方法:: z4 r6 C+ L0 g8 c* s! S8 ~3 h. J4 p
) _, ]0 K9 G. \
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135
1 |! k' x2 ~+ U/ l# C$ n3 i4 [7 V8 g6 B' c& E" v
二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到) Q" U$ ~/ Z' M
1 I- D: C0 {0 u
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
- k+ t- M! ^6 N9 ?$ W$ B! A" l5 ?% h7 L
四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE8 m4 }' p: z! O- n0 e( [7 b
6 ^7 f$ n. M: G! `) I- ]
删除回城.txt
9 m8 A* Z9 t" d. n1 `! Z/ r. ]2 j$ ]
unit 删除回城;
% {' Q3 N& ` O& b
) w/ L+ R+ h4 @) Jinterface
: I m: J6 E& c/ u
3 Z; g2 N% w' r0 B" `0 Xfunction GetToken (aStr, aToken, aSep : String) : String;1 R9 C: z" J7 X3 f" v8 |& [
function CompareStr (aStr1, aStr2 : String) : Boolean;6 E& U# x3 g, r2 p2 {* d
function callfunc (aText: string): string;
& k" P) `5 A9 a- C) bprocedure print (aText: string);
# H! v6 b" ~- efunction Random (aScope: integer): integer;
3 `( n7 c" T+ W( Kfunction Length (aText: string): integer;- ?6 u$ D: ]3 G( b% \
procedure Inc (aInt: integer);: x5 f/ d* A' J
procedure Dec (aInt: integer);, z* ^/ @2 q! \# f
function StrToInt (astr: string): integer;! C# f# r. m' z+ _, y1 H& K- x7 _
function IntToStr (aInt: integer): string;
' ^: N% I) D2 o. H- R4 q! f! Q* O* aprocedure exit;
5 ?( K$ _$ w! Y
* r7 M) e1 c5 P9 fprocedure OnCreate (aStr : String);: w5 o J" D+ T( Q$ {
+ z' a$ U, Q. q2 x3 Y) u% I1 P- Iimplementation W& X; C# ?6 p/ H1 r4 Y K2 V
' E5 ^5 ]+ p; V* v9 s
procedure OnCreate (aStr : String);; M$ V) x1 f, p& y8 k# A1 h
var
2 R& S3 [" V$ V: N Str : String;9 M* Q/ E! A; n! G
iCount : String;/ m8 ~+ {4 h0 o$ }' M# {0 O( C3 T9 B
GoBigMapItem : String = '回城卷';. e* e0 x! s. l2 q! j4 @! P
begin$ q, E& N' g4 M6 ?
Str := 'getsenderitemcountbyname ' + GoBigMapItem;( p6 H" |1 G; D) }
iCount := callfunc (Str);
|2 A d( ]7 D if iCount <> '0' then begin
$ I0 b; ?& |, n Str := 'getsenderitem ' + GoBigMapItem;
: I* u( K+ ?0 D. u4 }0 Z Str := Str + ':';* z4 k" K' W& U8 v' }( f' l
Str := Str + iCount;7 c; |: P! z" P
print (Str);
+ x% f, r/ S, o end;
0 x# \( T+ O) C) x2 E ? exit;
2 a9 a0 g( I' k9 y' ^( v/ L% `9 Iend;
& M$ k% \( v! Y* c0 r4 N8 E
; J( l( r- @3 B, w8 j: dend.
6 ^: V8 V0 ~6 x- b ] |