09-17-2021, 04:27 PM
Auto PM when player on screen
This is a bit different, because send a private message with the player name that show up.
keywords: pm when player, pm danger, pm alert, private message
local PLAYER = 'main character'
local MSG = 'player on screen'
if paround() > 0 then
say('*' .. PLAYER .. '* ' .. MSG, 'Default')
wait(5000)
end
This is a bit different, because send a private message with the player name that show up.
local PLAYER = 'main character'
local creatures = getcreatures('pfs')
for _, creature in ipairs(creatures) do
say('*' .. PLAYER .. '* ' .. creature.name, 'Default')
wait(3000)
break
end
keywords: pm when player, pm danger, pm alert, private message