conan513 / SingleCore_TC

TrinityCore Open Source MMO Framework
http://www.trinitycore.org
GNU General Public License v2.0
180 stars 67 forks source link

GuildHouse Scripts #66

Open siouxst opened 7 years ago

siouxst commented 7 years ago

Running Version: TrinityCore rev. 2a3108da333b 2016-10-01 13:17:17 +0200 (npcbots-test branch) (Win64, Release, Static) (worldserver-daemon)

When trying to buy from the GuildMaster It keep throwing this error: (I am logged in using GM account) Missing name GuildHouse.TokenOrGold in config file c:/SingleCoreR2/Settings/world.conf, add "GuildHouse.TokenOrGold = 0" to this file Missing name GuildHouse.Cost in config file c:/SingleCoreR2/Settings/world.conf, add "GuildHouse.Cost = 0" to this file

The file has all these settings, I tried to isolate them and noticed some strange things in the code:

src\server\scripts\Custom\guildmaster.cpp: void buyGuildhouse(Player player, Creature _creature, uint32 guildhouseId) --Has a bool token that doesn't appear to be used since it always deducts from player->ModifyMoney --Pulls an int value for cost, but is using GetBoolDefault?