Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 12:36

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

Advertisement



Porting Code Help

Discussion on Porting Code Help within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
IKillBabies's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 184
Received Thanks: 28
Porting Code Help

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  
Old 04/03/2009, 12:41   #2
 
Atheuz's Avatar
 
elite*gold: 81
Join Date: Jul 2005
Posts: 1,921
Received Thanks: 2,239
You can run the script with this


You need to adjust the Coordinates (Or run it in 800*600 Windowmode, on a 1680*1050 resolution. Need to drag the window on the top left) and Adresses too.

Target = is a boolean adress that will give you 1 if you hover with the mouse over an enemy. (To eliminate unecessary pixel checks)

TargetSelected = A boolean aswell, gives you 1 if you targetted a mob and 0 if you have no current target.

It's a silly bot though, I wouldn't recommend using it to level or farm items. Just to see how it works.
Atheuz is offline  
Old 04/03/2009, 15:15   #3
 
IKillBabies's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 184
Received Thanks: 28
Quote:
Originally Posted by Atheuz View Post
You can run the script with this


You need to adjust the Coordinates (Or run it in 800*600 Windowmode, on a 1680*1050 resolution. Need to drag the window on the top left) and Adresses too.

Target = is a boolean adress that will give you 1 if you hover with the mouse over an enemy. (To eliminate unecessary pixel checks)

TargetSelected = A boolean aswell, gives you 1 if you targetted a mob and 0 if you have no current target.

It's a silly bot though, I wouldn't recommend using it to level or farm items. Just to see how it works.
Ah, well very much thanks.
IKillBabies is offline  
Reply


Similar Threads Similar Threads
B> DriftCity CBS Code | S> War Rock Code / Bounty Bay Code etc.
10/05/2010 - Trading - 1 Replies
Hi, wie schon im Titel beschrieben. In der CBS vom November gab es Bonusodes für mehrere Spiele. Ich benötige DriftCity Codes. Kann sonst für alle anderen Spiele die Codes biten, einige auch doppelt. Hier eine Liste der Spiele und Bonusaktionen: - (2x) War Rock - (2x) War of Titans - (2x) World of Warcraft - (1x) Warhammer Online - (1x) Bounty Bay online
[Guide] Animation Porting
03/30/2010 - World of Warcraft - 0 Replies
Tools needed: *ModIt: http://www.file-upload.net/download-2214279/ModIt. 7z.html *ChangeAnimations.py: http://code.google.com/p/pym2/source/browse/trunk/ examples/ChangeAnimations.py *PyM2: http://code.google.com/p/pym2/source/browse/trunk/ *A Python Interpreter *Notepad++ or any other texteditor Step 1: Find the correct Bones Open ModIt, navigate to the correct model, then click View->Show model control, enable Bones, disable Render.
Porting from the North Dock to Roc Mountain. I TYPED THE CORRECT CODE!
03/09/2009 - Silkroad Online - 1 Replies
Hey guys, This is the code i pasted in the script. It´s only the "portpart": "-2625","379","1" "cmd","","" "Inject","745A","6802000 0" "Inject","7495","6802000 00216000000"
.:AgBot:. bot isn't porting to roc
08/22/2008 - Silkroad Online - 4 Replies
hey i want to bot with agbot at roc but somehow it doesn't wanna port from hotan north dock to roc north dock this is my script; "cmd","","" "cmd","","" "cmd","","" "cmd","","" "ConditionScript","114;10;100" ;,"1" "98","53","1"



All times are GMT +1. The time now is 12:36.


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.