Im looking for any experienced lua developers to help me in sorting out a loop i'm trying to create for my rogue. What i'm doing is calling this function after doing Pick Pocket and before my opening attack.
The reason for this is because if i were to do PickPocket then Ambush straight after it will not fully pick pocket a mob before the Ambush, while afew do manage to work more times than not it'll only take the 1st item on the loot list.
Anyway here's what i've come up with for now;
Code:
function fRPickPocket()
local LootCount=GetNumLootItems();
if LootCount > 0 or LootCount ~= nil then
local x=1
while (x < LootCount + 1) do
LootSlot(x)
ConfirmLootSlot(x)
x=x+1
end
end
return
end
Any help is appreciated.