Draw the route, WkBot walks it
Open the map, click where you want to go, and the route takes shape: waypoints to walk through, places to stand and fight, and stairs, ropes and holes as waypoints of their own. Sections keep the hunt apart from the trip to town, labels mark the places a script can send the route to, and WkBot starts from whichever waypoint is nearest your character.
Three walking methods come with it: Markers, Arrow Keys and Map Clicks. Pick the one that suits your server and your route; the waypoints stay the same.
Refill, sell and come back
An Action waypoint runs Lua, the whole language, with an API made for the trip to town: check your potions and capacity, talk to the NPC, buy what is missing, sell the loot, open a free depot, restock from the supply stash, and send the route back to the hunt. The editor completes what you type and runs it on the spot.
-- back to town when supplies run low
if getItemCount($manapotion) < 50 or getCapacity() < 100 then
goToLabelAndSection("leave", "Refill")
end
-- at the NPC: restock, sell the loot, carry on
sendMessage($npcs, "hi", "trade")
npcBuy($manapotion, 300 - getItemCount($manapotion))
npcSell($goldenlegs, true)
keyEvent("Escape")
Every function is in the Lua API docs, with what it returns and an example.
Walks round creatures in the way
A creature standing in a corridor used to mean bumping into it until it moved. With the Creature Radar on, the cavebot sees it coming and walks round it, and the route goes on to the next waypoint.
Set it up
- In WkBot, open the Cavebot and put your waypoints on the map, or record them as you walk.
- Pick a walking method, and add an Action waypoint with your refill script.
- Switch the Cavebot on, with Targeting and the Healer, and let the hunt run.