Cure / Heal Pot Chugger

amonseti

Grandmaster
Simple Macro that will unequip current weapon, Check if poisoned and attempt to cure . otherwise it will chug a heal pot.

Dont forget to set a hotkey to fire this macro



Code:
// $$$$$$$$ Cure Heal Pot Chugger $$$$$$$$
// $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
// ?? By Amonseti
// ?? V2.1
// ???????????????????????????????????????
// ?? This macro only requires that there
// ?? be Cure and / or Heal pots in the
// ?? Main pack or any bag in the main.
// ??
// ?? Macro will first check if you are
// ?? holding a weapon and clear your hands
// ?? to allow for pot chuggins. It will
// ?? then do a check to see if you are
// ?? Poisoned and attempt to cure it.
// ?? with a cure pot. other wise it will
// ?? chug a heal pot.
// ??
// ?? When done the macro will automatically
// ?? re-equip the weapon you were using..
// ??
// ???????????????????????????????????????
// !! Check if holding a weapon !!
if @findlayer 'self' 2
  // !! Unequip wep
  togglehands 'left'
  pause 600
  //
  // !! Check poison state
  if poisoned 'self'
    // !! Player is poisoned: Cure it
    if @findtype 0xf07 0 'backpack'
      @setalias 'Potion' 'found'
      useobject! 'Potion'
    else
      headmsg 'OUT!!! of Cure potions'
    endif
  else
    // !! Not poisoned: Heal wounds
    if @findtype 0xf0c 0 'backpack'
      @setalias 'Potion' 'found'
      useobject! 'Potion'
    else
      headmsg 'OUT!!! of Heal potions'
    endif
  endif
  //
  pause 600
  // !! Re-Equip Weapon player was holding
  togglehands 'left'
else
  // !! Check poison state
  if poisoned 'self'
    // !! Player is poisoned: Cure it
    if @findtype 0xf07 0 'backpack'
      @setalias 'Potion' 'found'
      useobject! 'Potion'
    else
      headmsg 'OUT!!! of Cure potions'
    endif
  else
    // !! Not poisoned: Heal wounds
    if @findtype 0xf0c 0 'backpack'
      @setalias 'Potion' 'found'
      useobject! 'Potion'
    else
      headmsg 'OUT!!! of Heal potions'
    endif
  endif
endif
// !! Enjoy !!
 

GriefedYaBish

Grandmaster
How is it auto .. it requires you to invoke it , using a hot key ..

its a one button hot key that

-removes your weapon
-drinks a cure pot if poisoned
-drinks a heal pot if needed
-reequips your weapon

Its not you doing these things, its a script. Don't be so naive.




ps
  • Player VS Player Rules:
  • Players may not use any automation scripts while pvping or in any game setting. This includes; Potion throwing, auto potion usage, auto trap pouch usage and more.... No automation will be tolerated!
 

amonseti

Grandmaster
its a one button hot key that

-removes your weapon
-drinks a cure pot if poisoned
-drinks a heal pot if needed
-reequips your weapon

Its not you doing these things, its a script. Don't be so naive.




ps
  • Player VS Player Rules:
  • Players may not use any automation scripts while pvping or in any game setting. This includes; Potion throwing, auto potion usage, auto trap pouch usage and more.... No automation will be tolerated!
Yeaaah your wrong thats not what they mean .. This macro is perfactly legal and is not "automated" .. automated is when there is logic to fire on its own, with out the player ever having to do anything ... infact you can actually make a similar macro directly in uo it self ..

@eppy @Shane @Adam @halygon can confirm this as im fairly confident this is perfactly legal.
 

halygon

Grandmaster
Yeaaah your wrong thats not what they mean .. This macro is perfactly legal and is not "automated" .. automated is when there is logic to fire on its own, with out the player ever having to do anything ... infact you can actually make a similar macro directly in uo it self ..

@eppy @Shane @Adam @halygon can confirm this as im fairly confident this is perfactly legal.
Your understanding is correct. The intent of the rule is to prevent robot-like pot drinking automatically. Not to prevent someone from disarming prior to drinking a pot.
 

Harry Berries

Grandmaster
its a one button hot key that

-removes your weapon
-drinks a cure pot if poisoned
-drinks a heal pot if needed
-reequips your weapon

Its not you doing these things, its a script. Don't be so naive.




ps
  • Player VS Player Rules:
  • Players may not use any automation scripts while pvping or in any game setting. This includes; Potion throwing, auto potion usage, auto trap pouch usage and more.... No automation will be tolerated!
Scrub haha. Get owned by @amonseti
 

Mango

Grandmaster
All these scripts you've been sharing really makes me feel like i've been missing out these last few years. :p
 

Young Star

Grandmaster
Your understanding is correct. The intent of the rule is to prevent robot-like pot drinking automatically. Not to prevent someone from disarming prior to drinking a pot.
The server negotiations shouldn't prevent Steam from doing a check hands before drinking. Currently that option is defaulted on instead of being deactivated like other options that are turned off with the server negotiations. When the option is left checked and you try to drink a pot with the pre-made UOsteam potion hotkeys while your hands are full it spams "check hands is not allowed". The real problem is that it will keep trying to drink the potion over and over which has a side effect of not letting your character move in game until you disarm a weapon to let it finish.

I am not sure how that option actually works if it was allowed but that is the one thing that I have told several new to steam to make sure to turn that check box off. From what I can tell that feature basically is the same as a disarm+drink macro.
 

halygon

Grandmaster
The server negotiations shouldn't prevent Steam from doing a check hands before drinking. Currently that option is defaulted on instead of being deactivated like other options that are turned off with the server negotiations. When the option is left checked and you try to drink a pot with the pre-made UOsteam potion hotkeys while your hands are full it spams "check hands is not allowed". The real problem is that it will keep trying to drink the potion over and over which has a side effect of not letting your character move in game until you disarm a weapon to let it finish.

I am not sure how that option actually works if it was allowed but that is the one thing that I have told several new to steam to make sure to turn that check box off. From what I can tell that feature basically is the same as a disarm+drink macro.
That negotiation is to prevent Steam from auto-unequiping and re-equiping something in the hands when trying to drink a potion. It is working as expected. You will get a similar error if you try to drink a potion manually with your hands full.
 

Young Star

Grandmaster
That negotiation is to prevent Steam from auto-unequiping and re-equiping something in the hands when trying to drink a potion. It is working as expected. You will get a similar error if you try to drink a potion manually with your hands full.
I understand but with the option not deactivated it glitches out steam because it never stops trying to drink the pot and ignores any other commands until you uneqip something. I am not sure if it is possible with how steam controls negotiated features but that check box should be greyed out or at least defaulted off.
 

thestand

Grandmaster
That negotiation is to prevent Steam from auto-unequiping and re-equiping something in the hands when trying to drink a potion. It is working as expected. You will get a similar error if you try to drink a potion manually with your hands full.
Isn't this macro a work around for the disabled feature? If so, why have the option disabled?
 

PekatronIII

Grandmaster
lfinger.png
Good question
mhu.png
Why?
 

Cheapsuit

Master
Your understanding is correct. The intent of the rule is to prevent robot-like pot drinking automatically. Not to prevent someone from disarming prior to drinking a pot.

Then why is this feature disabled in razor, Sir?

Edit: Sorry just saw someone already asked this question...but can we get this enabled in razor please? Since it's allowed.
 

halygon

Grandmaster
Then why is this feature disabled in razor, Sir?

Edit: Sorry just saw someone already asked this question...but can we get this enabled in razor please? Since it's allowed.
It's disabled in both Razor and UOSteam. Disarming must be done manually.
 
Top