How to use UseCustomRoutines

bob_the_builder

Well-Known Member
Found the UseCustomRoutines files in Class Routines directory. WOW looks great can't wait to try these instead of manually editing all my class files everytime there are updates from 'the masters'.

But have some questions. If I add switch actions into the customized files do they occur after or before the actions in the main file.

So in my main class file I already have Action[1] and Action[2] etc..

If I add Action to my customized class files do they start at [1] or after the last numbered in the class file (in my example would they start at [3]?

If they both start with [1] which one happens first, the class file or the customized file?

Same question regarding the combat and have_aggro. Do the customized file paramters occur after the class files or before?

Thx, Bob
 

Amadeus

The Maestro
Staff member
The custom things will happen after the main class file. So, if the class file has 1-14, then the custom one will be like 15 to whatever. It is simply a continuation of what was in the class file.
 

bob_the_builder

Well-Known Member
The custom things will happen after the main class file. So, if the class file has 1-14, then the custom one will be like 15 to whatever. It is simply a continuation of what was in the class file.
So I make the customized one start at 15 or at 1 ?

And thanks for the quick reply, and I can just add in more functions in the customized class file and still call those from within the class file or the customized file. Like adding in a custom refresh power?

Just thinking I want to move all of my custimizations into these files.

Bob
 

Amadeus

The Maestro
Staff member
No, they start at 1. The custom files should be done EXACTLY like the class files. It's just that they are called, in order, after the class file is called.
 

bob_the_builder

Well-Known Member
And I found my answer, I can add in extra functions if I want into eq2bot

;; If using CustomRoutines...
if ${UseCustomRoutines}
{
call Custom__Buff_Init
call Custom__Combat_Init
call Custom__PostCombat_Init
}

This is good stuff, thanks much !!!

Bob
 

Amadeus

The Maestro
Staff member
Yes. ${UseCustomRoutines} is set to TRUE if the file exists when eq2bot is loaded.
 

bob_the_builder

Well-Known Member
This is bad ass by the way, not sure when you added these .. I just found the examples.

Now I just need to figure out the custom UI windows and Ill be in bot bliss.

Bob
 
Top Bottom