Thread: [B]How to spawn items on world map [tut][/B]

Results 1 to 10 of 10
  1. #1 [B]How to spawn items on world map [tut][/B] 
    i dds i
    Guest
    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

    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
    but different items usually.

    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

    // 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;
    }
    }
    then customize it to your liking.

    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.
     

  2. #2  
    Fallen Azn SinZ
    Guest
    you should add in that when they want to create the itemspawnpoint class, they should save it as : "itemspawnpoints.java" (with the quotation marks(""))
     

  3. #3  
    Registered Member

    Join Date
    Jun 2007
    Posts
    2,237
    Thanks given
    267
    Thanks received
    411
    Rep Power
    1283
    Quote Originally Posted by azn_sinz View Post
    you should add in that when they want to create the itemspawnpoint class, they should save it as : "itemspawnpoints.java" (with the quotation marks(""))
    Why would you?

    simply save it as
    itemspawnpoints.java (without (""))
     

  4. #4  
    Fallen Azn SinZ
    Guest
    Quote Originally Posted by surfer25 View Post
    Why would you?

    simply save it as
    itemspawnpoints.java (without (""))
    if you save it without the quotes, it will appear like this:

    itemspawnpoints.java
    TEXT file

    if you save it with the quotes, it will appear like this:

    itemspawnpoints
    JAVA file
     

  5. #5  
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    1,199
    Thanks given
    17
    Thanks received
    27
    Rep Power
    98
    Quote Originally Posted by azn_sinz View Post
    if you save it without the quotes, it will appear like this:

    itemspawnpoints.java
    TEXT file

    if you save it with the quotes, it will appear like this:

    itemspawnpoints
    JAVA file
    or you could turn the save to all files* (smart eh?)

     

  6. #6  
    x19
    Guest
    I dont use the "" marks to get it to save as a java file?

    Mr X
     

  7. #7  
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    1,199
    Thanks given
    17
    Thanks received
    27
    Rep Power
    98
    Mr X they think oyu have to do it lol theres no point except 2 more clicks if it will hurt em

     

  8. #8  
    Fallen Azn SinZ
    Guest
    Well I use the "" and it works, then I don't use "" and it is a normal text file.
     

  9. #9  
    ~Legend Rene
    Guest
    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.
     

  10. #10  
    Fallen Azn SinZ
    Guest
    oh I see, well either way works. The "" way is the way I know of doing.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •