-
Member
[Request] addon for advertising
Hello,
Anyone here have addon for advertising via spaming whispers ingame?
-
Contributor
Here's a script.
for i=1, GetNumWhoResults() do
local player = GetWhoInfo(i)
SendChatMessage("Hello, " .. player .. " how are you today?","WHISPER", nil, player)
end
https://i.imgur.com/ho7LU4R.png
-
Post Thanks / Like - 1 Thanks
TheLeviathan (1 members gave Thanks to ChrisIsMe for this useful post)
-
Contributor
It might work in /run in chat actually..
/run for i=1, GetNumWhoResults() do SendChatMessage("Hello, " .. GetWhoInfo(i) .. " how are you today?","WHISPER", nil, GetWhoInfo(i)) end
That's as short as I can make it afaik
-
Member
That's not really an smart method, because after a few whispers you will get marked as spammer but in same time the "FOR" loop is working. In another words you will lose some players.
Also in this method there is a chance for giving one player many whispers which is not good because goal is to detect all players from /who list and give each player a whisper.
-
Contributor
Originally Posted by
TheLeviathan
That's not really an smart method, because after a few whispers you will get marked as spammer but in same time the "FOR" loop is working. In another words you will lose some players.
Also in this method there is a chance for giving one player many whispers which is not good because goal is to detect all players from /who list and give each player a whisper.
What?
Running the script ONE time will only send EVERYONE IN /WHO a whisper ONE time.
You don't sit there and put it in an infinite loop or a ticker. I used the method and tested it and did not get marked as a spammer, and since it's not a script that needs a lua unlocker (AFAIK) it will not likely lead to any really bad issues like a ban, maybe a silence at the most and those are not permanent. He asked for a script to message everyone in /who and that's what this is.