I searched and found some old threads about this, here, here and one that's a little bit off but still in the same discussion here.
I did not feel like these people expressed what they wanted to do with it
clear enough so here goes my try to convince you that my suggestion is awesome.
So we all know this lovely function ingame (CTRL+O) located in the bottom right corner that looks like a folder,
it opens a little window with all the different channels inside aswell as writeable box that opens a Private Message Channel with the named person.
New Functions:
- pmsay(string name, string message, optional boolean openwindow, optional boolean ctrl)
- openchannel(string channelname, optional boolean ctrl)
- openpmchannel(string name, optional boolean ctrl)
Further Explanation:
- pmsay()
Will switch focus to the channel name and message an optional message to that channel, optional boolean to open the channel window if one is not already opened (will use *name*[message] otherwise),
optional boolean to open via CTRL+O or clicking the Folder icon in the bottom right with a mouse click.- openchannel()
Will open a channel (World Chat, English Chat, Advertising, Help, Private Chat Channels, NPCs), optional boolean to open via CTRL+O or clicking the Folder icon in the bottom right with a mouse click.- openpmchannel()
Will open a private message channel with given name, optional boolean to open via CTRL+O or clicking the Folder icon in the bottom right with a mouse click.
--> Do not edit anything below!
-- // Riku Scripts >>>>
init start
local sendToPlayer = "Lucas Terra"
local seenNames = {$name}
init end
auto(1000)
foreach creature m 'ps' do
if (not table.find(seenNames, m.name)) then
if ischannel(sendToPlayer) then
pmsay(sendToPlayer, "New Player in my screen.", true, true)
wait(3000, 5000)
table.insert(seenNames, m.name)
else
pmsay(sendToPlayer, "New Player in my screen.", false, true)
wait(3000, 5000)
table.insert(seenNames, m.name)
end
end
end
What is there not to love? If you need further explanations or ideas then tell me. It could be used for countless ideas.