Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > World of Warcraft > WoW Guides & Templates
You last visited: Today at 23:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to Write a WoWHackTt Module [ENG] Part1

Discussion on How to Write a WoWHackTt Module [ENG] Part1 within the WoW Guides & Templates forum part of the World of Warcraft category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2004
Posts: 222
Received Thanks: 5
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:
Quote:
#include "WoWHackIt/Client.cpp"
#include "WoWHackIt/ClientEasier.cpp"
You will put these lines in every module you make because they are basicly "defining" every command and function you write inside your module!

Not to go into the client info. Again this will be included in every module you will make, except it will be your personal information, and not mine.

Code:
Quote:
MODULEINFO
(*
This is where you declare your client info is getting started. This same excact code will be used in every module you make.

Code:
Quote:
"RealmGX Spammer",
This will be where you write the name of the module you are making. Make sure it is between the quotation marks or you may get a compile error, and you will definately have an error in your program.

Code:
Quote:
"Mason",*
This is where you will be putting your name, or nickname. Again, make sure it is in the quotation marks.

Code:
Quote:
MAKEVERSION(1, 0),
This will be where the version of WoWHackit you are writing the module for. For now that is the only version released so that is the only text that can possible go there for now!

Code:
Quote:
"www.realmgx.com",*
This is where the name of your home page will be. I use realmgx because for now it is my favorite forum, and I don't have my own web site beside's the server where I store all my code!Also, if you haven't gotten through your head, it has to be inside the quotation marks.

Code:
Quote:
""
This is where your email address goes. No special reason, it is just put in the client info. Once again inside the quotation marks.

Once you are done with all this you will add...

Code:
Quote:
)
to show that you are done with the client info. Now for the more interesting part!

Code:
Quote:
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);
** }
}*
Ok for now, pretend this isn't there, I will discuss this once we get a bit farther down in the code. Do not worry we will not skip it!

Code:
Quote:
BOOL ModuleStart()
{
** ConsolePrint (0, "You have started the RealmGX Spammer.");
** return TRUE;
}
This is quite easily understood. First off this will always go at in your module. In fact, the only line you will ever need to change is the following line.

Code:
Quote:
ConsolePrint (0, "You have started the RealmGX Spammer.");
This is where you will place what you want to be printed upon the screen when you load the module. And once again, your message will go inside the quotation marks.

Code:
Quote:
BOOL ModuleStop()
{
** ConsolePrint (0, "RealmGX Spammer unloaded!");
** return TRUE;
}*
This has the same concept as the code above, besides this is what will be displayed once your module is unloaded. Again, the only thing being changed in this code is the following line...

Code:
Quote:
ConsolePrint (0, "RealmGX Spammer unloaded!");
The ending message should be put inside the quotation marks. It can be anything you see fit as the ending message.
And finally...this is where the module gets it's "juice" from. This is where the magic happens, what the module actually does is put here!

Code:
Quote:
BOOL OnConsoleText(char *ptext)
{*
This will always be there. Everything following this is what makes the module a Hack!

Code:
Quote:
char **pParse = ParseForce(ptext);*
Well for now, it is hard to explain this in non-programming language. Mainly, until WoWHackit is more fully developed this will generally always be there. Now, on some modules this line won't go there, but for most of the modules being created now, this will be there. So just put it there mindlessly until someone tells you different.

Code:
Quote:
if (!strcmpi(pParse, "RGXSpammer"))
** {*
This is where you declare what you have to type in order for the hack to start, unload, and other functions. Basicly, you want be changing this besides what is inside the quotation marks. Whatever is inside the quotation marks is the command to get it to start. Make sure this is only one word otherwise it may cause errors. Here is an example. Since the word inside the quotation marks is rgxxspammer, in order for me to load the module I would have to type

Code:
Quote:
.load rgxspammer
With that said...let us move on!

Code:
Quote:
if (!pParse[1])
* * * {
* * * ** ConsolePrint(3, "NO spammer command specified!");
* * * ** delete pParse;
* * * ** return TRUE;
* * * }
This just means that if someone types ".rgxspammer" or ".*name of your module here* it will give them the message specified in the quotation marks. So you won't be changing anything to this code besides what is in the quotation marks to the message that you want to be said.

Code:
Quote:
if (!strcmpi(pParse[1], "start")
* * * {*
Ahh, not the easiest thing to look at, but is very understandable once explained. This is just saying if someone types ."your module here" "command in quotation marks" which in this case is ".realmgxspammer start" that it will do the code
following this. This is just declaring one of the commands in the module!

Code:
Quote:
if (!hSpammerThread)
* * * ** {
* * * * * * hSpammerThread = NewThread((void*)Spammer, 0);
* * * * * * delete pParse;
* * * * * * return TRUE;
* * * ** } else {
* * * * * * ConsolePrint (3, "Spamming thread is already running");
* * * * * * delete pParse;
* * * * * * return TRUE;
* * * ** }
* * * }*
avatarius is offline  
Reply


Similar Threads Similar Threads
[Part1]C# - Introducing (Windows Form)
05/08/2010 - CO2 Programming - 27 Replies
Part 1 - Introducing (WF)Today we are gonna look at C# at introducing to it and the basics of windows form. Lets start with what C# is? Microsoft C# Visual Studio is a programming language wich you can use to create programs or different applications. You can work with windows forms, xml, sockets, consoles and much more. C# is similar to C & C++ or java, but is not the same language and they all work different. They got different ways to work with things on. Your very first...
[Tutorial]Eigene Homepage mit PS4 Part1
02/27/2010 - Artist Tutorials - 15 Replies
Huhu, da ich gerade nichts besseres zutun habe, dachte ich mir, ich mache ein Tutorial für Anfänger. Es wird zwar nichts beeindruckendes herauskommen, aber für den "Laien" wird es reichen ;) Voraussetzungen: - Grundkentnisse mit Photoshop
How to write a WoWHackIt Module [ENG] Part3
01/16/2005 - WoW Guides & Templates - 1 Replies
Here is the entire source code that we just explained for future reference. Code: Yes, if you are wondering this module actually does work.
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:



All times are GMT +1. The time now is 23:35.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.