Thank you all for your help! The script works perfectly now
I didn't get the countdown on, but it doesn't matter so long as it shows when the skill is on cooldown.
As my way of saying thanks, I'll drop off the script for the Blood Boil active and the gump for the Passive and active for you to utilize how you wish. I've modified it so it can work as an individual event while i had them grouped as a set of 4 races
To start using the event to test it, set your event to e_draconian
To clear the event, remove the event e_draconian off yourself and set TAG.RACE to 0
The active ability allows the character to jump onto another character/npc thats in line of sight and a max of 8 spaces away, Then for 3 seconds, the user becomes immune to all forms of magic (even friendly) and all NPC damage. This skill has a 30 seconds cooldown from casting.
[EVENTS e_draconian]
ON=@LOGIN
SRC.DIALOG DRACONIAN_PA
SRC.TAG.RACE=2
[plevel 1]
UA
[DIALOG DRACONIAN_PA]
500,640
noclose
resizepic 0 0 9250 309 100
dtext 18 18 455 Passive - Tough Scales
dtext 180 18 455 Active - Blood Boil
gumppic 60 39 2246
IF (<SRC.TAG0.COOLDOWN>!=0)
gumppic 210 39 2295 0894
dtext 166 50 455 Cooldown 30 Seconds
ELSE
button 210 39 2295 2295 1 1 1
ENDIF
[DIALOG DRACONIAN_PA BUTTON]
ON=1
UA
DIALOG Draconian_PA
[function UA]
IF <SRC.RESTEST 1 i_timer_ua_draco1>
SRC.SYSMESSAGE You must wait until your skill becomes active again.
RETURN 1
ELSE
IF (<tag0.race>==2)
src.sysmessage Select your target.
TARGETFW f_race_draconian_charge
ENDIF
///Draconian Active - Blood Boil///
///Cooldown///
[ITEMDEF i_timer_UA_draco1]
NAME=Delay Teleport
ID=i_handr_1
TYPE=T_EQ_SCRIPT
ON=@Create
ATTR=attr_invis|attr_decay
MORE1=30
SRC.TAG.COOLDOWN=<MORE1>
ON=@Equip
TIMER=1
SRC.DIALOGCLOSE DRACONIAN_PA
SRC.DIALOG DRACONIAN_PA
ON=@UNEQUIP
SRC.DIALOGCLOSE DRACONIAN_PA
SRC.DIALOG DRACONIAN_PA
ON=@Timer
// Take the effect we would like.
if ( <CONT> )
if ( <MORE1> )
MORE1 -= 1
CONT.TAG.COOLDOWN -= 1
TIMER=1
return 1
else
CONT.SYSMESSAGE Your Blood Boil ability is ready
CONT.TAG.UA1=
SOUND=1450
remove
endif
endif
// normal timer fall through is to delete the item
remove
return 1
///Invul///
[ITEMDEF i_timer_UA_draco2]
NAME=Delay Teleport
ID=i_handr_1
TYPE=T_EQ_SCRIPT
ON=@Create
ATTR=attr_invis|attr_decay
MORE1=3
ON=@EQUIP
TIMER=1
SRC.EVENTS=+e_draconian_charge //Immunity to magic
//SRC.TAG.SKINCOLOR=<SRC.COLOR>
//SRC.COLOR=098e
ON=@Timer
// Take the effect we would like.
if ( <CONT> )
if ( <MORE1> )
MORE1 -= 1
TIMER=1
return 1
else
CONT.SYSMESSAGE Your Blood Boil has worn off.
SOUND 1389
CONT.EVENTS=-e_draconian_charge
//CONT.COLOR=<CONT.TAG.SKINCOLOR>
//CONT.TAG.SKINCOLOR=
remove
endif
endif
// normal timer fall through is to delete the item
remove
return 1
[EVENTS e_draconian_charge]
ON=@SPELLEFFECT
//blocks all magic, even friendly magic.
SOUND=513
RETURN 1
ENDIF
ON=@GETHIT
//Blocks all NPC damage
if (<SRC.brain> = 0) // Prevents it working against other players
RETURN 0 // so players can still hit
ELSE
RETURN 1 // remove the damage
ENDIF