Discussion in   General Discussions   started     11 years ago   September 26, 2013, 03:19:41 AM   by   Elmseeker

AssistUO Mining Script

Elmseeker
Offline
6 Posts
Topic :   AssistUO Mining Script
11 years ago  September 26, 2013, 03:19:41 AM

If the mods feel that this is in the wrong category please feel free to move it but, I figured it fit here best as the coding corner seems to be about RunUO scripts for the shard rather than for individual player use.

Code: [Select]
while weight <= 416
usetype 0xf39
  waitfortarget 1000
  targettileoffset 0 0 0
  pause 750
  if @injournal 'no metal' 'system'
    @clearjournal
    for 3
      @usetype 0x19b9
      waitfortarget 1000
      // change net line to your beetle or mobile forge ID
      target! 0x669a8
      @usetype 0x19b8
      waitfortarget 1000
      // change net line to your beetle or mobile forge ID
      target! 0x669a8
      @usetype 0x19b7
      waitfortarget 1000
      // change net line to your beetle or mobile forge ID
      target! 0x669a8
      @usetype 0x19ba
      waitfortarget 1000
      target! 0x669a8
    endfor
    usetype 0x1be8
    waitforgump 0x6abce12 1000
    replygump 0x6abce12 31
    waitforgump 0x6abce12 1000
    replygump 0x6abce12 0
    sysmsg 'No more ore here. Smelting complete!'
    stop
  endif
endwhile
for 3
  @usetype 0x19b9
  waitfortarget 1000
  // change net line to your beetle or mobile forge ID
  target! 0x669a8
  @usetype 0x19b8
  waitfortarget 1000
  // change net line to your beetle or mobile forge ID
  target! 0x669a8
  @usetype 0x19b7
  waitfortarget 1000
  // change net line to your beetle or mobile forge ID
  target! 0x669a8
  @usetype 0x19ba
  waitfortarget 1000
  // change net line to your beetle or mobile forge ID
  target! 0x669a8
endfor


What this script will does is mine the spot you are standing on, thus it is no good for mountain mining at this time. It does not walk, talk, recall, gate travel or move in any way and it never will. It will mine the spot you are standing on and when you reach the weight set at the top or the spot is empty it will smelt your ore on your fire beetle or mobile forge (please check the comments and make sure your forge or beetle are set properly). If the spot is empty it will also put all of the ingots it just smelted into your ingot keys (should you have them) and will send a system message stating that it is done. Now you must manually move o a new spot and run the macro again. As stated previously, it will NEVER walk or move in any way on it's own. I do not encourage unattented macroing and the current set up forces you to be paying attention or not mining.

Peterr
Offline
129 Posts
#1 Re :   AssistUO Mining Script
11 years ago  September 26, 2013, 05:24:11 AM

while i'm not trying to undermine your excellent work, there is a script that does what yours does - and adds visibility.
It does require easyuo, but that runs out of the box.

http://www.easyuo.com/forum/viewtopic.php?f=3&t=9555

There is also a Lumberjack radar which does exactly the same, except it chops wood :)

Elmseeker
Offline
6 Posts
#2 Re :   AssistUO Mining Script
11 years ago  September 26, 2013, 10:23:29 AM

Oh yes, I've used (and modded) cyberpope's scripts extensively and they are certainly wonderful. I wrote this one up for people who don't use EasyUO. That script does need a little modification to work here too because of the custom ore types and, for key support. I will most likely be writing up a mod for that as well. Cyber has done some amazing work on his radar's. :D

DarkSilence
Offline
189 Posts
#3 Re :   AssistUO Mining Script
11 years ago  September 26, 2013, 04:39:42 PM

Just make sure you aren't using that while afk.  Otherwise expect dark times in your future.

Elmseeker
Offline
6 Posts
#4 Re :   AssistUO Mining Script
11 years ago  September 28, 2013, 04:33:31 PM

If ya look at it you'll see that it is set up so that you can't really AFK mine with it. The only way you could possibly do it wouldn't be worth it because you'd have to sit and wait for the same spot to respawn over and over.

Domino
Offline
114 Posts
#5 Re :   AssistUO Mining Script
11 years ago  September 29, 2013, 06:49:10 PM

just modified it a bit to work specifically with a mobile forge...works beautifully btw...nice macro!

Code: [Select]
if not @findalias 'mobile forge' 
promptalias 'mobile forge'
endif
while weight <= 400
 usetype 0xf39
 waitfortarget 1000
 targettileoffset 0 0 0
 pause 750
 if @injournal 'no metal' 'system'
  @clearjournal
  for 3
   @usetype 0x19b9
   waitfortarget 1000
   target! 'mobile forge'
   @usetype 0x19b8
   waitfortarget 1000
   target! 'mobile forge'
   @usetype 0x19b7
   waitfortarget 1000
   target! 'mobile forge'
   @usetype 0x19ba
   waitfortarget 1000
   target! 0x669a8
  endfor
  usetype 0x1be8
  waitforgump 0x6abce12 1000
  replygump 0x6abce12 31
  waitforgump 0x6abce12 1000
  replygump 0x6abce12 0
  sysmsg 'No more ore here. Smelting complete!'
  stop
 endif
endwhile
for 3
 @usetype 0x19b9
 waitfortarget 1000
 target! 'mobile forge'
 @usetype 0x19b8
 waitfortarget 1000
 target! 'mobile forge'
 @usetype 0x19b7
 waitfortarget 1000
 target! 'mobile forge'
 @usetype 0x19ba
 waitfortarget 1000
 target! 'mobile forge'
endfor



Elmseeker
Offline
6 Posts
#6 Re :   AssistUO Mining Script
11 years ago  September 30, 2013, 12:04:20 AM

Nice mod. I didn't do that myself because I don't have one, I have an orcish forge and a bug and usually use the bug. ;)