Kód: Vybrat vše
sub Lumberjacking_tezba_dreva()
var x = 0
var sekera = 0x0f43
While NOT UO.Dead()
IF UO.Count("0x0F43") < 1 THEN
UO.Print("ZE BYCH SI ZAPOMNEL VZIT SEKERU !?!")
RETURN 0
EndIF
uo.deletejournal()
uo.print('Vyber strom')
uo.usetype(sekera)
repeat
wait(200)
repeat
wait(200)
until uo.injournal('akce skoncila')
if UO.Injournal('You found something special') then
UO.Findtype('0x1BDD','-1','ground')
UO.Moveitem('finditem',-1,'backpack')
endif
if uo.injournal('You put the logs|You hack at') then
x = str(uo.count('0x1bdd','0x0000'))
uo.print(x)
uo.deletejournal()
uo.waittargettile('lasttile')
uo.usetype(sekera)
endif
until uo.injournal('There are no logs|of a way')
uo.print('Doslo drevo! Jdi na jiny strom.')
wait(1000)
wend
end sub