This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: SCM to WoW through EXE  (Read 1054 times)

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
SCM to WoW through EXE
« 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)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9

happyhack

  • Contributors
  • Race Changer
  • *****
  • Posts: 38
    • View Profile
Re: SCM to WoW through EXE
« Reply #1 on: July 16, 2014, 05:40:54 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: SCM to WoW through EXE
« Reply #2 on: July 16, 2014, 09:04:59 pm »
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

Code: [Select]
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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9