三千论坛

标题: 比较好用的删除回城的脚本 [打印本页]

作者: 快要发癫啦    时间: 2022-12-30 08:36
标题: 比较好用的删除回城的脚本
这个是强行全部删除,如果有人用外挂坐药,你就把他拉到你自己设计的地图里,让他在里面劳改。想删他什么就删他什么。
2 f, R2 r! c  a4 U$ N  P% S0 K, b8 l
'getsenderallitem 删除玩家身上所有同名的物品。不论数量
: ]5 D; S8 v5 p/ L5 l
unit 删除回城;
+ d1 O) S4 h  k
inte**ce$ m4 j5 B  H! N7 [3 @) B
function  GetToken (aStr, aToken, aSep : String) : String;. n( c1 M6 C" \- J8 n# x* H) s; x1 L4 R
function  CompareStr (aStr1, aStr2 : String) : Boolean;/ \6 V8 n& z" I0 B: h' B1 a
function  callfunc (aText: string): string;  a3 C( v! x. U6 z- m- c: [
procedure print (aText: string);) H- O& }. [% ]" G
function  Random (aScope: integer): integer;* c7 d7 \6 Q* L' r/ u
function  Length (aText: string): integer;1 C$ |6 a1 I0 L  A9 G4 s
procedure Inc (aInt: integer);
) S) X5 q  q0 u: a6 q4 ~$ S5 e% S1 }
procedure Dec (aInt: integer);
+ L* A3 c$ N% m, {* y/ n7 C
function  StrToInt (astr: string): integer;6 F$ c$ q  g+ F$ e
function  IntToStr (aInt: integer): string;( O* ?/ {/ m5 e9 n
procedure exit;
2 _$ G' r5 S* P; ^; [8 b$ f2 v
procedure OnCreate (aStr : String);& |2 H. K  S0 y* o$ K3 X( D
implementation
. }: ^- f0 E$ f8 p; B- \
procedure OnCreate (aStr : String);6 b/ M( `7 `, J
var   Str : String;* p' D! O, w+ ~/ Z0 v6 W; x
   Race : Integer;
, C( x9 _- Q& T! n. X( b
begin   Str := callfunc ('getsenderrace');3 K% |: d9 c/ j& ?
   Race := StrToInt (Str);$ G3 r* n& ]# k3 ?$ C4 G
   if Race = 1 then begin
9 y# Y! P" T9 w3 H, Z
      print ('getsenderallitem 回城卷');
! f5 @8 p3 l$ B6 r4 N* s! U
      print ('getsenderallitem 玉露丸');4 ?% E2 W& e& X6 `+ Z; o5 @; w
      end;
  {# k5 l; o3 P' [6 `
   exit;
3 \' {7 D) `& W1 \
end;+ u; R7 O1 y& i# O7 S
end.

5 X" b1 ~5 l  M2 y. N




欢迎光临 三千论坛 (http://www.3000y.vip/) Powered by Discuz! X3.4