Code:
if (Cmd[0] == "/mmtonpc")
{
foreach (Game.NPC N in World.H_NPCs.Values)
{
if (uint.Parse(Cmd[1]) == N.EntityID)
GC.MyChar.Teleport(N.Loc.Map, N.Loc.X, N.Loc.Y);
}
break;
}
so your command is /mmtonpc NPCENTITYID
if you Don't know what's EntityID, let me help you
here's an example from NPCs.txt
Quote:
|
101736 1507 21 0 1039 481 289
|
The Red one is entity ID
__________________________________________
Press thanks if it helped :P