Thread: 718-753: Perm Remove Command

Results 1 to 6 of 6
  1. #1 718-753: Perm Remove Command 
    Member
    Join Date
    Feb 2014
    Posts
    97
    Thanks given
    2
    Thanks received
    0
    Rep Power
    0
    Since I can't find an invisible walk-through able nulled object, does anyone know an alternative way?
    Reply With Quote  
     

  2. #2  
    Extreme Donator 718-753: Perm Remove Command Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    What?
    Reply With Quote  
     

  3. #3  
    Member
    Join Date
    Feb 2014
    Posts
    97
    Thanks given
    2
    Thanks received
    0
    Rep Power
    0
    Rune Evo V3. To normally delete objects globally, it can't be done with this source because both of the NPCs/Objects are in a Customspawns/customobjects .txt file. So I wanted to know if there was another way
    Reply With Quote  
     

  4. #4  
    ScapeRune Developer
    Syphco's Avatar
    Join Date
    Feb 2014
    Posts
    66
    Thanks given
    0
    Thanks received
    4
    Rep Power
    13
    In your NPCspawning.java, look for this:

    Code:
    	public static void spawnNPCS() {
    and underneath it add:

    Code:
    World.deleteObject(new WorldTile(xxxx, yyyy, z));
    Replacing with your own information needed of course.

    Let me know how that works.
    Quote Originally Posted by dipinit View Post
    How exactly do you: "Open up com.rs.game.player.content.Shop" ?
    Reply With Quote  
     

  5. #5  
    ScapeRune Developer
    Syphco's Avatar
    Join Date
    Feb 2014
    Posts
    66
    Thanks given
    0
    Thanks received
    4
    Rep Power
    13
    Although I will say I think Rune Evo is a terrible source, I'd recommend FreedomX
    Quote Originally Posted by dipinit View Post
    How exactly do you: "Open up com.rs.game.player.content.Shop" ?
    Reply With Quote  
     

  6. #6  
    Member
    Join Date
    Feb 2014
    Posts
    97
    Thanks given
    2
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Syphco View Post
    Although I will say I think Rune Evo is a terrible source, I'd recommend FreedomX
    package com.rs.utils;

    import java.io.IOException;
    import java.lang.reflect.InvocationTargetException;
    import java.util.HashMap;
    import java.util.Map;
    import com.rs.game.World;
    import com.rs.game.WorldObject;
    import com.rs.game.WorldTile;
    import com.rs.game.npc.NPC;
    import com.rs.game.player.content.custom.RightsManager;

    public class NPCSpawning {

    private static final Map<Integer, Class<?>> CUSTOM_NPCS = new HashMap<Integer, Class<?>>();

    public static void npcSpawn() {
    int size = 0;
    boolean ignore = false;
    try {
    for (String string : FileUtilities.readFile("data/npcs/npcspawns.txt")) {
    if (string.startsWith("//") || string.equals("")) {
    continue;
    }
    if (string.contains("/*")) {
    ignore = true;
    continue;
    }
    if (ignore) {
    if (string.contains("*/")) {
    ignore = false;
    }
    continue;
    }
    String[] spawn = string.split(" ");
    @SuppressWarnings("unused")
    int id = Integer.parseInt(spawn[0]), x = Integer
    .parseInt(spawn[1]), y = Integer.parseInt(spawn[2]), z = Integer
    .parseInt(spawn[3]), faceDir = Integer
    .parseInt(spawn[4]);
    NPC npc = null;
    Class<?> npcHandler = CUSTOM_NPCS.get(id);
    if (npcHandler == null) {
    npc = new NPC(id, new WorldTile(x, y, z), -1, true, false);
    } else {
    npc = (NPC) npcHandler.getConstructor(int.class).newInstance(i d);
    }
    if (npc != null) {
    WorldTile spawnLoc = new WorldTile(x, y, z);
    npc.setLocation(spawnLoc);
    World.spawnNPC(npc.getId(), spawnLoc, -1, true, false);
    size++;
    }
    }
    } catch (NumberFormatException e1) {
    e1.printStackTrace();
    } catch (IllegalArgumentException e1) {
    e1.printStackTrace();
    } catch (SecurityException e1) {
    e1.printStackTrace();
    } catch (IOException e1) {
    e1.printStackTrace();
    } catch (InstantiationException e1) {
    e1.printStackTrace();
    } catch (IllegalAccessException e1) {
    e1.printStackTrace();
    } catch (InvocationTargetException e1) {
    e1.printStackTrace();
    } catch (NoSuchMethodException e1) {
    e1.printStackTrace();
    }
    System.err.println("Loaded " + size + " custom npc spawns!");
    }

    }
    Thats my npcspawning.java It's setup weird
    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. [718/667]Working Players Command
    By Vip3r in forum Snippets
    Replies: 27
    Last Post: 04-12-2014, 12:34 PM
  2. 718/753 black screen
    By justin8735 in forum Help
    Replies: 4
    Last Post: 09-10-2013, 02:24 PM
  3. 718 [MATRIX] demote all command?
    By SpawnInsanity in forum Help
    Replies: 2
    Last Post: 05-04-2013, 05:43 AM
  4. [718 loading 737] Remove a Global Object?
    By TomTheBeast in forum Help
    Replies: 12
    Last Post: 02-10-2013, 06:46 PM
  5. add removing commands help{pi}
    By xxunitedxx in forum Help
    Replies: 2
    Last Post: 01-22-2011, 11:53 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
  •