mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
[Feature] Enable spawn attribute for NPCTintID (#4871)
* Add scripting for NPCTintIndex * AddNPCTintID Add NPCTintID to spawn logic * Update base_npc_types_repository.h * Correct version.h
This commit is contained in:
@@ -1693,6 +1693,24 @@ void command_npcedit(Client *c, const Seperator *sep)
|
||||
c->Message(Chat::White, "Usage: #npcedit set_grid [Grid ID] - Sets an NPC's Grid ID");
|
||||
return;
|
||||
}
|
||||
} else if (!strcasecmp(sep->arg[1], "npc_tint_id")) {
|
||||
if (sep->IsNumber(2)) {
|
||||
const uint32 npc_tint_id = (Strings::ToUnsignedInt(sep->arg[2]));
|
||||
|
||||
n.npc_tint_id = npc_tint_id;
|
||||
|
||||
d = fmt::format(
|
||||
"Set NPCTintID {} for {}",
|
||||
npc_tint_id,
|
||||
npc_id_string
|
||||
);
|
||||
} else {
|
||||
c->Message(
|
||||
Chat::White,
|
||||
"Usage: #npcedit npc_tint_id [id] - Sets an NPC's NPCTintID [0 - 78 for RoF2]"
|
||||
);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
SendNPCEditSubCommands(c);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user