Page 1 of 1

Need a script for Mining

Posted: 2014-03-31 22:53:20
by InjFan
Around 8 years ago i have and injection script who mine around me with a grid similar to this
00000
00x00
00000
(me are the x)
with no move, no catchbag, no reccal, nothig. only mine in a matrix like that.

One time i activate the script in my house for error, and i see the script "work" my pg start mining and collect ore... and i can do this in every part of the world... someone have a script like that?

Re: Need a script for Mining

Posted: 2014-03-31 23:37:54
by Incorrect User

Code: Select all

sub Mining()
	var waittime, x, y, msg = "ore in your|ores in your|too far away|loosen some rocks|no ore here|have no line|mining in rock"
	for x = -2 to 2
		for y = -2 to 2
			repeat
				uo.deletejournal(msg)
				uo.waittargettile(-1, uo.getx() + x, uo.gety() + y, uo.getz())
				uo.usetype("0x0E85")
				waittime = uo.timer() + 150
				repeat
					wait(100)
				until uo.dead() or uo.injournal(msg) or uo.timer() > waittime
			until uo.dead() or uo.injournal("too far away|no ore here|have no line|mining in rock")
		next
	next
end sub