• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ TFS 1.4.1 Npc Subfolders

helmut7414

New Member
Joined
Mar 3, 2012
Messages
22
Solutions
1
Reaction score
4
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..

C++:
Npc::Npc(const std::string& name) :
    Creature(),
    filename("data/npc/" + name + ".xml"),
    npcEventHandler(nullptr),
    masterRadius(-1),
    loaded(false)
{
    reset();
}
Thats the code of loading the Npc files. I hope someone can help me.

Best regards
helmut :)
 
Back
Top