原理:进入流放地后自动删除物品栏内所有回城卷7 Z: o) ~$ F1 v; h
, i' K7 G% M1 g3 r方法:: z8 _! Q* [2 z5 f1 _
- a8 h$ F; z/ j# r1 O2 ^
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135 r: x1 Y( s: p" {+ ~1 T
- `. |8 ~$ i% z二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到3 t- g5 Z0 Z" [
) j- K2 V' k2 b3 R, E9 X3 @
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改( u8 a5 M7 _- Y T0 Y
$ ?1 Q4 ?* t( A! M$ @6 b四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE
- h, R+ n8 V" E, c- }( J! c" {/ M3 d$ M; a% h r! d
删除回城.txt' h t6 ~! s j. A: H
( ]; M3 K* Z8 O9 x& \unit 删除回城;9 j& D H6 Z1 `. O1 J# o9 H
, c' @8 G. W8 Y& t+ H' Sinterface' X! y4 J: _, g. `& w9 s
' w' i3 c6 q5 w! W: P5 |( ?4 Lfunction GetToken (aStr, aToken, aSep : String) : String;
^! u/ D/ U; }function CompareStr (aStr1, aStr2 : String) : Boolean;, ^3 e6 N# V6 _( f
function callfunc (aText: string): string;
; @8 n3 } C0 z) Q. ~) u1 kprocedure print (aText: string);' a1 x! |1 n3 S" Z
function Random (aScope: integer): integer;0 A( ]" b: Y0 Q# D
function Length (aText: string): integer;6 N. B& E% T! |4 _/ W2 m& b& X: H
procedure Inc (aInt: integer);
N7 O0 ] J& X; f3 Pprocedure Dec (aInt: integer);
0 t- I, `, x( x% H& Z% Z% jfunction StrToInt (astr: string): integer;
, A0 ?% z* U5 q, ~function IntToStr (aInt: integer): string;
, E# n$ n Q- Wprocedure exit;
" x4 R+ |! _) H* O! L' _. R: o! X$ H3 X8 G
procedure OnCreate (aStr : String);
9 s9 \+ z1 O+ u) L8 j; Y! b
( |- P: o$ e7 {( {* Limplementation
. p$ g8 F% c( D
9 a( u4 i" S, n1 gprocedure OnCreate (aStr : String);! @; K# d$ F: V V! ?1 o0 `+ ~
var
5 \( }2 n' N! K2 q+ M Str : String;0 c. s& }4 n3 y+ K
iCount : String;
: s0 k) j) c9 j$ n GoBigMapItem : String = '回城卷'; f3 J$ e( @* W) g
begin8 M) P7 d; \- b+ {: I/ b3 p* h0 G
Str := 'getsenderitemcountbyname ' + GoBigMapItem;5 F. L- z$ t# S$ h6 u& \
iCount := callfunc (Str);
, t2 t9 E; q! ~+ X! I; @ if iCount <> '0' then begin
2 M( Y: M0 ~' M% F: q$ z( X: F. F Str := 'getsenderitem ' + GoBigMapItem;
, Z$ Z4 z7 v" p7 Y# j Str := Str + ':';
1 x* W1 G. Y N8 u6 G: _ Str := Str + iCount;
. g7 R2 E" h/ ~1 W" x; ? print (Str);
V' t {& E1 C. j end;
4 r6 ]8 F+ l0 k exit;
' }' D) B5 j1 t% a/ G' d& Z ]end;0 l" _: B' s& ^0 s8 O8 E# j
j3 T' Y5 [. @. U
end.
) f5 |* I* E) N$ z% g) l& X4 C5 E3 N |