newbie @ plugins

Posted by Rockeru on Thu 28 Oct 2004 06:07 PM — 6 posts, 21,186 views.

#0
hi there :)
i'm playing nanny.mud, and i get a fight prompt like this
** HP: 204/204 SP: 204/204
i did my best to make that healt bar to work , but without any results :(
can any1 help me pls :)
tnx alot
USA #1
Change the line in the beginning of the plugin to this:
"^\*\* HP\: (\d+)\/(\d+) SP\: (\d+)/(\d+)(.*?)$"
(the one that looks sort of like that, line 4)
and then you'll have to comment out (or remove) the third DoGuage line (since you only have 4 wildcards, you dont need that third bar).
It's on line 140, just add a ' to the beginning of the line:
'DoGauge " Move: ", wildcards (5), wildcards (6), "gold", "gold"
#2
i change it but still nothing.... where is my health bar?
USA #3
You need to have the "info bar" visible.
View > Info Bar (make sure its checked). Thats where the health bar shows up.
#4
ok
it doesn't work with hp & sp
when i change trigger to
"^\*\* HP\: (\d+)\/(\d+) (.*?)$", it appears only hp bar, but if i try to make
"^\*\* HP\: (\d+)\/(\d+) SP\: (\d+)/(\d+) (.*?)$"
it wont work.
can help me?
this is my prompt ** HP: 88/154 SP: 162/162
i have to keep 3 spaces between 154 and SP?
USA #5
"^\*\* HP\: (\d+)\/(\d+) SP\: (\d+)\/(\d+) (.*?)$"
The \ infront of the / for the SP was missing.

And yes, if there are spaces, they are important. So add them whereever they might turn up.