Issue making a Trigger activate an Alias

Posted by Antoine on Mon 15 Apr 2013 11:39 PM — 4 posts, 16,384 views.

#0
Hello,

I'm normally not one to get on Forums this is a first for me in years. However i've tried everything from searching the forum to reading the help files and being completely new to Mushclient and mudding with advanced clients after a 10 year break i find 89% of it confusing. Though i can tell it's a powerful client learning to use it is hard. So i've come to ask for help.

I'm playing a mud where botting is allowed, and i have been manually executing aliases killing 25 creatures at a time. I have about 25 different aliases that kill 25 different types of creatures. So i thought about it and decided to see if i could create triggers that could also activate and execute my aliases one at a time and set it up to go down the list.

Unfortunately, i can't seem to do it and i've searched and can't find any documentation saying how. I don't know how to script at all so i decided to try to use this awkard method to create a bot. Is it possible to have a trigger execute an alias? Because what i would like to do is have the trigger go off, execute an alias, and have a phrase spoken at the end of the executed alias to spark off another trigger...I know there may be a much better way to create a bot but i'm at a loss how...If any one could help me in any way I would appreciate it greatly.
USA Global Moderator #1
Quote:
Is it possible to have a trigger execute an alias?

Yes

Quote:
what i would like to do is have the trigger go off, execute an alias

Send to script and use the Execute() function.
#2
Hello Fiendish,

And thank you for replying..i am a bit confused and i see to be getting something wrong...not used to using script at all...this is the error i'm getting


[string "Trigger: "]:1: bad argument #1 to 'Execute' (string expected, got nil)
stack traceback:
	[C]: in function 'Execute'
	[string "Trigger: "]:1: in main chunk

#3
Thanks Fiendish i figured it out doing a bit more research and
got it to work!

I used


world.Execute("ggnome")


To send my gnome killing alias to the mud! Worked like a charm and i hope this post helps some other newbie! Thanks.