1、在怪物文件Monster中加入

练功火炉,练功火炉,,0,0,0,,,,,,0,0,103,64,0,0,,,,20000,200000,0,0,0,,10,,TRUE,,TRUE,TRUE,,,,,0,10,,,,,,,,,,,9427,,9426,,,,,,,,,,,100,70000,70000,50000,50000,1,6000,3000,1200,1,,,,,,,,,,,,,,,,,,

2、在Script文件夹创建名称为“练功火炉”的文本文件,内容如下:

unit 练功火炉;

interface

function GetToken (aStr, aToken, aSep : String) : String;
function CompareStr (aStr1, aStr2 : String) : Boolean;
function callfunc (aText: string): string;
procedure print (aText: string);
function Random (aScope: integer): integer;
function Length (aText: string): integer;
procedure Inc (aInt: integer);
procedure Dec (aInt: integer);
function StrToInt (astr: string): integer;
function IntToStr (aInt: integer): string;
procedure exit;

procedure OnDie (aStr : String);
procedure OnChangeState (aStr : String);
procedure OnApproach (aStr : String);
procedure OnAway (aStr : String);
procedure OnHit (aStr : String);
procedure OnRegen (aStr : String);

var
Str : String;
implementation

procedure OnHit (aStr : String);
var
Str : String;
begin
Str := callfunc ('getsenderrace');
if Str <> '1' then exit;
print ('putsendermagicitem 金元:1 @练功火炉 4');
end;
end.

3、在Script文件夹中Script文件中添加

137,练功火炉.txt,, (137是这个脚本的编号,具体数值视你服务端的脚本数量。)

4、在Setting文件夹中选择想刷这个怪的地图。

例如:我想将这个怪刷在中央市场,那么就在CreateMonster1文件中加入“284,练功火炉,525,467,1,10,,137,”(其中284是CreateMonster1文件中最后一位的编号,可以按照你服务端情况而定。而后面的137是“练功火炉”的脚本编号,也就是要和步骤三中的脚本编号一致。)

最后修改:2022 年 12 月 05 日
如果觉得我的文章对你有用,请随意赞赏