Removed Devastated Castle and Wild Beast Reserve.

This commit is contained in:
MobiusDevelopment
2023-02-04 02:57:41 +02:00
parent fecb1728ff
commit e8d6f2d037
11 changed files with 6 additions and 1691 deletions

View File

@@ -31,6 +31,9 @@ DELETE FROM spawnlist WHERE (locx>=98304 AND locy>=-131072 AND locx<=131071 AND
-- Remove Monastery of Silence (23_15) spawns.
DELETE FROM spawnlist WHERE (locx>=98304 AND locy>=-98304 AND locx<=131071 AND locy<=-65537);
-- Remove Devastated Castle and Wild Beast Reserve spawns.
DELETE FROM `spawnlist` WHERE `npc_templateid` IN ('35638', '75003', '75004', '75005', '75006', '75007', '75008', '75009', '75010', '75011', '75012');
-- Remove NPCs not supported by C4 client.
DELETE FROM `spawnlist` WHERE `npc_templateid` IN ('13015', '13018', '13019', '13020', '13021', '13022', '13023', '13024', '13025', '13026', '13027', '13028', '13029', '13030', '13031', '13032', '13033', '13034', '13035', '13036', '14836', '14837', '14838', '14839', '14840', '14841', '14842', '14843', '14844', '14845', '14846', '14847', '14848', '14849', '14850', '14851', '14852', '14853', '14854', '14855', '14856', '14857', '14858', '14859', '14860', '14861', '14862', '14863', '14864', '14865', '14866', '14867', '14868', '14869', '18333', '18335', '18338', '18340', '18341', '18343', '18344', '18345', '18346', '22003', '22005', '22006', '22008', '22028', '22050', '22052', '22053', '22054', '22055', '22056', '22058', '22059', '22060', '22061', '22062', '22063', '22064', '22065', '22066', '22067', '22068', '22069', '22070', '22071', '22072', '22073', '22074', '22075', '22076', '22077', '22078', '22107', '22108', '22110', '22111', '22112', '22113', '22114', '22119', '22120', '22121', '22124', '22125', '22126', '22127', '22128', '22129', '22134', '22135', '22136', '22137', '22138', '22139', '22140', '22141', '22142', '22143', '22144', '22145', '22146', '22147', '22148', '22149', '22150', '22151', '22152', '22153', '22154', '22155', '22156', '22157', '22158', '22159', '22160', '22161', '22162', '22163', '22164', '22165', '22166', '22167', '22168', '22169', '22170', '22171', '22172', '22173', '22174', '22175', '22176', '22188', '22189', '22190', '22191', '22192', '22193', '22194', '22195', '22196', '22197', '22198', '22199', '22200', '22201', '22202', '22203', '22204', '22205', '22208', '22209', '22210', '22211', '22212', '22213', '22214', '22215', '22216', '22217', '22218', '22219', '22220', '22221', '22222', '22223', '22224', '22225', '22226', '22227', '25176', '25249', '25501', '25502', '25503', '25504', '25512', '25514', '25515', '25516', '25517', '25518', '25519', '25523', '25527', '27318', '29045', '29046', '29047', '29048', '29049', '29050', '29051', '29054', '29056', '29062', '29063', '29064', '29065', '29069', '29070', '29071', '29072', '29073', '29074', '29075', '29076', '29095', '29096', '29097', '29098', '32009', '32012', '32021', '32022', '32023', '32027', '32028', '32030', '32031', '32032', '32033', '32034', '32035', '32036', '32037', '32039', '32040', '32042', '32043', '32044', '32045', '32051', '32058', '32059', '32060', '32061', '32062', '32063', '32064', '32065', '32066', '32067', '32068', '32070', '32071', '32072', '32073', '32077', '32078', '32079', '32104', '32108', '32109', '32111', '32112', '32114', '32115', '32116', '32117', '32118', '32119', '32120', '32121', '32122', '32129', '32130', '35469', '35606', '35629', '35630', '35643', '35648', '35649', '35650', '35651', '35652', '35653', '35654', '35655', '35656');
DELETE FROM `grandboss_data` WHERE `boss_id` IN ('13015', '13018', '13019', '13020', '13021', '13022', '13023', '13024', '13025', '13026', '13027', '13028', '13029', '13030', '13031', '13032', '13033', '13034', '13035', '13036', '14836', '14837', '14838', '14839', '14840', '14841', '14842', '14843', '14844', '14845', '14846', '14847', '14848', '14849', '14850', '14851', '14852', '14853', '14854', '14855', '14856', '14857', '14858', '14859', '14860', '14861', '14862', '14863', '14864', '14865', '14866', '14867', '14868', '14869', '18333', '18335', '18338', '18340', '18341', '18343', '18344', '18345', '18346', '22003', '22005', '22006', '22008', '22028', '22050', '22052', '22053', '22054', '22055', '22056', '22058', '22059', '22060', '22061', '22062', '22063', '22064', '22065', '22066', '22067', '22068', '22069', '22070', '22071', '22072', '22073', '22074', '22075', '22076', '22077', '22078', '22107', '22108', '22110', '22111', '22112', '22113', '22114', '22119', '22120', '22121', '22124', '22125', '22126', '22127', '22128', '22129', '22134', '22135', '22136', '22137', '22138', '22139', '22140', '22141', '22142', '22143', '22144', '22145', '22146', '22147', '22148', '22149', '22150', '22151', '22152', '22153', '22154', '22155', '22156', '22157', '22158', '22159', '22160', '22161', '22162', '22163', '22164', '22165', '22166', '22167', '22168', '22169', '22170', '22171', '22172', '22173', '22174', '22175', '22176', '22188', '22189', '22190', '22191', '22192', '22193', '22194', '22195', '22196', '22197', '22198', '22199', '22200', '22201', '22202', '22203', '22204', '22205', '22208', '22209', '22210', '22211', '22212', '22213', '22214', '22215', '22216', '22217', '22218', '22219', '22220', '22221', '22222', '22223', '22224', '22225', '22226', '22227', '25176', '25249', '25501', '25502', '25503', '25504', '25512', '25514', '25515', '25516', '25517', '25518', '25519', '25523', '25527', '27318', '29045', '29046', '29047', '29048', '29049', '29050', '29051', '29054', '29056', '29062', '29063', '29064', '29065', '29069', '29070', '29071', '29072', '29073', '29074', '29075', '29076', '29095', '29096', '29097', '29098', '32009', '32012', '32021', '32022', '32023', '32027', '32028', '32030', '32031', '32032', '32033', '32034', '32035', '32036', '32037', '32039', '32040', '32042', '32043', '32044', '32045', '32051', '32058', '32059', '32060', '32061', '32062', '32063', '32064', '32065', '32066', '32067', '32068', '32070', '32071', '32072', '32073', '32077', '32078', '32079', '32104', '32108', '32109', '32111', '32112', '32114', '32115', '32116', '32117', '32118', '32119', '32120', '32121', '32122', '32129', '32130', '35469', '35606', '35629', '35630', '35643', '35648', '35649', '35650', '35651', '35652', '35653', '35654', '35655', '35656');

View File

@@ -2,19 +2,6 @@
# Conquerable Clan Halls
# ---------------------------------------------------------------------------
# -------------------------------
# Devastated castle
# -------------------------------
# Day of week for the siege "Devastated castle".
# 1 - Monday, 2 - Tuesday, 3 - Wednesday, etc.
# NOT recommended to put siege
# In the day that Tan and siege castles (Saturday, Sunday)
DevastatedDay = 1
# Time start registration siege "Devastated castle", in hours.
DevastatedHour = 18
# Time to gain "Devastated castle", in minutes.
DevastatedMinutes = 0
# ------------------------------
# Partisan Hideout
# ------------------------------

View File

@@ -1,103 +0,0 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package ai.bosses;
import java.util.Collection;
import java.util.concurrent.ConcurrentHashMap;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.Player;
import org.l2jmobius.gameserver.model.clan.Clan;
import org.l2jmobius.gameserver.model.quest.Quest;
import org.l2jmobius.gameserver.model.siege.clanhalls.DevastatedCastle;
/**
* @author Mobius
* @note Based on python script
*/
public class Gustav extends Quest
{
// NPCs
private static final int GUSTAV = 35410;
private static final int MESSENGER = 35420;
// Misc
private static final Collection<Clan> _clans = ConcurrentHashMap.newKeySet();
private Gustav()
{
super(-1, "ai/bosses");
addTalkId(MESSENGER);
addStartNpc(MESSENGER);
addAttackId(GUSTAV);
addKillId(GUSTAV);
}
@Override
public String onTalk(Npc npc, Player player)
{
final Clan playerClan = player.getClan();
for (Clan clan : _clans)
{
if (clan == playerClan)
{
return "<html><body>You already registered!</body></html>";
}
}
if (DevastatedCastle.getInstance().Conditions(player))
{
if (!_clans.contains(playerClan))
{
_clans.add(playerClan);
}
return "<html><body>You have successful registered on a siege.</body></html>";
}
return "<html><body>You are not allowed to do that!</body></html>";
}
@Override
public String onAttack(Npc npc, Player attacker, int damage, boolean isPet)
{
final Clan playerClan = attacker.getClan();
if (playerClan != null)
{
for (Clan clan : _clans)
{
if (clan == playerClan)
{
DevastatedCastle.getInstance().addSiegeDamage(clan, damage);
break;
}
}
}
return super.onAttack(npc, attacker, damage, isPet);
}
@Override
public String onKill(Npc npc, Player killer, boolean isPet)
{
DevastatedCastle.getInstance().SiegeFinish();
return super.onKill(npc, killer, isPet);
}
public static void main(String[] args)
{
new Gustav();
}
}