Spwning a NPC or object in-game (Chat commands)

Hello all,ive been thinking to make a MMO
But i want the abilty to spawn creatures and NPC’s for GM events.
I have no idea where to get started with this kind of code,
Can anyone suggest a good starting point (in coding for this)
And please, i dont want a anser : You model,then code, because thats not helpful.
Thanks.
-Gie005:face_with_spiral_eyes:

Send the message through a filter and if it matches X then do Y
Also this is wrong category.