Bug fixes: make it work with with new Python plugin, add 'yes' for help message, do not make it talk to itself.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@4025 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
0a48aa8c1e
commit
82aeffd187
|
@ -29,7 +29,7 @@ import CFLog
|
||||||
activator=Crossfire.WhoIsActivator()
|
activator=Crossfire.WhoIsActivator()
|
||||||
activatorname=activator.Name
|
activatorname=activator.Name
|
||||||
whoami=Crossfire.WhoAmI()
|
whoami=Crossfire.WhoAmI()
|
||||||
isDM=activator.IsDungeonMaster
|
isDM=activator.DungeonMaster
|
||||||
x=activator.X
|
x=activator.X
|
||||||
y=activator.Y
|
y=activator.Y
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ if text[0] == 'seen':
|
||||||
else:
|
else:
|
||||||
message = 'Usage "seen <player>"'
|
message = 'Usage "seen <player>"'
|
||||||
|
|
||||||
elif text[0] == 'help':
|
elif text[0] == 'help' or text[0] == 'yes':
|
||||||
if isDM:
|
if isDM:
|
||||||
message = "How can I help you? Here is a quick list of commands:\nseen, info, muzzlecount, lastmuzzle, kickcount, lastkick"
|
message = "How can I help you? Here is a quick list of commands:\nseen, info, muzzlecount, lastmuzzle, kickcount, lastkick"
|
||||||
else:
|
else:
|
||||||
|
@ -108,3 +108,4 @@ else:
|
||||||
message = "Do you need help?"
|
message = "Do you need help?"
|
||||||
|
|
||||||
whoami.Say(message)
|
whoami.Say(message)
|
||||||
|
Crossfire.SetReturnValue(1)
|
||||||
|
|
Loading…
Reference in New Issue