Okay, so I thought I`d create a separate blog for my dev process of ProjectX and leave the other thread for everything else related to the server, such as discussions about design, gameplay, etc. I need something like this to keep reminders, etc.
So basically, if you don`t know what this is for, check out [Only registered and activated users can see links. Click Here To Register...]
About :
Source written in C# using .NET. External libraries used so far : NHibernate, CSScript. One more time, special thanks to pro4never for the packets in Albetros.
Done
Latest screenshot
[Only registered and activated users can see links. Click Here To Register...]
Latest addition
External scripting for NPCs using C#. Here`s how the first script looks like :
SOON-TODO list - stuff I plan to implement in the near future
So basically, if you don`t know what this is for, check out [Only registered and activated users can see links. Click Here To Register...]
About :
Source written in C# using .NET. External libraries used so far : NHibernate, CSScript. One more time, special thanks to pro4never for the packets in Albetros.
Done
- Auth server (handles login, ban, etc.)
- Game encryption setup
- Characters properly saving/loading from MySQL (using NHibernate)
- Proper login if the user has a character
- Move/Run (no steed considered yet), have to add speedhack protection
- Jump (have to add speedhack protection + DMap validation)
- Screening system for Players and NPCs (this was bugging me a lot)
- Chat (Talk, Whisper)
- NPC loading from cq_npc using MySQL / NHibernate
- NPC dialogs, face, options, etc. you know
- NPC scriping using C# via CSScript
- Item information classes (like the domains for NHibernate)
- Item information loading from SQL
- Item-related packets` implementation
- Inventory
- Item equipment (and finish the spawnpacket as well, at least the part I did finish)
- Proficiencies
- Sync packet, stat calculations(besides mana), stat window (for the stats I use so far)
Latest screenshot
[Only registered and activated users can see links. Click Here To Register...]
Latest addition
External scripting for NPCs using C#. Here`s how the first script looks like :
PHP Code:
using System;
using ProjectXGame;
using ProjectXGame.NPC;
using ProjectXGame.Client;
public class NPCScript
{
// GuildChief in Twin City
private byte m_Face = 6; // Face nr - avatar
public byte Face() { return m_Face;}
public void Execute(byte link, PlayerNPCHandler NPC)
{
switch (link)
{
case 0:
{
NPC.AddTextLine("Welcome, " + NPC.MyClient.Character.Data.Name + "! I was sent here to aid developers with their needs! What can I help you with?");
NPC.AddOption("KraHen`s TODO list", 2);
NPC.AddOption("Nothing, thanks.", 255);
break;
}
case 2:
{
NPC.AddTextLine("TODO : " + Kernel.TODO);
NPC.AddOption("Thanks.", 255);
break;
}
}
NPC.SendNPCData();
}
}
- Portals
- DMap support for setting the client`s location, also portal validation so there`s no teleport exploit using this
- Attack handler - melee, weapon skills