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 )

> Help
post Jul 16 2009, 07:31 AM
Post #1

dewll11



Newbie
*

Group: Members
Posts: 2
Joined: 30-July 08
Member No.: 701,652






hey guyz i need help with this script which is not mine i copyed it from the forums but i wanna know why dosent it press the ok button when i lvl up help ouch.gif ouch.gif

var
x, y, lvlx, lvly: integer;

function Targetwheat1 : Boolean;
begin
if(FindColor(x, y, 1232117, 0, 0, 800, 600))then result:= true //<--- copy color number over 1232117
end;

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

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

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



Procedure Harvest;
begin
if (Targetwheat1)or(Targetwheat2) 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+38);

Wait(100+random(200));
HoldMouse(x+27, y+38, true);
Wait(20+random(50));
ReleaseMouse(x+27, y+38, true);
Wait(3000+random(500));
Wait(11000); //<--- However long it takes you to chop wheat!
end;

function nowheat : 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
harvest;
repeat
if (nowheat) then
harvest;
if(nextwheat1)or(nextwheat2)then
harvest;
if(FindLevel)then
LevelUp;
until(false);
end.
Go to the top of the page
 
+Quote Post

Posts in this topic
dewll11   Help   Jul 16 2009, 07:31 AM
harjukki   I'll edit the code so it will press lvl up msg...   Sep 28 2009, 06:20 PM
dewll11   thanx so much   Dec 5 2009, 10:25 AM


Reply to this topicStart new topic

 


> Board Footer
Time is now: 21st March 2010 - 10:32 PM