Jump to content
  • 0
Sign in to follow this  
Runewhipzz

Deleting objects

Question

I have tried for the past 6 hours of googling, downloading sources and adding their deleting of objects into my code. I can not do it. I have tried everything from the "Remove global objects 718+" Thread on a different source to literally stealing about 5 source's code of RemoveObject, DeleteObject, WorldTile.java, World.java, creating my own DeleteObject.java, messing with Region.Java, etc. Does anyone know of any proper tutorial of deleting objects besides of trying those? I'm just trying the basic NPCSpawning.java         World.deleteObject(new WorldTile(x, y, z));...

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello, please make sure you are deleting the object on the correct layer. There are 22 layers of objects (iirc) and without specifying the layer it defaults to 10 I think. Also just a note in case you misinterpreted the goal of the method, removeObject will not remove NPCs.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×