|
Post by crowface28 on May 19, 2021 20:32:34 GMT
Setup: - A keg of poison in your pack
- Keg's default action when double clicking should deposit one potion in your pack (Right Click keg and toggle until properly set)
- One empty bottle in your pack
- Daggers to poison
- Oil cloths
FindItem("keg", BACKPACKID) if FINDITEM then kegId = FINDITEM[1].ID print("found keg: " .. tostring(kegId)) end
FindItem("oil", BACKPACKID) if FINDITEM then oilId = FINDITEM[1].ID print("found oil cloth: " .. tostring(oilId)) end
function findWeapon(weapon) FindItem(weapon, BACKPACKID) if FINDITEM then weaponId = FINDITEM[1].ID print("found weapon: " .. tostring(weaponId)) end return weaponId end
function healSelf() if HEALTH < 90 then FindItem("bandage", BACKPACKID) if FINDITEM then UseSelected(FINDITEM[1].ID) sleep(500) TargetSelf() end return true end return false end while true do needHealing = healSelf() if needHealing == false then weaponId = findWeapon("dagger") print("using keg...") UseSelected(kegId) sleep(1000) print("targeting self to deposit potion in pack...") TargetSelf() sleep(1000) FindItem("lesser poison potion", BACKPACKID) if FINDITEM then print("found poison potion..." .. tostring(FINDITEM[1].ID)) UseSelected(FINDITEM[1].ID) sleep(1000) print("poisoning weapon...") TargetDynamic(weaponId) sleep(1000) end print("using oil cloth...") UseSelected(oilId) sleep(500) print("cleaning off weapon...") TargetDynamic(weaponId) sleep(500) end end
|
|
|
Post by crowface28 on Jan 31, 2022 16:55:54 GMT
Newer, simpler version without needing a keg, since pots stack now: Setup: - In Main backpack, have poison pots, oil cloths and daggers
- Make sure lines 2 and 6 match whatever pots or weapons you have
- Hit run
while true do FindItem("greater poison", BACKPACKID) if FINDITEM then pots = FINDITEM[1].ID end FindItem("dagger", BACKPACKID) if FINDITEM then wep = FINDITEM[1].ID end FindItem("oil", BACKPACKID) if FINDITEM then cloth = FINDITEM[1].ID end if pots and wep and cloth then UseSelected(pots) -- use poison WaitForTarget() TargetDynamic(wep) -- target weapon sleep(1500) GetTooltip(wep) if string.find(TOOLTIPTEXT, "Poisoned") then UseSelected(cloth) -- use cloth WaitForTarget() TargetDynamic(wep) -- target weapon sleep(1500) else sleep(1000) end end end
|
|