Jedná se o mírně vylepšený skript, kerý původně napsal hráč Wizzy.
Hlavní část:
Kód: Vybrat vše
##################
# mining by wizzy
##################
#---------------------------------------------------------------
sub mining()
#---------------------------------------------------------------
UO.Exec('terminate hlidejvdole')
UO.Exec('terminate afkalarm')
UO.Exec('exec afkalarm')
UO.Exec('exec hlidejvdole')
uo.print('Spoustim kopani')
var mx,my,mz
while not uo.dead()
uo.deletejournal()
mx = UO.GetX('self')
my = UO.GetY('self')
mz = UO.GetZ('self')
repeat
uo.deletejournal()
uo.waittargettile('0',mx,my,mz)
#UO.usetype('0x0F39')
UO.usetype('0x0E85')
repeat
wait(200)
until uo.injournal('You put|You loosen|There is no|Try mining|akce skoncila|nemuzes')
wait(2000)
if uo.injournal('nemuzes') then
wait(3000)
endif
until uo.injournal('There is no|Try mining|at your feet')
vyhaz2(0)
if uo.injournal('at your feet|Try mining') then
uo.PlayWav('C:\Windows\media\Windows - cink.wav')
#return
endif
wait(2000)
uo.print('Neni ruda')
vyhaz2(0)
vyhaz2(1)
if not go(uo.getx('self')-1,uo.gety('self')) then
while go(uo.getx('self')+1,uo.gety('self'))
wait(100)
wend
while not go(uo.getx('self'),uo.gety('self')+1)
go(uo.getx('self')-1,uo.gety('self'))
wait(100)
wend
while go(uo.getx('self')+1,uo.gety('self'))
wait(100)
wend
endif
wait(3000)
wend
end sub
Kód: Vybrat vše
##################
# mining by wizzy
##################
#---------------------------------------------------------------
sub mining()
#---------------------------------------------------------------
UO.Exec('terminate hlidejvdole')
UO.Exec('terminate afkalarm')
UO.Exec('exec afkalarm')
UO.Exec('exec hlidejvdole')
uo.print('Spoustim kopani')
var mx,my,mz
while not uo.dead()
uo.deletejournal()
mx = UO.GetX('self')
my = UO.GetY('self')
mz = UO.GetZ('self')
repeat
uo.deletejournal()
uo.waittargettile('0',mx,my,mz)
#UO.usetype('0x0F39')
UO.usetype('0x0E85')
repeat
wait(200)
until uo.injournal('You put|You loosen|There is no|Try mining|akce skoncila|nemuzes')
wait(2000)
if uo.injournal('nemuzes') then
wait(3000)
endif
until uo.injournal('There is no|Try mining|at your feet')
vyhaz2(0)
if uo.injournal('at your feet|Try mining') then
uo.PlayWav('C:\Windows\media\Windows - cink.wav')
#return
endif
wait(2000)
uo.print('Neni ruda')
vyhaz2(0)
vyhaz2(1)
if not go(uo.getx('self')-1,uo.gety('self')) then
while go(uo.getx('self')+1,uo.gety('self'))
wait(100)
wend
while not go(uo.getx('self'),uo.gety('self')+1)
go(uo.getx('self')-1,uo.gety('self'))
wait(100)
wend
while go(uo.getx('self')+1,uo.gety('self'))
wait(100)
wend
endif
wait(3000)
wend
end sub