原理:进入流放地后自动删除物品栏内所有回城卷 ! G4 q/ z% l/ e; N% g0 j; Y7 x& T% p# T
方法: % B; U7 s1 B- x9 E
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135 2 E1 ]2 ? q+ I! H, B+ b8 {) N
二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到
' \$ N. Y8 X1 j6 r三、"删除回城.txt"中回城卷的名字根据各服务器情况修改 & ^0 n8 I+ Y% ]2 @+ L( o' a3 b0 B
四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE 1 f# q: n# D3 X) t. D. d" @3 @. z
删除回城.txt
# X* Y' j0 s* R2 b4 [/ ounit 删除回城; $ X6 `& j) v2 n* ]( y9 V" X# Z+ R
inte**ce
( _ F3 |2 S& D6 `% P! Efunction GetToken (aStr, aToken, aSep : String) : String;* p/ ?: ?5 f/ ?1 [5 }; O j
function CompareStr (aStr1, aStr2 : String) : Boolean;
4 v1 y# ~6 r3 G4 W; ufunction callfunc (aText: string): string;/ v B, X, U9 |* p n5 i
procedure print (aText: string);7 I* U; w; V" @% h: K0 g
function Random (aScope: integer): integer;9 V, A: i. l# D9 ?% M
function Length (aText: string): integer;
. m. ^% u+ G2 G8 F. j& g: ? M! Q1 rprocedure Inc (aInt: integer); p( t6 x$ b' Y Y- J, K. W
procedure Dec (aInt: integer);
1 L- s% {/ |& X: G$ tfunction StrToInt (astr: string): integer;! z( h! n: T- ?
function IntToStr (aInt: integer): string;( E% _) C, S" H3 q
procedure exit;
- _# o: W& s$ N6 v- i3 Fprocedure OnCreate (aStr : String); 2 V$ Z" @ Q2 G
implementation ; T% g5 ^$ L. s9 S) y7 y
procedure OnCreate (aStr : String);* X' a: ^$ O' a7 {, r/ g6 t9 H- ]
var* t/ n. f9 j# C4 f0 o# Y% O
Str : String;
# o( [, u' G3 S% ?- Y, { @ iCount : String;
$ ], R+ ^& W2 c GoBigMapItem : String = '回城卷';
& F0 z- e! m- i( _- x6 lbegin# x) x* K6 e1 w7 `; A
Str := 'getsenderitemcountbyname ' + GoBigMapItem;' ?5 {0 h: k+ F% O7 r6 W" y
iCount := callfunc (Str);
& d( A! ~ [7 |7 I; B! H0 H8 e if iCount <> '0' then begin
8 V. x8 w( x# M Str := 'getsenderitem ' + GoBigMapItem;5 w) U) N# j& V& _* T4 F# j7 N
Str := Str + ':';
6 b; G8 r# R& Q. i3 Q' Y Str := Str + iCount;" u4 M* j# c& H/ o8 s, N1 @
print (Str);% M; |; w5 n* A7 E5 R% O
end;8 T6 ~1 s) o& \9 b
exit;
$ q+ d% X# v0 A0 G- U4 i1 qend; 0 D1 p9 @* N1 f2 Q1 f/ |5 }4 o
end.
+ G& j. p! Y1 |; u( b7 q- L |