Thread: Making an item appear on ground from nowhere!

Results 1 to 10 of 10
  1. #1 Making an item appear on ground from nowhere! 
    k1ng 0f k1ngs
    Guest
    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:
    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;
    }
    }
    Of course you have to change the ITEM-ID too the id of the item you wanna spawn and also replace the rest..
    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:
    Code:
    antilag = new antilag();
    then right under that put this in:
    Code:
    ItemSpawn = new ItemSpawn();
    next search for:
    Code:
    antilag.process();
    right under that put this:
    Code:
    ItemSpawn.process();
    now search for:
    Code:
    public static antilag antilag = null;
    and add this under it:
    Code:
    public static ItemSpawn ItemSpawn = null;
    and close and save server.java..
    next compile and your done!!!!!!
    Post any errors or dis-understandings!!!
     

  2. #2  
    Registered Member

    Join Date
    Jun 2007
    Posts
    2,237
    Thanks given
    267
    Thanks received
    411
    Rep Power
    1283
    lol this is in almost every server
    Don't worry, Be happy.
     

  3. #3  
    Registered Member
    Ahrims_mage's Avatar
    Join Date
    Jun 2007
    Posts
    258
    Thanks given
    0
    Thanks received
    0
    Rep Power
    124
    then open up the ItemSpawn.java and save it as ItemSpawn.class
    and the close it..
    rofl!
    anyways, why would we want another itemspawn when we already have?
    ^ constructive criticism
    well good job, rep++ for your time
     

  4. #4  
    Registered Member ninja's Avatar
    Join Date
    Aug 2006
    Age
    80
    Posts
    400
    Thanks given
    0
    Thanks received
    1
    Rep Power
    44
    lol this is in almost every server
    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.
     

  5. #5  
    Registered Member

    Join Date
    Nov 2007
    Posts
    405
    Thanks given
    0
    Thanks received
    0
    Rep Power
    114
    then open up the ItemSpawn.java and save it as ItemSpawn.class
    and the close it..
    Wtf are you a noob?
    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
    Lemon
    [Only registered and activated users can see links. ]
     

  6. #6  
    k1ng 0f k1ngs
    Guest
    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!
     

  7. #7  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    this is out of cheezscape rofl

     

  8. #8  
    Registered Member Dunea's Avatar
    Join Date
    Nov 2007
    Posts
    323
    Thanks given
    0
    Thanks received
    1
    Rep Power
    21
    Wow looks exactly like my itemspawnpoints.java oh wait...duh?

    Code:
    // 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;
    }
    }
    Someone leeching ****zcheez looool
     

  9. #9  
    Registered Member xvfy's Avatar
    Join Date
    Jan 2008
    Age
    27
    Posts
    286
    Thanks given
    0
    Thanks received
    0
    Rep Power
    16
    every server has this...
     

  10. #10  
    Pk Boi
    Guest
    Quote Originally Posted by surfer25 View Post
    lol this is in almost every server
    Actually i dont have it great tut mate, although i do agree with Ancient u dont need to save it as a .class file? Prob leached but i dont care tbh i couldn't find this anywere. tyvm
     


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
  •