Created: 13 days ago on 06/01/2025, 07:17:39 PM
FileType: LUA
Size: 1600
Hotkey: P
Description: This will continue to poison your equipped weapon (for training)
-- Training Poisoning by poisoning a weapon that is equipped by JaseOwns
-- Server: UO Sagas
-- Last Update: 06/01/2025
function GetBackpackItem(graphic)
local items = Items.FindByFilter(
{
graphics = { graphic }
}
)
for index, item in ipairs(items) do
if item.RootContainer == Player.Backpack.RootContainer then
if item ~= nil and item then
return item
end
end
end
return nil
end
function GetPoisonPotion()
return GetBackpackItem(0x0F0A)
end
function PoisonWeaponTraining()
local poisonPotion = GetPoisonPotion()
if poisonPotion then
local leftHand = Items.FindByLayer(1)
local righthand = Items.FindByLayer(2)
Skills.Use("Poisoning")
if Targeting.WaitForTarget(2000) then
Targeting.Target(poisonPotion.Serial)
if Targeting.WaitForTarget(2000) then
if leftHand then
Targeting.Target(leftHand.Serial)
elseif righthand then
Targeting.Target(righthand.Serial)
end
end
Pause(2500)
end
end
end
while Skills.GetValue("Poisoning") < 100 do
PoisonWeaponTraining()
Pause(200)
end