Reply To: Stealing Macro?

General Macro Help Stealing Macro? Reply To: Stealing Macro?

#572
Nagash
Administrator

      There are some EasyUO macro’s that do this. It will require some reading about EasyUO and some basic knowledge about scripting.

      Here is a part of a stealing/sell script macro written by someone on this shard to give you a general idea on how an EasyUO script works (this script won’t work as is).
      ; Equip gloves and stand next to the victim

      set %steal_cd 10s

      ; Main Loop
      main:
      set %alternate 0
      msg sell$
      gosub init_targets
      event macro 8 7 ;open backpack, to close other bags
      wait 20
      set %last_talk #scnt
      loop:
      set %silence_time #scnt – %last_talk
      if %silence_time > 17
      {
      if %alternate = 0
      {
      msg buy$
      set %alternate 1
      }
      else
      {
      msg sell$
      set %alternate 0
      }
      set %last_talk #scnt
      }
      gosub Snoop

      if %success = #true
      {
      event sysmessage Snoop success, stealing.
      gosub Steal
      }
      goto loop

      sub init_targets
      Set #TARGCURS 1
      Display Please target victim.
      While #TARGCURS = 1
      {
      Wait 0
      }
      Set %VicID #LTARGETID

      finditem KKH c_ , #CHARID

      if #FINDCNT > 0
      {
      set %GloveID #FINDID
      set %GloveType #FINDTYPE
      }
      else
      {
      display Equip thief’s gloves and try again.
      halt
      }
      return