closes #177 closes #136 (hp restoring works, couldn't find the anim tho) closes #178 (should fix all the issues, let me know for sure) Also removed the object does not exist message ingame for non admins and got rid of the isBotting code when clicking objects
35 lines
923 B
Java
35 lines
923 B
Java
package redone.net.packets.impl;
|
|
|
|
import redone.Constants;
|
|
import redone.Server;
|
|
import redone.game.content.music.Music;
|
|
import redone.game.globalworldobjects.Doors;
|
|
import redone.game.players.Client;
|
|
import redone.net.packets.PacketType;
|
|
import redone.world.GlobalDropsHandler;
|
|
|
|
/**
|
|
* Change Regions
|
|
*/
|
|
public class ChangeRegions implements PacketType {
|
|
|
|
@Override
|
|
public void processPacket(Client c, int packetType, int packetSize) {
|
|
if (Constants.SOUND && c.musicOn) {
|
|
Music.playMusic(c);
|
|
}
|
|
Server.objectHandler.updateObjects(c);//testing
|
|
Doors.getSingleton().load();
|
|
Server.itemHandler.reloadItems(c);
|
|
Server.objectManager.loadObjects(c);
|
|
GlobalDropsHandler.reset(c);
|
|
c.getPlayerAssistant().removeObjects();// testing
|
|
c.saveFile = true;
|
|
if (c.skullTimer > 0) {
|
|
c.isSkulled = true;
|
|
c.headIconPk = 0;
|
|
c.getPlayerAssistant().requestUpdates();
|
|
}
|
|
}
|
|
}
|