![](templates/Classic/images/spacer.gif) |
laggy Newbie
Joined: 29 Mar 2024 Posts: 1
|
Posted: Fri Mar 29, 2024 4:55 am
Make a trigger abort a large alias |
Hi
On my mud, triggers are not allowed. So, you have to be rather creative with aliases!
I have a large alias that basically performs an action every 10 seconds, and this goes on for a long time.
However, what I want to do is to abort this alias when I run away.
The run away string is: You run away!
If I see that, I press the esc button on my laptop keyboard and that aborts the alias, however I cannot seem to do the same thing from within the trigger.
I have tried #send %e (which I thought trigger the same function as above).
Any other ideas?
Thanks |
|
|
![](templates/Classic/images/spacer.gif) |
shalimar GURU
![](images/avatars/114658559147aeed8fee539.gif)
Joined: 04 Aug 2002 Posts: 4685 Location: Pensacola, FL, USA
|
Posted: Tue Apr 02, 2024 11:12 am |
Perhaps you need to reorganize how you approach botting.
Rather then a single script that runs indefinately performing actions every 10 seconds....
Make a script that randomly performs a single action, and call it once every 10 seconds.
Code: |
#EVENT doSomething {
$actionList="an action|another action|aliasName|#RAISE anEventName|etc"
$nextAction=%item(%random(1, %numitems($actionList)), $actionList)
#EXEC $nextAction
#T+ autoBot
} |
#ALARM autoBot {-10} {#RAISE doSomething}
#TRIGGER {You run away!} {#T- autoBot} |
|
_________________ Discord: Shalimarwildcat |
|
|
![](templates/Classic/images/spacer.gif) |
shalimar GURU
![](images/avatars/114658559147aeed8fee539.gif)
Joined: 04 Aug 2002 Posts: 4685 Location: Pensacola, FL, USA
|
Posted: Tue Apr 02, 2024 12:20 pm |
P.S.
Indefinitely long aliases are likely just as against the spirit of your game's anti-trigger rules as literal triggers are.
Just like an auto-clicker on a button would be.
The concept applies to any command you don't physically type in at the keyboard.
The type of AI you implement your bot with is rather moot.
CMUD is very good at botting, however, you assume sole responsibility for all the trouble your scripts earn you. |
|
_________________ Discord: Shalimarwildcat |
|
|
![](templates/Classic/images/spacer.gif) |
|
|