Everything posted by gilaga
-
MailCurseCaster - Curse that monk!
me, dont use mine, this one is much better
-
Basic Iron Knife Smither
Creates Iron Knifes in Varrock. Start in varrock bank with hammer in inventory. Will take out iron bars, go to anvil and smith them into knives, bank and repeat. Virus scans: https://www.virustotal.com/en/file/ce1dcf4b012b6ca750affd09dc20a5aaecdf3e66a0b9fbcea274b548a02530ab/analysis/1407213632/ http://virusscan.jotti.org/en/scanresult/0e82097f1114456abed8dd39254222ad7a846bf1 Download: http://www.mediafire.com/download/2e5l8i9psjcml98/BasicSmither.jar import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.input.mouse.EntityDestination; import org.osbot.rs07.input.mouse.MiniMapTileDestination; import org.osbot.rs07.utility.Area; import java.awt.*; @ScriptManifest(author = "Gilaga", info = "Basic Iron Knife Smither.", name = "Basic Smither", version = 0, logo = "") public class BasicSmither extends Script{ private static final Area SMITHING_AREA = new Area(3185,3420,3190,3427); private enum State{ SMITH, BANK, WALK_TO_SMITH, WALK_TO_BANK }; private State getState(){ if(inventory.contains("Iron bar") && SMITHING_AREA.contains(myPlayer().getPosition())){ return State.SMITH; } else if(!inventory.contains("Iron bar") && !SMITHING_AREA.contains(myPlayer().getPosition())){ return State.BANK; } else if(inventory.contains("Iron bar") && !SMITHING_AREA.contains(myPlayer().getPosition())){ return State.WALK_TO_SMITH; } else{ return State.WALK_TO_BANK; } } public int onLoop() throws InterruptedException{ switch(getState()){ case SMITH: outerIf: if(!myPlayer().isAnimating()){ sleep(1000); if(!inventory.contains("Iron bar")){ sleep(500); break outerIf; } int failSafe = 0; while(!myPlayer().isAnimating()){ sleep(50); failSafe++; if(failSafe >= 10){ inventory.interactWithNameThatContains("Use", "Iron bar"); RS2Object anvil = objects.closest(2097); mouse.click(new EntityDestination(bot, anvil)); if(interfaces.get(312) != null){ } sleep(1500); mouse.move(370,180); mouse.click(true); sleep(250); mouse.move(365,250); mouse.click(false); sleep(1000); keyboard.typeString("27"); sleep(500); break outerIf; } } } break; case BANK: RS2Object bankBooth = objects.closest("Bank booth"); if (bankBooth != null) { if (bankBooth.interact("Bank")) { while(!bank.isOpen()){ sleep(250); } bank.depositAll("Iron knife"); if(bank.contains("Iron bar")){ bank.withdraw("Iron bar", 27); } else{ stop(); } bank.close(); } } break; case WALK_TO_BANK: walkTile(new Position(3185,3436,0)); break; case WALK_TO_SMITH: walkTile(new Position(3185,3426,0)); break; } return random(200,300); } private boolean walkTile(Position p) throws InterruptedException { mouse.move(new MiniMapTileDestination(bot, p), false); sleep(random(150, 250)); mouse.click(false); int failsafe = 0; while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) { sleep(200); failsafe++; if (myPlayer().isMoving()) failsafe = 0; } if (failsafe == 10) return false; return true; } public void onPaint(Graphics2D g) { } }
-
Basic Mage Trainer
Thanks, my main script right now is my Master Farmer Pickpocketer, and have 3 more scripts planned in development atm, wall safes, because the one we have now on sdn is broken, iron falador miner, and a iron smelter with RoF support.
-
Basic Mage Trainer
The bot will cast curse repeatedly on the zamarok mage under the stairs in the cell in varrock castle. Start by the cell. Have runes and staff equiped The bot WILL NOT check to see if you have run out of runes, and the bot does occasionally screw up and open the door and walk outside accidentally. THEREFOR THIS BOT HAS TO BE BABYSAT It is a VERY simple script and I just made it in like 3 mins so I could get my magic up. Virus Scans: https://www.virustotal.com/en/file/62d550a540c0d679fd50ec5f4431763659ba609141082aab65897bfde5887b00/analysis/1407004928/ http://virusscan.jotti.org/en/scanresult/22d0ee239aa80999bebb75ecc2f72a97a4d8785b Download: http://www.mediafire.com/download/co9gwv3ifx43osz/BasicMageTrainer.jar Source Code: import java.awt.Graphics2D; import org.osbot.rs07.api.ui.Spell; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "Gilaga", info = "Basic wall mage trainer.", name = "Basic Mage Trainer", version = 0, logo = "") public class MageTrainer extends Script{ public int onLoop() throws InterruptedException{ magic.castSpellOnEntity(Spell.CURSE, getNpcs().closest("Monk of Zamorak")); sleep(250); return random(200,300); } public void onPaint(Graphics2D g) { } }
-
Master Farmer Pickpocket
NP, its a shame that no one else bothers to check the local scripts section, so many posts waiting for the one on sdn to get fixed while there is a perfectly good one on here.
-
Master Farmer Pickpocket
OSBot is currently down, think its happening for everyone. with the dropping option, its not necessary, I keep all my seeds, but if you dont want them, just take a visit to a general store one day, problem solved.
-
Master Farmer Pickpocket
Server restart.
-
Master Farmer Pickpocket
I am really new to making scripts and I really dont think I would be able to make a UI. I am willing to make more food options available though, Currently the bot prioritizes certain foods over others, it will take out salmon first, then lobster, and then trout. I haven't tested this feature yet but I believe it works, confirmed with salmon though. If you would like to make a suggestion on a food to add I would be open to it.
- Master Farmer Pickpocket
-
Master Farmer Pickpocket
Thanks, where can I go for a good virus scan?
-
Master Farmer Pickpocket
Honestly, I have no idea.
-
Master Farmer Pickpocket
Start in Draynor, in bank Eats trout, lobster, and salmon. Pathing is horrible but will fix soon. -Fixed a banking problem. -Virus Scans: https://www.virustotal.com/en/file/5fecff4cb660abf4dab1f09a67392e956996836c142a519291986d2da604c1ce/analysis/1406772744/ http://virusscan.jotti.org/en/scanresult/b655cbdd477c44aa067a3534e16e6b321d7d305a http://www.mediafire.com/download/953o742324jj616/BasicPickpocket.jar import org.osbot.legacy.script.mouse.MinimapTileDestination; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.utility.Area; import org.osbot.rs07.input.mouse.MiniMapTileDestination; import java.awt.*; @ScriptManifest(author = "Gilaga", info = "First Script Iv'e ever made.", name = "Basic PickPocket", version = 0, logo = "") public class BasicPickpocket extends Script{ private static final Area BANK_AREA = new Area(3092,3240,3095,3246); private Position PICKPOCKET_POSITION = new Position(3081,3250,0); private Position BANK_POSITION = new Position(3092,3243,0); private Position RUN_POSITION = new Position(3095,3250,0); private enum State{ EAT, BANK, WALK_TO_BANK, WALK_TO_PICKPOCKET, PICKPOCKET, RUN }; private State getState(){ if(myPlayer().isUnderAttack() && myPlayer().getInteracting().getId() == 5515){ return State.RUN; } else if(skills.getDynamic(Skill.HITPOINTS) < 10){ if(inventory.contains("Salmon", "Lobster", "Trout")){ return State.EAT; } else if(BANK_AREA.contains(myPlayer())){ return State.BANK; } else{ return State.WALK_TO_BANK; } } else if(BANK_AREA.contains(myPlayer())){ return State.WALK_TO_PICKPOCKET; } return State.PICKPOCKET; } public int onLoop() throws InterruptedException{ switch(getState()){ case EAT: inventory.interact("Eat", "Salmon", "Lobster", "Trout"); break; case PICKPOCKET: getNpcs().closestThatContains("Master Farmer").interact("Pickpocket"); break; case BANK: RS2Object bankBooth = objects.closest("Bank booth"); if (bankBooth != null) { if (bankBooth.interact("Bank")) { while (!bank.isOpen()) sleep(250); if(bank.contains("Salmon")){ bank.depositAll(); bank.withdraw("Salmon", 10); bank.close(); } else if(bank.contains("Lobster")){ bank.depositAll(); bank.withdraw("Lobster", 10); bank.close(); } else if(bank.contains("Trout")){ bank.depositAll(); bank.withdraw("Trout", 15); bank.close(); } else{ stop(); } } } break; case WALK_TO_PICKPOCKET: walkTile(PICKPOCKET_POSITION); break; case WALK_TO_BANK: walkTile(PICKPOCKET_POSITION); walkTile(BANK_POSITION); break; case RUN: walkTile(PICKPOCKET_POSITION); walkTile(RUN_POSITION); break; } return random(200,300); } private boolean walkTile(Position p) throws InterruptedException { mouse.move(new MiniMapTileDestination(bot, p), false); sleep(random(150, 250)); mouse.click(false); int failsafe = 0; while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) { sleep(200); failsafe++; if (myPlayer().isMoving()) failsafe = 0; } if (failsafe == 10) return false; return true; } public void onPaint(Graphics2D g) { } }