helmut7414
Member
- Joined
- Mar 3, 2012
- Messages
- 27
- Solutions
- 1
- Reaction score
- 8
Hello OTLanders,
I have a help request. I am useing TFS 1.4.1 version 10.98 with a Real Map. I kinda want to organize my Npc´s folder and saveing the npc.xml´s in subfolders like "data/npc/carlin" "data/npc/thais" etc. But sadly I am not that good in C++ to come out with a code to load also sub folders from npcs..
Thats the code of loading the Npc files. I hope someone can help me.
Best regards
helmut
I have a help request. I am useing TFS 1.4.1 version 10.98 with a Real Map. I kinda want to organize my Npc´s folder and saveing the npc.xml´s in subfolders like "data/npc/carlin" "data/npc/thais" etc. But sadly I am not that good in C++ to come out with a code to load also sub folders from npcs..
C++:
Npc::Npc(const std::string& name) :
Creature(),
filename("data/npc/" + name + ".xml"),
npcEventHandler(nullptr),
masterRadius(-1),
loaded(false)
{
reset();
}
Best regards
helmut