Updated npcspeed, npcwalkto and npcstop script commands (#8354)

* Added the optional parameter <npc name> to npcspeed to change the walking speed of the npc with the said name.
  Usage : npcspeed( <speed value> {,"<npc name>"} );

* Added the optional parameter <npc name> to npcwalkto to move the npc with the said name at the given coordinates.
  Usage : npcwalkto( <x>,<y> {,"<npc name>"} } );

* Added the optional parameters `<npc name>` and `<flag>` to `npcstop` to stop the movement of the npc with the said name with options.
  Usage : `npcstop( {"<npc name>", {"<flag>"}});`

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
This commit is contained in:
Atemo
2024-06-16 14:57:59 +02:00
committed by GitHub
parent fcf74b0dfc
commit 6451925430
6 changed files with 128 additions and 45 deletions

View File

@@ -204,7 +204,7 @@ void mvptomb_create(struct mob_data *md, char *killer, time_t time)
safestrncpy(nd->name, msg_txt(nullptr,656), sizeof(nd->name));
nd->class_ = 565;
nd->speed = 200;
nd->speed = DEFAULT_NPC_WALK_SPEED;
nd->subtype = NPCTYPE_TOMB;
nd->u.tomb.md = md;