Page 1 of 1

[EasyUO]Hotkey Greater Strength - Keg-Inator!

Posted: Wed Mar 19, 2014 10:56 pm
by Yoda
I have enhance pots and like greater strength potions
I hate disarming my shield to drink and rearming my shield (since I use all 1 handed weaps)

this script could easily be converted for 2 handed weapon operation and be way more sophisticated..
but anything I write tends to be the commandoslash method

to configure this script edit the 3 commented lines to reflect your situation, and have a full bottle of greater strength in your main backpack (just one) & a keg of greater strength in a bag of holding, or subcontainer

then hit shift+f8 to use it

Code: Select all

;Keg-Inator v0.66 - Lovingly Hacked together with paperclips and sticky tape by Yoda
;I apologize as always for horrible psychological scarring from reading what is likely clumsy smashmouth scripting

set %shield  AZQYKQD  ; Set the id of your weapon

HotKeyLoop:
OnHotKey f8 shift
gosub GreaterSTR
GOTO HotKeyLoop

sub GreaterSTR
{
    {


      set #rhandid %shield
      event macro 24 1
      wait 40
      event macro 1 0 Potion I Need!
      FINDITEM XUF C_YKPWYQD
      set #lObjectID #findid
      event macro 17 0
      wait 1s
      set #rhandid %shield
      event macro 24 1
      wait 40
      wait 2s
      set #lObjectID STPYLSD ; Bag Of Holding Or Subcontainer containing Greater Strength Keg
      event macro 17 0
      wait 1s
      set #lObjectID ACFATQD ; Id Of Greater Strength Keg
      event macro 17 0
          }
   return True
}
return False