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
2019-03-25 12:44:30 +00:00
2019-03-25 12:44:30 +00:00
2019-03-25 12:44:30 +00:00
2019-10-10 00:51:36 +03:00
2019-10-31 09:31:07 +01:00
2019-03-25 12:44:30 +00:00

logo AzerothCore

  • Latest build status with azerothcore: Build Status

Guild House Module

Important notes

You have to use at least AzerothCore commit 77f1363.

Description

This is a phased guild house system for AzerothCore, it allows players from the same guild to visit their guild house. All guilds will get their own phasing system and then the guild master can purchase NPC creatures and other stuff to complete the Guild House.

Purchasables

  • Class Trainers (all available in Wrath)
  • Primary Profession Trainers (all available in Wrath)
  • Secondary Profession Trainers (all available in Wrath)
  • Vendors: Reagents Vendor, Food & Water, Trade Goods, and Repairs/Ammo Vendor
  • Portals to Neutral, Horde and Alliance cities
  • Spirit Healer
  • Guild Bank and Personal Bank access
  • Auctioneer
  • Stable Master

How to use ingame

  1. After installation, as GM you will need to: .npc add 500030 -> somewhere public and accessible by other players.
  2. Players can purchase a guild house from the added NPC, then either teleport to the guildhouse via the NPC or chat: .guildhouse tele or .gh tele
  3. Each new Guild House starts with a portal to either Orgrimmar or Stormwind, based on Team (ALLIANCE / HORDE), and the Guild House Assistant.
  4. Speak with the Guild House Assistant to begin purchasing additions to your Guild House!
  5. Players in guild with proper rank will be able to spawn the Assistant with chat commands .guildhouse butler or .gh butler

Installation

1) Place the module under the `modules` directory of your AzerothCore source.
2) Import the SQL files manually to the right Database (auth, world or characters)
3) Re-run cmake and launch a clean build of AzerothCore.

Edit module configuration (optional)

If you need to change the module configuration, go to your server configuration folder (where your worldserver or worldserver.exe is), copy mod_guild_house_v2.conf.dist to mod_guild_house_v2.conf and edit that new file.

Credits

AzerothCore: repository - website - discord chat community

Description
No description provided
Readme 217 KiB
Languages
C++ 100%