Hacky but ~~target works now, it's due to us not having Avatar being loaded on the AI so it doesn't end up adding the command, And add back showing Access.

This commit is contained in:
Alexander 2015-08-23 01:58:47 -04:00
parent 634d8bcb19
commit a4d30bc355
2 changed files with 2 additions and 2 deletions

View file

@ -565,5 +565,4 @@ def target():
""" """
Returns the current Spellbook target. Returns the current Spellbook target.
""" """
return 'Your current target is: %s [avId: %s]' % (spellbook.getTarget().getName(), spellbook.getTarget().doId) return 'Your current target is: %s [avId: %s, access: %s]' % (spellbook.getTarget().getName(), spellbook.getTarget().doId, spellbook.getTarget().getAdminAccess())
#return 'Your current target is: %s [avId: %s, access: %s]' % (spellbook.getTarget().getName(), spellbook.getTarget().doId, spellbook.getTarget().getAdminAccess())

View file

@ -1,5 +1,6 @@
from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal
from otp.ai.MagicWordGlobal import * from otp.ai.MagicWordGlobal import *
from otp.avatar import Avatar
class ChatAgent(DistributedObjectGlobal): class ChatAgent(DistributedObjectGlobal):