I have been trying to get some vbscript code to work, and being a newbie at vbscript am unsure why. I remember some VB6, but I havent kept my skills up to date, as it was for a class in college a few years back.
What I am trying to do, is if somebody in a group asks for a spell, I will cast that spell on them. I have no problem with doing that, but I wanted to expand the trigger and check to see if I am sleeping, and if I am, cause me to wake up and cast the spell.
The code I currently have is this:
I know the code is crude and simple, and possibly just wrong, but any help would be much appreciated.
What I am trying to do, is if somebody in a group asks for a spell, I will cast that spell on them. I have no problem with doing that, but I wanted to expand the trigger and check to see if I am sleeping, and if I am, cause me to wake up and cast the spell.
The code I currently have is this:
Pattern to fire:
* tells the group, 'sanc*
Commands
if sleep = true then
wake
cast sancuary %1
gt $1 Sanctified
else
cast sancuary %1
gt $1 Sanctified
endif
I know the code is crude and simple, and possibly just wrong, but any help would be much appreciated.