这个是强行全部删除,如果有人用外挂坐药,你就把他拉到你自己设计的地图里,让他在里面劳改。想删他什么就删他什么。
& {. K7 a9 [# w2 a) P'getsenderallitem 删除玩家身上所有同名的物品。不论数量7 V; o& W! E1 p( Y+ ^6 e, p
unit 删除回城;
+ [# [2 V8 y9 d% n$ v! M# Ainte**ce
9 W# n) n* p* c- {9 y* v lfunction GetToken (aStr, aToken, aSep : String) : String;
2 j6 D6 t3 H9 @; [8 i$ A" G! kfunction CompareStr (aStr1, aStr2 : String) : Boolean;
6 Q2 n* j3 `2 k7 pfunction callfunc (aText: string): string;* P/ y: a# w u/ L7 q
procedure print (aText: string);8 U7 L1 n: q3 r5 {8 V5 {, d) x
function Random (aScope: integer): integer;
3 l) E9 V: |) @3 d5 n! pfunction Length (aText: string): integer;0 ]) y$ z+ G7 Q4 T! L3 U
procedure Inc (aInt: integer);, C! A+ G+ u5 K( y% j+ K
procedure Dec (aInt: integer);
. D9 \9 ?1 `% x/ w- afunction StrToInt (astr: string): integer;
& R: v L/ u6 r& rfunction IntToStr (aInt: integer): string;5 |" P( G/ p" s( N# h
procedure exit;$ J. Y. P0 K9 _/ E6 {/ u6 z
procedure OnCreate (aStr : String);4 }! K) B) N$ ?
implementation
% t6 K) U% Q! cprocedure OnCreate (aStr : String);1 O) O5 [) Q, k7 v5 N1 `! K0 B
var Str : String;
7 y3 e9 D; i4 {1 q( d# k; L Race : Integer;8 v# p' G/ x0 b+ O( b
begin Str := callfunc ('getsenderrace');
; y0 i- }* `. y8 \ Race := StrToInt (Str);
) ?4 U4 A/ B ~! f- N! w) E( O if Race = 1 then begin
$ }7 p7 ~: t- i print ('getsenderallitem 回城卷');7 Y) E3 k5 U; l8 m& Z8 k
print ('getsenderallitem 玉露丸');
a1 O/ N% q* V7 b: S end;
2 k! }2 c. f: d7 O2 T+ p exit;& f/ |$ j* h3 B, N* }) o
end;
, A8 k( V3 u9 L: ~# S# m/ lend.
& _# p) u# S/ q+ s, O5 v% H; p |