Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Search the Community

Showing results for tags 'easy'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • TRiBot
    • News and Announcements
    • Old School Scripts
    • Help and Guidance
    • Development
    • Bugs and Errors
    • Tutorials
  • Scripters' Forums
    • Scripter Application
  • RuneScape®
    • General
    • Guides/Tutorials
    • Achievements
  • General
    • General
    • Questions
    • Discussions & Debates
    • Introductions
    • Suggestions
    • Feedback
  • The Black Market
    • Disputes
    • Repository Credits
    • Gold Exchange
    • Item Exchange
    • Membership Sales
    • Services
    • Other
    • Middleman Services

Blogs

  • Getting Started With TRiBot

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


Bio

Found 24 results

  1. Automate, Manage & Launch Any Client, Anywhere, Anytime With The Click Of A Button ------------- TRiBot CLI Client Manager ------------ -------- Client Launcher (Lite version) -------- ------- Client Launcher (Advanced version) ------- -----Updated Version----- -----Old Version----- ------- What You Can Do With 1 Click ------- Overview: Specifications & Capabilities Load Any Account on Any World with Any Script, Any Arguments, Any Proxy Monitor A Live Feed of your Running Bots! Live Locations & World Live Items on Each Bot Live Exchanges being made for Each bot View Run-time & Status's of Each Bot Control your Bots Locally or Remotely! Start Your Bots From Any Machine Shutdown Your Bots From Any Machine Automate Everything! Grand Exchanging with Customized Exchange Profiles for Your Bots Need's Trading Between Any of Your Bot's and Anytime Account Replenishment - Register, Create & Even Tutorial Availability: Any Operating System Windows 7/8/10/Vista Mac OS Linux (Debian, CentOS, Ubuntu, Fedora, Arch, Kali) These tools are fully operational. Message me on TRiBot forums for more info. THIS IS NOT FREE
  2. Request: Create an incense burner bot for POH's. Description: Every 2-2:30 minutes, it lights the incense burner and when the bot is down to 4 marrentil, it trades the specified player, and accepts the trade request. (doesnt matter what is traded). it avoids standing on certain spots on the floor. That's all i need. Payment Amount: $20-$100 depending on quality of script and ease of customization. Time: Preferably within a month. Additional: I can provide testing and basic information you require for creating the script.
  3. B94WildyLooter Hey guys, this is my first script and it works quite good, please tell me if you find any bugs or have feedback. Warning Please only bot with accounts that dont have trade limits, it will be banned quickly and you wont be able to transfer your hard earned money to your main account. Description Collects all items in Edgeville Wilderness and banks them. You can set the minimal value in coins for items to be picked up. Also you can choose to only pickup specific items or to ignore specific items. Features Banking Surviving from fights by eating and running Deathwalking Add items by name instead of id Loot only items that you specify Ignore items that you specify Bank when inventory is more than specified coins Very detailed Paint Automatic screenshots when banking loot, will be stored under .tribot folder (Folder will be automatically opened when starting script) Ability to set mouse speed (~100 is recommended, higher is faster but also higher chance of ban) Repository Link https://tribot.org/repository/script/id/1284 Requirements As high as possible HP for longer survival Planned Updates None, tell me what you want! Profit P2P F2P
  4. Elite Chopper Pro - AIO Woodcutter UPDATE 12/30/2017: This script has been completely rewritten and is actively being supported. Thank you everyone! Description: Elite Chopper Pro is a woodcutting script designed to be greater than any other woodcutter. Made with the best antiban yet seen, this script has been completely rewritten and runs flawlessly. With a Task System, Auto-Axe Upgrading, and ABCv3 Antiban, Elite Chopper Pro is the best Woodcutting Bot you can find! Repository Link: Features: Best Antiban possible. ABCL 10 plus new antiban not seen in ANY OTHER SCRIPT. Yes, I'm talking about ABCv3 Task System for completely automated 1-99 20+ locations (See second post for full list) Customer location support! Fast and efficient chopping Start from ANYWHERE Auto axe upgrading (bronze to dragon) Completely Customizable Antiban Control Mouse Speed, Reaction Times, and even play around with Tribot's built-in antiban! Upcoming Features: Profile System with Script Argument Support (almost done) Built-in Muling capabilities Preset profiles for you to kick-start your massive goldfarm! Pricing: Two Week / Unlimited Accounts - $8.99 One Month / Unlimited Accounts - $15.00 Lifetime / Unlimited Accounts - $29.99 Buy Here: Note: I will be removing the Lifetime option once I re-obtain my Premium Scripter status. But I will be lowering the prices. GUI: Proggies: Vouches: Bug Report Format: How to submit a proper bug report Supported Locations: Custom Scan for trees in a certain radius. Allows you to scan for any tree name, including Teaks, Redwood, etc. Supports Banking using Dax Webwalker or Tribot Webwalker Lumbridge Normals Oaks Willows Yews Draynor Oaks Willows Port Sarim Willows Varrock East Normals Oaks Varrock West Normals Oaks Falador Normals Oaks Yews Edgeville (beta) Yews Grand Exchange Yews Seers Village Willows Maples Yews Magics Catherby Oaks Willows Yews Gnome Stronghold Yews Duel Arena (beta) Magics Antiban Settings The Reaction Modifier represents how much of the reaction time you want the bot to wait. So the lower this slider, the shorter the reaction times. Async Mouse and Camera will be added in the future Misc Info: The task system loops. So once the final task is finished, it will run the first one again. If the Stop Condition is already met, the task will not run. Common Tribot Fixes: Happy botting
  5. Welcome to Mr Extremez's 07 Gold Selling Shop! Click on the icon below to add me on Skype to avoid impostors: Current Pricing Current Rate: $1.22-$1.27/M (Depending on amount you are buying) Payment Methods Currently accepting Bitcoin, Verified Paypal, PayPal My Cash, Skrill, Western Union, and RS07/RS3 GP (ask for info) Terms of Service 1. You will go first or we will use a middleman (your fee). 2.You will follow any and all sending procedures I tell you. 3. I am allowed to change these terms any time I want to. 4. No refunds are allowed. Order Form Which type of gold do you want: How much gold do you want: Do you agree to my Terms of Service: Have you added me on Skype: By filling out and posting the form above, and buying gold off of me, you agree that you have fully read and fully understand my Terms of Service. Where I am Trusted - 1,200+ Vouches on Sythe - 150+ Vouches on Rune-server - 70+ Feedback on Powerbot - 40+ Feedback on OSBot - 10+ Vouches on Runelocus Contact Me Add me on Skype: live:extremezgp ALWAYS ASK ME FOR A PM I WILL NOT DENY ONE!!!!
  6. Welcome to Mr Extremez's Gold Buying Shop! Click on the icon below to add me on Skype to avoid impostors: Current Pricing RS07: Around $1.01-$1.06/M RS3: Around $0.16-$0.20/M Fees are covered by me (saves you up to 5%) Payment Methods Currently paying with Bitcoin, Verified Paypal, PayPal My Cash, Skrill, Western Union, Venmo, Square Cash, Google Wallet, and RS07/RS3 GP (ask for info) Selling Form Which type of gold are you selling: How much gold are you selling: Have you added me on Skype: Where I am Trusted - 1,100+ Vouches on Sythe - 150+ Vouches on Rune-server - 70+ Feedback on Powerbot - 40+ Feedback on OSBot - 10+ Vouches on Runelocus Contact Me Add me on Skype: live:extremezgp ALWAYS ASK ME FOR A PM I WILL NOT DENY ONE!!!!
  7. Welcome to Mr Extremez's Gold Buying Shop! Click on the icon below to add me on Skype to avoid impostors: Current Pricing RS3: Around $0.16-$0.20/M RS07: Around $1.01-$1.06/M Fees are covered by me (saves you up to 5%) Payment Methods Currently paying with Bitcoin, Verified Paypal, PayPal My Cash, Skrill, Western Union, Venmo, Square Cash, Google Wallet, and RS07/RS3 GP (ask for info) Selling Form Which type of gold are you selling: How much gold are you selling: Have you added me on Skype: Where I am Trusted - 1,100+ Vouches on Sythe - 150+ Vouches on Rune-server - 70+ Feedback on Powerbot - 40+ Feedback on OSBot - 10+ Vouches on Runelocus Contact Me Add me on Skype: live:extremezgp ALWAYS ASK ME FOR A PM I WILL NOT DENY ONE!!!!
  8. Welcome to Mr Extremez's Gold Selling Shop! Click on the icon below to add me on Skype to avoid impostors: Current Pricing Current Rate: $0.21-$0.23/M BTC Rate: Around $0.22/M (Depending on amount you are buying) Payment Methods Currently only accepting Bitcoin, Verified Paypal, PayPal My Cash, Skrill, Western Union, and RS07/RS3 GP (ask for info) Terms of Service 1. You will go first or we will use a middleman (your fee). 2. You will follow any and all sending procedures I tell you. 3. I am allowed to change these terms any time I want to. 4. No refunds are allowed. Order Form Which type of gold do you want: How much gold do you want: Do you agree to my Terms of Service: Have you added me on Skype: By filling out and posting the form above, and buying gold off of me, you agree that you have fully read and fully understand my Terms of Service. Where I am Trusted - 1,100+ Vouches on Sythe - 150+ Vouches on Rune-server - 70+ Feedback on Powerbot - 40+ Feedback on OSBot - 10+ Vouches on Runelocus Contact Me Add me on Skype: live:extremezgp ALWAYS ASK ME FOR A PM I WILL NOT DENY ONE!!!!
  9. Click the website link above to visit our site! Payment methods we support. Average Payment after delivery time: 2 Minutes We will trade you from a non level 3 to ensure your account's safety. No more trading in Lumbridge, either! Easy to follow instructions for a smooth trade 1) Visit our website. 2) Purchase the gold you want via our processing system. 3) Contact live chat with your order ID. 4) Meet up with us and claim your gold!
  10. Questing: All Novice quests are FREE. I can complete any Novice quest for free. If you want to do more than 1 daily quest then you need to conctact me and I will tell you a price. Leveling: I can help you with any and every skill there is. Price depends on what skill and what level. Contact me for more info. Bossing: I can do the followin PvM-related services. All prices depend on what stats and desired request. So contact me for more info. Fire Cape Melee/Ranged/Magic Kiln Cape Royal Crossbow Brandishing If you have any other requests that are not mentioned then you need to contact me for a price. Payment options: I currently only accept Paypal and RS3 GP. Terms of Service: 1. I have the right to decline any order for any reason 2. If for any reason the request is not fullfilled I will do a full refund, if the request is only partially done I will give a partial refund. 3.PAYMENTS ARE MADE BEFORE THE SERVICE STARTS! /with regards Bolkar (to contact me instantly send an email here: [email protected])
  11. Hello Welcome to my account "leveling" service topic. As mentioned in the name of this topic, I'm botting accounts for you. You supply me with account. Goldfarming/starter/staking accounts, you name it, I do it! I grantee you the following: Proxies are used VPS is used do bot whenever No delays In some cases, quests are done. I'm responsible for any offences 3 hours after giving finished product* *Accounts botted from scratch usually get banned during leveling process, but not afterwards. This obviously depends on botting locations/methods etc. I do not complete the service before receiving at least 50% of the pay beforehand, unless you seem trusted to me (More recent vouches will do the trick). Example package: 60/60/60/ account, with ~10 days membership left - 7/M Usually Completed in 3 days. Price: Depends on how long botting takes to achieve your desired levels. Example above could give you ideas. Quests can be ordered as well. Contact me: sales.johannes Add me directly clicking on this Skype button:
  12. Click the logo above to be taken to my website which will serve all of your RuneScape needs! To place your order, please follow this link and fill out the form. Order here Clicking the above link will redirect you to a google form where you can place your order. TiempoSales is here to provide you with the quickest, easiest, and safest experience with anything and everything you may need! Our workers are trusted across multiple forums and will always provide you with the best experience! For all leveling, mini-games, fire capes, and quests, we assure all users a fast and high quality experience! Our prices will always be the best you can find! Find a cheaper quote, contact me over Skype or LiveChat and I will beat it! TiempoSales Currently Accepts RuneScape Gold and Paypal as Payment Options. We look to expand in the near future! We Currently Offer: -All Runescape Old School Quests -All Runescape Old School MiniGames -Powerleveling in every Old School Skill -Fire Capes for all Account Builds *More details, products, and descriptions can be found by visiting our website* If there is any service you would like to see added to the website, or created for you privately, please contact us on LiveChat, Skype, or via email at [email protected] By ordering services and products through my website, you agree to the following Terms Of Service: 1. You agree to all the information, disclaimers, and TOS as stated on my website 2. If the service is not ordered through me (TiempoSales) or through my website, then it is not my service and I will not be held accountable. 3. TiempoSales and everyone working with him are not responsible for ANY bans, mutes, hacks, or anything else that may happen to your account during or after the order. 4. The account password will be changed by the buyer upon completion of service. We are not responsible for your account after the service is complete. 5. If you access the account at any time during the service without explicit permission from TiempoSales (not a worker), your order will be cancelled and a refund will be given at TiempoSales discretion. 6. If your bank is worth over 5M and TiempoSales or a worker will need access to your Runescape bank to complete your order, any items and gold that make your bank more than 5M will be transferred to another account or the items and gold can be held by TiempoSales. 7. Any order cancelled by the buyer before completion will receive no refund. 8. If the required stats and other requirements are not met before the service is started, and it causes a worker to be unable to complete your service, the order will be cancelled with no refund. 9. ID Verification may be required for certain users when purchasing with PayPal. Click here to buy 07 Gold from TiempoSales! Click here to sell 07 Gold to TiempoSales!
  13. This script has been replace with: https://tribot.org/forums/topic/47458-aio-free-trial-elite-chopper-pro-a-new-kind-of-wcer-new-antiban-task-system-level-3-friendly-20-locations-custom-location-support/ Please close this thread and archive it.
  14. Combat power Leveling Services Range: *1-40: $25, osrs gold equivalent *40-50:$25 *50-60:$40 *60-70:$50 *70-80:$70 *80-90:$90 *90-99:$130 --Note, every 30k range xp= 100k osrs profit for you. Melee *1-40:$25 *40-50:$30 *50-60:$45 *60-70:$60 *70-80:$75 *80-90:$90 *90-99:$120 Every 100k xp= 50k gold for you. Slayer: *Every 15k xp: 5m osrs gold or cash equivalent. Note: I am always willing to accept OSRS gold equivalent instead of cash. (1m=$3) Happy leveling! (Email me at [email protected] for any concerns) -botted unless asked for hand training. *Application: Requested skill: Xp/Lvls desired: Does your Acc come w/gear: Email:
  15. Fast [✔] Cheap [✔] Reliable [✔] Hay Guys, Chad Here! Im Currently Selling 07 Gold. Im Not Highly Known ATM But Im Getting Their. Im Good Friends With A Couple Well Known Traders! Some Quotes ( ARE REAL ) For Customers! [9:50:42 PM] CniRSGP from Sythe. Always Request a PM!!!: That was 1 of the fastest trades i've ever done. Thanks for selling me gold. Yesterday, 12:24 AM bought 30m from him thank you Buyer: BawsZ Yesterday, 11:18 PM Sold him 6.6M 07 for 20$ MoneyPak, thanks. Buyer: MurdocSir With around 50 dollars invested to premium scripts, and over 25+ feedback, this gives you all the more reason to buy and sell to US! Methods: Paypal, Moneypak, Amazon! BUYING 2.1-2.2 SELLING 2.6-2.8 I Dont Ask For Any Phone Numbers Or Important Information You ALWAYS Pay First Unless I Trust You Prices WILL MAYBE Fluctuate! Add Me On Skype, I Live In The US So If Im Not On Skype Just Wait Thanks For Buying For My Shop, Please Leave Feedback As I Will Do The Same! Have A Nice Day! Skype: Chad.miles6 ALWAYS ASK FOR PM BEFORE PURCHASE
  16. Hey, I am new to the TRiBot community and have just finished my course at College doing Software Development. To continue on and keep my mind fresh I am going to create an Experiment training script. This is just for my practice, but if it turns out decent I may as well release it for your enjoyment too The script is going to take me a while and all updates will be posted here, the script is going to include: - Banking - Bones to Peaches Support - Eating - Potion Support (Prayer, Range, Attack, Strength, Defence) - Bone Burying Support - Picks Up Ammo if Ranging - Special Weapon Support (Special Attacks) - Anti-Ban Measures to be Implemented Later On If you guys have any other features you'd like to add in, that I could attempt please feel free to post below or message me, like I said before this is all for practice, it may take some time and as it's my first script I shall not be posting an ETA until it is near completion.
  17. Taverly Druid Killer - By wastedbro Repository link: https://tribot.org/repository/script/id/880 Features: Prays at the altar when low on prayer ABCL antiban + prays at altar at different amounts of prayer every time for even more antiban Spec attack Potion support Protect from melee, strength, and attack prayer support Walks to the druid spot if out of range 40k+ XP/hr potential Loots custom items. For example, you can have it loot runes (Stackable) or rare herbs for babysitting. Best setup: Dhide armor (and strength boosters), weapon you want to train with, rune defender, etc. Druids can hit with magic, so doing this with full rune is not a good idea. Go with strength boosting, magic protecting gear and use protect from melee for best results. Preview Screenshot: Repository Link: https://tribot.org/repository/script/id/880 Remember to check out my newest script, too! https://tribot.org/forums/topic/39652-abcl-10-wastedsmither-aio-cannonballs-all-bars-and-items-smelting-multi-location-10/ Enjoy
  18. Okay, you Goldfarmers like myself are going to know exactly what we are talking about. What's the problem here? Starting our bot farms take forever. Allow me to explain, We use proxy's so it may take even a bit longer then people that don't. I would like to offer up the idea that the Tribot client has a button especially for Goldfarmers. What takes so much time? 1. Typing in the password for every single client. "because we use proxy's we can not put tabs up in the client. We have to have one client per bot. 2. Starting the same script with the same requirements for every single bot. 3. The most annoying thing in the world: The Tribot error where the scripts from the repository do not load. Now I am not sure what could be possible to make everything more efficient for us Goldfarmers but I do know any attempt to help us save time while starting our bots would be greatly appreciated! Currently We spend probably 1-3 hours per day starting our bot farms. "It is worth it but hey I'de much rather have something that could just type I the password for Tribot once, hit a button and it starts all my bots with proxy's on the same script." *****PLEASE LEAVE YOUR OPINIONS AND IDEAS IN THE COMMENTS, I WOULD LIKE I KNOW WHAT EVERYBODY THINKS ABOUT THIS.*****
  19. Template #1 - Raw Simple and beginner-friendly. Difficulty: Very Easy Instructions: Make a new class in your project and paste what's below there. The name can be changed (in Eclipse click the name and press Alt+Shift+R, type the new name and press enter). package scripts;import java.awt.Graphics;import java.awt.Graphics2D;import org.tribot.api2007.types.RSNPC;import org.tribot.script.Script;import org.tribot.script.ScriptManifest;import org.tribot.script.interfaces.Painting;@ScriptManifest(authors = { "author" }, category = "category", name = "name")public class EasyTemplate extends Script implements Painting { /* Instance variables. Can be used anywhere in the class. The access modifier (public, protected, private) is default if you leave it out.It lands between private and protected and is visible to the package this class is in. */ int someInt; long someLong; String someString; RSNPC someNPC; boolean running = true; @Override public void onPaint(Graphics g) { Graphics2D g2 = (Graphics2D) g; //Cast the Graphics object to a more specific type to get more methods. } @Override public void run() { //runs while running is true. Repeats the loop() method and sleeps for whatever gets returned at each iteration. while (running) { sleep(loop()); } } int loop() { doStuff(); return 1000; } void doStuff(){ // doing stuff.. }}Template #2 - Jobs Multiple classes and packages. Plan and organize. Difficulty: Intermediate Instructions: Unzip to .tribot/src/scripts and refresh your IDE project, assuming your project's folder is indeed the aforementioned. Template.zip
  20. II Gold Trade Market - Currently Cheapest Rates! II ----========================================================---- We can use a VERIFIED SPONSORED middle man to prevent scamming!! ----========================================================---- Current Rates: 1:9-11 (My 07:Your RS3) Current Rates: 6-8:1 (My RS3:Your 07) ----======================================---- Current Stock: 10M 07 Current Stock: 256M Eoc ----=============================---- Skype: justlikefumbles ClanChat: Cashpiles ----============================================================---- Trade with me and get a FREE 07 party hat of your choice! (While supplies last) ----============================================================---- Party Hat Stock: Purple: 0 White: 0 Yellow: 0 Blue: 1 Red: 0 Green: 0 ----=================================---- Terms of Service I will not go first You will leave feedback after You agree to meet in the locations I specify Trade value must be at minimum 1M RS3:100k 07 ----=================================---- Proof: 10M 40M 100M ----=================================---- I will NEVER refuse a PM - Let me know if you require one during the swap! ----=================================---- Order Form How many bonds are you looking to buy?: Do you agree to the ToS?: Have you been in contact with me? If so, in which way? (Skype/PM):
  21. Back when OSRS recently came out, there was a botting site that had an excellent combat script that did the following upon booting up: 1) Checked to see if it was in Tzhaar and if you had a weapon equipped. 2) Walk over to the fight caves and entered. 3) Fought inside the caves until your character had died. 4) Repeat steps 2-3 for maximum xp/hr. Sadly, both the script and botting site are gone, but this wonderful idea remains. The tokkul p/hr was pretty decent, enough to get you an uncut onyx within a long time period (I forgot exactly). Please let me know what you think about this idea, as I believe it could be one of the best, safest, and easiest scripts to write for combat.
  22. Version: 0.6 (Updated: 04/05/2013 - 15:21 GMT) Download: Click Here This bot will use the Ectofuntus service in Port Phasmatys, the requirements needed to use this script are listed below: Features ​Grinds Bones Gets the slime Worships Gets the tokens Banks and gets more bones Repeats process Can start at any stage of cycle Cheap method Sexy paint of course. Antibans Uses shortcuts (Agility) On its way Ectophial Support Collect just slime Only grind bones Worship using pre-collected items Banking to be re-done (clunky atm) Bug fixes (Trapdoor etc [models]) If you meet these requirements then all you need to do is start anywhere in the temple and the script will figure out what to do! MAKE SURE YOUR BONES AND TOKENS ARE AT THE TOP OF YOUR BANK _____________________________________________________________________________________________________________ Known Bugs None known as of now To-Do List Collect slime only (Will incl. Ectophial Support) Grind bones only (bank using Port Phas) Worship using pre-collected bones and slime Changelog 0.6 Ectophial support added Bug fixes 0.5 Grinding process properly re-furbished, is now 99% flawless Worshipping process re-coded, now clicks the colour, not the co-ordinates NPC finding at the gate improved, no longer stands around Few minor fixes and additions 0.4 Version checking added Cleaned a few run paths 0.3 Running support added Running will hold control rather than spam it Sped up more processes Changed camera angles to point to objects Babydragon Bones Support 0.2 Camera anti-ban Minor bug fixes on NPC clicking Bonemeal properly detected Worshipping now moves the camera first Please submit all feedback, proggies and bugs. Thank you and I hope you enjoy the script! If you like my script and you feel generous, don't hesitate to donate. You using my script is encouraging enough but this helps
  23. Just a little example to show people how to create their own drag-able paint to make their script more appealing. import java.awt.Color;import java.awt.Graphics;import java.awt.Point;import java.awt.Rectangle;import org.tribot.api.interfaces.Clickable;import org.tribot.script.Script;import org.tribot.script.ScriptManifest;import org.tribot.script.interfaces.MouseActions;import org.tribot.script.interfaces.Painting;@ScriptManifest(authors = { "c0ded", "defq0n" }, category = "Paint", name = "Draggable Paint Demo")public class DraggablePaint extends Script implements Painting, MouseActions { //draggable region on screen (x,y,width,height) private static Rectangle paintReferenceBox = new Rectangle(0,0,105,35); private static Point mouseButtonDownPosition = null; //example variable private int xpGained = 80085; @Override public void run() { //your script here.... while(true){ sleep(100); } } @Override public void mouseClicked(Point p, int arg1, boolean arg2) {} @Override public void mouseDragged(Point drag, int arg1, boolean arg2) { //checks if this is the first movement/drag if(mouseButtonDownPosition==null){ //checks to see whether the mouse is actually inside the reference box if( paintReferenceBox.contains(drag)){ //set the down position to the current mouse position mouseButtonDownPosition = drag; } } //get change in position between the last mouse point and the current one (0, if its the first) int deltaX = (int)(drag.getX()-mouseButtonDownPosition.getX()); int deltaY = (int)(drag.getY()-mouseButtonDownPosition.getY()); //move the reference box, and therefore move all the other paint components //that are placed based on where the reference box is paintReferenceBox.translate(deltaX, deltaY); //set the last mouse position to the current one mouseButtonDownPosition = drag; } @Override public void mouseMoved(Point arg0, boolean arg1) {} @Override public void mouseReleased(Point releasePosition, int arg1, boolean arg2) { //reset the click in memory to terminate the dragging mouseButtonDownPosition = null; } @Override public void onPaint(Graphics g) { //it is strongly suggested that when using a draggable paint, you provide the user with some indication //of where they can click and drag to move the paint. as an example, this will fill the bounding rectangle //of the dragable region on screen g.setColor(Color.RED); g.fillRect((int)paintReferenceBox.getX(), (int)paintReferenceBox.getY(), (int)paintReferenceBox.getWidth(), (int)paintReferenceBox.getHeight()); //To utilize the draggable aspect of this, you have to provide the x and y coordinates of whatever //you want to paint with respect to the bounding rectangle as this is what will be moving. //what is happening when you provide the coordinates with respect to the rectangle's position is //when the rectangle moves you are essentialy shifting the origin for each component in your paint. //as an example this will draw the blue String "Experience Gained: " with the amount of experience gained //5 pixels down and right of the top left of the draggable region g.setColor(Color.BLUE); g.drawString("Experience Gained: "+xpGained ,(int) paintReferenceBox.getX()+5,(int) paintReferenceBox.getY()+5); }}
×
×
  • Create New...