Quote:
Originally Posted by Diavolakos
Paraly, the tea of repose "buff" has an id of 51005, I tried in the past to make a script that checks the buff and take the tea of needed, but it didn't work. Apparently it is not really a buff type this is why it didn't work.
|
This should do it
Code:
start_GetRepose;
_MemReadVar=%AddrFreeMem0,BYTE[4],TempCache;
MemWrite=%AddrFreeMem0,%AddrFlightCooldown,DWORD;
_MemReadVar=%AddrFreeMem0,DWORD,AddrTemp;
MemWrite=%AddrFreeMem0,%Var[TempCache],BYTE[4];
_Calc[AddrReposeCurrent]=%Var[AddrTemp]-232;
_Calc[AddrReposeMax]=%Var[AddrTemp]-224;
_MemReadVar=%Var[AddrReposeCurrent],DWORD,ReposeCurrentValue;
_MemReadVar=%Var[AddrReposeMax],DWORD,ReposeMaxValue;
_Calc[ReposePercent]=%Var[ReposeCurrentValue]/%Var[ReposeMaxValue];
_Calc[ReposePercent]=%Var[ReposePercent]*100;
WaitForResponse=Percentage: %Var[ReposePercent]/nRepose EXP left: %Var[ReposeCurrentValue]/nRepose EXP maximum: %Var[ReposeMaxValue];
end_GetRepose;