mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-17 14:52:25 +00:00
Few adjustments [skip ci[
This commit is contained in:
parent
b8c44ee41b
commit
093509baa9
@ -34,6 +34,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#define strcasecmp _stricmp
|
||||
#else
|
||||
#include "unix.h"
|
||||
#include "../zone/zonedb.h"
|
||||
#include <netinet/in.h>
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
@ -319,10 +320,10 @@ uint16 Database::GetInstanceID(const char* zone, uint32 character_id, int16 vers
|
||||
"AND instance_list.id = instance_list_player.id "
|
||||
"AND instance_list_player.charid = %u "
|
||||
"LIMIT 1 ",
|
||||
GetZoneID(zone),
|
||||
content_db.GetZoneID(zone),
|
||||
version,
|
||||
character_id
|
||||
);
|
||||
);
|
||||
auto results = QueryDatabase(query);
|
||||
|
||||
if (!results.Success())
|
||||
|
||||
@ -327,6 +327,8 @@ int main(int argc, char** argv) {
|
||||
database.PurgeAllDeletedDataBuckets();
|
||||
|
||||
LogInfo("Loading zones");
|
||||
// Load to both context for now... this needs to be cleaned up
|
||||
database.LoadZoneNames();
|
||||
content_db.LoadZoneNames();
|
||||
LogInfo("Clearing groups");
|
||||
database.ClearGroup();
|
||||
|
||||
@ -9298,7 +9298,7 @@ void Client::SetBotOption(BotOwnerOption boo, bool flag) {
|
||||
void Client::SendToGuildHall()
|
||||
{
|
||||
std::string zone_short_name = "guildhall";
|
||||
uint32 zone_id = database.GetZoneID(zone_short_name.c_str());
|
||||
uint32 zone_id = content_db.GetZoneID(zone_short_name.c_str());
|
||||
if (zone_id == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1289,7 +1289,7 @@ void command_peqzone(Client *c, const Seperator *sep)
|
||||
if (sep->IsNumber(1))
|
||||
{
|
||||
zoneid = atoi(sep->arg[1]);
|
||||
destzone = database.GetPEQZone(zoneid, 0);
|
||||
destzone = content_db.GetPEQZone(zoneid, 0);
|
||||
if(destzone == 0){
|
||||
c->Message(Chat::Red, "You cannot use this command to enter that zone!");
|
||||
return;
|
||||
@ -1307,7 +1307,7 @@ void command_peqzone(Client *c, const Seperator *sep)
|
||||
}
|
||||
else {
|
||||
zoneid = content_db.GetZoneID(sep->arg[1]);
|
||||
destzone = database.GetPEQZone(zoneid, 0);
|
||||
destzone = content_db.GetPEQZone(zoneid, 0);
|
||||
if(zoneid == 0) {
|
||||
c->Message(Chat::White, "Unable to locate zone '%s'", sep->arg[1]);
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user