uosteam if system message macro

hiraku

Apprentice
hey can anyone tell me where i'm wrong with the line

if injournal 'text' 'system' 'That is too far away.'


thanks
 

Bunnky

Grandmaster
Off the top of my head, I think the line is
Code:
if injournal 'That is too far away' 'system'
I could be wrong though, I can't look atm, on my phone.

Sent from my LGMS323 using Tapatalk
 

halygon

Grandmaster
Yeah 'system' should be the last item on that line.

Here is a tip: If in UOSteam you ever wonder what the correct format for a function is, start typing the function on a new line and the default syntax will automatically appear -- just hit enter when it does and it will put it in the code. I use this as a reference and then delete that line when i am done.
 

Expunge

Novice
What sort of things get posted in 'system'? Every macro I've tried to write using injournal doesn't seem to pick it up. For instance, I'm trying to write a simple mining macro to mine a spot until it's empty, but I just can't get it to work.

Code:
if not @injournal 'no metal' 'system'
   if usetype '0xe86' 0 'backpack'
      targettilerelative 'self' 1
   else
      headmsg 'Out of picks!'
      stop
   endif
else
   headmsg 'No ore remaining''   
   stop
endif
 

Bunnky

Grandmaster
You could try:
Code:
if @injournal 'there is no metal' 'system'
    headmsg 'No ore remaining'
    stop
endif
if @findtype 0xe86 'any' 'backpack' or @findtype 0xf39 'any' 'backpack'
    useobject 'found'
    waitfortarget 500
    targettileoffset 1 0 0
    pause 1000
else
    headmsg 'No digging tools!'
    stop
endif

I just pulled the graphic IDs from in game, and I havent tested it. If it doesn't work, Ill make it work, and edit this.

Edit: some edits.
 

Expunge

Novice
You could try:
Code:
if @injournal 'there is no metal' 'system'
    headmsg 'No ore remaining'
    stop
endif
if @findtype 0xe86 'any' 'backpack' or @findtype 0xf39 'any' 'backpack'
    useobject 'found'
    waitfortarget 500
    targettileoffset 1 0 0
    pause 1000
else
    headmsg 'No digging tools!'
    stop
endif

I just pulled the graphic IDs from in game, and I havent tested it. If it doesn't work, Ill make it work, and edit this.

Edit: some edits.
the pickaxe part works fine. The macro just doesn't stop when the vein is empty. That's my whole problem.
 

Experience

Grandmaster
this version works or me

if @injournal 'no metal' 'system'
headmsg 'Time to Move'
pause 2000
@clearjournal
endif
if @findtype '0xf39' 'any' 'backpack' 'any' '2' or @findtype '0xe86' 'any' 'backpack' 'any' '2'
useobject 'found'
waitfortarget 5000
targettileoffset 1 0 0
pause 1000
else
headmsg 'No more tools'
stop
endif
 

Experience

Grandmaster
What's the difference between regular journal messages and system messages? Is there a list of what 'system' messages are somewhere?
System messages are any message the game gives you "there is no metal' "you are overweight" "your fingers slip" 'you finish applying" "you lack the mana" so on and so forth..etc etc..
 
Top