Has anyone found the collectibleId's for companions
I want to make a slash command to toggel my companions. The following was mostly a guess on my part.
I found: COLLECTIBLE_CATEGORY_TYPE_ASSISTANT = 8 COLLECTIBLE_CATEGORY_TYPE_COMPANION = 27 from https://esoapi.uesp.net/100035/globals.txt (2021-06-02 15:04:20). Line 83625. Then I used GetCollectibleCategoryType(n) with n from 1 to 6000 and displayed in chat any n value with a return of 8 OR 27. All 5 of the type 8 (assistants) were returned but no type 27's were found. The assistant value was just a check to be sure it was working. Has anyone found the correct Id or know what I might try to find the code? Happy Trails FYI my code: for n = 1,6000,1 do rdN = GetCollectibleCategoryType(n) if rdN == (8 or 27) then df("|c008FCCn= %d N= %d", n, rdN) end end |
The number 6,000 is too small, so if you set it to 30,000, you will probably find it. :p
|
Dunno anymore how I found them but it was somehow via merTorchbug ingame I guess and using the API given for the companion collectibles.
Code:
local companionInfo = { |
"Mirri Elandis" id = 9353
"Bastian Hallix" id = 9245 I use those ID's in combination with the function "UseCollectible( *id* ) to summon and unsommon the companions. for future references: this is the function I wrote to find collectible Ids: Lua Code:
|
I will share with you the special code I use in Calamath's Shortcut Pie Menu add-on.
Lua Code:
good luck. - Calamath |
Thanks all, very much appreciated
|
All times are GMT -6. The time now is 06:56 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI