Jump to content
BryceTheCoder

[RuneScape] I need to know some codes please (im new to this)

Recommended Posts

hey guys, just joined scar and am now tweaking some codes around trying to get used to it. sooo i play runescape and am trying to make runescape bots. I am trying to make a cannonball smelter soooooo i was wondering if anyone can give me some codes for these or examples.

 

I need:

 

-Code makes character walk someone specific

 

- Right-Click Banking (deposit, withraw)

 

-Use item on Object

 

 

Hope someone can help, thnx

Link to comment
Share on other sites

god damit:/ i tried to make one. annndd its not good at like all :'(

 

idk y, weeeellll i dont know how to make it click a color instead of a legit X and Y spot. soo that cud maybe help:(

 

 

HERE IS MY CODE:

//Script Created by: Bryce7
var x,y,BankColor,SteelBarColor:Integer;


Procedure DeclareColors;
begin
BankColor := 11066876;
SteelBarColor := 6184546;
end;


//MoveWindMouse(x,y+44,Random(6),Random(6));
//Wait(Random(99999999));




procedure MoveMouseRandom;
var x, y: Integer;
begin
 x := Random(400);
   Wait(250 + Random(150));
 y := Random(300);
   Wait(50);
 MoveWindMouse(x, y, 25, 25);
   Wait(450 + Random(350));
    Wait(9999999 + Random(999999));
end;

procedure SpinCamR;
begin
WriteLn('Spinning camera to the right');
SendArrowSilentWait(1, Random(800));
end;

procedure Walk2Furnace;
begin
ClickMouseBox(665, 32, 665, 32, True);
Wait(8000 + Random(2000));
ClickMouseBox(625, 65, 625, 65, True);
Wait(5500 + Random(2000));
end;

procedure UseFurnace;
begin
ClickMouseBox(580+ Random(1), 228+ Random(1), 580+ Random(1), 228+ Random(1), True);
Wait(100 + Random(500));
ClickMouseBox(121+ Random(5), 150+ Random(5), 121+ Random(5), 150+ Random(5), True);
Wait(1000 + Random(1000));
ClickMouseBox(261+ Random(3), 421+ Random(3), 261+ Random(3), 241+ Random(3), True);
MoveMouseRandom;
Wait(1500 + Random(5000));
MoveMouseRandom;
Wait(200 + Random(300));
MoveMouseRandom;
Wait(160000 + Random(1500));
end;

procedure Walk2Bank;
begin
ClickMouseBox(635, 154, 635, 154, True);
Wait(3500 + Random(3000));
ClickMouseBox(35, 241, 35, 241, True);
Wait(9999999999999 + Random(99999999999999));
end;

procedure SpinCamL;
begin
WriteLn('Spinning camera to the left');
SendArrowSilentWait(3, Random(800));
end;

procedure Cycle;
begin
DeclareColors;
//MoveMouseRandom;
Walk2Furnace;
UseFurnace;
//Walk2Bank;
end;


//LOOP
begin
Repeat
Cycle;
until false;
end.

Edited by Freddy
Link to comment
Share on other sites

Bryce, to right click a position use ClickWindMouse(x, y, 1, 1, False) that'll click at specified X & Y within 1 pixel, oh and remove Wait(9999999 + Random(999999)); from your scripts that's an excessive amount of time to wait remember 1000ms = 1second and you have 9999999...

 

You'll pick all of this up in time. Keep scriptin'

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...