Jump to content

ProjectPact

Script Factory Developer
  • Posts

    6430
  • Joined

  • Last visited

  • Days Won

    37
  • Feedback

    100%

Everything posted by ProjectPact

  1. Script Factory content will be moving from my site to OSBot
  2. Everything should be fixed! Sorry, it is a work in progress. Trying to move everything into the correct place.
  3. It supports over 6,000 items. Any items not supported you can add and tell it where to put it for you
  4. I made it because I am extremely OCD hahahaha
  5. Script Writing Guide & FAQ: By: ProjectPact Checkout Script Factory 2.0 to gain access to tools and resources to save you time on developing and debugging scripts What is a Method Number? When you add a new Check or Action to the script, you may notice something that says ‘[x]:’ (where ‘x’ could be any number) at the beginning of the description. The number inside the brackets refers to the ‘Method Number’. The Method Number is unique because it connects Checks (anything that contains ‘->’ in the description) to an Action (anything that does NOT contain ‘->’ in the description). You may combine multiple Checks to a single Method Number. Checks control the function of the Action(s). If any of the Checks fail for a specific Method Number, the Action(s) for that Method Number will not be performed. You may put multiple Actions within a single Method Number, however the script will loop through ALL Checks prior to running any Actions, so you may not do something like: Check, Check, Action, Check, Action in a single Method Number, because it would actually read as: Check, Check, Check, Action, Action. A simple example may be seen below on the proper way to setup a script with Checks and Actions. Example: [0]: -> If inventory is not full [0] -> If RS20bject exists - [Tree] [0]: Interact With RS2Object - [Tree, Chop down] In the example there are two checks present, and a single action. Notice all three lines contain ‘[0]’, which states that the Method number for the following example is 0. The script makes sure that the inventory is not full, and that the RS2Object (a Tree in this case) exists before trying to interact with it. The script should automatically make the next line following the Action a new Method Number, 1. How may I edit a script with Method Numbers? When editing a script, make sure you are setting the Method Number accordingly. The script will automatically try to guess the Method Number, but this is not always accurate. You may edit a line's Method Number by right clicking and selecting, "Edit Method Number [X]". All you need to do is remember that every Action needs its own unique Method Number. When adding a method, you don't have to worry about Method Numbers going in exact chronological order ([1], [2], [3]...etc) even though it is good practice to make them... but you still have to ensure that Method Numbers go in ascending order. If not, the script will not save properly. Remember, you may always add/edit/delete a line in case you need to. How do I edit scripts? To edit a script, make sure you select the “Rearrange” checkbox on the bottom left corner of the GUI. If you do not check this box, you will not be able to drag and drop Checks or Actions. If you right click anywhere on your code, you will see a menu appear that has a lot more options for you to use. Alternatively, you make access another option menu that contains different options by selecting “Script” on the top left corner of the GUI, then going to “Edit”. How do you use OR statements? OR statements are a type of check that allows you to check for multiple possibilities for an Action to run. It reduces the need to create multiple separate methods for Checks that would use the same Action. You may use multiple OR statements within a single Method Number. Below, you will find an example of how to properly use an OR statement. How do you use ELSE statements? ELSE statements are considered a type of Action that will run an alternate action if a Check fails. You should only use one ELSE statement per Method Number. Below, you will find an example of how to properly use an ELSE statement. What is a Boolean variable? A boolean is simply a true or false statement. They are very powerful in your scripts to keep up with information if you use them correctly. Using one can reduce the amount of checks required in your script, as well as make it easier to call in multiple methods. Download Example Here How do #containsPartialText methods work? The text you search for should either be at the beginning, or the end of an item. You may not search for something in the middle of an item's name. Sort by: When you search for an item, you may sort the item to either get the highest, or lowest value. In this example, lets say in my inventory I have a "Stamina potion(4)" and a "Stamina potion(1)". Sort by Highest: If I search for text containing "Stamina potion", and sort by "Highest", the bot will find "Stamina potion(4)". Sort by Lowest: If I search for text containing "Stamina potion", and sort by "Lowest", the bot will find "Stamina potion(1)". Text placement: Depending on where you select the text placement, either "Starts with" or "Ends with", the script will find item(s) with the desired text. Starts with: "Stamina potion" will find all "Stamina potion(4)", "Stamina potion(3)", "Stamina potion(2)", "Stamina potion(1)" Ends with:"ore" will find all "Copper ore", "Iron ore", "Gold ore"...etc How do I debug issues with my script? Script Factory has a built in debugging system that helps let you know what is failing so you can find issues much faster. On Script Factory, go to Script->Settings->Print to logger. What this will do is print lines to OSBot's debugger to display what is passing, or failing. Now, you need to open up OSBot's debugger to see the printed information. To do that, go to OSBot's client and hit Settings->Toggle logger. A new window should appear where you can see the printed information from Script Factory. If the logger is going too fast, you may always stop your script in Script Factory from running so you can look through the logs. REMEMBER: When you are not debugging a script, disable the 'Print to logger' option in Script Factory! This wastes a lot of resources and slows down script performance/load times. Where are my local scripts saved? Windows: "C:\User\OSBot\Data\ProjectPact\OSRS Script Factory\Local Scripts" Mac: "User\OSBot\Data\ProjectPact\OSRS Script Factory\Local Scripts" How do you run scripts via CLI? Script ID's: Script Factory 2.0: 1214 *Script Factory 1.0: 1097 *Script Factory Expansion: 1144 *Script Factory Pro Edition: 1163 Script Factory Encryptor: 1164 (anything with a '*' is no longer available for purchase) New CLI args: name=SCRIPT_NAME popups=TRUE_OR_FALSE editor=TRUE_OR_FALSE queue=TRUE_OR_FALSE * after each arg, place a underscore "_" Example: -script 1097:name=script1_popups=false_editor=true_queue=false Script Factory has a built in args generator within that can automatically create all your options, as well as more options that aren't represented above! If there is something in particular you would like to see added to the list, please let me know down below!
  6. The merge has started! Expect to see the Script Factory section become more active and fill up with information and content!
  7. v1.64: Added #getAmountWithPartialName to Inventory Added #getAmountWithPartialName to Bank Added #getAmount to GroundItem Added #getAmountWithPartialName to GroundItem Added #containsAnyOtherThan to Inventory Added #typeRandomNumber to Keyboard Added new support for webWalker exact position checks Minor fixes
  8. I’m not the author of that script, so I’m not sure. But I know you have to make sure your account type is a specific one. Like in tutorial island, you select the correct option. It says on the Zero 2 Hero thread
  9. If you want to avoid bans, be smart about how you bot. It's as simple as that Here are a list of scripts for you (Mind you, these are only the ones on the Script Factory Script Repository. There are over 100+ more on the site you can download for free) https://pposb.org/SDN/repository.php
  10. Yea, you can always upgrade to the Expansion pack! If you already own Script Factory, then the Expansion Pack is only $24.99
  11. The Expansion Pack comes with a lot of private scripts that are not accessible to the public. Also, the ban rate on Script Factory is substantially lower than running a standard script, because you can modify and tweak any script to your own liking
  12. This was part of a promotion OSBot was offering. Maybe @Maldestowill do it again in the future.
  13. v1.63: Added a check to prevent adding multiple breaks that are the same name Added the ability to get an Entity’s distance and ignore diagonals to #getDistance in Map Fixed a bug with #moveMouseSlightly in Mouse Fixed a bug not correctly creating an Area after pasting data Fixed a bug not correctly creating an Position after pasting data Fixed a bug that did not store the name of an Area or Position after pasting data Fixed a bug that did not reset the diagonal check for #getDistance in Map Minor fixes
  14. Unfortunate? lol You are looking for a stand alone bot manager if you are wanting to queue up any script on OSBot. Script Factory is a single script that has it's own Script Repository, and built in bot manager.
  15. Hi! Yes, this works 100% with Mirror mode, and there is a script queuing feature! You can only queue Script Factory scripts. There are over 100+ pre-built Script Factory scripts that are all open source as well
  16. v1.62: Fixed a bug with interactions using “Use” in RS2Object Fixed a bug with interactions using “Use” in NPC Minor fixes
  17. v1.61: Added a brand new Script Importer Added wildcard support (“*”) to #interactWith in Player Added support for String and Integer lists support to #interactWith in NPC Added support for String and Integer lists support to #interactWithNPCWithinArea in NPC Added support for String and Integer lists support to #interactWith in RS2Object Added support for String and Integer lists support to #interactWithNPCWithinArea in RS2Object Added a way to paste data in when creating a new Area Added a way to paste data in when creating a new Position Added multi-break timer support in Breaks Added #moveMouseSlightly to Mouse Added color blind options in Settings Fixed a bug with the link to the Expansion Pack Fixed a bug with #numericCompare in RS2Widget Fixed a bug with #getItemAmount in RS2Widget Fixed a bug with #getTextColor in RS2Widget Fixed a bug with #acceptTrade in Trade Fixed a bug with the Inventory Monitor Fixed a bug with all NPC and RS2Object #interactWith methods that would hover the entity even if the action was not present Removed #interactWithNPCNotUnderAttack in NPC (use #interactWith now) Minor fixes
  18. Expansion has some very nice exclusive scripts, and is getting special content for only the expansion pack soon
  19. You should use mirror mode. Look literally at the post above you.
  20. If you’re on mirror mode, you’ll need to restart client. Mirror mode has detection issues sometimes. The developers know about this and I’ve sent them videos.
  21. Pushed a fix for it yesterday, but it hasn't been updated yet
×
×
  • Create New...