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

Allow clones in only one account.

Bogart

...has super panda powers
Senator
Joined
Jun 21, 2009
Messages
8,007
Solutions
27
Reaction score
566
Location
Panda Land!
well, i did search and i found some thread, but they didn't have an answer.
as the title says, i want to know how to allow clones in only one account.
hope you guys can help me.
 
Source edit:
search in protocolgame.cpp:
[cpp] if(!_player || name == "Account Manager" || g_config.getNumber(ConfigManager::ALLOW_CLONES) > (int32_t)players.size())[/cpp]
and either add the names of the characters like it is with Account Manager or like this:
[cpp] if(!_player || name == "Account Manager" || player->getAccount() == 1 || g_config.getNumber(ConfigManager::ALLOW_CLONES) > (int32_t)players.size())[/cpp]

Replace "player->getAccount() == 1" with the id of the account.
Note you don't need to have allowClones on then
 
Source edit:
search in protocolgame.cpp:
[cpp] if(!_player || name == "Account Manager" || g_config.getNumber(ConfigManager::ALLOW_CLONES) > (int32_t)players.size())[/cpp]
and either add the names of the characters like it is with Account Manager or like this:
[cpp] if(!_player || name == "Account Manager" || player->getAccount() == 1 || g_config.getNumber(ConfigManager::ALLOW_CLONES) > (int32_t)players.size())[/cpp]

Replace "player->getAccount() == 1" with the id of the account.
Note you don't need to have allowClones on then

Well, thanks.
its not possible through lua right?
 
Well, thanks.
its not possible through lua right?

It's easy with flags :)

Edit :
Groups.xml :

XML:
<group id="7" name="Player" flags="1024"/>

or

XML:
<group id="7" name="Player" customFlags="1024"/>

Just add group id="7" to the account at your database :)
 
Last edited:
Nah it's not possible in LUA but if you invest like 30 seconds you will have the source edit lol
 
Back
Top