Item Quickslot from Inventory
Could anyone explain to me setting a shortcut for an item in your inventory please? I'm finding it increasingly frustrating. Basically I want to check if an item exists in the players backpack by looping through the players inventory, then if the item is found assign it to a quickslot. The code I'm using is below:
However I keep getting the following message:
... Rings Online\Plugins\Turbine\UI\Lotr o\Quickslot.lua:11: Invalid shortcut for quickslot specified.
I have no idea what I'm doing wrong. I can assign a quickslot if I know the items hex ID.. though to my knowledge there is no easy way of getting this without dragging an item to a quickslot and calling GetData(). It doesn't make sense that I for some reason can't pass an Item when the shortcuts type is in fact Item.
Any ideas anyone please?
Edit: The SetShortcut is protected by an If..then clause which does a nil check on MYBACKPACK:GetItem() to prevent errors caused by empty inventory positions.
Last edited by Galuhad; Sep 30 2012 at 08:51 PM.
[CENTER][SIZE=3][B]Galuhad | Narvelan[/B]
Lore Breakers of Eldar[/SIZE]
[URL="http://www.lotrointerface.com/list.php?skinnerid=3762"]Plugins[/URL] | [URL="https://www.lotro.com/forums/showthread.php?538975-Accounts-for-New-Players"]New Player Guide[/URL] | [URL="http://www.twitch.tv/galuhad"]Twitch[/URL]