if (activeChar.getPlayerFaction() == 1) { deathmatchloc = arenaID + '0' + '1'; //deathmatchlocMax = deathmatchloc + 4; deathmatchlocMax = Rnd.get(deathmatchloc, (deathmatchloc + 4)); spawn = TeleportLocationTable.getInstance().getTemplate(deathmatchlocMax); loc = new Location(spawn.getLocX(), spawn.getLocY(), spawn.getLocZ()); } if (activeChar.getPlayerFaction() == 2) { deathmatchloc = arenaID + '0' + '6'; //deathmatchlocMax = deathmatchloc + 4; deathmatchlocMax = Rnd.get(deathmatchloc, (deathmatchloc + 4)); spawn = TeleportLocationTable.getInstance().getTemplate(deathmatchlocMax); loc = new Location(spawn.getLocX(), spawn.getLocY(), spawn.getLocZ()); }