Register for your free account! | Forgot your password?

You last visited: Today at 05:14

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

Advertisement



[Release]Testsystem Source

Discussion on [Release]Testsystem Source within the Kal Hacks, Bots, Cheats & Exploits forum part of the Kal Online category.

Reply
 
Old 02/03/2012, 18:18   #46
 
千代子's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 30
Received Thanks: 9
So you can edit your AttackHack.cpp like this ->

Code:
unsigned int __stdcall AttackHackMainThread(void * start_parameter)
{
	while(true)
	{
		Sleep(1);
		if(AttackHackStatus == 1)
		{

			for(size_t i=0;i<Skills.size();i++)
			{
				DWORD SkillID = atoi(Skills[i].c_str());
				if(BotCharacter == Archer)
				{
					switch(SkillID)
					{
					case Stagger:
						Sleep(800);
						break;
					case HeartBreaker:
						Sleep(600);
						break;
					case FocusShot:
						Sleep(1000);
						break;
					case MysteriousArrow:
						Sleep(5000);
						break;
					case LifeAbsorbtion:
						Sleep(6000);
						break;
					case BlowUp:
						Sleep(800);
						break;
					case FlamyArrow:
						Sleep(800);
						break;
					}
				}
				if(BotCharacter == Mage)
				{
					switch(SkillID)
					{
					case Lightning:
						Sleep(600);
						break;
					case Fire:
						Sleep(600);
						break;
					case Ice:
						Sleep(600);
						break;
					case LightningBlow:
						Sleep(600);
						break;
					case LightningSummons:
						Sleep(600);
						break;
					case Thunder:
						Sleep(600);
						break;
					case ShockWave:
						break;
					case SoulDestruction:
						Sleep(6000);
						break;
					case  Hail:
						Sleep(600);
						break;
					}
				}
				CSend::SendKoemV2(0x2b,"b",SkillID);
				CSend::SendKoemV2(0x10,"bbd",SkillID,1,Monster_Target);
			}
			AttackHackStatus-=1;
		}
	}

	return 0;
}
it's just more comfortable

still no good way but better than the one Released
千代子 is offline  
Thanks
1 User
Old 02/03/2012, 19:27   #47
 
RunzelEier's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1,196
Received Thanks: 682
Quote:
Originally Posted by MoepMeep View Post
Und nun überleg mal wieviele leute hier damit arbeiten könnten ;P
und jetzt überleg mal wie viele leute hier überhaupt was mit c++ anfangen können

Quote:
Originally Posted by 千代子 View Post
Wie BakaBug mal so schön sagte: "BTW ich gebe meine source nur weiter wenn sie scheiße sind Oo
wieso sollte ich gute source weiter geben Oo ? lol..
"
Keine beleidigung, aber schon damals von baka hat sich das nur nach ner lamen entschuldigung angehört :P
RunzelEier is offline  
Thanks
1 User
Old 02/03/2012, 19:54   #48
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
I posted a way better way in my crappy bot guide thread. Just needs to be adjusted a bit ;o
MoepMeep is offline  
Thanks
1 User
Old 02/03/2012, 21:43   #49
 
hoseta's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 310
Received Thanks: 50
@MoepMeep.
Hehe i know what i was doing wrong -.-...
I didint put recv for MonsterDisapear thats why it wasnt work, now its gr8, anyway thanks for your advices.

PS:@hello123456 which injector do you use on win7 64bit?
hoseta is offline  
Old 02/03/2012, 23:15   #50
 
elite*gold: 0
Join Date: Oct 2007
Posts: 474
Received Thanks: 159
Quote:
Originally Posted by hoseta View Post
@MoepMeep.
Hehe i know what i was doing wrong -.-...
I didint put recv for MonsterDisapear thats why it wasnt work, now its gr8, anyway thanks for your advices.

PS:@hello123456 which injector do you use on win7 64bit?
that one ... took me a while to get a working one xD
Attached Files
File Type: rar injector.rar (311.1 KB, 123 views)
hello123456 is offline  
Old 02/06/2012, 17:32   #51
 
Fedol's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 471
Received Thanks: 23
Wo ruft der seine C-GUI auf ich find nix in der Testsystem.cpp..
Fedol is offline  
Old 02/09/2012, 21:18   #52
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,105
Received Thanks: 186
mkay stupid question, but how could i make this command to "return" me the name of the player that disappeared, becouse it returns empty [] value or smth

Quote:
void Kal::PlayerDisappear(char* szBuffer)
{
DWORD PlayerID=*(DWORD*)&szBuffer[3];
for(int i=0; i<=MAX_P;i++)
{
if(Player[i].dwPlayerUID==PlayerID)
{ memset(&Player[i],0,sizeof(Player[i]));

Kal::ChatBox( " test",1,"Player[%s] disappeared",Player[i].szPlayerName);
Player[i].dwPlayerUID=0;
PlayerCount--;
break;

}
}
}
pamz12 is offline  
Old 02/09/2012, 22:12   #53
 
Fedol's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 471
Received Thanks: 23
Kann ich ein Packet senden wo ich eine Mana Med benutze?
Denn PostMessage funktioniert bei mir net denn Superkal hat kein Fensternamen und der kann es nicht targen. Hab im Forum gefunden Type: 0x1e Format: Ud - Use Item.
Aber SendKoemV2(0x1e,"Ud",982) funktioniert nicht..
Fedol is offline  
Old 02/09/2012, 22:26   #54
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
@pamz12 Looks like deleting before printing it, could that be?
@Fedol 0x21,"d",ID ist useitem auf pserver Natürlich die uid des items, nicht den index.
MoepMeep is offline  
Thanks
2 Users
Old 02/09/2012, 22:31   #55
 
Fedol's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 471
Received Thanks: 23
Quote:
Originally Posted by MoepMeep View Post
@Fedol 0x21,"d",ID ist useitem auf pserver Natürlich die uid des items, nicht den index.
Hmm an die UID komm ich ja net ran, ausser wenn ich wüsste wie man das Inventar ausliest und dann Medicine da steht...Gibt es keine andere Möglichkeit?
Fedol is offline  
Old 02/10/2012, 00:47   #56
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
0x07/0x09 oder send sniffen bzw direkt inventory packet am anfang auslesen
MoepMeep is offline  
Old 02/10/2012, 20:38   #57
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,105
Received Thanks: 186
hmmm i tried to set PlayerCount--; almost everywhere, didn't work out well

then i looked up some old sources found this:
HTML Code:
 if (packet[2] == 0x37)
            {
                    //disapear
                    DWORD id;
                    memcpy((void*)&id,(void*)((DWORD)packet+3),4);
                    int i;
                    for (i=0;i<500;i++)
                    {
                            if (Player[i].PID == id)
                            {
                                    printf("Player disapear [PID: %08x Name: %s]\n",id,Player[i].name);
                                    Player[i].X=0; //deactive !
                                    playerx-=1;
                                    break;
                            }
                    }
            }
so i set my example to
PHP Code:

void Kal
::PlayerDisappear(charszBuffer)

{
    
     
    
DWORD PlayerID=*(DWORD*)&szBuffer[3];
    for(
int i=0i<MAX_P;i++)
    {
            
        if(
Player[i].dwPlayerUID==PlayerID)
        {    
memset(&Player[i],0,sizeof(Player[i]));                    
        
        
        
        
Kal::ChatBox"[test]: ",1,"Player[PID: %08x Name: %s] disappeared",PlayerID,Player[i].szPlayerName);    
            
            
Player[i].dwPlayerUID=0;
            
PlayerCount-=1;    
            break;    
    }        
    
            
    }

so i think there's some prob with Player[i].szPlayerName/Player[i].dwPlayerUID=0;
as it prints PID allkay in window

any suggestions what to put in it?

here's appear packet
Code:
void Kal::PlayerAppear(char* szBuffer)
{
	if(PlayerCount <= MAX_P)
	{
	int i;
	for (i = 0;i < MAX_P;i++)
	{
		if (Player[i].dwPlayerUID == 0)
		{
			Player[i].dwPlayerUID=*(DWORD*)&szBuffer[3];
			memcpy((void*)&Player[i].szPlayerName,(void*)((DWORD)szBuffer+7),16);
			Player[i].reserved=strlen(Player[i].szPlayerName);
			Player[i].dwPlayerX=*(DWORD*)&szBuffer[7+Player[i].reserved+2];
			Player[i].dwPlayerY=*(DWORD*)&szBuffer[7+Player[i].reserved+2+4];
			Player[i].dwPlayerZ=*(DWORD*)&szBuffer[7+Player[i].reserved+2+4+4];
			if(dwMyPlayerUID == 0)dwMyPlayerUID=Player[0].dwPlayerUID;
				Kal::ChatBox("[toolkal] ",1,"Player[%s] is in Range @ (%d/%d/%d)",Player[i].szPlayerName,Player[i].dwPlayerX,Player[i].dwPlayerY,Player[i].dwPlayerZ);
				Sleep(1);
			PlayerCount++;
			break; //ender der schleife
		}
	}
	}
}

free advice please
pamz12 is offline  
Old 02/11/2012, 16:50   #58
 
hoseta's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 310
Received Thanks: 50
Here u have full source with working player disappear, I just added it and tested on Dominion Kal.

for sure u had something wrong with recv.

PS:[FOLDER] kalxoor put in kal folder in settings ini change name= (to kal window name),
open first kalxoor.exe then kalonline, this injector work too on windows 7 64/32 bit tested... ( u need open as administrator in win7 )..(Injector inject just dll with name kalxoor, dll must be in the same folder)

Link ([MIRROR] File Front / Game Front ):
hoseta is offline  
Thanks
3 Users
Old 02/11/2012, 16:56   #59
 
RunzelEier's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1,196
Received Thanks: 682
hwnd can be read out of memory.
no need to get the window title
RunzelEier is offline  
Old 02/11/2012, 17:32   #60
 
hoseta's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 310
Received Thanks: 50
hmm yes you are right but here i put window read to avoid "ANTI-HACKING PROBLEM",
cuz if u inject ur dll to fast u will get that information. and when i put kal wind check my dll inject after window is activte and can safely inject.

Code:
unsigned int __stdcall MainThread(void * pParams)
{
	//wait to avoid anti-hacking.
	Sleep(4500);
	Kal::ReadSettings();
		while(true)
	{
		hKal = FindWindow(NULL,chWindow_Name);
		SetWindowTextA(hKal,"KalOnline kalxoor");
		hWait = FindWindow(0,"KalOnline kalxoor");
		hKal1 = GetForegroundWindow();
		if (hWait == hKal1) goto endwait;
		Sleep(100);
	}
endwait:;
...
See? if u will put wrong kal window name then while wont end.
I add that cuz i cant use any injector on windows 7 64 bit and i made one,
I wont to play with Sleep ****, 'while' is good for me.
hoseta is offline  
Reply


Similar Threads Similar Threads
[RELEASE] [OPEN SOURCE] CE 5.5 Pointer to AutoIt Source-Code
02/13/2011 - AutoIt - 6 Replies
Habe heute erst gemerkt, dass es hier eine AutoIt Sektion gibt xD also poste ich mal mein Programm mit rein. Funktionsweise: 1. in CE Rechtsklick auf den Pointer und auf "Copy" klicken 2. in meinem Programm auf "Code generieren" klicken 3. In euer Scite gehen und einfügen Hier ist der Source Code vom Programm:
[Release]How To Make Tq Source Work + Working Source + Server ByBass + Commands
12/08/2008 - CO2 PServer Guides & Releases - 15 Replies
1: How To Make The Server Work In fact, before other people did not just let ACC now with hi EACC Columbia landing on the settlement of the issue, and the rest is our own how to improve the content of those interested can improve the next. MY MY set and the same. INI MAP INI files and MAP with the client-to-date coverage of the account. server.dat ! And then as long as the client will be able to modify server.dat! 127.0.0.1 192.168.0.1 192.168.1.1 IP。 Please do generally use...
[Release] Project-X Source (Lolmasters Secret Source)
09/29/2008 - CO2 Private Server - 11 Replies
Projekt-X Source (Lolmasters Secret Source) Example that is in the source, stigma guards LINK: RapidShare: Easy Filehosting Well People search for things in this source that others dont got and use it for your server ;) or just release it to get many thankes:p



All times are GMT +1. The time now is 05:15.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.