Page 1 of 1

Auto reload projectiles

Posted: Tue Dec 06, 2016 3:43 pm
by Nickwin
Hé all,

I am kinda new to this and I was wondering how do I make a Rogue/Mage auto reload projectiles?

Thanks :)

Re: Auto reload projectiles

Posted: Wed Dec 07, 2016 5:31 am
by Bill D Cat
Have this in your user profile for that particular character.

Code: Select all

<option name="RELOAD_AMMUNITION"		value="thrown" />		<!-- false|arrow|thrown -->

Re: Auto reload projectiles

Posted: Tue Dec 13, 2016 9:32 am
by beanybabe
Here is how I do it

<onLoad><![CDATA[
-- Additional Lua code to execute after loading the profile
-- and before the bot starts. e.g. You could overwrite profile settings here
-- like: changeProfileOption("HP_REST", 60);
-- next 2 lines are for logplayer function so it can put player class in the log.
classtable = {"WARRIOR", "SCOUT", "ROGUE", "MAGE", "PRIEST", "KNIGHT", "WARDEN", "DRUID", "WARLOCK", "CHAMPION"}
logPlayer(classtable[player.Class1],classtable[player.Class2]);
-- next 9 lines switch to arrow or thrown for rogue or scout.
if(player.Class1 == CLASS_SCOUT ) then
changeProfileOption("ARROW_QUIVER", 2);
end;
if(player.Class1 == CLASS_ROGUE ) then
changeProfileOption("THROWN_BAG", 2);
end;
if(player.Class1 == CLASS_ROGUE and player.Class2 == CLASS_MAGE) then
changeProfileOption("RELOAD_AMMUNITION", "thrown")
end
]]></onLoad>