原理:进入流放地后自动删除物品栏内所有回城卷
! A$ |: s2 G- i/ l* y
8 @7 L6 Z% v( S @方法:
+ ^ W) D4 x6 ^! N; v: ]) e
" I3 W5 j+ @# p7 X/ P一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135" A; t& R9 T% f( Y; D. e0 x
/ `* d, F% |. A* x0 G
二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到
, H }2 }* w5 y; R7 j7 ^+ H0 l% O$ m3 i. i- I2 C
三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
2 P: G8 \8 H3 f' ~# M, h5 q! `
四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE; g$ v. A% H, @
. a8 a+ j. `6 K$ e删除回城.txt
3 Y3 k. F E3 ]/ o: \4 P
. q' q5 Y7 d7 e. N5 r {; \unit 删除回城;
/ H9 X5 T$ e+ |' Z3 `8 o4 g: }# O' o3 T# f
interface
6 n8 D* g" r7 r0 x1 a1 T! F2 H* n6 [ t) F( S0 q
function GetToken (aStr, aToken, aSep : String) : String;
( _' |8 o0 A! ~- X( Qfunction CompareStr (aStr1, aStr2 : String) : Boolean;
7 g, c- l- X. \* V. {4 ffunction callfunc (aText: string): string;
/ X$ _' s, N- K5 p- qprocedure print (aText: string);1 \: ^9 q7 J. W- e- [: a/ `
function Random (aScope: integer): integer;' s/ k. x1 \8 A' c. A4 F
function Length (aText: string): integer;
: b {/ W7 L+ ~2 y8 A# ~procedure Inc (aInt: integer);0 K N& T4 R1 }, s4 S
procedure Dec (aInt: integer);
7 O& f0 @1 w0 t2 q( a" \function StrToInt (astr: string): integer;
5 u% a a- T, W- Y5 ]" C+ w# ffunction IntToStr (aInt: integer): string;
; l3 N; g" r4 Q" xprocedure exit;0 W1 p4 q; z, d0 Q+ Z
8 {; |: }5 }) w! ?" R$ [7 _procedure OnCreate (aStr : String);" R# e3 }; e* S# M
. Q: F h$ q! F3 ]! S; Y
implementation
/ w. M/ h. i. \) N/ N' ?+ y# Z( r, m/ O y% z! `5 `
procedure OnCreate (aStr : String);" t4 x4 N3 ?2 a: y+ C) r$ ^8 m. o
var4 O/ E) ~* ^, D
Str : String;1 O0 ?& X& S# v. a
iCount : String;
/ v* \: c# u9 K7 r8 u# G GoBigMapItem : String = '回城卷';
v; E2 t" F6 N. }begin& b6 r# e9 C: a9 ?5 {
Str := 'getsenderitemcountbyname ' + GoBigMapItem;2 \! M0 `7 H; A7 N0 P
iCount := callfunc (Str);
' P3 S9 a+ t. E8 x8 n if iCount <> '0' then begin4 w1 p- y$ Z' X7 i& s
Str := 'getsenderitem ' + GoBigMapItem;
! H4 R1 [3 E/ `& E9 m/ U% f B Str := Str + ':';
: ~! A! h" ]8 ]) i3 O: F Str := Str + iCount;, ]4 t7 T% O% X, k2 s' K
print (Str);, m Y7 E' v& {/ o$ f2 u
end;
. u6 H2 A: P4 Y, V, m1 R# z exit;
2 u% T- {0 a' b% b+ X5 h7 A! }! G7 |end;
X* z5 W! D8 D* H) m' n
2 h. `' r. {6 ~7 ~end. / Q+ ]. u4 `: r% P( f. I
|