PDA

View Full Version : [RELEASE] Command Sender (with Parameters)



AgentGOD
02-26-2006, 12:20 AM
Command Sender
Written by AgentGOD

Use in Assembly (MASM):

How to call:


invoke CommandSender ;or
call CommandSender


The Data being used:


CommandParams db 1Fh, 6Bh ;Specify parameters here
CMDType db 03h ;Command Type, check the list below
IssueCommand dd 47F1E0h ;FXN for issuing the commands in SC/BW


The Function:


CommandSender proc
;Direct Command Sender
;Example by Agent_GOD
invoke BWTextDisplay, CTEXT ("Commands sent.") ;Display Message
mov ecx, Offset CommandParams ;Move the address of variable to ecx (contains parameters for your commands)
movzx edx, CMDType ;Moves command type into edx
call dword ptr [IssueCommand] ;Issues the command
ret
CommandSender endp


How to tell:
Command Types:
1 - Subunit commands
2 - Burrow, Unburrow, Cloak, Uncloak, Stop
3 - Vision Control, Morph, Create Unit, Cancel Last
5 - Alliance

There are more to list under command types, and same goes for the commands.

Using Commands that specify HOW they are created, and WHAT they create:
00 00
| |
Method (Morph, etc) Unit ID

The commands that take these parameters ONLY take 2 parameters. No more, no less.

Commands that use the first parameter (common ones):
0Dh - Controls vision ;)
0Eh - Controls alliance ;)
15h - Targetted Commands (this doesn't use the standard format)
23h - Morph
14h - Right Click (this doesn't use the standard format)
1Fh - Create Unit (build)
20h - Cancel Last
35h - Building Morph

Second parameter:

2Dh - Burrow
2Ch - Unburrow
21h - Cloak
22h - Uncloak
26h - Siege
25h - Unsiege
1Ah - Stop

Third Parameter:
31h - Cancel Subunit
19h - Cancel Morph
36h - Stim Pack
27h - Build Subunit

Parameter format:
00 00 00 00
| | | |
1 2 3 4

saren
02-26-2006, 12:22 AM
Woah. Something useful by agent god.

I just wish you would write **** in C and not sloppy asm.

SC_Modder
02-26-2006, 12:24 AM
No one cares. Go back to ultimate-fags.com and release stupid **** there.

707
02-26-2006, 12:28 AM
No one cares. Go back to ultimate-fags.com and release stupid **** there.
:lol:

Pwnd
02-26-2006, 12:29 AM
ASM is sloppy, but none-the-less I'd love to learn it.

Dyndrilliac
02-26-2006, 12:34 AM
Impressive.

saren
02-26-2006, 12:39 AM
ASM is sloppy, but none-the-less I'd love to learn it.

Idiot. ASM is not a sloppy language. Agent uses it very sloppily. You can make clean, good hacks in SC using ASM. They won't be as kosher as in C, but you can create them.

Zynastor
02-26-2006, 12:42 AM
Lol, I think you had a lot of troubles trying to explain that agentgod. Seems like you have no clue what ur trying to say urself, just stop releasing junk for sc already. You said you quit sc ages back and have had enough, but yet you are still releasing usless junk.

0x47F1E0 is the SendAction() function which is fastcall taking in 2 parameters, A variable contraining the entire action ready to be sent and the length of the that action.

Pwnd
02-26-2006, 12:42 AM
Idiot. ASM is not a sloppy language. Agent uses it very sloppily. You can make clean, good hacks in SC using ASM. They won't be as kosher as in C, but you can create them.
Well, if his code is even readable, I can't understand it at all. C reminds me of every other language I use, so it wouldn't be to bad.

saren
02-26-2006, 12:44 AM
Well, if his code is even readable, I can't understand it at all. C reminds me of every other language I use, so it wouldn't be to bad.

Let me put it this way:

Agent's code is just as good as the 3rd grader who wrote it for him in crayon.


Edit: I'm talking about the big, fat Crayola crayons too. Peacock blue.

Sinz
02-26-2006, 02:11 AM
rolf imagine if agent or dt(dont know why i used them in teh same sentence) released a hack with a back door taht you could choose to have other people unallie someone or allie them

Zerg
02-26-2006, 03:54 AM
rolf imagine if agent or dt(dont know why i used them in teh same sentence) released a hack with a back door taht you could choose to have other people unallie someone or allie them


wow, good idea. would be funny:lol:

Sinz
02-26-2006, 03:56 AM
:-\ after thinking about it tho it would cause hell to break loose and most likely a imediate patch
quick agent read that post and attempt something so stupid only youd do it

Belphegor
02-26-2006, 08:06 AM
Lol, I think you had a lot of troubles trying to explain that agentgod. Seems like you have no clue what ur trying to say urself, just stop releasing junk for sc already. You said you quit sc ages back and have had enough, but yet you are still releasing usless junk.*/me pulls out his utility and leaves a mushroom imprint on Zynastor's head* Where the **** you been, we gotta play SC.:w00t:

In my personal opinion, he commented it quite fine. I can read and understand every line.

Let me put it this way:
Agent's code is just as good as the 3rd grader who wrote it for him in crayon.
Edit: I'm talking about the big, fat Crayola crayons too. Peacock blue.Rofl +rep But I likes the grass-green.:(
rolf imagine if agent or dt(dont know why i used them in teh same sentence) released a hack with a back door taht you could choose to have other people unallie someone or allie them
Imagine if someone has done that. Idiot.

AgentGOD
02-26-2006, 10:34 AM
Woah. Something useful by agent god.

I just wish you would write **** in C and not sloppy asm.

I have.



void CommandSender(char * Container, int TypeContainer)
{
//As you all may know, StarCraft uses "fastcall" for this function. That means it takes ecx, and edx.
int (__fastcall*SendCMD_CALL)(char *, int) = NULL; //Assigns the function pointer to NULL
SendCMD_CALL = (int (__fastcall *)(char *,int))0x47F1E0; //Moves the issue command function pointer to SendCMD_CALL
SendCMD_CALL (Container, TypeContainer); //Calls the function
}


The C version of it, using a function pointer.

The usage:


CommandSender(yourcode, type);

Ex:
CommandSender("\x1F\x6B\x00", 3);
This would be, Create Unit (train), Comsat station.

NickF
02-26-2006, 01:16 PM
ASM looks neater than C for me.
Anyway good job.

K? Pŕo?ćtiόnŹ
02-26-2006, 01:37 PM
Nicks mom likes small cocks =O

Constipation
02-26-2006, 01:46 PM
yeah she likes your moms small cock

Loser777
02-26-2006, 02:06 PM
This encourages keyboard micro.