How can I do some antiban work while I'm waiting for a function to return. Specifically, I'm trying to find a generic way to locate my player anywhere on the runescape surface using SPS. In other words, at the time the script starts, I won't know where the player is.
This is how I'm setting up SPS:
This takes some time and I'd like to do an anti-ban here.Simba Code:if not SPS_Setup(RUNESCAPE_SURFACE,['runescape_surface']) then WriteLn('Failed to setup SPS');
Then, to locate my runescape surface coordinate (TPoint), I'm doing this:
Simba Code:PlayerPos := SPS_GetMyPos;
Both of these function calls take time, so I'm wondering how I can do antiban while waiting for a return. Kind of an asynchronous methodology.


Reply With Quote