Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
candi
Beginner


Joined: 02 Feb 2005
Posts: 10

PostPosted: Wed Feb 02, 2005 8:22 pm   

autoheal script problems
 
hi guys im having a problem with my autoheal script. i am tryin to get it to automatically heal when my statusline falls below x amount. ive tried several ways and me being new to zmud have no idea nothin has workd this is what my prompt/statusline looks like for my mud

Code:
736/736h 2482m 447v $27703 XPtoLv 52: 127284 [none] >
  1   2     3    4       5      6  7       8     9 10


1) is my current hps
2. is my hp max
3. is my mana
4. is my movement
5. is my gold carried
6. just the letters xptolv.. always same.
7. is what level i am workin on
8. is the exp left till i level
9. is a trickyone its mob health in percent. it says [none] when idle or not fighting and it stats xx% when fighting no [ ] or () when fighting
10 is always the same its a >

the only number i am concered with is 1 .. im tryin to make it so when that number drops below 500 i take the following action

c 'heal'

ive tried many settings on zmud thinkin it was prompt or such but i cant even get it to attempt to heal.. any help would be apprecciated thank you

Edit: added code tags and adjusted thier posistioning--Vijilante
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Feb 02, 2005 9:02 pm   
 
The simple way...Adjust the second pattern to match on a successful Heal and the third one to match on a failed heal

#TRIGGER "prompt" {^(%d)/(%d)h *>} {
#IF ((@healme=1) AND (%1<=500)) {c 'heal';#VAR healme 0}
} "" {prompt|nocr}
#TRIGGER {You heal yourself} {#VAR healme 1}
#TRIGGER {You fail your heal} {#VAR healme 1}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
candi
Beginner


Joined: 02 Feb 2005
Posts: 10

PostPosted: Wed Feb 02, 2005 11:51 pm   
 
hmmm not workin right ... not triggering any heal have it set to prompt. showing a syt error
at the end of this line

#IF ((@healme=1) AND (%1<=500)) {c 'heal';#VAR healme 0} x

where i placed the x

dont need to cast on a fail it never fails if i cast it just getting it to actually cast is where i havin the problems at.. thanks for all yer help nexela
Reply with quote
candi
Beginner


Joined: 02 Feb 2005
Posts: 10

PostPosted: Thu Feb 03, 2005 8:34 pm   
 
anyone else got any ideas i tried again today and exhausted all i can think of.. =0/
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Feb 03, 2005 10:04 pm   
 
*Edited down to one line*

#TRIGGER "prompt" {^(%d)/(%d)h *>} {#IF ((@healme=1) AND (%1<=500)) {c 'heal';#VAR healme 0}} "" {prompt|nocr}
#TRIGGER {You heal yourself} {#VAR healme 1}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
candi
Beginner


Joined: 02 Feb 2005
Posts: 10

PostPosted: Fri Feb 04, 2005 12:38 am   
 
kk your the greatest i got another post to post
Reply with quote
porcelina
Beginner


Joined: 20 Jun 2004
Posts: 20
Location: USA

PostPosted: Sat Feb 05, 2005 10:15 pm   
 
just wondering, what does this mean exactelly? {prompt|nocr}

Porcelina
_________________
carol
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Sat Feb 05, 2005 11:13 pm   
 
That is a setting for the trigger that tells it that the line is a prompt and doesn't contain a carriage return (nocr) character on the end.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net