Jump to content
  • 0
Sign in to follow this  
ZoomXL

deleting objects.... [pi]

Question

[COLOR=#ff0000][SIZE=5]just nvrm il start another non pi server its much easyer in my opinion.[/SIZE][/COLOR]



can someone give me a good tutorial on how to delete objects on a pi server?

i searched for alot of tutorials but it still doesn't work:/ Edited by ZoomXL

Share this post


Link to post
Share on other sites

17 answers to this question

Recommended Posts

  • 0
Heres a blast

Open

[QUOTE]changeregions.java[/QUOTE]


and then under
[QUOTE]c.getPA().castleWarsObjects();[/QUOTE]

add:



[QUOTE]c.getPA().removeObjects();[/QUOTE]

Then in playerAssistant under public void removeObjects add your objects you wish to delete Edited by Balla

Share this post


Link to post
Share on other sites
  • 0
i don't have

[QUOTE]c.getPA().castleWarsObjects();[/QUOTE]

in changeregions.java :/

this is everythin in there:

[QUOTE]package server.model.players.packets;

import server.Server;
import server.model.players.Client;
import server.model.players.PacketType;

/**
* Change Regions
*/
public class ChangeRegions implements PacketType {

@Override
public void processPacket(Client c, int packetType, int packetSize) {
Server.itemHandler.reloadItems(c);
Server.objectManager.loadObjects(c);
c.saveFile = true;

if(c.skullTimer > 0) {
c.isSkulled = true;
c.headIconPk = 0;
c.getPA().requestUpdates();
}
} [/QUOTE]


and it should be like this huh in PlayerAssistan.java then:

[QUOTE] public void removeObjects() {
objectToRemove(2597, 3087);[/QUOTE]

Share this post


Link to post
Share on other sites
  • 0
Added all you will need below Edited by Balla

Share this post


Link to post
Share on other sites
  • 0
Here is my ChangeRegion

[QUOTE]package server.model.players.packets;

import server.Server;
import server.model.players.Client;
import server.model.players.PacketType;

/**
* Change Regions
*/
public class ChangeRegions implements PacketType {

@Override
public void processPacket(Client c, int packetType, int packetSize) {
c.getPA().castleWarsObjects();
c.getPA().removeObjects();
//Server.objectHandler.updateObjects(c);
Server.itemHandler.reloadItems(c);
Server.objectManager.loadObjects(c);

c.saveFile = true;

if(c.skullTimer > 0) {
c.isSkulled = true;
c.headIconPk = 0;
c.getPA().requestUpdates();
}

}

}
[/QUOTE]

Share this post


Link to post
Share on other sites
  • 0
when i compile i get an error :S

[IMG]http://i49.tinypic.com/1zvpw0y.png[/IMG]

Share this post


Link to post
Share on other sites
  • 0
Nvrm fixed the error just deleted the castlewars thing il see if the door is gone now.

Share this post


Link to post
Share on other sites
  • 0
OMG thank you so much finally someone who explains it a good way :) its a "thanks" for u

Share this post


Link to post
Share on other sites
  • 0
No problem Mate, I forgot to say

[QUOTE]public void castleWarsObjects() {
object(-1, 2373, 3119, -3, 10);
object(-1, 2372, 3119, -3, 10);
}[/QUOTE]


In playerAssistant.java to fix the error above

Share this post


Link to post
Share on other sites
  • 0
comon now its not working anymore what am i doing wrong :/

[IMG]http://i45.tinypic.com/347z32a.png[/IMG]

the door was gone but the some onther objects didn't go away it got alitle messed up so i started over and now they won't go away anymore eaghter :/

Share this post


Link to post
Share on other sites
  • 0
Try (-1, ####, ####)
If that dont work

(####, ####, -1)

Play with the number from -1 to 1 ( -1 , 0 , 1)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×