原理:进入流放地后自动删除物品栏内所有回城卷
& G' ~- Q1 o: x. c( ~6 p方法:
@) c I% Y1 n3 w$ |一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135
0 F: T- f' d& @7 x1 d2 r1 z二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到
- E: P# t7 W6 T" P' o0 n三、"删除回城.txt"中回城卷的名字根据各服务器情况修改 % P3 ]3 \. L, P9 k# e' ^+ g: ^
四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE 6 {0 l: M% }) b% M4 }7 i2 X
删除回城.txt ) `: R* O0 P* Q; P# J3 c: s
unit 删除回城;
4 ]* r! X: G! H1 K* x* j" Dinte**ce 4 D6 ~' Q: ]! Q$ N4 |1 g1 Y
function GetToken (aStr, aToken, aSep : String) : String;
/ A* D) ^, ]& e7 a: B* `function CompareStr (aStr1, aStr2 : String) : Boolean;
2 P- L7 s/ p* c5 v n% nfunction callfunc (aText: string): string;5 s6 Z+ m: X. M; W( x! a
procedure print (aText: string);
( B! v u4 Z" \2 Y$ Q# F, b5 Ffunction Random (aScope: integer): integer;
/ K& j; J" W: i, _1 G( q3 gfunction Length (aText: string): integer;% Q6 r& Q f" o" L' r
procedure Inc (aInt: integer);
) y7 i c! i& {9 v1 K* ]procedure Dec (aInt: integer);* N. Q3 N! V& E0 M( U% e2 u' o
function StrToInt (astr: string): integer;* G* ~/ T9 I u3 B2 Q# n3 `8 T
function IntToStr (aInt: integer): string;6 e% m( R8 h$ \$ f& s
procedure exit; + Y+ q- c- j% k) z8 B
procedure OnCreate (aStr : String);
! o# G1 w6 g* a; Vimplementation " O* {2 r; v2 k
procedure OnCreate (aStr : String);
) g" R% P* A* e& e# f' a0 B- ?var8 `+ |& V' \2 B6 t
Str : String;1 W) M" g" Y5 u* ]* T) e, s: {) Z
iCount : String;
3 a I$ v. U; |/ A GoBigMapItem : String = '回城卷';
3 h/ V! B/ s( f. r' k2 Kbegin
! j4 u! K5 Z, u, E# h Str := 'getsenderitemcountbyname ' + GoBigMapItem;
( ^0 \, t( H" v7 k" b! M iCount := callfunc (Str);
. J1 e. M+ ]9 K- j# O$ C6 z if iCount <> '0' then begin
& t. w C# u) p0 K0 J1 C% i; W Str := 'getsenderitem ' + GoBigMapItem;
3 f# j) W! U R, b/ {7 t Str := Str + ':';/ V$ n4 v& d0 p/ _+ t1 p! |
Str := Str + iCount;2 S+ e- l9 q3 D; \' K1 V
print (Str);( g. c; E+ d4 U- i- R# i5 I
end;
5 H0 R* o$ o. F/ e' ]* } exit;
3 Y' V' `4 L" m4 wend; ' p& \1 e! Q3 [. W" N' m: c
end.
6 G w+ r+ l' I4 H5 M( Z |