Hé all,
I am kinda new to this and I was wondering how do I make a Rogue/Mage auto reload projectiles?
Thanks
Auto reload projectiles
- Bill D Cat
- Posts: 555
- Joined: Sat Aug 10, 2013 8:13 pm
- Location: Deep in the Heart of Texas
Re: Auto reload projectiles
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
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>
<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>
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 88 guests