三千论坛
标题: 回城卷轴在流放地的BUG及解决方法 [打印本页]
作者: 快要发癫啦 时间: 2023-2-1 14:20
标题: 回城卷轴在流放地的BUG及解决方法
原理:进入流放地后自动删除物品栏内所有回城卷 & D* \3 e/ A' o# o+ P
方法: 5 C1 V% S% R0 e: F0 H
一、将"删除回城.txt"放到script文件夹,在Script.SDB中加入相应的编号,我这是135
& Z, L: d- l* `' k二、在流放地随便放个NPC Notice列加上script的编号135 坐标 58 78 要保证进去后就能看到
* L4 M! w7 W$ q, O4 y3 q三、"删除回城.txt"中回城卷的名字根据各服务器情况修改
& W6 [+ ^& U: E W' w% r ]7 R四、由于不能检测技能栏中的回城卷 所以回城卷要设置成不能放入技能栏 也就是在Item.sdb里设置回城卷的boNotSkill为TRUE / e& g; B& u$ }4 n3 g
删除回城.txt
. e$ b) w6 Z1 J' C# i" l6 n+ i% cunit 删除回城; - w1 M( ]3 U% @1 a) d
inte**ce ) d3 C# p9 P/ Q) z
function GetToken (aStr, aToken, aSep : String) : String;
0 U8 e; r; [: ?" rfunction CompareStr (aStr1, aStr2 : String) : Boolean;+ ^% ], h/ P6 q3 F7 b
function callfunc (aText: string): string;/ X1 a% o" K8 r- h8 b
procedure print (aText: string);
9 f" B* l6 H) ~function Random (aScope: integer): integer;
+ T2 E+ P E; B6 {function Length (aText: string): integer;5 }) K: \+ E# Y; _' ~8 p" X: h
procedure Inc (aInt: integer);
' o8 [& A9 J5 xprocedure Dec (aInt: integer);, n: {5 i& g) ^; L
function StrToInt (astr: string): integer;6 e9 [9 Q0 V) W% L) f- H; p5 l/ [
function IntToStr (aInt: integer): string;
& c' f3 k: i7 l$ A, mprocedure exit; . w) `7 F. X/ C/ Q6 q9 S
procedure OnCreate (aStr : String);
, H8 s/ M8 i: O: mimplementation % T$ W/ H: ]) S7 r4 x# e
procedure OnCreate (aStr : String);; Y2 H2 E w2 d' {) S9 N
var
$ J7 o) f- _7 x6 Y Str : String;
6 c+ {! t( U. C iCount : String;( T r- S. ]2 q% M
GoBigMapItem : String = '回城卷';
$ j7 ~8 [# N1 X- j2 _% Z9 sbegin
6 G8 k( [5 o' _) Z$ ~ Str := 'getsenderitemcountbyname ' + GoBigMapItem;! `! Y3 k `8 M4 H% J9 Y4 S. Q0 k- V
iCount := callfunc (Str);
% ~6 p4 ?: u/ P9 M if iCount <> '0' then begin' h( E% l2 i* s
Str := 'getsenderitem ' + GoBigMapItem;
9 B5 l& c1 y5 c2 Z6 }" d1 q: M% T Str := Str + ':';
6 b( l0 S6 w" j5 G Str := Str + iCount;
4 H- M' N6 R) f6 T print (Str);( B5 q6 Z/ F4 y% y2 }4 A
end;$ ~; F; r% i9 U' C
exit;
7 t" ^2 _7 {! n; H1 V8 Vend; - v" }; T" _5 ^* |
end.
4 q/ b3 }( R$ Y7 w4 S
欢迎光临 三千论坛 (http://3000y.com.cn/) |
Powered by Discuz! X3.4 |