izaakbuwalda
New Member
- Joined
- Mar 7, 2020
- Messages
- 19
- Reaction score
- 4
i want to implement a new npctype into the source of the server, (unpc) universal npc
im checking how i can intergrate it into the server with the correct steps,
i made the Unpc.cpp and .h now if i add all the code into those i have to add them to #include "otpch.h"
but also i must add allot of stuff to the game.cpp , players.cpp , creature.cpp and monster.cpp?
let me do a small explanation. im creating a non hostile npc , but he is attackable by players , once hes being attacked he wil engange in pvp. normaly the npc just wanders the map hunting monsters to gain experience. {thats kinda my idea}
i just would like to know where i have to add the things so i dont get errors when i add the npc.
because right now the game dousnt spawn my npc.
im checking how i can intergrate it into the server with the correct steps,
i made the Unpc.cpp and .h now if i add all the code into those i have to add them to #include "otpch.h"
but also i must add allot of stuff to the game.cpp , players.cpp , creature.cpp and monster.cpp?
let me do a small explanation. im creating a non hostile npc , but he is attackable by players , once hes being attacked he wil engange in pvp. normaly the npc just wanders the map hunting monsters to gain experience. {thats kinda my idea}
i just would like to know where i have to add the things so i dont get errors when i add the npc.
because right now the game dousnt spawn my npc.