//Check if there is a hatchet in hand and equip one if any in pack.
if not findobject 'lefthand'
if @findtype 0xf43 'any' 'backpack'
equipitem 'found' 2
else
sysmsg 'You have run out of hatchets!' 24
endif
endif
//While there is still wood to cut, cut wood
while not @injournal 'enough wood'
useobject 'lefthand'
waitfortarget 2500
targettileoffset 0 -1 0
pause 3050
//Check if there is still a hatchet equipped, in case it broke get another
if not findobject 'lefthand'
if @findtype 0xf43 'any' 'backpack'
equipitem 'found' 2
else
sysmsg 'You have run out of hatchets!' 24
endif
endif
endwhile
@clearjournal
//Cut logs into boards.
if @findtype '0x1bdd' 'any' 'backpack'
useobject 'lefthand'
waitfortarget 15000
target 'found'
endif
stop
Please reply to me: in-game: [pm Matrix discord id: Matrixre (Only checking the forums monthly) (All prices can be change, ED to Gold to ED)
//you may need to edit mana on line two !
while not dead
if mana < 60
useskill 'meditation'
while not mana == maxmana
endwhile
endif
//Set Goal
if skill 'Magery' == 100
stop
endif
if skill 'Magery' >= 30 and skill 'Magery' < 50
cast 'Bless' 'self'
endif
if skill 'Magery' >= 50 and skill 'Magery' < 70
cast 'Magic Reflection'
endif
if skill 'Magery' >= 70 and skill 'Magery' < 90
cast 'Mass Dispel' 'self'
endif
if skill 'Magery' >= 90 and skill 'Magery' < 100
cast 'earthquake'
endif
pause '2500'
endwhile
Please reply to me: in-game: [pm Matrix discord id: Matrixre (Only checking the forums monthly) (All prices can be change, ED to Gold to ED)
//This checks health to make sure you don't die
while not dead
if mana < 80
useskill 'meditation'
while not mana == maxmana
endwhile
endif
if hits < 30
pause 7000
while not hits == maxhits
endwhile
endif
//Set Goal
if skill 'Magery' == 100
stop
endif
if skill 'Magery' >= 30 and skill 'Magery' < 50
cast 'Bless' 'self'
endif
if skill 'Magery' >= 50 and skill 'Magery' < 62.9
cast 'Lightning' 'self'
endif
if skill 'Magery' >= 62.9 and skill 'Magery' < 82.9
cast 'Energy Bolt' 'self'
endif
if skill 'Magery' >= 82.9 and skill 'Magery' < 100
cast 'Flame Strike'
endif
pause '2700'
endwhile
Please reply to me: in-game: [pm Matrix discord id: Matrixre (Only checking the forums monthly) (All prices can be change, ED to Gold to ED)
//More Info: http://www.uoforum.com/threads/meta-mage-trainer.68429/
//create timers
if not timerexists 'Focus'
createtimer 'Focus'
settimer 'Focus' 60000
endif
if not timerexists 'Vivify'
createtimer 'Vivify'
settimer 'Vivify' 60000
endif
if not timerexists 'Shadow'
createtimer 'Shadow'
settimer 'Shadow' 60000
endif
//meditate if mana low
clearjournal
if mana < 10
useskill 'meditation'
while mana < 80
pause 1000
endwhile
endif
//start magic arrow loop
while timer 'Shadow' >= 42000
//timer 'Focus' >= 47000 or
clearjournal
//if out of ash, skip this part
if not @findtype 0xf8c 'any' 'backpack'
break
endif
//get the enemy and cast magic arrow
getenemy 'criminal' 'enemy' 'gray'
cast 'magic arrow'
target enemy
pause 2500
//if relics are down, wait
if @injournal 'rest''system'
pause 60000
break
endif
//if relics proc, reset their timer
if @injournal 'Focus: Activated.' 'system'
settimer 'Focus' 0
endif
if @injournal 'Shadow Disciple: Activated.' 'system'
settimer 'Shadow' 0
endif
endwhile
//start vivify loop (need mandrake root to run this part)
//check for mandrake root
if @findtype 0xf86 'any' 'backpack'
while timer 'Vivify' >= 50000
clearjournal
//meditate if < 50 mana
if mana < 50
useskill 'meditation'
while mana < 90
pause 1000
endwhile
endif
//use daemon scrolls if you have them, else use regs
if @findtype 0x1f69 'any' 'backpack'
usetype 0x1f69 any 'backpack'
else
cast "Summon Daemon"
endif
pause 4000
//release the daemon if found
if @findtype 0xa 'any' 'ground' 1 2
@setalias 'daemon' 'found'
waitforcontext 'daemon' 5 15000
pause 1000
endif
//reset Vivify timer if it procs
if @injournal 'Vivify: Activated.' 'system'
settimer 'Vivify' 0
endif
clearjournal
if not @findtype 0xf86 'any' 'backpack'
break
endif
endwhile
endif
Please reply to me: in-game: [pm Matrix discord id: Matrixre (Only checking the forums monthly) (All prices can be change, ED to Gold to ED)
////////////////////////////////////
// This macro is designed for //
// training musicianship from 0. //
// This macro uses lap harps. //
// //
// Turn on loop and click play! //
// //
// ~~Made by kdivers~~ //
////////////////////////////////////
if not @findtype 0xeb2 0x0 'backpack'
headmsg 'Get more lap harps!'
stop
endif
if skill 'musicianship' < 100
usetype 0xeb2 0x0 'backpack'
pause 11000
else
headmsg 'Musicianship complete!'
stop
endif
Please reply to me: in-game: [pm Matrix discord id: Matrixre (Only checking the forums monthly) (All prices can be change, ED to Gold to ED)
Two questions:
1) Do you have any example how to properly test if given item has attribute?
like weapon or armor and characteristic resistance or increase intelligence ..
or if crafting deed is Standard/exceptional or what kind of material it is. After first 1k of BOD manual sorting is very boring.
2) is there any way to find serial of "item that I hold in right hand"?
I would like to make generic code like potion drinking put down current weapon, quaf potion, pick up "the same weapon that you put down"
I have separate key binding to reconfigure weapon set #1, set #2 ... so I cannot hard code serials.
the only idea would be put item from right hand in designated container, then find that item in specific container and wield.