Hi, I would like to share with you the code that returns the location of a given Vnum-NPC on the map.
I needed a function to determine the correct location for a movement, when I gave the cords from the regen the location was not the expected result I wanted.
This code solves the problem, maybe there is another solution but this is mine and it works has been tested
Bitte melden Sie sich an, um dieses Bild zu sehen.
latest version GetNpcLocationsByVnum
*this code will show you all NPC positions on the map with the same Vnum
Bitte melden Sie sich an, um diesen Link zu sehen.
ACMD function's in cmd_gm.cpp
I hope someone will take advantage, it's nice to share with you and especially with those who also share their work for free