Enchant weapon trigger

Posted by Whit on Sat 15 Jul 2006 03:33 PM — 5 posts, 19,465 views.

#0
Trying to make a trigger that when someones gives me a weapon and they say enchant weapon i cast a spell on the weapon and give it back to them, something like this:

Sonic gives you a dagger. Sonic says enchant dagger. then i cast enchant weapon on dagger and You give a magical dagger to Sonic.

any help will be greatly appreciated
USA #1
Some MUDs would call that botting. If not then fine, but otherwise I suggest you just setup an alias and use old fashioned typing to do it.

example

enitem * *

c 'enchant weapon' %1
give %1 %2
#2
Botting is not a problem, i have a healing bot that's on all the time, the problem i'm having is in the *says 'enchant ?'* part, what do i put in the ? part, thanks for the reply btw
USA #3
(.*?) says \'enchant (.*?)\'

John says 'enchant tube'
#4
here's the trigger:

trigger: *says 'enchant*'*
send: cast 'enchant weapon' %2 \ngive %2 %1

was overthinking it way too much, so easy, thanks for the reply's though