Loading...
  OR  Zero-K Name:    Password:   

Post edit history

In-game Ignore

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
8/26/2016 7:44:06 PMUSrankShaman before revert after revert
Before After
1 [quote]Was not thinking to tell the ignored people they are ignored. Was thinking to tell everybody else that you are ignoring them! Like send a private message to the other people "Shaman is ignoring X". There are some very rude people around but I have also seen them having a point and not replying anything also seems rude for me (if I do not know they are "ignored"). 1 [quote]Was not thinking to tell the ignored people they are ignored. Was thinking to tell everybody else that you are ignoring them! Like send a private message to the other people "Shaman is ignoring X". There are some very rude people around but I have also seen them having a point and not replying anything also seems rude for me (if I do not know they are "ignored").
2 \n 2 \n
3 Of course this is not "scalable" (like if there are many users ignoring each other you will get a lot of messages), but probably you could adapt the widget (if installed) to print a nice print like "user x is ignored by a, b, c," "user a is ignored by d,e".[/quote] 3 Of course this is not "scalable" (like if there are many users ignoring each other you will get a lot of messages), but probably you could adapt the widget (if installed) to print a nice print like "user x is ignored by a, b, c," "user a is ignored by d,e".[/quote]
4 \n 4 \n
5 You can do this once you acquire the cawidgets.lua file I use and with some sendluauimsg magic. Use widgetHandler:GetIgnoreList() then send it like: 5 You can do this once you acquire the cawidgets.lua file I use and with some sendluauimsg magic. Use widgetHandler:GetIgnoreList() then send it like:
6 \n 6 \n
7 [quote] 7 [quote]
8 function SendMyIgnoreList() 8 function SendMyIgnoreList()
9 local myignorelist = widgetHandler:GetIgnoreList() 9 local myignorelist = widgetHandler:GetIgnoreList()
10 local sendthis = "" 10 local sendthis = ""
11 for ignoree, _ in pairs( myignorelist) do 11 for i=1, #myignorelist do
12 sendthis = sendthis .. ignoree 12 sendthis = sendthis .. ignoree
13 end 13 end
14 Spring.SendLuaUIMsg("IgnoreList: " .. sendthis,"a") 14 Spring.SendLuaUIMsg("IgnoreList: " .. sendthis,"a")
15 end 15 end
16 [/quote] 16 [/quote]
17 \n 17 \n
18 Parsing this is rather simple. Use the ProcessCommand(str) function provided in ignore.lua. It takes a string and breaks it down based on spaces. Space = new entry. For instance: 18 Parsing this is rather simple. Use the ProcessCommand(str) function provided in ignore.lua. It takes a string and breaks it down based on spaces. Space = new entry. For instance:
19 \n 19 \n
20 [quote]function widget:RecvLuaMsg(msg,id) 20 [quote]function widget:RecvLuaMsg(msg,id)
21 if string.find(string.lower(msg),"ignorelist") then 21 if string.find(string.lower(msg),"ignorelist") then
22 local theirignorelist = ProcessCommand(msg) 22 local theirignorelist = ProcessCommand(msg)
23 local theirname = select(1,Spring.GetPlayerInfo(id)) 23 local theirname = select(1,Spring.GetPlayerInfo(id))
24 for _, name in pairs( theirignorelist) do 24 for i=2, #theirignorelist do
25 allyignorelist[theirname][name] = true 25 allyignorelist[theirname][theirignorelist[i]] = true
26 end 26 end
27 end 27 end
28 end 28 end
29 [/quote] 29 [/quote]