|
You last visited: Today at 12:52
Advertisement
How to write a WoWHackIt Module [ENG] Part3
Discussion on How to write a WoWHackIt Module [ENG] Part3 within the WoW Guides & Templates forum part of the World of Warcraft category.
01/16/2005, 01:07
|
#1
|
elite*gold: 0
Join Date: Nov 2004
Posts: 222
Received Thanks: 5
|
Here is the entire source code that we just explained for future reference.
Code:
Quote:
#include "WoWHackIt/Client.cpp"
#include "WoWHackIt/ClientEasier.cpp"
MODULEINFO
(
"RealmGX Spammer",
"Mason",
MAKEVERSION(1, 0),
"www.realmgx.com",
""
)
void Spammer(void*)
{
while(1)
{
ConsoleCommand("script SendChatMessage(\"Visit www.RealmGX.com\");");
Sleep(1000);
ConsoleCommand("script SendChatMessage(\"Home of WoWHackit!\");");
Sleep(1000);
ConsoleCommand("script SendChatMessage(\"Come Get Hacks, Tips, Strategies, Items, and
More!!!\");");
Sleep(1000);
}
}
BOOL ModuleStart()
{
ConsolePrint (0, "You have started the RealmGX Spammer.");
return TRUE;
}
BOOL ModuleStop()
{
ConsolePrint (0, "RealmGX Spammer unloaded!");
return TRUE;
}
BOOL OnConsoleText(char *ptext)
{
char **pParse = ParseForce(ptext);
if (!strcmpi(pParse, "RGXSpammer"))
{
if (!pParse[1])
{
ConsolePrint(3, "NO spammer command specified!");
delete pParse;
return TRUE;
}
if (!strcmpi(pParse[1], "start")
{
if (!hSpammerThread)
{
hSpammerThread = NewThread((void*)Spammer, 0);
delete pParse;
return TRUE;
} else {
ConsolePrint (3, "Spamming thread is already running");
delete pParse;
return TRUE;
}
}
if (!strcmpi(pParse[1], "stop")
{
if (hSpammerThread)
{
KillThread(hSpammerThread);
delete pParse;
return TRUE;
} else {
ConsolePrint (3, "No spamming thread is running!");
delete pParse;
return TRUE;
}
}
}
return TRUE;
}
|
Yes, if you are wondering this module actually does work.
|
|
|
01/16/2005, 03:05
|
#2
|
elite*gold: 0
Join Date: Nov 2004
Posts: 222
Received Thanks: 5
|
Der komplette QuellCode:
Quote:
#include "WoWHackIt/Client.cpp"
#include "WoWHackIt/ClientEasier.cpp"
MODULEINFO
(
"RealmGX Spammer",
"Mason",
MAKEVERSION(1, 0),
"www.realmgx.com",
""
)
void Spammer(void*)
{
while(1)
{
ConsoleCommand("script SendChatMessage(\"Visit www.RealmGX.com\");");
Sleep(1000);
ConsoleCommand("script SendChatMessage(\"Home of WoWHackit!\");");
Sleep(1000);
ConsoleCommand("script SendChatMessage(\"Come Get Hacks, Tips, Strategies, Items, and
More!!!\");");
Sleep(1000);
}
}
BOOL ModuleStart()
{
ConsolePrint (0, "You have started the RealmGX Spammer.");
return TRUE;
}
BOOL ModuleStop()
{
ConsolePrint (0, "RealmGX Spammer unloaded!");
return TRUE;
}
BOOL OnConsoleText(char *ptext)
{
char **pParse = ParseForce(ptext);
if (!strcmpi(pParse, "RGXSpammer"))
{
if (!pParse[1])
{
ConsolePrint(3, "NO spammer command specified!");
delete pParse;
return TRUE;
}
if (!strcmpi(pParse[1], "start")
{
if (!hSpammerThread)
{
hSpammerThread = NewThread((void*)Spammer, 0);
delete pParse;
return TRUE;
} else {
ConsolePrint (3, "Spamming thread is already running");
delete pParse;
return TRUE;
}
}
if (!strcmpi(pParse[1], "stop")
{
if (hSpammerThread)
{
KillThread(hSpammerThread);
delete pParse;
return TRUE;
} else {
ConsolePrint (3, "No spamming thread is running!");
delete pParse;
return TRUE;
}
}
}
return TRUE;
}
|
|
|
|
|
Similar Threads
|
[Part3]C# - TextEditor (Windows Form)
04/28/2010 - CO2 Programming - 0 Replies
Now we will look at some more advanced things like creating a text editor, with load/save files.
First create a windowsformapplication.
Make sure you name it:
TextEditor
Now delete the "Form1.cs".
Now right click at your solution and choose:
Add > Windows Form
Make the name:
TextEditor
Now make the design fit into what you want.
|
How to write a WoWHackIt Module [ENG] Part2
01/16/2005 - WoW Guides & Templates - 0 Replies
I am doing this code snippet all at once because if I broke it up it might become a bit more confusing that what it already is. First the
Code:
means if the SpammerThread (which is the code we skipped earlier) is not already running then it will execute the code in between the corresponding "{" "}".
Code:
|
How to Write a WoWHackTt Module [ENG] Part1
01/16/2005 - WoW Guides & Templates - 0 Replies
Seeing as I am very bored at the moment,and people are obviously interested, I decided to make a tutorial on making modules with WowHackit. First off, before you get started on this I recommend you have knowledge of the c++ language.
I will start by teaching you what goes on in my module, then when the Packet Hooks are written, and added with the WoWHackit files I will teach you packet sending and more!
First off lets start with what we do at the beginning of every program.
Code:
...
|
WoWHackIt Released
01/15/2005 - WoW Exploits, Hacks, Tools & Macros - 4 Replies
Screen
Forum der Dev's
|
All times are GMT +1. The time now is 12:52.
|
|