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
Ztroke
Newbie


Joined: 06 Nov 2002
Posts: 3
Location: Denmark

PostPosted: Fri Jan 03, 2003 3:06 pm   

Trying again :(
 
Okay i have now spend alot of time getting this to work and it just wont... :( so i am now posting a output of my fav mud to see if any of you can figure this (Walking bot out)

here goes:

A fine path through the elven forest.
On both sides of this path is doors. Over the western door is a
sign telling you this must be the weapon shop, and over the eastern
door is a similar sign telling you it's the armoury.
Obvious exits: [North, East, South, West]

613(613)H 312(314)M 145(145)V >
n (pressed by me)
A fine path through the elven forest.
Obvious exits: [North, East, South, West]
An Elven Soldier is standing here guarding the path.

okay what i am trying to do is to make a hunt bot that can hun and kill elvens by it self

okay area is something like this ne2we2n

and i have called the path: testelven

My problem is when i do the walk (with slow .testelven) it walks one field and now awais the #ok command, i have trouble finding out what i should trigger on. well i did figure that one out i just triggers on Exits:

but then the script just spamms and dont get so check for: An Elven Soldier is standing here guarding the path.

I have really tried alot and still i cant get this to work....anyone have any ideas ??

/Ztroke
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jan 03, 2003 4:17 pm   
 
You need to trigger the #OK on something that comes after the line that tells you that the elf is there. Try using your prompt for this:
#TRIGGER {%d~(%d~)H %d~(%d~)M %d~(%d~)V ~>} {#OK} "" {prompt|nocr}

Then you use the #PAUSE command when you see the elf. Since the line about the elf comes before the prompt, the slow walk will alreayd be paused by the time #OK is sent so nothing happens:
#TRIGGER {An Elven Soldier is standing here guarding the path.} {#PAUSE;kill elven}

You then use #STEP when you have killed the elf:
#TRIGGER {An Elven Soldier is DEAD!!!} {#STEP}

Kjata
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