F
Fresh Prince
Guest
Hi guys, this is an FM'ing Script for Jmacro!
Visit Cheatscene.com to get Jmacro and learn how to use it!
http://www.cheatscene.com
Visit Cheatscene.com to get Jmacro and learn how to use it!
http://www.cheatscene.com
Fresh Prince's FM'er Version R2 (Random 2)
This is a major update from the last script, this one goes onto the next row of tiles, like i added an extra path to FM on!
This is a major update from the last script, this one goes onto the next row of tiles, like i added an extra path to FM on!
Instructions:
1. Start in the Varrock East Bank, preferably facing North.
2. Start off with a Full Inventory of logs.
3. Keep the Tinderbox in the first inventory slot.
4. The logs should be placed in the first bank slot.
1. Start in the Varrock East Bank, preferably facing North.
2. Start off with a Full Inventory of logs.
3. Keep the Tinderbox in the first inventory slot.
4. The logs should be placed in the first bank slot.
Other then the offsets and the second path, no other anti-ban features have been implemented. Like all Macro's/Scripts, Use At Your Own Risk!
Code:
package scripts;
import java.util.Random;
import java.awt.*;
import com.jmacro.methods.color.JColor;
import com.jmacro.methods.tiles.JTile;
import com.jmacro.methods.tiles.JTilePath;
import com.jmacro.methods.tiles.tiles.*;
import static com.jmacro.methods.mouse.mouse.*;
import static com.jmacro.methods.keyboard.keyboard.*;
import static com.jmacro.methods.color.color.*;
import static com.jmacro.methods.paint.paint.*;
import static com.jmacro.methods.image.image.*;
import static com.jmacro.methods.control.control.*;
import java.util.*;
import javax.swing.*;
import java.awt.Dimension;
import java.awt.*;
import java.awt.image.*;
public class FreshFM {
static JTile outTile[] = new JTile[] {new JTile(3253, 3420),new JTile(3253, 3424),new JTile(3254, 3428)};
static JTile outTile2[] = new JTile[] {new JTile(3253, 3420),new JTile(3253, 3424),new JTile(3254, 3429)};
static JTile backTile[] = new JTile[] {new JTile(3229, 3429),new JTile(3234, 3429),new JTile(3238, 3430),new JTile(3243, 3428),new JTile(3250, 3428)};
static JTile backTile2[] = new JTile[] {new JTile(3229, 3429),new JTile(3234, 3429),new JTile(3238, 3430),new JTile(3243, 3428),new JTile(3250, 3429)};
private static Random r = new Random();
static JTilePath outPath = new JTilePath (outTile);
static JTilePath backPath = new JTilePath (backTile);
static JTilePath outPath2 = new JTilePath (outTile2);
static JTilePath backPath2 = new JTilePath (backTile2);
static JColor bankBoothColor = new JColor(90, 76, 32);
public void FMprocess () {
randomLeftClick(621, 230, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(663, 231, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(701, 227, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(580, 264, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(618, 266, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(663, 267, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(704, 262, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(580, 300, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(618, 302, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(663, 300, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(704, 301, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(582, 336, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(618, 337, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(664, 335, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(704, 336, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(580, 374, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(618, 376, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(665, 379, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(703, 375, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(580, 410, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(618, 414, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(663, 409, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(704, 412, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(583, 446, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(615, 448, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(660, 443, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
randomLeftClick(701, 445, 5);
sleep(500 + r.nextInt(60));
randomLeftClick(581, 230, 5);
sleep(5000 + r.nextInt(200));
}
public void out1(){
outPath.walkToEnd();
}
public void out2(){
outPath2.walkToEnd();
}
public void back1(){
backPath.walkToEnd();
outPath.walkToStart();
}
public void back2(){
backPath2.walkToEnd();
outPath2.walkToStart();
}
public void Bankprocess () {
if (findColorDimension(bankBoothColor, new Dimension(8, 9), new Dimension(512, 332), 3, 1, true) == true)
{
log("FreshFM Found color to bankbooth.");
if (findImageFromString("9,5,-2895157,-2895157,-2895157,-2895157,-2895157,-16715536,-16715536,-16715536,-2895157,-2895157,-16715536,-16715536,-16715536,-16715536,-16715536,-16715536,-2829364,-2829364,-3815997,-3815997,-2829364,-2829364,-16715536,-16715536,-16715536,-2829364,-3815997,-16715536,-16715536,-16715536,-3815997,-3815997,-16715536,-16715536,-2829364,-3815997,-16715536,-16715536,-16715536,-2763572,-3815997,-16715536,-16715536,-2763572,-3815997,", new Dimension(0, 0), new Dimension(765, 503), 20, false) == true)
{
log("FreshFM has Found bankbooth! Going to open...");
sleep(100 + r.nextInt(60));
rightClick(0, 0);
while (true)
{
if (findImageFromString("23,12,-1,-1,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16711681,-16711681,-16711681,-10660793,-10660793,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16777216,-16777216,-16711681,-16711681,-10660793,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16777216,-10660793,-16711681,-16711681,-16777216,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16777216,-10660793,-16711681,-16711681,-16777216,-1,-1,-16777216,-10660793,-1,-1,-10660793,-10660793,-1,-1,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16711681,-16711681,-16711681,-16777216,-16777216,-1,-1,-16777216,-10660793,-1,-1,-16777216,-10660793,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16777216,-16777216,-16711681,-16711681,-10660793,-1,-1,-16777216,-10660793,-1,-1,-16777216,-10660793,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16777216,-10660793,-16711681,-16711681,-16777216,-1,-1,-16777216,-10660793,-1,-1,-16777216,-10660793,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16777216,-10660793,-16711681,-16711681,-16777216,-1,-1,-16777216,-10660793,-10660793,-1,-1,-1,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16777216,-10660793,-16711681,-16711681,-16777216,-1,-1,-16777216,-10660793,-10660793,-10660793,-16777216,-16777216,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-16711681,-16711681,-16711681,-16711681,-16711681,-16777216,-16777216,-10660793,-16777216,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-16777216,-16777216,-16777216,-16777216,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-1,-1,-16777216,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,-10660793,", new Dimension(0, 0), new Dimension(513, 333), 18, true) == true)
{
log("FreshFM has Found 'Use-quickly' text in the menu, going to click...");
sleep(100 + r.nextInt(60));
leftClick(0, 0);
break;
}
sleep(1000);
}
while (true)
{
if (findImageFromString("14,5,-26593,-16777216,-16777216,-12174030,-12174030,-26593,-26593,-26593,-26593,-12174030,-12174030,-12174030,-26593,-26593,-26593,-26593,-12174030,-12174030,-26593,-26593,-16777216,-16777216,-26593,-26593,-12174030,-12174030,-26593,-26593,-26593,-26593,-16777216,-12174030,-12174030,-26593,-26593,-26593,-26593,-26593,-16777216,-12042701,-26593,-26593,-26593,-26593,-16777216,-12174030,-26593,-26593,-16777216,-16777216,-26593,-26593,-16777216,-12042701,-26593,-26593,-26593,-26593,-16777216,-12174030,-26593,-26593,-16777216,-12174030,-26593,-26593,-16777216,-12042701,-26593,-26593,", new Dimension(8, 9), new Dimension(512, 332), 20, false) == true)
{
log("FreshFM successfully opened Bankbooth!");
rightClick(95, 77);
sleep(1200 + r.nextInt(100));
leftClick(101, 148);
sleep(3000 + r.nextInt(200));
leftClick(485, 41);
break;
}
sleep(1000 + r.nextInt(120));
}
return;
}
}
}
public void jbot() {
log("FreshFM Setting camera to top...");
pressDPad(1, 2000);
log("Welcome to Fresh Prince's Fire Maker!");
while (true)
{
out1();
FMprocess();
back1();
Bankprocess();
out2();
FMprocess();
back2();
Bankprocess();
}
}
}
Thanks:
Jaco - I used the method of Banking he used in MinerBanker, but i also take half of that thanks away since he didn't help me on another script, after he offered help =.=
StoneBot - Some help on V R1
Speedster239 - for Jmacro of course
Nubs (pronounced N-uh-b-s) - For all the nubs out there, peaces!
DRINK MILK LOVE LIFE!
