[Release] Super-Basic Server Base

07/29/2011 19:51 agathom#61
I smell threesome ^^
07/29/2011 20:43 GRASSHOPPA#62
this is one sexy source lol
gonna try to drop it down to 5017 then test it out
07/30/2011 01:57 .Kinshi#63
Updated ;)
07/30/2011 04:19 CrystalCastle#64
A small contribution to help with your Packets :)

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KinSocket;

namespace KinConquer.Packets.Structures
{
    /// <summary>
    /// 0x450 (Server->Client)
    /// </summary>
    public unsafe struct WeaponProficiencyPacket
    {
        public UInt16 Size;
        public UInt16 Type;
        public UInt32 Experience;
        public UInt32 NeededExperience;
        public UInt32 ID;

        public static WeaponProficiencyPacket Create()
        {
            WeaponProficiencyPacket packet = new WeaponProficiencyPacket();
            packet.Size = 0x10;
            packet.Type = 0x450;
            return packet;
        }
    }
}
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KinSocket;

namespace KinConquer.Packets.Structures
{
    /// <summary>
    /// 0x401 (Server->Client)
    /// </summary>
    public unsafe struct LearnWeaponProficiencyPacket
    {
        public UInt16 Size;
        public UInt16 Type;
        public UInt32 ID;
        public UInt32 level;
        public UInt32 Experience;
        public UInt32 NeededExperience;
        
        public LearnWeaponProficiencyPacket Create()
        {
            LearnWeaponProficiencyPacket packet = new LearnWeaponProficiencyPacket();
            packet.Size = 0x14;
            packet.Type = 0x401;
            return packet;
        }
    }
}
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KinSocket;

namespace KinConquer.Packets.Structures
{
    /// <summary>
    /// 0x420 (Server->Client)
    /// </summary>
     public unsafe struct TradePacket
    {
        public enum Types : uint
        {
            RequestNewTrade = 0x01,
            RequestCloseTrade = 0x02,
            ShowTradeWindow = 0x03,
            CloseTradeWindow = 0x05,
            RequestAddItemToTrade = 0x06,
            RequestAddMoneyToTrade = 0x07,
            DisplayMoney = 0x08,
            RequestCompleteTrade = 0x0A,
            DisplayConquerPoints = 0x0C,
            RequestAddConquerPointsToTrade = 0x0D
        }
        
        public UInt16 Size;
        public UInt16 Type;
        public UInt32 dwParam;
        public Types ID;

        public static TradePacket Create()
        {
            TradePacket Packet = new TradePacket();
            Packet.Size = 0x0C;
            Packet.Type = 0x420;
            return Packet;
        }
    }
}
08/12/2011 02:24 .Kinshi#65
Updated!

Screen, Inventory, Equipment, Movement, and more!

I also changed to my old way of doing packets just so I can copy paste them in from my previous source :P
08/14/2011 21:10 .Kinshi#66
Updated again!

I made a short list of instructions on how to set up the server.
08/14/2011 23:14 -Shunsui-#67
Quote:
Originally Posted by .Kinshi View Post
Updated!

Screen, Inventory, Equipment, Movement, and more!

I also changed to my old way of doing packets just so I can copy paste them in from my previous source :P
thief,
08/15/2011 00:11 chickmagnet#68
Quote:
Originally Posted by .Kinshi View Post
Updated again!

I made a short list of instructions on how to set up the server.
ye u theif u dont even have permission from .Kinshi u gonna copy past from his source
08/15/2011 00:48 _DreadNought_#69
chick you fail hard.
08/15/2011 01:37 Spirited#70
Quote:
Originally Posted by _DreadNought_ View Post
chick you fail hard.
He's joking...
it's just a very very terrible joke.
08/15/2011 03:18 chickmagnet#71
hehe srry i tried
08/15/2011 08:19 Spirited#72
Quote:
Originally Posted by chickmagnet View Post
hehe srry i tried
.-. i'm not much better.
Me telling jokes is like a fat girl telling fat jokes.
(I tried ._.)
08/15/2011 18:17 chickmagnet#73
Quote:
Originally Posted by Fаng View Post
.-. i'm not much better.
Me telling jokes is like a fat girl telling fat jokes.
(I tried ._.)
hehe that actrully was a joke u not 2 bad and usually im funny but u kno u cant be funny all of the time

to stay on topic thx for the updates kin
08/15/2011 20:23 BaussHacker#74
[Only registered and activated users can see links. Click Here To Register...]
08/15/2011 20:34 teroareboss1#75
nice source
say to use IEnumerator
for multithread`s

like this:

Code:
                var varr = Kernel.GamePool.Values.GetEnumerator();
                varr.MoveNext();
                int COunt = Kernel.GamePool.Count;
                for (uint x = 0;x < COunt;  x++)
                {
                    if (x >= COunt) break;

                    GameState pClient = (varr.Current as GameState);
                     if(pClient  != nu)
                     {

                     }
                    varr.MoveNext(); 
}