• 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!

Tala, please read!

JayBeee

Retired Global Mod
Senator
Joined
Jun 2, 2007
Messages
5,224
Reaction score
13
Location
Sweden
Where did the ioplayerxml.cpp go? I've found a C++ code that enables races on players, and I REALLY need it, and as you can see here: http://tibiafans.com/forums/showthread.php?t=4612
I need that file... so please, can you tell me if you've renamed that file or if this code is too outdated to use on newer servers.

EDIT: Or is it just for xml-servers maybe?
 
It's for servers with XML saving, TFS' SQL Saving is in ioplayer.cpp.
 
I mean iologindata.cpp, it's ioaccount classes and ioplayer classes merged.
 
Does this code work with this system then? I can't find the "isLoaded = false" string that I'm instructed to find in the thread.
 
If it does not work with SQL, then could you maybe fix the code up? I'd be forever grateful!
 
Find this line instead of the one said in that post:
query << "`vocation` = " << (int32_t)player->getVocationId() << ", ";

Remember to add the 'race' field to your players table.
 
Aight, just gonna try it, I'm gonna be SO happy if it works :D

EDIT: what would I have to find instead of this?
Code:
setVocation(VOCATION_NONE);
 
Last edited:
Aight, just gonna try it, I'm gonna be SO happy if it works :D

EDIT: what would I have to find instead of this?
Code:
setVocation(VOCATION_NONE);

setVocation(0);
 
Back
Top