Removal of hardcoded events and addition of player isOnCustomEvent methods.

This commit is contained in:
MobiusDevelopment
2021-10-28 21:26:33 +00:00
parent d0c5cfe4c7
commit 8fdb4899ac
323 changed files with 580 additions and 40245 deletions

View File

@@ -1,28 +0,0 @@
-- --------------------------------
-- Table structure for table `ctf`
-- Created by SqueezeD & Serpent for l2jfree
-- --------------------------------
DROP TABLE IF EXISTS `ctf`;
CREATE TABLE `ctf` (
`eventName` varchar(255) NOT NULL default '',
`eventDesc` varchar(255) NOT NULL default '',
`joiningLocation` varchar(255) NOT NULL default '',
`minLevel` int(4) NOT NULL default '0',
`maxLevel` int(4) NOT NULL default '0',
`npcId` int(8) NOT NULL default '0',
`npcX` int(11) NOT NULL default '0',
`npcY` int(11) NOT NULL default '0',
`npcZ` int(11) NOT NULL default '0',
`npcHeading` int(11) NOT NULL default '0',
`rewardId` int(11) NOT NULL default '0',
`rewardAmount` int(11) NOT NULL default '0',
`teamsCount` int(4) NOT NULL default '0',
`joinTime` int(11) NOT NULL default '0',
`eventTime` int(11) NOT NULL default '0',
`minPlayers` int(4) NOT NULL default '0',
`maxPlayers` int(4) NOT NULL default '0',
`delayForNextEvent` BIGINT NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `ctf` (`eventName`, `eventDesc`, `joiningLocation`, `minLevel`, `maxLevel`, `npcId`, `npcX`, `npcY`, `npcZ`, `npcHeading`, `rewardId`, `rewardAmount`, `teamsCount`, `joinTime`, `eventTime`, `minPlayers`, `maxPlayers`, `delayForNextEvent`) VALUES
('Capture the flag', 'CTF', 'Giran', 1, 80, 70011, 82580, 148552, -3468, 16972, 8752, 1, 2, 5, 5, 2, 50, 300000);

View File

@@ -1,21 +0,0 @@
-- --------------------------------
-- Table structure for ctf_teams
-- Created by SqueezeD & Serpent for l2jfree
-- --------------------------------
DROP TABLE IF EXISTS `ctf_teams`;
CREATE TABLE `ctf_teams` (
`teamId` int(4) NOT NULL default '0',
`teamName` varchar(255) NOT NULL default '',
`teamX` int(11) NOT NULL default '0',
`teamY` int(11) NOT NULL default '0',
`teamZ` int(11) NOT NULL default '0',
`teamColor` int(11) NOT NULL default '0',
`flagX` int(11) NOT NULL default '0',
`flagY` int(11) NOT NULL default '0',
`flagZ` int(11) NOT NULL default '0',
PRIMARY KEY (`teamId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `ctf_teams` (`teamId`, `teamName`, `teamX`, `teamY`, `teamZ`, `teamColor`, `flagX`, `flagY`, `flagZ`) VALUES
(0, 'Blue', 87357, -145722, -1288, 16711680, 87358, -145979, -1291),
(1, 'Red', 87351, -139984, -1536, 255, 87359, -139584, -1536);

View File

@@ -53,9 +53,4 @@ INSERT ignore INTO custom_npc values
('50000', '31228', 'Dom the Cat', '1', 'Merchant', '1', 'Monster.cat_the_cat', '9.00', '16.00', '70', 'male', 'Merchant', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '490', '10', '1335', '470', '780', '382', '278', '0', '333', '0', '0', '0', '88', '132', null, '0', '0', '0', 'LAST_HIT'),
('50007', '31324', 'Andromeda', '1', 'Wedding Manager', '1', 'NPC.a_casino_FDarkElf', '8.00', '23.00', '70', 'female', 'WeddingManager', '40', '3862', '1493', '500', '500', '40', '43', '30', '21', '20', '10', '0', '0', '9999', '9999', '999', '999', '278', '0', '333', '316', '0', '0', '55', '132', null, '0', '1', '0', 'LAST_HIT'),
('50008', '31228', 'Rex the Cat', '1', 'Buffer', '1', 'Monster.cat_the_cat', '9.00', '16.00', '70', 'male', 'SchemeBuffer', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '490', '10', '1335', '470', '780', '382', '278', '0', '333', '0', '0', '0', '88', '132', null, '0', '0', '0', 'LAST_HIT'),
('55555', '22124', 'Totor', '1', 'Rebirth Manager', '1', 'NPC.a_fighterguild_master_FHuman', '11.00', '27.00', '83', 'male', 'Merchant', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '88', '132', null, '0', '0', '0', 'LAST_HIT'),
('70010', '31606', 'Catrina', '1', 'TvT Event Manager', '1', 'Monster2.queen_of_cat', '8.00', '15.00', '70', 'female', 'Npc', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', null, '0', '0', '0', 'LAST_HIT'),
('70011', '31606', 'Catretta', '1', 'CTF Event Manager', '1', 'Monster2.queen_of_cat', '8.00', '15.00', '70', 'female', 'Npc', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', null, '0', '0', '0', 'LAST_HIT'),
('70012', '31606', 'Catrosa', '1', 'VIP Join Manager', '1', 'Monster2.queen_of_cat', '8.00', '15.00', '70', 'female', 'Npc', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', null, '0', '0', '0', 'LAST_HIT'),
('70013', '31606', 'Catrigna', '1', 'VIP End Manager', '1', 'Monster2.queen_of_cat', '8.00', '15.00', '70', 'female', 'Npc', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', null, '0', '0', '0', 'LAST_HIT'),
('70014', '31606', 'Catrieta', '1', 'DM Event Manager', '1', 'Monster2.queen_of_cat', '8.00', '15.00', '70', 'female', 'Npc', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', null, '0', '0', '0', 'LAST_HIT');
('55555', '22124', 'Totor', '1', 'Rebirth Manager', '1', 'NPC.a_fighterguild_master_FHuman', '11.00', '27.00', '83', 'male', 'Merchant', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '88', '132', null, '0', '0', '0', 'LAST_HIT');

View File

@@ -1,31 +0,0 @@
-- --------------------------------
-- Table structure for table `dm`
-- Created by SqueezeD from l2jfree
-- --------------------------------
DROP TABLE IF EXISTS `dm`;
CREATE TABLE `dm` (
`eventName` varchar(255) NOT NULL default '',
`eventDesc` varchar(255) NOT NULL default '',
`joiningLocation` varchar(255) NOT NULL default '',
`minLevel` int(4) NOT NULL default '0',
`maxLevel` int(4) NOT NULL default '0',
`npcId` int(8) NOT NULL default '0',
`npcX` int(11) NOT NULL default '0',
`npcY` int(11) NOT NULL default '0',
`npcZ` int(11) NOT NULL default '0',
`npcHeading` int(11) NOT NULL DEFAULT '0',
`rewardId` int(11) NOT NULL default '0',
`rewardAmount` int(11) NOT NULL default '0',
`joinTime` int(11) NOT NULL DEFAULT '0',
`eventTime` int(11) NOT NULL DEFAULT '0',
`minPlayers` int(11) NOT NULL DEFAULT '0',
`maxPlayers` int(11) NOT NULL DEFAULT '0',
`color` int(11) NOT NULL default '0',
`playerX` int(11) NOT NULL default '0',
`playerY` int(11) NOT NULL default '0',
`playerZ` int(11) NOT NULL default '0',
`delayForNextEvent` BIGINT NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `dm` values
('DM', 'A PvP Event', 'Giran', 1, 81, 70014, 82580, 148552, -3468, 1, 8752, 1, 2, 5, 2, 50, 2552550, 116615, 76200, -2729, 300000);

View File

@@ -1,9 +0,0 @@
#----------------------------
# Table structure for pkkills
#----------------------------
CREATE TABLE IF NOT EXISTS `pkkills` (
`killerId` varchar(45) NOT NULL,
`killedId` varchar(45) NOT NULL,
`kills` decimal(11,0) NOT NULL,
PRIMARY KEY (`killerId` ,`killedId` )
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

View File

@@ -1,30 +0,0 @@
-- -----------------------
-- Table structure for tvt
-- -----------------------
DROP TABLE IF EXISTS `tvt`;
CREATE TABLE `tvt` (
`eventName` varchar(255) NOT NULL DEFAULT '',
`eventDesc` varchar(255) NOT NULL DEFAULT '',
`joiningLocation` varchar(255) NOT NULL DEFAULT '',
`minLevel` int(4) NOT NULL DEFAULT '0',
`maxLevel` int(4) NOT NULL DEFAULT '0',
`npcId` int(8) NOT NULL DEFAULT '0',
`npcX` int(11) NOT NULL DEFAULT '0',
`npcY` int(11) NOT NULL DEFAULT '0',
`npcZ` int(11) NOT NULL DEFAULT '0',
`npcHeading` int(11) NOT NULL DEFAULT '0',
`rewardId` int(11) NOT NULL DEFAULT '0',
`rewardAmount` int(11) NOT NULL DEFAULT '0',
`teamsCount` int(4) NOT NULL DEFAULT '0',
`joinTime` int(11) NOT NULL DEFAULT '0',
`eventTime` int(11) NOT NULL DEFAULT '0',
`minPlayers` int(4) NOT NULL DEFAULT '0',
`maxPlayers` int(4) NOT NULL DEFAULT '0',
`delayForNextEvent` BIGINT NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ---------------------
-- Records for table tvt
-- ---------------------
INSERT INTO `tvt` values
('TVT', 'A PvP Event', 'Giran', 1, 81, 70010, 82688, 148677, -3469, 0, 8752, 1, 2, 5, 5, 2, 50, 300000);

View File

@@ -1,21 +0,0 @@
-- -----------------------------
-- Table structure for tvt_teams
-- -----------------------------
DROP TABLE IF EXISTS `tvt_teams`;
CREATE TABLE `tvt_teams` (
`teamId` int(4) NOT NULL DEFAULT '0',
`teamName` varchar(255) NOT NULL DEFAULT '',
`teamX` int(11) NOT NULL DEFAULT '0',
`teamY` int(11) NOT NULL DEFAULT '0',
`teamZ` int(11) NOT NULL DEFAULT '0',
`teamColor` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`teamId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ---------------------------
-- Records for table tvt_teams
-- ---------------------------
INSERT INTO `tvt_teams` VALUES
('0', 'Blue', '148179', '45841', '-3413', '16711680'),
('1', 'Red', '150787', '45822', '-3413', '255'),
('2', 'Green', '149496', '47826', '-3413', '26367');

View File

@@ -1,20 +0,0 @@
CREATE TABLE `VIPinfo` (
`teamID` int(11) NOT NULL,
`endx` int(11) NOT NULL,
`endy` int(11) NOT NULL,
`endz` int(11) NOT NULL,
`startx` int(11) NOT NULL,
`starty` int(11) NOT NULL,
`startz` int(11) NOT NULL,
PRIMARY KEY (`teamID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `VIPinfo`
--
INSERT INTO `VIPinfo` VALUES (1, -84583, 242788, -3735, -101319, 213272, -3100);
INSERT INTO `VIPinfo` VALUES (2, 45714, 49703, -3065, 55782, 81597, -3610);
INSERT INTO `VIPinfo` VALUES (3, 11249, 16890, -4667, -22732, 12586, -2996);
INSERT INTO `VIPinfo` VALUES (4, -44737, -113582, -204, 27053, -88454, -3286);
INSERT INTO `VIPinfo` VALUES (5, 116047, -179059, -1026, 121145, -215673, -3571);