Quantcast
Download
(3 Kb)
Download
Updated: 02/22/21 03:46 PM
Pictures
File Info
Compatibility:
Markarth (6.2.5)
Updated:02/22/21 03:46 PM
Created:01/14/21 06:07 AM
Monthly downloads:386
Total downloads:649
Favorites:2
MD5:
6.2.5
Caro's Loot List  Updated this week!
Version: 1.3
by: Irniben [More]
Automatically post the items from your inventory that aren't bound but already collected to group chat.
You can either define key binds in the controls or use the following slash commands:

/caroloot - posts all items from group content, that aren't yet bound to your account and which you already have collected into groupchat (press enter till everything is posted)

/carolootall - posts all items from your inventory that are already collected but not bound (including overland etc.) into groupchat (press enter till everything is posted)

/carolootw - like carolootall, but doesn't switch to group chat - you have to already be in whisper mode for this function to work

/caroloot batman - are you the selfless knight that we need but don't deserve? Post every unbound set item you got, even if you haven't collected it yet.

/caroloot wife - you are playing eso with your better half? whisper her/him everything you got, we both know, you will give it away anyway...

NEW:
/caroloot bank - will post all items from your inventory and your bank to the group chat, if they are already collected
- v. 1.3:
-- added one new mode
- v. 1.2:
--- added two new modes
- v. 1.1:
--- added key binds
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Uploader
Date
1.2
2kB
Irniben
01/17/21 03:54 PM
1.1
2kB
Irniben
01/14/21 02:03 PM
1.0
1kB
01/14/21 06:07 AM


Post A Reply Comment Options
Unread 01/18/21, 10:31 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3339
File comments: 4066
Uploads: 65
Originally Posted by Irniben
Originally Posted by Baertram
If '@AccountNameToWhisperTo' is left nil it will use the last whisper receiver.
I just tried that ingame via /script - it didn't work for me there. I got into whisper mode but without a recipient. But I think it should be an option to say "/carolootw @..." and just tell the addon who to whisper to. Will try that later this evening.
Hm, maybe it was working for me as I also had the pChat addon activated. Forgot to turn it off.
Will try again, but normally it should re-use the last used whisper recipient. There also is the "Reply to whisper" keybinding which does the same, just uses the function ChatReplyToLastWhisper().

https://github.com/esoui/esoui/blob/...stem.lua#L2379
You could use this instead then, if no @accountName or charName was given as parameter after /carolootw <@accountOrCharName>

Here is a function to get the options of the arguments you enter after a /slashCommand <args> into a table "options".
Lua Code:
  1. --Args: the arguments String which was typed behind the /slashCommand <argumenst String>
  2. --Will be split at space into the options table.
  3. --slashCommand is the /slashCommand used
  4. local function parseSlashCommandArguments(args, slashCommand)
  5.     --Parse the arguments string
  6.     local options = {}
  7.     --local searchResult = {} --old: searchResult = { string.match(args, "^(%S*)%s*(.-)$") }
  8.     for param in string.gmatch(args, "([^%s]+)%s*") do
  9.         if (param ~= nil and param ~= "") then
  10.             options[#options+1] = string.lower(param)
  11.         end
  12.     end
  13.     --Should a dice be thrown= Chekc for the 2nd argument ONLY and validate as number
  14.     if slashCommand == "/mySlashCommand" then
  15.         if options[1] ~= nil then
  16.             local intVal = tonumber(options[1])
  17.             if type(intVal) == "number" then
  18.                 return intVal
  19.             end
  20.         else
  21.             --Default integer value
  22.             return 10
  23.         end
  24.  
  25.     elseif slashCommand == "/guildname" then
  26.         --guildId
  27.         local guildIndex
  28.         guildIndex = options[1]
  29.         if guildIndex ~= nil then
  30.             local intVal = tonumber(guildIndex)
  31.             if type(intVal) == "number" then
  32.                 guildIndex = intVal
  33.                 if not guildIndex or guildIndex <= 0 or guildIndex > MAX_GUILDS then
  34.                     guildIndex = nil
  35.                 else
  36.                     return ZO_CachedStrFormat(SI_UNIT_NAME, GetGuildName(GetGuildId(guildIndex)))
  37.                 end
  38.             else
  39.                 guildIndex = nil
  40.             end
  41.         end
  42.         return nil
  43.     end
  44. end
Last edited by Baertram : 01/18/21 at 10:34 AM.
Report comment to moderator  
Reply With Quote
Unread 01/18/21, 07:37 AM  
Irniben
 
Irniben's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 14
Uploads: 2
Originally Posted by Baertram
If '@AccountNameToWhisperTo' is left nil it will use the last whisper receiver.
I just tried that ingame via /script - it didn't work for me there. I got into whisper mode but without a recipient. But I think it should be an option to say "/carolootw @..." and just tell the addon who to whisper to. Will try that later this evening.
Report comment to moderator  
Reply With Quote
Unread 01/17/21, 04:52 PM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3339
File comments: 4066
Uploads: 65
Thanks for the addon!

A hint about the "You already have to be in whisper mode" restrictions:
I think you are able to circumvent this by using the chat channel parameter of the function "StartChatInput"

Lua Code:
  1. StartChatInput("Hello world", CHAT_CHANNEL_WHISPER, '@AccountNameToWhisperTo')
If '@AccountNameToWhisperTo' is left nil it will use the last whisper receiver.

This should also be used to output the message to the CHAT_CHANNEL_PARTY


P.S.
Code:
Nananananananana...
Last edited by Baertram : 01/17/21 at 04:54 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: