mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +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
-3
@@ -449,14 +449,14 @@ void Perl_NPC_SetSwarmTarget(NPC* self, int target_id) // @categories Pet
|
||||
self->SetSwarmTarget(target_id);
|
||||
}
|
||||
|
||||
void Perl_NPC_ModifyNPCStat(NPC* self, const char* stat, const char* value) // @categories Stats and Attributes
|
||||
void Perl_NPC_ModifyNPCStat(NPC* self, std::string stat, std::string value) // @categories Stats and Attributes
|
||||
{
|
||||
self->ModifyNPCStat(stat, value);
|
||||
}
|
||||
|
||||
float Perl_NPC_GetNPCStat(NPC* self, const char* identifier) // @categories Stats and Attributes
|
||||
float Perl_NPC_GetNPCStat(NPC* self, std::string stat) // @categories Stats and Attributes
|
||||
{
|
||||
return self->GetNPCStat(identifier);
|
||||
return self->GetNPCStat(stat);
|
||||
}
|
||||
|
||||
void Perl_NPC_AddSpellToNPCList(NPC* self, int16 priority, uint16_t spell_id, uint32 type, int mana_cost, int recast_delay, int16 resist_adjust) // @categories Spells and Disciplines, Script Utility
|
||||
|
||||
Reference in New Issue
Block a user