|
Falcnor Beginner
Joined: 04 Sep 2003 Posts: 14 Location: USA
|
Posted: Mon Sep 08, 2003 8:53 pm
Falcnor's Autokill Script |
Hey gang. Well I finished my Autokill script. Taken pieces of code from Islydur's kill script and modified it heavely. Here are the steps you need to take to ensure it will work for you.
Copy the code at the bottom into notepad and edit the following areas.
'sk @mobEnemy' : This is the kill command. Add things like 'kill @mobEnemy;pet kill @mobEnemy' and that sorta stuff
'#wait 2000' : this is just a simple pause for 2 seconds to make sure the enemy variable is populated. If you have a fast mud you can shorten this but I'd advise against it.
'#VAR mobEnemyList {rabbit|dwarf|elf}' : This is the list of monsters you want to attack. They are the simple forms of the names. Say like "A wood elf" would trigger the "elf" enemy in this list.
#TRIGGER {is DEAD} {hunt}
#TRIGGER {No *({@mobEnemyList})* here!} {hunt}
#TRIGGER {Target is not present.} {hunt}
^^ : These 3 lines are as follows
1. The "you killed the monster" tag line.
2. A line that tells you the target is not preset.
3. A line that tells you the target is not preset.
Ok, now create a path for the area you want to kill in and change the #BUTTON command at the end of the code to show your path name (#slow dwarfs was mine)
Move to the begining of you path and hit the button. It will run through the area and kill for you granted your setup works.
I will be adding little improvements for myself and putting the extra code up for everyone to see and use.
Please post comments, suggestions or gripes. And if you need some hlep setting it up for your specific mud please post a snip of your mud output for short look (ll, bl) or look (look, l).
Good luck!
#CLASS {Autokill}
#ALIAS Hunt {
#t+ MatchEnemy
#VAR mobEnemy {} {_nodef} {Autokill}
#pause
ll
#wait 2000
#if (@mobEnemy) {
sk @mobEnemy
} {
ChangeRoom
}
}
#ALIAS ChangeRoom {
#step
#wait 2000
hunt
}
#VAR mobEnemyList {rabbit|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 dwarfs;hunt} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {} |
|
|
|
rmorock8869@yahoo.com Beginner
Joined: 15 May 2018 Posts: 17
|
Posted: Wed Jan 19, 2022 11:58 am |
I am using CMUD. Do I just copy this and post in the command line with the changes to the target? Currently I have my targeting setup as T @target, kill @target
**These are some of the targets in the room**
#VAR mobEnemyList {arsonist|thug|murderer|champion|pickpocket} |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Thu Jan 20, 2022 12:04 am |
It's an 18 yo script... the might not frequent the forum anymore.
That said, yes, enter it on the command line.
Edit the alias after the fact, or just use his variables. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
rmorock8869@yahoo.com Beginner
Joined: 15 May 2018 Posts: 17
|
Posted: Thu Jan 20, 2022 12:41 am |
yea, sorry I am still kinda new to mudding and know little of coding. The script works but does not move on its own. Any suggestions?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Thu Jan 20, 2022 2:28 am |
You need to create your own #PATH.
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|