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

Talk Actions

its easy easy to make. Just make more lines with the same talkaction.

Code:
	<talkaction words="!uptime" script="uptime.lua"/>
	<talkaction words="!up time" script="uptime.lua"/>
	<talkaction words="!Up Time" script="uptime.lua"/>
	<talkaction words="!Uptime" script="uptime.lua"/>
	<talkaction words="!upTime" script="uptime.lua"/>
	<talkaction words="!up Time" script="uptime.lua"/>
	<talkaction words="!Up time" script="uptime.lua"/>
	<talkaction words="!UPTIME" script="uptime.lua"/>
	<talkaction words="!UP TIME" script="uptime.lua"/>

The more lines you make, the less sensitive it gets.
 
well atleast do it like znote
or you dont want to do it because is to many work ? and you dont need to do every single way to write it just the principal i dont think normal players will do !OnLInE when !ONLINE or !Online its easier
 
I'm not sure. But there lines in game.cpp are maybe responsable for checking command words.
Code:
		if(commandTags[i] == text.substr(0,1))
		{
			if(commands.exeCommand(player, text))
				return true;
		}
So maybe add before it:
Code:
text = toLowerCaseString(text);
 
@up gonna test it.

EDIT 1: I get this error:
Code:
../game.cpp: In member function `bool Game::playerSayCommand(Player*, SpeakClasses, const std::string&)':
../game.cpp:3058: error: invalid initialization of reference of type 'std::string&' from expression of type 'const std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
../tools.h:52: error: in passing argument 1 of `void toLowerCaseString(std::string&)'
 
Last edited:
Back
Top