From what little I looked into adding monsters you will need to create a new structure to hold monster info, create a database to hold that info (or use flatfile, up to you), create a new dictionary to hold that information in the source, load it into the source using a database function and then worry about the actual FUNCTION of mobs as well as the spawning (from what I understand you can use the entity spawn packet to spawn the monsters.. there was an enum I spotted in the entity code to switch between player and monster)Quote:
How do we add mobs and guards?
#edit
item.Plus = Math.Min(Data[9], 9); is not in the source, I have searched, all I have found close to that is newItem.Plus = Math.Min((byte)9, plus);
You will then need to write all the monster movement, attacking, being attacked and dying/removal system (including any threading you wish to do to make it more efficient) The most likely way to do that would be create a monster handler thread and have it do a monster check function every like 20 ms or something checking for local players/attacking/etc.
Again... use another source as a guide line but keep in mind that most of those sources are very poorly written.
CoEmu is a rather nice example (BASE one, not the messed up edited versions).
Same basic idea with guards but you will wanna link it to a player, deal with exp awarding and all that other good stuff.
Personally I'm working on a new companion/bot system but I may come back to this source after I get that working.