-- This adds the GM command .monstersay -- Only works on NPC's function opcode(LuaAI,player,args,type) if (player:GetSecurity() > 0) then LuaAI:player:getSelectedCreature():HandleEmoteCommand(args, 0); end return true end register_lua_script_command(".opcode","opcode")