mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Commands] Cleanup #modifynpcstat Command. (#2499)
* [Commands] Cleanup #modifynpcstat Command. Cleanup messages and logic, Add map and loop through it to display all stats, can add to this in the future if we add more stuff modifiable by this command. * Delete settings.json * Update modifynpcstat.cpp * Update modifynpcstat.cpp * Update questmgr.h
This commit is contained in:
+3
-6
@@ -2579,14 +2579,11 @@ uint16 QuestManager::CreateGroundObjectFromModel(const char *model, const glm::v
|
||||
return entid;
|
||||
}
|
||||
|
||||
void QuestManager::ModifyNPCStat(const char *identifier, const char *newValue)
|
||||
void QuestManager::ModifyNPCStat(std::string stat, std::string value)
|
||||
{
|
||||
QuestManagerCurrentQuestVars();
|
||||
if(owner){
|
||||
if(owner->IsNPC())
|
||||
{
|
||||
owner->CastToNPC()->ModifyNPCStat(identifier, newValue);
|
||||
}
|
||||
if (owner && owner->IsNPC()) {
|
||||
owner->CastToNPC()->ModifyNPCStat(stat, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user