@Maelstrom
Thank you for the suggestion!
We can't add shortcuts programatically but I can leave an empty quickslot as you suggested, but I hope that in the next iteration of the API commands like /pet could be used.
@Thayilis
Well it could be "easy" for someone that know at least something about programing, hahaha
I will be updating the plugin to support the mentioned features, but meanwhile anyone can edit this plugin in the next way:
Code:
petdata = { };
petdata[0] = "0x70003EB5"; -- Raven
petdata[1] = "0x70003EB8"; -- Bear
petdata[2] = "0x7000B8D3"; -- Lynx
petdata[3] = "0x70000FB2"; -- Eagle
petdata[4] = "0x7000F530"; -- Saber Tooth
petdata[5] = "0x7000F54D"; -- Bog Guardian
Here are stored the HEX values of the shortcuts of the first carousel, you have to change them and also add new ones, eg.: petdata[6] = "HEX";
In the same way the cosmetics pets, second carousel, are stored in cosmeticpetdata.
Code:
cosmeticpetdata = { };
cosmeticpetdata[0] = "0x7000BF8E"; -- Turtle
cosmeticpetdata[1] = "0x7000BF72"; -- Bird
cosmeticpetdata[2] = "0x7000BF73"; -- Cat
cosmeticpetdata[3] = "0x7000BF74"; -- Dog
cosmeticpetdata[4] = "0x7000BF75"; -- Fox
cosmeticpetdata[5] = "0x7000BF76"; -- Frog
cosmeticpetdata[6] = "0x7000BF77"; -- Rabbit
cosmeticpetdata[7] = "0x7000BF78"; -- Snake
cosmeticpetdata[8] = "0x7000BF79"; -- Squirrel
The other part of the code that you have to change is:
Code:
if (cosmeticpet == false) then
qs1 = qs1 + 1;
qs2 = qs2 + 1;
qs3 = qs3 + 1;
if (qs1 == 6) then
qs1 = 0;
elseif (qs2 == 6) then
qs2 = 0;
elseif (qs3 == 6) then
qs3 = 0;
end
In this case 6 is the number of pets in the first carousel, if your first carousel has 8 elements you have to change the 6 for 8.
This is the same but for the second carousel.
Code:
cqs1 = cqs1 +1;
cqs2 = cqs2 +1;
cqs3 = cqs3 +1;
if (cqs1 == 9) then
cqs1 = 0;
elseif (cqs2 == 9) then
cqs2 = 0;
elseif (cqs3 == 9) then
cqs3 = 0;
end
In the next version these 2 last steps will not be required
I hope it can help!