• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Add Allow Clones

xLosT

Member
Joined
Jan 11, 2010
Messages
1,021
Reaction score
13
Location
Brasil, Rio Grande do Sul
I want to change the acc manager for 4 chars.
PHP:
if(!_player || name == "Account Manager" || g_config.getNumber(ConfigManager::ALLOW_CLONES)
tried so
PHP:
name == "Druid, Paladin, Sorcerer, Knight"
PHP:
name == "Druid" "Paladin" "Sorcerer" "Knight"
gave no more
 
To separate them in C++, you need to use commas (,)

Code:
name == "Druid", "Paladin", "Sorcerer", "Knight"

Anyways, isn't there something like this in config.lua already?
 
I just 4 char, if I change all the config changes
____________________________
erro

PHP:
protocolgame.cpp: In member function 'bool ProtocolGame::login(const std::string&, uint32_t, const std::string&, OperatingSystem_t, uint16_t, bool)':
protocolgame.cpp:98:45: error: right-hand operand of comma has no effect
protocolgame.cpp:98:141: error: right-hand operand of comma has no effect
make[1]: ** [protocolgame.o] Erro 1
make[1]: Saindo do diretório `/home/total'
make: ** [all] Erro 2
root@211-37-31-64:/home/total#
 

Similar threads

  • Question Question
Replies
2
Views
570
Back
Top