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


Joined: 18 Jul 2004
Posts: 2

PostPosted: Sun Jul 18, 2004 1:36 am   

Area runner script help!
 
I made a script that runs an area with slow walk, and kills npc's along the way. The only problem is, it can only be set to kill 1 mob type in any given area. Can anybody help me make the script detect mulitple creatures, and kill them as well, before moving on?


Here's what I have so far,
#slow "path"
#trigger {exits} {#pause;kill npc}
#trigger {They aren't here.} {#step}
#trigger {is dead!} {kill npc}


thanks for your help!
squirell
Reply with quote
complex
Apprentice


Joined: 12 Apr 2004
Posts: 134
Location: USA

PostPosted: Sun Jul 18, 2004 8:03 am   
 
This is the auto hunt script i made, you will have to adjust it to your mud also you will want to change the paths and the mobenemy list the buttons I made are for my paths, so the script knows to hunt there, I have had some problems with it in the past, dumping the durections, and not slow walking, so im sure something is miss, anyone please feal free to look at it and see if something is messed up.



#CLASS {Autokill}
#ALIAS Hunt {#t+ MatchEnemy;#VAR mobEnemylist {} {_nodef} {Autokill};#pause;l;#wait 1000;#if (@mobEnemy) {kk @mobEnemy} {ChangeRoom}}
#ALIAS ChangeRoom {#step;#pause;#wait 2000;hunt}
#VAR mobEnemyList {Paleocinthus|Stegosaurus|Deinonychus|Pterandon|Triceratops|kings archer|Black Checker|Red checker}
#PATH ToChecker {2s14e4su}
#PATH kchecker {u3w4n7es7ws7es7ws7es7ws7es7w;.(recall )}
#PATH ToDino {2s13w3s6wd6wn3wswusesw3s2en2en;.(enter trapdoor)}
#PATH kdino {2swsw4nenwesw4s3ene2nwneneseswsw2s2eun2sd;.wswnwsn2wsw;.(recall )}
#PATH ToArcher {15s2e3n;.(enter Gates)}
#PATH karcher {wu4e4n8w4s4ede;.(recall )}
#TRIGGER {is DEAD} {hunt}
#TRIGGER {They aren't here.} {hunt}
#TRIGGER {The %1s has fled!} {hunt}
#TRIGGER {No *({@mobEnemyList})* here!} {hunt}
#TRIGGER {Target is not present.} {hunt}
#BUTTON 1 {Archer} {#t- hunt;#slow ToArcher;#wait 4000;#t+ hunt;#class Autokill 1;#slow ;hunt} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {}
#BUTTON 2 {Checker} {#t- hunt;#slow ToChecker;#wait 5000;#t+ hunt;#class Autokill 1;#slow ;hunt} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {}
#BUTTON 3 {Dino} {#t- hunt;#slow ToDino;#wait 8000;#t+ hunt;#class Autokill 1;#slow kdino;hunt} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {}
#CLASS 0

#CLASS {Autokill|MatchEnemy}
#TRIGGER {*({@mobEnemyList})*} {#var mobEnemy %lower( {%1}) {_nodef} {Autokill};#t- MatchEnemy}
#CLASS 0
_________________
<Clever text here>
Reply with quote
squirell
Newbie


Joined: 18 Jul 2004
Posts: 2

PostPosted: Sun Jul 18, 2004 10:08 pm   
 
Thanks complex, i'll give it a try, and see if I can get it to work on my mob!
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