mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-24 05:37:46 +00:00
added some breakpoints to try figure out why mobs arent spawning
- fixed spawn table
This commit is contained in:
parent
2bfaf376ef
commit
7c30b95c4b
2 changed files with 58 additions and 19 deletions
|
@ -435,12 +435,14 @@ namespace FFXIVClassic_Map_Server
|
|||
bge.int, bge.mnd, bge.pie, bge.att, bge.acc, bge.def, bge.eva, bge.slash, bge.pierce, bge.h2h, bge.blunt,
|
||||
bge.fire, bge.ice, bge.wind, bge.lightning, bge.earth, bge.water FROM
|
||||
server_battlenpc_spawn_locations bsl INNER JOIN server_battlenpc_groups bgr ON bsl.groupId = bgr.groupId INNER JOIN
|
||||
server_battlenpc_genus bge ON bgr.genusId = bgr.genusId WHERE bgr.zoneId = @zoneId;
|
||||
server_battlenpc_genus bge ON bgr.genusId = bgr.genusId WHERE bgr.zoneId = {0} GROUP BY bsl.bnpcIndex;
|
||||
";
|
||||
Debugger.Break();
|
||||
foreach (var zone in zoneList.Values)
|
||||
{
|
||||
query = String.Format(query, zone.GetZoneID());
|
||||
|
||||
MySqlCommand cmd = new MySqlCommand(query, conn);
|
||||
cmd.Parameters.AddWithValue("@zoneId", zone.GetZoneID());
|
||||
|
||||
cmd.ExecuteNonQuery();
|
||||
using (MySqlDataReader reader = cmd.ExecuteReader())
|
||||
|
@ -456,6 +458,8 @@ namespace FFXIVClassic_Map_Server
|
|||
battleNpc.kindredType = (KindredType)reader.GetUInt32("kindredId");
|
||||
battleNpc.npcSpawnType = (NpcSpawnType)reader.GetUInt32("spawnType");
|
||||
|
||||
battleNpc.charaWork.parameterSave.state_mainSkillLevel = (short)Program.Random.Next(reader.GetByte("minLevel"), reader.GetByte("maxLevel"));
|
||||
|
||||
// todo: setup private areas and other crap and
|
||||
// set up rest of stat resists
|
||||
battleNpc.SetMod((uint)Modifier.Hp, reader.GetUInt32("hp"));
|
||||
|
|
|
@ -1,25 +1,60 @@
|
|||
/*
|
||||
MySQL Data Transfer
|
||||
Source Host: localhost
|
||||
Source Database: ffxiv_server
|
||||
Target Host: localhost
|
||||
Target Database: ffxiv_server
|
||||
Date: 7/9/2017 7:11:04 PM
|
||||
*/
|
||||
DROP TABLE IF EXISTS `server_battlenpc_spawn_locations`;
|
||||
-- MySQL dump 10.13 Distrib 5.7.18, for Win64 (x86_64)
|
||||
--
|
||||
-- Host: localhost Database: ffxiv_server
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 5.7.18-log
|
||||
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
SET AUTOCOMMIT=0;
|
||||
-- ----------------------------
|
||||
-- Table structure for server_battlenpc_spawn_locations
|
||||
-- ----------------------------
|
||||
/*!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 utf8 */;
|
||||
/*!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 `server_battlenpc_spawn_locations`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `server_battlenpc_spawn_locations`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `server_battlenpc_spawn_locations` (
|
||||
`bnpcIndex` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uniqueId` varchar(32) NOT NULL DEFAULT '',
|
||||
`customDisplayName` varchar(32) DEFAULT NULL,
|
||||
`customDisplayName` varchar(32) NOT NULL DEFAULT '',
|
||||
`groupId` int(10) unsigned NOT NULL,
|
||||
`positionX` float NOT NULL,
|
||||
`positionY` float NOT NULL,
|
||||
`positionZ` float NOT NULL,
|
||||
`rotation` float NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
`rotation` float NOT NULL,
|
||||
PRIMARY KEY (`bnpcIndex`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `server_battlenpc_spawn_locations`
|
||||
--
|
||||
|
||||
LOCK TABLES `server_battlenpc_spawn_locations` WRITE;
|
||||
/*!40000 ALTER TABLE `server_battlenpc_spawn_locations` DISABLE KEYS */;
|
||||
set autocommit=0;
|
||||
INSERT INTO `server_battlenpc_spawn_locations` VALUES (1,'wharf_rat','test',1,25.584,200,-450,-2.514);
|
||||
INSERT INTO `server_battlenpc_spawn_locations` VALUES (2,'wharf_rat','test',1,20,200,-444,-3.14);
|
||||
/*!40000 ALTER TABLE `server_battlenpc_spawn_locations` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
commit;
|
||||
/*!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 2017-09-06 0:07:11
|
||||
|
|
Loading…
Add table
Reference in a new issue