help with my merc script

Post Reply
syrik
Posts: 90
Joined: Sat Jun 26, 2010 9:57 pm

help with my merc script

Post by syrik »

so atm I have this:

Pattern: (\w+) tells you, 'command: (.+)'

Script: commanders = { "xx",}
if table.contains( commanders, matches[2] ) then
send( matches[3] )
end

How would I make the commands go through mudlet instead of straight to the mud?

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: help with my merc script

Post by Vadi »

use expandAlias instead of send

syrik
Posts: 90
Joined: Sat Jun 26, 2010 9:57 pm

Re: help with my merc script

Post by syrik »

ok, thanks!

Post Reply