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: Fri Feb 04, 2005 12:53 am   

help with autokill you guys rock
 
i want to make a script to autokill/walk what im killing is shoplifter or shopper. the line when it dies is
a shoplifter/shopper is dead! R.I.P.
its a small area to roam i want to roam the area and kill shopper or shoplifter if its in the room. if not iw ant to move onto the next room. this one is a complicated one so i wont even attempt it myself there are random number of each mob in each room sometimes no mobs ...
[ ]
I
[ ]
I
[ ]
I
[ ] [ ]
I I
[ ] [ ]
I I
[ ] [ ]
I I
[ ] [ ] [ ]
I I I
[ ] [ ] [ ]
I I I
[ ] [ ] [ ]
I I I
[ ] [ ] [ ]
I I I
[ ] [ ] [ ]
I I I
[ ] [ ] [ ]
I I I
[ ] [ ] [ ]
I I I
[ ] [ ] [ ]
I I I
[ ] - [ ] - [ ]


Thats a map of the area i wanna run.. thanks for the help ahead of time... you guys are great
Reply with quote
candi
Beginner


Joined: 02 Feb 2005
Posts: 10

PostPosted: Fri Feb 04, 2005 1:27 am   
 
BOY that map turned out crap.. let me attempt another


OK map is canned.. i need to go 15 s after starting 1 w then 9n backtrack 9s and go 1 w again and 12 north. ... that will complete 1 loop to get back to start would be 12s 2 e and 15n any help can be preciated i tried to make a map like 10 times it just autospaces like the first.. sign.. but with that u culd make a quick mental map im sure.. thanks for the help
Reply with quote
Adelante
Beginner


Joined: 01 Feb 2005
Posts: 10

PostPosted: Fri Feb 04, 2005 2:11 am   
 
Try paste that map into a Code box.
Would probably show up right.
Reply with quote
candi
Beginner


Joined: 02 Feb 2005
Posts: 10

PostPosted: Fri Feb 04, 2005 2:32 am   
 
Code:

                                    [ ]
                                    I
                                   [ ]
                                    I
                                   [ ] 
                                    I
[ ]                                [ ]
 I                                  I
[ ]                                [ ] 
 I                                  I
[ ]                                [ ]               
 I                                  I
[ ]                [ ]             [ ]
 I                  I               I
[ ]                [ ]             [ ]
 I                  I               I
[ ]                [ ]             [ ]
 I                  I               I
[ ]                [ ]             [ ]
 I                  I               I
[ ]                [ ]             [ ]
 I                  I               I
[ ]                [ ]             [ ]
 I                  I               I
[ ]                [ ]             [ ]
 I                  I               I
[ ]                [ ]             [ ]
 I                  I               I
[ ]      -         [ ]    -        [ ]
Reply with quote
candi
Beginner


Joined: 02 Feb 2005
Posts: 10

PostPosted: Fri Feb 04, 2005 2:32 am   
 
THAT WORKD
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Feb 04, 2005 3:34 am   
 
#variable walkpath {s|s|s|s|s|s|s|s|s|s|s|s|s|s|s|w|n|n|n|n|n|n|n|n|n|s|s|s|s|s|s|s|s|s|w|n|n|n|n|n|n|n|n|n|n|n|n}
#variable walkcurrent {0}
#variable walkdirection {forward}
#variable mobs {}

#trigger {({shopper|shoplifter})} {mobs = %additem(%1,@mobs);#T- talmPathStep}

various triggers for killing the mobs go here

more triggers for when they wander in go here

#trigger {a {shoplifter|shopper} is dead! R.I.P.} {#noop any looting you wanna do for each kill goes here;#if (@mobs) {#noop do nothing, the attack/defend triggers for killing the mob should take over} {#T+ talmPathStep}}

#alarm "talmPathStep" *3 {#if (@walkdirection = "forward") {#add walkcurrent 1} {#add walkcurrent -1};%item(@walkpath,@walkcurrent)}

That should be it. It is untested and was done off the top of my head while I was busy scripting while keeping an eye on my own characters. I take no responsibility for any problems that the above script might cause you and reserve the right to shoot you in the eye with my trusty "novice trainer +15" if you come back to complain (questions and howtos/problems that need fixing are ok, though).
_________________
EDIT: I didn't like my old signature
Reply with quote
candi
Beginner


Joined: 02 Feb 2005
Posts: 10

PostPosted: Fri Feb 04, 2005 4:01 am   
 
k shop is command i use to kill since it works for both.. its spamming that command whole fight . script will move south till it hits a room with shoplifter/shoppers in it then after there dead it doesnt continue moving. only way i can get it to move again is to copy paste the last line in zmuda again

#alarm "talmPathStep" *3 {#if (@walkdirection = "forward") {#add walkcurrent 1} {#add walkcurrent -1};%item(@walkpath,@walkcurrent)}

then it will continue moving till it hits another room with shoppers and shoplifters in it
Reply with quote
candi
Beginner


Joined: 02 Feb 2005
Posts: 10

PostPosted: Sat Feb 05, 2005 9:50 pm   
 
anymore ideas? thanks for all your help you guys are much better at this stuf than i am ..
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