| Message |
I have this controler script that lets me give control of my character to a fellow group member.
sub Controler (name, line, wilds)
if wilds (1) = world.getvariable ("Controler") then
world.send wilds (2)
else
world.send "gt ^B" & wilds (1)& ": ^GYou are not my Controller at the moment. Only: " & world.getvariable ("Controler") & " can Control me"
end if
end sub
The only problem with this is it also allows my controler access to certain commands I don't want them to use... I.E. global channels, The muds Configure options, and ofcourse my password(big bad juju!!) What I'd like to do is have it ignore the following commands:
config *, password *, ooc *, ic *, opray *
the trigger is: * tells the group '<my characters name> *'
For some reason I just can't remember how to do this. |
My code(with a LOT of Nicks help) to fame:
sub OnAutoCombo (TriggerName, TriggerLine, arrWildCards)
dim AutoCombo
AutoCombo = split (arrWildCards (1))
Dim i, attack
for i=lbound (AutoCombo ) to ubound (AutoCombo )
Select Case AutoCombo (i)
case "rp" attack = "punch right"
case "lp" attack = "punch left"
case "s" attack = "sweep"
case "r" attack = "roundhouse"
case else attack = "" ' unknown attack type
End Select
if i = ubound (AutoCombo ) then
world.send "throw " + world.getvariable ("attacker") + " down"
else
world.send attack + " " + world.GetVariable ("attacker")
end if
next
end sub
| top |
|