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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
shaughn2323
Beginner


Joined: 29 May 2009
Posts: 11

PostPosted: Sun Sep 26, 2010 4:59 pm   

little help here please.
 
I am currently using an autokill bot that i got off the forums here, the problem I am having is that it is not changing from room to room when there arent any more mobs to kill in a room, can any help me fix this please? here is the script

#CLASS {Autokill}

#ALIAS Hunt {
#t+ MatchEnemy
#VAR mobEnemy {} {_nodef} {Autokill}
#pause
l
#wait 2000
#if (@mobEnemy) {
bash @mobEnemy
} {
ChangeRoom
}
}

#ALIAS ChangeRoom {
#step
#wait 2000
hunt
}

#VAR mobEnemyList {scarecrow|dwarf|elf}
#VAR mobEnemy {} {_nodef} {Autokill}

#TRIGGER {is DEAD} {hunt}

#TRIGGER {No *({@mobEnemyList})* here!} {hunt}

#TRIGGER {Target is not present.} {hunt}
#CLASS 0


#CLASS {Autokill|MatchEnemy}

#TRIGGER {*({@mobEnemyList})*} {#var mobEnemy %lower( {%1}) {_nodef} {Autokill};#t- MatchEnemy}
#CLASS 0

#BUTTON 14 {Start-H} {#class Autokill 1;#slow scarecrow;hunt} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {}



and here is an exsample of almost all the rooms in the zone look like


A Blighted Field of Corn Stalks
Obvious exits: East West
An ear of corn has been shucked and left here upon the ground.
A grinning scarecrow crookedly stands by a post eerily silent.
A grinning scarecrow crookedly stands by a post eerily silent.
A grinning scarecrow crookedly stands by a post eerily silent.

any help would be great thank you.
Reply with quote
shaughn2323
Beginner


Joined: 29 May 2009
Posts: 11

PostPosted: Thu Sep 30, 2010 4:09 am   
 
bump
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4686
Location: Pensacola, FL, USA

PostPosted: Thu Sep 30, 2010 4:43 am   
 
I am guessing it doesn't like the path of 'scarecrow' you fed it...
It's the only setting i don't see you supplying info for... the logic looks sounds, but I haven't tested it.
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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