示例#1
0
 public boolean invoke(MOB mob, Vector commands, Physical givenTarget, boolean auto, int asLevel) {
   boolean foundOne = false;
   for (int a = 0; a < mob.numEffects(); a++) // personal affects
   {
     Ability A = mob.fetchEffect(a);
     if ((A != null) && (A instanceof Play)) foundOne = true;
   }
   if (!foundOne) {
     mob.tell(auto ? "There is noone playing." : "You aren't playing anything.");
     return true;
   }
   unplayAll(mob, mob);
   mob.location()
       .show(mob, null, CMMsg.MSG_NOISE, auto ? "Silence." : "<S-NAME> stop(s) playing.");
   mob.location().recoverRoomStats();
   return true;
 }