Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Razor: The Cutting Edge UO Assistant

Razor: The Cutting Edge UO Assistant Razor is an Assistant program (similar to the popular UOAssist) for player run Ultima Online shards.

Reply
 
Thread Tools Display Modes
Old 12-08-2005, 05:18 PM   #1 (permalink)
Forum Newbie
 
Join Date: Dec 2005
Posts: 65
Lightbulb add closers to the If command

there should be a "then" command or something of the sort. in the macro's i make, i have to create tons of pieces just because there is no then command. for example, if my character is over 385 stones, i make it run to a smelt pot, smelt the ore, and then bank it. BUT after that if{jsdhka} statement is done, it goes right back to the beginning of the macro, and not to the next part below it. I end up having to execute another macro to continue from that spot copied and pasted into a .macro folder...which is a hassle. can't you make a "then" command or something that will continue running the macro after the 'if' is done running? it'd be a big help to a lot of us, im sure.
Wario is offline   Reply With Quote
Old 12-08-2005, 06:57 PM   #2 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
Default

I think you want an "End If"

so you have

Code:
If something
do some stuff
End If
do other stuff
If you leave out the "End If" then razor assumes you ment for the End If to be at the very end of your macro.
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 12-09-2005, 07:33 AM   #3 (permalink)
Forum Newbie
 
Join Date: Dec 2005
Posts: 65
Default

No, i do not want it to end. heres an example.

use item in hand
absolute target
if hits < 99
call guards
and
use item in hand
absolute target
use item in hand
absolute target



something like that.
Wario is offline   Reply With Quote
Old 12-09-2005, 12:48 PM   #4 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
Default

I don't understand....

You know you can have multiple lines between If and End If right?
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 12-09-2005, 09:33 PM   #5 (permalink)
Forum Newbie
 
Join Date: Dec 2005
Posts: 65
Default

Quote:
Originally Posted by Zippy
I don't understand....

You know you can have multiple lines between If and End If right?
i didn't mean closers. I made the title wrong and then couldnt edit it! :-O

i don't want it to end. i want it to keep going after it finds that the if statement is true. i meant closers to the instance of "if".

use item in hand
target a tree
(if weight > 385
double click saw
cut wood
close gump
AND THEN)
use item in hand
chop the next tree
walk east
walk east
walk east
walk east
walk east
use item in hand
chop this tree
(if weight > 385
double click saw
cut wood
close gump
AND THEN)

instead of it going back to the beginning if the macro is looped or ending if the macro is not with
(if weight > 385
double click saw
cut wood
close gump
ELSE)
or am i doing this wrong?

the if will only be used for weight checks etc, and i dont want something else to loop inside the if. doing it that way would make the macros even longer. i want there to be many ifs in a macro, but have it keep going once the if is executed, if it is. lol
Wario is offline   Reply With Quote
Old 12-10-2005, 04:21 PM   #6 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,868
Default

use item in hand
target a tree
if weight > 385
double click saw
cut wood
close gump
end if
use item in hand
chop the next tree
walk east
walk east
walk east
walk east
walk east
use item in hand
chop this tree

I believe that is what you want.
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5