loragnor
2013-06-29 10:25:43
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:
Then, to locate my runescape surface coordinate (TPoint), I'm doing this:
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.
This is how I'm setting up SPS:
if not SPS_Setup(RUNESCAPE_SURFACE,['runescape_surface']) then WriteLn('Failed to setup SPS');This takes some time and I'd like to do an anti-ban here.Then, to locate my runescape surface coordinate (TPoint), I'm doing this:
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.