[Release] Send Text to OutPut console

01/11/2011 22:53 iktov2#1
Nothing amazing here. This just uses the output console in-game to send your own custom messages to it. This refers to the box above your chatbox that shows things like damage dealt when you attack, damage you take when your attacked and other things. I use it to output settings of my bot since I don't use a GUI, its nice to see the function status when I activate it or deactivate it.

Code:
OutPut Console:
004A0A65   |.  6A 02                   PUSH 2                               ; /Arg2 = 00000002
004A0A67   |.  68 D4CC5500             PUSH TwelveSk.0055CCD4               ; |Arg1 = 0055CCD4 ASCII "GM Command OK!!!"
004A0A6C   |.  B9 38F82D01             MOV ECX,TwelveSk.012DF838            ; |
004A0A71   |.  E8 BADB0700             CALL TwelveSk.0051E630               ; \TwelveSk.0051E630
First Arg pushed is the color of the output string, second Arg pushed is the output string itself.

Code:
Usage:

UseConsole(2, "Welcome to my Bot!");  //sends red text to output console
Maybe useful eh?
01/14/2011 22:47 Mega Byte#2
Definatly usefull :)
Afterburn i think wanted to read the last message on the console. This is just for writing but you could easily look inside the call to see the counter for where it is up to in the array :P
01/14/2011 23:54 iktov2#3
Quote:
Originally Posted by Mega Byte View Post
Definatly usefull :)
Afterburn i think wanted to read the last message on the console. This is just for writing but you could easily look inside the call to see the counter for where it is up to in the array :P
Yea I think I will look into that later too once I get the core features of my bot 100% reliable. Hit a few snags with the loot filtering after the patch, it was working flawlessly, now its causing issues.
01/15/2011 02:32 AfterBurn 2.0#4
Quote:
Originally Posted by iktov2 View Post
Yea I think I will look into that later too once I get the core features of my bot 100% reliable. Hit a few snags with the loot filtering after the patch, it was working flawlessly, now its causing issues.
I got it working, I can now catch the current System message right before it is sent to the Console.
01/15/2011 04:16 iktov2#5
Quote:
Originally Posted by AfterBurn 2.0 View Post
I got it working, I can now catch the current System message right before it is sent to the Console.
Nice, can't be too hard to find. Did you find a call to the function and follow that? I will have to look into it when more of the more important core functions of my "bot" are working to my satisfaction.
01/15/2011 05:31 Mega Byte#6
Im not exactly sure why you guys would want to read those messages however.. :P