Autobash trig help

Scripts and support for your favorite MUD client.
tsaej
Sojourner
Posts: 38
Joined: Mon Jan 29, 2001 6:01 am
Location: Ottawa, Canada

Autobash trig help

Postby tsaej » Thu Oct 31, 2002 3:02 am

I have been trying to use an autobash trig set posted by Gavry using ZMUD 4.62 but can't seem to get it working. Here's the code I am trying to use:

#CLASS {AutoBash}
#CLASS {Toggles}

#ALIAS bashon {#var autobash yes;#T+ AutoBash;#say AUTOBASH ON} "Toggles"
#ALIAS bashoff {#var autobash no;#T- AutoBash;#say AUTOBASH OFF} "Toggles"
#ALIAS setbash {#var bashing %1;#say AUTOBASHING: @bashing} "AutoBash"

#VAR bashtarget {fubar} {_nodef} "AutoBash"
#VAR bashing {none} {none} "AutoBash"
#VAR deadperson {none} {_nodef} "AutoBash"
#VAR autobash {yes} {_nodef} "Toggles"

#TRIGGER {Your bash at (%w*) sends (%w) sprawling.} {bashtarget=%1} "AutoBash"
#TRIGGER {As (%w*) avoids your bash, you topple over and fall to the ground.} {bashtarget=%1} "AutoBash"
#TRIGGER {@bashtarget clambers to {his|her|its} feet.} {#if (@autobash == "yes") {#if (@bashing != "none") {bash @bashing} {bash}} {}} "AutoBash"
#TRIGGER {@bashtarget staggers about, but manages to get to {his|her|its} feet.} {#if (@autobash == "yes") {#if (@bashing != "none") {bash @bashing} {bash}} {}} "AutoBash"
#TRIGGER {(%w*) is dead! R.I.P.} {deadperson=%1;#if (@deadperson == @bashtarget) {bashing=none;bashtarget=fubar} {}} "AutoBash"

One possible problem is that when I import it, the triggers for when the mob get to his feet is:

fubar clambers to {his|her|its} feet.

However, it is suppsed to be the mob I am trying to bash. I tried inputing:

@bashtarget clambers to {his|her|its} feet.

but it still didn't work. Any ideas out there as to where the problem might be?


------------------


[This message has been edited by tsaej (edited 10-30-2002).]
Vahok
Sojourner
Posts: 525
Joined: Fri Apr 05, 2002 6:01 am
Location: guelph,ontario,canada

Postby Vahok » Thu Oct 31, 2002 3:49 am

Personally, I don't use autobashing. Too many problems can lead from it. My suggestion would be use a colour highlight for the mob standing. If you real lazy like me, set a bash key. My two cents....

------------------
Meatshield
Zen
Sojourner
Posts: 411
Joined: Fri Aug 31, 2001 5:01 am
Location: Michigan

Postby Zen » Thu Oct 31, 2002 12:03 pm

Autobashes work great for mindless xp, but they'll get you killed in a zone. I use highlights and a bash hotkey myself.

#CLASS {Display}
#TRIGGER {(%w) sends (*) sprawling with a powerful bash.} {#CW cyan,bold}
#TRIGGER {Your bash at (*) sends (*) sprawling.} {#CW cyan,bold}
#TRIGGER {clambers to {his|her|its} feet.} {#hi;#CW cyan,bold}
#TRIGGER {rises to {his|her|its} feet.} {#hi;#CW cyan,bold}
#TRIGGER {avoids your bash, you topple over and fall to the ground.} {#hi;#CW cyan,bold}
#TRIGGER {staggers about, but manages to get } {#hi;#CW cyan,bold}
#CLASS 0

And if you must autobash because you hate mindless xp and are a lazy bum....

#CLASS {automode}
#ALIAS autobash {#IF (@bashmode<>1) {#if (@bashmode<>2) {#var bashmode 1;#sho "-=+ TARGETED AUTOBASH ENGAGED +=-";#co red,bold} {#var bashmode 0;#sho "-=+ AUTOBASH DISABLED +=-";#co red,bold}} {#var bashmode 2;#sho "-=+ INDISCRIMINANT AUTOBASH ENGAGED +=-";#co red,bold}}
#TRIGGER {*{@target}*clambers to {his|her|its} feet.} {#IF (@bashmode=1) {Bash}}
#TRIGGER {E: (%w) EC:} {@Target = %1}
#TRIGGER {*{@target}*rises to {his|her|its} feet.} {#IF (@bashmode=1) {Bash}}
#TRIGGER {*{@target}*staggers about, but manages to get } {#IF (@bashmode=1) {Bash}}
#TRIGGER {clambers to {his|her|its} feet.} {#IF (@bashmode=2) {Bash}}
#TRIGGER {rises to {his|her|its} feet.} {#IF (@bashmode=2) {Bash}}
#TRIGGER {staggers about, but manages to get } {#IF (@bashmode=2) {Bash}}
#CLASS 0

Type autobash to set your bash mode. Make sure that the bashmode variable defaults to 0 wich is the off position so that if you reconnect or whatever and forget your autobasher was on you don't try to zone like that.

This autobasher toggles between 3 positions, off, targeted and bash it if it moves. It's pretty self explanatory, and necessary because some mobs have keywords in EC: that don't display on their actually strings.

-Lorgan

------------------
The Lord of the Iron Wastes holds his hammer high in the air, shouting a torment... 'Weak fools!'
tsaej
Sojourner
Posts: 38
Joined: Mon Jan 29, 2001 6:01 am
Location: Ottawa, Canada

Postby tsaej » Thu Oct 31, 2002 3:44 pm

Thanks for the input and help guys *hugs* Image

------------------

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 17 guests