Skip to content

Commit

Permalink
Fix .npc spawntime gm command
Browse files Browse the repository at this point in the history
  • Loading branch information
obi23lipnik authored and killerwife committed Dec 5, 2023
1 parent 6e6ba03 commit 97e451e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Chat/Level2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2248,7 +2248,7 @@ bool ChatHandler::HandleNpcSpawnTimeCommand(char* args)

uint32 u_guidlow = pCreature->GetGUIDLow();

WorldDatabase.PExecuteLog("UPDATE creature SET spawntimesecs=%i WHERE guid=%u", stime, u_guidlow);
WorldDatabase.PExecuteLog("UPDATE creature SET spawntimesecsmin=%i, spawntimesecsmax=%i WHERE guid=%u", stime, u_guidlow);
pCreature->SetRespawnDelay(stime);
PSendSysMessage(LANG_COMMAND_SPAWNTIME, stime);

Expand Down

1 comment on commit 97e451e

@kelbren
Copy link

@kelbren kelbren commented on 97e451e Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this need an additional parameter, like this ?
WorldDatabase.PExecuteLog("UPDATE creature SET spawntimesecsmin=%i, spawntimesecsmax=%i WHERE guid=%u", stime, stime, u_guidlow);

Please sign in to comment.