ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Insideout on January 13, 2025, 12:18:32 AM

Title: How to speed up my script?
Post by: Insideout on January 13, 2025, 12:18:32 AM
Okay script works as it should but. Its a bit slow. How can I improve speed?

https://www.scriptuo.com/index.php?topic=11710.0
Title: Re: How to speed up my script?
Post by: TrailMyx on January 13, 2025, 07:10:40 PM
Looks like it can benefit by setting the #LPC up a bit.  If you don't set it to anything, it's set to 20.  Try bumping it up to 100.  Set this:

Code: easyuo
  1.   set #LPC 100
  2.  

right before the repeat at line 55.

Also the "wait 2s" after your exevent dropc are probably a bit too long.  You can probably drop this to "wait 20" which is 1 second.