I'll make little bits for you to code so i'm not harming the community(Not saying where to add either).
Make a new void
Code:
public static void LoadNewMap(uint _ID)
{
if (MapAllowed((ushort)_ID))
{
if (File.Exists(ServerBase.Constants.DataHolderPath + "GameMap.dat"))
{
FileStream FS = new FileStream(ServerBase.Constants.DataHolderPath + "GameMap.dat", FileMode.Open);
BinaryReader BR = new BinaryReader(FS);
uint MapCount = BR.ReadUInt32();
for (uint i = 0; i < MapCount; i++)
{
ushort MapID = (ushort)BR.ReadUInt32();
string Path = Encoding.ASCII.GetString(BR.ReadBytes(BR.ReadInt32()));
if (_ID == MapID)
{
Game.Map D = new Game.Map(MapID, Path);
ServerBase.Kernel.Maps.Add(MapID, D);
}
BR.ReadInt32();
}
BR.Close();
FS.Close();
}
}
}
then where every u load the character and teleport just make a void called isLoad then just check if its in the array list.
Simple.
That's all I feel like releasing.






