Sanctuary Watcher .NET

Scripts for wintin.

Sanctuary Watcher .NET

Postby jezer » Wed Dec 07, 2005 7:56 am

Ok, after gripping a tough mob only to have my sanctuary fall the very next millisecond... and then dying... I decided it was time to write a sanctuary script for wintin.net. I have seen avatars with them before but the script is not posted anywhere I have found. So if you have a better script by all means post it!!!

#defgroup {Sanctuary}
#action {The 'sanctuary' spell on you is about to wear off.} {$output 60 SECS ON SANCT!} {G|Sanctuary}
#action {The white aura around your body fades.} {#var sanct 0;$output SANCT DOWN!} {G|Sanctuary}
#action {You start glowing.} {#timer Sanct +$time {$output SANCT WARNING!};$output SANCT UP!;#var sanct 1} {G|Sanctuary}
#alias {sanct} {#if {$sanct = 0} {cast 'sanctuary' $me}} {G|Sanctuary}
#highlight {b red} {60 SECS ON SANCT!} {G|Sanctuary}
#highlight {b red} {SANCT DOWN!} {G|Sanctuary}
#highlight {b red} {SANCT UP!} {G|Sanctuary}
#highlight {b red} {SANCT WARNING!} {G|Sanctuary}
#variable {output} {grouptell} {G|Sanctuary}
#variable {sanct} {0} {G|Sanctuary}
#variable {time} {3:30} {G|Sanctuary}
#variable {me} {jezer} {G|Sanctuary}
#defgroup {}

Set the variable me to your player name.

By default the reports are outted to "grouptell". So group urself even if you are solo OR change the output variabe to say or what ever else, otherwise you might not see the warnings!

Using this script will return a sanctuary warning 3 mins and 30 secs into your sanctuary spell.

If your spellcraft just happens to kick in properly - which you can't count on, it will warn you when you have 60 secs left.

Using the command "sanct" to sanct yourself will also set a variable stopping you from re-casting it on urself before it drops.

Enjoy,
Jezer
User avatar
jezer
Hall of Fame Avatar Poster
 
Posts: 1433
Joined: Mon Oct 17, 2005 4:08 am
Status: Offline

Postby jezer » Wed Dec 07, 2005 10:35 am

Small update, bigger eye-catching descriptions and some gags so you don't get double reports.

#defgroup {Sanctuary}
#action {The 'sanctuary' spell on you is about to wear off.} {$output 60 SECS ON SANCTUARY!} {G|Sanctuary}
#action {The white aura around your body fades.} {#var sanct 0;$output SANCTUARY DOWN!} {G|Sanctuary}
#action {You start glowing.} {#timer Sanct +$satime {$output SANCTUARY WARNING!};$output SANCTUARY UP!;#var sanct 1} {G|Sanctuary}
#alias {sanct} {#if {$sanct = 0} {cast 'sanctuary' $me}} {G|Sanctuary}
#gag {The 'sanctuary' spell on you is about to wear off.} {G|Sanctuary}
#gag {The white aura around your body fades.} {G|Sanctuary}
#gag {You start glowing.} {G|Sanctuary}
#highlight {b red} {60 SECS ON SANCTUARY!} {G|Sanctuary}
#highlight {b red} {SANCTUARY DOWN!} {G|Sanctuary}
#highlight {b red} {SANCTUARY UP!} {G|Sanctuary}
#highlight {b red} {SANCTUARY WARNING!} {G|Sanctuary}
#variable {sanct} {1} {G|Sanctuary}
#variable {satime} {3:30} {G|Sanctuary}
#variable {me} {jezer} {G|Shortcuts}
#variable {output} {grouptell} {G|Shortcuts}
#defgroup {}
User avatar
jezer
Hall of Fame Avatar Poster
 
Posts: 1433
Joined: Mon Oct 17, 2005 4:08 am
Status: Offline

Ticking Sanc Counter?

Postby *juggleblood* » Wed Feb 22, 2006 8:16 am

Isn't there a way to make a countdown timer in Wintin that displays in a separate panel and actually counts down the seconds like a clock?
Talk to the clown.
User avatar
*juggleblood*
Hall of Fame Avatar Poster
 
Posts: 1304
Joined: Sun Jan 22, 2006 6:36 am
Location: Beyond Yonder
Status: Offline

Postby Rynquald » Wed Feb 22, 2006 8:47 am

This would require some tweaking to work with Jezer's script, but here's a quick and dirty visual timer for the last 60 seconds of sanc, you could alter it to countdown from the start of sanc of course, but that would assume sanc wasn't affected by masterfulls. Of course doing that would only necessitate the alteration of the 'sanctick' timer to 3 ticks or whatever, and the 'sanctime' variable to 180.

[code:2x47kynz]#action {The 'sanctuary' spell on you is about to wear off.} {#var {sanctime} {60};#timer {sanctick} {+0:1:0} {#untimer {sanctime};grouptell SANCTUARY DOWN!};#timer {sanctime} {*1} {#math {sanctime} {$sanctime-1}}}
#pvar {1} {sanctime}[/code:2x47kynz]


That displays in pvar 1 just as an example (plus as I write this it's the middle of the night and I'm not ingame to test, so it's not polished in any way shape or form) :)
User avatar
Rynquald
Triple 40 Poster
 
Posts: 390
Joined: Mon Apr 11, 2005 8:21 pm
Status: Offline

Postby *juggleblood* » Thu Mar 09, 2006 5:01 pm

Here is a complete script for ne1 who wants it.

It starts counting down based on a duration of 280 seconds which is the average sanc duration. Then it switches to 60 when it gets the warning.

The command sanctell sets the output to grouptell, say, #showme, whatever.

#defgroup sanctuary

#action {The 'sanctuary' spell on you is about to wear off.} {#var sancstart $time;#var sancduration {60}} {G|sanctuary}
#action {The white aura around your body fades.} {$sancoutput SANCTUARY DOWN!;#panel 3 unlit;#untimer sanctime;#unpvar 4} {G|sanctuary}
#action {You start glowing.} {#var sancstart $time;#var sancduration {280};#timer sanctime {*:*:*2} {checksanc};#panel 3 {Sanc Up};#pvar 4 sancremain} {G|sanctuary}
#alias {checksanc} {#math sanctime {$time-$sancstart};#math sancremain {$sancduration-$sanctime}} {G|sanctuary}
#alias {sanctell} {#var {sancoutput} {%0}}
Talk to the clown.
User avatar
*juggleblood*
Hall of Fame Avatar Poster
 
Posts: 1304
Joined: Sun Jan 22, 2006 6:36 am
Location: Beyond Yonder
Status: Offline

Sanc timer

Postby Avatar » Fri Mar 10, 2006 2:20 pm

That's a nice solution Juggleblood. Good job!

Regards,
Charles
User avatar
Avatar
Triple 40 Poster
 
Posts: 487
Joined: Sat Feb 21, 2004 1:09 am
Status: Offline


Return to WinTin Scripts

Who is online

Users browsing this forum: No registered users and 4 guests

cron