New DMap System [Impulses source]

10/16/2010 19:56 _DreadNought_#1
Hey,

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 in the array where you load DMaps only load, like, Just TC.
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.
10/16/2010 21:05 iGeorge112#2
Nice !
10/16/2010 21:07 Fish*#3
+thanks was not for release, but for ur signature :P
10/16/2010 22:33 _DreadNought_#4
hehe.
10/19/2010 23:29 †he Knight#5
#Edited
10/19/2010 23:56 copz1337#6
Quote:
I'll make little bits for you to code so i'm not harming the community
Now that's just d*mb no offense. Don't listen to these people, do what you like.
10/20/2010 00:27 Arcо#7
Quote:
Originally Posted by copz1337 View Post
Now that's just d*mb no offense. Don't listen to these people, do what you like.
He's doing what he wants, he doesn't want to harm the community and help them become even more little leechers like you.
10/20/2010 14:21 Fish*#8
Quote:
Originally Posted by copz1337 View Post
Now that's just d*mb no offense. Don't listen to these people, do what you like.
Is hard you to do things by ur self now?
10/20/2010 22:07 _DreadNought_#9
Quote:
Originally Posted by WTFIDKBBQ View Post
He's doing what he wants, he doesn't want to harm the community and help them become even more little leechers like you.
Couldn't of said it better myself. :pimp: