Register for your free account! | Forgot your password?

You last visited: Today at 20:25

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

 

Programming Question

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 184
Received Thanks: 28
Programming Question

Hey,

I have been trying to port some code into any language, and not having any luck at all. A user on here (Atheuz) gave me some old source to an old bot he used to use, but my knowledge is not far enough to fill in the blanks. I tried porting in C++, but had too much trouble.

I was wondering if anyone could try this for me, I would greatly appreciate it.
Basically it's a bot for Phoenix Dynasty Online, that simply right clicks monsters. The memory addresses will have to be adjusted too. But if you could just port it into whatever language you want, and post the code, that would be great. Don't worry about what the window name is and what not, I can adjust all that. I can even do the memory adresses. I think :P

Thanks so very much

Code:
Target_adr = 0x0094ABD0;
Target_offset = 316;
TargetSelected_adr = 0x0094ABD4;
TargetSelected_offset = 316;

function CheckTarget()
    Target = memoryReadIntPtr(proc, Target_adr, Target_offset);
   if( Target == 1 and TargetSelected == 0 ) then
   mouseRClick();
   rest(10);
   mouseSet(511, 440);
   mouseSet(511, 270);
    end
   
    TargetSelected = memoryReadIntPtr(proc, TargetSelected_adr, TargetSelected_offset);
    if( TargetSelected == 1 ) then
    rest(100);
    end

    if( Target == 0 and TargetSelected == 0 ) then
    X = math.random(1000);
    Y = math.random(700);
    if( X > 400 and X < 565) then
   mouseSet(0,0);
    end
    if( Y > 285 and Y < 439 ) then
    mouseSet(0,0);
    end
    mouseSet(X, Y);
    rest(10);
    end
end


function main()
  attach( findWindow("FW Client - Beta - Final : *") );
  proc = openProcess( findProcess("FW Client - Beta - Final : *") );
  setPriority(PRIORITY_HIGH);

  while(true) do
  CheckTarget();
  rest(2);
  end
end

startMacro(main, true);



IKillBabies is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Programming question
Hello Elitepvpers! I see that ppl can make bot's that are undetectable. Could someone give me a hint or explain to me how to program a...
10 Replies - 9Dragons
Question about programming
i am wanting to make some programs for conquer and i program in vb6 and i was wondering if anyone would be willing to share and tutorials with me and...
0 Replies - CO2 Programming



All times are GMT +2. The time now is 20:25.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.