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 10-16-2005, 11:55 PM   #1 (permalink)
 
Join Date: Oct 2005
Posts: 2
Default About macro

hello everyone!
i want to ask you to tell me what exactly this macro funcions do, else, end if, for loop, end for.
thx a lot to everyone
bye
Fertakao is offline   Reply With Quote
Old 10-17-2005, 04:07 AM   #2 (permalink)
Forum Expert
 
Lysdexic's Avatar
 
Join Date: Oct 2003
Location: Minnesota... somewhere in the boonies
Age: 29
Posts: 1,171
Default

The if and end if are used for if a certain condition occurs, then the script continues through, if not, then it jumps down to end if. For instance, you can make a macro that goes like this:

Code:
if mana <= 10
use skill meditation
endif
Say Macro is done
Now, if you use this macro and your mana is less than 11, you will meditate, then say "Macro is done". If your mana is higher than 10, you will just say "Macro is done"


The for and end for create a loop, so if you make a macro that does this:
Code:
for 5 times
Say ugh
end for
say all done
Now this macro will say "ugh" 5 times, then it will finally say "all done".


The else is used to do something else if the IF conditional isn't met:

Code:
if mana <= 10
use skill meditation
else
Say I don't need to
end if
This time, if your mana is less than 11, you will meditate, but you won't say anything. If your mana is higher than 10, you won't meditate, but you will say "I don't need to"


Hope that covers it for ya.
__________________
Signatures are tools of the devil...
Lysdexic is offline   Reply With Quote
Old 10-17-2005, 10:34 PM   #3 (permalink)
 
Join Date: Oct 2005
Posts: 2
Default

thx a lot man
Fertakao 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