原理:进入流放地后自动删除物品栏内所有回城卷 7 c9 h& e! @6 U$ c
方法: 5 `! W& I' y) S, g# k+ o
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135 & h! _9 t- `% N, ]( a. g+ ~2 T
二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到 ! g/ W& D5 b4 A6 {: y- L" `
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
- @% G; s& J; {, v+ `四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE * X5 m: H0 Y/ M) ]' M9 F: s* T/ `
删除回城.txt
6 q2 e; }: T2 m* g$ X5 r6 Iunit 删除回城;
( c5 t! D1 ~- l4 hinte**ce
1 ]! S5 |& k7 h" N' \+ [0 g! n9 Wfunction GetToken (aStr, aToken, aSep : String) : String;
8 w; U6 y, I: B3 z r9 {& m1 c/ sfunction CompareStr (aStr1, aStr2 : String) : Boolean;/ Q! u( m3 N3 d% {' m
function callfunc (aText: string): string;
: R+ w7 ^( `8 X7 y) t$ Jprocedure print (aText: string);$ v- {0 F* A( Z8 W5 x1 r6 ^' n
function Random (aScope: integer): integer;5 i q+ m. e7 w1 E2 Z5 ?+ [ g5 E
function Length (aText: string): integer;
+ v9 {( h8 s: D, T1 O2 z# \9 R( tprocedure Inc (aInt: integer);0 B; V( V( N2 N5 h( S( J5 @; l
procedure Dec (aInt: integer);( Y) U, c7 G5 F' t
function StrToInt (astr: string): integer;1 d9 R- [4 w k& Y( h/ `
function IntToStr (aInt: integer): string;' E# g+ K$ Z( H+ l( B
procedure exit;
: D" E. G) G w$ fprocedure OnCreate (aStr : String); , G5 l" v+ K7 E/ r- J5 H2 l- V
implementation , E% c2 c1 T) ?; w% g; w
procedure OnCreate (aStr : String);
; X7 \; B W% X) W. Q. u* @3 J: l( Yvar8 l- e2 K7 H7 r, ]% B1 I6 i5 M3 y
Str : String;
% ~" l/ e) Z! F7 H( ]5 E iCount : String;7 P3 d, k5 o; r5 H9 H6 X5 A
GoBigMapItem : String = '回城卷';
) p. D y' s( N/ J+ e+ P% Vbegin
. P) g. g0 M2 E e P2 v* A" R7 P Str := 'getsenderitemcountbyname ' + GoBigMapItem;( R3 K2 x& p0 @( f
iCount := callfunc (Str);
+ }2 D, Q* P3 S1 X M0 Y) a if iCount <> '0' then begin
0 M- h1 ]! z* U Str := 'getsenderitem ' + GoBigMapItem;
: d. Z0 J& m( q" l Str := Str + ':';/ r+ T2 u$ F# { U7 @: y1 f' g
Str := Str + iCount;
* [- L" v# o( U+ K' u2 M, n( X print (Str);( b) M- n- H2 {( v. c5 _
end;- q* Y% v8 V, r8 \4 F) R7 @, n8 _
exit;
# `0 h3 ?* b& ~9 p' U% lend; * u8 a6 E9 q/ w$ V$ X
end.
' s. A& G* b/ m" V+ a |