Author Topic: Advanced PvP AutoHeal (Pots/Trap Box/Apples/Petals)  (Read 3821 times)

0 Members and 2 Guests are viewing this topic.

Offline OfficerDoofyTopic starter

  • Newbie
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 1
  • OfficerDoofy has no influence.
  • Referrals: 0
    • View Profile
Advanced PvP AutoHeal (Pots/Trap Box/Apples/Petals)
« on: February 04, 2025, 01:43:59 PM »


FOR USE WITH ORION CLIENT
(i may port to ClassicUO in the near future)
=================
MAIN GUMP - Setup Gump
=================
• Chug - Heal
Automatically drinks a Heal Potion when your health drops below a chosen percentage.

• Chug - Refresh
Automatically drinks a Refresh Potion when your stamina falls below a chosen threshold.

• Use Trapped Box
Uses a Trapped Box to break paralysis if your health is above the specified percentage. (Prevents self-harm if you’re too low on health.)

• Chug Cure Potions
Instantly drinks a Cure Potion upon detecting poison.

• Auto Bandages
Applies bandages when ever your health is below 99%

• Enchanted Apples
Consumes an Apple to remove curses like Mortal Wound, Strangle, or Necromancy effects. Handles a short cooldown automatically.

• Orange Petals
Consumes a Petal every few minutes to maintain poison immunity (particularly helpful in PvP).

• Auto Rearm
Re-equips your weapon if you disarm it to drink a potion or an opponent disarms you in combat.

• Auto Remount
Automatically mounts In cases where you have been dismounted by enemy -  Not if you get of mount naturally.

• 2-Handed Chug
Temporarily unequips your 2H weapon to drink a potion, then re-equips it immediately after.

• Manual “Set” Buttons
Lets you manually assign potions, boxes, apples, etc. if the script’s auto-detection doesn’t find them.

=======================
INFO GUMP - Runtime
=======================
• Feature Status Indicators
Color-coded display (green/yellow/red) showing which features are running and if their items are found in your backpack.

• PvP / PvE Mode Toggle
PvP Mode uses higher thresholds for potions and more frequent use of items like Orange Petals.
PvE Mode lowers or disables certain features (to save resources), only using them when absolutely necessary.

• Restore Main Gump
Re-opens the full interface so you can adjust thresholds, enable/disable features, or reassign items.

=======
BACK END
=======
• Item Auto-Assignment

On script start, automatically searches for potions, bandages, petals, etc. in your backpack.

• Intelligent Weapon Management - Consistently checks weapon in hand and keeps script functions updated to with appropriate ItemID so related functions will always work even in cases where weapon was switched  -  1 second updates
Remembers your equipped weapon’s serial number to auto-rearm after potion use or disarm events.

• Loop Management & Checks
Separate loops to continually monitor health, stamina, poison, curses, and paralysis, reacting immediately as needed.

• Safe-Checks
Prevents accidental self-harm with the Trapped Box (if health is too low), respects potion cooldown timers, and avoids actions when you’re incapacitated.

UPDATE 2/6/25
New Features:
-PvP / PvE toggle 
     PVE - Will not consume apples /petals/ cures / refresh pots in PVE mode.  Chug Heals set to 20% For emergency use only.
     PVP - Default - Reverts to the Settings applied at script start
- 2 Handed - Non Balanced weapon chug
    Disarms - Chugs Potion - Rearms weapon
- Auto Detection
     Updated auto detect to loop while in runtime this will keep all the info gump up todate on status of all scripts and enhance features such as rearm and
     2 handed potion chuging since we now actively monitor and keep track of items and weapons.  This the Also removes the need to return to main gump
     and re setup the scripts after death Since we now detect, auto assign, Update and resume script once required items are acquired again by player. 
     This also improves the information gump as features will turn yellow when a player runs out of a item keeping the player informed in real time.
Bug Fix:
- Trap Box item tracking fixed - When Pressing start script clears all old Global and Shared variables before setting new.   This was problematic for items
     that cannot "Practically" be auto detected.  Specifically Trapped Box,  This has been fixed.   Trapped box and auto remount now function as intended.
-  AI optimization Code cleanup
     AI has taught me I suck at this.   Cleaned up, Organized and optimized my shitty work.   

Although Self explanatory - Instructions.txt provided.



There are 2 attachment(s) in this post. You must register and post an acceptable introduction to download
HowToUse.txt
PublicMetaHeal.oajs
« Last Edit: February 06, 2025, 06:17:15 PM by OfficerDoofy »

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 3135
  • Activity:
    0.4%
  • Reputation Power: 42
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Referrals: 2
    • View Profile
Re: Advanced PvP AutoHeal (Pots/Trap Box/Apples/Petals)
« Reply #1 on: February 06, 2025, 02:58:27 AM »
  Looks awesome! Is this for Orion or ClassicUO?

Offline OfficerDoofyTopic starter

  • Newbie
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 1
  • OfficerDoofy has no influence.
  • Referrals: 0
    • View Profile
Re: Advanced PvP AutoHeal (Pots/Trap Box/Apples/Petals)
« Reply #2 on: February 06, 2025, 02:53:07 PM »
This is Orion

Offline icloud70

  • Restricted
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 1
  • icloud70 has no influence.
  • Referrals: 0
    • View Profile
Re: Advanced PvP AutoHeal (Pots/Trap Box/Apples/Petals)
« Reply #3 on: February 07, 2025, 04:19:48 PM »
i wish to download

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 3135
  • Activity:
    0.4%
  • Reputation Power: 42
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Referrals: 2
    • View Profile
Re: Advanced PvP AutoHeal (Pots/Trap Box/Apples/Petals)
« Reply #4 on: February 07, 2025, 06:55:50 PM »
i wish to download

Hello! If you are curious about this script, I would suggest going to the new member section. Read the stickied "good intros" and then make your own "good intro" so you can have your restricted access removed.

Offline kallenuo

  • Newbie
  • *
  • Posts: 2
  • Activity:
    0%
  • Reputation Power: 1
  • kallenuo has no influence.
  • Referrals: 0
    • View Profile
Re: Advanced PvP AutoHeal (Pots/Trap Box/Apples/Petals)
« Reply #5 on: February 17, 2025, 02:00:53 PM »
So far it works really well. Please bare with me as I'm not a coder at all. The struggle I'm having is if I get off my mount and give it an all kill command while an auto heal function is activated it selects me for the mount to attack. Is there a way for the function to check if there is a waiting pet command?
« Last Edit: February 17, 2025, 04:01:35 PM by kallenuo »

Offline babayka

  • Restricted
  • *
  • Posts: 1
  • Activity:
    0%
  • Reputation Power: 1
  • babayka has no influence.
  • Referrals: 0
    • View Profile
Re: Advanced PvP AutoHeal (Pots/Trap Box/Apples/Petals)
« Reply #6 on: February 21, 2025, 01:54:56 PM »
nice bro !

Offline OfficerDoofyTopic starter

  • Newbie
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 1
  • OfficerDoofy has no influence.
  • Referrals: 0
    • View Profile
Re: Advanced PvP AutoHeal (Pots/Trap Box/Apples/Petals)
« Reply #7 on: February 23, 2025, 12:32:57 AM »
So far it works really well. Please bare with me as I'm not a coder at all. The struggle I'm having is if I get off my mount and give it an all kill command while an auto heal function is activated it selects me for the mount to attack. Is there a way for the function to check if there is a waiting pet command?

Ill take a look at it later this evening.  I think i can fix that pretty easily.

Tags: