Thread: Rune-Evo Server / Turning into a spawn server

Results 1 to 4 of 4
  1. #1 Rune-Evo Server / Turning into a spawn server 
    Registered Member
    Join Date
    May 2013
    Posts
    69
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    can someone help me turn mine into a spawn server?
    apart from spawn torva , nex ect only owner just like dh ect for normal players, i need the folder names , and the codes please . its eco atm wanna change i dont like
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Dec 2012
    Posts
    3,006
    Thanks given
    899
    Thanks received
    929
    Rep Power
    2548
    To make a spawn server, you just need to make the command "::item" available to all.

    To do this, you would need to go into "Commands.java", located in
    Code:
    com.rs.game.player.content
    Once you've opened it up, we need to locate the "item" command.

    Do CTRL + F and search for
    Code:
    case "item":
    (Or whatever the spawn command is)

    You just now want to COPY + PASTE this whole command into the playerCommands section of the Commands.java - which located at the bottom (You could just search for
    Code:
    processNormalCommand
    )



    To make certain items unspawnable, you need to make a String at the top of commands.java declaring the various unspawnable items, such as this:
    Code:
    private static final int NotSpawnable[] = {11694, 11695, 14484, 14485};
    Now you need to add a check statement to the item command, like so:
    Code:
    	if (command[0].equals("item")) {
    			int itemId = Integer.parseInt(command[1]);
    			for (int id : NonSpawnable) {
    				if (id == itemId) {
    					player.sendMessage("This item is not obtainable.");
    					return;
    				}
    			}
    			if (command.length == 3) {
    				player.getInventory().addItem(Integer.parseInt(command[1]),
    						Integer.parseInt(command[2]));
    			} else {
    				player.getInventory().addItem(Integer.parseInt(command[1]), 1);
    			}
    			player.getInventory().refresh();
    		}
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2013
    Posts
    69
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Kaleem View Post
    To make a spawn server, you just need to make the command "::item" available to all.

    To do this, you would need to go into "Commands.java", located in
    Code:
    com.rs.game.player.content
    Once you've opened it up, we need to locate the "item" command.

    Do CTRL + F and search for
    Code:
    case "item":
    (Or whatever the spawn command is)

    You just now want to COPY + PASTE this whole command into the playerCommands section of the Commands.java - which located at the bottom (You could just search for
    Code:
    processNormalCommand
    )



    To make certain items unspawnable, you need to make a String at the top of commands.java declaring the various unspawnable items, such as this:
    Code:
    private static final int NotSpawnable[] = {11694, 11695, 14484, 14485};
    Now you need to add a check statement to the item command, like so:
    Code:
    	if (command[0].equals("item")) {
    			int itemId = Integer.parseInt(command[1]);
    			for (int id : NonSpawnable) {
    				if (id == itemId) {
    					player.sendMessage("This item is not obtainable.");
    					return;
    				}
    			}
    			if (command.length == 3) {
    				player.getInventory().addItem(Integer.parseInt(command[1]),
    						Integer.parseInt(command[2]));
    			} else {
    				player.getInventory().addItem(Integer.parseInt(command[1]), 1);
    			}
    			player.getInventory().refresh();
    		}
    thanks but the first code isent in my commands.java:L -- [Only registered and activated users can see links. ]
    none of these codes are in my commands.java document
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Jul 2010
    Posts
    1,833
    Thanks given
    18
    Thanks received
    76
    Discord
    View profile
    Rep Power
    97
    Quote Originally Posted by VoiceLTD View Post
    thanks but the first code isent in my commands.java:L -- [Only registered and activated users can see links. ]
    none of these codes are in my commands.java document
    If you're using the RUne-Evolution source, YOu wouldn't need to search "case: item" but just : ("item"). But by the Rune-Evo source, the item command is located in the Administrator.java in the folder Commands. You need to add the item command to the RegularPlayer.java .
    The rest of the code must be in RegularPlayer.java

    I hope this helped
    Since 2010
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Rune-Evo client with a new server...
    By FreedomX-SiriusX in forum Help
    Replies: 6
    Last Post: 05-01-2013, 01:44 PM
  2. Rune-Evo Server Help Compiler error
    By GetMunted in forum Help
    Replies: 6
    Last Post: 04-17-2013, 05:43 PM
  3. Rune-Evo server error
    By lionssss in forum Help
    Replies: 3
    Last Post: 02-09-2013, 05:30 AM
  4. some steps before YOU step into codeing a server!
    By asdqwe2311 in forum Tutorials
    Replies: 37
    Last Post: 05-17-2009, 12:24 AM
  5. Turning hamachi server into no-ip server
    By Lolmaster in forum Tutorials
    Replies: 52
    Last Post: 09-30-2007, 04:32 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •