Jump to content

Goldkeepers Alarm


Recommended Posts

I've done a script that warns me of mobs with higher hp, in my server they are called goldkeepers. In the same line as the level it appears the word "GoldKeepers". I'd like the bot to prioritize the lower level mobs so they don't acumulate while killing the goldkeeper.  As I don't know how to configure the bot like that I like to go out of the room in which I'm farming and kill the goldkeepers alone. For that I use this script to know when there is a goldkeeper. I turn the bot off, move outside and turn it on again. When the bot finishes that mob it continues as before.

var
  i: integer;
  mobTitle: string;
  p: integer;
begin
  while  true  do
  begin
    for  i := 0  to NpcList.Count-1  do
    begin
      mobTitle := NpcList.Items (i).Title;
      p := pos ('GoldKeeper', mobTitle);
      
      if  ( User.DistTo(NpcList.Items(i)) < 500 )  and
          NpcList.Items(i).Attackable  and
          not NpcList.Items(i).Dead  and
         ((NpcList.Items(i).MaxHP > 30000)  or  (p <> 0))  then
      begin
        PlaySound (exepath + '\sounds\beep.wav');
      end;
    end;
    Delay (3333);
  end;
end.
Edited by darknesscrysis
Link to comment
Share on other sites

  • 4 weeks later...

you wouldn't accomplish much if you can't clear the mobs since after some time more and more those gold diggers would be spawned and you would be left only with them

rather choose a spot you can digest

Edited by bistabil
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...