From a4d30bc35594cbe0d95235a5d40efef3b079e6c5 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 23 Aug 2015 01:58:47 -0400 Subject: [PATCH] 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. --- otp/avatar/Avatar.py | 3 +-- otp/chat/ChatAgent.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/otp/avatar/Avatar.py b/otp/avatar/Avatar.py index 5fcc6215..75e7a584 100755 --- a/otp/avatar/Avatar.py +++ b/otp/avatar/Avatar.py @@ -565,5 +565,4 @@ def 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()) \ No newline at end of file + return 'Your current target is: %s [avId: %s, access: %s]' % (spellbook.getTarget().getName(), spellbook.getTarget().doId, spellbook.getTarget().getAdminAccess()) \ No newline at end of file diff --git a/otp/chat/ChatAgent.py b/otp/chat/ChatAgent.py index cd0a539b..37d69a2a 100755 --- a/otp/chat/ChatAgent.py +++ b/otp/chat/ChatAgent.py @@ -1,5 +1,6 @@ from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from otp.ai.MagicWordGlobal import * +from otp.avatar import Avatar class ChatAgent(DistributedObjectGlobal):