Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 15:27

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

Advertisement



[Help] Again Bot/Coords

Discussion on [Help] Again Bot/Coords within the Kal Online forum part of the MMORPGs category.

Reply
 
Old 05/10/2009, 09:48   #16
 
elite*gold: 0
Join Date: Mar 2008
Posts: 96
Received Thanks: 3
kalhacker.. ich wollte helfen. und ich hab extra geschrieben, das du darauf achten musst wenn du kh11 benutzt. Wenn nicht dann is ja alles ok.. Wollte euch auf c++ ebene nur bissl helfen, weil ich damit garantiert mehr Erfahrung hab als ihr.
Grabgewalt is offline  
Old 05/10/2009, 10:24   #17
 
kalhacker9000's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 648
Received Thanks: 342
Quote:
Originally Posted by Grabgewalt View Post
kalhacker.. ich wollte helfen. und ich hab extra geschrieben, das du darauf achten musst wenn du kh11 benutzt. Wenn nicht dann is ja alles ok.. Wollte euch auf c++ ebene nur bissl helfen, weil ich damit garantiert mehr Erfahrung hab als ihr.
ist auch in ordnung war gestern etwas bad drauf.
entschuldige^^
kalhacker9000 is offline  
Old 05/10/2009, 17:53   #18
 
kalhacker9000's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 648
Received Thanks: 342
PHP Code:
int difx=Mob[MonsterI].X-Player[0].X;
int dify=Mob[MonsterI].Y-Player[0].Y;
float MobRange=difx*difx+dify*dify;
DWORD MobRangesqrtsqrt(MobRange);
printf("MobRange: %d",MobRangesqrt); 
so geht das ja nicht....wenn ich das
PHP Code:
float MobRange=difx*difx+dify*dify
in
PHP Code:
DWORD MobRange=difx*difx+dify*dify
ändere geht es schon....dann kann ich aber die sqrtrange nicht ausrechnen dann bekomm ich eine fehlermeldung das die funktion überladen ist.
So float geht aber auch nicht da ich engine.exe bekomm.....was für alternativen gibt es?
kalhacker9000 is offline  
Old 05/10/2009, 20:05   #19
 
meak1's Avatar
 
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
du hast wahrscheinlich in deiner MonsterI kein break drin er geht alle 999999999 durch und deswegn gibs dann nen error glaube
meak1 is offline  
Old 05/10/2009, 20:39   #20
 
kalhacker9000's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 648
Received Thanks: 342
break ist schon drinne....am ende.
so ich hab das jetzt doch hinbekommen iwi kA wie aber naja es haut hin mit Float....naja gut wenn ich printf("Range: %d\n",range); mach dann kommt immer 0 ich denk mal das hängt mit der Warnung zusammen das int nicht in float umgewandelt werden kann und möglicher datenverlust oder so....das steht da immer.
gut ich bekomm trotzdem ein tempx und tempy raus und er bewegt sich auch...allerdings keine ahnung ob jetzt zum mob er macht nur ein paar schritte muss ich da eine while schleife mit einbauen oder GetTickCount?

hier dann nochmal der code:
PHP Code:
int difx=Mob[MonsterI].X-Player[0].X;
printf("difx: %d\n",difx);
int dify=Mob[MonsterI].Y-Player[0].Y;
printf("dify: %d\n",dify);
float range=(difx*difx+dify*dify)*1.0;
printf("range: %d\n",range);
DWORD MobRangesqrtsqrt(range);
unsigned char tempx=(double(difx)/MobRangesqrt)*30;
unsigned char tempy=(double(dify)/MobRangesqrt)*30;
                    
printf("tempx %d, tempy %d\n",tempx,tempy);
Send_To_Server(0x15,"bbb",tempx,tempy,0);
printf("Walk!\n"); 
ich hab überall prints mit eingebaut um zu checken was abgeht xD
kalhacker9000 is offline  
Old 05/10/2009, 21:56   #21
 
elite*gold: 0
Join Date: Mar 2008
Posts: 96
Received Thanks: 3
wenn du über printf nen float werden ausgeben willst darfst du natürlich nicht %d benutzen sondern musst %f nehmen.
Grabgewalt is offline  
Thanks
1 User
Old 05/10/2009, 21:58   #22
 
kalhacker9000's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 648
Received Thanks: 342
Quote:
Originally Posted by Grabgewalt View Post
wenn du über printf nen float werden ausgeben willst darfst du natürlich nicht %d benutzen sondern musst %f nehmen.
oh.....xD
thx!
kalhacker9000 is offline  
Old 05/10/2009, 22:00   #23
 
elite*gold: 0
Join Date: Mar 2008
Posts: 96
Received Thanks: 3
Und du musst das ganze natürlich in eine Schleife packen. Und diese Schleife dann in einen extra thread, sonst schmiert dir kal wahrscheinlich ab. Und innerhalb des threads benutzt man dann die GetTickCount() funktion, was dann der Ersatz für Sleep wäre. Du musst ja zwischen den Schritten die der char läuft etwas Zeit lassen sonst läuft er zu schnell.

nochmal zu printf:
da findest du die ganzen specifier.
Grabgewalt is offline  
Reply


Similar Threads Similar Threads
Screen Coords <--> Map Coords using autoit
04/21/2009 - CO2 Programming - 1 Replies
Someone might like this. I provide an example of how to convert screen coords into map coords and visa versa. So that if your using autoit or some other mouse clicking macro tool, then you can get it to accurately get the mouse coordinates to click to move to a map-coordinate location. This method works by using autoit to look at the current player coordinates (_MemoryRead()), and performing some clicks on the screen to take map coordinate samples for mouse clicks in different locations....
Coords?
12/31/2007 - WoW Private Server - 1 Replies
Hallo , ich wollte mal fragen ob es eine Datei gibt in der die Koordinaten vom instanced Black temple + hyial drinnen sind . ich zocke auf dem Tyraels easy ascent Serverpack , würde halt gern mal bt und hyial machen :) mfg Van Helsing
Coords,
11/16/2006 - Flyff - 4 Replies
Can someone give me a huge list of coordinates in JFLYFF?
MC coords
08/17/2005 - World of Warcraft - 2 Replies
hab eine frage/bitte :) suche hilfe für das kleine prequest für mc für das quest muss man ja durch das gesammte brd reisen bis zum eingang der raid instanz für MC in BRD und rein und ein kernfragment holen, hat jmd die coords vor dem raidportal in brd? wäre sehr hilfreich ^^
BHW Coords von ..
07/31/2005 - World of Warcraft - 9 Replies
Moin Weiss jemand die BHW Coords der "Of love and Family" Quest in Startholme? Ziel wäre es so neben das Gemälde zu porten, das es lootbar ist = Quest rdy. http://www.thottbot.com/?q=2019 thx



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


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.