Author Topic: Explosion Pot Macro  (Read 2391 times)

0 Members and 1 Guest are viewing this topic.

Offline the surfaceTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Activity:
    0%
  • Reputation Power: 1
  • the surface has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Explosion Pot Macro
« on: September 05, 2023, 09:46:48 AM »
0
Hello ScriptUO!

One of the things I wanted to create was an explosion potion macro that arms the explosion potion -> Waits 1-2 seconds and tosses it near the last moment at the last known target. Also possible if pressing the hotkey once armed that it throws the explosion pot to the last target. If the last known target is unavailable within a certain amount of tiles or thus not on screen that it throws it 2 tiles away in either direction away from your character to prevent damage.

Please Note -- This is a work in progress and not finished.


set %explopot TUF

while #true
{
onhotkey 3
   gosub ChuckExplo
}

sub ChuckExplo
finditem %explopot C_ , #backpackid
if #findcnt < 1
   return
set #lobjectid #findid
event macro 17 0
target 3s
wait 70
finditem #ltargetid 3853
if #findcnt < 1
   {
   set #ltargetx #charposx - 3
   set #ltargety #charposy - 3
   set #ltargetz #charposz
   set #ltargetkind 2
   event macro 22 0
   }
return
« Last Edit: September 05, 2023, 09:57:19 AM by the surface »

Tags: