Official ScriptUO EasyUO Scripts > Script Snippets

Event Sleep Command

(1/2) > >>

manwinc:
I think Event Sleep is probably one of the Most Underused Commands available to us.

Event Sleep will reduce the CPU usage of your Client to 0%. Anyone who has ran multiple scripts and had them lose connection knows just how much CPU this game can eat up when its left at a con loss screen or at the Login Screen. I personally Now use this Command after Con Loss to Prevent my computer from overheating. Here is the Sub I use For Instigating Sleep

 


--- Code: ---Sub MWinc_Sleep
; Gosub Mwinc_Sleep (Minutes)
Namespace Push
Namespace Local I_love_Da_Boobies
set !Minutes %1
set !Sleep_Timer 60000 * !Minutes
set !Wait_Timer ( ( !Minutes * 60 * 20 ) + 40 )
Event Sleep !Sleep_Timer
Wait !Wait_Timer
Namespace Pop
Return
--- End code ---

Endless Night:
nice .. very nice...

manwinc:
Si, On a second note its also very important to stagger all logging in/ logging out..... If you don't and attempt to logout/in multiple clients simultaneously..... uhhh..... Yeah, bad idea.

NObama:
Well hot damn.  This is awesome.  Thanks, and +rep!

manwinc:
Whatever You do, Do not Run a Client Swapping Saluter While you attempt to sleep a client. If you Perform an In game macro on a client that's sleeping, it will actually crash.

Navigation

[0] Message Index

[#] Next page

Go to full version