freezeyp
2012-10-12 23:36:09
Recently I start to make a super heating script and counter this problem, and finding that when i try to cast spell, findnormalrandom() will change gametab to inventory and screw up my process.
2012-10-12 23:36:09
2012-10-12 23:37:52
2012-10-12 23:46:03
2012-10-12 23:50:46
_FindAllrandoms(false);
or
FindNonInventoryRandoms;
2012-10-12 23:52:00
function PRandoms: Boolean;
begin
if GetCurrentTab = Tab_Inv then
Result := FindNormalRandoms else
Result := FindNonInventoryRandoms;
end;
2012-10-13 03:36:35
From: P1ng
What riwu said above is true, I created this function for me to use instead, basically just checks if you are already in the inventory it does FindNormalRandoms if you aren't then it just checks for non-inventory randoms.. Feel free to use it if you like, it doesn't make life that much easier, I just cbf'ed to write two different randoms searches.function PRandoms: Boolean;
begin
if GetCurrentTab = Tab_Inv then
Result := FindNormalRandoms else
Result := FindNonInventoryRandoms;
end;