Respawn rework and various changes.

This commit is contained in:
MobiusDev
2018-03-31 16:36:49 +00:00
parent 41e19cc19e
commit 10b722829a
282 changed files with 866 additions and 1807 deletions

View File

@@ -85,7 +85,7 @@ public final class Elpies extends Event
return false;
}
// Check Custom Table - we use custom NPC's
// Check Custom Table - we use custom NPCs
if (!Config.CUSTOM_NPC_DATA)
{
_log.info(getName() + ": Event can't be started because custom NPC table is disabled!");

View File

@@ -40,7 +40,7 @@ import com.l2jmobius.gameserver.util.Broadcast;
*/
public final class Race extends Event
{
// Event NPC's list
// Event NPCs list
private List<L2Npc> _npclist;
// Npc
private L2Npc _npc;
@@ -56,7 +56,7 @@ public final class Race extends Event
private static final int _time_register = 5;
// 5 min for race
private static final int _time_race = 10;
// NPC's
// NPCs
private static final int _start_npc = 900103;
private static final int _stop_npc = 900104;
// Skills (Frog by default)
@@ -118,7 +118,7 @@ public final class Race extends Event
{
return false;
}
// Check Custom Table - we use custom NPC's
// Check Custom Table - we use custom NPCs
if (!Config.CUSTOM_NPC_DATA)
{
_log.info(getName() + ": Event can't be started, because custom npc table is disabled!");

View File

@@ -128,8 +128,6 @@ public class AdminEffects implements IAdminCommandHandler
activeChar.setInvisible(true);
activeChar.broadcastUserInfo();
activeChar.sendPacket(new ExUserInfoAbnormalVisualEffect(activeChar));
activeChar.decayMe();
activeChar.spawnMe();
activeChar.sendMessage("You are now invisible.");
}
else
@@ -149,8 +147,6 @@ public class AdminEffects implements IAdminCommandHandler
activeChar.setInvisible(true);
activeChar.broadcastUserInfo();
activeChar.sendPacket(new ExUserInfoAbnormalVisualEffect(activeChar));
activeChar.decayMe();
activeChar.spawnMe();
activeChar.sendMessage("You are now invisible.");
}
else if (command.startsWith("admin_vis"))
@@ -401,8 +397,6 @@ public class AdminEffects implements IAdminCommandHandler
else if (command.startsWith("admin_unpolyself"))
{
activeChar.getPoly().setPolyInfo(null, "1");
activeChar.decayMe();
activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());
activeChar.broadcastUserInfo();
}
else if (command.equals("admin_clearteams"))

View File

@@ -167,8 +167,7 @@ public class AdminPolymorph implements IAdminCommandHandler
Char.sendPacket(sg);
}
// end of animation
obj.decayMe();
obj.spawnMe(obj.getX(), obj.getY(), obj.getZ());
obj.broadcastInfo();
activeChar.sendMessage("Polymorph succeed");
}
else
@@ -187,8 +186,7 @@ public class AdminPolymorph implements IAdminCommandHandler
if (target != null)
{
target.getPoly().setPolyInfo(null, "1");
target.decayMe();
target.spawnMe(target.getX(), target.getY(), target.getZ());
target.broadcastInfo();
activeChar.sendMessage("Unpolymorph succeed");
}
else

View File

@@ -504,7 +504,7 @@ public class AdminSpawn implements IAdminCommandHandler
final List<L2NpcTemplate> mobs = NpcData.getInstance().getAllMonstersOfLevel(level);
final int mobsCount = mobs.size();
final StringBuilder tb = new StringBuilder(500 + (mobsCount * 80));
tb.append("<html><title>Spawn Monster:</title><body><p> Level : " + level + "<br>Total Npc's : " + mobsCount + "<br>");
tb.append("<html><title>Spawn Monster:</title><body><p> Level : " + level + "<br>Total NPCs : " + mobsCount + "<br>");
// Loop
int i = from;