Jump to content
Final Calibur

[Beginner Friendly] FC Paint System

Recommended Posts

Today I will be sharing an extremely simple and easy to use paint system for your scripts. Some of you may have seen it in my open sourced scripts, but I think it would be beneficial to have a thread specifically for it.

 

This system allows for a nice, clean, easy to use paint. You can implement it within seconds when creating new scripts, and don't have to worry whatsoever about lining things up coordinate by coordinate.
 
What you will be adding (example)
 

Spoiler


1cad0c2d84.png


Implementation
 

Spoiler


To implement the FC Paint system, you will need two files:

After you have the two files, you must make your main script class implement Painting & FCPaintable. For example:

 

public class FCAIOMiner extends Script implements Painting, FCPaintable

 
Once you have that done, you must include these two methods in your main script class:

@Override
public String[] getPaintInfo() {
	return new String[]{};
}

@Override
public void onPaint(Graphics g) {
	PAINT.paint(g);
}

After that, you need to instantiate an FCPaint object in your main script class, as so (you can choose whatever color you want):

 

final FCPaint PAINT = new FCPaint(this, Color.GREEN);

 


Usage
 

Spoiler


After following the steps above, you simply have to fill out your getPaintInfo() method. For example, here is a basic paint:

@Override
public String[] getPaintInfo() {
	return new String[]{"Time ran: " + PAINT.getTimeRan(), "Planks made: " + planksMade, "Planks per hour: " + PAINT.getPerHour(planksMade), "Status: " + Vars.get().status};
}

 

Edited by iFluffee
  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Final Calibur
      FC Questing
       
      FC Questing is here for all to enjoy! This script is built on a framework which allows for easy chaining of quests, as well as new quests to be added with minimal effort. I will consistently add new quests to the script.
      Suicide Farm Edition:
      In addition to the full FC Questing script, I'm also offering a cheaper edition specifically for suicide farmers. The suicide farm edition will include the following:
      Tutorial Island Cook's Assistant Romeo & Juliet Sheep Shearer Pricing options are below.

      Features:
      Start anywhere Grand exchange support for quests that should utilize it Quest chaining Clean and detailed paint 15 quests supported and counting (GE indicates grand exchange support, GA indicates manual gathering support, SR indicates that the script will achieve skill requirements on it's own, QR indicates that the script will achieve quest point requirements on it's own)  Tutorial Island Doric's Quest GE GA Sheep Shearer GA Cook's Assistant GA Romeo & Juliet GA Rune Mysteries GA Imp Catcher GE Goblin Diplomacy GE Druidic Ritual GE Witch's Potion GE Prince Ali Rescue GE The Knight's Sword GE SR Ernest the Chicken GA The Restless Ghost GA Black Knight's Fortress GE QR Script Arguments:
      profile_name Simply type in the name of a previously saved profile, and it will be used! 7qp Romeo & Juliet Sheep Shearer Cook's Assistant all All supported quests, random order tut-ge Tutorial island Walks to GE after tutorial island tut Tutorial island Account Queue:
      FC Questing supports an account queue, meaning you can run many accounts through the script with ease. Simply create a file in the directory which is opened by the "load accts" button, and format it like so:
      username:password
      Each account must be on it's own line. The accounts will all be ran with the same settings that you have selected. If a banned / locked / invalid account is provided, it will skip over it.
      GE Support / Gathering:
      The script currently features Grand Exchange support for quests that should utilize it. Also, the script supports gathering items manually as well. Check the quest list above to see what each quest supports. Here are some things you should know:
      If supported, the script will attempt to purchase items from the GE first before gathering manually If the player doesn't have enough gold for all of the items, it will then resort to manually gathering the rest of the materials (if gathering is supported for the quest) The script will attempt to purchase items < 2,000 GP for double their market price, to try and avoid waiting. >= 2000 GP will be bought at 1.3 times their market price (this can be changed if you have suggestions) If the quest does not support manual gathering, and the GE process fails, the script will end The script will abort & resubmit any offers that don't sell instantly, for 15% higher (if the character has enough gp to do so). This helps avoid waiting around for items to sell. General Notes:
      As this is a quest script, there are a lot of moving parts. This almost ensures that bugs will pop up now and then. Please report them when they arise, provide a detailed description, and I will fix it as fast as possible.
      The script generally should be able to start in the middle of a quest, however please be aware that this may result in questionable script behavior and / or the quest not completing properly.
      Bug Reports / Suggestions / Questions:
      Please see the thread here on how to report an issue or suggestion. Direct posts on the thread or private messages will be redirected to here.
      Please join my discord channel here for other miscellaneous inquiries. This is the fastest way to contact me.
      Pricing for FC Questing (FULL):
      1 hour free trial (resets on the first of every month) $3.99 per month, 10 instances (great for the casual user) $9.99 per month, 30 instances (great for the large bot farmer) $14.99 per 6 months ($2.50 per month), 10 instances (great for the long term user) $39.99 per 6 months ($6.67 per month), 30 instances (great for the long term large bot farmer) Pricing for FC Questing Lite (TUTORIAL + 7QP):
      1 hour free trial (resets on the first of every month) $0.99 per month, 10 instances $2.49 per 3 months ($.83 cents per month), 10 instances $3.99 per 6 months ($.67 per month), 10 instances $9.99 per 6 months ($1.67 per month), 30 instances
      Images:
       


      Time Lapse:
       
       

       
    • By Final Calibur
      Hello everyone, this thread will serve as a tutorial on how to report a bug, issue, or suggestion for FC scripts only. This does not apply for scripts written by others. I've decided to move on from the classic approach of reporting issues or suggestions through the forums, instead opting to have a centralized repository for all issues & suggestions relating to my scripts. This will provide a much higher level of organization, and increased productivity. It will also serve as a log for every issue / suggestion reported, fixed, or implemented in my scripts. I've decided to use the open source issue tracker MantisBT. Included in this thread is a short tutorial on how to use the tracker to report bugs, suggestions, or other issues, and help improve FC scripts.
      Step One: Navigate to the tracker
      In your preferred web browser, navigate to https://tracker.finalcalibur.com/ If the website doesn't load, please contact me through PM or Discord (this should pretty much never happen) Step Two: Login anonymously
      There is no need to register an account. Simply click "Login Anonymously" on the bottom right of the login page. The button is highlighted in the picture below with a red square. You can sign up if you wish, but it is not necessary. If you do, it is recommended to use a new password which you have never used before. Account credentials are secured in the DB via best practices, however you should not use a password that you use anywhere else. Step Three: View your portal
      Once you login anonymously, you will be sent to your user portal. As a guest, it will likely not have any relevant information, however you can still view all of the reported issues and suggestions. You can explore the portal on your own, everything is pretty self explanatory. If you would like to report a bug, issue, or suggestion, please click on the button highlighted in red in the picture below. Step Four: Fill out the report form
      This is the most important part of the process, where you'll do the actual reporting of an issue or suggestion. Fill out the form as thoroughly as you can in order to make the process more efficient. Descriptions of the various form fields are listed below. Make sure you click the "Submit Issue" button when you're done filling out the form, to enter the report into the system. Step Five: Check back on your issue
      One of the advantages with the MantisBT system is that you can check back on your issue (through the view issues button on your portal), to see if I've made any progress, or even if I've seen your issue (in which case your issue would appear as "acknowledged"). Sometimes I may require more feedback, which you would see and be able to provide if you click on the issue.
    • By Final Calibur
      FC Private Script Shop
      Current Status: On Hold Temporarily
      Hello, I'm Final Calibur and I'm offering a private scripting service. Those who have used my public scripts in the past know that I am very detail oriented and put the maximum amount of effort into all of my endeavors. This will translate to private scripting, where I will produce high quality personal scripts, according to your exact specification. If you are interested, read the terms and conditions below. Message me, following the directions in the terms and conditions, for an honest quote.
      FC Private Scripting Terms & Conditions
      "Criteria" describes a strict outline of script feature expectations in the form of a text file which must be attached via a private message on TRiBot. All script requests must include a set of criteria to be met to determine price estimation. Once the agreed payment amount has been settled, any additional features requested outside of the listed criteria will require a price re-evaluation. Users have up to 90 days from the initial date of purchase to report any issues with the script. It is the user's responsibility to gauge the quality of the script, provide any qualifying test account(s) for script development, and bear the losses of any accounts banned. You pay for access, not rights to do whatever you please (example: giving a friend an auth). Payments must be made through the TRiBot repository. Script requests are only for Old School RuneScape.
      By including "I accept the FC Private Scripting Terms & Conditions." at the bottom of your request, you (the purchaser) agree with and abide by the above terms and conditions.
       
    • By Final Calibur
      Removed, check signature for FC Questing
      Source is still available to view (click open source scripts in signature)
       
    • By Final Calibur
      Removed, check signature for FC Questing
      Source is still available to view (click open source scripts in signature)
       
    • By Final Calibur
      Removed, check signature for FC Questing
      Source is still available to view (click open source scripts in signature)
    • By Final Calibur
      FC Questing has been upgraded to a premium script. Please view the thread Here
    • By Yawodo
      I'm a digital artist and have just created my first nooby java script, I'd like to add a customised paint with imagery. Currently I just have a line of code. Could anyone advise how I might go about creating a cool paint, a video or software or any guidance? Cheers.
  • Our picks

    • This release will:

      Fix some ClosedChannelException bug


      Fix bug in RSObject#getAllTiles


      Add game tab support for "Kourend Favour"
        • Like
      • 8 replies
    • This release will:

      Fix Settings UI placement bug


      Fix game object location bug


      Fix small layout bug making the client shift up and down


      Fix client crashing bug where loading the client with a small display area will cause the client to crash


      Fix annoying Linux bug relating to painting events and peers


      Fix settings saving bug where settings are saved to disk more often than they should


      Fix RSInterface#isBeingDrawn bug affecting a limited amount of people


      Drop Java 1.7 bytecode version for 1.8


      Important: Since the downloadable RS client uses Java 7, it will no longer be compatible with Looking Glass. To make up for this, we will add support for using other clients such as RuneLite (at a later date).


      This change was necessary to allow us to use Java 8 syntax. It also paves the way for Java 9/10/11 support.
        • Like
      • 40 replies
    • This update will:

      Fix the RSMenuNode bug which also fixes the bug with bank opening


      Fix the incorrect object positions bug


      Fix and re-enable the LG Objects API Accelerator


      Fix the RSObject#getAllTiles bug
        • Like
      • 22 replies
    • Try our development release by checking "Development Release" on the TRiBot Loader. Note that these new features are currently in beta.

      This release features:

      Re-sizable mode support for both LG and the regular client


      Slightly improved login bot


      Removed final access modifiers from API classes


      Added RSServer hook wrapper to get the client's cached list of server/world info


      [NEW] Bug fix for intelligent banking


      [NEW] Improvement to the stability of LG over time


      [NEW] Vastly improved the reliability and speed of Screen#getColorAt on both LG and the regular client


      [NEW] Fix LG login problems


      [NEW] Fixed re-sizable mode container bug


      [NEW] Fixed re-sizable mode mouse bug


      [NEW] Use of public constants in the Banking API


      [NEW] Use of other various constants such as Projection#NULL_PT and Screen#EMPTY_COLOR



      More features to come very soon!

      Please test it and let us know here if there are any new bugs introduced in this release.
        • Thanks
        • Like
      • 12 replies
    • Try our development release by checking "Development Release" on the TRiBot Loader. Note that these new features are currently in beta.

      This release features:

      Re-sizable mode support for both LG and the regular client


      Slightly improved login bot


      Removed final access modifiers from API classes


      Added RSServer hook wrapper to get the client's cached list of server/world info


      Bug fix for intelligent banking


      Improvement to the stability of LG over time



      More features to come very soon!

      Please test it and let us know here if there are any new bugs introduced in this release.
        • Thanks
        • Like
      • 10 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×