![Sad :(](./images/smilies/icon_e_sad.gif)
All i found is this in the bot.lua -> player:fight(); but where is this function ?
ok i found it player.lua, sorry.
gathering experiments, if it works ill post here laterAdministrator wrote:I have no idea why you would just use the bot to walk some waypoints, but here's how you'd do it. Open up bot.lua and go to line 92. You'll see this line:Change it to this:Code: Select all
local success, reason = player:moveTo(wp);
Save, reload script, and run.Code: Select all
local success, reason = player:moveTo(wp, true);
Now, the reason I haven't set a timer to allow closing the client is simple: It will probably get you killed. If you just close the client without logging out properly, you'll stay online for another minute or two. During this time, you'll get killed and lose all benefits of botting to begin with (especially at levels 35+). Besides, you should not be botting in the same area for more than 2 hours at a time. Move constantly to avoid suspicion and always check to see if people have messaged you.
master121 wrote:Hey i want to add a function to sit down, cuz i ran out of money for pots
All i found is this in the bot.lua -> player:fight(); but where is this function ?
ok i found it player.lua, sorry.
administrator wrote:Unnecessary and more problematic than it's worth. Potions are like candy in this game. Also, sitting does not regenerate that much faster than standing. Plus, you can insert a bit of code into your waypoint script to make your character rest at a specified (presumably safe) point. This needs to be done manually.
Just open up your waypoint script and modify one of the waypoint entries. Here's an example:
Code: Select all
<waypoint x="1234" z="5678" /> <!-- Normal waypoint -->
<waypoint x="2345" z="6789">
-- Waypoint with Lua code in it.
--- Take a ~10 second break. Exit if we get attacked.
for i = 1, 10 do
yrest(1000);
player:update();
if( player:haveTarget() ) then
i = 10;
end;
player:checkSkills(); -- check if we need to cast buffs/heals.
end
</waypoint>
To solve the Durability issue, I made the ingame marco that will switch my weapon every 4 hrs.Zephyr wrote:You might want to look into the ingame macro system as of right now. There might be a script that does that or that you can create and set it to a hotkey. then just configure a dummy skill in the skills.xml so that you can set it up in your profile.master121 wrote:It is possible to implement a function that the bot changes weapon when the weapons durability is low ?
Code: Select all
/wait 14400
/script UseBagItem(1);
/script UseAction(41);
Code: Select all
/wait 14400
/script UseBagItem(2);
/script UseAction(42);
Code: Select all
Using skills through hotbar slot
/script UseAction(1); UseAction(2); UseAction(3);
Main Bar: 1-20
Upper Bar: 21-40
Right Bar: 41-60
Left Bar: 61-80
Code: Select all
<!-- Swap-->
<skill name="SWAP" cooldown="36000" type="buff" target="self" />
Code: Select all
<skill name="SWAP" hotkey="VK_NUMPAD6" modifier="" />
And what happens when the Bot equips a Weapon and the previously slot of it will be replaced by a picked up item? (:RedBloodz wrote:To solve the Durability issue, I made the ingame marco that will switch my weapon every 3-4 hrs.Zephyr wrote:You might want to look into the ingame macro system as of right now. There might be a script that does that or that you can create and set it to a hotkey. then just configure a dummy skill in the skills.xml so that you can set it up in your profile.master121 wrote:It is possible to implement a function that the bot changes weapon when the weapons durability is low ?
I put my 'to-be swap weapon' in the bag top row from left to right
make a macro with this code. /wait # is in secondthen put it in keypad9Code: Select all
/wait 14400 /script UseBagItem(1); /script UseAction(41);
then i made another macro and put in right bar (41)similar code for right bar (42)Code: Select all
/wait 14400 /script UseBagItem(2); /script UseAction(42);
................ and so on far how many equip u wanna to switch
basically it press numpad6, wait 3 hrs, switch sword, wait 3 hrs, switch sword. The in game macro just keep on switch to new sword every 3hr by just pressing numpad6 once.To make this work, I add a dummy skill skill.lua file with cooldown 36000, thats about 10hrs buffCode: Select all
Using skills through hotbar slot /script UseAction(1); UseAction(2); UseAction(3); Main Bar: 1-20 Upper Bar: 21-40 Right Bar: 41-60 Left Bar: 61-80
then add this under skill in my profiles lua file for the bot to execute the macro, note that i put keypad 9 as my macroCode: Select all
<!-- Swap--> <skill name="SWAP" cooldown="36000" type="buff" target="self" />
Code: Select all
<skill name="SWAP" hotkey="VK_NUMPAD9" modifier="" />
Code: Select all
<profile>
<options>
<option name="HP_LOW" value="50" />
<option name="MP_LOW_POTION" value="50" />
<option name="HP_LOW_POTION" value="40" />
<option name="COMBAT_TYPE" value="melee" />
<option name="ANTI_KS" value="false" />
<option name="WAYPOINTS" value="bear.xml" />
<option name="LOOT" value="true" />
<option name="LOOT_TIME" value="2000" />
<option name="ENERGY_STORAGE_1" value="rage" />
<option name="ENERGY_STORAGE_2" value="energy" />
<option name="POTION_COOLDOWN" value="15" />
<option name="MAX_FIGHT_TIME" value="30" />
<option name="DOT_PERCENT" value="90" />
</options>
<friends>
<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
</friends>
<hotkeys>
<hotkey name="HP_POTION" key="VK_5" modifier="" />
<hotkey name="MP_POTION" key="VK_EQUAL" modifier="" />
<hotkey name="ATTACK" key="VK_1" modifier="" />
</hotkeys>
<skills>
<skill name="WARRIOR_SLASH" hotkey="VK_2" modifier="" />
<skill name="WARRIOR_WHIRLWIND" hotkey="VK_6" modifier="" />
<skill name="WARRIOR_CUNNING_ATTACK" hotkey="VK_7" modifier="" />
<skill name="WARRIOR_TACTICAL_ATTACK" hotkey="VK_9" modifier="" />
<skill name="WARRIOR_TRAMPLE" hotkey="VK_0" modifier="" />
</skills>
</profile>
Code: Select all
<profile>
<options>
<option name="HP_LOW" value="60" />
<option name="MP_LOW_POTION" value="50" />
<option name="HP_LOW_POTION" value="40" />
<option name="COMBAT_TYPE" value="ranged" />
<option name="ANTI_KS" value="true" />
<option name="WAYPOINTS" value="test1.xml" />
<option name="LOOT" value="false" />
<option name="LOOT_TIME" value="1000" />
<option name="ENERGY_STORAGE_1" value="concentration" />
<option name="ENERGY_STORAGE_2" value="mana" />
<option name="POTION_COOLDOWN" value="15" />
<option name="MAX_FIGHT_TIME" value="20" />
<option name="DOT_PERCENT" value="90" />
</options>
<friends>
<friend name="MyOtherCharacter1" />
<friend name="MyOtherCharacter2" />
</friends>
<hotkeys>
<hotkey name="HP_POTION" key="VK_MINUS" modifier="" />
<hotkey name="MP_POTION" key="VK_EQUAL" modifier="" />
<hotkey name="ATTACK" key="VK_0" modifier="" />
</hotkeys>
<skills>
<skill name="PRIEST_INSTANT_HEAL" level="18" hotkey="VK_7" modifier="" />
<skill name="SCOUT_VAMPIRE_ARROWS" level="24" hotkey="VK_2" modifier="" />
<skill name="SCOUT_WIND_ARROWS" level="29" hotkey="VK_3" modifier="" />
<skill name="SCOUT_SHOT" level="19" hotkey="VK_1" modifier="" />
</skills>
</profile>
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 0 guests