05-04-2012, 08:48 AM
I made Auto-activation script for Beast SS.
I used 1 function from Sakaszli's Samples and it works good.
I used 1 function from Sakaszli's Samples and it works good.
LUA Programming
function getItemCount(name)
invList = GetInventory();
lol=0;
for item in invList.list do
if (item.displayId == name or item.objectId==name or item.Name==name) then
lol=item.ItemNum
end
end
return lol;
end;
repeat
BeastSSstart = getItemCount(6645)
Sleep(2000)
BeastSSend = getItemCount(6645)
if BeastSSend < BeastSSstart then
--do Nothing
else
ActivateSoulShot(6645, true); -- Beast Soulshot
end
Sleep(5000)
until false