mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 11:31:30 +00:00
Fixed #npcspawn update.
This commit is contained in:
parent
b3842ba72a
commit
cb1d0a0bef
@ -1213,12 +1213,13 @@ uint32 ZoneDatabase::AddNewNPCSpawnGroupCommand(const char *zone, uint32 zone_ve
|
|||||||
uint32 ZoneDatabase::UpdateNPCTypeAppearance(Client *client, NPC *spawn)
|
uint32 ZoneDatabase::UpdateNPCTypeAppearance(Client *client, NPC *spawn)
|
||||||
{
|
{
|
||||||
std::string query =
|
std::string query =
|
||||||
StringFormat("UPDATE npc_types SET name = \"%s\", level = %i, race = %i, class = %i, "
|
StringFormat("UPDATE npc_types SET name = '%s', level = '%i', race = '%i', class = '%i', "
|
||||||
"hp = %i, gender = %i, texture = %i, helmtexture = %i, size = %i, "
|
"hp = '%i', gender = '%i', texture = '%i', helmtexture = '%i', size = '%i', "
|
||||||
"loottable_id = %i, merchant_id = %i, face = %i, WHERE id = %i",
|
"loottable_id = '%i', merchant_id = '%i', face = '%i' "
|
||||||
|
"WHERE id = '%i'",
|
||||||
spawn->GetName(), spawn->GetLevel(), spawn->GetRace(), spawn->GetClass(), spawn->GetMaxHP(),
|
spawn->GetName(), spawn->GetLevel(), spawn->GetRace(), spawn->GetClass(), spawn->GetMaxHP(),
|
||||||
spawn->GetGender(), spawn->GetTexture(), spawn->GetHelmTexture(), spawn->GetSize(),
|
spawn->GetGender(), spawn->GetTexture(), spawn->GetHelmTexture(), spawn->GetSize(),
|
||||||
spawn->GetLoottableID(), spawn->MerchantType, spawn->GetNPCTypeID());
|
spawn->GetLoottableID(), spawn->MerchantType, spawn->GetLuclinFace(), spawn->GetNPCTypeID());
|
||||||
auto results = QueryDatabase(query);
|
auto results = QueryDatabase(query);
|
||||||
return results.Success() == true ? 1 : 0;
|
return results.Success() == true ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user