lol this is in almost every server
|
|
Okay this TuT will show you guys how to make an item appear on the ground from nowhere.
Diff: 2/10
Purpose: Helping ppl getting an item appear on the ground from nowhere.
Class Modifyed: Server.java
Assumed Knowledge: Searching, making new .class & .java files.
Okay lets start..
I know that you guys may already have a .java/.class file called itemspawnpoints
but
we're going to make one called ItemSpawn
Okay to do this you must make a new text document into your source folder..
After you did that you must call it ItemSpawn
and then open it and put this in it:
Of course you have to change the ITEM-ID too the id of the item you wanna spawn and also replace the rest..Code:import java.io.*; public class itemspawnpoints { public int spawnTimer = 0; public void LoadItems() { for (int i = 0; i <= 5000; i++){ if(spawnTimer <= 1) { ItemHandler.addItem(ITEM-ID, X-CO, Y-CO, AMOUNT, ItemHandler.globalItemController[i], false); spawnTimer = 100; } } } public void process() { LoadItems(); spawnTimer -= 1; } }
Just use a little bit of common sence and then you'll now what too change the rest with..
then save it as ItemSpawn.java
do that and close it..
then delete the original as u only got the ItemSpawn.java left..
then open up the ItemSpawn.java and save it as ItemSpawn.class
and the close it..
Then you should have a ItemSpawn.java and a ItemSpawn.class
next find server.java
open it and search for this:
then right under that put this in:Code:antilag = new antilag();
next search for:Code:ItemSpawn = new ItemSpawn();
right under that put this:Code:antilag.process();
now search for:Code:ItemSpawn.process();
and add this under it:Code:public static antilag antilag = null;
and close and save server.java..Code:public static ItemSpawn ItemSpawn = null;
next compile and your done!!!!!!
Post any errors or dis-understandings!!!

lol this is in almost every server
rofl!then open up the ItemSpawn.java and save it as ItemSpawn.class
and the close it..
anyways, why would we want another itemspawn when we already have?
^ constructive criticism
well good job, rep++ for your time
If you have an actual decent server thats nice and clean, this isnt in it. and it saves people time so they dont have to code it themselves.lol this is in almost every server

Wtf are you a noob?then open up the ItemSpawn.java and save it as ItemSpawn.class
and the close it..
Dude, you don't save it as .class
When you compile it, then it automaticly compiles a .class file
Considering your posts and reputation, I must say this is leeched, from another noob LAWL
shut up ancient!
I wanna bet on that I'm a better coder than u!
My server has almost real rs2 summoning
and cats thats actually is following! And much more! *****! And i dont care if i get banned!BITCH!

this is out of cheezscape rofl



Wow looks exactly like my itemspawnpoints.java oh wait...duh?
Someone leeching ****zcheez loooolCode:// Item Spawn Points by ****zcheez import java.io.*; public class itemspawnpoints { public int spawntimer = 0; public void LoadItems() { for (int i = 0; i <= 5000; i++){ if(spawntimer <= 1) { ItemHandler.addItem(2414, 3118, 9848, 1, ItemHandler.globalItemController[i], false); // Zammy Cape ItemHandler.addItem(2412, 3119, 9848, 1, ItemHandler.globalItemController[i], false); // Sara Cape ItemHandler.addItem(2413, 3120, 9848, 1, ItemHandler.globalItemController[i], false); // Guthix Cape ItemHandler.addItem(995, 2706, 3734, 30000, ItemHandler.globalItemController[i], false); // Coins ItemHandler.addItem(995, 2722, 3737, 30000, ItemHandler.globalItemController[i], false); // Coins spawntimer = 100; } } } public void process() { LoadItems(); spawntimer -= 1; } }
every server has this...
| « Adding the best Welcome screen possible | Right click "stats" » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |