I've been working at a hunt quest that teleports chars to a map where they must kill a monster get a key find the treasure box, open it then teleport back to TC.
This is what I have but it directs the tele to all characters in game
foreach (Game.Character C in Game.World.H_Chars.Values)
{
Game.World.SendMsgToAll("SYSTEM", "The Treasure has been found. Better luck next time.", 2011, 0);
C.Teleport(1002, 429, 379);
}
how would I direct this to only the characters in the map? I've tried millions of different things...even tried using bools that change the subject of the NPC but for some reason it wont' switch false to true...even with a command...grrrzzz...any and all help is greatly appreciated. (Sometimes I wish I stuck with my 5095 server lol)
This is what I have but it directs the tele to all characters in game
foreach (Game.Character C in Game.World.H_Chars.Values)
{
Game.World.SendMsgToAll("SYSTEM", "The Treasure has been found. Better luck next time.", 2011, 0);
C.Teleport(1002, 429, 379);
}
how would I direct this to only the characters in the map? I've tried millions of different things...even tried using bools that change the subject of the NPC but for some reason it wont' switch false to true...even with a command...grrrzzz...any and all help is greatly appreciated. (Sometimes I wish I stuck with my 5095 server lol)