Addition of Tyrannosaurus AI.

This commit is contained in:
MobiusDevelopment 2019-07-17 12:58:54 +00:00
parent 64bd293358
commit 1fc88f7f52
5 changed files with 79 additions and 22 deletions

View File

@ -27,11 +27,6 @@ INSERT IGNORE INTO `grandboss_data` VALUES
(29062, 0,0,0,0, 0, NULL, NULL, 0),
(29022, 55312, 219168, -3223, 0, 0, 858518, 1975, 0), -- Zaken
(29028, 213004, -114890, -1595, 0, 0, 16660000, 22197, 0); -- Valakas
-- (22215, 24767, -12441, -2532, 15314, 0, 306406, 2339, 0), -- Tyrano
-- (22215, 28263, -17486, -2539, 50052, 0, 306406, 2339, 0), -- Tyrano
-- (22215, 18229, -17975, -3219, 65140, 0, 306406, 2339, 0), -- Tyrano
-- (22216, 19897, -9087, -2781, 2686, 0, 306406, 2339, 0), -- Tyrano
-- (22217, 22827, -14698, -3080, 53946, 0, 306406, 2339, 0), -- Tyrano
-- (25333, 000000,000000,000000,0, 0,193763,3718, 0), -- Anakazel (28) -- (Spawn by Dimensional Instance)
-- (25334, 000000,000000,000000,0, 0,306698,3718, 0), -- Anakazel (38) -- (Spawn by Dimensional Instance)
-- (25335, 000000,000000,000000,0, 0,494363,3718, 0), -- Anakazel (48) -- (Spawn by Dimensional Instance)

View File

@ -3221,9 +3221,9 @@ INSERT INTO `npc` VALUES ('22211', '22211', 'Wild Strider', '0', '', '0', 'Monst
INSERT INTO `npc` VALUES ('22212', '22212', 'Wild Strider', '0', '', '0', 'Monster3.wild_giant_strider', '32.00', '44.20', '85', 'male', 'Monster', '80', '12428', '2253', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '10931', '1301', '2129', '615', '1333', '511', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '0', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22213', '22213', 'Wild Strider', '0', '', '0', 'Monster3.wild_giant_strider', '32.00', '44.20', '85', 'male', 'Monster', '80', '12428', '2253', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '10931', '1301', '2129', '615', '1333', '511', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '0', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22214', '22214', 'Elroki', '0', '', '0', 'Monster3.Crokian_Officer', '25.00', '33.00', '85', 'male', 'Monster', '80', '24857', '2253', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '10931', '1301', '2129', '615', '1333', '511', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '0', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22215', '22215', 'Tyrannosaurus', '0', '', '0', 'Monster3.tyranosaurus', '60.00', '89.70', '87', 'male', 'GrandBoss', '80', '306406', '2339', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '11131', '1401', '2269', '635', '1413', '531', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '12', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22216', '22216', 'Tyrannosaurus', '0', '', '0', 'Monster3.tyranosaurus', '60.00', '89.70', '87', 'male', 'GrandBoss', '80', '306406', '2339', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '11131', '1401', '2269', '635', '1413', '531', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '12', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22217', '22217', 'Tyrannosaurus', '0', '', '0', 'Monster3.tyranosaurus', '60.00', '89.70', '87', 'male', 'GrandBoss', '80', '306406', '2339', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '11131', '1401', '2269', '635', '1413', '531', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '12', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22215', '22215', 'Tyrannosaurus', '0', '', '0', 'Monster3.tyranosaurus', '60.00', '89.70', '87', 'male', 'Monster', '80', '306406', '2339', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '11131', '1401', '2269', '635', '1413', '531', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '12', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22216', '22216', 'Tyrannosaurus', '0', '', '0', 'Monster3.tyranosaurus', '60.00', '89.70', '87', 'male', 'Monster', '80', '306406', '2339', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '11131', '1401', '2269', '635', '1413', '531', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '12', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22217', '22217', 'Tyrannosaurus', '0', '', '0', 'Monster3.tyranosaurus', '60.00', '89.70', '87', 'male', 'Monster', '80', '306406', '2339', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '11131', '1401', '2269', '635', '1413', '531', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '12', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22218', '22218', 'Velociraptor', '0', '', '0', 'Monster3.velociraptor', '19.00', '47.20', '86', 'male', 'Monster', '80', '12553', '2296', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '11031', '1351', '2199', '625', '1373', '521', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '0', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22219', '22219', 'Ornithomimus', '0', '', '0', 'Monster3.ornithomimus', '15.00', '37.20', '84', 'male', 'Monster', '80', '12305', '2211', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '11138', '1310', '2298', '612', '1296', '502', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '0', 'LAST_HIT');
INSERT INTO `npc` VALUES ('22220', '22220', 'Deinonychus', '0', '', '0', 'Monster3.deinonychus', '14.00', '14.30', '83', 'male', 'Monster', '80', '12184', '2168', '13.43', '3.09', '40', '43', '30', '21', '20', '10', '9821', '1141', '2695', '571', '1258', '494', '278', '1000', '333', '0', '0', '0', '88', '188', 'dino', '500', '0', '0', 'LAST_HIT');

View File

@ -37610,20 +37610,6 @@ INSERT INTO `spawnlist` VALUES
(NULL, "primeval_isle", 1, 22214, 3505, -15371, -3536, 0, 0, 0, 60, 0, 0),
(NULL, "primeval_isle", 1, 22214, 7379, -14776, -3704, 0, 0, 0, 60, 0, 0),
(NULL, "primeval_isle", 1, 22214, 5533, -14304, -3704, 0, 0, 0, 60, 0, 0),
-- Tyrannosaurus
(NULL, "primeval_isle", 1, 22215, 19506, -15772, -3080, 0, 0, 49220, 1800, 0, 0),
(NULL, "primeval_isle", 1, 22215, 22253, -17062, -2976, 0, 0, 47449, 1800, 0, 0),
(NULL, "primeval_isle", 1, 22215, 23348, -20888, -2672, 0, 0, 0, 1800, 0, 0),
(NULL, "primeval_isle", 1, 22215, 25047, -18477, -2712, 0, 0, 0, 1800, 0, 0),
(NULL, "primeval_isle", 1, 22215, 27331, -16669, -2664, 0, 0, 21125, 1800, 0, 0),
(NULL, "primeval_isle", 1, 22215, 27714, -14692, -2552, 0, 0, 0, 1800, 0, 0),
(NULL, "primeval_isle", 1, 22215, 26555, -11574, -2464, 0, 0, 28153, 1800, 0, 0),
(NULL, "primeval_isle", 1, 22215, 21295, -11123, -2784, 0, 0, 41953, 1800, 0, 0),
(NULL, "primeval_isle", 1, 22215, 19605, -11234, -2816, 0, 0, 57601, 1800, 0, 0),
-- Tyrannosaurus
(NULL, "primeval_isle", 1, 22216, 19220, -11806, -2776, 0, 0, 0, 1800, 0, 0),
-- Tyrannosaurus
(NULL, "primeval_isle", 1, 22217, 26740, -16596, -2688, 0, 0, 13790, 1800, 0, 0),
-- Velociraptor
(NULL, "primeval_isle", 1, 22218, 16928, -16220, -3208, 0, 0, 0, 60, 0, 0),
(NULL, "primeval_isle", 1, 22218, 18156, -15044, -3072, 0, 0, 0, 60, 0, 0),

View File

@ -15,6 +15,7 @@ ai/bosses/Kernon.java
ai/bosses/nurka.py
ai/bosses/Orfen.java
ai/bosses/QueenAnt.java
ai/bosses/Tyrannosaurus.java
ai/bosses/sailren.py
ai/bosses/Valakas.java
ai/bosses/VanHalter.java

View File

@ -0,0 +1,75 @@
/*
* 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 org.l2jmobius.commons.concurrent.ThreadPool;
import org.l2jmobius.commons.util.Rnd;
import org.l2jmobius.gameserver.model.actor.instance.NpcInstance;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.actor.position.Location;
import org.l2jmobius.gameserver.model.quest.Quest;
/**
* @author Mobius
*/
public class Tyrannosaurus extends Quest
{
// NPCs
private static final int[] TREX =
{
22215, // Tyrannosaurus
22216, // Tyrannosaurus
22217, // Tyrannosaurus
};
// Locations
private final static Location[] SPAWNS =
{
new Location(19506, -15772, -3080, 49220),
new Location(22253, -17062, -2976, 47449),
new Location(23348, -20888, -2672, 0),
new Location(25047, -18477, -2712, 0),
new Location(27331, -16669, -2664, 21125),
new Location(27714, -14692, -2552, 0),
new Location(26555, -11574, -2464, 28153),
new Location(21295, -11123, -2784, 41953),
new Location(19605, -11234, -2816, 57601),
new Location(19220, -11806, -2776, 0),
new Location(26740, -16596, -2688, 13790)
};
public Tyrannosaurus(int questId, String name, String descr)
{
super(questId, name, descr);
addKillId(TREX);
addSpawn(TREX[Rnd.get(TREX.length)], SPAWNS[Rnd.get(SPAWNS.length)], false, 0);
}
@Override
public String onKill(NpcInstance npc, PlayerInstance killer, boolean isPet)
{
ThreadPool.schedule(() ->
{
addSpawn(TREX[Rnd.get(TREX.length)], SPAWNS[Rnd.get(SPAWNS.length)], false, 0);
}, 1800000);
return super.onKill(npc, killer, isPet);
}
public static void main(String[] args)
{
new Tyrannosaurus(-1, "Tyrannosaurus", "ai");
}
}