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
> Randomized Running Script, Incorporate this script into your own!
post Apr 20 2009, 01:42 AM
Post #1

n8t3d0gg



SCAR Coder
****

Group: Members
Posts: 82
Joined: 29-February 08
Member No.: 576,597






Hey mmorpguidians,

Just wanted to post this new script I wrote that will make your character run around at random. This script in itself is useless, but incorporated with a farming script for example, if the map you are farming runs out of grain, you could use this script to have your character search for a new map to farm!

Enjoy! wink.gif

CODE
program search;

var
  x, y, i, count: integer;

const
  waypoint = 772351;

function top_wp : boolean;
begin
  if(FindColor(x, y, waypoint, 0, 0, 1024, 66))then result:= true
end;

function right_wp : boolean;
begin
  if(FindColor(x, y, waypoint, 940, 0, 1024, 768))then result:= true
end;

function left_wp : boolean;
begin
  if(FindColor(x, y, waypoint, 0, 0, 92, 768))then result:= true
end;

function bottom_wp : boolean;
begin
  if(FindColor(x, y, waypoint, 0, 564, 1024, 768 ))then result:= true
end;

function switching_map : boolean;
begin
  if(FindColor(x, y, 0, 419, 165, 420, 166)and
  FindColor(x, y, 0, 635, 470, 636, 471))then result:= true
end;

function error : boolean;
begin
  if(count > 3000)then result:= true
end;

procedure click;
begin
  count:= 0;
  MoveMouseSmooth(x, y);
  Wait(100+random(200));
  HoldMouse(x, y, true);
  Wait(20+random(50));
  ReleaseMouse(x, y, true);
  repeat
    wait(1);
    count:= count + 1;
  until(switching_map) or (error)
  repeat
    wait(1);
  until(not(switching_map))
end;

procedure move_top;
begin
  if(top_wp)then
  begin
    click;
    i:= 1;
    if(error)then
    begin
      i:= 0;
    end;
  end;
end;

procedure move_right;
begin
  if(right_wp)then
  begin
    click;
    i:= 2;
    if(error)then
    begin
      i:= 0;
    end;
  end;
end;

procedure move_left;
begin
  if(left_wp)then
  begin
    click;
    i:= 3;
    if(error)then
    begin
      i:= 0;
    end;
  end;
end;

procedure move_bottom;
begin
  if(bottom_wp)then
  begin
    click;
    i:= 4;
    if(error)then
    begin
      i:= 0;
    end;
  end;
end;

procedure search;
begin
  case(Random(4))of
    0: begin
         if(not(right_wp or left_wp or bottom_wp))then
         begin
           Move_top;
         end else
         begin
           if(i = 4)then
           begin
           end else
           begin
             Move_top;
           end;
         end;
       end;
    1: begin
         if(not(top_wp or left_wp or bottom_wp))then
         begin
           move_right;
         end else
         begin
           if(i = 3)then
           begin
           end else
           begin
             move_right;
           end;
         end;
       end;
    2: begin
         if(not(top_wp or right_wp or bottom_wp))then
         begin
           move_left;
         end else
         begin
           if(i = 2)then
           begin
           end else
           begin
             move_left;
           end;
         end;
       end;
    3: begin
         if(not(top_wp or right_wp or left_wp))then
         begin
           move_bottom;
         end else
         begin
           if(i = 1)then
           begin
           end else
           begin
             move_bottom;
           end;
         end;
       end;
  end;
end;

begin
  repeat
    search;
  until(false)
end.
Go to the top of the page
 
+Quote Post
post Apr 20 2009, 01:42 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 Jun 6 2009, 09:02 PM
Post #2

r3verse



Newbie
*

Group: Members
Posts: 2
Joined: 31-March 09
Member No.: 873,538






I will certainly use this and learn of it, thanks.
Go to the top of the page
 
+Quote Post
post Oct 28 2009, 09:53 PM
Post #3

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






well nate, i think I could eventually think of a few uses for scraps of code from this, but random running just doesnt work as great as it sounds imo. Though the codes you used to accomplish this (the random case one for example) have MANY other uses...


--------------------
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

Reply to this topicStart new topic

 


> Board Footer
Time is now: 20th March 2010 - 10:34 AM