1
Script Debug / Re: Curseweapon script
« on: February 07, 2011, 11:04:31 PM »
okay i got this script working exactly how i want it to run
just wanna make it visually better before i give it out to public
what i wanna do is when %Curseweap > 5 seconds i want background font to be default black
and when %Curseweap <= 5 background to change to red.
i tried doing this, but i dont know how to specify which control font to change.
after that its pretty much done. so please help finish up my first script!
just wanna make it visually better before i give it out to public
what i wanna do is when %Curseweap > 5 seconds i want background font to be default black
and when %Curseweap <= 5 background to change to red.
i tried doing this, but i dont know how to specify which control font to change.
after that its pretty much done. so please help finish up my first script!
Code: [Select]
;=================================================================
; Script Name: Curse Weapon Timer!
; Author: Wreckdumb and the rest of the kick ass team at scriptuo lol.
; Version: 1.0
; Shard OSI / FS: OSI / FS OK
; Revision Date: 2/8/2011
; Purpose: SMALL Menu Countdown timer for Curse weapon, and maybe more later on =P
; Globals: None
;=================================================================
; Special Instructions:
;
;
;
;--------------SETUP--------------
SET %CW_HOTKEY 9 ; Hotkey you wish to use to cast curseweapon
SET %CWTUNE 2 ; Adds 1s per 1,
;------------END SETUP------------
gosub CWMenu1
;
;
;
;
;
repeat
onhotkey %CW_HOTKEY
gosub curseweapon
gosub updatetimer
SET %Curseweap %CW - #SCNT
until #FALSE
sub curseweapon
event macro 15 104 ; Cast Curse weapon
chooseskill Spir ;choose spirit speak
SET %SS ( #skill * 10 ) / 34 + 1
SET %CW #SCNT + %SS * 2 / 20 + %CWTUNE
gosub updatetimer
return
sub updatetimer
if %Curseweap = 5 ; change this value to how many seconds before curse weapon ends for it to play sound.
sound
if %Curseweap <= 0
menu set RECAST RECAST
else
menu set RECAST %Curseweap
return
;--------- EasyUO Menu Designer Code Begin ---------
sub CWMenu1
menu Clear
menu hideEUO
menu Window Title CW
menu Window Color Black
menu Window Size 113 14
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 8
menu Font Style
menu Font Color White
menu Font Transparent #false
menu Font Align Left
menu Font BGColor Black
menu Text Curseweapon 0 0 Curseweapon
menu Font Align Right
menu Font BGColor Red
menu Text RECAST 112 0 RECAST
menu Show 421 270
return
;--------- EasyUO Menu Designer Code End ---------