EQ2EMu/DB/updates/chest_traps_tableandsamples.txt
Image d7a00658d1 Rest of Chest Traps and Disarm Chest Traps implementation
Fixes #24 - chest traps and the ability to disarm is implemented.  Can restrict by zone (or applicable to all zones using -1), min and max chest difficulties.

1 = Small Chest (no trigger)
2 =  Treasure Chest (trigger)
3 = Ornate Chest (trigger)
5 = Exquisite Chest (trigger)

DB/updates/chest_traps_tableandsamples.txt included - this will allow you to source in the chest_traps and some 'example' traps (not real ones just testing ones).

Disarm command also required for right click option on chest: insert into commands set type=0,command='disarm',subcommand='',handler=510,required_status=0;
2020-03-16 13:23:38 -04:00

57 lines
No EOL
2.3 KiB
Text

-- MariaDB dump 10.17 Distrib 10.4.12-MariaDB, for Win64 (AMD64)
--
-- Host: localhost Database: eq2emu
-- ------------------------------------------------------
-- Server version 10.4.12-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `chest_traps`
--
DROP TABLE IF EXISTS `chest_traps`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `chest_traps` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`applicable_zone_id` int(10) NOT NULL DEFAULT 0,
`chest_min_difficulty` int(10) unsigned NOT NULL DEFAULT 0,
`chest_max_difficulty` int(10) unsigned NOT NULL DEFAULT 0,
`spell_id` int(10) unsigned NOT NULL DEFAULT 0,
`spell_tier` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `chest_traps`
--
LOCK TABLES `chest_traps` WRITE;
/*!40000 ALTER TABLE `chest_traps` DISABLE KEYS */;
INSERT INTO `chest_traps` VALUES (1,-1,0,0,230160,1),(2,-1,0,0,230116,1),(3,-1,0,0,230080,1),(4,-1,0,0,230103,1);
/*!40000 ALTER TABLE `chest_traps` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2020-03-16 13:16:05
insert into commands set type=0,command='disarm',subcommand='',handler=510,required_status=0;