Ogre Method And Members.

Kannkor

Ogre
When the wiki was moved, that page was lost...
There are a bunch of internal ones, but from a quick skim of the code..
members:
Version
SkinName
IsReady
PatchVersion
HasOgre_____AccessLevel (these were used for testing). Craft, Bot Tester etc.

Methods
Patch
Generate______ - This is/was used for... tsam manager. It would generate lists in a list box if you passed it... the list box and.. something. (I'd have to look it up, they haven't been used in years).
SetSkinName
OgreConsole
OgreIRC

I'm guessing this isn't actually what you wanted.. What are you trying to do?
 

Isnewbie

Well-Known Member
Trying to compose a script to utilize the auto targeting feature tab. Would like to add and remove targets based on fight conditions.

Also looking for the commands to allow check and uncheck of setting boxes like the uplink UI.
 

Kannkor

Ogre
ahh.. oops. I read that as ISXOgre members and methods (which is the page that was lost).
Many commands can be seen by looking at OgreMCP and seeing how it does it, then you can use the exact same thing in your code. If it can't be done via MCP, then feel free to ask.

Autotarget can be modified via this global variable...
Ob_AutoTarget:AddActor[ActorName,HP]
And apparently you can only clear it..
Ob_AutoTarget:Clear
 

uiyice

Active Member
OgreIRC\OgreIRCLib.iss is also a good thing to read to get a sense of how to prod OgreBot to do things, at least until Kannkor rewrites the IRC code away. (Seriously, save a copy away just in case, the second half of the script is a goldmine of concise examples)

Regarding AutoTarget, you can of course also just load a new list any time:

Ob_AutoTarget:LoadListFromSaveList["MyListName"]

Flipping checkboxes:

relay all OgreBotAtom aExecuteAtom all a_QueueCommand UplinkControllerFunctionAutoType "checkbox_autotarget_enabled" "TRUE"
relay all OgreBotAtom aExecuteAtom all a_QueueCommand UplinkControllerFunctionAutoType "checkbox_autotarget_enabled" "FALSE"

(Pull the checkbox names out of the ogrebox ui xml file)
 

Kannkor

Ogre
OgreIRC\OgreIRCLib.iss is also a good thing to read to get a sense of how to prod OgreBot to do things, at least until Kannkor rewrites the IRC code away. (Seriously, save a copy away just in case, the second half of the script is a goldmine of concise examples)

Regarding AutoTarget, you can of course also just load a new list any time:

Ob_AutoTarget:LoadListFromSaveList["MyListName"]

Flipping checkboxes:

relay all OgreBotAtom aExecuteAtom all a_QueueCommand UplinkControllerFunctionAutoType "checkbox_autotarget_enabled" "TRUE"
relay all OgreBotAtom aExecuteAtom all a_QueueCommand UplinkControllerFunctionAutoType "checkbox_autotarget_enabled" "FALSE"

(Pull the checkbox names out of the ogrebox ui xml file)
OgreConsole is basically the EXACT same thing as OgreIRC (how the commands work) except even better! It handles the defaults in that file itself, so you can see the defaults used etc.
 
Top Bottom