ScriptUO

Official ScriptUO EasyUO Scripts => Script Snippets => Topic started by: Cerveza on January 26, 2009, 07:36:41 AM

Title: Cerv's Scrypt Status
Post by: Cerveza on January 26, 2009, 07:36:41 AM
Run this in a separate tab and it'll keep an eye on system variables for you. It will stop when your char gets logged out for any reason and can help you in troubleshooting your script by showing the time and system status when the char was logged.

Lemme know if there are any issues.

Code: [Select]
gosub showEUOMenu1
repeat
menu set t1 #time
menu set c1 X = #charposx Y = #charposy Z = #charposz
menu set r1 #result
menu set c2 #contname - #contsize - #contid - #contkind - #conttype
menu set l1 #lobjectid - #lobjecttype - #ltargetid
menu set f1 #findid - #findtype - #findkind - #findstack
menu set s1 #sysmsg
menu set p1 #property
until clilogged = 0
halt

;--------- EasyUO Menu Designer Code Begin ---------
sub showEUOMenu1
menu Clear
menu Window Title Cervs' Scrypt Status
menu Window Color Lime
menu Window Size 387 337
menu Font Transparent #true
menu Font Align Right
menu Font Name Comic Sans MS
menu Font Size 12
menu Font Style
menu Font Color WindowText
menu Font Transparent #false
menu Font Align Left
menu Font BGColor Lime
menu Text EUOLabel1 40 5 Time
menu Text EUOLabel2 135 5 CharPosX, Y, Z
menu Text EUOLabel3 10 60 ContName, ContSize, ContID, ContKind, ContType
menu Text EUOLabel4 55 115 LObjectID, LObjectType, LTargetID
menu Text EUOLabel5 50 170 FindID, FindType, FindKind, FindStack
menu Text EUOLabel6 305 5 Result
menu Text EUOLabel7 165 225 SysMsg
menu Text EUOLabel8 160 280 Property
menu Font Name MS Sans Serif
menu Font Size 8
menu Font BGColor Window
menu Edit t1 7 30 101 Time
menu Edit c1 117 30 146 Position
menu Edit c2 8 85 371 Container
menu Edit l1 8 140 371 Last
menu Edit f1 8 195 371 Find
menu Edit r1 278 30 101 Result
menu Edit s1 8 250 371 System , #spc , Message
menu Edit p1 8 305 371 Property
menu Show 421 270
return
;--------- EasyUO Menu Designer Code End ---------
Title: Re: Cerv's Scrypt Status
Post by: Khameleon on January 26, 2009, 02:05:14 PM
dude this is sweet!
Title: Re: Cerv's Scrypt Status
Post by: Cerveza on January 26, 2009, 05:35:48 PM
It's handy for tracking down stuff in scripts. Lemme know if there's anything that needs to be added.

You *could* set up a namespace in your scripts, then use a namespace copy and actually watch your variables from the other script.
Title: Re: Cerv's Scrypt Status
Post by: Khameleon on January 26, 2009, 06:04:02 PM
ya I was gonna say, a nice feature would be a Custom button to watch a specific user variable.
Title: Re: Cerv's Scrypt Status
Post by: Cerveza on January 26, 2009, 06:12:48 PM
I might include something, but I think it would be easier for the user to do.

You need to setup your own namespace, then use namespace copy to get the information over to this script. Then it would be easy enough to get it displayed.
Title: Re: Cerv's Scrypt Status
Post by: Khameleon on January 26, 2009, 10:26:43 PM
I thought maybe add an Edit Field for the name of the name space, then after the edit field would be the value.
if the edit field was blank, then ignore that entry. sorta hard coded into your script yet, still editable?
Title: Re: Cerv's Scrypt Status
Post by: Cerveza on January 27, 2009, 02:24:16 AM
Thats entirely possible  ;)