原理:进入流放地后自动删除物品栏内所有回城卷 - O0 i% ~0 B/ ]' R) v m1 d5 i
方法: 0 O- B# u. D! J$ k3 V) \
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135
! t' x2 n2 J1 x/ @8 \二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到
* r6 s% D# G' ?; L3 S5 }三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
+ u2 O9 I( Q+ _: |四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE
7 F! j3 d* G( B4 N删除回城.txt
" g" Q( |; w2 u, V* Xunit 删除回城;
) m+ J5 h/ K+ S2 n2 ainte**ce
, Q7 C, y3 P: u- v* E+ Ifunction GetToken (aStr, aToken, aSep : String) : String;
3 X4 z. d; i" ]) ]9 O, ~& O; d+ yfunction CompareStr (aStr1, aStr2 : String) : Boolean;
9 z% z! M( l2 t9 ?- X2 R! Kfunction callfunc (aText: string): string;
/ {) S; u) ?5 }procedure print (aText: string);
/ t$ j5 ?/ F% d0 P6 ofunction Random (aScope: integer): integer;
& }4 b- b. o/ V; M, yfunction Length (aText: string): integer;6 E7 {' M S- V" ^: d
procedure Inc (aInt: integer);
- i0 y7 w; N8 _! |; j; ]3 P' Sprocedure Dec (aInt: integer);: p. c: \% T& O1 I: G% K
function StrToInt (astr: string): integer;5 G9 B1 q' n+ v& d) {2 V M2 F2 H/ w) k
function IntToStr (aInt: integer): string;
6 o- H4 U8 C& d, ^8 { X# ?procedure exit; 7 E- W2 E& B# W8 x+ g
procedure OnCreate (aStr : String); , ]) T( O* R" H3 Q9 t; m
implementation n- M' h9 d' r) s) S! z
procedure OnCreate (aStr : String);6 H/ ?. ?( g: t9 f* r
var
2 M/ D% r, |! _$ l& R2 Q; Y Str : String;
2 B7 A3 O0 j- a' G1 c; { iCount : String;4 p) x" X3 F+ l P; z* `
GoBigMapItem : String = '回城卷';
) [/ H0 p9 r# u: Sbegin* X9 T6 A( n" J5 H5 w Y$ x _
Str := 'getsenderitemcountbyname ' + GoBigMapItem;4 w3 e* T, }6 h# F- M5 \6 H
iCount := callfunc (Str);# M& `7 d0 f1 s' r+ { S5 v
if iCount <> '0' then begin
. F# X8 k" W1 O( ~ Str := 'getsenderitem ' + GoBigMapItem;
; a& ^3 e+ a7 h$ k1 l5 O& D Str := Str + ':';/ N7 L6 i5 ?4 g' D7 B
Str := Str + iCount;
6 X/ h% E- h+ M/ {8 s% Z. H/ h print (Str);
; L1 N& W% R4 U2 A4 Q' w' R end;
6 m, E0 V K0 ~3 i* K: O3 | exit;& M+ Z% A/ g$ ]2 M
end; 7 g8 P' n7 R& h& |( {' [
end.
S% Q0 ?9 R- U6 v/ U |