Minor datapack cleanup.
This commit is contained in:
parent
f70dbdfc15
commit
41d234a95a
@ -1,73 +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 events;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jmobius.gameserver.instancemanager.EventShrineManager;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.OnEventTrigger;
|
||||
|
||||
/**
|
||||
* @author hlwrave, Mobius
|
||||
* @Add in event config.xml enableShrines="true" after event name to enable them.
|
||||
*/
|
||||
public final class EventShrines extends Quest
|
||||
{
|
||||
private static final Map<Integer, Integer> ZONE_TRIGGERS = new HashMap<>();
|
||||
static
|
||||
{
|
||||
ZONE_TRIGGERS.put(11030, 23206292); // Hunter
|
||||
ZONE_TRIGGERS.put(11031, 24186292); // Aden
|
||||
ZONE_TRIGGERS.put(11032, 24166292); // Goddard
|
||||
ZONE_TRIGGERS.put(11035, 22136292); // Shuttgard
|
||||
ZONE_TRIGGERS.put(11028, 20226292); // Dion
|
||||
ZONE_TRIGGERS.put(11029, 22196292); // Oren
|
||||
ZONE_TRIGGERS.put(11020, 22226292); // Giran
|
||||
ZONE_TRIGGERS.put(11027, 19216292); // Gludio
|
||||
ZONE_TRIGGERS.put(11034, 23246292); // Heine
|
||||
ZONE_TRIGGERS.put(11025, 17226292); // Gluddin
|
||||
ZONE_TRIGGERS.put(11033, 21166292); // Rune
|
||||
ZONE_TRIGGERS.put(11042, 17256292); // Faeron
|
||||
ZONE_TRIGGERS.put(11043, 26206292); // Arcan
|
||||
ZONE_TRIGGERS.put(11022, 16256292); // Talking Island
|
||||
}
|
||||
|
||||
public EventShrines()
|
||||
{
|
||||
super(-1);
|
||||
addEnterZoneId(ZONE_TRIGGERS.keySet());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onEnterZone(L2Character character, L2ZoneType zone)
|
||||
{
|
||||
if (character.isPlayer() && EventShrineManager.getInstance().areShrinesEnabled())
|
||||
{
|
||||
character.sendPacket(new OnEventTrigger(ZONE_TRIGGERS.get(zone.getId()), true));
|
||||
}
|
||||
return super.onEnterZone(character, zone);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new EventShrines();
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
Scripts defined in the village_master folder control the AI for the dialogs of village masters.
|
||||
In particular, changing occupations, creating/disolving a clan, and many more options given by
|
||||
village masters often require additional checks. All such checks are implemented here.
|
||||
|
||||
For example, when a player attempts to change his occupation to SpellSinger, checks are needed
|
||||
in order to ensure that the player is currently an Elven Wizard and has successfully found all
|
||||
the necessary quest items for this class change. The dialogs offered are different when each of
|
||||
the checks fails or succeeds.
|
||||
|
||||
The mechanics and syntax of all village_master scripts are the same as all quest scripts. For more
|
||||
details, please see "scripts/quests/documentation.txt"
|
24
L2J_Mobius_Classic/dist/game/data/scripts/village_master/package-info.java
vendored
Normal file
24
L2J_Mobius_Classic/dist/game/data/scripts/village_master/package-info.java
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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/>.
|
||||
*/
|
||||
/**
|
||||
* Scripts defined in the village_master folder control the AI for the dialogs of village masters.<br>
|
||||
* In particular, changing occupations, creating/disolving a clan,<br>
|
||||
* and many more options given by village masters often require additional checks.<br>
|
||||
* All such checks are implemented here.
|
||||
* @author Mobius
|
||||
*/
|
||||
package village_master;
|
@ -1,11 +0,0 @@
|
||||
Scripts defined in the village_master folder control the AI for the dialogs of village masters.
|
||||
In particular, changing occupations, creating/disolving a clan, and many more options given by
|
||||
village masters often require additional checks. All such checks are implemented here.
|
||||
|
||||
For example, when a player attempts to change his occupation to SpellSinger, checks are needed
|
||||
in order to ensure that the player is currently an Elven Wizard and has successfully found all
|
||||
the necessary quest items for this class change. The dialogs offered are different when each of
|
||||
the checks fails or succeeds.
|
||||
|
||||
The mechanics and syntax of all village_master scripts are the same as all quest scripts. For more
|
||||
details, please see "scripts/quests/documentation.txt"
|
24
L2J_Mobius_Helios/dist/game/data/scripts/village_master/package-info.java
vendored
Normal file
24
L2J_Mobius_Helios/dist/game/data/scripts/village_master/package-info.java
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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/>.
|
||||
*/
|
||||
/**
|
||||
* Scripts defined in the village_master folder control the AI for the dialogs of village masters.<br>
|
||||
* In particular, changing occupations, creating/disolving a clan,<br>
|
||||
* and many more options given by village masters often require additional checks.<br>
|
||||
* All such checks are implemented here.
|
||||
* @author Mobius
|
||||
*/
|
||||
package village_master;
|
@ -1,11 +0,0 @@
|
||||
Scripts defined in the village_master folder control the AI for the dialogs of village masters.
|
||||
In particular, changing occupations, creating/disolving a clan, and many more options given by
|
||||
village masters often require additional checks. All such checks are implemented here.
|
||||
|
||||
For example, when a player attempts to change his occupation to SpellSinger, checks are needed
|
||||
in order to ensure that the player is currently an Elven Wizard and has successfully found all
|
||||
the necessary quest items for this class change. The dialogs offered are different when each of
|
||||
the checks fails or succeeds.
|
||||
|
||||
The mechanics and syntax of all village_master scripts are the same as all quest scripts. For more
|
||||
details, please see "scripts/quests/documentation.txt"
|
24
L2J_Mobius_Underground/dist/game/data/scripts/village_master/package-info.java
vendored
Normal file
24
L2J_Mobius_Underground/dist/game/data/scripts/village_master/package-info.java
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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/>.
|
||||
*/
|
||||
/**
|
||||
* Scripts defined in the village_master folder control the AI for the dialogs of village masters.<br>
|
||||
* In particular, changing occupations, creating/disolving a clan,<br>
|
||||
* and many more options given by village masters often require additional checks.<br>
|
||||
* All such checks are implemented here.
|
||||
* @author Mobius
|
||||
*/
|
||||
package village_master;
|
Loading…
Reference in New Issue
Block a user