Speeddymon
03-03-2007, 10:24 PM
I am a complete noob as far as LUA programming, although I have some C++ experience (very little but enough to be able to figure out how something works). I am trying to fix TitanStanceSets 2.0.3-compatible version so that I can use poisons from my bag on equipped items again. I managed to narrow it down to these lines of code:
local StanceSets_Save_PickupContainerItem = PickupContainerItem;
PickupContainerItem = function (bag,slot)
StanceSets_PickedupItem = { };
StanceSets_PickedupItem.bag = bag;
StanceSets_PickedupItem.slot = slot;
return StanceSets_Save_PickupContainerItem(bag,slot);
end
and when I comment those out I can cast my poisons, but then I lose the ability to place items that are equipped into the StanceSets window for swapping, and instead have to unequip my weapons and place them in the bag, and then drag them to the StanceSets window, and then equip them again.
What I would like to know is how I can rewrite the above lines to securely call PickupContainerItem (or how to hook the above lines so that they get called with PickupContainerItem so that StanceSets will detect that I am dropping the item in the StanceSets window), in order to prevent the action blocked message. I honestly have no idea where to begin to look for information on this so I hope I'm not gonna get told to go to hell or something lol.
Thanks
local StanceSets_Save_PickupContainerItem = PickupContainerItem;
PickupContainerItem = function (bag,slot)
StanceSets_PickedupItem = { };
StanceSets_PickedupItem.bag = bag;
StanceSets_PickedupItem.slot = slot;
return StanceSets_Save_PickupContainerItem(bag,slot);
end
and when I comment those out I can cast my poisons, but then I lose the ability to place items that are equipped into the StanceSets window for swapping, and instead have to unequip my weapons and place them in the bag, and then drag them to the StanceSets window, and then equip them again.
What I would like to know is how I can rewrite the above lines to securely call PickupContainerItem (or how to hook the above lines so that they get called with PickupContainerItem so that StanceSets will detect that I am dropping the item in the StanceSets window), in order to prevent the action blocked message. I honestly have no idea where to begin to look for information on this so I hope I'm not gonna get told to go to hell or something lol.
Thanks