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

Lua Is this possible?

owned

Excellent OT User
Joined
Nov 9, 2008
Messages
2,001
Solutions
3
Reaction score
563
Location
New York
Alright i was wondering if there's some kinda function that if you type something into the document, and then hit ok if it is a certain keyword or something then a certain action will result from it.
 
LUA:
function onTextEdit(cid, item, newText)
	if newText:lower() == 'pandas are awesome' then
		doPlayerSendTextMessage(cid, 21, 'Yes, they are indeed awesome and cute')
	else
		doPlayerSendTextMessage(cid, 21, 'Sorry, I dont like you')
	end
return TRUE
end
 
Last edited:
Back
Top