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

/me - famous emote command!

Status
Not open for further replies.
Code:
<talkaction words="/me"  separator=" " script="emote.lua"/>
LUA:
function onSay(player, words, param)
    if(param == "" or param == nil) then
        return false
    end

    doCreatureSay(player,player:getName() .. ' ' .. param, TALKTYPE_MONSTER_YELL)

    return false
end
 
LUA:
function onSay(player, words, param)
    if(param == "" or param == nil) then
        return false
    end

    player:say(player:getName() .. ' ' .. param, TALKTYPE_MONSTER_YELL)
    return false
end

You dont need to use compact functions
 
Status
Not open for further replies.
Back
Top