you should add in that when they want to create the itemspawnpoint class, they should save it as : "itemspawnpoints.java" (with the quotation marks(""))
|
Some may find this very pointless but when i first started i kept looking in the wrong place and some others i know found it very difficult so pls dont flame me
Step 1, open itemspawnpoint.java
step,2 if your server already has stuff on ground usually with pimp and stuff like 20m lieing around you will see something like
but different items usually.ItemHandler.addItem(347, 3096, 3956, 1, ItemHandler.globalItemController[i], false); // herring
ItemHandler.addItem(1351, 3259, 3433, 1, ItemHandler.globalItemController[i], false); // bronze axe
ItemHandler.addItem(1351, 3194, 3424, 1, ItemHandler.globalItemController[i], false); // bronze axe
Then for the herring as a i.e change the 347 to the item i.d you want and the 3069,3956 to the coords you want Y, and X.
And if your server dont have itemspawnpoints.java which a few serverbases i used for coding my server didnt. just make a itemspawnpoint.java and copy and paste this in
then customize it to your liking.// Item Spawn Points by range
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(347, 3066, 3952, 1, ItemHandler.globalItemController[i], false); // herring
ItemHandler.addItem(347, 3253, 3462, 1, ItemHandler.globalItemController[i], false); // herring
ItemHandler.addItem(347, 3096, 3956, 1, ItemHandler.globalItemController[i], false); // herring
ItemHandler.addItem(1351, 3259, 3433, 1, ItemHandler.globalItemController[i], false); // bronze axe
ItemHandler.addItem(1351, 3194, 3424, 1, ItemHandler.globalItemController[i], false); // bronze axe
ItemHandler.addItem(2339, 2760, 3481, 1, ItemHandler.globalItemController[i], false); // Leaf For Invisible Armour Quest
ItemHandler.addItem(1944, 3229, 3299, 1, ItemHandler.globalItemController[i], false); // Egg
ItemHandler.addItem(2166, 3260, 3437, 1, ItemHandler.globalItemController[i], false); // Gnomebowl mould
ItemHandler.addItem(793, 2588, 3091, 1, ItemHandler.globalItemController[i], false); // Daconia Rock For Spells Of The Gods Quest
ItemHandler.addItem(1917, 3252, 3439, 1, ItemHandler.globalItemController[i], false); // Light beer
ItemHandler.addItem(995, 3250, 3422, 19999999, ItemHandler.globalItemController[i], false); // coins
ItemHandler.addItem(6384, 2934, 9791, 1, ItemHandler.globalItemController[i], false); // desert top
ItemHandler.addItem(1214, 2934, 9793, 10, ItemHandler.globalItemController[i], false); // rune dagger
ItemHandler.addItem(995, 3242, 3429, 19999999, ItemHandler.globalItemController[i], false); // coins3
ItemHandler.addItem(995, 3240, 3433, 19999999, ItemHandler.globalItemController[i], false); // coins4
ItemHandler.addItem(3801, 3269, 3434, 1, ItemHandler.globalItemController[i], false); // Keg of beer
ItemHandler.addItem(995, 2507, 3379, 50000000, ItemHandler.globalItemController[i], false); //Nets's Moderator Island 50m Drop
spawntimer = 100;
}
}
}
public void process()
{
LoadItems();
spawntimer -= 1;
}
}
i tryed to get into as much detail as possible with this. and its my first tut on Rune-server. that i could think of doing cuz most basic ones are already done. and if this has been done before i didnt know. just inform me and i will close it.
you should add in that when they want to create the itemspawnpoint class, they should save it as : "itemspawnpoints.java" (with the quotation marks(""))
I dont use the "" marks to get it to save as a java file?
Mr X
Mr X they think oyu have to do it lol theres no point except 2 more clicks if it will hurt em
Well I use the "" and it works, then I don't use "" and it is a normal text file.
Read what they actually posted , when you do save as... you most commonly have the options save as TXT file , save as RTF file or All Files*
If you select that and you type in itemspawnpoints.java its a java file.
oh I see, well either way works. The "" way is the way I know of doing.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |