User Tools

Site Tools


poisoning
#Poisoning Trainer by Frank Castle
#
#What you need:
# 1 - 30.0+ Poisoning Skill. If you do not have it buy it up. 
# 2 - a dagger. Dont be a bitch.  Go buy a dagger.
# 3 - a chest with stacks of lesser poison potions, poison potions, greater poison potions, and deadly poison potions
#     This is written to use stacks of poisons.  Kegs are a thing of the past.  Get with the times. 
# Written and tested on OSI.


from System.Collections.Generic import List
global weapon
stoCont = Target.PromptTarget('Target your resource chest')
def chooseWeapon():
    global weapon
    weapon = Target.PromptTarget('Target your DAGGER to be poisoned')
    daggerIDS = [0x0F51,0x0F52]
    pWeapon = Items.FindBySerial(weapon)
    if not pWeapon.ItemID in daggerIDS:
        Misc.SendMessage('I SAID DAGGER! WHAT PART OF THAT DO YOU NOT UNDERSTAND???',65)
        chooseWeapon()
chooseWeapon()    
source = Items.FindBySerial(stoCont)
Items.UseItem(stoCont) 
Misc.Pause(1100)
for P in Items.FindBySerial(source.Serial).Contains:
    if P.ItemID == 0x0F0A:
        Items.WaitForProps(P,10000)
        Misc.Pause(500)
        props = Items.GetPropStringList(P)
        Misc.Pause(500)
        prop = props[0].split(' ')[1]
        Misc.Pause(500)
        if prop == 'Lesser':
            lesserPoison = Items.FindBySerial(P.Serial)
        if prop == 'Poison':
            normalPoison = Items.FindBySerial(P.Serial)
        if prop == 'Greater':
            greaterPoison = Items.FindBySerial(P.Serial)
        if prop == 'Deadly':
            deadlyPoison = Items.FindBySerial(P.Serial)
    
skill = Player.GetSkillValue('Poisoning') 

def train():
    if skill < 40:
        if lesserPoison:
            Player.UseSkill("Poisoning")
            Target.WaitForTarget(1500, False)
            Target.TargetExecute(lesserPoison)
            Target.WaitForTarget(10000, False)
            Target.TargetExecute(weapon)
        else:
            Misc.SendMessage('I am out of Lesser Poison potions.  Halting Script.', 33)
            pots = False
            
    elif skill > 39.9 and skill < 70:
        if normalPoison:
            Player.UseSkill("Poisoning")
            Target.WaitForTarget(1500, False)
            Target.TargetExecute(normalPoison)
            Target.WaitForTarget(10000, False)
            Target.TargetExecute(weapon)
        else:
            Misc.SendMessage('I am out of Poison potions.  Halting Script.', 33)
            pots = False
            
    elif skill > 69.9 and skill < 92:
        if greaterPoison:
            Player.UseSkill("Poisoning")
            Target.WaitForTarget(1500, False)
            Target.TargetExecute(greaterPoison)
            Target.WaitForTarget(10000, False)
            Target.TargetExecute(weapon)
        else:
            Misc.SendMessage('I am out of Greater Poison potions.  Halting Script.', 33)
            pots = False

    elif skill > 91.9 and skill < 100:
        if deadlyPoison:
            Player.UseSkill("Poisoning")
            Target.WaitForTarget(1500, False)
            Target.TargetExecute(deadlyPoison)
            Target.WaitForTarget(10000, False)
            Target.TargetExecute(weapon)
        else:
            Misc.SendMessage('I am out of Deadly Poison potions.  Halting Script.', 33) 
            pots = False
            
pots = True
while skill < 100 and pots == True:
    global skill
    train()
    Misc.Pause(10500)
    
            
poisoning.txt · Last modified: 2025/02/25 22:20 by 127.0.0.1

Exception: Git command failed to perform periodic pull: Warning: Permanently added 'github.com,140.82.113.4' (ECDSA) to the list of known hosts. From github.com:RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error: Your local changes to the following files would be overwritten by merge: doc/api/CUO.html doc/api/Gumps.html doc/api/Item.html doc/api/Items.html doc/api/Journal.html doc/api/Misc.html doc/api/Mobile.html doc/api/PacketLogger.html doc/api/PathFinding.html doc/api/Player.html doc/api/Spells.html doc/api/Target.html doc/api/Trade.html doc/api/Vendor.html Please commit your changes or stash them before you merge. Aborting

Exception: Git command failed to perform periodic pull: Warning: Permanently added 'github.com,140.82.113.4' (ECDSA) to the list of known hosts. From github.com:RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error: Your local changes to the following files would be overwritten by merge: doc/api/CUO.html doc/api/Gumps.html doc/api/Item.html doc/api/Items.html doc/api/Journal.html doc/api/Misc.html doc/api/Mobile.html doc/api/PacketLogger.html doc/api/PathFinding.html doc/api/Player.html doc/api/Spells.html doc/api/Target.html doc/api/Trade.html doc/api/Vendor.html Please commit your changes or stash them before you merge. Aborting

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the gitbacked plugin.

More info has been written to the DokuWiki error log.