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

[REQUEST] Script.

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I wanted a script that when one speaks
"Hi"
Some talk like the script NPC Bug use "hello"
 
talkactions\scripts\filter.lua
LUA:
function onSay(cid, words, param)    
 if getPlayerGroupId(cid) < 3 then    
    local text = {'hello'}
 doCreatureSay(cid, text, 1)
else
return TRUE
end
end

Just make a file with words you want filtered now zZzZzZzZZzz
 
Code:
function onSay (cid, words, param, channel)
  if words == 'hi' or words == 'Hi' or words == 'hI' or words == 'HI' then
    doCreatureSay (cid, "hello")
  end
  return true
end

talkaction.xml

Code:
	<talkaction words="hi;Hi;hI;HI" event="script" value="script.lua"/>
 
Last edited:
Error:
imagemveo.png
 
Back
Top