Live Help
Membership
You are a guest!

Register Today!

Log In
Reset Password
Game Network
Community Forum

MMO GAME LIST
World of Warcraft
Age of Conan
Anarchy Online
Archlord
Cabal Online
City of Heroes
City of Villains
Dark Age of Camelot
Darkfall Online
Diablo 2
Dungeons and Dragons
Dofus
Eve Online
Everquest 2
Final Fantasy XI
Guild Wars
Hero Online
Knight Online
Lineage 2
Lord of the Rings Online
Maple Story
Ragnarok Online
Runescape 2
Second Life
SilkRoad Online
Star Wars Galaxies
Tibia
Warhammer Online

FPS GAME LIST
Call of Duty
Combat Arms
Counter Strike
Halo

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Alchemist/fight bot
post Sep 17 2009, 10:19 AM
Post #1

xForsa



In Training
Group Icon

Group: Elite Members
Posts: 26
Joined: 23-July 09
Member No.: 959,241






hey everyone!
i've got a little problem with my script, Everytime i execute it it says theres something wrong with the Infight part.

CODE
var
x, y, lvlx, lvly, finish_fight: integer;

const
monster = 10258019; // color of monster you want to attack
player = 218; // player color(mine was xelor with a red star.
Resource1= 12250874; // The Paste the Colour of Resource 1 over the Blue Numbers
Resource2= 10014947; // The Paste the Colour of Resource 2 over the Blue Numbers
Resource3= 10277342; // The Paste the Colour of Resource 3 over the Blue Numbers
CollectTime= 11200; // If needed(eg.it takes 12 or more second to collect the resource)paste new time over the Blue Numbers

function Targetresource1 : Boolean;
begin
if(FindColor(x, y, Resource1, 0, 0, 800, 600))then result:= true
end;

function Targetresource2 : Boolean;
begin
if(FindColor(x, y, Resource1, 0, 0, 800, 600))then result:= true
end;

function Targetresource3 : Boolean;
begin
if(FindColor(x, y, Resource3, 0, 0, 800, 600))then result:= true
end;

function Nextresource1 : Boolean;
begin
if(FindColor(x, y, Resource1, 0, 0, 800, 600))then result:= true
end;

function Nextresource2 : Boolean;
begin
if(FindColor(x, y, Resource2, 0, 0, 800, 600))then result:= true
end;

function Nextresource3 : Boolean;
begin
if(FindColor(x, y, Resource3, 0, 0, 800, 600))then result:= true
end;



Procedure Collect;
begin
if (Targetresource1)or(Targetresource2)or(Targetresource3) then
MoveMouseSmooth(x, y);
Wait(100+random(200));
HoldMouse(x, y, true);
Wait(20+random(50));
ReleaseMouse(x, y, true);
Wait(100+random(200));
MoveMouseSmooth(x+27, y+48);

Wait(100+random(200));
HoldMouse(x+27, y+48, true);
Wait(20+random(50));
ReleaseMouse(x+27, y+48, true);
MoveMouseSmooth(1230, 129);
Wait(3000+random(500));
Wait(CollectTime);
end;

Procedure Infight;
begin
repeat
if(findcolor(x, y, 26367, 670, 562, 725, 576))then // if fight starts searching for ready button
   begin
       movemousesmooth(x+5,y+5);  // click on ready button
       wait(100+random(200));
       holdmouse(x+5,y+5,true);
       wait(20+random(50));
       releasemouse(x+5,y+5,true);
       wait(300);

       movemousesmooth(541,370);  // get in position
       wait(100+random(200));
       holdmouse(541,370,true);
       wait(20+random(50));
       releasemouse(541,370,true);
       wait(300);

       movemousesmooth(486,345);  // walk 2 tiles forward
       wait(100+random(200));
       holdmouse(486,345,true);
       wait(20+random(50));
       releasemouse(486,345,true);
       wait(300);

       movemousesmooth(708, 591);  // click on teleport
       wait(100+random(200));
       holdmouse(708, 591,true);
       wait(20+random(50));
       releasemouse(708, 591,true);
       wait(200);

       movemousesmooth(328,264);  // target teleport
       wait(100+random(200));
       holdmouse(328,264,true);
       wait(20+random(50));
       releasemouse(328,264,true);
       wait(300);

       movemousesmooth(498,695);  // click on next turn button
       wait(100+random(200));
       holdmouse(498,695,true);
       wait(20+random(50));
       releasemouse(498,695,true);
       wait(5000);
  end;

function noresource : Boolean;
begin
if(FindColor(x, y, 1683891, 0, 0, 800, 600))then result:= false
end;

function FindLevel : boolean;
begin
result := false;
  If(FindColor( lvlx, lvly, 25087,0,0,500,500))then result := true
end;

Procedure LevelUp;
begin
If(FindLevel= true)then
MoveMouseSmooth(lvlx, lvly+2);
Wait(100+random(100));
ClickMouse(lvlx, lvly+2, true);
Wait(100+random(100));
end;

begin
Collect;
repeat
if (noresource) then
Collect;
if(nextresource1)or(nextresource2)or(nextresource3)then
Collect;
if(FindLevel)then
LevelUp;
until(false);
end.

I hope you guys can help me grin.gif.
Go to the top of the page
 
+Quote Post
post Sep 17 2009, 10:19 AM
Post #

Elite Membership


To get the most out of MmorpGuides.com, please view the following information.












Already a Member?

With an Elite Membership you can. . .

  • Reach the highest levels in no time
  • Have one of the most powerful characters in your game
  • Become a valuable member of your clan or guild
  • Become part of a caring and helpful community of gamers

Elite Members enjoy. . .

  • 1,660+ Cheats - tons of working, high quality cheats
  • 1,550+ Guides - We have one of the most comprehensive collections of guides on the net
  • 539+ Bots and macros - Level up quickly, even while you sleep!
  • A chance to win free prizes such as an amazing Playstation 3! And free gold and powerleveling!

No risk, only huge benefits!

  • Your investment can pay for itself in days!
  • Earn gold that you can trade for real money
  • Sell your high level items and characters for a profit!
  • Get tons of expensive guides and cheats in one spot for one small price

Money Back Guarantee!

Not 100% satisfied? We have a 24 hour, money-back guarantee! Contact us for a prompt and courteous refund!

Upgrade to an Elite Membership now!

Not A Member?

Join today and get access to all these great features!

  • Access to newly submitted cheats and guides
  • Download newly submitted bots and macros
  • Chat about your favorite game
  • Submit working content for a FREE Elite Membership!
  • And lots more!
Register Today!
Go to the top of the page
 
Quote Post
post Sep 17 2009, 12:32 PM
Post #2

lilwitte



SCAR Coder
Group Icon

Group: Elite Members
Posts: 318
Joined: 22-June 09
From: Deep in my Coding Cave. But don't feel bad! After all, it's on the darkside, and we have cookies!
Member No.: 934,937






first of all, is that a xelor bot? I don't understand where your getting the error from, and I also don't see how that'd kill the enemy


--------------------
SCAR Coder

DofusBaseV1
[||||||||||]

Want to make progress bars like me?
CODE
use this base one as an example!
[[color="#00FF00"]|[/color][color="#FF0000"]|||||||||[/color]]
Go to the top of the page
 
+Quote Post
post Sep 17 2009, 12:47 PM
Post #3

margreg



SCAR Coder
Group Icon

Group: Elite Members
Posts: 183
Joined: 26-April 09
Member No.: 893,649






more of that, I see when fight starts you place your xelor at a specified position, but how can u know where to put him, before fight starts you got red squares to put your xelor and the enemy has blue one, BUT it is never the same. one time you got the red square side, and another time you may have the blue one .
Go to the top of the page
 
+Quote Post
post Oct 1 2009, 02:15 PM
Post #4

harjukki



In Training
**

Group: Members
Posts: 16
Joined: 22-September 09
Member No.: 1,006,049






is that whole script cos i tried to see whats the problem but i dont know whats wrong
Go to the top of the page
 
+Quote Post
post Jan 31 2010, 09:41 PM
Post #5

xForsa



In Training
Group Icon

Group: Elite Members
Posts: 26
Joined: 23-July 09
Member No.: 959,241






QUOTE(harjukki @ Oct 1 2009, 03:15 PM) *
is that whole script cos i tried to see whats the problem but i dont know whats wrong

I found that the error was with my Scar installation. it's over now.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 


> Board Footer
Time is now: 18th March 2010 - 11:40 AM