16
Stealth archive / Re: Stealth 6.1.5
« on: December 15, 2013, 12:15:31 AM »
FYI, this probably won't be done for another week
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Will test it once iam home. This will be in about ~ 3 hours
m...the main purpose of my function is used to find all creature in certain range.
in my openeuo script, i use it for auto attack all finditem with findrep 1,2,7..
Also, i found that if i use any Stealth.Script_GetXXXX [e.g. Stealth.Script_GetX(_id) ] in the loop..it consumes lots of time...It will not happen when I use Pascal script...
So..Is it bug on ScriptDotNet or something wrong on the script?Well you are right .. I remembered this from delphi.. Iam sorry..Do you use any Waits in your script? Because most events are only checked, when the script thread in stealth sleeps..
What? This isn't true at all for C#.
This is only true for Delphi.
Timer timer = new Timer();
timer.Enabled = true;
timer.Tick += new EventHandler(timer_Function);
timer.Interval = 1000; // each timer "tick" = 1000ms = 1 second
timer.Start();
...
void timer_Function(object s, EventArgs e)
{
... do something
}
Do you use any Waits in your script? Because most events are only checked, when the script thread in stealth sleeps..