Mining - kopání rudy

Základní skripty pro všeobecné využití
Odpovědět
Lara Craft
Site Admin
Příspěvky:36
Registrován:čtv bře 08, 2018 9:00 pm
Mining - kopání rudy

Příspěvek od Lara Craft » čtv bře 15, 2018 2:36 am

Budete potřebovat, pokud nejste mega bohat craft a máte skládaný krumpáč nebo náhodou fools pickaxe, hromadu obyčejných krumpáčů. Ty zvládne vyrobit každý craftsman, i úplný začátečník.
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
Skript hlídej v dole: pozůstatek z dob, kdy ještě byl v Britu důl s placeným hlídáním a vyskakovaly různé nepříjemné potvůrky jako Důlní červ, Dulni Pavouk, Earth Elemental. Je schopen upozornit i na afk kontrolu.

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
Poslední část afkalarm je zde: http://forum.laracraft.cz/viewtopic.php?f=3&t=2

Odpovědět