You last visited: Today at 14:18
Advertisement
Some Code-Snippets[PSERVER]
Discussion on Some Code-Snippets[PSERVER] within the Kal Hacks, Bots, Cheats & Exploits forum part of the Kal Online category.
07/09/2011, 12:55
#1
elite*gold: 0
Join Date: Jun 2006
Posts: 1,203
Received Thanks: 366
Some Code-Snippets[PSERVER]
This is the code of the hack which Fremo released..
I got new methods so I dont need this anymore & maybe it'll help some people...
G31 Adult Skill
Code:
if(comboBox4->Text=="Panther'crit'")
{
KC->Chat(255,"[KalTool] Panther Skill ON");
KC->Threads[1]=1;
KC->lasttime[0] = timeGetTime()-15000;
}
else if(comboBox4->Text=="Tiger'otp'")
{
KC->Chat(255,"[KalTool] Tiger Skill ON");
KC->Threads[1]=2;
KC->lasttime[0] = timeGetTime()-15000;
}
else if(comboBox4->Text=="Bird'eva'")
{
KC->Chat(255,"[KalTool] Bird Skill ON");
KC->Threads[1]=3;
KC->lasttime[0] = timeGetTime()-15000;
}
Code:
if(KC->Threads[1])
{
if((KC->Threads[1]==1)&&(KC->lasttime[0] < timeGetTime()-15000))
{
KC->SendDetour(0x52,"bd",01,03);
KC->SendDetour(0x54,"b",0x48);
KC->SendDetour(0x52,"bd",02,03);
KC->lasttime[0] = timeGetTime();
}
else if((KC->Threads[1]==2)&&(KC->lasttime[0] < timeGetTime()-15000))
{
KC->SendDetour(0x52,"bd",01,03);
KC->SendDetour(0x54,"b",0x45);
KC->SendDetour(0x52,"bd",02,03);
KC->lasttime[0] = timeGetTime();
}
else if((KC->Threads[1]==3)&&(KC->lasttime[0] < timeGetTime()-15000))
{
KC->SendDetour(0x52,"bd",01,03);
KC->SendDetour(0x54,"b",0x42);
KC->SendDetour(0x52,"bd",02,03);
KC->lasttime[0] = timeGetTime();
}
}
Attack hack
Can be executed with Send(Sendhook -> Snif attack packet) or Recv(Someone attack someone packet)..
Code:
BYTE skillA[] = {0x03,0x06,0x09,0x10,0x12,0x15,0x0e};
BYTE skillM[] = {0x02,0x06,0x04,0x09,0x17,0x1f,0x19,0x20,0x29,0x2c,0x21,0x2a,0x2e,0x28};
BYTE skillK[] = {0x03,0x05,0x07,0x09,0x10,0x11,0x0d,0x19};
void AttackIT(BYTE Klasse,DWORD CurTarget)
{
switch (Klasse)
{
case 2: //Archer
{
for(int i = 0;i<sizeof skillA;i++)
{
KC->SendDetour(0x10,"bbd",skillA[i],1,CurTarget);
}
}
break;
case 1: //Mage
{
for(int i = 0;i<sizeof skillM;i++)
{
KC->SendDetour(0x10,"bbd",skillM[i],1,CurTarget);
}
}
break;
case 0: //Knight
{
for(int i = 0;i<sizeof skillK;i++)
{
KC->SendDetour(0x10,"bbd",skillK[i],1,CurTarget);
}
}
break;
}
}
Small Recv-List
Code:
By strik3r 4 epvp
[RECV]
switch(packet[2])
0x10 OnLogin Get Skills
-------------------------------------------------
BYTE Skills[];
Byte Amout = *(Byte*)&packet[3];
for(int i=4;i<Amout;i+2)
{
Skills = *(BYTE*)&packet[i];
}
--------------------------------------------------
0x24/0x25 Mob Move -> MID(DWORD) X(Byte) Y(Byte) 00
--------------------------------------------------
DWORD MID = *(DWORD*)&packet[3];
BYTE X = *(BYTE*)&packet[7];
BYTE Y = *(BYTE*)&packet[8];
Someone attack someone
--------------------------------------------------
0x3E MID(DWORD) PID(DWORD) DMG(WORD) 00/01/04
--------------------------------------------------
DWORD Attacker = *(DWORD*)&packet[3];
DWORD Target = *(DWORD*)&packet[7];
WORD Dmg = *(WORD*)&packet[11];
Someone attack someone (SKILL)
--------------------------------------------------
0x3F SKILLID(BYTE) Attacker(DWORD) Opfer(DWORD) 01 DMG(DWORD) 01
--------------------------------------------------
BYTE SID = *(BYTE*)&packet[3];
DWORD Attacker = *(DWORD*)&packet[4];
DWORD Target = *(DWORD*)&packet[8];
WORD Dmg = *(WORD*)&packet[13];
Mob weg
--------------------------------------------------
0x38 - MID(DWORD)
--------------------------------------------------
DWORD MID = *(DWORD*)&packet[3];
Mob Die
--------------------------------------------------
First Packet:
0x40 MID(DWORD) 00 01/00
--------------------------------------------------
Second Packet:
MOb:
0x3D MID(DWORD) 00 [08 -> Köpfstate/09 TOT/0a geköpft]
--------------------------------------------------
DWORD MID = *(DWORD*)&packet[3];
BYTE state = *(BYTE*)&packet[8];
Player:
0x3D MID(DWORD) [01->Sitzen/00->aufstehen]
--------------------------------------------------
DWORD IID = *(DWORD*)&packet[3];
0x45 State Change
--------------------------------------------------
switch(packet[3])
0x05 ->NewHp
WORD CurHp = *(WORD*)&packet[4];
WORD MaxHp = *(WORD*)&packet[6];
0x06 ->NewMp
WORD CurMp = *(WORD*)&packet[4];
WORD MaxMp = *(WORD*)&packet[6];
0x07 -> Hp
WORD Hp = *(WORD*)&packet[4];
0x08 -> Mp
WORD Mp = *(WORD*)&packet[4];
0x17 -> Stat Points
WORD Stp = *(WORD*)&packet[4];
0x18 -> Skill Points
WORD Skp = *(WORD*)&packet[4];
0x19 -> Exp
DWORD NeueGanzeExp = *(DWORD*)&packet[4];
DWORD GotExpFromMob = *(DWORD*)&packet[12];
0x1b -> Min/Max Attack
WORD Min = *(WORD*)&packet[4];
WORD Max = *(WORD*)&packet[6];
0x51 Skill learn/skillup
--------------------------------------------------
BYTE SID = *(BYTE*)&packet[3];
BYTE Slv = *(BYTE*)&packet[4];
0x09 Item update
--------------------------------------------------
DWORD IID = *(DWORD*)&packet[3];
DWORD Amout = *(DWORD*)&packet[7];
switch(packet[11])
0x07->Buy(Increase)
0x09->Use(Decrease)
0x0b->Drop(Decrease)
0x0c->Pick(increase)
0x21 Coords sync
--------------------------------------------------
DWORD PID = *(DWORD*)&packet[3];
DWORD PX = *(DWORD*)&packet[7];
DWORD PY = *(DWORD*)&packet[11];
DWORD PZ = *(DWORD*)&packet[15];
0x3B Item Pick
--------------------------------------------------
DWORD IID = *(DWORD*)&packet[3];
0x36 Item Drop
--------------------------------------------------
WORD ID = *(WORD)&packet[3];
DWORD IID = *(DWORD*)&packet[5];
DWORD iX = *(DWORD*)&packet[9];
DWORD iY = *(DWORD*)&packet[13];
DWORD Amout = *(DWORD*)&packet[17];
If there's still something you need, just ask here.
07/09/2011, 14:05
#2
elite*gold: 0
Join Date: Feb 2008
Posts: 1,105
Received Thanks: 186
could you rather explain how to use olly to know how to get a function (send/recv) so you know what to hook cuz it seems syntex's thingey is wrong for p serv
(it could be i have written this wrong so please fix me thankies
)
07/09/2011, 14:13
#3
elite*gold: 0
Join Date: Jun 2006
Posts: 1,203
Received Thanks: 366
everything syntex posted work on pserver, except the opendat. thing...
to get recv/send just set a breakpoint on ws2_32.recv/send & trace back..
07/09/2011, 18:03
#4
elite*gold: 0
Join Date: Jul 2010
Posts: 34
Received Thanks: 1
i do not get a **** , is this to upgrade the hack?
07/09/2011, 18:06
#5
elite*gold: 0
Join Date: Jun 2006
Posts: 1,203
Received Thanks: 366
it's to upgrade your brain.
07/09/2011, 18:18
#6
elite*gold: 0
Join Date: Jul 2010
Posts: 34
Received Thanks: 1
if u stand infront of me , i can upgrade ur face
07/09/2011, 18:43
#7
elite*gold: 0
Join Date: Jun 2006
Posts: 1,203
Received Thanks: 366
I bet you cant <3
I<3 kal but I <3 MMA more
With the code I posted & Thiesius source code you can create a better hack ...
if you need help with koem then just ask...but I wont post a complete code...
07/09/2011, 18:51
#8
elite*gold: 0
Join Date: Jul 2009
Posts: 694
Received Thanks: 222
maybe im not pr0 hax0r but for sure u arnt 1337 mma fighter ;P 95% of ppl event dont know what u give them
07/09/2011, 18:59
#9
elite*gold: 0
Join Date: Jun 2006
Posts: 1,203
Received Thanks: 366
ofc I'm not
I'm only 1,78 height & 80 kg but I practice it for 2 years now =)
07/09/2011, 19:40
#10
elite*gold: 0
Join Date: Dec 2010
Posts: 1,196
Received Thanks: 682
where is the download button? ;-(
btw bissle schwer für MMA (?)
07/09/2011, 20:06
#11
elite*gold: 0
Join Date: Jun 2006
Posts: 1,203
Received Thanks: 366
Bin bisschen klein für mein Gewicht, mache es aber mit power & geschwindigkeit wieder weg <:
07/09/2011, 21:39
#12
elite*gold: 0
Join Date: May 2009
Posts: 127
Received Thanks: 10
how make 1hh private ¿
07/09/2011, 22:28
#13
elite*gold: 0
Join Date: Jul 2010
Posts: 34
Received Thanks: 1
striker good for you that u know mma , could u hand me over a good private hack?
07/12/2011, 14:22
#14
elite*gold: 0
Join Date: May 2011
Posts: 136
Received Thanks: 17
Quote:
Originally Posted by
mabbe
striker good for you that u know mma , could u hand me over a good private hack?
he's not giving his hacks into the public anymore
to bad for you ^^ and there are enough public hacks..
07/13/2011, 14:40
#15
elite*gold: 0
Join Date: Apr 2007
Posts: 228
Received Thanks: 222
wow. i see some of my old coding styles =)
even snippets :P
Similar Threads
[v16] Snippets - OnJoin Problem
04/30/2011 - Flyff Private Server - 10 Replies
Hallo leute,
ich habe mir die snippets von den v16 Jobs zusammengesucht
und alles so eingetragen wie es eigentlich auch hingehört.
Errors gibt es keine, ich komm einfach nicht in die World.
Es gibt vom World Server einen OnJoin Error, allerdings ist
darüber auch nicht mehr zu erfahren. Hab erweiterten Error
Log eingebaut -> Kein Ergebnis. Auch der Debugmode hat
mich leider nicht zum Fehler geführt.
[Release] Code Snippets Manager
01/21/2011 - Coding Releases - 0 Replies
Code Snippets Manager
http://upit.cc/images/1d47d78e.jpg
Hab mich heute mal rangesetzt, und einen kleinen Manager für
Code-Snippets(Code-Fetzen) gecodet, da ich alles sortiert
in einer Anwendung wollte.
Da es sicherlich jemand nützlich finden wird, lad ich es hier mal hoch.
All times are GMT +2. The time now is 14:18 .