Files
mod-guildhouse/sql/characters/guildhouse.sql
Greg Wilkinson 48b936227a Fix build, sql and crashes - NPC's and GO's load on purchase (#30)
* Add files via upload

* Add files via upload

* fix %u in queries

* fix name

* Add files via upload

Update from local work

* Delete loader.h

* Update Creatures.sql

Missed two NPC's
Added Innkeeper and DK Trainer with edited columns to update old sql

* Delete CMakeLists.txt

* Cleanup Code and remove broken work

* Update README.md

* FInal Cleanup 

Updated sql queries to add NPC's and creatures. Reworked layout for current AC databases
Fixed code to solve build errors
fixed code to solve core crash on object spawn (StarterPortal etc)
With core updates creatures now load scripts on manual summon - Thanks!
Added new chat commands for teleport ".gh tele" and NPC Assistant ".gh butler"
GameObjects now spawn on purchase - no core restart required


Issues still remaining:
NPC assistant is present at GH creation but is gone after core restart. Can be summoned with chat command and he
stays in place after chat command summon.

* Updated to use unique NPCs and to make the ammo & repairs vendor consistent.

* Updated all of the Portal ids and moved code check in SpawnObject to make it consistent with SpawnNPC.

* Refactored to use existing 'map' variable.

* Updated to include new shortened command.

* Updated to match the return type.

* Fixed usage of 'map' variable.

* Fixed various typos and updated to be more consistent in messaging.

* Fixed commented out calls.

* Updated to create all new Portal objects.

* Updated command shortcut message.

* Updated NPC ids to be consistent with the new Portal ids.

* Updated to fix vendor positioning.

* Fixed SQL to include new NPC ids.

* Updated to use existing NPC for Food & Drink Vendor.

* Updated to reflect moved custom NPC.

* Adjusted vendor positioning.

* Rearranged various vendors.

* Adjusted Tabard Vendor position.

* Updated tailoring trainer.

* Updated herbalism trainer.

* Updated blacksmithing and alchemy trainers.

* Updated engineering trainer.

* Updated first aid trainer.

* Updated cooking trainer.

* Updated fishing trainer.

* Updated mining trainer.

* Updated enchanting trainer and added support for both factions.

* Updated jewelcrafting and inscription trainers and added support for both factions.

* Updated leatherworking trainer.

* Updated skinner trainer.

* Updated alchemy trainer to a master trainer.

* Hide the Ammo & Repair Vendor since it's broken anyway.

* Hide Spirit Healer since that's broken anyway.

* Update Creatures.sql

Mistakenly removed column names

* Added Neutral Auctioneer.

* Revert "Hide Spirit Healer since that's broken anyway."

This reverts commit dee436787cf39cad055bbda36b2a9e874295aca1.

* Updated Innkeeper position.

* Updated Banker position.

* Replaced curly braces.

* Updated menus.

* Added Poisons Vendor.

* Update Creatures.sql

Old Column Names Snuck back in.
Fixed

* Fixed Ammo & Repair Vendor.

* Updated to use existing Death Knight Trainer.

* Fixed SQL error.

* Updated method to be more descriptive.

* Updated to allow anyone to purchase by default but only allow Guild Master to sell.

* Fixed command typo in README.md.

* Removed the V2 designation.

* Updated filenames to be consistent.

* Changed assistant to butler to match the new command.

* Updated to fix compile error.

* Updated again to fix compile error.

* Renamed configuration file to match the rest of the module.

* Updated so that the sell guild house menu is displayed if the permission requirement is met instead of requiring guild master.

* Code cleanup and added test code.

* Tweaked test code.

* Tweaked test code.

* Removed test code.

* Fixed sell guild house permission check.

* Updated to fix deprecation warnings.

* Added required using.

* Removed parameters that were not used anyway.

* Updated to fix parameters.

* Cleaned up SQL queries.

* Updated to include orientation for the Guild House maps, this fixes teleporting there and facing weird directions.

* Updated portal locations.

* Fixed starter portal locations.

* Fixed portal locations.

* Updated files to match new command.

* Delete Creatures.sql

* Update README.md

* chore: add npcflag 1 by default

* Update mod_guildhouse_butler.cpp

* add overrides to fix warnings

Co-authored-by: Bogir[rus] <m-1@bk.ru>
Co-authored-by: SoulSeekkor <soulseekkor@live.com>
Co-authored-by: Helias <stefanoborzi32@gmail.com>
2022-04-04 09:49:40 +02:00

12 lines
467 B
SQL

CREATE TABLE IF NOT EXISTS `guild_house` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`guild` int(11) NOT NULL DEFAULT '0',
`phase` int(11) NOT NULL,
`map` int(11) NOT NULL DEFAULT '0',
`positionX` float NOT NULL DEFAULT '0',
`positionY` float NOT NULL DEFAULT '0',
`positionZ` float NOT NULL DEFAULT '0',
`orientation` float NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `guild` (`guild`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;