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


Joined: 29 Mar 2024
Posts: 1

PostPosted: 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
Reply with quote
shalimar
GURU


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

PostPosted: 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
Reply with quote
shalimar
GURU


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

PostPosted: 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
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