Imperian Blesser
Posted: Mon Dec 31, 2012 8:17 pm
I've been trying for a while to get a queueable "Blesser" script running for Imperian. I've scrapped it a few times, and I'm hoping someone can help out. Basically, what I'd like it to do is:
Alias: ^bless (\w+)$
This alias will add PLAYER to a table. If it's not currently blessing someone else already, begin blessing that person.
The blessings are:
bless X frostshield
bless X willpower
bless X endurance
bless X thermalshield
bless X earthshield
If in the middle of the first players blessings, I want to add a 2nd person, I want to do "bless PLAYER" and have it add the 5 blessings to the queue to be done to that person.
if I get attacked, I'd like to:
Alias: ^pause bless$
Alias: ^clear ?bless$
or
Alias: ^show ?bless$
(to see how much longer I have till it ends)
If paused, I want to:
Alias: ^resume bless$
Trigger lines may be:
^You call upon your faith and bestow the (\w+) blessing upon .+\.$
Wildcard = Earthshield | Frostshield | Thermalshield | Willpower | Endurance
Each blessing takes 3.8 seconds of Equilibrium.
EDIT: Error handling triggers include:
^You have already been blessed with that blessing.$
^(\w+) has already been blessed with that blessing.$
The system would need to know what blessing it attempted last, remove it from the table (or +1) and do next. There is no EQ lost on attempted blessings that were already there.
Any thoughts on how to construct this? I'm a beginner in LUA (also known as terrible)
Alias: ^bless (\w+)$
This alias will add PLAYER to a table. If it's not currently blessing someone else already, begin blessing that person.
The blessings are:
bless X frostshield
bless X willpower
bless X endurance
bless X thermalshield
bless X earthshield
If in the middle of the first players blessings, I want to add a 2nd person, I want to do "bless PLAYER" and have it add the 5 blessings to the queue to be done to that person.
if I get attacked, I'd like to:
Alias: ^pause bless$
Alias: ^clear ?bless$
or
Alias: ^show ?bless$
(to see how much longer I have till it ends)
If paused, I want to:
Alias: ^resume bless$
Trigger lines may be:
^You call upon your faith and bestow the (\w+) blessing upon .+\.$
Wildcard = Earthshield | Frostshield | Thermalshield | Willpower | Endurance
Each blessing takes 3.8 seconds of Equilibrium.
EDIT: Error handling triggers include:
^You have already been blessed with that blessing.$
^(\w+) has already been blessed with that blessing.$
The system would need to know what blessing it attempted last, remove it from the table (or +1) and do next. There is no EQ lost on attempted blessings that were already there.
Any thoughts on how to construct this? I'm a beginner in LUA (also known as terrible)