|
Hello Rune-server this is my first tutorial and i will be starting to make a few new tutorials so i thought i would start off with one of the simplest but vital things that a beginner to coding will need to know.
Files used to add and remove objects: Objectmanager.java
Adding Objects
Step 1: Open up objectmanager.java
step 2: Scroll down to about the middle of the file and you will see a load of the same text but with different numbers, the add objects code should look like this: :c.getPA().checkObjectSpawn(2213, 2835, 3446, 1, 10); (This would add a bank booth to the coordinates given.)
3. Copy and paste any of them aslong as the second last number is 0 or more and not -1, if it's -1 then that would be removing an object not adding it. This is how you should add an object:
c.getPA().checkObjectSpawn("Object id", "X cords", "Y cords", "What way the object is facing use numbers 0-3", 10);
Removing objects:
Step 1: To remove an objects you must give the X and the Y cord of the object and if the object takes up more than 1 X or Y cord you must give all of the cords that the object is on.
Step 2: This is an example of removing an object: c.getPA().checkObjectSpawn(-1, 3086, 3526, -1, 10); ~ This is removing an object which is in Y cord 3526 and X cord 3086.
How it works: c.getPA().checkObjectSpawn("-1", "X cord", "Y cord", "-1", 10); ~ Instead of giving an object id you are removing any object that is in the given coordinates.
I know this is a simple guide but there are always new members joining up to the community that are new to coding and don't know how to do the simple things. I am fairly new to coding and when i first joined couldn't figure out how to do this and other things so i will be making a series of "Beginner tutorials".
I hope this helps you, please leave a comment and maybe even a Rep. PM me if you have any problems with this and i will help you via Teamviewer etc.
i wanted to remove the door at pirate hut i did
c.getPA().checkObjectSpawn(-1, 3044, 3956, -1, 10);
and it didnt dissapear?
Been Released
What if i wanted a banker? Would that be in a NPC file?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |