Thread: 718 Help

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 718 Help 
    Donator

    Join Date
    May 2013
    Posts
    211
    Thanks given
    187
    Thanks received
    27
    Rep Power
    58
    So I added this: https://www.rune-server.org/runescap...objects-6.html

    Everything was fine, got no errors. My source didnt have fileutilities.java and npcspawning.java but i found these classes on the internet and added them into the source. So I've done everything but it doesn't work. I cant remove any objects, idk what im doing wrong.

    I've put the objects in NPCSpawning.java (as described in the snippet)
    Code:
    	public static void spawnNPCS() { //under this
    		
    	//World.deleteObject(new WorldTile(3085, 3504, 0));
    	World.deleteObject(new WorldTile(3083, 3492, 0));// Boulder at edgeville
    	World.deleteObject(new WorldTile(3087, 3516, 0));// Beacon at edgeville
    	World.deleteObject(new WorldTile(3097, 3502, 0));// Tree at edge
    	World.deleteObject(new WorldTile(3083, 3500, 0));// Edge
    	World.deleteObject(new WorldTile(3092, 3488, 0));// Desk at edgeville bank
    	World.deleteObject(new WorldTile(3090, 3517, 0));// Chest at edge ditch
    	World.deleteObject(new WorldTile(3082, 3518, 0));// Tree at edgeville
    	
    	}
    Would be nice if someone could give me a hint
    Reply With Quote  
     

  2. #2  
    Registered Member
    Stimulant's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    1,457
    Thanks given
    248
    Thanks received
    187
    Rep Power
    578
    eh, did u init it on the server start up?
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    May 2013
    Posts
    211
    Thanks given
    187
    Thanks received
    27
    Rep Power
    58
    Quote Originally Posted by Novite View Post
    eh, did u init it on the server start up?
    It says cannot find symbol spawnNPCS
    http://prntscr.com/cv75sk
    Reply With Quote  
     

  4. #4  
    Registered Member Ahri's Avatar
    Join Date
    Dec 2009
    Posts
    76
    Thanks given
    67
    Thanks received
    11
    Rep Power
    2
    You imported the java class in the launcher?


    Reply With Quote  
     

  5. #5  
    Donator

    Join Date
    May 2013
    Posts
    211
    Thanks given
    187
    Thanks received
    27
    Rep Power
    58
    Quote Originally Posted by Ahri View Post
    You imported the java class in the launcher?
    yeah i did
    Reply With Quote  
     

  6. #6  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by NICKIminaj View Post
    yeah i did
    No, you made a typo or didn't save Launcher correctly. This error pretty much says that you didn't import SpawnNPCS. Post Launcher maybe?
    Project thread
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Mar 2013
    Posts
    158
    Thanks given
    38
    Thanks received
    37
    Rep Power
    0
    Quote Originally Posted by NICKIminaj View Post
    So I added this: https://www.rune-server.org/runescap...objects-6.html

    Everything was fine, got no errors. My source didnt have fileutilities.java and npcspawning.java but i found these classes on the internet and added them into the source. So I've done everything but it doesn't work. I cant remove any objects, idk what im doing wrong.

    I've put the objects in NPCSpawning.java (as described in the snippet)
    Code:
    	public static void spawnNPCS() { //under this
    		
    	//World.deleteObject(new WorldTile(3085, 3504, 0));
    	World.deleteObject(new WorldTile(3083, 3492, 0));// Boulder at edgeville
    	World.deleteObject(new WorldTile(3087, 3516, 0));// Beacon at edgeville
    	World.deleteObject(new WorldTile(3097, 3502, 0));// Tree at edge
    	World.deleteObject(new WorldTile(3083, 3500, 0));// Edge
    	World.deleteObject(new WorldTile(3092, 3488, 0));// Desk at edgeville bank
    	World.deleteObject(new WorldTile(3090, 3517, 0));// Chest at edge ditch
    	World.deleteObject(new WorldTile(3082, 3518, 0));// Tree at edgeville
    	
    	}
    Would be nice if someone could give me a hint

    Use an IDE Such-as Eclispe, and run the server. (Remember to import the libs into the buildpath.)

    if an error comes up when you go near the deleted object in-game
    VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV VVV

    I'm guessing you're using a Foxtrot-Matrix based source from the downloads

    the fix is very simple.

    Add
    Code:
    if (World.restrictedTiles != null) {
    				for (WorldTile restrictedTile : World.restrictedTiles) {
    					if (restrictedTile != null) {
    						int restX = restrictedTile.getX(), restY = restrictedTile.getY();
    						int restPlane = restrictedTile.getPlane();
    
    						if (object.getX() == restX && object.getY() == restY && object.getPlane() == restPlane) {
    							World.spawnObject(
    									new WorldObject(-1, 10, 2, object.getX(), object.getY(), object.getPlane()), false);
    							unclip(object, localX, localY);
    							return;
    						}
    					}
    				}
    			}
    Under
    Code:
    public void spawnObject(WorldObject object, int plane, int localX, int localY, boolean original) {
            if (original) {
    So it looks like
    Code:
    public void spawnObject(WorldObject object, int plane, int localX, int localY, boolean original) {
    		if (original) {
    			if (World.restrictedTiles != null) {
    				for (WorldTile restrictedTile : World.restrictedTiles) {
    					if (restrictedTile != null) {
    						int restX = restrictedTile.getX(), restY = restrictedTile.getY();
    						int restPlane = restrictedTile.getPlane();
    
    						if (object.getX() == restX && object.getY() == restY && object.getPlane() == restPlane) {
    							World.spawnObject(
    									new WorldObject(-1, 10, 2, object.getX(), object.getY(), object.getPlane()), false);
    							unclip(object, localX, localY);
    							return;
    						}
    					}
    				}
    			}
    			objects[plane][localX][localY][slot] = object;
    			clip(object, localX, localY);
    		} else {
    Reply With Quote  
     

  8. #8  
    Donator

    Join Date
    May 2013
    Posts
    211
    Thanks given
    187
    Thanks received
    27
    Rep Power
    58
    Quote Originally Posted by clem585 View Post
    No, you made a typo or didn't save Launcher correctly. This error pretty much says that you didn't import SpawnNPCS. Post Launcher maybe?
    I've put this in launcher:
    Code:
    	Logger.log("Launcher", "Initiating Removed Objects");
    	SpawnNPCS.init();
    and the imports:
    Code:
    import com.rs.utils.FileUtilities;
    import com.rs.utils.NPCSpawning;
    And the spawnnpcs method in NPCSpawning.java
    Code:
     	public static void spawnNPCS() {
    	
    	//World.deleteObject(new WorldTile(3085, 3504, 0));
    	World.deleteObject(new WorldTile(3083, 3492, 0));// Boulder at edgeville
    	World.deleteObject(new WorldTile(3087, 3516, 0));// Beacon at edgeville
    	World.deleteObject(new WorldTile(3097, 3502, 0));// Tree at edge
    	World.deleteObject(new WorldTile(3083, 3500, 0));// De brunne at edge
    	World.deleteObject(new WorldTile(3092, 3488, 0));// desk at edgeville bank
    	World.deleteObject(new WorldTile(3090, 3517, 0));// chest at edge ditch
    	World.deleteObject(new WorldTile(3082, 3518, 0));// Beacon at edgeville
    	//NPC SPAWNS GO HERE
    	
    	}

    Quote Originally Posted by Backwoods View Post
    Use an IDE Such-as Eclispe, and run the server. (Remember to import the libs into the buildpath.)

    if an error comes up when you go near the deleted object in-game
    VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV VVV

    I'm guessing you're using a Foxtrot-Matrix based source from the downloads

    the fix is very simple.

    Add
    Code:
    if (World.restrictedTiles != null) {
    				for (WorldTile restrictedTile : World.restrictedTiles) {
    					if (restrictedTile != null) {
    						int restX = restrictedTile.getX(), restY = restrictedTile.getY();
    						int restPlane = restrictedTile.getPlane();
    
    						if (object.getX() == restX && object.getY() == restY && object.getPlane() == restPlane) {
    							World.spawnObject(
    									new WorldObject(-1, 10, 2, object.getX(), object.getY(), object.getPlane()), false);
    							unclip(object, localX, localY);
    							return;
    						}
    					}
    				}
    			}
    Under
    Code:
    public void spawnObject(WorldObject object, int plane, int localX, int localY, boolean original) {
            if (original) {
    So it looks like
    Code:
    public void spawnObject(WorldObject object, int plane, int localX, int localY, boolean original) {
    		if (original) {
    			if (World.restrictedTiles != null) {
    				for (WorldTile restrictedTile : World.restrictedTiles) {
    					if (restrictedTile != null) {
    						int restX = restrictedTile.getX(), restY = restrictedTile.getY();
    						int restPlane = restrictedTile.getPlane();
    
    						if (object.getX() == restX && object.getY() == restY && object.getPlane() == restPlane) {
    							World.spawnObject(
    									new WorldObject(-1, 10, 2, object.getX(), object.getY(), object.getPlane()), false);
    							unclip(object, localX, localY);
    							return;
    						}
    					}
    				}
    			}
    			objects[plane][localX][localY][slot] = object;
    			clip(object, localX, localY);
    		} else {
    Screenshot by Lightshot
    Getting this errror when trying to add

    Edit: If i want to add objects, its pretty easy, I just write them into the unspawnedList.txt and then pack the folder and done. But deleting doesn't work like that, I can only delete the objects I've spawned, not the ground objects and thats pretty much what I need
    Reply With Quote  
     

  9. #9  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by NICKIminaj View Post
    I've put this in launcher:
    Code:
    	Logger.log("Launcher", "Initiating Removed Objects");
    	SpawnNPCS.init();
    and the imports:
    Code:
    import com.rs.utils.FileUtilities;
    import com.rs.utils.NPCSpawning;
    And the spawnnpcs method in NPCSpawning.java
    Code:
     	public static void spawnNPCS() {
    	
    	//World.deleteObject(new WorldTile(3085, 3504, 0));
    	World.deleteObject(new WorldTile(3083, 3492, 0));// Boulder at edgeville
    	World.deleteObject(new WorldTile(3087, 3516, 0));// Beacon at edgeville
    	World.deleteObject(new WorldTile(3097, 3502, 0));// Tree at edge
    	World.deleteObject(new WorldTile(3083, 3500, 0));// De brunne at edge
    	World.deleteObject(new WorldTile(3092, 3488, 0));// desk at edgeville bank
    	World.deleteObject(new WorldTile(3090, 3517, 0));// chest at edge ditch
    	World.deleteObject(new WorldTile(3082, 3518, 0));// Beacon at edgeville
    	//NPC SPAWNS GO HERE
    	
    	}



    Screenshot by Lightshot
    Getting this errror when trying to add

    Edit: If i want to add objects, its pretty easy, I just write them into the unspawnedList.txt and then pack the folder and done. But deleting doesn't work like that, I can only delete the objects I've spawned, not the ground objects and thats pretty much what I need
    I'm pretty sure you meant to do:

    Code:
    NPCSpawning.spawnNPCS();
    rather than:

    Code:
    SpawnNPCS.init();
    Else you're still haven't imported SpawnNPCS:

    Code:
    import package.SpawnNPCS;
    Project thread
    Reply With Quote  
     

  10. #10  
    Donator

    Join Date
    May 2013
    Posts
    211
    Thanks given
    187
    Thanks received
    27
    Rep Power
    58
    Quote Originally Posted by clem585 View Post
    I'm pretty sure you meant to do:

    Code:
    NPCSpawning.spawnNPCS();
    rather than:

    Code:
    SpawnNPCS.init();
    Else you're still haven't imported SpawnNPCS:

    Code:
    import package.SpawnNPCS;


    thanks, got no errors but the objects are still not removed... :C
    im trying to remove for example this tree http://prntscr.com/cvh48g or the beacon at edgeville
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. SOF 718 Help!
    By Mythology in forum Help
    Replies: 0
    Last Post: 09-25-2012, 08:58 AM
  2. 718 help, looking for another base?
    By teh princee in forum Help
    Replies: 4
    Last Post: 09-23-2012, 11:55 AM
  3. 718 Help. SOF
    By altiar in forum Help
    Replies: 9
    Last Post: 08-31-2012, 11:05 PM
  4. 667/718 help
    By Goliath in forum Help
    Replies: 0
    Last Post: 08-09-2012, 12:05 AM
  5. 718-Help.
    By Tyrell in forum Requests
    Replies: 0
    Last Post: 08-02-2012, 05:29 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
  •