UO Sagas: Poison Equipped Weapon

Created: 13 days ago on 06/01/2025, 07:19:45 PMUpdated: 13 days ago on 06/01/2025, 07:28:41 PM
FileType: LUA
Size: 2400
Category: Utility
Skills: Poisoning

Description: We currently can't check to see if a weapon is already poisoned, but this one will attempt to poison to your equipped weapon.

-- Poison Equiped Weapon until Success 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 PoisonWeapon() 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 while not Journal.Contains("You apply the poison.") and not Journal.Contains("You fail to apply a") do Pause(500) end if Journal.Contains("You apply the poison.") then Messages.Overhead("Successfully poisoned weapon", 68, Player.Serial) end if Journal.Contains("You fail to apply a") then Messages.Overhead("Failed to poison weapon, trying again", 34, Player.Serial) end end end end Journal.Clear() Messages.Overhead("Poisoning weapon", 68, Player.Serial) while not Journal.Contains("You apply the poison.") do Journal.Clear() PoisonWeapon() Pause(200) end Messages.Overhead("Poisoning weapon complete", 68, Player.Serial)
View list of scripts
Disclaimer: This is a fan made site and is not directly associated with Ultima Online or UO staff.