|
You last visited: Today at 00:24
Advertisement
Mob appear code, problem with bot IQ
Discussion on Mob appear code, problem with bot IQ within the Kal Online forum part of the MMORPGs category.
08/28/2009, 23:27
|
#1
|
elite*gold: 0
Join Date: Jul 2009
Posts: 87
Received Thanks: 3
|
Mob appear code, problem with bot IQ
Hello,
I've got problem with my bot IQ. Sometimes he is trying to attack mobs on map that are not visible (used 2nd kal client to check it).
Sometimes he dont see the nearest mob near him. Especially when aggresive mobs attack my bot.
I've filtered the mob list and when X or Y are inproper like:
Code:
Mob: ID 19351432 X 233 Y 256555 Z 0 HP 207
Mob: ID 1483628888 X 16805481 Y 260840 Z 0 HP 3
Mob: ID 19298786 X -66 Y 257724 Z 0 HP 243
My function deletes this mobs from SMob structure.
I've also filtered the mob list from same IDs
Code:
Mob: ID 19302355 X 261352 Y 255760 Z 0 HP 207
Mob: ID 19302355 X 261352 Y 255760 Z 0 HP 207
Mob: ID 19302355 X 261352 Y 255760 Z 0 HP 207
Mob: ID 19724907 X 262477 Y 256524 Z 0 HP 314
Mob: ID 19655734 X 262432 Y 257649 Z 0 HP 168
Mob: ID 19655734 X 262432 Y 257649 Z 0 HP 168
Its my mob appear code:
PHP Code:
if (packet[2] == 0x33) { for (inti=0;i<500;i++) { //check if x =0 if (Mob[i].X == 0) { DWORD id; memcpy((void*)&id,(void*)((DWORD)packet+3+2),4); Mob[i].MID=id; memcpy((void*)&(Mob[i].Classe),(void*)((DWORD)packet+3),2); memcpy((void*)&(Mob[i].X),(void*)((DWORD)packet+3+4+2),4); memcpy((void*)&(Mob[i].Y),(void*)((DWORD)packet+3+4+2+4),4); memcpy((void*)&(Mob[i].HP),(void*)((DWORD)packet+3+4+2+4+4+1+1),2); for (int j=0;j<500;j++) { if (Mob[j].MID == Mob[i].MID && j!=i) { // Mob[j].MID=0; Mob[j].X=0; // delete ;O printf("FAKE ID -> Mob Deleted\n"); printf("Mob[%d].MID: %d x:%d\n",j, Mob[j].MID, Mob[i].X); printf("Mob[%d].MID: %d x:%d\n\n",i, Mob[i].MID, Mob[i].X); mobsx-=1; } } } } }
My bot also uses this code:
PHP Code:
if (Mob[i].X != 0 && Mob[i].X + 1000 > playerx && Mob[i].X-1000 < playerx && Mob[i].Y + 1000 > playery && Mob[i].Y-1000 < playery) { // mob is correct }
Could you help me with your problem?
If it help, I can make video of my bot attacking.
|
|
|
08/29/2009, 10:39
|
#2
|
elite*gold: 42
Join Date: Jun 2008
Posts: 5,426
Received Thanks: 1,888
|
Well, looks like you completly forgot about mob_move and mob_attack =P
Most ppl got the problem with attacking invisible mobs =P Adding a max time for killing a mob is probably the easiest way to fix it.
|
|
|
08/29/2009, 14:12
|
#3
|
elite*gold: 0
Join Date: Jul 2009
Posts: 87
Received Thanks: 3
|
Forgot to mention. I've got also implemented mob_move code that works well .
What you mean by mob_attack? 0x3E?
I've got already max time for killing mob, but its annoying when my bot slows down.
|
|
|
08/29/2009, 16:46
|
#4
|
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
|
Quote:
Originally Posted by Xorg
Forgot to mention. I've got also implemented mob_move code that works well .
What you mean by mob_attack? 0x3E?
I've got already max time for killing mob, but its annoying when my bot slows down.
|
he means your thread with attacking the monster..
|
|
|
08/29/2009, 18:49
|
#5
|
elite*gold: 42
Join Date: Jun 2008
Posts: 5,426
Received Thanks: 1,888
|
Quote:
Originally Posted by Xorg
Forgot to mention. I've got also implemented mob_move code that works well .
What you mean by mob_attack? 0x3E?
I've got already max time for killing mob, but its annoying when my bot slows down.
|
Not sure which header is the mob attack one, just sniff it.
And a max time for killing a mob won't slow down ur bot.
Do it like this:
Attack mob till dead OR timeover ;D
|
|
|
08/29/2009, 18:59
|
#6
|
elite*gold: 46
Join Date: Mar 2006
Posts: 2,589
Received Thanks: 1,198
|
0x3e = Mob attack (target that attacks you)!
|
|
|
08/29/2009, 19:03
|
#7
|
elite*gold: 0
Join Date: Nov 2008
Posts: 13
Received Thanks: 5
|
Quote:
Originally Posted by MoepMeep
Not sure which header is the mob attack one, just sniff it.
|
Yes its 0x3E, and better you do it like if packet[2]==0x3E
attack this mob first and if packet[]!=0x3E search for other packetheaders
like 0x24,mob move packet and so on (will protect your char and u will better ks other ppl so they leave your spot x)
|
|
|
08/29/2009, 22:36
|
#8
|
elite*gold: 0
Join Date: Jun 2008
Posts: 233
Received Thanks: 34
|
soo many bots and none released...fail forum
|
|
|
08/30/2009, 00:51
|
#9
|
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
|
Quote:
Originally Posted by bluepoison638
soo many bots and none released...fail forum
|
you are the fail, leecher
|
|
|
08/30/2009, 03:03
|
#10
|
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
|
but with 0x3E it sucks i think, because if u dodge his attack u dont become a packet i think.
and bluepoison u sucks, make a thread for helping if u dont understand something and u have your own bot lOL
|
|
|
08/30/2009, 10:26
|
#11
|
elite*gold: 42
Join Date: Jun 2008
Posts: 5,426
Received Thanks: 1,888
|
Even if you dodge, a mob_attack packet should be send to you, probably just the same with a different parameter =P
btw, anyone wanna send me a working source? Im too lazy
|
|
|
08/30/2009, 10:55
|
#12
|
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
|
nope moep, noone wants.
"if u dodge his attack u dont become a packet i think."
wenn du seiner attacke ausweicht wirst du kein packet xDDDDD
genau wie "i become a hamburger" XD
doch man bekommt ein packet.
|
|
|
08/30/2009, 15:02
|
#13
|
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
|
ja achne deutsches forum ftw
|
|
|
|
Similar Threads
|
vb.net - problem im code
03/16/2010 - .NET Languages - 2 Replies
Hey Leute
Um mich ein bisschen in XNA und Visual Basic umzuschauen hab ich versucht das Platform Game - Beispiel von C# XNA Game Studio zu übersetzen (gibt im inet en übersetzer, is recht leicht weil ja beide codes in einen gleichen zwischencode übersetzt werden beim compilieren)
so, nun hab ich alle klasen übersetzt und hinzugefügt, zeigt auch keine fehler an außer bei einer Zeile:
Imports System
Imports Microsoft.Xna.Framework
Imports Microsoft.Xna.Framework.Graphics
Namespace...
|
Problem With A Code
12/09/2009 - CO2 Private Server - 4 Replies
Hey guys i been trying to figure out the Weekly Pk Event for all the classes
But im not sure if i quite got it ._. heres what i got so far
#region Pk Event
if (DateTime.Now.DayOfWeek == DayOfWeek.Friday)
{
GC.MyChar.OpenWindow("Class pk war is about to begin! Will you join it?");
|
Assembly code Problem
08/19/2009 - Dekaron - 3 Replies
Hi i have the assembly code for a hack and i want to find the proper adress for the hack but when im searching in CE the assembly scan returns nothing.
Btw for the others hacks assembly scan returns something.
Why this could be happening?
thanks
Edit:thats the code im trying to get, movzx eax,word ptr
opps sorry didnt saw that questions not allowed.
|
Problem|Error CODE 2 ;(
05/05/2009 - SRO Private Server - 1 Replies
i Install Srogame ver 1.091
and Download the Media.pk2
for NEW and OLD Server Sjsro,
and I have some problem
Error CODE 2
Soemone tell me Remove the AntiVirus
i deleted and the problem was again ..
Picture :
http://www.siz.co.il/my.php?i=ngzyhjwylerf.bmp
Siz - äòìàú úîåðåú | ôúéçú âìøéåú
|
Code-Problem
02/21/2008 - General Coding - 22 Replies
Hi leute ich hab ma ne frage, weis einer von euch wie ich in einer index-Datei an geben muss, das man was downloaden kann?? weil ich will ne index schreiben, das man sich verschiedene schachen von meinem FTP ziehen kann!! ^^ nur ich weis leider den Befahl net, das das dann funzt!!
Bitte um hilfe!!
|
All times are GMT +2. The time now is 00:24.
|
|