Thread: [PI] Making Removing Objects Easier Via Command [PI]

Results 1 to 5 of 5
  1. #1 [PI] Making Removing Objects Easier Via Command [PI] 
    Banned
    Join Date
    Apr 2012
    Posts
    45
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Removes environmental objects. After typing the command and labeling it what you wish, copy + paste it from your "ObjectsToRemove.txt" straight into your ObjectManager.java.


    Before:



    After:



    Code:
    if (playerCommand.startsWith("delete") && playerCommand.length() > 6) {
    	   try {
    	   BufferedWriter coord = new BufferedWriter(new FileWriter("./Data/ObjectsToRemove.txt", true));
    	   String location = playerCommand.substring(6);
    	   try {	
    		coord.write("c.getPA().checkObjectSpawn(-1, "+c.absX+", "+c.absY+", -1, 10); //"+location);
    		c.sendMessage("This spot has been recorded in ObjectsToRemove. ");
    		c.sendMessage("Copy + Paste it in your ObjectManager.java To Remove it.");
    		coord.newLine();
    		} finally {
    		coord.close();
    		}
    		} catch (IOException e) {
    	                e.printStackTrace();
    		}
    	}
    example:
    Code:
    ::delete chair

    Kinda practical but useful none the less.

    Credits
    50% Me Idea/concept
    50% steve smith - Location Log Command
    Reply With Quote  
     

  2. #2  
    RuneAdventure - The Epic Adventure

    Thock321's Avatar
    Join Date
    Jul 2011
    Posts
    1,809
    Thanks given
    706
    Thanks received
    363
    Rep Power
    416
    Why is the location string named that way? Wouldn't it be better to name it "comment" or something? Also, you could just have it edit global-objects.cfg instead.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jun 2012
    Posts
    653
    Thanks given
    233
    Thanks received
    128
    Rep Power
    0
    Or you could do it the correct way and remove them client sided.
    Reply With Quote  
     

  4. #4  
    Father Of Lies


    Join Date
    May 2012
    Age
    23
    Posts
    1,216
    Thanks given
    267
    Thanks received
    289
    Rep Power
    242
    Quote Originally Posted by God Eclipse View Post
    Or you could do it the correct way and remove them client sided.
    Go on, explain how to.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jun 2012
    Posts
    653
    Thanks given
    233
    Thanks received
    128
    Rep Power
    0
    You have to use a map editor to edit the land data in the cache. Don't ask me how to do it because I've never done it. I prefer to leave the maps the way they were meant to be. Causes less problems that way in my opinion.
    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. Replies: 1
    Last Post: 04-01-2010, 03:31 AM
  2. Making Easier Menus
    By Stewie in forum Snippets
    Replies: 9
    Last Post: 10-29-2009, 03:58 AM
  3. Replies: 6
    Last Post: 06-06-2009, 10:42 PM
  4. Replies: 22
    Last Post: 06-05-2008, 05:01 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •