|
kymon Novice
Joined: 29 Jan 2003 Posts: 40
|
Posted: Sat Dec 16, 2006 9:51 am
blocking command line commands possible? |
is it possible to block command line commands before they get sent to the mud?
the idea is to make a sort of AI companion for newbies. for example if they want to attack a mob that's 20 levels above them, the command wouldn't get sent, instead a warning appears. |
|
|
|
Ceres Wanderer
Joined: 25 May 2006 Posts: 88
|
Posted: Sat Dec 16, 2006 12:42 pm |
There is a new command in CMUD which needs to be used within an #ONINPUT command called #NOINPUT.
To see a discussion on this command read this thread. |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sat Dec 16, 2006 2:12 pm |
Sure, easy enough
myLevel = 5
monsterLevel.littleNasty = 10
monsterLevel.bigNasty = 100
#ALIAS kill {#if (@myLevel < (@monsterLevel.%1 - 20)) {#SAY Don't be silly, that'll kick your ass} {~kill %-1}}
'kill littlenasty' is allowed
'kill bignasty' isn't allowed |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
|
|