[SOURCE]INT-Server

03/15/2009 13:08 kalhacker9000#121
PHP Code:
    int mobsx;
struct SMob
{
DWORD MID;
DWORD X;
DWORD Y;
DWORD Z;
BYTE Classe;
DWORD HP;
};
SMob Mob[500]={0};

int MonsterI;
if (
monsterap == 1)
{
if (
buf2[2] == 0x24)
{
//mob apear
int skillx=10;
for (
MonsterI=0;MonsterI<1;MonsterI++)
{
//check if x =0
if (Mob[MonsterI].== 0)
{
DWORD id;
memcpy((void*)&id,(void*)((DWORD)buf2+3+2),4);
Mob[MonsterI].MID=id;
memcpy((void*)&(Mob[MonsterI].Classe),(void*)((DWORD)buf2+3),2);
memcpy((void*)&(Mob[MonsterI].X),(void*)((DWORD)buf2+3+4+2),4);
memcpy((void*)&(Mob[MonsterI].Y),(void*)((DWORD)buf2+3+4+2+4),4);
memcpy((void*)&(Mob[MonsterI].HP),(void*)((DWORD)buf2+3+4+2+4+4+1+1),2);
//printf("mob move: id%d classe %d X %d Y %d HP %d\n",id,Mob[MonsterI].Classe,Mob[MonsterI].X,Mob[MonsterI].Y,Mob[MonsterI].HP);
mobsx+=1;

                    
//set_color(Yellow);
                   //for(skillx=1;skillx>0;skillx--)
            
{
printf("MobID: %d\n",id);
if (
arattack == 1)
{
if ((
i=2) && (type==0x0f))
printf("Shot done...Attackhack started...\n");
{
SendPacket(0x10,"bbd",3,1,id);//pus
printf("Stagger...\n");
Sleep(800);// du musst ne cooldown machen sonst 0 dmg
SendPacket(0x10,"bbd",3,1,id);//pus
printf("Stagger...\n");
Sleep(800);
SendPacket(0x10,"bbd",3,1,id);//pus
printf("Stagger...\n");
}

einmal so probiert er zeigt zwar an Stagger... aber er greift kein mob an und sobald ich Archer ins cmdfenster eingebe hängt sich das spiel auf (sleep) und er schreibt tausendmal stagger rein...
habs auch unter case "d" versucht
PHP Code:
case 'd'//DWORD
temp =(DWORD)va_argargsDWORD);
printf("%d: %d\n",i+1,temp);
/*Monsterhaun = temp;  // soltle die monster id sein
printf("MobID: %d\n",Monsterhaun);
if (arattack == 1)
{
if ((i=2) && (type==0x0f))
printf("Shot done...Attackhack started...\n");
{
SendPacket(0x10,"bbd",3,1,Monsterhaun);//pus
printf("Stagger...\n");
Sleep(800);// du musst ne cooldown machen sonst 0 dmg
SendPacket(0x10,"bbd",3,1,Monsterhaun);//pus
printf("Stagger...\n");
Sleep(800);
SendPacket(0x10,"bbd",3,1,Monsterhaun);//pus
printf("Stagger...\n");
}
}*/ 
da kriegt er aber die monsterid nicht raus auch wenn ich anstatt Monsterhaun id eingebe wie oben auch....
ich weiß nicht was ich falsch mache nur solangsam kotzt mich das an :D

edit:
wenn ich die packets sniffe bekomm ich bei normalem attack kein packet ausgegeben also nicht packet: 0x0f type: bdd
2
3

bekomm ich nicht..vllt liegts daran?
03/15/2009 13:14 BorSti#122
Quote:
Originally Posted by bloodx View Post
if ((i=2) && (type==0x0f))
{
SendPacket(0x0F,"bdd",1,Monsterhaun,lastweapon);
SendPacket(0x10,"bbd",3,1,Monsterhaun);//stagger
Sleep(800);// du musst ne cooldown machen sonst 0 dmg
SendPacket(0x0F,"bdd",1,Monsterhaun,lastweapon);
SendPacket(0x10,"bbd",3,1,Monsterhaun);//stagger
Sleep(800);
SendPacket(0x0F,"bdd",1,Monsterhaun,lastweapon);
SendPacket(0x10,"bbd",3,1,Monsterhaun);//stagger
}
glaub 2 = monsterID...
also die sleeps würde ich nicht machen - dass "laggen" stört mich tierisch deswegen nehme ich lieber weniger dmg inkauf oder ich klicke den mob einfach nochmal an...


so

Code:
case 'd': //DWORD
temp =(DWORD)va_arg( args, DWORD);
printf("%d: %d\n",i+1,temp);


if (arattack == 1)
{
if ((i=2) && (type==0x0f))
printf("Shot done...Attackhack started...\n");
{
[B]Monsterhaun = temp;  // soltle die monster id sein
printf("MobID: %d\n",Monsterhaun);[/B]


SendPacket(0x10,"bbd",3,1,Monsterhaun);//pus
printf("Stagger...\n");
Sleep(800);// du musst ne cooldown machen sonst 0 dmg
SendPacket(0x10,"bbd",3,1,Monsterhaun);//pus
printf("Stagger...\n");
Sleep(800);
SendPacket(0x10,"bbd",3,1,Monsterhaun);//pus
printf("Stagger...\n");
}
}
so das geht nun schon mal


jetzt das andere - eigendlich ist das komisch - du solltest eigendlich den stagger gar net sehen - sollte aussehen wie ein normaler schuss.... vergleich mal bitte deine id und die monsterid aus case d ob es die selben zahlen sind
03/15/2009 13:19 kalhacker9000#123
okay dann werd ich erstmal eine rauchen gehen jetzt....^^
03/15/2009 13:28 trullermann#124
denke ma das mit dem expell habt ihr noch nicht in griff bekommen wa? xD
03/15/2009 13:33 kalhacker9000#125
nö aber das mit expell ka :D ich bekomm selten expell iwi....also wenn dann erst nach 2-3 stunden manchmal auch schon nach 15 min
naja solange kein block ist mir das auch egal
momentan teste ich ja eh noch :D sobald ich das hinbekommen habe mit attackhack kram werde ich wieder mehr zeit in kal investieren

@Borsti
PHP Code:
case 'd':
                    
//temp=va_arg( args, DWORD);
                    
printf(" %d: %d\n",i+1,va_argargsDWORD));
                    
temp =(DWORD)va_argargsDWORD);
                    
//printf("d %d: %d\n",i+1,temp);
                    
if (type == 0x41)
                    {
                        
wearID temp;
                    }
                    if (
type == 0x21)
                    {
                        
useID temp;
                    }
                    if ((
i==0) && (type ==0x1a))
                    {
                        
dropID temp;
                        
printf("DropID: %d \n",dropID);
                    }
                    if (
type == 0x0f)
                    {

                        
monsterID=temp;
                        
printf("\nMonsterid: %d \n ",monsterID);

                            
                                if (
arattack1 == 1)
                                {    
=monsterID;
                                    
SendPacket(0x10,"bbd",3,1,monsterID);
                                    
SendPacket(0x10,"bbd",1,1,monsterID);
                                    
//SendPacket(0x10,"bbd",1,1,b);
                                

03/16/2009 18:41 rolumbo#126
Weiss jmd was abgefragt wird um die dmg von nem Skill in Abhängigkeit von der Aufladezeit
zu bestimmen?Zeit zwischen 2 SkillExecut Packets oder Zeit zwischen
AnimationPacket und SkillExecute Packet oder noch was anderes?
(wird wohl das 2te sein,aber möchte mir sicher sein^^)
Is mir grad aufgefallen,dass ich weniger dmg mach als ich bei höheren mobs gebotet hab :S
03/19/2009 04:43 Kareo#127
mal ne nub frage..
wie kann ich nun damit was senden etc?!
habe das CMD Fenster offen und Kal auf Window mode
03/19/2009 13:04 BorSti#128
Quote:
Originally Posted by ProGAYmer View Post
mal ne nub frage..
wie kann ich nun damit was senden etc?!
habe das CMD Fenster offen und Kal auf Window mode
dann bist du schon am senden(ping xD)

schau dir den quelltext an da musste deine commands erstmal definieren und sagen was sie senden sollen oder verstehe ich dich nun falsch und du denkst weil du nen cmd nun hast kannste zb 0x20 s asd eingeben und du sendest was?

schau dir mal p server sourcen an wo einige sachen drinne stehen ... dann schau dir mal die struktur an und sonst... brauchste neue offsets für recv und send funktion
03/24/2009 15:54 ruslanxan12#129
what all this do?
03/24/2009 20:51 Thiesius#130
Hey guys,
Just a little question about this source. I'm getting expelled after some time (It's dynamic 20mins~2Hours) on int server. Not sure that reason is this Packet Processor. I have tried run KalOnline without it and seems nothing happend. So I would like to ask you for your experience with it.

Thank you
03/25/2009 13:57 kalhacker9000#131
that's normal...i'm not sure about that but trullerman have the same problem and i think all other ppl who use this source-code have the same problem. i think that comes from the source ^^ because hs detected that someone send packets more than other players (??) and so you get a kick/expelled.
not sure 'bout that ..
03/25/2009 14:32 Thiesius#132
Yea, but your explanation doesn't make sense anyway. Some players does more thing at same time so their clients are sending more packets. I already tried remove functions for hacking (Autopick, SoB hack, Mixing etc.). Only thing I left was Recieve/Send hook... I just sat in middle of temp, minimalized game and then went to do something else. After 2 hours I switched back to client and I was expelled again. Another intresting thing is that you won't get detected right after engine start (If it's really caused by HShield).
03/25/2009 21:19 trullermann#133
if stoped working on the source for now with bigger try because of this expell problem


by my tests i have come so far that the reason of getting expelled is not only 1 reason it are actually 2.

1st Hackschield
its possible to delay the time of getting expelled for 1h+ each time so not anymore randomly

2nd server protection
some sends seem to get logged and then expelled


anyways doesnt matter what way u get expelled there is change of getting blocked the account
03/26/2009 16:39 Thiesius#134
It has to be detection on client side.... Try to remove all packets from source.... And then run the game.... You will get expelled anyways after some time. It's random.... I sent .dll (with hooks only) to my friend. He has been expelled after 2.5+ hours. I was expelled after 48 mins first time and 92 mins second time. But still.... HShield usually doesn't expell you. It close the client by force automatically. It's just weird :). Maybe someone more experienced could help us :)
03/27/2009 12:54 kalhacker9000#135
kal hat ein neues update rausgebracht .... leider wird bei mir nun kein packet mehr ausgegeben
alles andere funktioniert aber noch...außer der attackhack
da der ja nur auf packets wartet
mhmm...einer ne idee? bloodx meinte mit SearchPattern kriegt man immer die neuesten offsets also kanns daran ja nich liegen oder?