Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Miscellaneous => Topic started by: Alastor on July 16, 2014, 02:38:26 am
-
Hi i dont have any idea where to put this or where i can now find some good programators for cunsultating
so ... here iam...
In Hitchhiker's Hack was button to add into your Default Chat Frame Message through API "DEFAULT_CHAT_FRAME:AddMessage" i think
so im asking
have somebody any idea how to make .exe (program) that will be able to write Chat messages in game ? through API "SendChatMessage" ?
all i need is code for sending those messages to client
if im right "SendChatMessage" its by "SMSG_MESSAGECHAT" "0x096"
if somebody could help i'll be pleased (about things like this im glad for every help)
-
Two possibilities :
- Send message through the socket the client is listening on (dont know if its feasible, just try to mimic what servers do by looking at their code)
or :
- Inject a dll
- communicate with that dll through cross process communications (pipe, socket, events, whatever)
- when u receive signal, call the lua function or underlying c++ function.
You have to use some kind of synchronisation since u re using multiple threads. Either find the object Wow uses for LUA synchronisation if there is one, or the one of the underlying c++ function. If there is none then those functions are not supposed to be called from different threads, then u have a serious problem.
- In the external application just connect to the dll through cross process communication and send signal to print messages.
edit :
why do you want an external application anyway? LUA can do whatever you want, just go with it.
-
Im asking just in theory also its iteresting for me because in my envirovemnt would be awesoem to have this program ....
anyway i have it solved by SLASH ...
As you said LUA can do a lot of things so here i have it
SLASH_ALASTORSOCK1 = "/SockA"
SlashCmdList["ALASTORSOCK"] = function(msg)
SCM(".add 44069", "guild")
SCM(".add 41611", "guild")
SCM(".add 43127", "guild")
SCM(".add 39682", "guild")
SCM(".add 39683", "guild")
SCM(".add 41307", "guild")
SCM(".add 40111 4", "guild")
SCM(".add 40124 4", "guild")
SCM(".add 40119 16", "guild")
SCM(".add 36767 3", "guild")
SCM(".lea 50270 ", "guild")
DEFAULT_CHAT_FRAME:AddMessage("124cffFF0000ALASTOR'S Sockets Added124r")
end