Page 1 of 1

Different fighting styles

Posted: Tue Feb 23, 2010 9:41 pm
by mordret
Hi mates,

is it possible to change the fighting style of the bot while running ?

While farming MA today, i thought about making a waypoints file for the whole run.
But i am a mage and the problem is, if i define a profile for the trash (area) i will run out of mana in a bossfight.

Of course it would be great to give the bot fighting profiles depending on the mob he fights, but if thats not possible is there a chance to change it at a waypoint.

I don't know how and when the class is checked. Perhaps i can just tell the bot that he is a "knight" starting at waypoint 5 and back to mage at waypoint 7 for example.


cu ... or not ? while botting *g*

PS: thx for the great work and sry about the english

Re: Different fighting styles

Posted: Wed Feb 24, 2010 1:21 am
by Administrator

Code: Select all

function disableSkill(name)
  for i,v in pairs(settings.profile.skills)
    if( v.Name == name ) then
      v.autouse = false;
    end
  end
end

function enableSkill(name)
  for i,v in pairs(settings.profile.skills)
    if( v.Name == name ) then
      v.autouse = true;
    end
  end
end
Then just call disableSkill("MAGE_WHATEVER") to prevent the bot from using it automatically. You can create a file named userfunctions.lua in the 'rom' containing these functions.