Code: Select all
// Purpose: Raise stealing skill
// Behavior: Place item in container, attempt to steal item from container.
// Help: To retrieve item and container information, type _info in-game and target the item you want to steal and the container you want to steal from.
const target_item_graphic = '0x1439'; // Graphic of a War Hammer
const target_item_color = 'any'; // Any color
const target_container_serial = '0x460B935E'; // Container serial - MUST REPLACE THIS WITH YOUR OWN CONTAINER SERIAL.
const skill_delay_ms = '10000'; // Delay between stealing attempts in milliseconds.
function AutoStealing()
{
while(true) {
// Return stolen item from backpack to container
var target_item = Orion.FindType(target_item_graphic, target_item_color, 'backpack', 'item|fast|recurse');
if (target_item[0])
{
Orion.DragItem(target_item[0], 1);
Orion.Wait('300');
}
Orion.DropDraggedItem(target_container_serial, 64, 132);
Orion.Wait('500');
//Steal item
Orion.UseSkill('33');
if (Orion.WaitForTarget(1000))
Orion.TargetType(target_item_graphic, target_item_color, target_container_serial);
Orion.Wait(skill_delay_ms);
}
}