[MudWalker] Healing Trigger
Dom Sengsouvanna
sengsod at yahoo.com
Wed Jan 28 17:50:36 PST 2009
I've been trying to create a trigger that quaffs a
healing or mana potion
when my HPS or GPS go below a certain level. Using one of the examples in the archives this is what i came up with:
My Hp Bar:
Hp: 4185(4185) Gp: 2300(2300) Xp: 3408892 Quest Xp: 0 Socp: 168(168)
Trigger:
^ *Hp:(\d+\)(\d+\) +Gp:(\d+\)(\d+\) +Xp:\d+ Quest Xp:\d+\ +Socp:\d+\(\d+\) *$
Script:
@@if tonumber(arg[1]) <= 1500 then
drink healing poton
@@iftonumber(arg[2]) <= 500 then
drink mana potion
@@end
But this doesn't seem to work. Can someone tell me what I may be doing wrong?
Dom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/mudwalker/attachments/20090128/199398da/attachment.htm>
More information about the MudWalker
mailing list